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 
Integer type. Total number of the ping requests that are time out. 
Integer type. Minimum response time. Unit: ms. 
Integer type. Maximum response time. Unit: ms. 
Integer type. Average response time. Unit: ms. 
AT+QNTP    Synchronize Local Time with NTP Server 
Response 
+QNTP: (range of supported <contextID>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: <result>,<time> 
 
If there is any error: 
ERROR 
125s, determined by the network. 
The command takes effect immediately  (actually determined by 
network). 
The configuration is not saved. 
Integer type. Context ID. Range: 1–16. 
String type. Address of NTP server. 
Integer type. Port number of NTP server. Range: 1–65535. Default value: 123. 
Integer type. Whether to automatically set synchronized time as local time. 
0  Not set