From: stuart l. <stu...@gm...> - 2022-04-24 00:42:36
|
I am seeing a consistent issue with Garmin Ant+ dongles under Windows with libusb0. They work the first time my application runs, but fail on the second attempt. I have verified the same behaviour across three Garmin Dongles. I have verified that the Cycplus Dongle works correctly. To maintain compatibility with the other applications running (Zwift and PerfPro CT Smart) which rely on libusb0 I need to use that backend. Those applications do not have any problems with the Garmin (or Cycplus) dongles, using them multiple times without a problem. Is it possible that I need to do something on exit that might cause this? Is there anything I can do to remediate this when seen? Thanks! 2022-04-23 17:13:40,318 INFO:usb.core:find(): using backend > "usb.backend.libusb0" > 2022-04-23 17:13:40,318 > DEBUG:usb.backend.libusb0:_LibUSB.enumerate_devices() > 2022-04-23 17:13:40,318 > DEBUG:usb.backend.libusb0:_LibUSB.get_device_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>) > is_ant_device: dev: 0x1009 > @ > > > /reap > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_interface_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 0, 0, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_configuration_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_endpoint_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 0, 0, 0, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_interface_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 0, 0, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_configuration_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_endpoint_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 1, 0, 0, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_interface_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 0, 0, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.get_configuration_descriptor(<usb.backend.libusb0._usb_device > object at 0x000002073629D940>, 0) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.bulk_write(2229757821776, 1, 0, > array('B', [164, 1, 74, 48, 223]), 2000) > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.bulk_read(2229757821776, 129, 0, > array('B', [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, > 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]), 4000) > > 2022-04-23 17:13:41,334 > DEBUG:usb.backend.libusb0:_LibUSB.bulk_write(2229757821776, 1, 0, > array('B', [164, 1, 74, 48, 223]), 2000) > USBLoop.run: USBError e.errno: None e.backend_error_code: -5 > USBLoop.run: USBError e: [USBError(None, b'libusb0-dll:err > [_usb_reap_async] reaping request failed, win error: A device attached to > the system is not functioning.\r\n\n')] > > -- __________O___________ _______-\<,____________ _____(_)/_(_)___________ _________________________ Stuart_Lynne____<stu...@gm...>____604-518-1749(m)__604-461-7532(h) |