42
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:
Bit
Byte
7
6
5
4
3
2
1
0
0
Report ID = 0x02
1
Barcode Length
2-57
Decoded Data (1-56)
58-61
Reserved (1-4)
62
0x00
63
-
-
-
-
-
-
-
Decoded
Data
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
Interface
PID (Hex)
PID (Dec)
EM2000
USB DATAPIPE
8001
32769
USB HID-KBW
8003
32771
USB COM Port Emulation
8006
32774
HID-POS
8010
32784
Содержание NLS-EM2000
Страница 1: ...NLS EM2000 Embedded 2D Barcode Scan Engine User Guide...
Страница 3: ...Revision History Version Description Date V1 0 0 Initial release April 10 2015...
Страница 10: ......
Страница 46: ...36 19 Romania 20 Russia 21 Slovakia 22 Spain 23 Sweden 24 Switzerland 25 Turkey1 26 Turkey 2 27 UK 28 Japan...
Страница 64: ...54 Good Read Beep Frequency Low Medium High Good Read Beep Duration 40ms 80ms 120ms...
Страница 117: ...107 Mirror Images Decode Unmirrored DM Only Decode Mirrored DM Only Decode Both...
Страница 119: ...109 Mirrored Micro QR Decode Mirrored Micro QR Do Not Decode Mirrored Micro QR...
Страница 136: ...126 Appendix F Digit Barcodes 0 5 0 1 2 3 4 5...
Страница 137: ...127 6 9 6 7 8 9...
Страница 138: ...128 A F A B C D E F...