LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 29 / 56
2.3.12. AT+QNTP Synchronize Local Time with NTP Server
This command synchronizes the local time with the Universal Time Coordinated (UTC) through the NTP
server. Before time synchronization, the host should activate the context corresponding to
<contextID>
with
AT+QIACT
first.
Parameter
<lost>
Integer type. Total number of the ping requests that are time out.
<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
Test command
AT+QNTP=?
Response
+QNTP: (
range of supported
<contextID>
s
),<server>,(
range of
supported
<port>
s
),(
list of supported
<auto_set_time>
s
)
OK
Read command
AT+QNTP?
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: <result>,<time>
If there is any error:
ERROR
Maximum Response Time
125s, determined by the network.
Characteristics
The command takes effect immediately (actually determined by
network).
The configuration is not saved.
<contextID>
Integer type. Context ID. Range: 1
–16.
<server>
String type. Address of NTP server.
<port>
Integer type. Port number of NTP server. Range: 1
–65535. Default value: 123.
<auto_set_time>
Integer type. Whether to automatically set synchronized time as local time.
0
Not set