Hi,
>
> > How about testing loading/unloading the driver without the device
> > attached?
If I load/unload the driver without the device attached I do not
see any problems with the driver. The driver fails to register on the
first time if I simply plug in the device after loading.
.....
Questions on CBW and Bulk Data Transfer....
I have a note from SMSC that I think describes what I want to
do....however, I don't know exactly what is done and what isn't done by
the usb driver already.....For Mass Storage Class specification, there are
three phases, a CBW (Command Block Wrapper) Phase, a Data Phase and a
Status Phase. I could not find an obvious example of this in the usb
drivers (please let me know if there is one). The first phase is:
Phase 1 (CBW)
The is called the "command phase" in their documentation
short int Signature = 0xa55a
unsigned char tag = 0x00
short int DataTransferLen = 0x0001
unsigned char Flags = 0x80
CBWCBLength = 0x08
This is called the "Command Block Section" in the documentation
unsigned char cbwcb[7] ={0x01, 0x03,0x50,0x00,0x00,0x00,0x00,0x01};
The first byte is an auto increment flag,second is the memory space type,
the 3rd and 4th is the memory address MSB+LSB, the last four are the data
length.
I assume that all of this must be written to the device and that the
command phase is the "setup_packet" in the control urb. The cbwcb is the
data that is written in the control urb. The question is, does the
usb controller add the signature or anything else? Also, how does the
urb know how long many bytes the setup_packet is? There is only one
transfer_buffer_length...
The data phase corresponds to, I believe a bulk write or read, and
finally, the status phase looks similar to the CBW phase except with
different flags and no cbwcb.
Thanks in advance,
Jeff
_____________________________________________________
Jeffrey McDonald, University of Pittsburgh [EMAIL PROTECTED]
100 Allen Hall office: 412-624-9056
3941 O'Hara St. lab: 412-624-9160
Dept. of Physics and Astronomy fax: 412-624-9163
University of Pittsburgh
Pittsburgh, PA 15260
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users