Please note: Friday June 18 is a holiday celebrating Juneteenth, please allow extra time for your order to arrive and plan accordingly.
0

Matrix Portal & nRF52840 Connect issues
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Matrix Portal & nRF52840 Connect issues

by jwtadmin on Thu Jun 03, 2021 3:33 pm

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 | TOGGLE FULL SIZE
# 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 136 times

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

Re: Matrix Portal & nRF52840 Connect issues

by jwtadmin on Fri Jun 04, 2021 1:06 pm

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

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

Re: Matrix Portal & nRF52840 Connect issues

by jwtadmin on Mon Jun 07, 2021 12:49 pm

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.

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

Re: Matrix Portal & nRF52840 Connect issues

by tannewt on Mon Jun 07, 2021 6:45 pm

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

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.