antfs-cli icon indicating copy to clipboard operation
antfs-cli copied to clipboard

Time out Issues when Using --upload

Open ghost opened this issue 12 years ago • 9 comments

some sort of time out occurring between the python code usb dongle or ant stack, need to dig in to this. But by enabling --debug I got files to start uploading to the garmin during a sync (progress bar on the garmin :D ) but the upload fails towards the end. so It looks like it nearly works :dancer:

ghost avatar Jan 16 '14 14:01 ghost

I've only tried uploading breifly, and now it was a while ago. Would be great if you could take a look at it :).

Tigge avatar Jan 16 '14 22:01 Tigge

Ok upload works with a clean device and with the activities folder fully in sync. copying an activity to the courses folder will cause it to be copied to the devise as an activity and the file on the computer to be renamed and moved to back the activities folder

Trying to do this again with the activities folder on the computer out of sync will cause

in upload
    upload_response._get_argument("response"))
AntFSUploadException: ('Upload request failed', 2)
Interrupted: ('Upload request failed', 2)

you can take the uploaded activity and convert it to a course on the device. I guess there is something in the ant .fit file format which distinguishes the differences.

also I end up with these files on the device which are 0 bytes in length. I cant see them in the activities menu but they download to the activities folder. any idea how to clear them and what is causing them? I will look into getting a list of files on the device using the python code here. and perhaps issuing erase commands.

ghost avatar Jan 16 '14 23:01 ghost

Might be something wrong here with how the create file command pipe and upload command work together. Not sure. I'll see if I can get some time to look into this.

Tigge avatar Jan 17 '14 09:01 Tigge

I have an additional upload related question. If I create a new workout, and want to upload it to the device, what is the correct folder location for the file? (Workout files created on http://connect.garmin.com/workouts and http://www.mit-loebeprogram.dk)

I have a partially working solution, using this excellent code, and the plugin from http://www.andreas-diesner.de/garminplugin/ Downloading is almost perfect, but uploading is a bit unclear to me.

ktw avatar Oct 13 '14 06:10 ktw

I'm running into the same timeout issue as MathSter. Has there been any progress when running:

antfs-cli --upload

After you've already synced some files? I'm trying this again after leaving it alone for a couple weeks, and now I'm getting timeout errors. There are a few new runs on the watch I'm trying to pull down.

pfergi42 avatar Feb 17 '15 22:02 pfergi42

I was able to finish the download after deleting the most recent FIT file in my /activities directory, then running the command again.

pfergi42 avatar Feb 17 '15 22:02 pfergi42

I am also having upload problems. I have created a .tcx file with a course in it (is this the correct file format?) I placed it in the "courses" folder, and when I run antfs-cli --upload I get an error "KeyError: 'response' Interrupted: 'response'

LeftyAce avatar Apr 09 '15 06:04 LeftyAce

TCX won't work, It need to be in in the FIT format. I've never create a FIT course file so I'm not sure what programs are available for creating one. @LeftyAce Could you post the full error and the log you get?

Tigge avatar Apr 09 '15 07:04 Tigge

I can't figure out how to generate a .FIT file from a TCX course (I'm trying to take a route I did on the watch and reduce the number of points so maybe when I have the watch follow the course in future it won't crash). Is it worth attempting to upload a non-FIT file, or will that always fail? In the mean time I've encountered a problem with simple downloading, so I'm going to open a new issue to deal with that first, then worry about uploads.

LeftyAce avatar Apr 12 '15 03:04 LeftyAce