
-9-
Data
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
Description
LEFT,
SYS1
RIGHT,
SYS1
LEFT,
SYS2
RIGHT,
SYS2
LEFT,
SYS3
RIGHT,
SYS3
LEFT,
SYS4
RIGHT,
SYS4
Communication between the PC and the Remote Alarm will use the
RTS
and
CTS
lines to control the flow of
data.
The Serial Port has the capability of transmitting the following data to the PC:
Table 5
Command
Code
Keystroke
Definition
STX
Hex 02
Cntrl-B
Start of Text
Data Byte
Alarm Status
ETX
Hex 03
Cntrl-C
End of Text
ENQ
Hex 05
Cntrl-E
Enquire
Table 6
The Data byte is 8 bits in length (start, stop, parity not considered). When the Remote Alarm detects a change
in status from any of the SYSTEM BANK switches, it will send out three bytes to the PC. Each byte is sent
using the handshaking created by linking the
RTS
and
CTS
lines between the two devices. The bytes are
STX,
data byte
, and
ETX
.
The Serial Port has the capability of receiving data from the PC. The data that it is capable of interpreting is
limited to the following:
Command
Code
Keystroke
Definition
CAN
Hex 18
Cntrl-X
Cancel
ENQ
Hex 05
Cntrl-E
Enquire
STX
Hex 02
Cntrl-B
Start of Text
ETX
Hex 03
Cntrl-C
End of Text
DC4
Hex 14
Cntrl-T
Device Control
4 (Test)
Data Byte
Table 7
CAN
Command – The Remote Alarm should interpret this as a Reset. Upon receiving this command, the software
should jump to the beginning or initialization.
ENQ
Command – When this is received the Remote Alarm should provide the status of the SYSTEM BANK Switches.
This command coming from the PC has no "STX" or "FTX" associated with it. This is done by transmitting the
STX command first, followed by the data byte, followed by the ETX command. This command can also be sent to
the PC if the PIC does not understand the instruction it received.
DC4
Command – When this is received the Remote Alarm will initiate the self test sequence.
Connection to the Serial Port is made through a 9 pin D-subminiature connector. The cable needed is a standard
serial cable normally used to connect any peripheral serial device to a PC. The pin assignments for the 9 pin D-
subminiature connector on the Alarm are shown in Table 8 and Figure 9.
Содержание 529 5310
Страница 14: ...14 THIS PAGE INTENTIONALLY LEFT BLANK...