Time sync issues bangle js 2 (ios) #6543
Replies: 1 comment
-
Posted at 2023-10-04 by @andresdju I can't help much because I use Android. In my case it synchronize the time correctly. About GPS, ¿are you updating AGPS data in the previous 24 hours? There is an app that updates the data periodically and allows downloading it manually. It also seems to help using GPS only instead of more than one satellite system. Posted at 2023-10-04 by Andtalath Haha, always fun to see upside down question mark in non-spanish ;) What app would that be? Posted at 2023-10-04 by @andresdju ¡Damn! My bad (anyway, it was a normal question mark, the upside down one was at the end of the question). I was talking about "A-GPS Data Downloader App" but it seems that it only works with Gadgetbridge on Android. You can use "Assisted GPS Updater (AGPS)" which is not really an app but downloads A-GPS data from the App Loader. Posted at 2023-10-04 by Andtalath So, just downloading that should help? Posted at 2023-10-04 by @andresdju I think that my banglejs2 synchronizes to my android phone's time when connecting to Gadgetbridge. The A-GPS data tip was for getting a GPS fix. I suppose that you need "GPS Time" to sync to the GPS time or "GPS auto time" to synchronize every time you get a GPS fix. Posted at 2023-10-05 by Andtalath Ok, thanks! And yes, I've seen elsewhere that gadgetbridge solves that part. Posted at 2023-10-05 by @gfwilliams In general the Bangle may lose/gain 2 seconds a day of time when not connected to anything, but it shouldn't be much more than that - it's pretty standard unfortunately as most oscillators used for microcontrollers are only 20ppm (parts per million) accurate. If you connect with the app loader then that can update the time for you (there is a setting, as usually doesn't mess with the time unless it's obviously not set at all).
No... however firmware 2v19 does actually provide the functionality (https://www.espruino.com/Reference#l_NRF_CTS) it's just not handled in the JavaScript on the watch yet as it's pretty recent. So if you're staying connected to the iPhone then it should be trivial. Posted at 2023-10-06 by Andtalath So, basically, should be improved later on =)? GPS stuff does seem to be impactful to battery life. Posted at 2023-10-06 by @gfwilliams Yes, hopefully it should get better soon! And yes, GPS is one of the biggest power hogs on the Bangle so ideally it's best not to use it unless it's totally needed Posted at 2023-10-06 by Andtalath Sounds good! Posted at 2023-10-06 by @gfwilliams Yes - in fact, if you use the development app loader and update iOS from there then I just added it: https://espruino.github.io/BangleApps/ You have to enable it from There was also a bug in 2v19 (fixed in cutting edge builds) which got the month wrong. I think I've worked around it now though Posted at 2023-12-25 by Andtalath Hmm, time sync has broken again. It's drifted a couple of minutes, not sure how long it has been failing =( Posted at 2023-12-30 by stweedo My time sync with iOS is not working either. It would appear CTS (Current Time Service) isn’t active on my phone because when I run ‘NRF.ctsGetTime()’ from the console it returns ‘Uncaught Error: CTS not active’. I’m using webBLE to connect to the bangle if that helps narrow down the problem. Thanks! Posted at 2023-12-30 by stweedo I did some more digging and found that the following steps will allow time sync to work:
After these steps it will update the boot code after switching between apps, and the time will then be synced. However, this only seems to last for one connection, and the whole process has to be done again if it's disconnected at all. I tried adding that NRF.setServices line into boot.js for the ios app, but it did not seem to help. Posted at 2024-01-02 by @gfwilliams And you're saying this worked previously? Because I haven't touched the current time service or ANCS code since I mentioned this 3 months ago, so I wonder if iOS has changed something under the hood... In the development app loader I've just made sure cts is enabled by the Posted at 2024-01-02 by stweedo No, I don't think it ever worked for me previously. I can confirm this newest version works though. Thank you! Posted at 2024-01-04 by Andtalath I was pretty sure it worked in 0.15 at some point. Option for time sync is checked. Am I missing anything? Edit: Hmm, now I poked around a bit in settings, went into time, and it was suddenly fine =) Posted at 2024-01-04 by Hank I checked on my Android and Time is off about 5 seconds. Is that normal? Posted at 2024-01-04 by @gfwilliams
If you've enabled time sync in settings I think it requests the time every time you load a new app.
You mean the time on your Android phone? Posted at 2024-01-04 by Hank The time on the Android phone is about 5 seconds off to the watch. The hhone time is only about half a second off to the NTP servers. So the watch seems to be lagging. Posted at 2024-01-04 by @gfwilliams You could try going to the App Loader from within Gadgetbridge and doing I guess there's a possibility that if your phone takes a few seconds to connect, by the time it's managed to connect the time that was going to be sent to it is slightly out of date. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-10-04 by Andtalath
Hello!
I noticed today that my time is off by a couple of minutes.
The initial time sync first time I paired it seemed to work, but even after resetting my watch to factory settings, I didn't even get new time when pairing it to my iPhone.
I've tried using GPS time and auto GPS time but they don't seem to find GPS satellites (clear blue sky today and I was on a walk as well.
Any suggestions?
I've seen a couple of threads about it on different places, but none seem to resolve it (some mention that rebooting should request new time, but it doesn't change for me).
Beta Was this translation helpful? Give feedback.
All reactions