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
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
Continued
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.
SUNLUX
’s vendor ID is 1EAB (Hex). A range of PIDs are used for each
SUNLUX
product family. Every PID contains a base number and interface type (keyboard, COM port,
etc.).
Product
Interface
PID (Hex)
PID (Dec)
XL-3956
USB DATAPIPE
8001
32769
USB HID-KBW
8003
32771
USB COM Port Emulation
8006
32774
HID-POS
8010
32784
Содержание XL-3956 Series
Страница 1: ...XL 3956 2D Barcode Scanner User Manual...
Страница 8: ......
Страница 44: ...36 19 Romania 20 Russia 21 Slovakia 22 Spain 23 Sweden 24 Switzerland 25 Turkey1 26 Turkey 2 27 UK 28 Japan...
Страница 61: ...53 Good Read Beep Frequency Low Medium High Good Read Beep Duration 40ms 80ms 120ms...
Страница 114: ...106 Mirror Images Decode Unmirrored DM Only Decode Mirrored DM Only Decode Both...
Страница 116: ...108 Mirrored Micro QR Decode Mirrored Micro QR Do Not Decode Mirrored Micro QR...
Страница 133: ...125 Appendix F Digit Barcodes 0 5 0 1 2 3 4 5...
Страница 134: ...126 6 9 6 7 8 9...
Страница 135: ...127 A F A B C D E F...