After running AT+QNTP, is the latest time available in AT+QLTS updated?

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)

Hi,

Are you want get the last time after wake up from PSM?

B R
Linkin WANG

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.

Hi,
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.

[2023-01-06_09:24:19:235]AT+QNTP=1,"ntp.ntsc.ac.cn"

[2023-01-06_09:24:19:235]OK
[2023-01-06_09:24:19:538]
[2023-01-06_09:24:19:538]+QNTP: 0,"2023/01/06,01:24:31+32"
[2023-01-06_09:24:27:260]AT+QLTS=2

[2023-01-06_09:24:27:260]+QLTS: "2023/01/06,09:24:39+32,0"

[2023-01-06_09:24:27:260]OK

Hi, thank you for reply.

After wakeup, does module registered network?

Yes.

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?

Hi,
Yes, It’s OK to use QNTP to get latest time.

B R
Linkin WANG