-
Notifications
You must be signed in to change notification settings - Fork 14
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
USB-HOST-HID connect scanner STALL (IEC-146) #55
Comments
Hi @Sentaku1129 , Could you please update the *.csv log file format or let me know which software could be used to open the *.usmn format. Thanks. |
You can download the program from the URL listed below to open and view the ".usmn" file. The URL is as follows: "https://www.wch.cn/downloads/USB20Monitor_ZIP.html"
…________________________________
From: ***@***.*** ***@***.***> on behalf of Roma Jam ***@***.***>
Sent: Friday, August 2, 2024 7:08 PM
To: espressif/esp-usb ***@***.***>
Cc: Sentaku ***@***.***>; Mention ***@***.***>
Subject: Re: [espressif/esp-usb] USB-HOST-HID connect scanner STALL (IEC-146) (Issue #55)
Hi @Sentaku1129<https://github.com/Sentaku1129> ,
Could you please update the *.csv log file format or let me know which software could be used to open the *.usmn format.
Thanks.
—
Reply to this email directly, view it on GitHub<#55 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ARA7ZSJTK4BTSPDEV36X53LZPNSDBAVCNFSM6AAAAABL3323GKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENRVGEZTAMZTGQ>.
You are receiving this because you were mentioned.
|
Some devices will respond to data requests that interrupt IN only if they have sent OUT information about the system's numeric keypad area and case lock status |
Hi @Sentaku1129 , Sorry for such a delay, I have checked the log file and I was that the STALL'ed transfer is IN transfer with data length = 0. Current implementation of HID Host Class Driver is working only with HID devices which are able to work in the BOOT mode (This is specific simplified protocol for devices to be able to work in BIOS e.t.c.). The example forces the device to change the protocol to BOOT after opening and call You could try to disable this configuration and simplify the logic by removing these lines (
But in this case, the input reports will be not compatible with current parsing logic, so you need to disable the parsing as well. So, something like this:
After the verification, please share the log with the result. |
I've already tried to remove these lines of code and run them on the ESP32-S3 development board. I found that there was indeed no "STALL" error, but I still couldn't get the data from the scanner. My guess is that the scanner needs to receive the status of "NUM LOCK" and "CAPS LOCK" from the host before uploading the data, and it needs to send it to the OUT endpoint of the scanner via interrupt OUT. |
Hi @Sentaku1129 , Usually, the Host driver notifies all the devices about NUM/CAPS/SCROLL lock state changes by using the Control Endpoint and the specific class request Set Output Report. Current version of the HID Host class driver doesn't provide any mechanisms to send interrupt data by OUT EP, or any other data via OUT EP. To have possibility to send the interrupt OUT data, the device should have such EP available. Not all devices have that and it is better to refer the manual or some kind of documentation for any particular device you would like to use, because the specific configuration can be vary. In any case, if the device requires some proprietary or specific logic, it is always possible to achieve the goal with using the public USB Host library API. |
Answers checklist.
Which component are you using? If you choose Other, provide details in More Information.
host/hid
ESP-IDF version.
v5.3.0
Development Kit.
ESP32-S3-WROOM-1
Used Component version.
1.0.2
More Information.
I used the development board to connect the scanner gun and the STALL sign appeared. Use "https://github.com/espressif/esp-idf/tree/master/examples/peripherals/usb/host/hid" template modification, use the version number is component 1.0.2, I will attach the data collected by connecting the scanner to the S3 and connecting the computer to the USB logic analyzer
logic.zip
The text was updated successfully, but these errors were encountered: