From: Yuxuan C. <yux...@gm...> - 2019-01-24 20:13:40
|
Hi Tormod, Thank you very much for your response. Speaking of driver, I was wondering if PyUSB could recognize device on another driver? Currently, in order for PyUSB to recognize the device, the device has to be on the "libusb-win32 devices" driver. But I need the device to be on another driver compatible with a software used to trigger data transfer, since I don't know how to trigger data transfer with PyUSB library. Sincerely, Yuki On Thu, Jan 24, 2019 at 5:29 AM Tormod Volden <lis...@gm...> wrote: > On Wed, Jan 23, 2019 at 10:44 PM Yuxuan Chen wrote: > > I'm using this library on a Windows 7 machine, with libusb version > 1.2.6.0. When I try to reset the device after encountering an error: > > > I get a usb.core.USBError: could not reset device, win error: A device > attached to the system is not functioning. Error Message > > Hi, > > Please copy and paste text error messages instead of linking to > screenshots... > > >> As a side explanation, I'm trying to reset the device because after > sending 3 messages to the device, I always get a timeout error, which then > requires me to unplug and plug in the device again. After doing some > research I found that someone had solved this problem by using the reset > functionality, which brought me here. > > Please see the detailed information at > https://github.com/libusb/libusb/wiki/Windows . There are many options > for drivers and associated .dll libraries on Windows. Since USB resets > are not supported by the WinUSB driver, you must ensure that you use > another driver, e.g. libusbk.sys. Use zadig to switch the registered > driver for your device. I don't know if a wrong driver is the problem > in your case, but it could be helpful to know which driver you are > using, in order to help you further. > > OTOH, it would have been better to fix the device or the communication > so that resets are not needed! > > Regards, > Tormod > > > > > What am I doing wrong? Thank you very much in advance for helping. > > > > > _______________________________________________ > pyusb-users mailing list > pyu...@li... > https://lists.sourceforge.net/lists/listinfo/pyusb-users > |