How can I check the latency? I would like to plot a graph of no. of packets Vs time. I'm using hid keyboard example & SDK 15.2.
How can I check the latency? I would like to plot a graph of no. of packets Vs time. I'm using hid keyboard example & SDK 15.2.
We don't have such functionality or display directly no, but you may for instance measure the time between sd_ble_gatts_hvx() to BLE_GATT_EVT_HVN_TX_COMPLETE event:
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html
Maybe you can toggle a GPIO or output on the UART some sort of timestamp to track deviation over time.
Best regards,
Kenneth
We don't have such functionality or display directly no, but you may for instance measure the time between sd_ble_gatts_hvx() to BLE_GATT_EVT_HVN_TX_COMPLETE event:
http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.0/group___b_l_e___g_a_t_t_s___h_v_n___m_s_c.html
Maybe you can toggle a GPIO or output on the UART some sort of timestamp to track deviation over time.
Best regards,
Kenneth
I mostly wanted to check it at host side like the time when the packet is transmitted from microcontroller to the time the packet is received on the host machine. So can softwares like nrf connect, wireshark help me at host side?
It may also be possible yes, but I am not aware of how you would need to go about to implement this. I believe my suggestion should give a realistic and practical measurements of the latency.
Best regards,
Kenneth