Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

data_mesgs['record'] null #54

Open
LudoWeb opened this issue Jul 3, 2019 · 8 comments
Open

data_mesgs['record'] null #54

LudoWeb opened this issue Jul 3, 2019 · 8 comments
Assignees

Comments

@LudoWeb
Copy link

LudoWeb commented Jul 3, 2019

Hello Adrian :)

I have an issue with the parser. Unfortunatly, data_mesgs['record'] is null and i don't have any data.

This line seems to be the problem :
$this->file_header['data_size'] = $this->file_header['crc'] - $header_size + 2;

It's a session recorded with Garmin Forerunner 920XT.

Many thanks,

@LudoWeb LudoWeb changed the title Issue about data_mesgs['record'] null Jul 3, 2019
@adriangibbons adriangibbons self-assigned this Jul 4, 2019
@adriangibbons
Copy link
Owner

If you insert the following after that line, what do you get?

var_dump($this->file_header['crc']);
var_dump($header_size);
die();

@LudoWeb
Copy link
Author

LudoWeb commented Jul 4, 2019

$this->file_header['crc']: int 635
$header_size: int 14

@adriangibbons
Copy link
Owner

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

@LudoWeb
Copy link
Author

LudoWeb commented Jul 15, 2019

Hey @adriangibbons,

Any idea about this issue and how to fix it ?

Thanks!

@adriangibbons
Copy link
Owner

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?

@LudoWeb
Copy link
Author

LudoWeb commented Jul 19, 2019

Yes, the file seems to work fine with Garmin Connect and Strava.

Here's the share file: error-file.txt

Thanks,

@LudoWeb
Copy link
Author

LudoWeb commented Aug 6, 2019

Hello @adriangibbons,

Were you able to check the issue ?

@adriangibbons
Copy link
Owner

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 more time. Have been so busy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants