LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 25 / 52
2.2.12. AT+QNTP Synchronize Local Time with NTP Server
The Write Command synchronizes UTC with the NTP server. Before using NTP, the host should activate
the context corresponding to <contextID> via AT+QIACT first. Depending on the network, it will take at
most 125 seconds to return the result.
Parameter
Others Error code of operation. Please refer to the error codes in Chapter 4.
<sent> Integer type. Total number of sending the ping requests.
<rcvd> Integer type. Total number of the ping requests that received the response.
<lost> Integer type. Total number of the ping requests that are timeout.
<min> Integer type. Minimum response time. Unit: ms.
<max> Integer type. Maximum response time. Unit: ms.
<avg> Integer type. Average response time. Unit: ms.
AT+QNTP Synchronize Local Time with NTP Server
Response
+QNTP: (range of supported <connectID>s),<server>,(range of
supported <port>s),(list of supported <auto_set_time>s)
OK
Response
If in the process of local time synchronization:
+QNTP: <server>,<port>
OK
Write Command
AT+QNTP=<contextID>,<server>
[,<port>[,<auto_set_time>]]
Response
If the local time is synchronized with NTP server successfully:
OK
+QNTP: <err>,<time>
If there is any error:
ERROR
125 s, determined by network.
The command takes effect immediately (actually determined by
network).
The configurations will not be saved.
<contextID> Integer type. Context ID. Range: 1ā16.
<server> String type. Address of NTP server.