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

WinXP dev.write: The parameter is incorrect #13

Closed
dportabella opened this issue Aug 12, 2011 · 2 comments
Closed

WinXP dev.write: The parameter is incorrect #13

dportabella opened this issue Aug 12, 2011 · 2 comments

Comments

@dportabella
Copy link

Hello,

I've used hidapi in Mac and it works great!
However, when I try it in WinXP, the dev.write operation fails with a "The parameter is incorrect" message.
(it enumerates the devices correctly, it opens my device correctly, but dev.write fails)

I've compiled it with the free version of visualstudio:
http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

and also with MinGW.

Any idea?
What can I look at?

Regards,
David

@signal11
Copy link
Owner

On 08/12/2011 01:34 PM, dportabella wrote:

with a "The parameter is incorrect" message.
(it enumerates the devices correctly, it opens my device correctly, but dev.write fails)

The report number at the beginning is wrong. Make sure the first byte is
the report number. There are cases where it will appear to work on Mac
if you don't do this, but it's really just a quirk in the way it has to
be implemented. Experiment with the test GUI until you get it right.

Alan.

@dportabella
Copy link
Author

Thanks for the prompt answer!

You are right; my application didn't send the right report, but it was working somehow in mac.
Now that the application is corrected, it works both in mac and win.

Many thanks,
David

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

2 participants