Micropython: Any plan to support classic bluetooth in ESP32?

Created on 10 Dec 2019  路  4Comments  路  Source: micropython/micropython

It looks like bluetooth classic is supported in ESP32 by espressif in https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/bluetooth/classic_bt.html#. Any plan to support it in micropython?

port-esp32

Most helpful comment

It would be good to support it (and on STM32 too), but I don't think it's on the roadmap. If people are keen to work on it then it would be good to discuss a way forward.

Some notes/considerations about BT classic:

  • On ESP32 BLE we use the NimBLE stack (to re-use the work done for STM32). BT classic requires Bluedroid, and the same firmware build can't have both enabled. So some thought would need to go into avoiding having to have even more build configurations. Bluedroid supports LE too though.

  • The API for BT classic is likely going to be a lot more complicated. I imagine it might be easier to focus on some specific use cases (e.g. BT profiles) and build APIs for them instead, for example A2DP audio source/sink is probably the top of my list. What use cases did you have in mind?

All 4 comments

It would be good to support it (and on STM32 too), but I don't think it's on the roadmap. If people are keen to work on it then it would be good to discuss a way forward.

Some notes/considerations about BT classic:

  • On ESP32 BLE we use the NimBLE stack (to re-use the work done for STM32). BT classic requires Bluedroid, and the same firmware build can't have both enabled. So some thought would need to go into avoiding having to have even more build configurations. Bluedroid supports LE too though.

  • The API for BT classic is likely going to be a lot more complicated. I imagine it might be easier to focus on some specific use cases (e.g. BT profiles) and build APIs for them instead, for example A2DP audio source/sink is probably the top of my list. What use cases did you have in mind?

Thanks for updating the status and the delightful suggestions. Sounds like there is still a long way to go, but look forward to it.

HFP source/client, especially client, might also be the use case.

I'd like to start with a simple UART to Bluetooth connection. The PCs can attach only classic Bluetooth connection as a raw serial port. Can you give me any advice to start to implement this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ShenTengTu picture ShenTengTu  路  3Comments

francescofact picture francescofact  路  3Comments

joelhoro picture joelhoro  路  5Comments

hetvishah08 picture hetvishah08  路  5Comments

johnthagen picture johnthagen  路  5Comments