This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

FIT file upload spec

I have .FIT files created with latest FIT SDK (14.20)

When I tried to upload them to Garmin Connect, I get an error "An error occurred with your upload. Please try again."
I can upload the file fine to other services (Strava, Golden Cheetah, SportTracks, ...)
Even the Activity.fit file example bundled with the SDK doesn't upload to Garmin Connect.

I'm wondering if there are some special requirements in the FIT fit so it can be uploaded on Garmin Connect?

Here is a code example that create a sample FIT activity file.
https://www.dropbox.com/s/qitowawmr7jcpe2/fitCreator.cpp?dl=0

Any help appreciated in order to be able to upload to Garmin Connect, wouldn't like to ask my users to use another service if it's possible to fix the issue.
Thanks
  • Would be appreciated to have the minimum requirement fields in the Activity FIT so that users using my software can upload to Garmin Connect.
    https://maximumtrainer.com

    ANT+ forums redirected me here
    http://www.thisisant.com/forum/viewthread/4275/

    Thanks
  • You probably need to go to the Developer forums.
  • You probably need to go to the Developer forums.


    I'll look on the developer forums.
    Any way to move a thread or should I start a new one?
    Let me know if there is a preferred forum category for this subject, thanks!
  • Could connect be testing for a Garmin device generated .fit file?

    I have .FIT files created with latest FIT SDK (14.20)

    When I tried to upload them to Garmin Connect, I get an error "An error occurred with your upload. Please try again."
    I can upload the file fine to other services (Strava, Golden Cheetah, SportTracks, ...)
    Even the Activity.fit file example bundled with the SDK doesn't upload to Garmin Connect.

    I'm wondering if there are some special requirements in the FIT fit so it can be uploaded on Garmin Connect?

    Here is a code example that create a sample FIT activity file.
    https://www.dropbox.com/s/qitowawmr7jcpe2/fitCreator.cpp?dl=0

    Any help appreciated in order to be able to upload to Garmin Connect, wouldn't like to ask my users to use another service if it's possible to fix the issue.
    Thanks


    I was playing around with that sdk the other day running the C# .Net Decode sample program against one of my Garmin 510 generated .fit files. One of the fields in the summary section towards the end is Device. If I were Garmin, I might be checking to see if the .fit was generated by a Garmin device. Just a random guess, but plausible I think.
  • I was playing around with that sdk the other day running the C# .Net Decode sample program against one of my Garmin 510 generated .fit files. One of the fields in the summary section towards the end is Device. If I were Garmin, I might be checking to see if the .fit was generated by a Garmin device. Just a random guess, but plausible I think.


    I tried changing the manufacturer to something else than Garmin but no luck
    fileIdMesg.SetManufacturer(FIT_MANUFACTURER_DYNASTREAM_OEM);

    Thanks for the help, but still not uploadable to Garmin Connect -_-

    Here is the FIT file created
    https://www.dropbox.com/s/xqd6c5ukmmavanm/test2.fit?dl=0
  • Maybe this will work

    I tried changing the manufacturer to something else than Garmin but no luck

    Thanks for the help, but still not uploadable to Garmin Connect -_-

    Here is the FIT file created
    https://www.dropbox.com/s/xqd6c5ukmmavanm/test2.fit?dl=0


    Maybe try recording the same ride with your software, and a Garmin head unit (presumably the latter will upload). Then diff the .fit files.
    There are a number of binary file comparison tools. Or pipe the outputs of the decode utility in the sdk
    to a file and use windiff to compare them. Good luck!
  • Maybe try recording the same ride with your software, and a Garmin head unit (presumably the latter will upload). Then diff the .fit files.
    There are a number of binary file comparison tools. Or pipe the outputs of the decode utility in the sdk
    to a file and use windiff to compare them. Good luck!


    That's a good idea, if you have a sample FIT file recorded with a Garmin head unit, would be nice to share!
    Not sure how to decode the file with the SDK after though, the decode function in the SDK only tells me if the file has error or not, it does not print the actual data in it.
    Thanks for your help!
    Max
  • C# decode - Fit SDK

    That's a good idea, if you have a sample FIT file recorded with a Garmin head unit, would be nice to share!
    Not sure how to decode the file with the SDK after though, the decode function in the SDK only tells me if the file has error or not, it does not print the actual data in it.
    Thanks for your help!
    Max


    I downloaded the fit sdk from http://www.thisisant.com/resources/fit and got a zip file (FitSDKRelease_14.10.zip). After extracting the files there were top level directories which corresponded to major development environments. I just drilled down through the CS (c#) folder until I found a Visual Studio solution I could open. for me the path was C:\FitSDK\cs\Examples\Examples.sln.
    decode.exe was a console app which had to be run from the command line. I drilled, in DOS to the directory where the .exe was located after copying a .fit file to that location. For me it was C:\FitSDK\cs\Examples\Decode\bin\Debug\decode.exe. Then from the command line just type decode fitfilename.fit where fitfilename is the name of your .fit file. It'll start outputting tons of lines on your screen. I'm not familiar with console apps so I don't know if there are any command switches which allow you to only view one screen at a time, but I did google a way to pipe the console output to a file - haven't had a chance to try it yet.

    I'd be happy to send you one of my Garmin 510 generated .fit files but the forum attachment utility errored out on me.
  • Thanks for the valuable info!
    I didn't run it with Visual studio, I was running another decode function in the C++ example folder, I will try the one you mentioned.
    You can send the file to me at [email][email protected][/email] or if you want to start a thread on the forums:
    http://forum.maximumtrainer.com:4567/
    See you!
  • Was able to use decode.exe to output the the data in a file like this
    C:\Users\Calo\Desktop\FitSDKRelease_14.20\cs\Examples\Decode\bin\Release>decode.exe 2015-04-12-13-17-05.fit > "C:\output.txt"
    Checking the output to see what I have different from this one, thanks a lot