I use AT+CCLK? command to get the current date and time from the GSM network, using GE865. It usually works OK, but after a cold start it often returns a meaningless date of 00/01/01, and time 00:00:xx.
After some time it however "jumps" to correct date and time. Is there a way to expedite the process of getting the correct time, or is there some known delay after which the time should be OK? In the latter case I could insert a delay in the Python program to ensure the date and time has "stabilized" after network registration.
Another thing: is anyone using some commonly available Time Server where one could get e.g. the UTC time, using FTP transfer or some other means? If yes, could you please tell the IP address of some server like this?
You can use AT#NITZ to have unsolicited messages when date/time update comes from the network.
Searching for time server souldn’t be too hard, check for example the internet cluster of ntp servers.
Thanks Cosmin for these hints. Is there perhaps an example somewhere about how to use the ntp servers from a GE865, with some piece of Python code?
There are various piece of Python code (simple!) for SNTP protocol on the net. If you have your own server you can put in place simple script to do the same, or even over HTTP if you want.
i’m facing a problem with AT#NTP command: i can see that it doesn’t work while the CMUX is activated.
In particular I get the following response when i issue the at command:
SRING: 2,48,…(series of not printable bytes)
Of course, the internal Telit RTC clock is not updated.
If CMUX is not activated the NTP sync works.
Fw Version: 16.01.151
Thanks in advance for your support
I’m trying to reproduce the same error but I cannot see any particular issue with CMUX enable.
I tried sending the AT#NTP on all the 3 virtual ports.
Please set AT+CMEE=2 and repeat the test.
Thanks Andrea for the fast reply.
I just tried with AT+CMEE = 2, here what i get:
AT#NTP=”ntp1.inrim.it”,123,1,2,0+CME ERROR: tx error
SRING: 2,48,$ëCTDÙE$—ðã-ÙE$ W0NÙE$ W›Ç
The context is open.
here again with a news:
i flashed again the latest fw and at#ntp command works, with or without cmux.
What could it happen?
I’ll continue to “stress” the module wiht frequent ntp requests in order to check whether the issue would appear again.
Dedicated thread here.
Hit enter to search or ESC to close
Knowledge Base & Download Zone