User manual
V002450_25_CR1200-CR2-CR3-CR2500-CR3500_Interface_Configuration_Document_CLIENT.docx
2011-04-27 Page 11 of 65
© 2011 The Code Corporation
•
14870 S. Pony Express Rd., Suite 200, Bluffdale, UT 84065
•
(801) 495-2200
•
FAX (801) 495-0280
‘i’ (non-z) packet:
packet-start CodeXML
®
‘i’ response packet-end
SOH ‘X’ ‘R’ ‘0’
packet
number
(1 byte)
time stamp
(3 bytes)
data size
(2 bytes)
SOH ‘X’ RS ‘ap/’ ‘i’
VVVVWWWWXX
XXSSSSSSSSSSP
EOT
crc14
(2 bytes)
Figure 1: Example ‘z’ and ‘i’ Packets in Raw and Packet Modes
Optionally, whenever the Host receives a packet, the Host will respond by sending a Y or R packet
(defined in the Host to Reader Communication section) to the Reader. If the expectResponse option is
enabled in the Reader configuration, the Reader will repeatedly retransmit the packet (a configurable
number of times) until it receives a Y packet.
If a packet received by the Host has a packet-type that is not any of the valid types listed above or has
the same packet-number as the last processed packet of the corresponding type (command or data), the
entire packet – up to and including end or until timeout – should be discarded by the Host. If the Host
had requested a response, it should reissue the request.
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.
6 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, RS232, and Bluetooth
®
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 Bluetooth
®
modes but only if the Reader is configured to accept this format.
Packetized-command format is applicable to all interfaces.
text-command: See Section 6.1.
normal-command: See Section 6.2.
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 6.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.
6.1 Text Commands
Text commands may be sent to the Reader in RS232, USB Virtual COM mode, or RF mode using any
serial communications software, e.g., HyperTerminal. Text commands may also be sent via the USB and