
22
C005383_10 CR80XX Integration Guide
5.1 – Serial Commands
5 - Configuration
The CR8000 engine can be configured by scanning barcodes or by
sending serial commands. The following is an overview of the serial
command functionality. The details are documented in the Interface
Configuration Document (ICD), which is available on the Code
website (www.codecorp.com).
Serial commands can be sent in two formats. The default format is
referred to as a packetized command. A packetized command contains
the following structure and are valid values for each component of the
packetized command:
Prefix:
0xEE 0xEE 0xEE 0xEE
Command Type:
Single ASCII character representing command
Data Size:
Byte value in range [0,240], which indicates size
of Data (in bytes)
Datum/Data:
Any byte value in the range [0,255]
Reserved:
0x00
CRC14:
Two consecutive bytes, each in range [0,127], representing a
check digit for the packet being sent.
The complete list of commands and valid data options are listed in the ICD.
The below is an example of the sequence of hex values that would cause the
reader to beep:
0xEE 0xEE 0xEE 0xEE 0x23 0x01 0x03 0x00 0x4E 0x71
This sends the reader the ‘#’ command with a value of 3, which will cause
the reader to beep three times.
A simpler method is referred to as text commands. In order to
eliminate inadvertent commanding of the reader, text commands
are disabled by default. Text commands can be enabled by sending
the following sequence:
;>PA1 0x0d
This sets register
0x41
to 1, which enables text commands to be sent. The
following sequence could also be sent, which will enable text commands but
suppresses echo and responses:
;>PA7 0x0d
Once text commands are enabled you can execute commands by
sending only the command. No packet is required. For example,
the same packetized beep command described above in text
command format would be:
#%03 0x0d
or
#0x03 0x0d
The reader will convert %xx characters to the ASCII values represented by
the xx. In the example above %03 is also 0x03 or the ETX ASCII character.
The reader will respond with an appropriate response after
a command is received (if responses are enabled).
The complete documentation of the available commands, reader responses
and registers are documented in the Interface Configuration Document
(ICD), available at www.codecorp.com