Why are you converting the wValue in your head? Just put the hex value there. Because you are not converting it right. If you want the MSB to be 3 and the LSB to be 8 then that is 0x0308, not 0x38. So 56 is way off from what you want. Just put 0x0308 there instead.
Not saying that is your problem, but it is one obvious problem :) On 3/30/07, BK <[EMAIL PROTECTED]> wrote: > 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 > [email protected] > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > > ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
