Filter by serial_number

201 views
Skip to first unread message

geb257

unread,
Mar 6, 2022, 3:20:09 AM3/6/22
to golden-cheetah-users
I've been using Golden Cheetah to analyse .fit files recorded from multiple Garmin Edge 130 devices. What I would like to do is filter activities by the device they were recorded on so that I can track things such as total mileage per device. To achieve this the most robust solution would be to use the serial_number field which is present within each .fit file. However, within Golden Cheetah I cannot find any reference to the serial_number field? I'm using version V3.6-RC1, the release notes for which specifically state "Import serial number and battery status for sensors from FIT files" as a feature, so this must be possible! Any help would be much appreciated.

Hwa Runner

unread,
Mar 6, 2022, 5:19:31 AM3/6/22
to golden-cheetah-users
I think the information you are searching for is in the fields 'Device' and 'Device_info'.
You can see the content of the fields in the tab 'Device'

geb257

unread,
Mar 7, 2022, 6:12:54 AM3/7/22
to golden-cheetah-users
Unfortunately not, the device name is shown but this is not what I'm after as it's not a unique identifier; if I have multiple devices of the same model they cannot be distinguished using this field alone, whereas they can using the 'serial_number' field which is present within each fit file.

Ale Martinez

unread,
Mar 7, 2022, 6:39:14 AM3/7/22
to golden-cheetah-users
El lunes, 7 de marzo de 2022 a la(s) 08:12:54 UTC-3, geb257 escribió:
Unfortunately not, the device name is shown but this is not what I'm after as it's not a unique identifier; if I have multiple devices of the same model they cannot be distinguished using this field alone, whereas they can using the 'serial_number' field which is present within each fit file.

Serial number from fit file is imported as ID in Device Info field in v3.6 

geb257

unread,
Mar 7, 2022, 7:34:32 AM3/7/22
to golden-cheetah-users
When I look in the 'Device Info' box within the 'Details' tab all I see is 'Headunit Garmin Edge 130 (v3.8)' and not the device's actual serial number. When I look into the fit file itself using https://www.fitfileviewer.com/ I can see a 'serial_number' field within the 'file_ID' row, which is a ten-digit unique ID. That's what I want to be able to filter by within Golden Cheetah. Thanks in advance.  

Ale Martinez

unread,
Mar 7, 2022, 10:35:57 AM3/7/22
to golden-cheetah-users
El lunes, 7 de marzo de 2022 a la(s) 09:34:32 UTC-3, geb257 escribió:
When I look in the 'Device Info' box within the 'Details' tab all I see is 'Headunit Garmin Edge 130 (v3.8)' and not the device's actual serial number. When I look into the fit file itself using https://www.fitfileviewer.com/ I can see a 'serial_number' field within the 'file_ID' row, which is a ten-digit unique ID. That's what I want to be able to filter by within Golden Cheetah. 

You are right, the record for head units (type 4) is empty but it comes in a separate record without type and we are discarding it.  

geb257

unread,
Mar 7, 2022, 11:49:00 AM3/7/22
to golden-cheetah-users
Is there any feasible way that I can extract this number and then use it to filter activities?

Ale Martinez

unread,
Mar 7, 2022, 12:07:48 PM3/7/22
to golden-cheetah-users
El lunes, 7 de marzo de 2022 a la(s) 13:49:00 UTC-3, geb257 escribió:
Is there any feasible way that I can extract this number and then use it to filter activities?

Not that I know, it is not imported currently since it is not attached to a valid type.

Sensors serial numbers are correctly imported OTOH, so a speed and/or cadence sensor may help for distinction, but not Garmin head units AFAIK.

geb257

unread,
Mar 7, 2022, 12:33:58 PM3/7/22
to golden-cheetah-users
That is very surprising to me. As defined in the fit protocol (https://developer.garmin.com/fit/file-types/) the serial number is just another field contained within the file ID message, so why can't it just be read and store alongside other metadata such as the device name? This is especially surprising as you say that the serial numbers of any sensors paired to a device are read and stored within GC!? 

Ale Martinez

unread,
Mar 7, 2022, 1:00:09 PM3/7/22
to golden-cheetah-users
El lunes, 7 de marzo de 2022 a la(s) 14:33:58 UTC-3, geb257 escribió:
That is very surprising to me. As defined in the fit protocol (https://developer.garmin.com/fit/file-types/) the serial number is just another field contained within the file ID message, so why can't it just be read and store alongside other metadata such as the device name? This is especially surprising as you say that the serial numbers of any sensors paired to a device are read and stored within GC!? 

This is an open source project, feel free to look at the code to understand the reasons, and contribute a pull request if you find a better solution.

Ale Martinez

unread,
Mar 7, 2022, 5:32:23 PM3/7/22
to golden-cheetah-users
El domingo, 6 de marzo de 2022 a la(s) 05:20:09 UTC-3, geb257 escribió:
I'm using version V3.6-RC1, the release notes for which specifically state "Import serial number and battery status for sensors from FIT files" as a feature, so this must be possible!

BTW, the release notes are correct, we are importing serial number and battery status for sensors, not for head units. 

geb257

unread,
Mar 8, 2022, 4:15:57 AM3/8/22
to golden-cheetah-users
Out of interest, do you know why this is the case? Is there some logic to why the serial numbers of the sensors are kept and not of head units?

Ale Martinez

unread,
Mar 8, 2022, 5:29:26 AM3/8/22
to golden-cheetah-users
El martes, 8 de marzo de 2022 a la(s) 06:15:57 UTC-3, geb257 escribió:
Out of interest, do you know why this is the case? Is there some logic to why the serial numbers of the sensors are kept and not of head units?

Reply all
Reply to author
Forward
0 new messages