nRF Desktop

Hi, 

we would like to use nRF Desktop to test throughput and show we can send 20B per ms (from peripheral to central). 

The LLPM sample is not well optimized, while nRF Desktop is good application, hence we would like to do in nRF Desktop (assuming 1x nRF52840DK for gaming mouse, and one for dongle).

In the code, there is an option to spin automatically mouse cursor in circle, or for the simulated keyboard on the DK, we can send "nordic" continously... but how could we make sure that we send always 20Bytes? Is there way to modify the data sent, so that we can send randomly always 20bytes (it can still be HID data, but it must be 20bytes). 

Any suggestion?

thanks

Parents
  • Hi William

    Sorry for the slow response, I just got back from vacation. 

    It is possible that the reduced throughput when enabling uart is that you are running the Bluetooth communication and the UART handling from the same thread. 

    The BLE notification functions are blocking, which means they block the sender thread while the communication is ongoing, and if something else in that thread is delaying the BLE calls it will reduce the throughput. 

    Running the BLE and UART handling on different threads should solve this issue.

    Best regards
    Torbjørn

Reply
  • Hi William

    Sorry for the slow response, I just got back from vacation. 

    It is possible that the reduced throughput when enabling uart is that you are running the Bluetooth communication and the UART handling from the same thread. 

    The BLE notification functions are blocking, which means they block the sender thread while the communication is ongoing, and if something else in that thread is delaying the BLE calls it will reduce the throughput. 

    Running the BLE and UART handling on different threads should solve this issue.

    Best regards
    Torbjørn

Children
No Data
Related