Hi,
I wanted to do a Get & Set Report request to the USB Device.
When I Query for a Particular Report, The reponse data packet carries data
for some other Report. Meaning If I query for Report with ID 5, reponse
packet caries data for some other packets.
Here is a sample code that I had written. Can anybody please look into the
code and let me know why.
byte bmRequestType = (byte)0xA1;
byte bRequest = (byte)0x01;
short wValue = 56 ( Dec equivalent of 38, MSB 3 refers to feature and 8 is
the report ID)
short wIndex = 0;
UsbControlIrp irp = pipe.createUsbControlIrp
(bmRequestType,bRequest,wValue,wIndex);
byte data[] = new byte[20];
irp.setData(data);
pipein.syncSubmit(irp);
I also want to know the format of the data[] for setReport Request.
Any help would be highly appreciated.
Thanks,
B.K.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel