nrf52832 ble-hids-keyboard -measure the bluetooth report rate

I want to measure the Bluetooth report rate. Is there a way to do it?

Or let me know if you have any information on the basic nrf52832ble response speed.

Parents Reply Children
  • I want to measure the Bluetooth response time.

  • I assume you are still talking about a keyboard. How would you normally measure the response time of a keyboard (a wired keyboard, not bluetooth)?

    There is no trivial way to do this. Either you need to write your own software that connects to your peripheral-hids-keyboard that can receive the keystroke and signal this on a pin, or you can set up a high speed camera to measure the latency between a keypress and the received press from the computer. Something like this

    The reason this is not trivial is that there is no event in the keyboard application telling you when the message was sent to the computer. It is possible to get a callback on the nRF when this message was sent. You can look at how this project uses bt_hids_inp_rep_send() in main.c -> key_report_con_send(). The last input parameter here is a callback to when the message is sent, but I don't know the accuracy of the timing of this event. It is used to know when the message was acked by the receiver, and that your buffer is free to be reused if needed.

    Best regards,

    Edvin

Related