-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
esp_hid_host cannot connect to USB Keyboard: Authentication fail reason 5 (IDFGH-6368) #8027
Comments
I tried to build the example from v4.3.1 (as you referred to that as workaround), but it doesn't build. How did you solve it?
|
@boernsen-development Did you update the submodules recursively? You need the right commits of the submodules. |
I followed the Get Started Guide for v4.2.4 for Linux, but adapted the clone command to: I faced the same build error with v4.2.4 itself (exactly following the guide). With v4.4.2 it built successfully, but pairing failed. |
Please check if GATTC is enabled (CONFIG_GATTC_ENABLE=y). Thanks |
@xiongweichao with your advice, it now builds. Thank you!! (I used to deactivate BLE, but that apparently broke the build for v4.3.1. In the master branch it works.) However, it still doesn't pair with the trackpad. It finds it, but prints an error. Tested with ESP-IDF v4.2.4 and v4.3.1:
Maybe it is a different issue than the one from @ChrisIdema. In that case, we can continue at #10005 . |
This is not exactly the same error message, however the effect is similar. With esp_hid_host example and esp-idf-v4.4 dated 2022-01-26 downloaded from the espressif website (from home page : Support -> Download -> "SDKs & Demos"), trying to connect a hid device results in : The same example code compiled with esp-idf-v4.4.2 (the last stable downloaded from github when writing this message) works fine. It might be a good idea either to update the package in the download section of the website or remove it/replace it with a link to the github page ? |
Well, some more tests show that even if esp-idf-v4.4.2 works with some devices with the esp_hid_host example, others do not work with the same "Authentication fail reason 5" explained by the original report by ChrisIdema. One of these devices is the Wiimote RVL-CNT-01. With esp-idf-v4.3.1 proposed as workaround, the esp_hid_host example has no issue with these devices and show the events data as expected. |
Thanks for reporting and sharing the updates, feel free to reopen. |
Environment
Problem Description
esp_hid_host
example doesn't connect to BT classic keyboard. Authentication failure.Expected Behavior
It should connect like it did for earlier version of the demo.
Actual Behavior
ESP32 sees keyboard. Nothing happens. After pressing enter authentication fails.
Steps to reproduce
esp_hid_host
exampleCode to reproduce this issue
esp_hid_host
exampleDebug Logs
And after pressing return on the keyboard:
Other items if possible
workaround
Use stable version of IDF, version 4.3.1. The commit of September 8 80c3aaa broke the example.
The text was updated successfully, but these errors were encountered: