Hi,
The system has an nRF52840 as a BLE USB Dongle plugged to a PC, and connected by BLE to another device (another nRF52840).
I measure the latency time between the time the dongle sends a BLE packet until it arrives to the connected device.
The BLE connection Interval is 7.5 ms. ( I configured the max and min connection interval to 7.5 ms and the two devices managed to set the connection interval to 7.5 ms successfully)
I ran the latency test 10 times, then turned off the connected device, and turned it on again and ran the test another 10 times.
The latency measure by a scope connected to two pins, one on the dongle raised before sending a packet, and the other pin is on the connected device raised when a packet received, the latency also measured and verified by the BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE event from the Dongle.
The results for the latency between the time the dongle sends a packet until it arrives to the connected device is as following:
- 13.5 ms
- 34.8 ms
- 56 ms
- 49 ms
- 5 ms
- 51.4 ms
- 17.8 ms
- 9 ms
- 8.2 ms
- 9 ms
Turned the connected device off and on
- 5 ms
- 44.4 ms
- 7 ms
- 6 ms
- 22.4 ms
- 2.8 ms
- 47.6 ms
- 9.2 ms
- 65 ms
- 47 ms
So we expect to have latency up to 7.5 ms or maybe 15 ms max, please correct me if I am wrong.
We want to know why we got a latency greater than the expected latency, and how can we improve it to be the minimal latency.
Best Regards
JK