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 Parameter 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 Parameter 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 Scan the following Parameter Barcode and select the HID POS device mode.
HID POS#
Command#
Format#
Instruction composition: Instructions use ASCII strings and are composed as follows
Parameter Barcode
Instruction Type
The default checksum is “99”
Instruction Type
Instruction Type |
Command |
|---|---|
Permanent Setting Instructions |
Parameter Barcode+”>;99’” |
Temporary Setup Instructions |
Parameter Barcode+”^;99” |
Query Command |
Parameter Barcode+”?;99” |
The Return Command Is Correct |
Parameter Barcode+”$;99” |
Return Command Error |
Parameter 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 terminator to carriage return and line feed, the Parameter 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 Beep#
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 Types |
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 Types |
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# |