sauravsingh29 / javahidapi

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

Incorrect Function error when writing to device #67

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Connect Xbox 360 Controller
2. try to use write or sendFeatureReport function with the following data 
[0x01,0x03,0x01]
3. Error Incorrect Function

What is the expected output? What do you see instead?
Excepted to flash the LEDs, Get IOException: Incorrect Function instead

What version of the product are you using? On what operating system?
1.1 on Windows

Please provide any additional information below.

I am able to open andread all data from the xbobx 360 controller.  I am unable 
however to do any form of write to it.  Such as dev.write(data); or 
dev.sendFeatureReport(data);  The data i am sending is:

    byte[] report = new byte[3];
    report[0] = 0x01; 
    report[1] = 0x03;
    report[2] = 0x01;

Original issue reported on code.google.com by 23t...@gmail.com on 26 Apr 2015 at 7:46