You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"get_packet" module not returning exception with USBError in window 10(libusb-win32 devices) environment when usb connection lost. ex.errno return empty during the exception and it get treat as regular TimooutError(). Do not see the same issue in linux environment. The temporary get around I implement was adding below code to "def get_pcaket(self, deadline):"
starttime=time.monotocis() right before timeout = max(int((deadline-starttime)*1000),0)
adding below code to the except usb.core.USBError as ex:
endtime=time.monotonic()
ret_time=(endtime-starttime)*1000
then capture the error using ret_time at
if ex.errno ==19 or ex.errno ==32 or ret_time==0:
this temporary solution allow the code to catch if the USB connection was unplugged accidentally. Looking forward for permanent solution. Thanks!!
The text was updated successfully, but these errors were encountered:
"get_packet" module not returning exception with USBError in window 10(libusb-win32 devices) environment when usb connection lost. ex.errno return empty during the exception and it get treat as regular TimooutError(). Do not see the same issue in linux environment. The temporary get around I implement was adding below code to "def get_pcaket(self, deadline):"
starttime=time.monotocis() right before timeout = max(int((deadline-starttime)*1000),0)
adding below code to the except usb.core.USBError as ex:
endtime=time.monotonic()
ret_time=(endtime-starttime)*1000
then capture the error using ret_time at
if ex.errno ==19 or ex.errno ==32 or ret_time==0:
this temporary solution allow the code to catch if the USB connection was unplugged accidentally. Looking forward for permanent solution. Thanks!!
The text was updated successfully, but these errors were encountered: