NRF52840 as a dnogle for the mouse

   I made a dongle by merging nrf\samples\bluetooth\central_hids with zephyr\samples\subsys\usb\hid-mouse.

   When a keyboard or mouse is connected, its report map data is read and used as a descriptor for the HID.

   When you receive the Notify of the HID, send it to the USB immediately. If a keyboard is connected, it seems to be working fine. 

   But when connected to a mouse, the operation of the mouse becomes sluggish and difficult to control. I don't know where the problem is and how to solve it.

   Does anyone know what's going on?

hid_dongle.rar

Parents
  • Hello,

    Typically I would expect that a mouse would have a connection interval of 7.5ms and a keyboard for instance 30ms.

    To ensure that scanning have the least influence of the already connected devices, I would suggest that the scanning window is set to minimum. I think that is 2.5ms (or 3.75ms) is the minimum window, the scanning interval you can set to the same value (if you want to save current you can set the interval to a higher value).

    Kenneth

Reply
  • Hello,

    Typically I would expect that a mouse would have a connection interval of 7.5ms and a keyboard for instance 30ms.

    To ensure that scanning have the least influence of the already connected devices, I would suggest that the scanning window is set to minimum. I think that is 2.5ms (or 3.75ms) is the minimum window, the scanning interval you can set to the same value (if you want to save current you can set the interval to a higher value).

    Kenneth

Children
Related