mlt / schwinn810

Software for Schwinn 810 (and also some Mio, Cresta, and RedClover) GPS sport watch with heart rate monitor (Linux, Windows, and Mac OS)
https://github.com/mlt/schwinn810/wiki/Windows
14 stars 6 forks source link

Support for settings extraction on Cresta alike watch #32

Open sandrovich opened 9 years ago

sandrovich commented 9 years ago

Post there an exact error you are getting. If it is about failed signatures in other parts of the code, it well >might be that you subsequently trying to fetch things again and again without disconnecting the watch >and something is just stuck in a buffer that was not flushed. Disconnecting the watch before the new >attempt might help if that was an issue.

I'll post the exact error later, there is a way to read a dump bin file without the watch connected? Because my watch battery is getting bad and I don't want to connect and disconnect the watch several times.

mlt commented 9 years ago

The binary data saved are just whatever was requested and received from the watch. Sent commands are not stored. That is if no READ_SETTINGS was issued, then there would be no settings stored in a binary dump. Moreover if there was an incorrect number of bytes read, it would be stored that way in a dump. So it was mostly useful for me in initial stages. One idea would be to keep reading 1 byte at a time and flushing output indefinite number of times upon issuing READ_SETTINGS, then disconnecting the watch. Another option if you have an access to Windows machine, is to use proxy DLL (or maybe just Wireshark with USB packet capture) and record communication for original software.