-
Notifications
You must be signed in to change notification settings - Fork 82
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
wrong read if memory is near limit #273
Comments
Normally activities are marked as synced using the command 0x0B 0x1B. No parameter is needed and all activities without the sync flag set are marked as synced. Before calling this command, I usually put the watch into sync mode ("M sync" is shown in the display) using the command 0x0B 0x1A with parameter 0x0001 (to disable sync mode: 0x0000). Since a couple of days syncing activities results in gateway timeouts. Even with the app key from SuuntoLink. So it's not possible anymore to sync to Movescount. Does OpenAmbit call the command 0x0B 0x1B even if there are errors after sending an activity to Movescount? Maybe you can write a small program to mark all logs as synced. All commands you need are: 0x00 0x00 - Get device information |
Hi Gerold, just for a better understanding: The commands would be options while using openambit-cli or options for new code for openambit-cli? |
No these are the commands send to watch inside the USB reports. You're just using another format in OpenAmbit as I do in my Delphi programs. You can find the commands in protocol.h enum ambit_commands_e { and the function which uses these commands |
OK, thanks for the hint. If I find some motivation, I try to change some code and try it out on my watch. This will not resolve the wrong reading, if the memory of the watch is near limit. Further, the initial developers are off, that is, this project is near dead? |
I am not the intial devleoper, but plan to support the project as long as I use the Suunto Ambit 2 watches myself. Mostly smaller fixes and useful PRs, maybe some more functionality to the cli-tool over time as I mostly stopped using the GUI myself. As I don't not much about the actual communicatoin-protocol to the watch, I cannot offer much there, but will accept patches and suggestions if I can. So if you can provide patches for fixes for the memory issues I will surely apply them. Also if there is a way to reproduce the problem a bit more easily, I can see if I can spend some time to narrow down issues. |
Hi centic, so is my impression, as long there is usage of the watch, there is motivation to do something on this project. I am familiar with C/C++ and Qt too, the time before Movescount, I wrote a prototype to read data from the Suunto T6, the process to send bytes to the watch is comparable to the process openambit is handling the ambit watches. But, currently, I have only a very brief overview of the code, it is alway hard to understand someone others programs. Gerolds hint to protocol.c seems to be a beginning, the correct command for a "this move is synced" may resolve the wrong reading error. Is there any possibility for a personal communication? |
We can continue discussion here as well, but I think my email address is in my github profile if you need to contact me directly. |
A few years ago, I started documenting the device protocol but got side-tracked. If there is interest, I might revive that project and get it to publish a static site documenting what is known about the protocol. Now that Movescount is a goner, at least as far as uploading moves is concerned, I have become a bit more concerned about the status of this project (as well as related ones like openmoves) and may want to contribute again. |
This is the USB HID report format we use in our Delphi programs:
The format of the data received is not always easy to understand. Ambit 3 series users do have an advantage here, cause the command MsgId 0x11 MsgSubId 0x04 returns the descriptors for many data-id's stored in "SBEM0102" format. Together with command MsgId 0x12 MsgSubId 0x00 it's possible to read these data. Example for getting the steps made for the last 30 days from the device:
I am still using an Ambit 2 series, so not very helpfull in my case. |
Just for point of reference - my Ambit 3 Multisport has been showing a "please sync to movescount" message as the memory is full. |
Due to incapability of a sync to movescount, my Ambit 2 did not get the flag, that activities were synchronised. Now, almost 95% of memory usage, the last read of an activity by openambit-cli results in a mix of current and old data, almost 1/3 of my activity was flawed. I can provide the activity if necessary.
To solve this problem, my only option was to use another computer with suuntolink. Sunntolink read the data correctly. So my request is to implement a sync-flag for removing the "please sync to movescount" message, and, more important, to resolve the wrong reading error.
The text was updated successfully, but these errors were encountered: