This is a Windows console app which displays data sent from a Bluetooth LE device using the Nordic UART Service.
It does not currently support sending data back to the BLE device.
-
Install the .NET 8.0 SDK.
-
Pair a BLE device supporting the UART service (Settings > Bluetooth & devices > Add device).
-
Open a terminal to the NordicUartConsole folder and run:
dotnet run
If there are multiple devices with the UART service connected, it will prompt you to select a device.
To display logs from Zephyr RTOS, see the suggested configuration in the BLE logging sample. Typically, you will need to set the following in your .conf
file:
CONFIG_LOG=y
CONFIG_LOG_BACKEND_BLE=y
CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=2048
# Set these to a value big enough to hold a full log message.
CONFIG_BT_L2CAP_TX_MTU=600
CONFIG_BT_BUF_ACL_RX_SIZE=600