Preview only show first 10 pages with watermark. For full document please download

Elite-s Keypad Buss To Rs232 Interface Protocol

   EMBED


Share

Transcript

Elite-S Keypad buss to RS232 interface protocol Connecting and setting up the RS232 Board The RS232 keypad buss interface module is designed to connect to the ELITE-S keypad buss and pass all buss activity on to a PC or OEM device via an RS232 connection. The communication Baud rate is 9600. The information is sent in ASCII format. The RS232 interface connects to the ELITE-S control panel via the standard keypad buss using the POS, NEG, CLK & DAT connections (see drawing below). The board must also be set to a keypad address using the DIP switches on-board. It is important to set the RS232 board to an unused keypad address otherwise buss conflicts will occur. The keypad addressing is done as per the chart below. Keypad Address # DIP Switch Number 1 2 3 ON ON ON KP # 2 OFF ON ON KP # 3 ON OFF ON KP # 4 OFF OFF ON KP # 5 ON ON OFF KP # 6 OFF ON OFF KP # 7 ON OFF OFF KP # 8 OFF OFF OFF LED Flashes when connected to the Keypad Buss. IN1 GND IN2 GND DAT CLK NEG POS RS232 RS2485 Y Z A B TxRxGND KP # 1 DIP SW DIP Switch When the RS232 board is connected to an ELITE-S control panel the LED on the board will flash at approximately 1/2 second intervals to show it is working. ON 1 2 3 4 In the drawing above the DIP switches are indicating that the RS232 board is set to keypad address number 8 (switches 1, 2 & 3 all OFF). Switch number 4 is unused. To connect the RS232 board to a PC or OEM device you will need to make up a serial lead. The wiring connections for that lead are shown in the table below. RS232 Board Tx Rx GND Spare DB9 Serial connector (Female) Pin 2 Pin 3 Pin 5 The RS232 messages and what they mean The following list shows the signals sent out via the RS232 port and the event type that triggered the signal. To view the signals below the RS232 port can be connected to a standard PC serial port and running HyperTerminal (set to 9600 Baud) the signals will appear on the screen as the occur. NOTE: The messages are all sent in capital letters. ZONE INDICATION’S RS232 Message Z0xxx ZCxxx ZAxxx ZRxxx ZTxxx ZTRxxx ZBYxxx ZBYRxxx ZBL ZBR ZSAxxx ZSRxxx ZIA ZIR Message Trigger ZO = zone open, xxx= zone number 001-016 ZC = zone closed, xxx= zone number 001-016 ZA = zone alarm, xxx= zone number 001-016 ZR = zone alarm restore, xxx= zone number 001-016 ZT = zone trouble, xxx= zone number 001-016 ZTR = zone trouble restore, xxx=zone number 001-016 ZBY = zone bypassed, xxx=zone number 001-016 ZBYR = zone bypass restore, xxx= zone number 001-016 ZBL= RF zone battery low, No zone information is available ZBR = RF zone battery OK, No zone information is available ZSA = RF zone supervise fail, xxx=zone number 001-016 ZSR = RF zone supervise OK, xxx=zone number 001-016 ZIA = zone sensor-watch alarm, No zone information is available ZIR = zone sensor-watch OK, No zone information is available Note: If multiple zones are activated simultaneously all zones will be shown singularly with a new line for each message. When there is a Sensor-watch alarm “ZIA” a “ZT” (zone trouble) alarm is generated at the same time (on a new line) and the zone number is shown as part of the “ZT” message. ARM/DISARM INDICATION’S RS232 Message AA AB SA SB DA DB EAA EAB ESA ESB Message Trigger AA = Armed Area A AB = Armed Area B SA = Stay Armed Area A SB = Stay Armed Area B DA = Disarmed Area A DB = Disarmed Area B EAA = Area A Arming, exit delay active EAB = Area B Arming, exit delay active ESA = Area A Stay Mode Arming, exit delay active ESB = Area A Stay Mode Arming, exit delay active When just one area is armed the status of the other area is shown as well, eg arming area A will send the message EAA (area A arming and exit delay active) followed by the message DB to indicate that area B is disarmed. SYSTEM INDICATION’S RS232 Message MF MR BF BR TA TR LF LR DF DR RO NR FF FR PBF PBR CTF CTR RIF RIR CAL CLF Message Trigger MF = Mains fail MR = Mains OK (restore) BF = Battery fail BR = Battery OK (restore) TA = Panel Tamper Alarm TR = Panel Tamper OK (restore) LF = Telephone Line Fail LR = Telephone Line OK (restore) DF = Dialler Fail DR = Dialler OK (restore) RO = Ready On (all zones are sealed) NR = Not Ready (zones are unsealed) FF = Fuse fail or Output fail FR = Fuse OK or Output OK (restore) PBF = Pendant battery fail PBR = Pendant battery OK (restore) CTF = Code tamper fail CTR = Code tamper OK (restore) RIF = Receiver fail RIF = Receiver OK (restore) CAL = Dialler is Active (making a call) CLF = Dialler is Inactive (the call has finished) OUTPUTS RS232 Message OOxxx ORxxx Message Trigger OO = Output On, xxx = Output number 001-008 OR = Output Off (restore), xxx = Output number 001-008 Note: If multiple outputs are activated simultaneously all outputs will be shown singularly with a new line for each message. RECEIVER SIGNALS RS232 Message RSO.xx. xx. xx. xx. xx. RSR.xx. xx. xx. xx. xx. Message Trigger RSO = Received Code On, xx = 2 digit hex number RSR = Received Code Off, xx = 2 digit hex number Note: The received code consists of 5 two bit hex numbers separated by a “.”. Valid characters for xx are 0-9, A, B, C, D, E, F. Commands that can be sent to the ELITE-S panel The following lists of “Commands” are signals that can be sent to the control panel via the RS232 interface. They allow external devices to initiate certain functions at the panel such as sending a code to disarm the panel or turn outputs on or off. NOTE: The messages are case sensitive and all letters sent must be capital letters. Also if sending the messages manually via HyperTerminal the message must be sent as one complete string, you cannot edit the string if you make a mistake. If a mistake is made the complete message should be sent again. After entering in the command string you must press the key on the computer keyboard to send the command to the panel (sending an “E” for ENTER as part of our command buss message does not replace the computer keyboard ). KEYS COMMAND It is possible to mimic many of the functions available on the ELITE-S keypad by sending characters to the panel via the RS232 interface board. The “KEYS” command allows single keys or a group of keys to be sent to the control panel KEYS_xx E KEYS_ = Signals to the control panel that a single key or a string of keys from the list below are to be sent, x = Key value/s from the list below (letters MUST be in capitals).. E= Computer keyboard Enter. There should be NO spaces between any of the characters. If the entry was accepted the board should send an OK!! Message. If the OK!! Message is not received the message should be re-sent. An example of a “KEYS” command would be the command string “KEYS_123E”. The panel will receive the code 123 ENTER and respond accordingly. Another example is if the command string “KEYS_R” was sent via the RS232 board the panel will receive an ARM button pressed signal. It should be noted that any commands sent by the RS232 board are conditional on the programmed options for the keypad address assigned to the board (typically P71-P93E). Also, the panel stores any commands sent from the RS232 board for a period of 40 seconds so if an incorrect string was sent to the panel it is advisable to send “KEYS_E” to the panel which will clear the keypad buffer at the panel by sending an ENTER button, ie if the command string “KEYS_123” was sent to the panel without the E command the panel will not action the code because the enter button was not sent. If you now sent the command again within 40 seconds of sending the first command string expecting it to work ie “KEYS_123E” the panel will actually receive 123123E because the first 123 will not have been cleared and it will also not work. After that, if the correct command string was sent again including the E it will work because the previous command that included the E would have cleared the keypad buffer at the panel. KEY VALUE LIST 0 = KEY ’0’ 1 = KEY ‘1’ 2 = KEY ’2’ 3 = KEY ’3’ 4 = KEY ’4’ 5 = KEY ’5’ 6 = KEY ’6’ 7 = KEY ’7’ 8 = KEY ’8’ 9 = KEY ’9’ C N R S X P E A B H = = = = = = = = = = KEY ’CONTROL’ KEY ’PANIC’ KEY ’ARM’ KEY ’STAY’ KEY ’EXCL’ KEY ’PROG’ KEY ’ENTER’ KEY ’A’ KEY ’B’ KEY ’CHIME’ It is also possible to enter program mode via the RS232 board but this is not recommended because there is no feedback provided from the panel. If you forget to enter in “KEYS_PE” (to exit program mode from the RS232 board) when finished the panel will remain in program mode at that keypad which will stop any other normal keypads from being able to enter program mode. It will also inhibit tamper and 24 hour alarms plus stop the panel from being able to be armed until the RS232 board is out of program mode. NEWCODE COMMAND It is possible to save up to 10 1-6 digit codes at the RS232 board itself. These codes can be used to arm/disarm the control panel or operate outputs (the same code must already be programmed in the ELITE-S control panel for this to work). Once the code or codes have been saved at the RS232 board you can then use the “CODE” command (see below) to send the pre-programmed code to the control panel. NEWCODE#_xE E NEWCODE = Indicates we wish to save a local code at the RS232 board There are 10 memory locations for codes and each can be 1-6 digits in length. # = A value from 0-9 to show which of the 10 local code slots we wish to save the new code. _ = Acts as a separator between the storage location 0-9 and the actual code data. x..= Numeric code number to be saved. Code can be 1-6 digits long. E = The “E” represents the panel keypad button. If the “E” is not programmed as part of a User code it will do nothing when sent to the ELITE-S. Some commands such as “R” for the ARM button may not need the E to be saved as part of the code. E= Computer keyboard Enter. There should be NO spaces between any of the characters. If the entry was accepted the board should send an OK!! Message. If the OK!! Message is not received the message should be re-sent. CODE COMMAND Once a code has been pre-programmed at one of the NEWCODE locations it can be sent to the control panel with the CODE command. For the code to work it must match an existing code already programmed into the control panel and the code must have the “E” command programmed as part of the code to ensure it will work properly (see NEWCODE programming information above). CODE# E CODE = Indicates to the RS232 board that we wish to send one of the 10 pre-programmed code numbers down the buss to the ELITE-S control panel, # = A value from 0-9 to select one of the 10 local codes to be sent to the ELITE-S control panel. E= Computer keyboard Enter. MEM COMMAND It is possible to request the memory events from the control. The events are displayed with the time and date that they occurred plus a brief description of what the event was. MEM E MEM = Enter memory display mode. E= Computer keyboard Enter. The RS232 board requests the events at 1-second intervals. If using HyperTerminal, each event is displayed on a new line until either the full 255 events have been retrieved or the memory request is terminated. EE E = When in memory display mode sending the “E” command (ENTER button) will terminate the memory mode. E= Computer keyboard Enter ? COMMAND If it the PC or OEM device would like to get the latest panel information you can send the “?” command. This will get all of the current information from the panel and send it out on the RS232 port. For example if the control panel was disarmed but the AC (mains) was currently off the following reports would be sent DA (Area A currently disarmed) DB (Area b currently disarmed) MF (Mains Failure) Also any currently unsealed zones and/or outputs that are currently turned on would be indicated in response to the “?” command as well. ?E ? = Display the current control panel status E= Computer keyboard Enter