Page 1 of 1

Current state of BLE?

Posted: Thu Aug 02, 2018 8:14 am
by ARTaylor
Hello, last time I tried working with BLE on the ESP32 a couple of months back, it was very broken - I think due to a knock on effect of changes to the ESP-IDF. Can anyone update me on how things are right now? Google is producing very little since 2017

I have this crazy idea about ble sync between a cheap fitness band and ESP32 with neopixels attached - mood lighting influenced by human heart rate/sleep :D

Re: Current state of BLE?

Posted: Tue Aug 28, 2018 2:59 pm
by mattyt
Heya ARTaylor,

Ayke van Laethem, Eric Poulsen and Glenn Bakke started collaborating some time ago to push forward the Bluetooth API. You may be aware that Glenn and Eric have both previously made attempts to implement a Bluetooth API (for the NRF and ESP32 respectively) but both were not quire ready for prime time. About a month ago Ayke had a very simple (advertising only) fork working that allowed the following code to operate for NRF and ESP32:

Code: Select all

import bluetooth
bt = bluetooth.Bluetooth()
bt.advertise(100, 'hello MicroPython!')
There is a channel (#bluetooth-le) in the MicroPython Slack (auto invite) where those folks have been discussing the implementation, though it's been quiet lately.

There's also #3809: esp32: Implementation of bluetooth? that covers some of this.

In the meantime, Damien has announced the Pyboard D-Series. PYBD has Bluetooth. There was an extended 'Hallway track' discussion at PyCon AU where the MicroPython Bluetooth interface was discussed; I can assure you Damien is very keen to implement this soon! I believe he's also reached out to Ayke, Glenn and Eric to compare notes.

So, no, we don't have Bluetooth for MicroPython yet. But watch this space! And please join in if you're able to collaborate. :)


Re: Current state of BLE?

Posted: Mon Nov 26, 2018 1:10 pm
by gmli

I don't understand something. Maybe I'm wrong but I thought Wipy uses MicroPython, and with Wipy you have bluetooth support (in Python).
So how is this possible ?


Re: Current state of BLE?

Posted: Mon Nov 26, 2018 1:43 pm
by Roberthh
There are three versions of WiPy.
WiPy1 is based on a CC3200 controller and supports WiFi only. The Support for this product is in this forum.
WiPy2 and WiPy3 are based on the ESP32. They are products of Pycom and are supported in their forum at The Pycom variant of micropython supports both WiFi and Bluetooth. If you have either an ESP32 with a Rev0 chip or an ESP32 with Rev1 chip SPIRAM, you can install the Pycom Firmware for WiPy.

Re: Current state of BLE?

Posted: Mon Nov 26, 2018 2:13 pm
by gmli
Ok thanks, I didn't knew Pycom made a custom version of MicroPython.

I will join the slack to see if I could help maybe. Since Pycom successfully added BLE support, it should be doable to replicate it.

Re: Current state of BLE?

Posted: Mon Nov 26, 2018 2:22 pm
by Roberthh
Pycom puts software made by themselves under GNU GPL, wheres is using the MIT License and does not accept software under a different license. You can do that for your own purpose, but it will not be accepted for merging.

Re: Current state of BLE?

Posted: Tue Nov 27, 2018 8:45 am
by gmli
Good to know thanks.