I’m trying to set up a simple relay using an nRF52840 board to route data between a BLE central (my phone) and a 9600bps UART device. My goal is to send data from the phone to the nRF52840, which should relay it through the TX pin. Meanwhile, any data received on the RX pin should go back to the phone via BLE.
From what I’ve read, the peripheral_uart example should handle this. I connected pins P0.08 and P0.06 with a patch wire, expecting that anything I send would loop back and appear in the "Bluetooth Low Energy" app in nRF Connect for Desktop. (I also have an nRF52 USB dongle connected for communication with my PC.) However, I’m not seeing any data being received.
Does anyone know what I might be missing or misconfiguring? Any help would be greatly appreciated.
Thanks!
I created a new application using the peripheral_uart sample in VSCode with the nRF Connect extension, then built and flashed it onto my nRF52840 DK without any issues. Afterward, I connected pin P0.08 to P0.06 with a jumper wire.
Using the Bluetooth Low Energy app in nRF Connect for Desktop, I connected to the device labeled "Nordic_UART_Service," which shows a UART-over-BLE service. Within that service, I can see the UART TX and UART RX characteristics. My expectation was that anything I send through the TX characteristic would loop back to the RX characteristic. However, I'm not seeing any data returned on RX.
I'm using the latest SDK 2.9.0