User's Manual
4. Command Set
4-1. Communication setting
The communication protocol is byte oriented. Both sending and receiving bytes are in
hexadecimal format. The communication parameters are as follows,
Baud rate: 38400 bps
Data: 8 bits
Stop: 1 bit
Parity: None
Flow control: None
4-2. Communication protocol
Format:
Host to Reader:
Header Len Command Data Checksum
Header: Communication header, 1 byte.
From host to module: 0xBA.
Len: Byte length counting from Command to Checksum inclusively, 1 byte. If Len
is 0x00, the coming two bytes represents the real length. High byte comes first.
Command: Command, 1 byte.
Data: Data, variable length depends on the command type.
Checksum: Exclusive ORed result from Header to Data inclusively, 1 byte.
Reader to Host:
Header Len Command Status Data Checksum
Header: Communication header, 1 byte.
From module to host: 0xBD.
Len: Byte length counting from Command to Checksum inclusively, 1 byte. If Len
is 0x00, the coming two bytes represents the real length. High byte comes first.
Command: Command, 1 byte.
Status: Command status, 1 byte
Data: Data, variable length depends on the command type.
Checksum: Exclusive ORed result from Header to Data inclusively, 1 byte.
Command Overview:
Command
Description
0xA3 Set the IP address and the Port Number of the Server
0xA4 Set the IP address and the Port Number of the Server by broadcast message
0xA5 Get the ID of a panel
0xA6 Set the ID of a panel