Access The Scanner With Your Program; Acquire Scanned Data; Send Data To The Scanner - Newland HR3290 Marlin User Manual

Corded 2d barcode scanner
Table of Contents

Advertisement

Enter Setup

Access the Scanner with Your Program

Use CreateFile to access the scanner as a HID device and then use ReadFile to deliver the scanned data
to the application program. 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 scanning and decoding a barcode, the scanner sends the following input report:
Byte
7
0
1
2-57
58-60
61-62
63
-

Send Data to the Scanner

This output report is used to send data to the device. All programming commands can be used.
Byte
7
0
1
2-63
** Exit Setup
6
5
Report ID = 0x02
Length of the barcode
Decoded data (1-56)
-
-
6
5
Report ID = 0x04
Length of the output data
Output data (1-62)
Bit
4
3
AIM ID
Reserved
-
-
Bit
4
3
2
1
Decoded
-
-
Data
Continued
2
1
0
0
30

Advertisement

Table of Contents
loading

Table of Contents