Comments (10)
I have experimented with this issue and are now able to sync the sport / custom modes to my watch. (The changes are in my fork.)
However there are still some unclear areas.
- When syncing in Windows and looking at the data sent to the device, I see that in addition to the displays defined at movescount.com site it also sends 5 additional displays to the device for every sport mode. This 5 displays are identical for all the sport modes, at least for me. But I would like to check this with log from others. So if someone has wireshark logs when syncing in Windows, can you please send them to me? To "same username as I have here" @passagen.se.
- There are some unknown fields in the data sent to the device. In my logs they are all zero (except one field). However, from the JSon-settings file from movescount there are some fildes that I have not been able to set from movescount.com. Do anyone know how to set "TonesMode" and "UseAutomaticLogRecording" for one sport mode and "RequiresHRBelt" for one display?
from openambit.
@superdupersvard That's great news. You have mail, I hope it helps.
from openambit.
@benedetto Thanks for the logs. They showed the exact same 5 extra displays.
I am now also able to sync apps.
If someone wants to try to sync with these changes, please go ahead. Right now the code in my branch will print out all the data sent to the watch to the terminal. (You may have to turn "Sync orbital data" to off, to not also print all the orbital data.) You also have to turn on "Sync sport modes" in the settings (default off). Also the wireshark dissector will print out the sport modes and app data to terminal. This two output should be equal if openambit succeeded to sync the same data as Windows. If you try please report if the two outputs are equal or not.
from openambit.
Nice! Tested with Amibt1, seems to buld and run and sync just fine, at least nothing blew up and my sport modes and apps are still working :) Will check against Moveslink captures in a day or two.
Whats next, offline settings and sport mode handling? :)
from openambit.
@margusit It's nice that it also works with Ambit1. If you have the possibility to take a .pcap log in Windows and e-mail that to me plus the output log from openambit (with the same sport modes setting), then I could check that all the written data is correct for also for Ambit1.
I would also be interested in a Windows .pcap log from someone with an Ambit3 whit a least one sports mode including one or more applications.
The logs can be e-mailed to "same username as I have here" @passagen.se.
from openambit.
@superdupersvard I am using your code now for some time and it hasn't broken my watch (looks like it's not too bad ;-) Thanks for that great work!
However, I have noticed two flaws:
- Interval timers: I have one Sport mode with an Interval timer set to 20 seconds high, 10 seconds rest. If I sync this to my watch with openambit instead of movescount, it ends up on the watch as 0 meters high, 10 meters rest. So obviously your code does somehow change the setting from time to distance here.
- Heart rate graph: For the screens where a graph is shown the watch has two types of graphs, either a simple line or a bar-like graph where the area under the line is filled. If I get it right – I'm only guessing here – then the line graph can have floating upper and lower boundaries (i.e. the vertical range is chosen in a way that the data range fits into it but is spread is wide as possible) while the bar-like one seems to have its lower boundary fixed at 0 and only the upper boundary is adjusted. If I sync my sport modes with movescount, heart rate graphs are displayed as line graphs and for example for elevation the bar-like graph is used. On your code it looks like all graphs are bar-like which makes this type of screen quite useless for some information types (e.g. heart rate).
I haven't .pcap logs of such a transfer yet, but if you need, I could try to record some when I do a Windows sync the next time.
from openambit.
@benedetto Thanks for the feedback.
I have now updated the code with (hopefully) fixes for the two bugs that you found. I have tested with graphs for altitude, heart rate and barograph, and now openambit should sends the same data as in Windows. Please try and let me know if it works for you.
from openambit.
@superdupersvard sorry for not answering for so long, but I had some busy weeks now and not much time to use my watch (unfortunately...) Now that things tend to get a bit more calm again I'll see that I can give it a go in the nearer future.
from openambit.
@superdupersvard finally I have found the time to test both issues and now it works as expected. Also I did not experience any other issues related to the sort mode syncing.
So I would love to see your code merged into master!
from openambit.
Hi all.
I have encountered this error when trying to synchronize sport modes:
#ASSERT failure in QList::at: "index out of range", file /usr/include/qt4/QtCore/qlist.h, line 469
Openambit crashes when "Fetching sport modes" is displayed on the GUI.
The only way to complete the synchronization is to remove the flag on "Sync sport modes (from Movescount)".
My device is a Suunto Ambit2R.
Any suggestion? Thanks
from openambit.
Related Issues (20)
- strava_uploader.py HOT 6
- Maybe it depends on what you are using to sync your moves. My latest move (~8km walk) appears in MovesCount. HOT 1
- Not able to connect to movescount on fresh install HOT 9
- wrong read if memory is near limit HOT 10
- Some specs for the "custom JSON config file"? HOT 2
- Add a option to totally skip any try to communicate with movescount.
- Upload a GPX to a Suunto watch directly?
- Compilation issue on master: this_thread::sleep_for HOT 2
- suuntolink HOT 3
- No instructions for updating tools/stravauploader/config.py
- double free or corruption HOT 1
- Suuntolink working with Wine HOT 15
- Wireshark dissector usage HOT 1
- ambit_device_driver_ambit3: ambit_navigation_read / write HOT 8
- Sample files with USB HID report descriptor
- Add a license file to the project
- Convert GPX to JSON route HOT 3
- suunto apps support HOT 2
- suunto ambit 3 sport not updating firmware
- Installation problem Xubuntu 22.04 - problem with cmake
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openambit.