On Fri, 9 Feb 2007, Stephan Esterhuizen wrote: > My usbmon shows the following: > > --- (1) Test for 12 bytes TX/RX _without_ writing the extra 1 byte bulk > --- packet --- > (12 byte tx/rx: run program for first time) > eb13c640 4268765364 S Co:028:00 s 00 09 0001 0000 0000 0 > eb13c640 4268765473 C Co:028:00 0 0 > eb13c640 4268767715 S Bo:028:02 -115 12 = 00000000 00000000 00000000 > eb13c640 4268767847 C Bo:028:02 0 12 > > eb13c640 4268767994 S Bi:028:06 -115 12 < > eb13c640 4268768094 C Bi:028:06 0 12 = 00000000 00000000 00000000 > eb13c640 4268771222 S Co:028:00 s 01 0b 0000 0000 0000 0 > eb13c640 4268771347 C Co:028:00 0 0
Notice those last two lines? They are a Set-Interface request, sent automatically by usbcore when a driver unbinds from a device. Apparently your device doesn't handle the request correctly. That must be why your test failed. > (12 byte tx/rx: run program for 2nd time) > eb149740 4271189686 S Co:028:00 s 00 09 0001 0000 0000 0 > eb149740 4271189871 C Co:028:00 0 0 > c4e77ac0 4271197255 S Bo:028:02 -115 12 = 00000000 00000000 00000000 > c4e77ac0 4271197366 C Bo:028:02 0 12 > > c4e77ac0 4271197507 S Bi:028:06 -115 12 < > c4e77ac0 4271698658 C Bi:028:06 -2 0 > c4e77ac0 4271698758 S Co:028:00 s 01 0b 0000 0000 0000 0 > c4e77ac0 4271698902 C Co:028:00 0 0 > It appears that test 1 (without the 1 extra byte bulk packet) fails on the > bulk read with error -2: -ENOENT(?). That error code indicates the read was cancelled, presumably when it timed out after 500 ms. See the kernel source file Documentation/usb/error-codes.txt. > I still think this might not be where > the problem lies because if I do _not_ do that second read and check the > FX2 status registers I find that the 2nd OUT packet never arrived at the > FX2's EP. Nope, the second OUT packet definitely arrived. I know for certain, because the host received an ACK in response -- it's in your usbmon log. Probably you were misled because the Set-Interface request cleared the FX2's EP. Alan Stern ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel