User's Manual Part 1

13,56 MHz Multitag Reader Module, Version 0.9v
ACG Identification Technologies AT Page 16
5 Software
As a default data is transmitted at 9600,n,8,1. Two protocol modes are supported.
The protocol mode is configured in the reader EEPROM. As factory default, the
ASCII protocol is used.
5.1 ASCII Protocol
This protocol was designed for easy handling. The commands can be issued using a
terminal program. Data is transmitted as ASCII hexadecimal that can be displayed on
any terminal program (e.g. HyperTerminal).
Command Data
Various length Various length
Figure 5-1: ASCII protocol frame
5.2 Binary Protocol
This protocol was designed for industrial applications with synchronization and frame
checking. Also an addressing byte for party lines (master slave, multi drop) is
included.
The protocol usually requires a device driver. Data is transmitted binary.
STX Station ID Length Data BCC ETX
1 byte 1 byte 1 byte Various length 1 byte 1 byte
Figure 5-2: Binary protocol frame
5.2.1 STX
Start of transmission (02h)
5.2.2 Station ID
Unique ID of the station
00h: reserved for the bus master. Readers send response to this device ID
FFh: Broadcast message. All devices will execute the command.
5.2.3 Length
Length of the data block
5.2.4 Data
This part contains the command and data. The command values are the same as in
ASCII protocol mode (‘x’, ‘s’, …). Data is transmitted binary.
The length of the command block depends on the instruction.
5.2.5 Block Check Character (BCC)
The BCC is used to detect transmission errors. The BCC is calculated XORing each
byte of the transmission frame excluding the STX/BCC and ETX character.
)/(...)/()()(
0 N
DataCommandxorxorDataCommandxorLengthxorStatIDBCC =