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 Scanner sounds different #445

Open viruzkil opened 5 years ago

viruzkil commented 5 years ago

I am trying to get my 2D barcode scanner to print on the serial monitor. I have tried USBHIDBootKbd and the USBHIDBootMultiMediaKbd that were provided with the library. I have seen a thread in the Arduino forum that mentioned very identical problems but unfortunately, the same solution did not work for me.

The problem is that the scanner works normally on a computer but when connected to the USB Host Shield, the scanner is still able to scan a barcode but it sounds different and does not print to the serial monitor. I have also tried the code from this issue that was the proposed solution from the Arduino thread mentioned earlier.

USB_desc:

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:     2010
Product ID:     7638
Revision ID:        0000
Mfg.string index:   01
Prod.string index:  02
Serial number index:    03
Number of conf.:    01

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

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:   10010001223F000705

Endpoint descriptor:
Endpoint address:   83
Attr.:          03
Max.pkt size:       0008
Polling interval:   01

Addr:1(0.0.1)

and this is the USBHID_desc

0000: 05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01 
0010: 75 01 95 08 81 02 95 01 75 08 81 03 95 05 75 01 
0020: 05 08 19 01 29 05 91 02 95 01 75 03 91 03 95 06 
0030: 75 08 15 00 25 FF 05 07 19 00 29 65 81 00 C0 
Usage Page Gen Desktop Ctrls(01)
Usage Keypad
Collection Application
Usage Page Kbrd/Keypad(07)
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(05)
Report Size(01)
Usage Page LEDs(08)
Usage Min(01)
Usage Max(05)
Output(00000010)
Report Count(01)
Report Size(03)
Output(00000011)
Report Count(06)
Report Size(08)
Logical Min(00)
Logical Max(FF)
Usage Page Kbrd/Keypad(07)
Usage Min(00)
Usage Max(65)
Input(00000000)
End Collection
gdsports commented 5 years ago

"Max.pwr:C8" indicates the scanner can draw as much as 400 mA. PC USB ports are limited to sourcing 500 mA. The combination of Arduino board, USB host board, and scanner might be drawing more than 500 mA.

Try powering the Arduino board using the round black barrel connector. Find a suitable AC wall adapter.

viruzkil commented 5 years ago

image

I've used this power adapter to power up the Arduino but still ended up i the same problem.

OHS-awoodbridge commented 3 years ago

Were you ever able to solve this?