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

Exception parsing report descriptor #10

Open
whot opened this issue Dec 16, 2021 · 0 comments
Open

Exception parsing report descriptor #10

whot opened this issue Dec 16, 2021 · 0 comments

Comments

@whot
Copy link

whot commented Dec 16, 2021

Traceback (most recent call last):
  File "/home/whot/tmp/2021-12-16-Thu/test.py", line 7, in <module>
    hid_parser.ReportDescriptor(bs)
  File "/home/whot/.local/lib/python3.10/site-packages/hid_parser/__init__.py", line 422, in __init__
    self._parse()
  File "/home/whot/.local/lib/python3.10/site-packages/hid_parser/__init__.py", line 610, in _parse
    self._append_items(
  File "/home/whot/.local/lib/python3.10/site-packages/hid_parser/__init__.py", line 540, in _append_items
    raise InvalidReportDescriptor(f'Expecting {report_count} usages but got {len(usages)}')
hid_parser.InvalidReportDescriptor: Expecting 18 usages but got 1

This is from a Microsoft sculpt ergonomic desktop, identifies as Microsoft Microsoft® 2.4GHz Transceiver v9.0

For report descriptor:

296 05 0c 09 01 a1 01 85 20 06 00 ff 15 00 26 ff 00 75 08 95 12 0a 0a fa b1 02 85 21 06 00 ff 15 00 25 01 75 01 95 10 1a 10 fa 2a 1f fa 81 02 85 28 06 00 ff 75 01 95 18 1a 10 fa 2a 1f fa b1 02 85 22 06 00 ff 15 00 26 ff 00 75 08 95 1a 0a 0a fa b1 02 85 23 06 00 ff 0a 0a fa b1 02 85 a2 06 00 ff 0a 0a fa b1 02 85 a3 06 00 ff 0a 0a fa b1 02 85 24 06 00 ff 95 1f 0a 0a fa b1 02 85 25 06 00 ff 0a 0a fa b1 02 85 a4 06 00 ff 95 1f 0a 0a fa b1 02 85 a5 06 00 ff 0a 0a fa b1 02 85 26 06 00 ff 0a 0a fa b1 02 85 27 06 00 ff 0a 0a fa 81 02 c0 05 0c 09 01 a1 01 85 07 05 0c 19 00 2a ff 03 95 01 75 10 15 00 26 ff 03 81 00 05 07 19 00 29 ff 75 08 26 ff 00 81 00 81 01 06 00 ff 0a 03 fe 0a 04 fe 75 01 95 02 25 01 81 02 0a 05 ff 95 01 75 05 25 1f 81 02 75 01 81 01 1a 01 fd 2a ff fd 15 01 26 ff 00 75 08 81 00 0a 02 ff 26 ff 00 15 00 81 02 c0 05 01 09 80 a1 01 85 03 19 00 29 ff 15 00 26 ff 00 81 00 c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant