On Tuesday 29 March 2005 04:16 pm, jklaas wrote:
> I have another question that I don't quite understand.  With the FM Radio
> the TransferBufferLength in the URB going down is usually either 0x16 or
> 0xca.  The URB coming back has the TransferBufferLength is 0x06.  I
> guess I don't quite understand why they're different.

In one direction (OUT or "goind down" in sniffusb's terminology), the length 
of the buffer depends on the size of the command that you are sending to the 
device. On the way back (IN or "going back"), the size tells how may bytes 
were sent back by the device as a response to the received command. Assuming 
that you don't have a description of those commands, the trick is to figure 
out what they mean (and the responses).

This link may give you more insight in reverse engineering a USB device 
driver: http://www.toth.demon.co.uk/usb/reverse-0.2.txt

J.


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
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