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. If the request was cancelled,the copy is aborted or not? If the software is pretty ok,it can go on copying after we receive bulk_out_complete --> -104.
> > > 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 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? My debugging log sequence is: Receive a error CBW: 0: 00 1e 45 ff 00 00 02 00 08 00 00 00 80 00 0a 25 10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Then the host send reset 8 times(WindowsXP),every reset,my log is: 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 At the last reset:bulk_out_complete --> -104, 0/31 will appear first. then go on above log. > 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