-
Notifications
You must be signed in to change notification settings - Fork 899
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
hid_write works on windows 8 and 10, but fails on windows 7 #253
Comments
You need to send a message that's specific to your device. You're just sending data which was from my test device (0x1,0x81, 17 bytes). You need to figure out what the device wants to receive, and send that. |
Thanks for reply! I do not have specification for my device, so I figure out what is the message to sent to device. In my opinion the problem is different because the same instance of device allows me to call hid_write from win8 and win10 but I can not make any hid_write from win7. Can you give me more hints on this issue? I give here another example from my setup with hid_write(). This example again works on win10, but not on win7. The message to send I figure out by using Wireshark and USBPcap where I looked for the message sent from a test application from the manufacturer of device.
The upper buffer is used, and size is 8.
|
Are you sure the report number is right? The device uses multiple reports? |
Thanks signal11. Indeed the report number was the problem. Setting it to 0x00 instead of 0x01 solved the problem. Some comments from next links helped.
|
I have the Clubsport Fanatec pedals v3 EU for car gaming. I use the hid api to read the state of pedals and all went excellent on windows 10 and 8. Thank you! I tested the same setup on more machines with windows 7, but none succeeded. The fail is in hid_write() at calling WriteFile(). Get last error is ERROR_INVALID_PARAMETER , 87 (0x57), "The parameter is incorrect.". This is the first call to hid after hid_open().
Do you have any idea on what may be wrong here?
I use hidapi 0.8.0-rc1. Following is my code.
The text was updated successfully, but these errors were encountered: