On Fri, Aug 19, 2016 at 11:15 AM, Hermann Hamann wrote:
> Hi, Tormod
>
> This is the crashdump :
>
>
> C:\Portable\wdso>python wdso.py
>
> wdso 0.9.8
> found productId 0x0834
> [Errno 5] Input/output error
> Process USB_server:
> Traceback (most recent call last):
> File "C:\Python27\lib\multiprocessing\process.py", line 258, in _bootstrap
> self.run()
> File "C:\Python27\lib\multiprocessing\process.py", line 114, in run
> self._target(*self._args, **self._kwargs)
> File "C:\Portable\wdso\wdso.py", line 5019, in createUSBProcess
> USBProcess = USB(USBQ,ScopeQ,DiagQ,PID,BUS,DEV)
> File "C:\Portable\wdso\wdso.py", line 3563, in __init__
> self.device_init()
> File "C:\Portable\wdso\wdso.py", line 3631, in device_init
> self.device.ctrl_transfer(0x42,0xb1,0xdc,0,None); sleep(0.02)
> File "C:\Python27\lib\site-packages\usb\core.py", line 1043, inctrl_transfer
> self.__get_timeout(timeout))
> File "C:\Python27\lib\site-packages\usb\backend\libusb1.py", line 883,in 
> <hermann-ham...@web.de>
> ctrl_transfer timeout))
> File "C:\Python27\lib\site-packages\usb\backend\libusb1.py", line 595,
> in _check
> raise USBError(_strerror(ret), ret, _libusb_errno[ret])
> USBError: [Errno 5] Input/output error
> finished
>

The interesting parts are probably in libusb and not in pyusb. You can
run with the LIBUSB_DEBUG environment variable set to a number to get
more info, e.g.:
 LIBUSB_DEBUG=4

You can also set these from within python, like in the example of
PYUSB_DEBUG here:
os.environ['PYUSB_DEBUG'] = 'debug'

Now when it comes to the libusb <-> kernel hardware driver interaction
on Windows, it is not easy to get the full overview of possibilities,
requirements and failure modes. Quoting from
https://github.com/libusb/libusb/wiki/Windows :
"libusb0.sys access is done through the libusbK DLL, therefore, if you
plan to use the libusb-win32/libusb0.sys driver in libusb, you must
have that library installed. If using a recent version of Zadig, you
should not have to do anything, at it will install the library for
you."

Whether this was always (or still!) true I am not sure.

Tormod

------------------------------------------------------------------------------
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to