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

Hand-held barcode scanner
Table of Contents

Advertisement

Access the Scanner with Your Program

1.
Use CreateFile to access the scanner as a HID device.
2.
Use ReadFile to deliver the scanned data to the application program.
3.
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
HR11
79
6
5
Report ID = 02
Barcode Length
Decoded Data (1-56)
Reserved (1-4)
00
00 (no data continued) or 01 (data continued)
Interface
USB DataPipe
USB HID-KBW
USB COM Port Emulation
HID-POS
Bit
4
3
2
PID (Hex)
8001
8003
8002
8010
** Enter Setup
1
0
PID (Dec)
32769
32771
32770
32784
Exit Setup

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hr1150-70

Table of Contents