BLE HID reconnect not working with the esp_hid_host example

turgu1
Posts: 6
Joined: Sat Feb 17, 2018 5:12 pm

BLE HID reconnect not working with the esp_hid_host example

Postby turgu1 » Sat Feb 15, 2025 12:03 am

Hello All,

I'm trying to get the esp_hid_host application example working with a BLE keyboard. I'm using ESP-IDF V5.4 and the application located in esp-idf/examples/bluetooth/esp_hid_host folder.

Normally, a host that get a keyboard paired with it will allow for quick re-connection if the keyboard disappear (for example, after some time of inactivity to save batteries) and reappear when the user start to use it again. The re-connection is done quickly such that the user wont see that much of annoyance waiting for the characters to appear on screen.

The esp_hid_host example is working very well with BT keyboards. It implements the BT pairing capability and the quick automatic re-connection that I've been experimenting with a Logitech K380 keyboard. No problemo for BT keyboards.

For BLE keyboards, the pairing works well too, but the re-connection doesn't work at all. I've been trying various way of getting that work without success. The keyboard is a Logitech MX Keys Mini that work well with almost all computers I've been trying (Windows and Linux computers, IOS and Android tablet). As a newbie in using the Bluetooth capability of the ESP32, I'm clueless.

I also tried with a BLE Mouse and the behavior is the same: Pairing is ok but no re-connection.

This have been tried with both an ESP32 and ESP32s3 (For that one, only BLE as BT is not available). Same results.

Does anybody found a working solution about this problem?

Thanks!!

Who is online

Users browsing this forum: No registered users and 66 guests