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

Determine whether notification has been sent

Hello, is there a possibility on nrf51 8.0.0 softdevice to determine whether particular notification has been received by remote device?

I use sd_ble_gatts_hvx() to send notifications and I know that softdevice can buffer multiple notifications and then send them serially. I want to receive callback each time notification is received by remote and I want to be able to determine what notification (because there can be more notifications buffered in softdevice) it was.

I know I can use indications, but I don't want to confirm on application level on the remote and I also like that I can buffer multiple notifications.

Parents
  • FormerMember
    0 FormerMember

    By spec, notifications are not intended to be used if the application needs an ack from the client. Therefore, it is not possible to get an event/callback in the application layer when the client has ack'ed a notification.

    (Bluetooth Core Specification, v.4.2, Part G, Chapter 4.10.1) This sub-procedure [notifications] is used when a server is configured to notify a Characteristic Value to a client without expecting any Attribute Protocol layer acknowledgment that the notification was successfully received.

    I don't know if it can be of any value, but you could have a look at radio notifications from the softdevice. Radio notifications are events notifying that the radio is active/not active.

    Can I ask why you need to know when a specific notification was received at the client side?

Reply
  • FormerMember
    0 FormerMember

    By spec, notifications are not intended to be used if the application needs an ack from the client. Therefore, it is not possible to get an event/callback in the application layer when the client has ack'ed a notification.

    (Bluetooth Core Specification, v.4.2, Part G, Chapter 4.10.1) This sub-procedure [notifications] is used when a server is configured to notify a Characteristic Value to a client without expecting any Attribute Protocol layer acknowledgment that the notification was successfully received.

    I don't know if it can be of any value, but you could have a look at radio notifications from the softdevice. Radio notifications are events notifying that the radio is active/not active.

    Can I ask why you need to know when a specific notification was received at the client side?

Children
No Data
Related