Replies: 2 comments
-
You may need to provide more details about the device (eg: the output of hidtest of your device under Linux) and the your test results. Do you know the detail communication protocol of the device? It can be that the device is broken. It can be that you need to send a set feature request before sending the get feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Move this to discussion as it is unlikely hidapi issue. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have an issue getting a feature report from a HMD device: a first call to hid_get_feature_report() reports an error (On Windows, it is a ERROR_GEN_FAILURE - A device attached to the system is not functioning) while a second call returns the expected buffer.
I have the same issue on Linux (Fedora 38).
Even if I close and re-open the device between the 2 requests. For instance, a first use of 'hidapitester' returns -1 bytes, while a second use returns the 64 expected bytes.
And that behavior is cyclic: a third call fails, a forth call succeeds, and so one.
I tried with the hid client test from Microsoft (hclient), which uses an other API (HidD_GetFeature), and I have the exact same behavior.
Could any of you have an explanation ?
Beta Was this translation helpful? Give feedback.
All reactions