HP GK100F keyboard no keystrokes detected #1636
Replies: 1 comment 5 replies
-
thanks for the report, HID is a bit open/loosed in term of specs, therefore getting it work with most/all device will take some test and trial. Since I don't have this keyboard, would you provide a bit more info, in the
the txt file does not include the tuh_hid_set_report(), would you also update txt to also include that call. Anyway, I could already guess the reason for this keyboard. The tuh_hid_set_report() is for setting the LED (capslock, numlock) which typically set by PC host after enumeration. This keyboard implementation is probably waiting for this specific set report before enabling its function, which is out of HID specs, but again, this is done often enough on pc host. I will look up the HID specs to see if this is safe enough to be included as part of the enumeration for every keyboard. |
Beta Was this translation helpful? Give feedback.
-
Hardware: Raspberry Pi Pico acting as USB host
Software: TinyUSB example cdc_msc_hid
Log: see attached file
This keyboard somehow shows up as a keyboard and mouse, but doesn't have any mouse/touchpad/trackball capabilities. Keyboard protocol shows up as instance 0, mouse protocol as instance 1, but HID_ITF_PROTOCOL_NONE isn't reported by this keyboard. After the logging output stops, the RGB lightning is not enabled and no keystrokes can be received. After I change the code by executing tuh_hid_set_report(dev_addr, instance, 0, HID_REPORT_TYPE_OUTPUT, (void*)value, 1) when the keyboard protocol is detected, the RGB lighting of the keyboard is enabled, and the keystrokes are actually received.
Is there an USB HID incompatibility in this keyboard, or should TinyUSB be aware of this issue to get these kind of keyboards working out of the box without example modification? What would be the correct location in the example code to execute tuh_hid_set_report? This because after my modification the mouse protocol isn't detected anymore, so any real keyboard/mouse hardware combo detection would fail.
Thanks!
HP_GK100F.txt
Beta Was this translation helpful? Give feedback.
All reactions