This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to test ble_app_uart

Test the UART Application with the nRF UART app, which is available for iOS (App Store) and Android (Google Play).

You can also test the application with nRF Connect by performing the following steps:

Connect the board to the computer using a USB cable. The board is assigned a COM port, which is visible in the Device Manager. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings: Baud rate: 115.200 8 data bits 1 stop bit No parity HW flow control: None Compile and program the application. Observe that the BSP_INDICATE_ADVERTISING state is indicated, and that the device is advertising with the device name "Nordic_UART". Observe that the text "UART Start!" is printed on the COM listener running on the computer. Connect to the device from nRF Connect. Observe that the BSP_INDICATE_CONNECTED state is indicated. Observe that the services are shown in the connected device. Select the UART RX characteristic value in nRF Connect. You can write hexadecimal ASCII values to the UART RX and get the text displayed on the COM listener. Write '30 31 32 33 34 35 36 37 38 39' (the hexadecimal value for the string "0123456789") and click 'write'. Verify that the text "0123456789" is displayed on the COM listener. For sending data from the device to nRF Connect, enter any text, for example, "Hello", on the COM listener. Observe that a notification with the corresponding ASCII values is sent to the peer on handle 0x12. For the string "Hello", the notification is '48 65 6C 6C 6F'. Disconnect the device in nRF Connect. Observe that the BSP_INDICATE_ADVERTISING state is indicated. If no peer connects to the application within 180 seconds (APP_ADV_TIMEOUT_IN_SECONDS), the application will put the chip into system-off mode.

I see noting on my Putty Screen, and I cannot find a place where can write ASCII values image description image description

Related