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

    I spent some more time with the example yesterday, and got the base functionality implemented. It adds the NUS client and server to the LLPM sample, and sets up the peripheral device to send 20 byte payloads as fast as possible. 

    The central device will do nothing other than count the incoming bytes, and display the number of received bytes every second. It's probably not the most compelling demo, but at least it demonstrates that 20 bytes every millisecond is possible, and it's possible to build on the example to make the demo a bit more interesting. 

    The demo needs to be used in a similar fashion to the LLPM sample: 

    1) Press 'm' on kit 1 to make it the central

    2) Press 's' on kit 2 to make it peripheral

    3) Press any key on kit 1 to enable 1ms connection interval

    4) Press any key on kit 1 to start the test

    5) Press any key on kit 2 to start sending dummy packets

    Once everything is running you should see the central device reporting a number close to 20000 every second. 

    Code included below. It includes a local git repository, if you want to check the changes from the original LLPM sample:

    286757_llpm_20b_test_working.zip

    Best regards
    Torbjørn

Reply
  • Hi William

    I spent some more time with the example yesterday, and got the base functionality implemented. It adds the NUS client and server to the LLPM sample, and sets up the peripheral device to send 20 byte payloads as fast as possible. 

    The central device will do nothing other than count the incoming bytes, and display the number of received bytes every second. It's probably not the most compelling demo, but at least it demonstrates that 20 bytes every millisecond is possible, and it's possible to build on the example to make the demo a bit more interesting. 

    The demo needs to be used in a similar fashion to the LLPM sample: 

    1) Press 'm' on kit 1 to make it the central

    2) Press 's' on kit 2 to make it peripheral

    3) Press any key on kit 1 to enable 1ms connection interval

    4) Press any key on kit 1 to start the test

    5) Press any key on kit 2 to start sending dummy packets

    Once everything is running you should see the central device reporting a number close to 20000 every second. 

    Code included below. It includes a local git repository, if you want to check the changes from the original LLPM sample:

    286757_llpm_20b_test_working.zip

    Best regards
    Torbjørn

Children
No Data
Related