Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Regarding bond/pair option for NUS type BLE connection

Hi,

I am using "ble_app_uart" example application, This doen't have the pairing/Bonding options, 

If i add the "peer_manager.c" and iits dependencies, NUS(UART) service not working, 

is it possible to make the Bonding option for NUS based BLE connection?

If Possible, How can i modify the "ble_app_uart" application to achieve this.

Thanks in advance.

Kind Regards,

Thiru.

  • Glad to hear that it is working. To answer your question:

     

    Thiru said:
    But i have used the UART for some other purpose, i cannot redirect the debug logs into UART. is there any other way to see the logs?

     You can enable the logging to use the RTT backend instead of the UART backend. In sdk_config.h, please set:

    NRF_LOG_BACKEND_UART_ENABLED to 0

    NRF_LOG_BACKEND_RTT_ENABLED to 1

    Some examples doesn't have both of these mentioned in sdk_config.h, but I believe the ble_app_template example does. The ble_app_uart doesn't have the UART option, as the UART is used by the application.

  • Hello  ,

    I am having the same requirement as you where I'm trying to add support of pairing in ble_app_uart_c example... so far I have integrated the peer_manager APIs but coudn't get through as I am facing nrf getting crash after connecting BLE sensor (which can be access after pairing)...

    since you have achieved pairing and bonding it would be great if you can share the changes required on top of ble_app_uart_c example to resolve all the mentioned issues...

    Thanks,

    Ankit

Related