background image

4. Communications Protocol 

 
The module will communicate with the Application using the RS-232 interface (DB9 connector) on the board.   
 
All data is sent as hex ASCII codes.  The transmission from will consist of the following: 
 

CCC DDD…DDD CKS CR/LF 

 

CCC => 3 Digit Command 

This tells the module or the application what to do.  Commands are 3 characters long.  For example, the Status Command (001) would 
be sent as hex ASCII codes ‘30 30 31’.  See the following tables for a list of supported commands. 
 

DDD…DDD => Data Byte(s) 

This is the data that may be needed for the command.  For example, after the Partition Arm command (030), the application must 
specify which partition should be armed (1-8).  The following tables show what the data requirements are for each command.  Some 
commands, like the User Closing, have space holding zeros.   In this case all 4 digits are sent even though this module ever uses only 
two. 
 

CKS => Checksum 

The checksum is calculated by adding the hex value of all command and data digits, and truncating the result to 8 bits.  The upper and 
lower nibbles of the result are converted to ASCII characters before sending.  For example, a Partition Alarm on partition 3 would be 
sent like this: 
 
The command and data fields contain: 

 6   5   4     3 

The ASCII codes for this would be:  36 35 34   33 
36 + 35 + 34 + 33 = D2.  Since the result is already 8 bits we don’t have to worry about the length and simply send it. 
 

Format Command  Data  Checksum  CR/LF 
Code 

6   5   4 

D  2 

CR  LF 

ASCII 

36 35 34 

33 

44 32 

0D  0A 

 
 

CR/LF => Carriage Return & Line Feed 

Each transmission is followed with a carriage return (hex ASCII 0D) and a line feed (hex ASCII 0A) to indicate the end of a 
transmission. 

Содержание EnvisaLink S5401D

Страница 1: ...1 EnvisaLink S5401D DSC Compatible Serial Interface Module Developer s Guide Version 1 0...

Страница 2: ...3 3 S5401D Module Serial Connection 3 4 Communications Protocol 4 5 Application Originated Commands 5 6 S5401D Originated Commands 7 7 Special USER MASTER Code Requirements 9 8 Special Considerations...

Страница 3: ...ansmissions For information on each command refer to the command tables on pages 3 to 7 2 Developing Applications You can incorporate S5401D API commands in any application that can send and receive h...

Страница 4: ...ements are for each command Some commands like the User Closing have space holding zeros In this case all 4 digits are sent even though this module ever uses only two CKS Checksum The checksum is calc...

Страница 5: ...will attempt to arm the selected partition by using a User Code This is equivalent to entering a User Code while the partition is in the Ready mode 033 7 Partition 1 8 Code 4 6 digit Partition Disarm...

Страница 6: ...the module and the module will then send command 900 to tell the user to enter an access code The Code Send command transfers this code NOTE The code entered will be sent to the partition that sent th...

Страница 7: ...nsor this command displays the exterior temperature and the thermostat number NOTE The three digit temperature is a decimal representation of a signed byte 0 255 representing 127 to 127 degrees MSB is...

Страница 8: ...Delay in Progress A partition is in Exit Delay 656 1 Partition 1 8 Entry Delay in Progress A partition is in Entry Delay 657 1 Partition 1 8 Keypad Lock out A partition is in Keypad Lockout due to to...

Страница 9: ...be sent to perform the required action The code should be entered within the window time of the panel 900 0 NOTES 1 It is possible that when using a PC5020 Power 864 panel the very first command after...

Страница 10: ...r up the S5401D is not immediately aware of state of all the partitions nor the zones It is only when the S5401D detects a change in the state that it will know the true state and issue the appropriat...

Страница 11: ...Keybus Busy Lockout The panel is currently in Keypad Lockout too many disarm attempts 17 Keybus Busy Installers Mode Panel is in installers mode most functions are unavailable 18 Keybus Busy General B...

Страница 12: ...12 NOTES...

Отзывы: