On Mon, 26 Jul 2004, Duncan Sands wrote:

> Hi Alan, I tried using USB snoopy with windows XP (the one from
> sourceforge), but it seems to miss some urbs, in particular I don't see
> any string descriptor fetches!  What do you use for snooping on windows?

On the Windows side I use USB Snoopy also.  There's no question, it
definitely misses some URBs.  I suppose that's because it utilizes the
Windows USB kernel filter facility and that facility doesn't see all the
packets.

> Also, I tried running windows XP inside vmware, and using the usbfs
> snooping that Greg added recently. Interestingly, when run inside
> vmware, windows rejected the strings [1], both with and without the
> driver for the modem.  This suggests to me that either: (A) the modem
> sends valid strings when set up by native windows XP, i.e. we get bad
> strings because we initialize the modem differently, or (B) the vmware
> USB implementation is causing the problem...
> 
> Ciao,
> 
> Duncan.
> 
> [1] This is not completely clear, since windows also displayed the wrong device 
> class,
> even though it gets that information OK - so maybe vmware is confusing it.

I changed the file_storage gadget so that it would send full 255-byte
replies (with type = length = 0) to string fetches when the requested
length was 255 bytes and the string number was > 0.  It's hard to tell
whether Windows liked it or not, because in any case the descriptors were
fetched twice -- the first time asking for 255 bytes and the second time 
asking for just the first two bytes and then just the actual string 
length.

I also didn't bother to look if Windows displayed the correct strings, and
it's always possible that those strings were already in the registry 
because of earlier tests.  I don't know how to remove old device entries 
from Windows 2000.

Alan Stern



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to