Hi Roger,

> > 
> > There is no way to set automatic resubmission in this
> API
> > so whenever I get a data event on a listener I got to
> check
> > all IRPs that were submitted to the iso pipe if they is
> a
> > completed one to submit it again. Older API with
> > setResubmit(true) looked better. 
> 
> How about using a map with the byte[] as a key and the
> Irp as the value. 
> Then it should be easy to lookup the Irp when you get the
> byte[] in the 
> event.

That's quite working well!! 
 
> I donloaded 0.9.2 from
> http://sourceforge.net/projects/javax-usb but I 
> can't get get my old program to work.
> 
> The following fails:
> StandardOperations operations =
> device.getStandardOperations();
> operations.setInterface((short)0x00, (short)0x01); //
> Alternate setting
> 
> (The setInterface)...
> 
> And if I don't set that I can't manage to get the
> interface I want.
> 
> Do I need the latest from CVS?
> 
> Boris, how did you get around this?

This is working ok:
com.ibm.jusb.RequestImp requestImp = new
    com.ibm.jusb.RequestImp(null);
requestImp.setRequestType((byte)1);
requestImp.setRequestCode((byte)0x0B);
requestImp.setValue((short)1);
requestImp.setIndex((short)0);
requestImp.setData(new byte[0]);
defaultControl=device.getStandardOperations();
         defaultControl.syncSubmit(requestImp);


While the following is failing (a bug?):
defaultControl.setInterface((short)0x00, (short)0x01); 
is giving 
javax.usb.UsbRuntimeException: No UsbInterface with number
1



> //Roger
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: ApacheCon, November
> 18-21 in
> Las Vegas (supported by COMDEX), the only Apache event to
> be
> fully supported by the ASF. http://www.apachecon.com
> _______________________________________________
> javax-usb-devel mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to