【Enter Setup】
Access the Scanner with Your Program
Use CreateFile to access the scanner as a HID device and then use ReadFile to deliver the scanned data to the
application program. Use WriteFile to send data to the scanner.
For detailed information about USB and HID interfaces, go to www.USB.org.
Acquire Scanned Data
After a barcode is decoded, the scanner sends an input report as below:
Byte
7
0
1
2-57
58-61
62
63
-
VID/PID
USB uses VID (Vendor ID) and PID (Product ID) to identify and locate a device. The VID is assigned by USB
Implementers Forum. Newland's vendor ID is 1EAB (Hex). A range of PIDs are used for each Newland product family.
Every PID contains a base number and interface type (keyboard, COM port, etc.).
Product
HR32 Marlin
**【Exit Setup】
6
5
Report ID = 0x02
Decoded Data (1-56)
Newland Symbology Identifier or N/C: 0x00
-
-
Interface
Base
HID POS
Bit
4
3
Barcode Length
Reserved (1-4)
-
-
PID (Hex)
0000
0010
2
1
Decode Data
-
-
Continued
PID (Dec)
0
16
0
60