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

Will bluetooth stack(nRF51) handle automatic retires to app?

Hi, I am using nRF51822xxaa and s130 and SDK 10.0. nRF51 connects with the app(notifications enabled), then bonds with it. Subsequent communications between the app and the nRF51 would happen only if the app and nRF51 are already bonded. Every time when the nRF51 sends a data to the app, should the nRF51 wait in a loop till BLE_EVT_TX_COMPLETE event is received (meaning, the app has received the data that has been sent by the nRF51 to the app)? I thought this would be automatically handled by the Bluetooth stack. Am I right? Thanks.

Parents
  • Notifications are only acknowledged at the link layer, and the SoftDevice will handle retransmissions. The SoftDevice doesn't know if the app has received the notification, the SoftDevice only knows that the notification has been successfully transferred to the peer's link layer.

    If you want the app to acknowledge each packet, you should use indication instead of notification.

    Please see this for more information.

Reply
  • Notifications are only acknowledged at the link layer, and the SoftDevice will handle retransmissions. The SoftDevice doesn't know if the app has received the notification, the SoftDevice only knows that the notification has been successfully transferred to the peer's link layer.

    If you want the app to acknowledge each packet, you should use indication instead of notification.

    Please see this for more information.

Children
Related