[SOLVED] BarCode Scanner connected to UNO via USB Host Shield Not working

Hi,

I am trying to connect a barcode scanner (iBall LS-392) to Arduino UNO through a USB Host Shield.

I've successfully connected it and got the following HID_desc:

Start
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 01 95 03 75 01 
0020: 05 08 19 01 29 03 91 02 95 05 75 01 91 01 95 06 
0030: 75 08 15 00 26 FF 00 05 07 19 00 2A FF 00 81 00 
0040: 09 00 95 10 75 08 B1 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(00000001)
Report Count(03)
Report Size(01)
Usage Page LEDs(08)
Usage Min(01)
Usage Max(03)
Output(00000010)
Report Count(05)
Report Size(01)
Output(00000001)
Report Count(06)
Report Size(08)
Logical Min(00)
Logical Max(FF00)
Usage Page Kbrd/Keypad(07)
Usage Min(00)
Usage Max(FF00)
Input(00000000)
Usage
Report Count(10)
Report Size(08)
Feature(00000000)
End Collection

which says it is a Keyboard.

But when I load USBHIDBootKbd, it does not show any data on Serial Monitor after scanning. (Also, it beeps differently after scanning than the way it does when it is connected to PC).

I tried connecting a simple keyboard to the shied which works perfectly fine.

Also I am supplying power to Arduino UNO through external 9V supply. (In case if power is an issue.)

**Scanner works fine when connected to PC, so it is not faulty either.

Hardware I am using:

  1. Arduino UNO.

  2. UHS mini V2 Shield.

  3. LS-392 iBall Scanner.

Library:

USB Host Shield V2.0

Found best solution here:

I am successful in getting barcode of serial monitor using below link.

However, could anyone please tell me that is it possible that on a specific barcode value i want my arduino to run specific steps to stepper motor. how to do that?

i bought this barcode scanner :mh-et live scanner v3

after i run USBHID_desc
my serial monitor Received alien code…