Adrian Gibbons
Adrian Gibbons
Hi, my understanding of the FIT protocol is that there are not many mandatory fields. I don't think a valid FIT file is required to have Session messages within it....
Just ran the x06.fit file through the SDK parser and there is ```session``` messages in there so I am investigating...
First look and I'm a bit stumped. Looking at the protocol to see if anything has changed and I note: > An activity file shall contain file_id, activity, **session**, and...
If you insert the following after that line, what do you get? ```php var_dump($this->file_header['crc']); var_dump($header_size); die(); ```
Hmmm, seems like a small file $this->file_header['data_size'] = 635 - 14 + 2 = 623 I will try find some time at the weekend to investigate
Are you able to share the file? You will probably have to change the file extension to .txt Presumably the file works fine with Garmin Connect / Strava / etc?
Hi, I had a quick look but didn't get anywhere. Then I've been on holiday a couple of weeks. Back in about a week or so and then will have...
Can you confirm the offending line 1228 is: ```$this->types = $this->endianness[$architecture];``` It would seem that ```$architecture``` has a value of 84, which won't work as it should only be 0...
Hi @LudoWeb I have looked into this issue for the past 3 hours and not got very far. I don't understand why the architecture is coming up as something other...
Hi, can you try commenting-out line 1343 https://github.com/adriangibbons/php-fit-file-analysis/blob/master/src/phpFITFileAnalysis.php#L1343 Appears to be a swimming file recorded with a Garmin 920XT. Were there any sensors attached e.g. HR strap?