User manual
93
RS232 Event Generation/Text Insertion Protocol
The RS232 Alarm/Event Generation /Text Insertion Protocol is designed to deliver Alarm, Event (commands),
and Text data to the StoreSafe Pro II from serial interface devices through the RS232 port.
Note: Setting and Clearing Alarms with this Protocol is equivalent to activating and deactivating Alarms on the hardware
alarm inputs.
Message Structure
Message Type
One message is currently supported to store text along with recorded video.
CMD_NEW_ADD_TEXT
Class byte is 0x14.
Command byte is 0x40.
Data Length is the number of data bytes in the message (from 2 to 502).
Camera byte indicates the camera associated with the alarm, event, or text. The valid range is from 0 to 15.
Alarm/Event byte usage is described in the following section.
String fields contain text characters. The string length can be from 0 to 500 characters in length. The String
field is not required. If text data is available, it will be recorded with the next video frame for the camera
identified by the camera field.
Table 23.
Signal Description
Delimiter Signals the start of a new message, and has a value of 0xFF.
Class Identify the type of message.
Command
Data length A 16-bit value indicating the number of bytes in the Data portion of the
message. Data length is sent using Intel byte ordering (little endian).
Data
Check sum A result of XORing all the bytes in the message.
0xFF
0x14
0x40
Data length [0]
Data length [1]
Camera