ttwatch icon indicating copy to clipboard operation
ttwatch copied to clipboard

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

Open ABelliqueux opened this issue 3 years ago • 2 comments

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.

ABelliqueux avatar Oct 28 '20 10:10 ABelliqueux

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.

ryanbinns avatar Dec 10 '20 07:12 ryanbinns

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)

scubajorgen avatar Dec 12 '20 14:12 scubajorgen