I use two nRF52840 to send notifications every second. Analysis using a logic analyzer revealed that the reception interval had strange variations. What is causing this? Why is there a gap at 1 second from the reception?
connection interval 10ms.
I use two nRF52840 to send notifications every second. Analysis using a logic analyzer revealed that the reception interval had strange variations. What is causing this? Why is there a gap at 1 second from the reception?
connection interval 10ms.
Hi
I see why you're confused. You're checking to see when the sd_ble_gatts_hvx event occurs, but this event does not actually transmit the packages, it is only adding them to the queue. So the reason you occasionally see these delays is that the chip isn't able to transmit the packet until the next connection interval, and therefore you don't get a new sd_ble_gatts_hvx event for some time.
Best regards,
Simon
Hi
I see why you're confused. You're checking to see when the sd_ble_gatts_hvx event occurs, but this event does not actually transmit the packages, it is only adding them to the queue. So the reason you occasionally see these delays is that the chip isn't able to transmit the packet until the next connection interval, and therefore you don't get a new sd_ble_gatts_hvx event for some time.
Best regards,
Simon
I see, I understand.
However, it is strange that the delay is 0.5ms. I understand if the delay is 10ms of connection interval.
Can I only add to the queue?
Can't enter any more details?