Command set of the reader / command format
General
The command set, described in this chapter, defines the data exchange via the serial interface.
The commands consist of a command code and optional a parameter value. A command is completed by a
carriage return <CR>. It is used to detect the end of a command line.
Commands and parameters, that means letters and numbers, are transferred as ASCII code (e.g. the value
255 (decimal) is transferred as 0x32 (hex), 0x35, 0x35; the command RST as 0x52, 0x53, 0x54).
Input
The protocol has the following format:
<Command> <SP> <Parameter> <CR>
The space character <SP> is used as partition between command and parameter. The <CR> character is
used as end of the command.
Commands without parameters (e.g. GT or RST) are shorter:
<Command> <CR>
Output
Every input, that ends with a <CR>, is answered by the reader.
Following different answers are possible:
Command specific answer
After correct input of a command without parameter, the reader answers command specific e.g:
Command:
Answer:
Command:
Answer:
--------------------------------------------------------------------------11/21------------------------------------------------------------------------------------
GT <CR>
<Transponder number or no read message> <CR>
MD <CR>
<Parameter, in this case operation mode value, 0 or 2> <CR>