RTscan RT211 User manual

RT211 User Guide
RT211
OEM Barcode Engine
User Guide

RT211 User Guide
Table of Contents
Chapter 1 Getting Started................................................................................................................................................ 1
Introduction.................................................................................................................................................................. 1
About This Guide...........................................................................................................................................................1
Barcode Programming..................................................................................................................................................2
Configuring the RT211................................................................................................................................................. 3
Barcode Programming...........................................................................................................................................3
Command Programming....................................................................................................................................... 3
Read Register..........................................................................................................................................................4
Write Register.........................................................................................................................................................8
Save Register Data in EEPROM...........................................................................................................................12
Relationship between Programming Command and Serial Command.......................................................... 14
Programming Barcode Data...................................................................................................................................... 16
Factory Defaults.......................................................................................................................................................... 16
Chapter 2 Communication Interfaces......................................................................................................................... 17
RS-232 Interface......................................................................................................................................................... 17
Baud Rate..............................................................................................................................................................18
USB Interface...............................................................................................................................................................19
USB DATAPIPE......................................................................................................................................................19
USB HID-KBW...................................................................................................................................................... 19
Standard Keyboard.............................................................................................................................................. 19
Emulate ALT+Keypad.......................................................................................................................................... 20
Function Key Mapping.........................................................................................................................................20
ASCII Function Key Mapping Table.................................................................................................................... 21
USB Country Keyboard Types.............................................................................................................................22
Beep on Unknown Character..............................................................................................................................25
Inter-Keystroke Delay......................................................................................................................................... 25
Caps Lock..............................................................................................................................................................26
Convert Case.........................................................................................................................................................27
Emulate Numeric Keypad................................................................................................................................... 28
USB COM Port Emulation....................................................................................................................................29
USB DATAPIPE......................................................................................................................................................29
HID-POS................................................................................................................................................................ 30
Access the Scanner with Your Program.............................................................................................................30
Acquire Scanned Data..........................................................................................................................................31
VID/PID................................................................................................................................................................ 31

RT211 User Guide
Chapter 3 Scan Mode...................................................................................................................................................... 32
Manual Mode........................................................................................................................................................32
Continuous Mode.................................................................................................................................................32
Decode Session Timeout..................................................................................................................................... 33
Timeout between Decodes................................................................................................................................. 33
Sense Mode...........................................................................................................................................................34
Decode Session Timeout..................................................................................................................................... 34
Timeout between Decodes................................................................................................................................. 35
Image Stabilization Timeout...............................................................................................................................35
Sensitivity............................................................................................................................................................. 36
Command Trigger Mode..................................................................................................................................... 37
Decode Session Timeout..................................................................................................................................... 37
Chapter 4 Illumination & Aiming.................................................................................................................................38
Illumination..........................................................................................................................................................38
Aiming...................................................................................................................................................................39
Chapter 5 Notification.................................................................................................................................................... 40
Mute Mode............................................................................................................................................................40
Good Read Beep................................................................................................................................................... 40
Good Read Beep Frequency................................................................................................................................ 41
Good Read Beep Duration...................................................................................................................................41
Good Read LED.....................................................................................................................................................42
Decode Result Notification................................................................................................................................. 42
Chapter 6 Prefix & Suffix................................................................................................................................................43
AIM ID Prefix........................................................................................................................................................ 43
CODE ID Prefix..................................................................................................................................................... 44
Terminating Character Suffix..............................................................................................................................45
Chapter 7 Symbologies...................................................................................................................................................46
Global Settings..................................................................................................................................................... 46
Enable/Disable All Symbologies........................................................................................................................ 46
Enable/Disable 1D Symbologies........................................................................................................................ 46
Enable/Disable 2D Symbologies........................................................................................................................ 46
Video Reverse.......................................................................................................................................................47
1D Symbologies....................................................................................................................................................48
Code 128...............................................................................................................................................................48
Restore Factory Defaults..................................................................................................................................... 48
Enable/Disable Code 128................................................................................................................................... 48
UCC/EAN-128 (GS1-128)....................................................................................................................................49
Restore Factory Defaults..................................................................................................................................... 49
Enable/Disable UCC/EAN-128...........................................................................................................................49

RT211 User Guide
AIM 128................................................................................................................................................................ 50
Restore Factory Defaults..................................................................................................................................... 50
Enable/Disable AIM 128..................................................................................................................................... 50
EAN-8.................................................................................................................................................................... 51
Restore Factory Defaults..................................................................................................................................... 51
Enable/Disable EAN-8.........................................................................................................................................51
Transmit Check Digit........................................................................................................................................... 51
Add-On Code........................................................................................................................................................ 52
Add-On Code Required........................................................................................................................................53
EAN-8 Extension.................................................................................................................................................. 53
EAN-13..................................................................................................................................................................54
Restore Factory Defaults..................................................................................................................................... 54
Enable/Disable EAN-13...................................................................................................................................... 54
Transmit Check Digit........................................................................................................................................... 54
Add-On Code........................................................................................................................................................ 55
Add-On Code Required........................................................................................................................................56
ISSN....................................................................................................................................................................... 57
Restore Factory Defaults..................................................................................................................................... 57
Enable/Disable ISSN............................................................................................................................................57
ISBN.......................................................................................................................................................................58
Restore Factory Defaults..................................................................................................................................... 58
Enable/Disable ISBN........................................................................................................................................... 58
Set ISBN Format...................................................................................................................................................58
UPC-E.................................................................................................................................................................... 59
Restore Factory Defaults..................................................................................................................................... 59
Enable/Disable UPC-E.........................................................................................................................................59
Transmit Check Digit........................................................................................................................................... 59
Add-On Code........................................................................................................................................................ 60
Add-On Code Required........................................................................................................................................61
Transmit System Character.................................................................................................................................61
UPC-E Extension.................................................................................................................................................. 61
UPC-A.................................................................................................................................................................... 62
Restore Factory Defaults..................................................................................................................................... 62
Enable/Disable UPC-A.........................................................................................................................................62
Transmit Check Digit........................................................................................................................................... 62
Add-On Code........................................................................................................................................................ 63
Add-On Code Required........................................................................................................................................64
Transmit Preamble Character............................................................................................................................ 64
Interleaved 2 of 5................................................................................................................................................. 65
Restore Factory Defaults..................................................................................................................................... 65
Enable/Disable Interleaved 2 of 5......................................................................................................................65
Check Digit Verification.......................................................................................................................................66

RT211 User Guide
Transmit Appended “0”.......................................................................................................................................67
ITF-6......................................................................................................................................................................68
ITF-14................................................................................................................................................................... 69
Matrix 2 of 5......................................................................................................................................................... 70
Restore Factory Defaults..................................................................................................................................... 70
Enable/Disable Matrix 2 of 5..............................................................................................................................70
Check Digit Verification.......................................................................................................................................71
Industrial 25.........................................................................................................................................................72
Restore Factory Defaults..................................................................................................................................... 72
Enable/Disable Industrial 25............................................................................................................................. 72
Check Digit Verification.......................................................................................................................................73
Standard 25.......................................................................................................................................................... 74
Restore Factory Defaults..................................................................................................................................... 74
Enable/Disable Standard 25...............................................................................................................................74
Check Digit Verification.......................................................................................................................................75
Code 39................................................................................................................................................................. 76
Restore Factory Defaults..................................................................................................................................... 76
Enable/Disable Code 39......................................................................................................................................76
Check Digit Verification.......................................................................................................................................77
Enable/Disable Code 39 Full ASCII.................................................................................................................... 77
Codabar.................................................................................................................................................................78
Restore Factory Defaults..................................................................................................................................... 78
Enable/Disable Codabar..................................................................................................................................... 78
Check Digit Verification.......................................................................................................................................79
Code 93................................................................................................................................................................. 81
Restore Factory Defaults..................................................................................................................................... 81
Enable/Disable Code 93......................................................................................................................................81
Check Digit Verification.......................................................................................................................................82
Code 11................................................................................................................................................................. 83
Restore Factory Defaults..................................................................................................................................... 83
Enable/Disable Code 11......................................................................................................................................83
Check Digit Verification.......................................................................................................................................84
Plessey.................................................................................................................................................................. 85
Restore Factory Defaults..................................................................................................................................... 85
Enable/Disable Plessey.......................................................................................................................................85
Check Digit Verification.......................................................................................................................................86
MSI-Plessey.......................................................................................................................................................... 87
Restore Factory Defaults..................................................................................................................................... 87
Enable/Disable MSI-Plessey...............................................................................................................................87
Check Digit Verification.......................................................................................................................................88
RSS-Limited.......................................................................................................................................................... 89
Restore Factory Defaults..................................................................................................................................... 89

RT211 User Guide
Enable/Disable RSS-14....................................................................................................................................... 89
Transmit Application Identifier “01”................................................................................................................. 89
RSS-Limited.......................................................................................................................................................... 90
Restore Factory Defaults..................................................................................................................................... 90
Enable/Disable RSS-Limited...............................................................................................................................90
Transmit Application Identifier “01”................................................................................................................. 90
RSS-Expand.......................................................................................................................................................... 91
Restore Factory Defaults..................................................................................................................................... 91
Enable/Disable RSS-Expand...............................................................................................................................91
2D Symbologies....................................................................................................................................................92
PDF417................................................................................................................................................................. 92
Restore Factory Defaults..................................................................................................................................... 92
Enable/Disable PDF417......................................................................................................................................92
Data Matrix...........................................................................................................................................................93
Restore Factory Defaults..................................................................................................................................... 93
Enable/Disable Data Matrix............................................................................................................................... 93
Rectangular Barcodes..........................................................................................................................................93
Mirror Images...................................................................................................................................................... 94
QR Code................................................................................................................................................................ 95
Restore Factory Defaults..................................................................................................................................... 95
Enable/Disable QR Code..................................................................................................................................... 95
Micro QR............................................................................................................................................................... 95
Mirrored Micro QR...............................................................................................................................................95
Chinese Sensible Code.........................................................................................................................................96
Restore Factory Defaults..................................................................................................................................... 96
Enable/Disable Chinese Sensible Code............................................................................................................. 96
Appendix........................................................................................................................................................................... 97
Appendix A: Factory Defaults Table................................................................................................................... 97
Appendix B: AIM ID Table.................................................................................................................................103
Appendix C: Code ID Table................................................................................................................................106
Appendix D: ASCII Table................................................................................................................................... 107
Appendix E: Parameter Programming Examples............................................................................................111
Program the Decode Session Timeout............................................................................................................. 111
Program the Timeout between Decodes......................................................................................................... 111
Program the Image Stabilization Timeout.......................................................................................................111
Program the Sensitivity Level........................................................................................................................... 111
Appendix F: Digit Barcodes...............................................................................................................................112
Appendix G: Save/Cancel Barcodes................................................................................................................. 115
Appendix H: Frequently-Used Serial Commands........................................................................................... 116

1
RT211 User Guide
Chapter 1 Getting Started
Introduction
The RT211 hand-held barcode scanner (hereinafter referred to as “RT211 scanner” or “the scanner”),
armed with a computerized image recognition system-on-chip, bring about a new era of 2D barcode scanner.
The RT211’s 2D barcode decoder chip ingeniously blends image recognition algorithm and advanced chip
design & manufacturing, which significantly simplifies application design and delivers superior performance
and solid reliability with low power consumption.
The RT211 supports all mainstream 1D and standard 2D barcode symbologies (e.g., PDF417, QR Code, Data
Matrix and Chinese Sensible Code) as well as GS1-DataBarTM(RSS) (Limited/Stacked/Expanded versions). It
can read barcodes on virtually any medium - paper, plastic card, mobile phones and LCD displays.
This compact, lightweight engine fits easily into even the most space-constrained equipment such as
data collectors, meter readers, ticket validators and PDAs.
The RT211's instant start-up feature allows for a complete shutdown of the current in the application.
Instantly starting bar code recognition when needed, and bring convenience and quickness to applications
with ultra-low power consumption.
About This Guide
This guide provides programming instructions for the RT211. Users can configure the RT211 by scanning the
programming barcodes included in this manual.
The RT211 has been properly configured for most applications and can be put into use without further
configuration. Users may check Appendix A: Factory Defaults Table for reference. Throughout the manual,
asterisks (**) indicate factory default values.

2
RT211 User Guide
Connecting EVK to PC
The EVK tool is provided to assist users in application development for the RT211. You can connect
the EVK to PC via a USB connection or an RS-232 connection. In case of USB connection, a driver is
required if PC wants to communicate with RT211 and receive decoded data through virtual serial
port.
Barcode Scanning
Powered by area-imaging technology, the RT211 features fast scanning and accurate decoding. Barcodes rotated at any angle can still be
read with ease. When scanning a barcode, simply center the aiming beam or pattern projected by the RT211 over the barcode.
Barcode Programming
The user can use the setup bar code or serial port instructions to set the reading engine.

3
RT211 User Guide
Configuring the RT211
There are two ways to configure the scanner: barcode programming and command programming.
Barcode Programming
The scanner can be configured by scanning programming barcodes. All user programmable features/options
are described along with their programming barcodes/commands in the following sections.
Command Programming
Besides the barcode programming method, the scanner can also be configured by serial commands sent from
the host device. Note that communication parameters on the scanner and the host must match so that two
devices can communicate with each other. The default settings of the scanner are 9600bps, no parity check, 8
data bits, 1 stop bit, and no flow control. The scanner uses 8-bit registers.

4
RT211 User Guide
Read Register
The read command is used to read the contents of 1 to 256 contiguous registers in the scanner.
Syntax: {Prefix1} {Types} {Lens} {Address} {Datas} {FCS}
Prefix1 : 0x7E 0x00
Types : 0x07
Lens : 0x01
Address: 0x0000~0x00FF, starting register address.
Datas : 0x00~0xFF, number of registers to be read. When Datas=0x00, 256 contiguous registers
are to be read.
FCS : CRC-CCITT checksum, 2 bytes.
Computation sequence: Types+ Lens+Address+Datas;
calculate method is CRC_CCITT
polynomial: X16+X12+X5+1(0x1021), initial value: 0x0000.
The highest bit is calculated first for a single byte, and there is no need to invert the direct
output. The following C language program is provided for reference.

5
RT211 User Guide
unsigned int crc_cal_by_bit (unsigned char* ptr, unsigned int len)
{
unsigned int crc = 0;
while(len-- != 0)
{
for(unsigned char i = 0x80; i != 0; i /= 2)
{
crc *= 2;
if((crc&0x10000) !=0) //After previvous CRC multiplied by 2, if the first bit is 1, then divide by 0x11021
crc ^= 0x11021;
if((*ptr&i) != 0) //If current bit is 1, then CRC = Previous CRC + current/CRC_CCITT, Crc ^= 0x1021
crc ^= 0x1021;
}
ptr++;
}
return crc;
}

6
RT211 User Guide
Reply: {Prefix2} {Types} {Lens} {Datas} {FCS}
1) Success message:
Prefix2 : 0x02 0x00
Types : 0x00 (success)
Lens : The number of data returned. If Lens=0x00, that means values of 256 contiguous registers
are returned.
Datas : 0x00~0xFF, data that are returned.
FCS : CRC-CCITT checksum. Computation sequence: Types+ Lens+Address+Datas;
calculate method is CRC_CCITT
polynomial: X16+X12+X5+1(0x1021), initial value: 0x0000.
The highest bit is calculated first for a single byte, and there is no need to invert the direct
output. (reference code is as above).
2) CRC check failure message:
Prefix2 : 0x02 0x00
Types : 0x01 (CRC check failure)
Lens : 0x01 (the number of data returned)
Datas : 0x00 (no practical significance (1 byte)
FCS : CRC-CCITT checksum (0x04 0x01)
3) Invalid command message:
Prefix2 : 0x02 0x00
Types : 0x03 (invalid command)
Lens : 0x01 (the number of data returned)
Datas : 0x00 (no practical significance (1 byte)
FCS : CRC-CCITT checksum (0x6A 0x61)

7
RT211 User Guide
Example:
Read the content of register 0x000A
1) Read operation succeeds: 0x3E returned
Enter: 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01 0xEE 0x8A
Response: 0x02 0x00 0x00 0x01 0x3E 0xE4 0xAC
2) FCS check fails:
Enter: 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01 0x11 0x22
Response: 0x02 0x00 0x01 0x01 0x00 0x04 0x01
3) Situations that may cause the scanner to respond with an invalid command message: Command sent is
shorter than the required length, or the third byte is not sent out within 400ms after the first two bytes
“0x7e 0x00” are sent
Enter: 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01
Response: 0x02 0x00 0x03 0x01 0x00 0x6A 0x61

8
RT211 User Guide
Write Register
The write command is used to write contiguous registers (1 to 256 registers) in the scanner.
Syntax: {Prefix1} {Types} {Lens} {Address} {Datas} {FCS}
Prefix1 : 0x7E 0x00 (2 bytes)
Types : 0x08 (1 byte)
Lens : 0x00~0xFF (1 byte), byte count, also number of registers written. When Lens=0x00, 256
contiguous registers are to be written.
Address : 0x0000~0xFFFF (2 bytes), starting register address.
Datas : 0x00~0xFF (1~256 bytes), data to be written into the register(s)
FCS : CRC-CCITT checksum, 2 bytes.
Computation sequence: Types+ Lens+Address+Datas;
polynomial: X16+X12+X5+1 (0x1021), initial value: 0x0000.
The highest bit is calculated first for a single byte, and it is directly output without
reversing.The following C language program is provided for reference.

9
RT211 User Guide
unsigned int crc_cal_by_bit(unsigned char* ptr, unsigned int len)
{
unsigned int crc = 0;
while(len-- != 0)
{
for(unsigned char i = 0x80; i != 0; i /= 2)
{
crc *= 2;
if((crc&0x10000) !=0) // After previvous CRC multiplied by 2, if the first bit is 1, then divide by 0x11021
crc ^= 0x11021;
if((*ptr&i) != 0) // If current bit is 1, then CRC = Previous CRC + current/CRC_CCITT, Crc ^= 0x1021;
crc ^= 0x1021;
}
ptr++;
}
return crc;
}

10
RT211 User Guide
Response: {Prefix2} {Types} {Lens} {Datas} {FCS}
1) Success message:
Prefix2 :0x02 0x00
Types : 0x00 (success)
Lens : 0x01
Datas : 0x00
FCS : CRC-CCITT checksum (0x33 0x31)
2) FCS check failure message:
Prefix2 : 0x02 0x00
Types : 0x01 (FCS check failure)
Lens : 0x01
Datas : 0x00
FCS : CRC-CCITT checksum (0x04 0x01)
3) Invalid command message:
Prefix2 : 0x02 0x00
Types : 0x03 (invalid command)
Lens : 0x01
Datas : 0x00
FCS : CRC-CCITT checksum (0x6A 0x61)

11
RT211 User Guide
Example:
Write 0x3E into register 0x000A
1) Write operation succeeds:
Enter: 0x7E 0x00 0x08 0x01 0x00 0x0A 0x3E 0x4C 0xCF
Response: 0x02 0x00 0x00 0x01 0x00 0x33 0x31
2) FCS check fails:
Enter: 0x7E 0x00 0x08 0x01 0x00 0x0A 0x3E 0x11 0x22
Response: 0x02 0x00 0x01 0x01 0x00 0x04 0x01
3) Situations that may cause the scanner to respond with an invalid command message: Command sent is
shorter than the required length, or the third byte is not sent out within 400ms after the first two bytes
“0x7e 0x00” are sent
Enter: 0x7E 0x00 0x08 0x01 0x00 0x0A 0x3E
Response: 0x02 0x00 0x03 0x01 0x00 0x6A 0x61

12
RT211 User Guide
Save Register Data in EEPROM
The save command is used to save register data into an external EEPROM.
Syntax: {Prefix1} {Types} {Lens} {Address} {Datas} {FCS}
Prefix1 : 0x7E 0x00
Types : 0x09
Lens : 0x01
Address: 0x0000
Datas : 0x00
FCS : CRC-CCITT checksum (0xDE 0xC8)
Response: {Prefix2} {Types} {Lens} {Datas} {FCS}
1) Success message:
Prefix2 : 0x02 0x00
Types : 0x00 (success)
Lens : 0x01
Datas : 0x00
FCS : CRC-CCITT checksum (0x33 0x31)
2) FCS check failure message:
Prefix2 : 0x02 0x00
Types : 0x01 (FCS check failure)
Lens : 0x01
Datas : 0x00
FCS : CRC-CCITT checksum (0x04 0x01)

13
RT211 User Guide
3) Invalid command message:
Prefix2 : 0x02 0x00
Types : 0x03 (invalid command)
Lens : 0x01
Datas : 0x00
FCS : CRC-CCITT checksum (0x6A 0x61)

14
RT211 User Guide
Relationship between Programming Command and Serial Command
1. Program general parameter with serial command
A programming command (i.e. the characters under programming barcode) contains 7 characters. The
function of each character is described in the table below.
1st Char
2nd Char ~3rd Char
4th Char~5th Char
6th Char~7th Char
Remark
CMD
BITPOSITION
ADDR
DATA
“W”
“00”~“FF”
“00”~“FF”
“00”~“FF”
Write a value (DATA) to the
specified bits (BITPOSITION) of
the register (ADDR).
Note:1. CMD: Command type.
2. ADDR: Address of register to be written.
3. BITPOSITION: Bit(s) the value is written to. For example, the BITPOSITION = “08”, only bit 3 is to be
written; the BITPOSITION = “FF”, if all bits Bit7 ~ Bit0 should to be written.
4. DATA: Value written to the BITPOSITION.
The ADDR and DATA in programming command correspond to Address and Datas in serial command,
respectively:
1) If BITPOSITION=”FF”, the values of ADDR and DATA can be used directly in the write command.
e.g., programming command: WFFD9D8 (write value 0xD8 to register 0x00D9)
Enter: 0x7E 0x00 0x08 0x01 0x00 0xD9 0xD8 0x91 0x53
Respose: 0x02 0x00 0x00 0x01 0x00 0x33 0x31
2) If BITPOSITION≠”FF”, users need to read the register content, calculate the value (Datas) and then write
the value into the register, as shown in the following example.
e.g., programming command: W030002 (write value 0x02 to bit1and bit0 of register 0x0000)
Step 1: Read the content of register 0x0000.
Other manuals for RT211
1
Table of contents
Other RTscan Scanner manuals