Skip to content

does the HID report descriptor matter? #1088

Answered by flit
nerdralph asked this question in Q&A
Discussion options

You must be logged in to vote

PyOCD doesn't itself parse the HID report descriptor, but kernel HID drivers will, and hidapi and pywinusb backends rely on the OS HID support and therefore the parsed reports. For instance, if you tried to send an OUT report packet with hidapi for a device whose HID report descriptors only define IN reports, it will not work.

It will work on Linux with no HID reports defined, because on that OS pyocd just uses libusb (via pyusb) to directly access the device. On macOS and Windows the report descriptors matter, because you cannot detach the kernel HID driver.

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@flit
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by nerdralph
Comment options

You must be logged in to vote
2 replies
@nerdralph
Comment options

@flit
Comment options

Comment options

You must be logged in to vote
1 reply
@flit
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants