braiden/python-ant-downloader — Issue #1: Maybe a datatype is unimplemented
Author: dtack
Created: 2012-02-17 07:21:22+00:00
State: open

While downloading from a garmin forerunner 610, I received the following output:

[MainThread]	2012-02-16 23:09:16,510	INFO	Searching for ANT devices.
[MainThread]	2012-02-16 23:09:30,769	DEBUG	Got ANT-FS Beacon. Beacon{'auth_type': 3, 'pairing_enabled': 0, 'device_state': 0, 'period': 4, 'data_availible': 32, 'descriptor': 66881, 'upload_enabled': 0, 'data_page_id': 67, 'data': '', 'status_2': 0, 'status_1': 44}
[MainThread]	2012-02-16 23:09:30,775	INFO	Device has data. Linking.
[MainThread]	2012-02-16 23:09:31,021	INFO	Pairing with device.
[MainThread]	2012-02-16 23:09:31,404	DEBUG	Got client auth string. Auth{'auth_string': 'Forerunner 610', 'beacon': , 'op_id': None, 'response_type': 0, 'client_id': 3834649315, 'host_id': 21256, 'data_page_id': 68, 'command_id': 132}
[MainThread]	2012-02-16 23:09:36,287	DEBUG	Device paired. key=e52529a65840b199
[MainThread]	2012-02-16 23:09:36,406	INFO	Saving raw data to /home/david/.antd/raw/20120216-230936.raw.
[MainThread]	2012-02-16 23:09:36,406	DEBUG	A000: executing product request
[MainThread]	2012-02-16 23:09:39,041	DEBUG	init_device_api: product_id=1345, software_version=2.60, description=['Forerunner 610 Software Version 2.60']
[MainThread]	2012-02-16 23:09:39,041	DEBUG	init_device_api: protocol_array=['P000', 'L001', 'A010', 'A903', 'A918', 'D918', 'A1015', 'T001', 'A100', 'D110', 'A201', 'D202', 'D110', 'D210', 'A302', 'D311', 'D1018', 'A500', 'D501', 'A600', 'D600', 'A601', 'D601', 'A700', 'D700', 'A800', 'D800', 'A801', 'D801', 'A902', 'A907', 'D907', 'D908', 'D909', 'D910', 'A906', 'D1015', 'A1000', 'D1009', 'A1017', 'D1008', 'A1003', 'D1003', 'A1016', 'D1016', 'A1005', 'D1005', 'A1018', 'D1006', 'A1007', 'D1007', 'A1008', 'D1012', 'A1009', 'D1013', 'A1013', 'D1014', 'A1014', 'D1017']
[MainThread]	2012-02-16 23:09:39,042	DEBUG	Using link protocol L001.
[MainThread]	2012-02-16 23:09:39,042	DEBUG	Using command protocol A010.
[MainThread]	2012-02-16 23:09:39,043	DEBUG	Using A302['D311', 'D1018'] for: get_trks
[MainThread]	2012-02-16 23:09:39,043	DEBUG	Using A906['D1015'] for: get_laps
[MainThread]	2012-02-16 23:09:39,043	DEBUG	Using A1000['D1009'] for: get_runs
[MainThread]	2012-02-16 23:09:39,044	DEBUG	A000: executing product request
[MainThread]	2012-02-16 23:09:41,779	DEBUG	A1000: executing transfer runs
[MainThread]	2012-02-16 23:09:43,010	DEBUG	A906: executing transfer laps
[MainThread]	2012-02-16 23:09:44,292	DEBUG	A301: executing transfer tracks
[MainThread]	2012-02-16 23:09:45,523	INFO	Closing session.
[Thread-1]	2012-02-16 23:09:45,879	WARNING	Failed to receive RF beacon at expected period. channel_number=0
[MainThread]	2012-02-16 23:09:45,925	INFO	Excuting plugins.
[MainThread]	2012-02-16 23:09:45,925	INFO	TcxPlugin: processing /home/david/.antd/raw/20120216-230936.raw.
[MainThread]	2012-02-16 23:09:45,926	DEBUG	A000: executing product request
[MainThread]	2012-02-16 23:09:45,927	DEBUG	init_device_api: product_id=1345, software_version=2.60, description=['Forerunner 610 Software Version 2.60']
[MainThread]	2012-02-16 23:09:45,927	DEBUG	init_device_api: protocol_array=['P000', 'L001', 'A010', 'A903', 'A918', 'D918', 'A1015', 'T001', 'A100', 'D110', 'A201', 'D202', 'D110', 'D210', 'A302', 'D311', 'D1018', 'A500', 'D501', 'A600', 'D600', 'A601', 'D601', 'A700', 'D700', 'A800', 'D800', 'A801', 'D801', 'A902', 'A907', 'D907', 'D908', 'D909', 'D910', 'A906', 'D1015', 'A1000', 'D1009', 'A1017', 'D1008', 'A1003', 'D1003', 'A1016', 'D1016', 'A1005', 'D1005', 'A1018', 'D1006', 'A1007', 'D1007', 'A1008', 'D1012', 'A1009', 'D1013', 'A1013', 'D1014', 'A1014', 'D1017']
[MainThread]	2012-02-16 23:09:45,927	DEBUG	Using link protocol L001.
[MainThread]	2012-02-16 23:09:45,927	DEBUG	Using command protocol A010.
[MainThread]	2012-02-16 23:09:45,927	DEBUG	Using A302['D311', 'D1018'] for: get_trks
[MainThread]	2012-02-16 23:09:45,928	DEBUG	Using A906['D1015'] for: get_laps
[MainThread]	2012-02-16 23:09:45,928	DEBUG	Using A1000['D1009'] for: get_runs
[MainThread]	2012-02-16 23:09:45,928	DEBUG	A1000: executing transfer runs
[MainThread]	2012-02-16 23:09:45,928	DEBUG	A906: executing transfer laps
[MainThread]	2012-02-16 23:09:45,929	DEBUG	A301: executing transfer tracks
[MainThread]	2012-02-16 23:09:45,929	WARNING	Failed to process /home/david/.antd/raw/20120216-230936.raw. Maybe a datatype is unimplemented?
Traceback (most recent call last):
File "/home/david/garmin2/antd/tcx.py", line 62, in data_availible
files = export_tcx(file, self.tcx_output_dir)
File "/home/david/garmin2/antd/tcx.py", line 164, in export_tcx
runs = garmin.extract_runs(device, run_pkts)
File "/home/david/garmin2/antd/garmin.py", line 274, in extract_runs
runs = [r.data for r in runs.by_pid[protocols.link_proto.PID_RUN]]
KeyError: 990

I'm not sure how to attach a file so I put the failed file here:

http://www.kondra.com/ant/20120216-230936.raw

By the way, things seem very nice... seems more reliable than garmin-ant-downloader which fails on the 610 as well.