User manual
V002450_25_CR1200-CR2-CR3-CR2500-CR3500_Interface_Configuration_Document_CLIENT.docx
2011-04-27 Page 7 of 65
© 2011 The Code Corporation
•
14870 S. Pony Express Rd., Suite 200, Bluffdale, UT 84065
•
(801) 495-2200
•
FAX (801) 495-0280
cmd-packet-number: any byte value in the range [80-ff]; increments with each packet; does not
increment with resends; used with all packets other than z and a
timestamp (4 bytes): big-endian 32-bit number, indicates timestamp in seconds (relative to Reader
power-up or last time set in Reader) (For all but z packets, the timestamp
represents the time the packet was sent to the Host; for z packets, the time the
code was read.)
timestamp (3 bytes): three characters in range [0,127], most significant character first, indicates 21-bit
timestamp in seconds (relative to Reader power-up or last time set in Reader) (for
all but z packets, the timestamp represents the time the packet was sent to the
Host; for z packets, the time the code was read)
data-size: big-endian 16-bit number indicating size of the data field (in bytes)
character: byte
| keyboard-sequence
byte: any byte value in range [0x00,0xFF]
keyboard-sequence: key
| shift↓ key shift↑
| alt↓ decimal-code alt↑
key: ~ | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | =
| q | w | e | r | t | y | u | i | o | p | [ | ] | \
| a | s | d | f | g | h | j | k | l | ; | ’
| z | x | c | v | b | n | m | , | . | /
| space
| esc | tab | shift | alt | ctrl | enter | backspace
| f1 | f2 | f3 | f4 | f5 | f6 | f7 | f8 | f9 | f10 | f11 | f12
| insert | delete | home | end | pageup | pagedown
| left | right | up | down | keypadenter
| digit
decimal-code: digit | digit digit | digit digit digit (range [0,255])
digit: keypad0 | keypad1 | keypad2 | keypad3 | keypad4
| keypad5 | keypad6 | keypad7 | keypad8 | keypad9
crc16: big-endian 16-bit number representing crc16 of the packet, calculated over the
entire packet, excluding the crc16 itself. (See source files crc16.[hc] (Appendix)
for details on the crc16 algorithm and polynomials to be used.)
crc14: two consecutive bytes, each in range [0,127], representing a crc16 bitwise AND
with 0x7f7f, most significant byte first. The packet crc16 is calculated over the
entire packet, excluding the prefix and the crc14 itself. (See source files
crc16.[hc] (Appendix) for details on the crc16 algorithm and polynomials to be
used.)
The following packet-types are defined: