I have noticed, date and time is synch without internet connection when TIME_SERVICES=“qcom_time” is set. Does anyone know how FX30 synchronize time without access to NTP (sim is in and is logged to GSM network but without connection to internet)? How does it work?
As mentioned in the link, “qcom_time” make use the cellular network time (NITZ) so it will work and automatic update the system time if the registered carrier network support it.
For NTP issue, to my understanding, it will fail and terminate if no IP connectivity when the script run.
So maybe your app can force run this script after it setup data connection properly, or trigger command “/usr/sbin/ntpd -p 80.153.195.191” whenever you want to sync the time.
Hi,
I took @lotam advice and sync time manually after data connection is established.
In other words. If you want to sync date and time you have to run
system("/usr/sbin/ntpd -p <your ntp server here>");
Hi,
I tried using this command to run ntp but still its not working.
I tried running sudo dpkg install ntp command , but it is showing dkpg not installed
Please guide on how to install dpkg
Hi,
To synch the time you have to establish internet connection (make sure you are connected) and run system(“/usr/sbin/ntpd -p <your ntp server here>”);. End of story.