Page 1 of 1

ESP USB HOST Library Issue With Wireless Keypad

Posted: Tue Dec 23, 2025 3:25 am
by MotoDan
Helo all,

I'm woring in Arduino v2.3. using an ESP32 C3 DevKit with the ESP USB HOST library, specifically for USB Keyboards using the hid_host_example.ino, The example code seems to work with hardwired keyboards, but not with the wireless Keypad I'd like to use in my application. I can see the USB D+/D- activity on my scope and it appears that the Keypad is attempting to communicate to the ESP32, but times out with the following error

HOST: Enqueue URB error: ESP_ERR_INVALID_STATE
USB HOST: EP command error: ESP_ERR_INVALID_STATE

I attempted to track down the error in the library, but was unable to locate the error.

I'm hoping there are some parameters I can change in the library that will allow the Keypad to connect.

Any help would be appreciated.
Thanks!