First measurement after opening app has wrong date and time
Describe the bug Upon first measuring after opening openScale on my Android, the measurement has the wrong date and time - the date is usually from the previous measurement, but I have no idea where the time is coming from. If I keep the app open, let the scale reset and retake the measurement, all values are correct. I'm using a Medisana BS444.
To Reproduce Open openScale (BT Autoconnect is enabled) and step on the scale. I'm using the F-Droid version, which says v2.3.5 (54).
Expected behavior Correct time and date.
Additional context In Medisana's own app, VitaDock+, it works every time, so it's probably not the scale. :-)
Debug log openScale_2021-01-21_15-09.txt Note: I edited the log to hide my birth date and age. You can see the wrong date and time on the first measurement in line 39. I did weigh myself on 2021-01-20, but not at 10:13.
and what are the correct date and time?
The log time from line 39 would be the correct one: "2021-01-21 15:09:48.236".
On line 87 of the log, you can see a correct measurement - log time is "2021-01-21 15:11:06.642" and the "DATE_TIME" field of the measurement is "Thu Jan 21 15:11:03 GMT+01:00 2021". The seconds are a bit off, but that's not a big deal, I guess. At least it got the date, hours and minutes right. :D
Is there anything I can do to help, e.g capture a raw BT transmission data dump? (I'd first have to find out how, but I'm comfortable with using Linux command line tools.)
is this always the case? Could be a timing problem because the date/time is set in step 3.
Yes, it has always been like this since I started using openScale. I only have this physical scale to try but I'm open for suggestions.
I have no idea how this scale works internally, but it looks like it seems to be reporting the date of the last measurement at some point.
but you doing to sperate measurements? One has the correct date/time and an incorrect date/time?
It's a bit strange maybe you could play a bit around in the medisana source-code
Yes, in the log I was doing two separate measurements after another. The second one was correct.
Playing around in the source code is difficult for me because I have no experience whatsoever in developing Android apps. I'll see what I can do.
I have the same scale and the same issue. Once in a while something changes though and then I get the correct time and date. Sometimes for a few days. Then I get the faulty behaviour. Sometimes it says "Verbunden" but I get no data at all. The only constant is that I always get the message about using the scale barefoot. Even though I am using it barefoot.
The only constant is that I always get the message about using the scale barefoot. Even though I am using it barefoot.
Maybe I should open a separate issue, but:
- I don’t have the original issue (incorrect timestamp); all my measements have a correct timestamp;
- I measures only the following data (both in openScale and VitaDock+):
- BMI;
- BMR;
- TDEE;
- I also always get the toast with about barefoot measurement (which I do).
Note that I’ve just bought the scale, haven’t done any configuration on it (should do anything?). UPDATE: Indeed I should! I’ve just the instructions; one needs to configure the personal measurements (height, sex, age, …) and then all measurements are done as expected.