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

After NCS 1.3.0 nRF Desktop LLPM is disconnected, there is no data on the USB.

I now integrate USB, BLE, LLPM, keyboard HID and Mouse HID to nrf52833.


When I added CONFIG_DESKTOP_HID_MOUSE=y, my project was abnormal.


BLE connection:                     Move Mouse and report keyboard work correctly.

USB connected:                      data cannot be reported to PC.

LLPM cannot be connected:   disconnect after connection, and then repeat the process.

Parents
  • Hello,

    Have you tried the latest v1.4.1 release?

    Kenneth

  • I try to add HID mouse and HID keyboard device, and then connect the PC via USB.

    I can configure the mouse or keyboard separately, but there are problems when adding them at the same time. In usb_init of usb_state.c

    Set CONFIG_USB_HID_DEVICE_COUNT = 2

    Set up
    CONFIG_DESKTOP_HID_REPORT_MOUSE_SUPPORT=1

    CONFIG_DESKTOP_HID_REPORT_KEYBOARD_SUPPORT=1

    If usb_hid_device[0] is initialized to MOUSE, MOUSE is available, but KEYBOARD is not available.
    If usb_hid_device[0] is initialized to KEYBOARD, KEYBOARD is available, but MOUSE is not available.

    An error occurs when using usb_hid_device[1]. After report_sent, enter the report_issued of usb_state.c to report an error
    LOG_WRN("No subscriber %p", subscriber_id);
    Then MOUSE and KEYBOARD are not available.

    It seems that the logic of the code does not support modification to support both KEYBOARD device and MOUSE device connected via USB.
    So how should I modify it?
    Is it convenient to use build_nrf52840dk_nrf52840 to simulate? I have tried many modifications but failed to achieve the effect, and support KEYBOARD device and MOUSE device at the same time.

Reply
  • I try to add HID mouse and HID keyboard device, and then connect the PC via USB.

    I can configure the mouse or keyboard separately, but there are problems when adding them at the same time. In usb_init of usb_state.c

    Set CONFIG_USB_HID_DEVICE_COUNT = 2

    Set up
    CONFIG_DESKTOP_HID_REPORT_MOUSE_SUPPORT=1

    CONFIG_DESKTOP_HID_REPORT_KEYBOARD_SUPPORT=1

    If usb_hid_device[0] is initialized to MOUSE, MOUSE is available, but KEYBOARD is not available.
    If usb_hid_device[0] is initialized to KEYBOARD, KEYBOARD is available, but MOUSE is not available.

    An error occurs when using usb_hid_device[1]. After report_sent, enter the report_issued of usb_state.c to report an error
    LOG_WRN("No subscriber %p", subscriber_id);
    Then MOUSE and KEYBOARD are not available.

    It seems that the logic of the code does not support modification to support both KEYBOARD device and MOUSE device connected via USB.
    So how should I modify it?
    Is it convenient to use build_nrf52840dk_nrf52840 to simulate? I have tried many modifications but failed to achieve the effect, and support KEYBOARD device and MOUSE device at the same time.

Children
Related