braiden/python-ant-downloader

Garmin FR70 problems

Closed this issue · 4 comments

dje7 commented

I've not done much coding/programming ever, so please forgive me if this has already been answered.
I can't seem to figure out what I need to do to fix this error which is preventing me from getting the data off of my ANT stick which is USB2 for my Garmin FR70.

daniel@daniel-1000H ~ $ ant-downloader
Traceback (most recent call last):
File "/usr/local/bin/ant-downloader", line 9, in
load_entry_point('python-ant-downloader==12.03.21', 'console_scripts', 'ant-downloader')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 337, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2279, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1989, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/init.py", line 33, in
import antd.ant as ant
File "/usr/local/lib/python2.7/dist-packages/python_ant_downloader-12.03.21-py2.7.egg/antd/ant.py", line 34, in
from message import Message
ImportError: No module named message

Hi,

I'm not exactly sure what's happening here. You might try checking out a copy of latest code from git and running that. If you need help with that I can try to provide some more detailed instructions.

That said, I think the FR70 is a newer device? More recent Garmin devices use a different protocol for downloading data. I can't be sure, but I think you'll want to use this https://github.com/Tigge/Garmin-Forerunner-610-Extractor to get data off your watch.

dje7 commented

Braiden, yes please. I was able to checkout revision 82 of the Garmin-Forerunner-610-Extractor, but I'm not sure how to go about installing it.

The FR70 uses a USB2 ANT stick.
I did create a rule in my rules.d folder which says:
KERNEL=="3-1", ATTR{idVendor}=="0fcf", ATTR{idProduct}=="1008", SYMLINK+="ttyUSB0", MODE="0660", ACTION=="add"
That seems to work using garmin-ant-downloader, but it downloads a 32kb file named .gant that I don't know what to do with. Thanks.

dje7 commented

Hmm. I was able to install, but when I run python garmin.py I get an error. I'll look through the issues over at the Github site for Garmin-Forerunner-610-Extractor to see what I can come up with. Thanks again for your help.

Traceback (most recent call last):
File "garmin.py", line 205, in main
g = Garmin()
File "garmin.py", line 56, in init
Application.init(self)
File "/home/daniel/Garmin-Forerunner-610-Extractor/ant/fs/manager.py", line 64, in init
self._node = Node(0x0fcf, 0x1008)
File "/home/daniel/Garmin-Forerunner-610-Extractor/ant/easy/node.py", line 48, in init
self.ant = Ant(idVendor, idProduct)
File "/home/daniel/Garmin-Forerunner-610-Extractor/ant/base/ant.py", line 52, in init
for cfg in dev:
File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0a3-py2.7.egg/usb/core.py", line 733, in iter
yield Configuration(self, i)
File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0a3-py2.7.egg/usb/core.py", line 419, in init
configuration
File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0a3-py2.7.egg/usb/backend/libusb1.py", line 471, in get_configuration_descriptor
config, byref(cfg)))
File "/usr/local/lib/python2.7/dist-packages/pyusb-1.0.0a3-py2.7.egg/usb/backend/libusb1.py", line 403, in _check
raise USBError(_str_error[ret], ret, _libusb_errno[ret])
USBError: [Errno 5] Input/output error
Interrupted
Traceback (most recent call last):
File "garmin.py", line 214, in
sys.exit(main())
File "garmin.py", line 210, in main
g.stop()
UnboundLocalError: local variable 'g' referenced before assignment

what is this