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

How can I send hid data with TIMER1_IRQHandler strict every 8ms?

I find it unstable to send hid data, even if I set timer 1 every 8ms to send hid data.

I can catch data bag from wireshark it seems that interval of two data even close to 1ms.

How can this happen?

but if I set timer every 15ms, it become more stable.

But I need send it every 8ms, can you help?

It is very stable in lenovo N700 mouse (nrf51822)

test soft is in attachments

Best regards

MouseMovementRecorder.zip

Parents
  • You mean this?

    #define MIN_CONN_INTERVAL               MSEC_TO_UNITS(7.5, UNIT_1_25_MS)            /**< Minimum connection interval (7.5 ms). */
    #define MAX_CONN_INTERVAL               MSEC_TO_UNITS(15, UNIT_1_25_MS)             /**< Maximum connection interval (15 ms). */
    
    

    And I can find "ble_radio_notification" be used in nrf51_sdk_v4_4_2_33551\nrf51822\Board\nrf6310\ble\ble_app_hids_mouse but not in nrf51_sdk_v5_1_0_36092

    where can I receive the radio notification event?

Reply
  • You mean this?

    #define MIN_CONN_INTERVAL               MSEC_TO_UNITS(7.5, UNIT_1_25_MS)            /**< Minimum connection interval (7.5 ms). */
    #define MAX_CONN_INTERVAL               MSEC_TO_UNITS(15, UNIT_1_25_MS)             /**< Maximum connection interval (15 ms). */
    
    

    And I can find "ble_radio_notification" be used in nrf51_sdk_v4_4_2_33551\nrf51822\Board\nrf6310\ble\ble_app_hids_mouse but not in nrf51_sdk_v5_1_0_36092

    where can I receive the radio notification event?

Children
Related