Removing day light saving mode | Thales IoT Developer Community
April 6, 2020 - 4:34pm, 1702 views
Hi,
I am using a PLS62-W terminal. I am wondering whether its possible to disable DST. To get the network time I use "AT+CTZU=1", which does not always work and requires me to make an offest to the time due to BST. Currently, I am forced to increment an hour to the time received from the RTC.
Many thanks
I have realised that I can obtain the correct time and date with the AT+CCLK? command. However, I have to always reinsert the sim card while its powered on to do so. Is there a way were I can configure the modem via AT commands so that I can obtain the correct time and date from modem without needing to reinsert the sim card?
Hello,
Could you write some more about the problem? Does it depend on the network? Do you have any other observations?
With AT+CTZU=1 you enable the automatic time adjustment according to the information from the network. So in fact what is set depends on what the network sends. You can enable URCs with this information with at^sind="nitz",1 command.
For instance in my test I got:
+CIEV: nitz,"20/04/07,10:05:15",+08,1
which is 10:05:15 UTC, timezone UTC +2 hours (+8 * 15 minutes), DST 1 hour.
There's another way to enable event reporting for changes of time zone and daylight saving time - AT+CTZR=1
In my case it also reported timezone and DST updates. It also shows the local time:
+CTZV: +08,"20/04/07,12:05:15"
+CTZDST: 1
+XNITZINFO: "GMT+01:00","20/04/07,12:05:15"
To be independent from the network time you'd have to implement some connection to some NTP server and update the time with AT+CCLK command.
Regards,
Bartłomiej
Hi,
Thanks for getting back to me.
To circumvent the issue, I have flashed the modem with simple java code to keep quering for the network time until its received it using the SIND comman, when the modem is first switched on.
Hi,
If you would like to also try solution with NTP server, please check out this link:
https://iot-developer.thalesgroup.com/showcase/ntp-how-use-net-time-protocol-j2me
Time from the network is usually sent during network attach, so in case you need to sync the time during module's work, you can just send AT+COPS=2 / AT+COPS=0 to deregister and register again to the network.
Best regards,
Adam