Bluetooth Module availability on Zephyr Port for NRF52840 DK

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
M.Ridwan
Posts: 9
Joined: Mon Aug 24, 2020 2:03 pm

Bluetooth Module availability on Zephyr Port for NRF52840 DK

Post by M.Ridwan » Sun Sep 06, 2020 9:03 am

Hi , I am getting the following error while importing Bluetooth Module in NRF52840 DK in REPL. Does Micropython supports BLE module? Please advise.
import bluetooth
Traceback (most recent call last):
File "", line 1, in
ImportError: no module named 'bluetooth'
Also it is not importing Network Module.

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

Re: Bluetooth Module availability on Zephyr Port for NRF52840 DK

Post by jimmo » Fri Sep 11, 2020 12:23 am

M.Ridwan wrote:
Sun Sep 06, 2020 9:03 am
ImportError: no module named 'bluetooth'
Currently the bluetooth module (documented here: https://docs.micropython.org/en/latest/ ... tooth.html ) is only available for STM32, ESP32 and Unix.

I plan to update the nRF port to use this module too, but for now the nRF port has its own BLE module called "ubluepy". There are some examples in https://github.com/micropython/micropyt ... f/examples

The plan is to remove the use of the Nordic SoftDevice altogether and move to the NimBLE HCI controller (and then use the NimBLE host stack already used by the other ports).
M.Ridwan wrote:
Sun Sep 06, 2020 9:03 am
Also it is not importing Network Module.
There's currently no network support for nRF (that I'm aware of).

Post Reply