Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download request failed: 2 #90

Closed
kawk opened this issue Jan 31, 2014 · 9 comments
Closed

Download request failed: 2 #90

kawk opened this issue Jan 31, 2014 · 9 comments

Comments

@kawk
Copy link

kawk commented Jan 31, 2014

Trying to read data from Garmin Swim results in "AntFSDownloadException: ('Download request failed: ', 2)".

@kawk
Copy link
Author

kawk commented Jan 31, 2014

last words:

looking for matching message in deque([(0, 1, array('B', [2])), (0, 1, array('B', [2])), (0, 1, array('B', [5]))])
 - response found (0, 1, array('B', [5]))
done sending burst transfer 0
Wait for response...
Get command, t3, s0
parsing data array('B', [68, 137, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 1, 0, 0])
Run 5
Stoping ant.easy
Stoping ant.base
Read data: [a4 09 4e 00 43 3c 02 03 39 05 00 00 a1] (now have [a4 09 4e 00 43 3c 02 03 39 05 00 00 a1] in buffer)
Ant runner stopped
Traceback (most recent call last):
  File "./garmin.py", line 338, in main
    g.start()
  File "/home/kawk/work/swim/Garmin-Forerunner-610-Extractor/ant/fs/manager.py", line 202, in start
    self._main()
  File "/home/kawk/work/swim/Garmin-Forerunner-610-Extractor/ant/fs/manager.py", line 134, in _main
    self.on_transport(beacon)
  File "./garmin.py", line 236, in on_transport
    self.download_file(fileobject)
  File "./garmin.py", line 290, in download_file
    data = self.download(fil.get_index(), self._get_progress_callback())
  File "/home/kawk/work/swim/Garmin-Forerunner-610-Extractor/ant/fs/manager.py", line 316, in download
    response._get_argument("response"))
AntFSDownloadException: ('Download request failed: ', 2)

@Tigge
Copy link
Owner

Tigge commented Jan 31, 2014

So, 2 should mean "Data exists but is not downloadable", which is
interesting. I wonder what file it is trying to download, that it is not
allowed to download. Perhaps we need to be me more careful what we try to
download. Is it possible to post a full log somewhere?

On 31 January 2014 21:32, kawk notifications@github.com wrote:

last words:

looking for matching message in deque([(0, 1, array('B', [2])), (0, 1, array('B', [2])), (0, 1, array('B', [5]))])

  • response found (0, 1, array('B', [5]))
    done sending burst transfer 0
    Wait for response...
    Get command, t3, s0
    parsing data array('B', [68, 137, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 16, 1, 0, 0])
    Run 5
    Stoping ant.easy
    Stoping ant.base
    Read data: [a4 09 4e 00 43 3c 02 03 39 05 00 00 a1](now have [a4 09 4e 00 43 3c 02 03 39 05 00 00 a1] in buffer)
    Ant runner stopped
    Traceback (most recent call last):
    File "./garmin.py", line 338, in main
    g.start()
    File "/home/kawk/work/swim/Garmin-Forerunner-610-Extractor/ant/fs/manager.py", line 202, in start
    self._main()
    File "/home/kawk/work/swim/Garmin-Forerunner-610-Extractor/ant/fs/manager.py", line 134, in _main
    self.on_transport(beacon)
    File "./garmin.py", line 236, in on_transport
    self.download_file(fileobject)
    File "./garmin.py", line 290, in download_file
    data = self.download(fil.get_index(), self._get_progress_callback())
    File "/home/kawk/work/swim/Garmin-Forerunner-610-Extractor/ant/fs/manager.py", line 316, in download
    response._get_argument("response"))
    AntFSDownloadException: ('Download request failed: ', 2)


Reply to this email directly or view it on GitHubhttps://github.com//issues/90#issuecomment-33839624
.

@kawk
Copy link
Author

kawk commented Feb 1, 2014

Full log is (temporarily) at http://ixo.de/tmp/swim-20140131.txt.gz

@Tigge
Copy link
Owner

Tigge commented Feb 1, 2014

Thanks. It does indeed seems to be a file that can't be downloaded. I've uploaded a potential fix to this to c1b633f. Note that this is the https://github.com/Tigge/Garmin-Forerunner-610-Extractor/tree/split branch where the ant libraries are separated out to https://github.com/Tigge/openant. You'll need to install that (with the most recent commit Tigge/openant@6084d65 which have a fix related to this problem. Hopefully this will work then. Let me know if it doesn't.

@kawk
Copy link
Author

kawk commented Feb 1, 2014

I can confirm that antfs-cli.py from "split" branch can now download from my Garmin Swim.

Hm, the watch was almost new out of its box and never has been connected by any other software. Do you think it is worth to find out more / worry about that "unreadable" file?

@Tigge
Copy link
Owner

Tigge commented Feb 1, 2014

It is located at index 0x1000, and is writeable, so it sounds like something special (write firmware updates, special settings, etc). It could be interesting to get some logs from windows and see if this is used in any way -- but whatever it is it is probably a bit out of scope for this project. But nice that it works -- good to hear.

@Tigge Tigge closed this as completed Feb 1, 2014
@xjezik01
Copy link

Hello.
I am facing the same problem. when i run antfs-cli for the first time it created folder structure in ~/.config.
But it didn't download any data. The last two lines from terminal are:

AntFSDownloadException: ('Download request failed: ', 2)

  • Set time: Interrupted: ('Download request failed: ', 2)

You are suggesting to use a fix in branch https://github.com/Tigge/Garmin-Forerunner-610-Extractor/tree/split but this link doesn't work anymore.
I will be glad for any suggestions.

My device is Garmin Swim and I run linux crunchbang.

Thank you

@Tigge
Copy link
Owner

Tigge commented Sep 21, 2015

@xjezik01 sounds like #140 which was recently fixed. Please try the very latest version from git again.

@xjezik01
Copy link

Works like a charm now. Thank you very much for this awesome tool.
Linux 1 : Windows 0 once again :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants