User manual

V002450_25_CR1200-CR2-CR3-CR2500-CR3500_Interface_Configuration_Document_CLIENT.docx
2011-04-27 Page 12 of 65
© 2011 The Code Corporation
14870 S. Pony Express Rd., Suite 200, Bluffdale, UT 84065
(801) 495-2200
FAX (801) 495-0280
Serial Downloader programs using files with the .crb file extension. The .crb file contains one command
per line in the same format as text-command. (See Section 10).
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 %.
text-command: command-type encoded-data
opt
carriage-return
command-type: Single ASCII character in the set defined in Section 6.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
In order to eliminate inadvertent commanding of the Reader, Text Commands are disabled by
default (in firmware version 2216+).
To enable Text Commands requires an initial sequence: ;>PAx where x is as defined in section 8,
register setting 41. (Note: ‘A’ is the ASCII character that corresponds to 41 HEX.)
For example, to send the Reader commands by typing commands in HyperTerminal:
;>PA1
P(xx)yy
P(xx)yy
~
PA8
Where ;>PA1 enables text commands with echo and command responses; P%xxyy can be any desired
commands; ~ saves the settings just sent (the ~ command saves all but communication-related settings);
and PA8 turns text commands back off (except for the initial sequence). (Note: ‘A’ is the ASCII
character that corresponds to 41 hex, thus P%418 would be equivalent.)
Note: ;>PA1 is used for interactive text commands. If the commands are to be saved in a file and sent
non-interactively, use ;>PA7 instead; this enables text commands but disables echo and command
responses. (See Section 6.3, Section 8, and Section 10 for additional information.)
The following two examples can be sent to a Reader in RS232 mode from HyperTerminal by just typing
the example text.
Example 1 (make the Reader beep/vibrate 3 times):