Skip to content

BLE write from nRF52840 to Pyportal or Matrix Portal hangs CP #4872

@wifijt

Description

@wifijt

6.2 on nRF52840 and PyPortal and Matrix Portal

Adafruit CircuitPython 6.2.0 on 2021-04-05; Adafruit PyPortal with samd51j20

Adafruit CircuitPython 6.2.0-beta.2 on 2021-03-01; Raspberry Pi Pico with rp2040

Code/REPL

Using the echo client example - modified for the ESP32

from adafruit_ble import BLERadio
from adafruit_ble.advertising.standard import ProvideServicesAdvertisement
from adafruit_ble.services.nordic import UARTService
from adafruit_airlift.esp32 import ESP32
esp32 = ESP32()
adapter = esp32.start_bluetooth()

ble = BLERadio(adapter)

Behavior

The echo write hangs the nRF52840

also recreated on the REPL

uart_connection[UARTService].write('foo')

Description

I am trying to send UART from the nRF52840 to a matrix portal - however whenever a packet gets sent the nRF52840 just hangs - I cannot ctrl-C - if I kill the Matrix portal or pyportal the nRF52840 will go back to scanning.

This is easy to replicate using the echo test between the nRF52840 and pyportal

Additional Info

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions