From: Tormod V. <lis...@gm...> - 2019-01-24 10:29:40
|
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. > |