Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on barcode scanner using USBHIDBootKbd #5

Closed
thalespf opened this issue Nov 28, 2014 · 0 comments
Closed

Issue on barcode scanner using USBHIDBootKbd #5

thalespf opened this issue Nov 28, 2014 · 0 comments

Comments

@thalespf
Copy link

Hi,
i’m having trouble using USB Host Shield 2.0 on a barcode scanner. The barcode when reading the code, does not output in the Serial Monitor and after that is stay in a dead state (It cant trigger), coming back to read new codes after a few seconds (after two another configurations). I’m using USBHIDBootKbd and the arduino Uno connected to a power in 12v.

From what I’ve been debugging the lib and the Task method of USB class, when a code is read, the HIRQ (CONDETIRQ) detects that the device has been disconnected generating a SE0. Then the device is reconfigured and I can read another code after two configurations.

It may be that reading the code is still being made when the HIRQ register is read?

By their experience the USBHIDBootkbd can be used in this barcode scanner with this HID_Desc or I’ll have to write a HID report parsing?

In the USB_desc my class, subclass and protocol are 3, 1, 1. Following the output of USBHID_desc

0000: 06 00 FF 09 01 A1 01 19 00 29 FF 15 00 25 FF 95
0010: 01 75 08 81 02 19 00 29 FF 15 00 25 FF 95 01 75
0020: 08 91 02 C0
Usage Page Undef(00)
Usage
Collection Application
Usage Min(00)
Usage Max(FF)
Logical Min(00)
Logical Max(FF)
Report Count(01)
Report Size(08)
Input(00000010)
Usage Min(00)
Usage Max(FF)
Logical Min(00)
Logical Max(FF)
Report Count(01)
Report Size(08)
Output(00000010)
End Collection

Thanks for help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant