Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

file_id-message, field serial_number

RankRank

Total Posts: 44

Joined 2013-04-07

PM

I have my own python-program to read activity.fit-files.

To test my program I use the activity.fit-file examples of the SDK 1.0 and 6.1 (ditto 3.1) and my own files from edge 500 (software 3.0).

To verify the results of my progamm I use the SDK contained activity.csv-files.

I have a problem with the Field serial_number of the file_id-message. I do not know what is unit32z. So I read the 4 byte of the field serial_number as unit32.

I get:

activity.fit-file-example SDK 1.0: my program shows: serial_number: 1000332
activity.csv-file-example SDK 1.0 shows: serial_number: 1000332 o.k.

activity.fit-file-example SDK 6.1: my program shows: serial_number: 2147483647
activity.csv-file-example SDK 1.0 shows: serial_number: 3843863754 not o.k.

activity.fit-file of my own edge 500 (software 3.0): my program shows: serial_number: 3839254484
my own edge 500 (software 3.0): display shows serial_number: 3839254484 o.k.


Why only in the example SDK 6.1 is a difference? Is it my fault? I may not reading unit32z as unit32?

or

in SDK 6.1 activity.csv is an error?



Thanks for an answer
     
RankRankRank

Total Posts: 91

Joined 2012-10-12

PM

I think everything is working ok. The sample activity file included in the SDK was updated in version 2.20. The file_id.serial_number in the new sample file is actually 2147483647 which your program seems to decode correctly.

edge-python - 07 April 2013 09:39 AM

activity.fit-file-example SDK 1.0: my program shows: serial_number: 1000332
activity.csv-file-example SDK 1.0 shows: serial_number: 1000332 o.k.

activity.fit-file-example SDK 6.1: my program shows: serial_number: 2147483647
activity.csv-file-example SDK 1.0 shows: serial_number: 3843863754 not o.k.


Here I think you mean
activity.csv-file-example SDK 1.0 shows: serial_number: 1000332

     
RankRank

Total Posts: 44

Joined 2013-04-07

PM

Thank you for answer,

Sorry, here is the correction of my question:
activity.fit-file-example SDK 6.1my program shows:  serial_number2147483647
activity
.csv-file-example SDK 6.1 shows:              serial_number3843863754 not o.k

Please take a look at the example activity.csv-file SDK 6.1:
Type       Local Number Message     Field 1       Value 1      Units 1
Definition   0      file_id      serial_number        1 
Data         0      file_id      serial_number   3843863754 

The example activity.fit-file contains 7f ff ff ff but the example activity.csv-file contains 3843863754 ?!

Thank you
     
RankRankRank

Total Posts: 91

Joined 2012-10-12

PM

-Sorry I misunderstood earlier. I looked at the activity.csv file itself and you are correct, it does not reflect the content of activity.fit. Your program is decoding the serial_number field correctly, I will fix the error in the example .csv file.      
RankRank

Total Posts: 44

Joined 2013-04-07

PM

Thank you for fix the discrepancy between binary and ascii in example activity file in new SDK 6.20

edge-python