-
Notifications
You must be signed in to change notification settings - Fork 16
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
An exception occurs when I use the scanner and call the api after scanning (IEC-127) #43
Comments
Hello @yel-best , It seems that HID task has stack overflow. Can you increase the stack size? You can do that from HID install function, using this value https://github.com/espressif/esp-usb/blob/master/host/class/hid/usb_host_hid/include/usb/hid_host.h#L104 |
Hi tore Below is the config I created for HID
I don't know whether this occupies internal RAM or external RAM. The ESP32S3 I use is the N16R8 version. I want to use external RAM instead of HID RAM. There will be enough space in the external RAM.
|
@tore-espressif Hi pls help me, thanks 🥲 |
@yel-best |
Hi @leeebo Ok, I will try to modify it to |
When I call some functions in HID's Event, such as calling the API after scanning the QR code, and then registering the content of the scanned QR code on the server, the following error will appear. I don't understand the reason. I can allocate HID_device to PSRAM. Running?
|
This happens when I use a USB HID scanner that automatically sleeps. After disconnecting and reactivating, an error will appear. What is the reason? seems to be an internal error
|
Hi @yel-best , If I understood you correctly, you are trying to run some additional logic inside the HID event. If yes, that this is not possible and you need to use another task for that purpose. Please, refer to the example here: USB Host HID example
Thanks. |
Hi @roma-jam
From this log, I can see that the HID USB device is
|
This is the code I used,pls check,thanks |
Hi @yel-best ,
Great, good to hear that it is working.
Could you please share the exception crash log? Thanks. |
Hi @yel-best, |
Answers checklist.
Which component are you using? If you choose Other, provide details in More Information.
host/hid
ESP-IDF version.
v5.1.4
Development Kit.
ESP32S3 N16R8
Used Component version.
1.0.2
More Information.
use usb_host_hid v1.0.2
I connected a barcode scanner device to the USB HID and I added a function in the following method to record the code obtained by the barcode scanner and call an HTTP API for background verification. When I encountered a problem in this process, the following is part of the code
lv_set_order(qr_code)
is call api logicI don't know why there is such an error, I hope you can provide some help, thanks
The text was updated successfully, but these errors were encountered: