nlscan.com
Page 47
USB Interface
Code Programming ON
Code Programming OFF
Tools
HID-POS
Access the Device in Your Program
CreateFile opens the device as a HID, then ReadFile delivers the scanned data
to the application. Use WriteFile to send data to the device.
For complete information on USB and HID interfaces, please see www.USB.
org or refer to one of the following manuals:
Getting Scanned Data
After scanning and decoding a bar code, the device sends the following input report:
Bit
Byte
7
6
5
4
3
2
1
0
0
Report ID = 0x02
1
Length of the bar code (
fi
eld "Decoded Data")
2-57
Decoded Data (1-56)
58-61
Reserved (1-4)
62
Newland Symbology Identi
fi
er or N/C
:
0x00
63
-
-
-
-
-
-
-
Decode
Data
Continued
VID and PID Table
USB uses two numbers to identify a device and
fi
nd the correct drivers. The
fi
rst is the VID (Vendor ID),
assigned by the USB Implementers Forum. The Newland vendor ID (VID) is 1EAB (hex). The second is the
PID (Product ID). A range of PIDs is used for each Newland product sub family, so each PID contains a base
number and an interface type (keyboard, COM port, etc.).
Product
Interface
PID (Hex)
PID (Dec)
EM2028/FM420
Base
0D00
3328
HID POS
0D10
3344