Current state of BLE?

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
ARTaylor
Posts: 29
Joined: Fri Mar 23, 2018 4:04 pm
Contact:

Current state of BLE?

Post by ARTaylor » Thu Aug 02, 2018 8:14 am

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
Grow something!

User avatar
mattyt
Posts: 224
Joined: Mon Jan 23, 2017 6:39 am

Re: Current state of BLE?

Post by mattyt » Tue Aug 28, 2018 2:59 pm

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.active(True)
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. :)

Cheers,
Matt

gmli
Posts: 6
Joined: Mon Nov 26, 2018 1:07 pm

Re: Current state of BLE?

Post by gmli » Mon Nov 26, 2018 1:10 pm

Hi,

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 ?

Regards

User avatar
Roberthh
Posts: 1452
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Current state of BLE?

Post by Roberthh » Mon Nov 26, 2018 1:43 pm

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 forum.pycom.io. 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.

gmli
Posts: 6
Joined: Mon Nov 26, 2018 1:07 pm

Re: Current state of BLE?

Post by gmli » Mon Nov 26, 2018 2:13 pm

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.

User avatar
Roberthh
Posts: 1452
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Current state of BLE?

Post by Roberthh » Mon Nov 26, 2018 2:22 pm

Pycom puts software made by themselves under GNU GPL, wheres micropython.org 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.

gmli
Posts: 6
Joined: Mon Nov 26, 2018 1:07 pm

Re: Current state of BLE?

Post by gmli » Tue Nov 27, 2018 8:45 am

Good to know thanks.

Post Reply