Interface Settings#
Communication Mode#
USB HID-KBW#
When the scan engine is connected to the host using a USB cable, the scan engine can be configured as a standard keyboard input by scanning the USB KBW setting barcode.
USB HID-KBW#
USB COM#
When the scan engine is connected to the host using a USB cable, the scan engine can be configured into virtual serial port output mode by scanning the USB COM setting barcode.
USB COM#
serial#
The serial communication interface is a common way to connect the scan engine to the host device (such as PC, POS, etc.). When the scan engine is connected to the host using a serial port cable, the system defaults to the serial communication mode. When using the serial communication interface, the communication parameter configuration between the scan engine and the host device must completely match to ensure smooth communication and correct content.
TTL-232 Serial Port#
The serial communication interface of the scan engine uses TTL level signals (TTL-232). This interface can adapt to most system architectures. If the system needs to use RS232 architecture, an external conversion circuit needs to be added.
The default serial communication parameters of the scan engine are shown in Table 2-1.
Serial Communication Parameter Table 2-1
Parameter |
default |
|---|---|
Baud Rate |
115200 |
Check Digit |
none |
Data Bits |
8 |
stop bit |
1 |
Baud Rate#
When the scan engine communicates with the host through TTL-232/RS232, the same communication parameters must be set for normal communication, including transmission rate, verification, flow control, etc. The transmission rate is the baud rate, and the default baud rate is 115200.
600# |
1200# |
2400# |
4800# |
9600# |
14400# |
19200# |
38400# |
57600# |
*115200# |
Check Digit#
* No Parity# |
Odd# |
Even# |
stop bit#
* 1 Bit# |
2 People# |
Data Bits#
5 People# |
6 Bits# |
7 Bits# |
* 8 Bit# |
USB HID-POS#
When the device is used as a HID device, you can read the following setting barcode and select the HID POS device mode.
HID POS#
Command#
Format#
Instruction composition: Instructions use ASCII strings and are composed as follows
Setting Barcode
Instruction Type
The default checksum is “99”
Instruction Type
Instruction Type |
Command |
|---|---|
Permanent Setting Instructions |
Setting Barcode+”>;99’” |
Temporary Setup Instructions |
Setup code+”^;99” |
Query Command |
Setup code+”?;99” |
The Return Command Is Correct |
Setup code+”$;99” |
Return Command Error |
Setting Barcode+”*;99” |
Function |
Send |
Return Correctly |
Error Return |
Remark |
|---|---|---|---|---|
Setup Instructions |
>!0010201.>;99 |
>!0010201.$;99 |
>!0010201.*;99 |
|
Query Command |
>!0010201.?;99 |
>!001020X.$;99 |
>!0010201.*;99 |
X Query Value |
For example: to set the end character to carriage return and line feed, the setting barcode is >!0010201.
Special instructions involve permanent setting instructions, please do not use them frequently. If it is shipped from the factory or is set occasionally, it is recommended to use the permanent setting command. If the settings are modified every time the code is read, please use the temporary setting command. Frequent use of the permanent setting command will affect the service life of the scanning device.
Detailed instructions can be found in Appendix D.
Answer#
After being enabled, the host sends commands and the scan engine will respond accordingly.
Disable# |
* Enable# |
Command Prompt Sound#
After being enabled, when the scan engine receives an instruction, there will be a sound prompt.
Disable# |
* Enable# |
Packet Format#
Decode Data
Identifier |
Status |
Type |
Length |
Barcode Type |
Data |
Check |
|---|---|---|---|---|---|---|
0x99 0xDD |
0x06 |
Field Description
Field Name |
Size |
Description |
|---|---|---|
Identifier |
2 Bytes |
Fixed 0x99, 0xDD |
Status |
1 Byte |
bit0: permanent change |
Type |
1 Byte |
Type Of Instruction |
Length |
4 Bytes |
High byte first (low address), low byte last (high address), does not include check digits |
Barcode Type |
1 Byte |
See Appendix F For Details |
Data |
Variable |
Decode Data |
Check |
1 Byte |
XOR Check |
When ACK is enabled, the host receives the decode data command and must reply ACK to the scan engine.
Toggle#
When enabled, decoded data will be sent in packet format.
* Disable# |
Enable# |