Thx

On Sun, 2006-08-20 at 13:31 -0400, Alan Stern wrote:
> On Sun, 20 Aug 2006, Peter.Chen wrote:
> 
> > I wouder what causes -104 error?
> 
> That error means the request was cancelled.
> 
> >  I have a question,the error received
> > error CBW causes -104 error,or -104 error causes it receives error CBW?
> 
> There is no direct connection.  g_file_storage cancels the request when it 
> gets some sort of reset from the host.  Those -104 errors generally 
> indicate that the host has reset the device.
I know the reason is the host has reset the device.
Now,i want to find why the host wants to reset the device?
So,i save the last CBW,and CSW,wants to see what causes the reset?

> > I find if it receives error CBW,the copy will be aborted after the host
> > tries several resets.
> > the debugging log are as belows:
> 
> You've got too much extra stuff in the debugging log.  Take out all your
> messages and leave only DEBUG, VERBOSE, and DUMP_MSGS turned on in 
> file_storage.c.
> 
> Have you tried using the "stall=n" option when you load g_file_storage?
Now,i use "stall=n" option when i load g_file_storage.
If load "stall=y",there are some errors.
If i leave only DEBUG, VERBOSE, and DUMP_MSGS,there are too many debug
message during the data transfer.And my error only happens each several
hours.I try open above DEBUG options,if the host resets device,just
repeat below debug message:
g_file_storage gadget: bulk_out_complete --> -104, 0/31
g_file_storage gadget: reset config
g_file_storage gadget: reset interface
g_file_storage gadget: set interface 0
g_file_storage gadget: full speed config #1
g_file_storage gadget: sending command-failure status
And there is an error at check_command function per above message.
It is unit_attention_data=SS_RESET_OCCURRED;And the check_command
returns -EINVAL;


> 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

Reply via email to