Hello,
We're using a BLE connection configured with a 15ms connection interval, and a radio event notification configured to fire 800us prior to a radio event. I'd like to synchronize a function with this event, so am testing the timing accuracy of this interrupt with poor signal strength.
To test, I am logging the difference in RTC ticks (with 16.4khz frequency; ie 15ms = 246 ticks) between the last two BLE radio events. Ideally, the logs should show a constant difference of 246 ticks. The following are some examples of deviations from that case:
[246, 249, 190, 305, 241, 250]
[245, 250, 190, 304, 241, 245]
Here, a tick arrives early and the following ticks return to the previous phase with 15ms period. Another deviation I've seen is:
[246, 246, 251, 158, 246, 246]
Here, a tick arrives early but the following ticks now reset phase to the early tick and maintain the 15ms period.
I'm not sure what could be causing an early radio event from the Softdevice. Any tips on how to interpret these events would be helpful. My current plan is to use a median filter to remove these outlier events.
Thank you!