Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

How to create FIT File

Rank

Total Posts: 12

Joined 2013-07-09

PM

Dear,

I have a .net application that reads data from HRM and Temperature and displays it on the screen. I want to write that data to a FIT file using java. So how can I write/create a FIT file in java is there any way. I do't want to use any watch Forerunner etc. I want a java application that listens to the data and create the FIT file.

Thanks      
Avatar
RankRankRankRank

Total Posts: 296

Joined 0

PM

Try and download the "FIT SDK" from the "Developer:Downloads" section of this forum.
There's a java/com/garmin/fit/examples/EncodeExample.java that creates the most simple .FIT file.
All you have to do is add the code to create a proper activity .FIT file with your desired contents:
* activity message
* session message(s)
* record messages
Don't forget to set the proper .FIT file type: fileIdMesg.setType(...)
Take an activity .FIT file from e.g. Garmin as a guide line.

Cheers,
OMB