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
{{ message }}
This repository has been archived by the owner on Apr 14, 2018. It is now read-only.
I've encountered a repeatable timeout problem with the most recent libfitbit.
To confirm it's the most recent version, here's what I did:
herman@touring:~/fitbit/libfitbit$ git log | head -n 5
commit ee607b24c57b19872959c4ab8edf4dbeed5404d3
Author: qdot
Date: Sun Aug 7 22:21:36 2011 -0700
Made libusb base core reset on open, making communication much more reliable
Unplug, then replug fitbit. Now, log of running the test:
Script started on Mon 08 Aug 2011 05:24:47 PM CDT
herman@touring:~/fitbit/libfitbit/python$ su
root@touring:/home/herman/fitbit/libfitbit/python# python fitbit.py
Traceback (most recent call last):
File "fitbit.py", line 351, in
sys.exit(main())
File "fitbit.py", line 317, in main
if not base.open():
File "/home/herman/fitbit/libfitbit/python/antprotocol/bases.py", line 24, in open
if not super(FitBitANT, self).open(vid, pid):
File "/home/herman/fitbit/libfitbit/python/antprotocol/libusb.py", line 78, in open
self._check_reset_response(0x80)
File "/home/herman/fitbit/libfitbit/python/antprotocol/protocol.py", line 127, in _check_re
set_response
data = self._receive()
File "/home/herman/fitbit/libfitbit/python/antprotocol/libusb.py", line 91, in _receive
r = self._connection.read(self.ep['in'], size, 0, self.timeout)
File "/usr/lib/python2.6/site-packages/usb/core.py", line 637, in read
self.__get_timeout(timeout)
File "/usr/lib/python2.6/site-packages/usb/_debug.py", line 52, in do_trace
return f(*args, **named_args)
File "/usr/lib/python2.6/site-packages/usb/backend/libusb10.py", line 493, in bulk_read
timeout)
File "/usr/lib/python2.6/site-packages/usb/backend/libusb10.py", line 593, in __read
timeout))
File "/usr/lib/python2.6/site-packages/usb/backend/libusb10.py", line 357, in _check
raise USBError(_str_error[retval.value])
usb.core.USBError: Operation timed out
Background info.
Linux kernel: Linux version 2.6.37.6-smp (root@midas) (gcc version 4.5.2 (GCC) ) #2 SMP Sat Ap
r 9 23:39:07 CDT 2011
Tail of /var/log/messages showing device unplug/replug:
Aug 8 17:19:57 touring kernel: [27583.000141] usb 4-1: USB disconnect, address 12
Aug 8 17:20:01 touring kernel: [27586.665026] usb 4-1: new full speed USB device using uhci_hcd and address 13
Aug 8 17:20:01 touring kernel: [27586.819034] usb 4-1: New USB device found, idVendor=10c4, idProduct=84c4
Aug 8 17:20:01 touring kernel: [27586.819043] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 8 17:20:01 touring kernel: [27586.819049] usb 4-1: Product: Fitbit Base Station
Aug 8 17:20:01 touring kernel: [27586.819054] usb 4-1: Manufacturer: Silicon Labs
Aug 8 17:20:01 touring kernel: [27586.819058] usb 4-1: SerialNumber: 01014A9BF5F4E37402014A9BF5F4
The text was updated successfully, but these errors were encountered:
I've encountered a repeatable timeout problem with the most recent libfitbit.
The text was updated successfully, but these errors were encountered: