Hi,
I just downloaded the latest version of FIT SDK(FitSDKRelease_21.141.00.zip). Then check the sample files included in it with the FIT protocol. Then I find some of them have invalid field size.
The protocol indicates that for a definition message, there will be several field definition. If the field type is 2, then it is a uint8 so its size should be 1. But the actual field size is 4.
For example:
1. In activity_multisport.fit, the 6th definition message is:
Global Message Num: 19. Field Count: 28. Dev Field Count: 0
The 19th field(starting from 0) has the following value:
- pFieldDef
num 0x66 'f' unsigned char
size 0x04 '\x4' unsigned char
type 0x02 '\x2' unsigned char
All other definition messages(totally 4, including the above one) in this file with global message num 19 and field count 28 will have this issue.
And definition message with global message num 19 and field count 27 will have the same issue in 18th field definition.
The similar cases occur in the following sample files:
05/08/2024 02:03 AM 136,846 activity_lowbattery.fit
05/08/2024 02:03 AM 3,195 activity_multisport.fit
05/08/2024 02:03 AM 56,694 activity_poolswim_with_hr.fit
05/08/2024 02:03 AM 25,121 HrmPluginTestActivity.fit
05/08/2024 02:03 AM 2,087 MonitoringFile.fit
05/08/2024 02:03 AM 82 Settings.fit
05/08/2024 02:03 AM 170 WeightScaleMultiUser.fit
05/08/2024 02:03 AM 90,970 WithGearChangeData.fit
So why these file do not follow the FIT protocol?
Thanks