felis / USB_Host_Shield_2.0

Revision 2.0 of USB Host Library for Arduino.
https://chome.nerpa.tech
1.79k stars 779 forks source link

Barcode Reader Issue #582

Open OHS-awoodbridge opened 3 years ago

OHS-awoodbridge commented 3 years ago

I have a 1D & 2D barcode reader. They both work on my windows computer.

I have an Arduino Uno with a 5V 2A power supply plugged in the barrel connector. I have the Sparkfun shield.

The 1D barcode reader works with the USBHIDBootKeybaord The 2D barcode reader does not work with USBHIDBootKeyboard or the code from issue 323.

I'm not sure how to move forward at this point.

Here is the USB Desc

01
--

Device descriptor: 
Descriptor Length:  12
Descriptor type:    01
USB version:        0110
Device class:       00
Device Subclass:    00
Device Protocol:    00
Max.packet size:    40
Vendor  ID:     0581
Product ID:     020C
Revision ID:        0001
Mfg.string index:   00
Prod.string index:  00
Serial number index:    00
Number of conf.:    01

Configuration descriptor:
Total length:       0022
Num.intf:       01
Conf.value:     01
Conf.string:        00
Attr.:          A0
Max.pwr:        65

Interface descriptor:
Intf.number:        00
Alt.:           00
Endpoints:      01
Intf. Class:        03
Intf. Subclass:     01
Intf. Protocol:     01
Intf.string:        00
Unknown descriptor:
Length:     09
Type:       21
Contents:   10010001226A000705

Endpoint descriptor:
Endpoint address:   81
Attr.:          03
Max.pkt size:       0040
Polling interval:   01

Addr:1(0.0.1)

And the HID Desc

Start
0000: 05 01 09 06 A1 01 05 07 85 03 19 E0 29 E7 15 00 
0010: 25 01 75 01 95 08 81 02 95 01 75 08 81 03 95 01 
0020: 75 08 15 00 25 E7 05 07 19 00 29 90 81 00 85 03 
0030: 95 05 75 01 05 08 19 01 29 05 91 02 95 01 75 03 
0040: 91 03 C0 05 01 09 10 A1 01 05 07 85 BA 19 E0 29 
0050: E7 15 00 25 FF 75 3F 95 08 81 02 85 BA 95 08 75 
0060: 3F 05 08 19 01 29 05 91 02 C0 
Usage Page Gen Desktop Ctrls(01)
Usage Keypad
Collection Application
Usage Page Kbrd/Keypad(07)
Report Id(03)
Usage Min(E0)
Usage Max(E7)
Logical Min(00)
Logical Max(01)
Report Size(01)
Report Count(08)
Input(00000010)
Report Count(01)
Report Size(08)
Input(00000011)
Report Count(01)
Report Size(08)
Logical Min(00)
Logical Max(E7)
Usage Page Kbrd/Keypad(07)
Usage Min(00)
Usage Max(90)
Input(00000000)
Report Id(03)
Report Count(05)
Report Size(01)
Usage Page LEDs(08)
Usage Min(01)
Usage Max(05)
Output(00000010)
Report Count(01)
Report Size(03)
Output(00000011)
End Collection
Usage Page Gen Desktop Ctrls(01)
Usage Undef
Collection Application
Usage Page Kbrd/Keypad(07)
Report Id(BA)
Usage Min(E0)
Usage Max(E7)
Logical Min(00)
Logical Max(FF)
Report Size(3F)
Report Count(08)
Input(00000010)
Report Id(BA)
Report Count(08)
Report Size(3F)
Usage Page LEDs(08)
Usage Min(01)
Usage Max(05)
Output(00000010)
End Collection Keypad(01)(01)(00)(00)(00)(00)(00)(00)
(00)
(00)
 Undef(00)(00)(00)(00)(00)(00)(00)(00)

I I don't not know where to start

beerbotboffin commented 3 years ago

Hi,

I have a very similar situation. On the Arduino, do you get "Start" then nothing when you scan a barcode?

Barcode_fail