Hi, 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:
ecom = usb.core.find(idVendor=0x84f, idProduct=0xc050) ecom.set_configuration()#test writing to endpoint 0x8 repeatedlywhile True: try: ecom.write(0x8, 'test') print("message sent") except usb.USBError as e: print("Message failed. Attempt to reset device") ecom.reset() pass time.sleep(2) I get a usb.core.USBError: could not reset device, win error: A device attached to the system is not functioning. Error Message <https://i.stack.imgur.com/XNvGG.png> 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. What am I doing wrong? Thank you very much in advance for helping.
_______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users