The result remains the same to not import libusb01.
How can I test that there is data really staying in EP6 ?
>>> from usb.backend import libusb01
>>> b = libusb01.get_backend()
>>> dev = usb.core.find(idVendor=0x0547, idProduct=0x1002, backend = b)
>>> dev.set_configuration()
>>> ret = dev.read(0x86, 1024, 0, 100)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/usb/core.py", line 624, in read
self.__get_timeout(timeout)
File "/usr/lib/python2.7/site-packages/usb/_debug.py", line 53, in
do_trace
return f(*args, **named_args)
File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line
483, in bulk_read
timeout)
File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line
581, in __read
timeout))
File "/usr/lib/python2.7/site-packages/usb/backend/libusb10.py", line
353, in _check
raise USBError(_str_error[retval.value])
usb.core.USBError: Operation timed out
>>>
On Sat, Feb 18, 2012 at 12:21 AM, Wander Lairson Costa <
wander.lair...@gmail.com> wrote:
> 2012/2/17 Yunong Pang <029...@gmail.com>:
> > I grep out two results...
> > $ rpm -qa | grep libusb
> >
> > libusb1-1.0.8-1.fc14.i686
> > libusb-0.1.12-23.fc14.i686
> >
> > I don't know which one is my libusb version.
> >
>
> The first one. But you also have the libusb 0.1. Let's try to force
> its use and check if we get the same results:
>
> import usb.core
> from usb.core.backend import libusb01
>
> b = libusb.get_backend()
>
> dev = usb.core.find(idVendor=0x0547, idProduct=0x1002, backend = b)
> dev.set_configuration()
> ret = dev.read(0x86, 1024, 0, 100)
>
> Please, check if you get errors with the above code..
>
> --
> Best Regards,
> Wander Lairson Costa
>
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> pyusb-users mailing list
> pyusb-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/pyusb-users
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users