At+Qntp Synchronize Local Time With Ntp Server - Quectel BG96 TCP/IP Application Note

Lpwa module
Hide thumbs Also See for BG96 TCP/IP:
Table of Contents

Advertisement

Others
<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.

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.
AT+QNTP Synchronize Local Time with NTP Server
Test Command
AT+QNTP=?
Read Command
AT+QNTP?
Write Command
AT+QNTP=<contextID>,<server>
[,<port>[,<auto_set_time>]]
Maximum Response Time
Characteristics
Parameter
<contextID>
Integer type. Context ID. Range: 1–16.
<server>
String type. Address of NTP server.
BG96_TCP/IP_Application_Note
Error code of operation. Please refer to the error codes in Chapter 4.
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
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.
LPWA Module Series
BG96 TCP/IP Application Note
25 / 52

Advertisement

Table of Contents
loading

Table of Contents