Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Extracting heart rate and step counts from a Garmin account export

Rank

Total Posts: 2

Joined 2020-03-22

PM

I requested an export of my data from Garmin, and got a zip file containing all kinds of files, but also some FIT files under DI_CONNECT/DI-Connect-Fitness-Uploaded-Files/UploadedFiles_*.zip/*.fit, which I'm guessing contain the heart rate and step count data recorded all day by my watch?

Running FitToCSV from the FitSDKRelease_21.22.00 on these files results in lots of "unknown" fields; any idea what those fields are, or if there is a better way to extract this data?

Type Local Number Message Field 1 Value 1 Units 1 Field 2 Value 2 Units 2 Field 3 Value 3 Units 3 Field 4 Value 4 Units 4 Field 5 Value 5 Units 5 Field 6 Value 6 Units 6 Field 7 Value 7 Units 7
Definition 0 file_id serial_number 1  time_created 1  manufacturer 1  product 1  number 1  unknown 1  type 1 
Data 0 file_id serial_number 3317766126  time_created 952731060  manufacturer 1  garmin_product 3288  number 180  type 49    
Definition 1 device_info timestamp 1  serial_number 1  manufacturer 1  product 1  software_version 1       
Data 1 device_info timestamp 952731060 s serial_number 3317766126  manufacturer 1  garmin_product 3288  software_version 6.1       
Definition 2 unknown unknown 1  unknown 1  unknown 1  unknown 1          
Data 2 unknown unknown 952731060  unknown 952705860  unknown 60  unknown 2          
Definition 3 unknown unknown 1  unknown 1                
Data 3 unknown unknown 952731060  unknown 0                
Data 3 unknown unknown 952731120  unknown 0                
Data 3 unknown unknown 952731180  unknown 0                
Data 3 unknown unknown 952731240  unknown 0                
Data 3 unknown unknown 952731300  unknown 0                
Data 3 unknown unknown 952731360  unknown 0                
Data 3 unknown unknown 952731420  unknown 0                
Data 3 unknown unknown 952731480  unknown 0                
Data 3 unknown unknown 952731540  unknown 0                
Data 3 unknown unknown 952731600  unknown 0                
Data 3 unknown unknown 952731660  unknown 0                
Data 3 unknown unknown 952731720  unknown 0                
Definition 4 unknown unknown 20                   
Data 4 unknown unknown 51
|75|43|199|41|191|72|195|118|194|116|75|57|190|178|192|212|76|147|84                   
Data 3 unknown unknown 952731840  unknown 1                
Data 3 unknown unknown 952731900  unknown 1                
Data 3 unknown unknown 952731960  unknown 1                
Data 3 unknown unknown 952732020  unknown 1                
Data 4 unknown unknown 39
|73|69|197|98|188|231|192|9|192|90|73|212|186|225|189|65|74|104|85                   
Data 4 unknown unknown 250
|72|4|197|50|189|48|193|142|192|120|73|122|188|153|190|37|72|95|85        ... 
     
Rank

Total Posts: 15

Joined 2020-02-05

PM

The FIT SDK allows for custom fields to be added to any message. Since these custom fields are added after the fact, they are not included in the public SDK. Most likely the fields that are not defined in the SDK are used for proprietary data. The FitToCSV tool will label custom fields as "unknown", which is what you are seeing.      
Rank

Total Posts: 2

Joined 2020-03-22

PM

Thanks; has anyone figured out Garmin's custom fields? No documentation, as far as I can see...      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

Not all protocols record steps to the fit. I don t remember wich one do it, it was once discussed in the Garmin forum. The android application a training tracker records directly to .csv, and steps are there.

https://www.thisisant.com/forum/viewthread/7363/

To get clear heart rate data from a fit file, me personally I would choose Max Candocia fit to csv python script

https://www.thisisant.com/forum/viewthread/7358/
     

Signature

Peter Gamma

Rank

Total Posts: 2

Joined 2014-11-07

PM

Perhaps the exported files are not exactly the same as those recorded on a Garmin device. Extracting steps, active calories and heartrate from Monitoring files taken directly from a device, is possible. As long as data upload is disabled, the Monitoring files are left on the device for later retrieval.      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

For step counting I use a training tracker.

https://www.thisisant.com/forum/viewthread/7363/

It is an android app, but it counts steps from the foot pod, and it is to my knowledge the most accurate step counter wich is available. Garmin watches don t count the steps from the foot pod. And not all protocols store steps in the .fit file. a training tracker stores steps in a .csv file, and the .csv files have a very clear data structure compared to Garmin .fit files.      

Signature

Peter Gamma

Rank

Total Posts: 2

Joined 2014-11-07

PM

Notwithstanding better ways to record step data, there is no readily available standalone and offline software to analyze and visualize data from MonitoringB files. In case you have (lots of) those files collected and want to do something with them, you have to make the software yourself. This forum seems a good place to share experiences and learn more.      
Avatar
RankRankRankRank

Total Posts: 243

Joined 2018-09-10

PM

I m dealing with this problem since a long time. I could not find a satiffying data analysis software which allows a free analysis of ANT+ sensor data. To use an MQQT stream is an option, which is currently only available for rasperiri PI heart rate, but could be modified for more sensors

https://www.thisisant.com/forum/viewthread/7360/
     

Signature

Peter Gamma