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

BLE UART example

Hello ,

 System configuration

Set up 1 Adafruit BLE Feather running stock central UART example from NORDIC SDK version 15.0`examples connected to host PC using USB

Set up 2 Adafruit BLE Feather running a custom application largely based on peripheral UART example from NORDIC SDK 15.0 again connected to host PC via USB

According to the description UART Central example the only way to find that a peripheral connected to it is via the LED 1 

Is there a way to view the log out put  from the peripheral and the central boards using the RTT viewer ? As I have not been able to get the sniffer work reliably  to sniff the ttraffic

Thanks

Sreedhar

Parents
  • Hello Sreedhar,

    Both app_uart examples log the transition to connected and disconnected states at the Info log level in ble_nus_c_evt_handler and ble_evt_handler.

    In sdk_config.h confirm the RTT log backend is selected and enable logging to the Info or Debug log level to get the connection state log messages.

    For ex., within the relevant #ifndef/#endif wrappers use

    #define NRF_LOG_BACKEND_RTT_ENABLED 1

     and maybe

    #define NRF_LOG_DEFAULT_LEVEL 3

    (I'm not sure if you need to set the default log level but you definitely do need to enable the RTT backend)

    Best Regards, Howard

  • Thanks for the reply . Yes I have enabled RTT backend.

    But my problem appears to be how do I force the Segger Software to see see two bLE feathers connected over USB.?

    I understand it should bring up a dialog allowing me to choose a particular board but it does not . I can see an out put from the peripheral only and not the central board

Reply Children
Related