GPX/TCX conversion to Garmin FIT

For discussions about bikes and equipment.
Post Reply
User avatar
Mick F
Spambuster
Posts: 56366
Joined: 7 Jan 2007, 11:24am
Location: Tamar Valley, Cornwall

GPX/TCX conversion to Garmin FIT

Post by Mick F »

I've found an interesting anomaly.

I have a Garmin Edge 20. Small device, and I use it for tracking my rides and very occasionally for following a course.
For following a course created on a mapping website, it needs to be converted to FIT format and placed in the New Files folder.

So far so good ..............

Usually, I use an app on my Mac called "JaVaWa RTWtool" that works excellently, but after an update, it works differently a bit. Not knowing any better, I Googled "convert gpx to fit" and found this site.
https://www.gpsies.com/convert.do?language=en
Seems fine eh?
Just upload any format, and download it in any format. The one I chose was Garmin FIT + ANT.
Hey ho, that sounded fine, so I did it.

This was Tuesday 27th August, and off I went for the ride. One of the functions on the Edge 20 is to show you how far you have to go yet, and how far behind (or in front) you are from your Virtual Partner.

I've recreated the issue I found using the website just now in the comfort of my armchair quaffing a glass of beer and at the same time sorted out my JaVaWa RTWtool app for next time and it works properly.

The distance I had to do was actually 37miles or so,
The gpsies website output into my Edge 20 showed this:
IMG_0386.jpg
Note it says 2668miles :shock:

After nearly ten miles, it showed 2667miles, meaning that the poor Edge 20 couldn't cope with the "real" distance of 26,680miles! :lol: :lol:

At the end of my ride, the Edge should play a little congratulatory tune, but it didn't. I never investigated further that day, and just saved what I'd done and deleted the uploaded course.

Another experiment is on the cards for next week methinks. :D
Mick F. Cornwall
amediasatex
Posts: 842
Joined: 2 Nov 2015, 12:51pm
Location: Sunny Devon! just East of the Moor

Re: GPX/TCX conversion to Garmin FIT

Post by amediasatex »

Are you sure you have to upload as FIT? Both my Garmins (an old edge 200 and a newer edge touring) both accept GPX and TCX into the new files folder and then auto-convert and import them to FIT into the courses folder when you turn them on.
User avatar
Mick F
Spambuster
Posts: 56366
Joined: 7 Jan 2007, 11:24am
Location: Tamar Valley, Cornwall

Re: GPX/TCX conversion to Garmin FIT

Post by Mick F »

Yes.
It must be a FIT file.
Nothing else is recognised.

My Garmin Edge 305 and 705 wanted GPX or TCX
My Garmin Montana will accept GPX and TCX both track and route ............. but an Edge 20 demands FIT.
Rides are saved as FIT also. No choice.
Mick F. Cornwall
amediasatex
Posts: 842
Joined: 2 Nov 2015, 12:51pm
Location: Sunny Devon! just East of the Moor

Re: GPX/TCX conversion to Garmin FIT

Post by amediasatex »

Well that’s an annoying step backwards in usability then...
Psamathe
Posts: 17702
Joined: 10 Jan 2014, 8:56pm

Re: GPX/TCX conversion to Garmin FIT

Post by Psamathe »

Have you tried https://www.gpsbabel.org/.

Available for macOS. I've used it for other conversions but I've never had need of a Garmin .fit file.

It's free and pretty straight forward to use (and to uninstall if it isn't what you want).

Ian
NickJP
Posts: 803
Joined: 24 Sep 2018, 7:11pm
Location: Canberra, OZ

Re: GPX/TCX conversion to Garmin FIT

Post by NickJP »

If you create courses on RideWithGPS they can be exported from there as FIT format files.
User avatar
Mick F
Spambuster
Posts: 56366
Joined: 7 Jan 2007, 11:24am
Location: Tamar Valley, Cornwall

Re: GPX/TCX conversion to Garmin FIT

Post by Mick F »

No issues getting a FIT file. Many ways of doing a conversion or even downloading a FIT route and course.

My point is that the gpsies.com website gives an amusing result. :lol:
Tried another route and conversion yesterday of only a mile, but the conversion STILL gave a 26,000mile result.
Mick F. Cornwall
st599_uk
Posts: 1107
Joined: 4 Nov 2018, 8:59pm

Re: GPX/TCX conversion to Garmin FIT

Post by st599_uk »

Can you open it with a text editor, like notepad?

May be human readable.
A novice learning...
“the dreamers of the day are dangerous men, for they may act their dreams with open eyes, to make it possible.”
User avatar
Mick F
Spambuster
Posts: 56366
Joined: 7 Jan 2007, 11:24am
Location: Tamar Valley, Cornwall

Re: GPX/TCX conversion to Garmin FIT

Post by Mick F »

st599_uk wrote:Can you open it with a text editor, like notepad?

May be human readable.
A random route created as a TCX on BikeHike and then converted by gpsies.com

⁄g.FIT@Ú@ÑÑÜÈ7÷&@Bikehike_course@Ü˝ÜÜÖÖÖÖ7÷&7÷&ÂX&•—û˝¯?*&•Ã~˛π0@˝Ü7÷&@ÖÖÑ˝ÜÑÜ&•—û˝¯?* Â7÷&Ë&•“˝¯YC ’7÷+^/&•–8˝¯z ÿ7÷3
#&•œ¡˝¯ÕM Í7÷CmML&•Õ‰˝¯Ó€ Û7÷J(_ú&•”˝˘9„ ˙7÷Z¶à¶&•”˝˘Lˇ 7÷^Ûì&•À˝˘nç fl7÷e¶≤&•…;˝˘~‹ ◊7÷iìØπ&•»L˝˘ë —7÷l!
π£&•Ã˝˘∂… ¡7÷tŒo&•À˝˘ÍÑ ±7÷èÍå&•Ã˝˙i ß7÷Ö3˙E&•œ¡˝˙8X £7÷èœ&•“˝˙Lb †7÷î4 .&•÷ø˝˙c8 õ7÷ôJ-R&•€h˝˙à ¶7÷†=A &•fl"˝˙∞î ±7÷©∆X&•·w˝˙ø~ ≤7÷¨ı`y&•ÓÉ˝˙ıç £7÷∏}ÄB&•Ôr˝˚ì ü7÷øní√&•ÓÉ˝˚Ä ä7÷’™À9&•Ìï˝˚â¿ Ü7÷◊/–‹&•ËÏ˝˚ò3 Å7÷⁄ÊŸ‘&•Á˝˝˚°Ö |7÷‹∞fi˜&•Èc˝˚™` w7÷fi΄Û&•Úµ˝˚…ô k7÷Ê“˜&•˙*˝˚Ì| _7÷Ìë ¥&•˚ê˝¸Ü M7÷ÚÌ™&•¸˝¸~ 87÷ˆÄ"&•˚˝¸8˚ 7÷˝À4“&•˝m˝¸gï ˚7÷iN;&•¸ˆ˝¸|é Ì7÷ ÄY°&•˜’˝¸¶ ‘7÷óp©&•ÒO˝¸À» ±7÷ºÜ
&•Ï¶˝¸›} ©7÷ cêõ&•—û˝˝4, ò7÷5n∆&•–∞˝˝>m ô7÷7/À¶&•—'˝˝Pö ü7÷;µ’à&•‘j˝˝wH ´7÷CäÍ√&•Û§˝˝˛n ⁄7÷aS9Ω&•ˆo˝˛ˇ ‚7÷fTHg&•ˆÁ˝˛'Ë Â7÷jHPÉ&•ıÅ˝˛LB Î7÷qEdN&•ıÅ˝˛sh Â7÷yïyí&•˜^˝˛Ö „7÷}pÉX&•˛\˝˛≠© fi7÷ÜÖöP&¶˝˝ˇË ƒ7÷üf‹N&¶CÃ˝ˇÈ° 7÷ÃQ¡&¶Fò˝ˇ˘ 7÷œ,ZÅ&¶HÏ˛€ 7÷”1cb&¶Os˛mÖ
7÷Ë3öf&¶Os˛w≈ 7÷ÍŸü¯&¶CÃ˛ƒ3 ˝7÷˙“ ‚&¶:z˛∞ ‡7÷ Ÿ¯Ü&¶9˛,ó ‡7÷ ~&¶3|˛Uö ‚7÷ l_&¶.”˛jì ·7÷ {'ê&¶%˘˛å! fl7÷ %;í&¶!O˛ñŸ fi7÷ (7B÷&¶Y˛Œ∆ –7÷ 7Øj›&¶∞˛‹I Õ7÷ :ose&•˜^˛j ‘7÷ Fëà&•Û§˛ Ÿ7÷ Iò¡&•‡˛<J ‡7÷ RƱ™&•€fl˛G „7÷ Ua∏≠&•◊≠˛X∏ ‚7÷ Yˆ√&•’Y˛|ö Á7÷ `÷≠&•Ã~˛π0 Ê7÷ m¯õ@˝Ü7÷ m s
Mick F. Cornwall
theriddler
Posts: 3
Joined: 7 Sep 2019, 10:18pm

Re: GPX/TCX conversion to Garmin FIT

Post by theriddler »

Can you try recalculating the distance on the source file?

http://tcxtools.com/tcx/distance/
https://gotoes.org/strava/Combine_GPX_TCX_FIT_Files.php I used this a lot to combine several FIT files but it only outputs GPX/TCX. You can upload a single GPX and use it to recalculate distances

Try GPX Babel on the command line. https://www.gpsbabel.org/index.html

Code: Select all

gpsbabel -i gpx -F input.gpx -o garmin_fit -f output.fit
tim-b
Posts: 2104
Joined: 10 Oct 2009, 8:20am

Re: GPX/TCX conversion to Garmin FIT

Post by tim-b »

Hi
FIT files use the following:
data,0,position_lat(semicircles),position_long(semicircles),altitude(m),timestamp(s),speed(m/s),distance(m)

If you put a speed into bikehike (default is 15mph) or use an existing track that you have cycled then the speed gets included in the output to corrupt total distance. Try a bikehike file set to 0mph and the gpsies conversion gives an accurate distance

Regards
tim-b
~~~~¯\(ツ)/¯~~~~
User avatar
Mick F
Spambuster
Posts: 56366
Joined: 7 Jan 2007, 11:24am
Location: Tamar Valley, Cornwall

Re: GPX/TCX conversion to Garmin FIT

Post by Mick F »

Thanks Tim.
Interesting.

Just put the same random route into BikeHike and saved it at zero speed.
Now transferred it into the Edge 20 and waiting for the unit to find GPS .......................... sometimes it's almost immediate, and sometimes it takes and age ................................. like now. :roll:






Done it at last.
Random route still shows at 26,000miles.
Looking at it on Ascent, it still shows 15mph even though I saved it with a new name and zero speed.

I'll try a new BikeHike route and save it with a new name and zero speed. Put it into Ascent, and it shows 15mph.
On the Edge 20, it still shows at 26,000miles.
Mick F. Cornwall
tim-b
Posts: 2104
Joined: 10 Oct 2009, 8:20am

Re: GPX/TCX conversion to Garmin FIT

Post by tim-b »

Hi
Ah, ok, something, somewhere, has changed, I've just run a new test file and I can't repeat the earlier error. GPSies is now giving an accurate conversion of distance.
It was originally giving me 20,000-odd metres for a 3.14 mile route saved at 15mph, but was accurate at 0mph, and I didn't keep those test files.

I put the new GPSies converted test file into another online converter and the fit to csv conversion gave me this:Error at file offset 54, last valid timestamp was (0) : 19012_Bodmin15.fit: 0: local message type 0 (file_id) not expected mid file. Possible corruption.

Something is or has been "off", but I can't repeat it now

Regards
tim-b
~~~~¯\(ツ)/¯~~~~
User avatar
Mick F
Spambuster
Posts: 56366
Joined: 7 Jan 2007, 11:24am
Location: Tamar Valley, Cornwall

Re: GPX/TCX conversion to Garmin FIT

Post by Mick F »

Thanks again.

I've found out, that creating a route on BikeHike at zero speed always comes out as the default 15mph.
Save it as 1mph, and it's correct, therefore it needs a positive speed not a zero.
Mick F. Cornwall
Post Reply