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

FR70 issue with Garmin.State.REQUESTID #14

Closed
rkistner opened this issue May 13, 2012 · 1 comment
Closed

FR70 issue with Garmin.State.REQUESTID #14

rkistner opened this issue May 13, 2012 · 1 comment

Comments

@rkistner
Copy link

When connecting to my Garmin FR70, it fails when parsing the response for REQUESTID.

The data returned from my device is the following:

[67, 52, 3, 3, 255, 255, 255, 255, 68, 132, 0, 5, 14, 158, 18, 0, 70, 82, 55, 48, 0, 0, 0, 0]

As the product name at the end is too short (not 14 characters as expected by the code), the app crashes. I hacked together a simple fix for this, so that the string is not hardcoded:

https://gist.github.com/cfb35603676929c02cb4

I don't know what the data is supposed to look like according to the protocol, so my solution is very much hacked. If you can point me in the direction of the protocol documentation, I can come up with a better solution.

Apart from this small (but critical) issue (and the fact that it sometimes takes very long to connect - see issue #15), it works with my FR70 (just uploaded my first data to Garmin Connect!). The dates are incorrect, but I'll investigate this another time.

@Tigge
Copy link
Owner

Tigge commented May 14, 2012

Yeah, I've assumed a fixed length. Seems like my assumption about the protocol was correct and that byte 11 of this sequnce is the string length. I'll update the protocol documentation and the code to fix this.

About protocol documentation -- I'm not sure there is one, or if there is one that can be used safely for an open source program. My own findings can be found here.

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

No branches or pull requests

2 participants