RFID Communications
6.6 ABx ASCII Protocol
The ABx ASCII Protocol is based on the ABx Fast protocol. It uses the same headers and terminator (already ASCII characters) and converts the hex value of command and data bytes to printable ASCII (two- digit hexadecimal notation). In another words, the hex values given in an ABx Fast command are transmitted as separate ASCII characters. Since it is an ASCII protocol, the Xon/Xoff handshake can be used.
Command Packet Structure
The command protocol is based on the following minimal packet structure. The data field and the checksum may not be present depending on the command type and your checksum setting.
6.6.1 ABx ASCII Protocol Command Structure
Field | Number of ASCII | Content | |
Characters | |||
|
| ||
Header | 2 | <STX><STX> | |
|
| (02H, 02H) | |
|
|
| |
Command Size | 4 | Packet length in bytes excluding the header, command size, checksum, and | |
|
| terminator bytes | |
|
|
| |
Command | 2 | Command Code | |
|
|
| |
(Data) | Variable | Command data/parameters | |
|
|
| |
Checksum | 2 | Optional checksum | |
|
|
| |
Terminator | 1 | <ETX>(03H) | |
|
|
|
Following a successful operation, the controller responds with the response structure shown in 6.6.2 ABx ASCII Protocol Response Structure. The data field and the checksum may not be present depending on the command and your checksum setting. If a checksum is enabled in the Configuration Menu, then it is always present for every command.
6.6.2 ABx ASCII Protocol Response Structure
| Number of |
|
Field | ASCII | Content |
| Characters |
|
Header | 2 | <STX><STX> |
|
| (02H, 02H) |
|
|
|
Response Size | 4 | Packet length in bytes excluding the header, command size, checksum, and |
|
| terminator bytes |
|
|
|
Command | 2 | Command echo |
|
|
|
(Data) | Variable | Response data |
|
|
|
Checksum | 2 | Optional checksum |
|
|
|
Terminator | 1 | <ETX> (03H) |
|
|
|
LRP2000 Passive Reader/Writer | 126 |