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

BLE UART example doesn´t work

Hello,

I want to use the BLE UART example on my PCA10040 development board, but I can´t transmit or receive any data from my PC to the smartphone with the nRF Connect app. The app prints out the message "UART started." and I can connect my smartphone with the device.

<info> app_timer: RTC: initialized.
<info> app: Debug logging for UART over RTT started.
<info> app: Connected
<info> app: Data len is set to 0xF4(244)

I tried to send some data to my device, but the device disconnects after a few seconds after selecting the RX (or any other) Characteristic.

Parents Reply
  • Can you try to modify the line saying:

    NRF_LOG_INFO("Disconnected");

    To

    NRF_LOG_INFO("Disconnected, reason 0x%02x", p_ble_evt->evt.gap_evt.params.disconnected.reason);

    What does it say then?

    Are you using bonding, or have you used the DK with an example that uses bonding? If so, can you please try to see if the DK is present in your phone's settings->bluetooth devices. If it is, try to "forget device".

    BR,

    Edvin

Children
Related