Bluetooth Support for Pyboard D-series

The official PYBD running MicroPython, and its accessories.
Target audience: Users with a PYBD
Post Reply
msteurer
Posts: 2
Joined: Sat Apr 13, 2019 10:52 am

Bluetooth Support for Pyboard D-series

Post by msteurer » Sat Apr 13, 2019 11:11 am

Hi everyone,
I got one of the new D-series Boards (SF3W). As stated in the product description, Bluetooth is not yet support by the software. I didn't find a roadmap or something similar but can we already estimate when support for Bluetooth (or at least BLE) will be available?

There is already an open PR [1] to support Bluetooth but as far as I got it, this will only support ESP32 respectively Nordic platforms.

Cheers, Michael

[1] https://github.com/micropython/micropython/pull/4589

User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: СССР
Contact:

Re: Bluetooth Support for Pyboard D-series

Post by kamikaze » Fri May 17, 2019 6:46 pm

hello. any plans or schedules on bluetooth support for PyBoard D ?

mischko
Posts: 18
Joined: Tue Feb 03, 2015 12:32 am

Re: Bluetooth Support for Pyboard D-series

Post by mischko » Fri Jun 21, 2019 4:37 am

Same question!

User avatar
jimmo
Posts: 2008
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Bluetooth Support for Pyboard D-series

Post by jimmo » Fri Jun 21, 2019 5:46 am

It's in progress. Currently it's on the roadmap for version 2.0 and there are people working on it (but this is subject to change of course) -- https://github.com/micropython/micropython/issues/4821

By the way, are you looking for BLE or Classic Bluetooth support?

msteurer
Posts: 2
Joined: Sat Apr 13, 2019 10:52 am

Re: Bluetooth Support for Pyboard D-series

Post by msteurer » Wed Jun 26, 2019 7:23 am

I'm just looking for BLE support. Actually, I just want to scan for BLE frames.

User avatar
kamikaze
Posts: 154
Joined: Tue Aug 16, 2016 10:10 am
Location: СССР
Contact:

Re: Bluetooth Support for Pyboard D-series

Post by kamikaze » Wed Jun 26, 2019 8:12 am

as I see it - BLE is more preferable for such devices like PyBoard

User avatar
rcolistete
Posts: 323
Joined: Thu Dec 31, 2015 3:12 pm
Location: Brazil
Contact:

Re: Bluetooth Support for Pyboard D-series

Post by rcolistete » Sun Sep 06, 2020 6:27 pm

What is the current status of Bluetooth on Pyboard D ?
I've tried :

Code: Select all

MicroPython v1.13 on 2020-09-02; PYBD-SF2W with STM32F722IEK
Type "help()" for more information.
>>> import bluetooth
>>> bt = bluetooth.BLE()
>>> bt.
__class__       active          config          gap_advertise
gap_connect     gap_disconnect  gap_scan
gattc_discover_characteristics  gattc_discover_descriptors
gattc_discover_services         gattc_read      gattc_write
gatts_indicate  gatts_notify    gatts_read
gatts_register_services         gatts_set_buffer
gatts_write     irq
>>> bt.active()
False
>>> bt.active(True)   # freezes !
My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

User avatar
jimmo
Posts: 2008
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Bluetooth Support for Pyboard D-series

Post by jimmo » Mon Sep 07, 2020 12:19 am

rcolistete wrote:
Sun Sep 06, 2020 6:27 pm
What is the current status of Bluetooth on Pyboard D ?
BLE-only at this stage, using either NimBLE or btstack as the host stack. WIth btstack this will also give us the option of supporting classic also (and I've demo-ed this, e.g. keyboard and audio sink/source, but still working on an API and implementation).

Docs here: https://docs.micropython.org/en/latest/ ... tooth.html
Examples here: https://github.com/micropython/micropyt ... /bluetooth

I'm working on an asyncio-based API which will be much easier to use, but we need some core support first to support raising events from IRQs.

Post Reply