Access The Scanner With Your Program; Acquire Scanned Data; Vid/Pid - Newland NLS-EM2000 User Manual

Embedded 2d barcode scan engine
Table of Contents

Advertisement

Access the Scanner with Your Program

1.
Use CreateFile to access the engine as a HID device.
2.
Use ReadFile to deliver the scanned data to the application program.
3.
Use WriteFile to send data to the engine.
For detailed information about USB and HID interfaces, go to www.USB.org.

Acquire Scanned Data

After a barcode is decoded, the engine 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
EM2000
6
5
Report ID = 0x02
Barcode Length
Decoded Data (1-56)
Reserved (1-4)
0x00
-
-
Interface
USB DATAPIPE
USB HID-KBW
USB COM Port Emulation
HID-POS
Bit
4
3
-
-
PID (Hex)
8001
8003
8006
8010
2
1
-
-
PID (Dec)
32769
32771
32774
32784
0
Decoded
Data
42

Advertisement

Table of Contents
loading

Table of Contents