USB HID Keyboard Fail.(USB HID device is not ready)

Hi,

I am developing a demo where an nRF52840 development board measures Bluetooth RSSI simultaneously from a mobile phone and the board itself to enable computer unlocking based on proximity.  Initially, I attempted to automate password entry by reading serial port data and triggering a script, but this failed due to OS security restrictions blocking script-based input.

As an alternative, I decided to implement a USB HID Keyboard to directly send keystrokes(The NCS Sample Peripheral HIDS keyboard doesn't seem to work for me because it uses Bluetooth connection too). However, the "USB HID device is not ready" error persists when using the hid-keyboard example in Zephyr Sample. This aligns with a reported issue in the Nordic DevZone (USB hid-keyboard example ""USB HID device is not ready" - Nordic Q&A - Nordic DevZone - Nordic DevZone)

I suspect that it might be a multiplexing conflict between USB as a serial port and USB keyboard input. Could this be a possible cause ?How can I check it? Are there any other alternative solutions?

Thank you!

Parents
  • Hello,

    I can't find any other cases than the one you linked, so it's difficult to theorize what can be the problem here. Did you try what the other case said? E.g. did you do an eraseall/recover before programming the updated sample? and did you unplug and plugin the USB afterwards (in other words a full power cycle of the nRF52840)?

    Kenneth

Reply
  • Hello,

    I can't find any other cases than the one you linked, so it's difficult to theorize what can be the problem here. Did you try what the other case said? E.g. did you do an eraseall/recover before programming the updated sample? and did you unplug and plugin the USB afterwards (in other words a full power cycle of the nRF52840)?

    Kenneth

Children
No Data
Related