This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LLPM questions

Dear Nordic Engineer

Our costomer has developed a keyboard using LLPM in NCS.Now Now they have encountered some problems.We have been working with them for a long time but there still no good solution to these problems.

1、When using the WIN 10 Version 20H2 or higher the PC will be connected to the keyboard.After working for a period of time the Caps and Num indicator lights will not light up.Our research found that the reason is that the PC did't issue instuctions to the keyboard.In this case,the "keyboard_leds_handler"  does not resond.Because the communication data encrtpted we can't capture the data packet,so this problem is shelved and we can't solve it.

2、 In wired mode, the keyboard uses a USB cable to connect to the PC.The keyboard can't wake up the PC while it's sleeping.Our research found that when the PC is sleeping,we call "usb_wakeup => usb_wakeup_request"  and the D+ line of the USB will generate a signal.We measured the duration an oscilloscope to be about 10ms, but this did not wake the PC.

Please give us some good suggestions.

Best regard.

Parents
  • Hi,

    I am taking over this case, to help you on these issues we need to understand if the issue is also observed on the original project delivered by Nordic? Please also describe which NCS version and sample project you are using.

    Regarding debugging, you can use CONFIG_BT_DEBUG_KEYS and CONFIG_BT_USE_DEBUG_KEYS to use the Bluetooth debug keys to encrypt the connection. Then sniffers such as Ellisys should be able to automatically decrypt the connection (the nRF Sniffer should also be able to decrypt the conenction I believe).

    Best regards,
    Kenneth

  • Dear Kenneth

    1、Use the NCS(1)1.7.1 nrf_desktop program as the keyboard, define the two buttons on the NRF52833 DK as the NUM and CAP keys, and do not make other modifications, this problem will be reproduced when connected to a laptop with win 10 20H2 version for a period of time.

    2、Use NCS1.6.1\nrf\applications \desktop\nrf52840gmouse_nrf52840, close sensor-3360, use NRF52840 DK, and connect the computer with the NRF_USB port of DK. Wake up the computer when the computer sleeps for 30 minutes. This problem can be reproduced by repeating the test a few times.

  • I have reported it internally, let me know if you have further findings to the issues that I can add internally.

    Kenneth

Reply Children
  • Hi,

    Regarding 1. I do believe customer is in contact with one of our FAE's on these issues, is that right?

    Regarding 2.

    We've tested with ncs 1.6.1 release and build for nrf52840dk_nrf52840, app_ZDebug.conf. Before the HOST PC is going to sleep it has to enable the remote wakeup feature - that could be disabled by default in bios. We did not see any bug there, please correct me if we do not test it as the customer does. Please see below LOG output.

    ...
    00> [03607907] <dbg> usb_device.usb_handle_std_device_req: REQ_SET_FEATURE
    00> [03608012] <inf> usb_hid: Device suspended
    00> [03608013] <wrn> usb_state: USB suspend
    00> [03608014] <inf> usb_state: USB HID 0x20003074 disabled
    ...
    00> [03608020] <inf> event_manager: e: usb_state_event state:SUSPENDEDI'm not sure if i got it correctly
    ...
    00> [04005444] <inf> event_manager: e: button_event key_id=0x3 pressed
    00> [04005460] <inf> usb_hid: Device resumed

    Best regards,
    Kenneth

Related