4/14/2016
D014465 CR1400 CR1000 CR2300 CR2600 CR3600 CR44X5 CR8000 CR900FD CR6000 CR5000 T500 Client Version ICD
Page 13 of 106
© 2013-2016 The Code Corporation
12393 South Gateway Park Place Suite 600, Draper, UT 84020
(801) 495-2200
FAX (801) 495-0280
If a packet received by the Host from the Reader fails its CRC, the Host should send an R packet to the
Reader to request that the packet be resent.
7
Host to Reader Communication
Commands and data from the Host to the Reader are sent in the form of commands as specified in this
section.
Commands are normally sent in USB Native, VCOM, or RS232 modes. Commands may not be sent via
keyboard modes.
Two command formats are supported: text-command and packetized-command. Text-command
format is applicable to RS232 and VCOM modes but only if the Reader is configured to accept this
format. Packetized-command format is applicable to all interfaces.
text-command:
See Section 7.1.
packetized-command:
See Section 7.2.
The command types are explained in Section 7.3.
After the Host sends each complete command, it should wait for a response packet from the Reader.
Expected responses are specified along with the command types in section 7.3. If the Reader responds
with an ‘e’ packet or doesn’t respond within a reasonable timeout period, the Host should resend the
command a reasonable number of times.
7.1
Text Commands
Keywords: #TextCommands
Text commands may be sent to the Reader in RS232 or VCOM mode using any serial communications
software (e.g., HyperTerminal).
Encoded-data is decoded by the Reader by replacing %xx by a single byte with the value specified by
the two hex-digits xx- (e.g., %25 would be replaced by character number 0x25, which is ASCII ‘%’).
Language Part
Definition
text-command
command-type encoded-data
opt
carriage-return
command-type Single ASCII character in the set defined in Section 7.3
encoded-data
encoded-datum | encoded-data encoded-datum
encoded-datum printable-character | % hex-digit hex-digit
printable-
character
any byte value in the range [0x20,0x7E]
hex-digit
‘0’ | ‘1’ | ‘2’ | ‘3’ | ‘4’ | ‘5’ | ‘6’ | ‘7’ | ‘8’ | ‘9’| ‘A’ | ‘B’ | ‘C’ | ‘D’ | ‘E’ | ‘F’| ‘a’ | ‘b’
| ‘c’ | ‘d’ | ‘e’ | ‘f’
carriage-return 0x0D