On Wed, 12 Feb 2003, Aurélien GODIN wrote: > Hello, > > I have some trouble using the javax.usb package. I succeed in lauching > the Usb services, finding the devices and opening the corresponding > pipes. If these devices use interrupt transfer mode, everything's ok. > But I don't succeed in retrieving data when the device uses isochronous > transfers. Can somebody help and explain me what is the differences with > the other modes and how to collect the data ? (a few lines of code would > be much appreciated...). > The device which is connected is a Labtec Webcam (352x288 images) : I > have noticed that two pipes are open, one functioning in interrupt mode > (what is its use ?) and the second one using isochronous mode but I have > absolutely no idea how to handle them !
Basically you just create a new IRP and give it a buffer (byte[]) with the apropriate size. Submit it on the pipe, and wait for it to complete. When it is completed you can get the data from the irp with getData(). Should not be a big difference from how you handle interrupt pipes. You could alo use events, but that would probably generate too much overhead. If you show some code for how you try to use it I'll be hapy to see if I can spot what you are doing wrong. Also, amke sure you use the CVA (as Dan pointed out) since there was a bug in 0.10 that blocked data comming back from isochronous pipes). //Roger ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ javax-usb-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/javax-usb-devel