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

Problem queuing notifications

Hi,

I am working on a project of throughput data from sensors to my central via nrf52832 through a notifying service (SDK14.0.0, S132).

As explained in several questions of this site, I use the BLE_GATTS_EVT_HVN_TX_COMPLETE event as trigger for queuing my data packets. At connection I'm sending, triggered by a timer, a 20 bytes packet just for receiving the first tx_complete_event . All right up to this point.

The problem appears when I try to send several packets per connection event. What I am doing is calling sd_ble_gatts_hvx in a loop routine for queuing 4 packets of 20 bytes. It works fine for the first transmission (the one after the timer-triggered transmission) but after that I only receive, at my sniffer, the first packet for each connection.

BLE_GATTS_HVN_TX_QUEUE_SIZE_DEFAULT is equal to 6, I have been trying several connection intervals.

Maybe I have misunderstood the way notifications work, so I will appreciate any help.

Parents Reply Children
No Data
Related