Skip to content
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

bluetooth_applications/bluetooth_hid_keyboard/ HID report descriptor is erroneous in documentation #12

Open
Xevel opened this issue Mar 29, 2023 · 0 comments
Labels
0-bug Something isn't working

Comments

@Xevel
Copy link

Xevel commented Mar 29, 2023

Hello,

In readme.md of the bluetooth_applications/bluetooth_hid_keyboard/ project, there is a mistake in the HID descriptor.

It ends with:

0x05, 0x01 | Usage Minimum (Reserved (no event indicated))
0x05, 0x01 | Usage Maximum (Keyboard Application)
0x05, 0x01 | Input (Data,Array) Key arrays (6 bytes)
0xc0 | End Collection

It should instead look something like (needs verification, but it kind of works):

0x19, 0x00,                    //   USAGE_MINIMUM (Reserved (no event indicated))
0x29, 0x65,                    //   USAGE_MAXIMUM (Keyboard Application)
0x81, 0x00,                    //   INPUT (Data,Ary,Abs)
0xc0                           // END_COLLECTION

Not sure where the actual code is and if it has the same problems or not, but it might help others trying to code their own keyboard to fix it.

Best,
Nicolas

@Xevel Xevel added the 0-bug Something isn't working label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0-bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant