dskntIndustry / javahidapi

Automatically exported from code.google.com/p/javahidapi
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 harikuma...@gmail.com on 27 Jun 2013 at 5:18

GoogleCodeExporter commented 9 years ago
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 finlayth...@gmail.com on 8 Jul 2013 at 8:34

GoogleCodeExporter commented 9 years ago
I'm seeing this issue on Windows even with setting buffer[0] = 0x0

Original comment by magnuson...@gmail.com on 29 Aug 2013 at 7:49

GoogleCodeExporter commented 9 years ago
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 n...@nyu.edu on 8 Dec 2014 at 9:49