From: Xiaofan C. <xia...@gm...> - 2014-12-03 04:42:41
|
On Wed, Dec 3, 2014 at 4:47 AM, Richard Bryan <ra...@lu...> wrote: > > I'm not sure about those calls to libusb_init and libusb_exit. That is > pyusb, but from looking at its source I would expect the init call to occur > only once at the beginning. > > One aspect of the program that clutters up the logs is that I perform a > periodic check of all connected usb devices to see if a new device of a > certain type has been connected or disconnected. Pyusb does not have any > asynchronous support, so I'm forced to continually enumerate all devices to > detect this. So you mean you have hotplug event on your system. Take note that libusb Windows currently does not support hotplug. I think this is the root cause of the problem. -- Xiaofan |