Alan Stern wrote:
I do know that for some strange reason UsbSnoop insists on dumping the contents of the transfer buffer in both the "down" and "up" reports -- in spite of the fact that the "down" values are unimportant for IN transfers and the "up" values are unimportant for OUT transfers.

This does not happen for other devices I have sniffed data on, even on the
same computer - this is why I got confused.

I found this on the usb snoopy website, which explains it:

The format output by USB Snoopy is strongly based on the way Windows
handles USB transfer requests. It tries to be somewhat smart about omitting
data that is irrelevant. For example, if you read from a device, you only
need to print the buffer's contents after the read returns. There are a
number of things that can go wrong, or that might confuse you. Here are a
few hints:

* Printing contents of a buffer might happen at wrong times. If the driver
in question does not set the transfer flags (in/out) properly, USB Snoopy
will print the buffer's contents even if it shouldn't. So, when you do a
read on a device, but get two buffer contents (one in the "URB going down"
section, the other in "URB coming back", disregard the first one, because
it contains the buffer's contents before it get filled with device data.

So, as you mentioned, looks like this driver doesn't set the transfer bits correctly (but some drivers *do* get it correct)...

Anyway, I'm still unable to reproduce the behaviour from the windows driver (recieving async bulk responses - I just dont get the URB callbacks invoked until I unplug the device), so if I run out of ideas I may seek your expertise (once again)!

Thanks,
Daniel


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to