On Tue, Aug 24, 2010 at 5:13 PM, Max Teo <max...@gmail.com> wrote:
>>>> ind.read(13, timeout=5000)
> libusb:debug [libusb_get_config_descriptor] index 0
> libusb:debug [libusb_get_config_descriptor] index 0
> libusb:debug [winusb_submit_bulk_transfer] matched endpoint 81 with
> interface 0
> libusb:debug [usbi_create_fd] could not duplicate handle for CancelIo -
> using original one
> libusb:debug [winusb_submit_bulk_transfer] reading 13 bytes
> libusb:debug [usbi_add_pollfd] add fd 4 events 1
> libusb:debug [libusb_get_next_timeout] next timeout in 4.999235s
> libusb:debug [handle_events] poll() 2 fds with timeout in 5000ms
> libusb:debug [handle_events] poll() returned 1
> libusb:debug [windows_handle_events] checking fd 3 with revents = 0000
> libusb:debug [windows_handle_events] checking fd 4 with revents = 0001
> libusb:debug [usbi_remove_pollfd] remove fd 4
> libusb:debug [windows_transfer_callback] handling I/O completion with
> errcode 31
> libusb:debug [windows_transfer_callback] detected endpoint stall
> libusb:debug [bulk_transfer_cb] actual_length=0
>
> I tried polling for a few times by sending a libusb_clear_halt,
> (technically its not required for the other standalone program)
> but got back the Pipe error.

You snipped too many things to make the whole thing meaningful.
However I think this is kind of device problem, which means the
device does not like this sequence of commands.

>
>> Since you have the bus analyzer, you can see the differences
>> on the wire.
>>

As I mentioned before, you can use the Bus Analyzer to see
the sequence the other working program sends out, and then
you can try it with your pyusb using the same sequence.


-- 
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

Reply via email to