On Sat, 2012-10-27 at 04:46 +0200, Peter Stuge wrote:
> therau2000 wrote:
> > > > 2-More intensive testing showed
> > >
> > > What testing?
> >
> > My own testing; who else's?
>
> Of course, but how did you do it?
1-started a large file copy (over 100 MB) to Device's removable drive;
2-using "competing program", I tried to connect to the Device; it failed
repeatedly until the file copy to the Device's removable drive was
completed, then it worked;
3-did the opposite with same result.
> > Device commands are op code C5; they are all the same with
> > different parameter values. Nothing interesting there.
>
> I'm not sure if these are visible in the sniffer output?
Yes they are; look at URB 0041 to 0044, 0440 to 0444, etc. Look for "80
00 10 C5".
>
>
> > The sniffer output is from the "competing program" using default OS
> > driver USBSTOR. It contains BOTH types of communication and the
> > switch over is quite visible.
>
> Where would you say that it happens in the log?
Program was launched at URB 0018 21:51:10.025;
Device was ejected at "URB 0685-0684 21:51:15.030"
>
> Also, do I understand correctly that you snipped part of the log out
> - from URB 45 up until URB 153, the response to URB 152?
Yes I did; all URBs for the C5 op codes are identical to URB 0041 to
0044 except for direction and size.
>
> Without looking very closely at any of the data being sent, it's
> clear from the log that the only Driver Name values are USBSTOR and
> usbhub. This means that you will need to talk to those drivers in
> order to replicate what the competing program does, rather than
> trying to use libusb. I still think the storage subsystem has your
> answer.
Actually, from the time the program is launched, USBSTOR is not seen; it
looks like it was momentarily "suspended" or "detached"; after the
program ejects the Device, USBSTOR is active again. The Device having
been ejected, there is no clear trace of what exactly happened.
libusbx is required because my Java Program is used on Linux and Mac OS
X as well. My prototype program does work without any modification under
64-bit Linux. I have not tried it under Mac OS X yet due to lack of
time.
There are likely other developers having the same problem. There are a
large number of USB devices that show up as removable drives; it looks
like the majority of them are cameras without custom drivers.
therau2000
------------------------------------------------------------------------------
WINDOWS 8 is here.
Millions of people. Your app in 30 days.
Visit The Windows 8 Center at Sourceforge for all your go to resources.
http://windows8center.sourceforge.net/
join-generation-app-and-make-money-coding-fast/
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel