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

How to use the protobuf file generated by "--get-summaries" option ? #171

Open
ABelliqueux opened this issue Oct 28, 2020 · 2 comments
Open

Comments

@ABelliqueux
Copy link

Hi,

When using the "--get-summaries" option, I get a .protobuf file. Is it supposed to be parsed by ttwatch or is it supposed to be parsed with a different program ?

Thank you for your reply.

@ryanbinns
Copy link
Owner

I have an older watch which doesn't produce these files, so I'm sorry I can't help. I have no idea what they would be used for. There is nothing in the ttwatch program that can handle them; it merely saves them to disk.

@scubajorgen
Copy link
Contributor

scubajorgen commented Dec 12, 2020

Hi,

When using the "--get-summaries" option, I get a .protobuf file. Is it supposed to be parsed by ttwatch or is it supposed to be parsed with a different program ?

Thank you for your reply.
I do

Protobuf encoding is used to encode data on the TomTom watches especially for the more recent files as routes and activity tracking. Protobuf encoding is a very compressed format.

Usually you compile the protobuf definition file (it's a .proto file) using a protobuf compiler. The compiler generates code in the language of your choice, for example java code. This code you can use to encode or decode protobuf messages (data objects to protobuf and vv). The protobuf definition file defines the data structure and human readable data labels in the protobuf message

I guess you get a protobuf encoded message from the watch with --get-summaries.

There are protobuf decompilers which can get and display the data values in the file, but they don't give a clue what the data means. They are usually used for reverse engineering. I used protobuf inspector to reverse engineer the TomTom files.

Rever to my program for the protobuf definition files (.proto files)

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

3 participants