73
4 Operate the scanner by command via UART or USB virtual UART
Note:
1- The information in this chapter is provided for the scanner with RS232 cable or USB cable.
2- If the scanner is with USB cable, the setting of USB device type must be set as “USB virtual COM”.
Please refer to chapter of “
3-3 USB interface
”.
3-Please read the chapter of “
3-4 Scan mode & some global settings
” about the setting of Scanning
mode in details.
UART parameter should be set as below:
(1)
Baud rate: 300bps ~ 115200 bps;
(2)
Data bits: 8 bits;
(3)
Stop bit: 1 bit/2bit;
(4)
Parity check bit: None/Odd/Even;
(5)
Flow control: None, RTS/CTS, ACK/NAK.
Table 4-1 lists the commands that the scanner supports. The command is sent in data package format.
The data package format refers to “
4-1
Command data packet format
”
.The specific operation of each
command refers to the corresponding section.
Table 4-1 Command table
Num
Command name
Operation code
Description
1
CMD_ACK
0x59(‘Y’)
ACK
2
CMD_NAK
0x4E(‘N’)
NAK
3
DECODE_DATA
0x50(‘P’)
Packet Decode data
4
REQUEST_REVISION
0x56(‘V’)
Request scanner software revision
5
REPLY_REVISION
0x52(‘R’)
Reply scanner software revision
6
START_DECODE
0x53(‘S’)
Start decoding
7
STOP_DECODE
0x45(‘E’)
Stop decoding
8
PARAM_DEFAULT
0x25(‘%’)
Recover default parameter setting
9
PARAM_REQUEST
0x3F(‘?’)
Parameter requesting. Support to check some types
of parameter property (max value, min value, current
permanent setting, default setting and so on) .
10
PARAM_SEND
0x23(‘#’)
Parameter transmission. The host asks the scanner to
change one or more parameters’ setting.
11
UPGRADE
0x55(‘U’)
Upgrade loader or application
12
CMD_RESTART
0x5e(‘^’)
Restart the scanner
13
GOOD_READ_START
Start to decode to identify whether the barcode is
readable or not
14
GOOD_READ_STOP
Stop executing GOOD_READ_START command
Note:
When executes the START_DECODE command, it only can be interrupted by the STOP_DECODE
command. And when executes the other commands, it can’t be interrupted by any other commands.
Содержание ES4200
Страница 1: ...ES4200 Embedded Laser Barcode Scanner User Manual Version ES4200_UM_EN_V1 1 7...
Страница 2: ......
Страница 10: ...4 1 4 Decode zone Figure 1 2 High density series...
Страница 11: ...5 Figure 1 3 Long range series...
Страница 108: ...102 11 Configuration alphanumeric entry barcode To finish parameter setting please scan the bar code below...