Hello, I am trying to get the latest time using AT+QLTS=2.
I am using AT+QLTS=2 to get the latest time. However, this command sometimes returns “”.
The BG96 AT Commands Manual has the following statement
If the time has not been synchronized through network, the command will return a null time string: +QLTS:
I found a way to do CFUN=1 in another post, but I am using PSM mode, which is not a good idea.
So I tried AT+QNTP before AT+QLTS, hoping that QNTP would update and synchronize the latest time.
However, AT+QNTP ends with OK, but AT+QLTS still sometimes returns “”.
After AT+QNTP finishes, is the latest time I can get from AT+QLTS updated?
Or should I use AT+CCLK after AT+QNTP?
Translated with DeepL Translate: The world's most accurate translator (free version)
Are you want get the last time after wake up from PSM?
Hi, Linkin WANG
Yes, but not only after wake up. I try to synchronize the RTC of my micro computer, like ESP32 after my processing (about 10 secs).
So, allowing for the occasional AT+QLTS failure, it would be helpful to know how to get the synchronized time after running AT+QNTP.
Sorry for the late response.
After wakeup, does module registered network? and it should be returned +QNTP xxxx once you successed synchronized time via AT+QNTP command just like following picture.
Hi, thank you for reply.
After wakeup, does module registered network?
and it should be returned +QNTP xxxx once you successed synchronized time via AT+QNTP command just like following picture
I try like it, but QLTS sometimes return “” after PSM. QNTP is always succeed.
Should I get the latest time from QNTP response, not using QLTS?
Yes, It’s OK to use QNTP to get latest time.