Bluetooth Serial for Tab5
-
Dear Forum,
I have a project that relies on Bluetooth serial for communicating with a OBD2 Car Scanner.
And I would like to use the Tab5. I have one, so even if it might be overkill that's what I'm trying.However I cannot find an example on how to use Bluetooth with the Tab5.
Most of the examples wont work because the Tab5 have a wireless coprocessor instead of the main processor being the wireless module.
I have searched high and low, and tried ChatGPT and the chatbot here.The best I can find is to rewrite the ESP32-C6 firmware or make a wrapper class for the ESP32-C6.
Morten, Denmark.
-
@MortenComadan Hi,
If your OBD2 scanner can work with BLE protocols, you can take a look at the following look for some guidance:
https://uiflow-micropython.readthedocs.io/en/latest/system/m5ble.htmlThere are examples there and some basic info on the higher level functions to handle BLE.
-
Hi @MortenComadan ; you don't mention what your project is based on for code; Arduino/ESP-IDF/MicroPython/UFlow2 etc..
For the tools where Expressif have got involved the support should be there already. The C6 co-processor gets a standard firmware (that talks via QSPI to the P4) and the P4 IDF libraries know how to use this.
- What I'm unsure about is exactly which features are actually implemented in the ESP IDF; I want to use bluetooth audio sink features.. eventually.
If (like me) you are into MicroPython then good news. V1.27.0 was released a couple of days ago and has official P4 support: https://github.com/micropython/micropython/releases/tag/v1.27.0
UFlow2 is based on an older micropython version; I'm not sure how much of the P4 stuff they may have backported.
I only got my Tab5 today, I'm going to be installing micropython 1.27 asap.