-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support "feature" reports in HID #5197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Today I "stumbled" over this when trying to use an HID descriptor with a feature report... @dhalbert: once you figured out how to support feature reports "long term" in your C code, please check the code in Without this elif the code runs into an: raise RuntimeError("Unsupported main item in HID descriptor") I understand, that this comment is not relevant as of now as feature reports are not jet supported. |
@ThomasAtBBTF I did a trial implementation of feature reports in https://github.com/dhalbert/circuitpython/tree/hid-boot-protocol, which I have not yet PR'd. If you have some non-BLE way of testing this, I would be very interested. I don't have a device in mind where I know the feature reports are used. The Surface Dial has one, but I am not sure how it's used, and it's hard to spy on the BLE HID traffic to see how. |
The descriptor for a Braille Display I am having can also work on USB. |
Thank you for this! I just tried new custom HID reports with the blink(1) USB LED report descriptor (which uses FEATURE reports w/ reportIds) and TinyUSB hid_generic_inout (IN/OUT reports). But I get The TinyUSB hid_generic_inout HID Report Descriptor looks like this (one IN report, one OUT report, both 64 bytes, no reportId):
The blink(1) HID Report Descriptor looks like this (two FEATURE reports, both with report IDs: reportId 1 is 8 bytes, reportId2 is 60 bytes):
|
Thanks for this. I was not aware of >255 Usages and Usage Pages. I opened #5529 for this. Do you have anything you can test with feature reports that works with the current implementation? If you do, and they don't work, could you open an issue with those results as well? |
"Feature" reports are not currently supported in HID. They can be bidirectional. I believe this requires some additional callback processing for Feature get and set requests.
Narrows #4868.
The text was updated successfully, but these errors were encountered: