[libusb] hid_read doesn't include the report ID #759

Closed
opened 2025-10-01 08:00:22 -05:00 by acolombier · 2 comments
acolombier commented 2025-10-01 08:00:22 -05:00 (Migrated from github.com)

Hi,

I have using hidapi_libusb on Android, and it looks like the first byte returned by hid_read is not the report ID as the doc suggest.

Trying on my Linux machine with hidraw and the same device, hid_read does include the report ID as first byte, so I suspect there is something wrong with libusb, or libusb on Android.

Do you have any suggestion to work around this? Mainly, I'm wondering if there is a way, even as a subsequent call to get the report ID related to a buffer read with hid_read

Tested with version 0.14.0

Hi, I have using hidapi_libusb on Android, and it looks like the first byte returned by `hid_read` is not the report ID as the doc suggest. Trying on my Linux machine with `hidraw` and the same device, `hid_read` does include the report ID as first byte, so I suspect there is something wrong with libusb, or libusb on Android. Do you have any suggestion to work around this? Mainly, I'm wondering if there is a way, even as a subsequent call to get the report ID related to a buffer read with `hid_read` Tested with version 0.14.0
acolombier commented 2025-10-01 09:21:23 -05:00 (Migrated from github.com)

Apologies, after further debugging, it looks like this is inaccurate and hid_read does return the right value!

Apologies, after further debugging, it looks like this is inaccurate and `hid_read` does return the right value!
acolombier commented 2025-10-01 11:06:34 -05:00 (Migrated from github.com)

FYI, the problem was actually https://github.com/libusb/hidapi/issues/274
Now testing #728 to see if it fixes the issue

FYI, the problem was actually https://github.com/libusb/hidapi/issues/274 Now testing #728 to see if it fixes the issue
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi#759
No description provided.