Matrix Portal & nRF52840 Connect issues

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jwtadmin
 
Posts: 53
Joined: Thu Jan 07, 2016 2:50 pm

Matrix Portal & nRF52840 Connect issues

Post by jwtadmin »

I am trying to build a BLE remote control for my Matrix portal using an nRF52840 - however I found that the nRF52840 hangs when trying to send packets to the ESP32 BLE onboard Airlift system. I confirmed this using the echo test and client (the ESP32 as the client not the sender). As a side note I also noticed that the Bluefruit connect app on iPhone CAN control and connect to the ESP32 via UART, but the desktop MAC doesn't load the control modules.

Here is the client code for the echo test, the code on the nRF52840 is stock.

Code: Select all

# SPDX-FileCopyrightText: 2020 ladyada for Adafruit Industries
# SPDX-License-Identifier: MIT

"""
Used with ble_uart_echo_client.py. Receives characters from the UARTService and transmits them back.
"""

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)
uart = UARTService()
advertisement = ProvideServicesAdvertisement(uart)

while True:
    ble.start_advertising(advertisement)
    while not ble.connected:
        pass
    while ble.connected:
        # Returns b'' if nothing was read.
        one_byte = uart.read(1)
        if one_byte:
            print(one_byte)
            uart.write(one_byte)
Attachments
Screen Shot 2021-06-03 at 1.31.21 PM.png
Screen Shot 2021-06-03 at 1.31.21 PM.png (74.94 KiB) Viewed 192 times

User avatar
jwtadmin
 
Posts: 53
Joined: Thu Jan 07, 2016 2:50 pm

Re: Matrix Portal & nRF52840 Connect issues

Post by jwtadmin »

Bumping this up. @tannewt any thoughts on this one?

User avatar
jwtadmin
 
Posts: 53
Joined: Thu Jan 07, 2016 2:50 pm

Re: Matrix Portal & nRF52840 Connect issues

Post by jwtadmin »

Last time I'll bump this - I think this is just dead until there is more work on the ESP32 for BLE - would love to have someone else validate that this is broken on their boards as well.

User avatar
tannewt
 
Posts: 3304
Joined: Thu Oct 06, 2016 8:48 pm

Re: Matrix Portal & nRF52840 Connect issues

Post by tannewt »

I don't have any ideas. I haven't used the ESP32-based BLE stuff.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”