2012/11/8 Stefano Di Martino <stefan...@gmx.net>: > -------- Original-Nachricht -------- >> Datum: Thu, 08 Nov 2012 09:32:18 +0100 >> Von: "Stefano Di Martino" <stefan...@gmx.net> >> An: pyusb-users@lists.sourceforge.net >> Betreff: [pyusb-users] Devices disconnects after several request > >> I don't no why, but in an older version of my project, pyUSB didn't even >> care when I called this function every second! I didn't even change the >> version of pyUSB or libusbx! > > Meanwhile I think I just didn't notice this problem before, because in my > newer versions of my project, I have a better error handling than before. My > older versions just ignored some errors. So, I think this is a general > problem and the USBError occurs always on this line in > get_devices_connected_to_usb_hub(): > > devices = usb.core.find(find_all=True, bDescriptorType=usb.DT_DEVICE, > bus=usb_hub.bus) > > But never on this line: > > usb_hub = usb.core.find(idVendor=usb_hub_vid, idProduct=usb_hub_pid) >
Is this occurring regardless of OS or it occurs only on Linux/Windows? If Windows, what backend of libusbx are you using (winusb,libusbK,libusb-win32) ? -- Best Regards, Wander Lairson Costa ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users