User's Manual

Table Of Contents
StrongLink SL060
http://www.stronglink-rfid.com
6
4. Communication Protocol
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: 9600bps(default)
Data: 8 bits
Stop: 1 bit
Parity: None
Flow control: None
4.2 Communication Format
Host to Reader:
Preamble Len DeviceID Command Data Checksum
Preamble: 2 bytes equal to 0xAABB
Len: 2 bytes, indicating the number of bytes from DeviceID to Checksum
In this reader, the first byte is effective, the second byte keep 0
DeviceID: 2 bytes
Command: 2 bytes, Command code, see Table 3
Data: Variable length depends on the command code
Checksum: 1 byte, XOR of all the bytes from DeviceID to Data
Attention
If there is any byte equaling to AA occurs between Len and Checksum, one byte 00 will
be added after this byte to differentiate preamble. However, the Len keeps unchanged.
Example, writing data (0x00112233445566778899AABBCCDDEEFF) to block 1
Host->SL060:AABB1600000009020100112233445566778899AA00BBCCDDEEFF0A
Reader to Host:
Preamble Len DeviceID Command Status Data Checksum
Preamble: 2 bytes equal to 0xAABB
Len: 2 bytes, indicating the number of bytes from DeviceID to Checksum
In this reader, the first byte is effective, the second byte keep 0
DeviceID: 2 bytes
Command: 2 bytes
Status: 1 byte, 00 = success, Not 0 = fail
Data Range: Response data, may blank
Checksum: 1 byte, XOR of all the bytes from DeviceID to the last of the Command
Sending data