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: 9

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: 175

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/