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

The normal time range of BLE latency


Hi,
I am using Zephyr's BLE for transmission
In the peripheral, I record the time when I send the notify to cental (start time)
Then when I received the central write_without_response command, I also noted the time (end time)
Treat end_time - start_time as my transmission latency
I tested it 1000 times. Is it normal for his latency (as shown below) to jitter?

Y axis unit is ms

The x-axis unit is times

Thanks,

Poyi

Parents
  • I would also try to split the measurement to the HV Notification and the Radio acknowledgement for the HV Notification and similarly on the client side the Write without response and the Radio Acknowledgement for the Write without response.

    In the Nordic softdevice architecture the  BLE_GATTS_EVT_HVN_TX_COMPLETE is the event for the Radio level ack for the notification packet and the BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE is the event for the Radio level ack for the write without response packet. This should provide data for the notify() and the complete event for the GATT Client and the similar measurements for the write without response on the will give you data for the GATT Server

    There should be similar events in the Zephyr BLE as well to help you with the measurements.

Reply
  • I would also try to split the measurement to the HV Notification and the Radio acknowledgement for the HV Notification and similarly on the client side the Write without response and the Radio Acknowledgement for the Write without response.

    In the Nordic softdevice architecture the  BLE_GATTS_EVT_HVN_TX_COMPLETE is the event for the Radio level ack for the notification packet and the BLE_GATTC_EVT_WRITE_CMD_TX_COMPLETE is the event for the Radio level ack for the write without response packet. This should provide data for the notify() and the complete event for the GATT Client and the similar measurements for the write without response on the will give you data for the GATT Server

    There should be similar events in the Zephyr BLE as well to help you with the measurements.

Children
No Data
Related