Bluetooth Classic HID

hardyn
Posts: 3
Joined: Wed Sep 15, 2021 12:11 am

Bluetooth Classic HID

Postby hardyn » Wed Sep 15, 2021 12:16 am

Posts regarding the inclusion of the Bluetooth Classic HID profile (not Bluetooth LE) into the ESP32-IDF seem to have largely stopped after 2018. At that time there were no plans to add this functionality, according to a an apparent Espressif representative on Github.

Did Bluetooth Classic HID ever make it in to the IDF (It doesn't appear so, but thought I would check?) My interest is using commercial game controllers (EG. PS4) with the ESP32.

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Bluetooth Classic HID

Postby ESP_Sprite » Wed Sep 15, 2021 1:26 am

Not in ESP-IDF per se, but there are third-party options... I remember this project having BT-HID support, and I seem to remember there was another project that had it in a more library-like form as well, but I can't remember the exact name.

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: Bluetooth Classic HID

Postby chegewara » Wed Sep 15, 2021 2:24 am

1) there is BT classic HID host and HID device API in esp-idf already for quite some time as far as i know,
2) i dont want to argue, but i believe new version of PS4 controller is using BLE

As to esp-idf, here you can find examples:
https://github.com/espressif/esp-idf/tr ... p_hid_host
https://github.com/espressif/esp-idf/tr ... hid_device

Dont get fooled, it is dual mode, not BLE. For some time espressif has been working on unified HID API which would work with BT classic, BLE and now also over USB on S2. I dont know itf USB part is ready thou. Some more light may shed me-no-dev.

hardyn
Posts: 3
Joined: Wed Sep 15, 2021 12:11 am

Re: Bluetooth Classic HID

Postby hardyn » Wed Sep 15, 2021 4:28 am

Thank you very much. Were you thinking of 'btstack'? I that is where I was headed if ESP hasn't rolled-their-own in the IDF library.


ESP_Sprite wrote:
Wed Sep 15, 2021 1:26 am
Not in ESP-IDF per se, but there are third-party options... I remember this project having BT-HID support, and I seem to remember there was another project that had it in a more library-like form as well, but I can't remember the exact name.

hardyn
Posts: 3
Joined: Wed Sep 15, 2021 12:11 am

Re: Bluetooth Classic HID

Postby hardyn » Wed Sep 15, 2021 4:32 am

Perfect. I will check that out. The repo is 17months old, so yes and an no. It has been up a while but relatively new compared to 2018. I will definitely check that out.

Thanks for the heads-up on the BT architecture. I am actually trying to get a knock-off "compatible with PS4" controller working that didn't work with a more recognized ESP32 library on Github. There must be something different about them? It connects to the PC just fine. I was going going to have a crack and see if I can get it working.


chegewara wrote:
Wed Sep 15, 2021 2:24 am
1) there is BT classic HID host and HID device API in esp-idf already for quite some time as far as i know,
2) i dont want to argue, but i believe new version of PS4 controller is using BLE

As to esp-idf, here you can find examples:
https://github.com/espressif/esp-idf/tr ... p_hid_host
https://github.com/espressif/esp-idf/tr ... hid_device

Dont get fooled, it is dual mode, not BLE. For some time espressif has been working on unified HID API which would work with BT classic, BLE and now also over USB on S2. I dont know itf USB part is ready thou. Some more light may shed me-no-dev.

Who is online

Users browsing this forum: HighVoltage, mikecarlos and 103 guests