Is function 'blecm_getAvailableTxBuffers' should be used before sending indication?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hachc_2137126
Level 5
Level 5
10 likes given 5 likes given First like received

While the Indication is defined as sequential forth and back way, does this function 'blecm_getAvailableTxBuffers' should be used before sending indication?

Or specifically, is there any buffer designed for sending indication?

0 Likes
1 Solution
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

Yes, it is recommended to call blecm_getAvailableTxBuffers() to check if there are buffers are available to send the indication.

This API checks if the controller has free transmit buffers. The controller does not differentiate between notifications, indications or any other L2CAP, SMP or GATT traffic because all this is user data (from above HCI). So you may have unacknowledged packets from previous transfers in the controllers' transmit queue.

View solution in original post

1 Reply
asridharan
Employee
Employee
10 comments on KBA 5 comments on KBA First comment on KBA

Yes, it is recommended to call blecm_getAvailableTxBuffers() to check if there are buffers are available to send the indication.

This API checks if the controller has free transmit buffers. The controller does not differentiate between notifications, indications or any other L2CAP, SMP or GATT traffic because all this is user data (from above HCI). So you may have unacknowledged packets from previous transfers in the controllers' transmit queue.