Xiaofan,

    yes, the example has some useful stuff mentioning that one could clear
the STALL during get_mass_storage_status function.
   Using that to clear halt everytime if LIBUSB_ERROR_PIPE is retrieved up
to a maximum of 5 times(couldn't loop forever),
   the clear halt didn't manage to clear the stall.

   Surprisingly as I had mentioned previously in the comments above, using a
bus analyzer, the CSW status can be retrieved if I
   were to use another standalone Microsoft program to get the status back.
   What do you think could have caused this?

  Something is preventing within this version that's preventing to read back
the CSW. I still think using lib-usb1.0 is a great start
  and would like to contribute back if I were to find anything.

   Otherwise, what would you recommend?

Max

On Tue, Aug 24, 2010 at 2:34 PM, Xiaofan Chen <xiaof...@gmail.com> wrote:

> On Tue, Aug 24, 2010 at 1:54 PM, Max Teo <max...@gmail.com> wrote:
>
> >   Another question related to this, I was able to send a mass storage
> > command using ATA16 passthru.
> >   The first command succeeded however the second similar command got back
> a
> > Pipe Error.
> > ...
> >   File "<stdin>", line 1, in <module>
> >   File "usb\core.py", line 273, in read
> >   File "usb\core.py", line 624, in read
> >   File "usb\_debug.py", line 53, in do_trace
> >   File "usb\backend\libusb10.py", line 483, in bulk_read
> >   File "usb\backend\libusb10.py", line 581, in __read
> >   File "usb\backend\libusb10.py", line 353, in _check
> > usb.core.USBError: Pipe error
> >
>
> Sorry I am not familiar with Mass Storage Device inner working myself.
> There is an example in libusb-1.0 which may or may not help.
>
>
> http://git.libusb.org/?p=libusb-pbatard.git;a=blob;f=examples/xusb.c;hb=HEAD
>
> I am not so sure why you want to use libusb-1.0 for a mass
> storage device. It may not be the best choice.
>
>
>
> --
> Xiaofan
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to