Has anyone else had trouble using
UsbConst.REQUESTTYPE_TYPE_VENDOR ?
Whenever I use this in my code to access my Creative
Nomad Jukebox, the syncSubmit() method hangs. Using
any other (incorrect) request type just throw
exceptions:
byte bmRequestType = UsbConst.REQUESTTYPE_DIRECTION_IN
| UsbConst.REQUESTTYPE_TYPE_VENDOR
| UsbConst.REQUESTTYPE_RECIPIENT_OTHER;
byte bRequest = (byte)0x43;
short wValue = 0;
short wIndex = 0;
UsbControlIrp controlIrp = new DefaultUsbControlIrp(
bmRequestType, bRequest,
wValue, wIndex);
controlIrp.setLength(25);
controlIrp.setData(b);
System.out.println("Going to submit device IRP..");
jukebox.syncSubmit(controlIrp);
System.out.println("Device IRP complete");
This code results in the following output:
.
.
.
RequestType: c3
Request: 43
Value: 0000
Index: 0000
Going to submit device IRP..
And thats all it does. Does anyone have any similar
problems
Thanks,
Noel
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
javax-usb-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel