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

parameter incorrect error when writing data to the USB HID device #53

Open
GoogleCodeExporter opened this issue Mar 28, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. On windows system , open the device by vendor id and product id
2. Write some data using the opened handle
3.It throws parameter incorrect exception(using netbeans IDE on windows)

What is the expected output? What do you see instead?
It should write data to the USB device , it shows parameter incorrect error

What version of the product are you using? On what operating system?
version 1.1 ,windows 7 operating system(32bit) 

Please provide any additional information below.
downloaded the following dll , dll from this 
location(https://code.google.com/r/sari4hp-hidapi/source/browse/lib/native/win/h
idapi-jni-32.dll?r=53b8fd98f02910576e4ca9323cf9895972a25c71&spec=svn53b8fd98f029
10576e4ca9323cf9895972a25c71)

Original issue reported on code.google.com by [email protected] on 27 Jun 2013 at 5:18

@GoogleCodeExporter
Copy link
Author

I've encountered this error when writing the wrong report ID number and/or 
size.  Check that the size of the buffer you are writing matches the size of 
the output report, and that byte[0] equals a valid output report ID.

Original comment by [email protected] on 8 Jul 2013 at 8:34

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

I'm seeing this issue on Windows even with setting buffer[0] = 0x0

Original comment by [email protected] on 29 Aug 2013 at 7:49

  • Added labels: ****
  • Removed labels: ****

@GoogleCodeExporter
Copy link
Author

Also seeing the same issue on Win7/64bit JDK 1.7. I know it's not the buffer 
ize/values because everything works fine using python/pywinusb on same 
computer. 

Original comment by [email protected] on 8 Dec 2014 at 9:49

  • Added labels: ****
  • Removed labels: ****

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant