GSM/GPRS Module
M35 AT Commands Manual
M35_AT_Commands_Manual Confidential / Released 152 /
186
11.34. AT+QNTP Synchronize the Local Time Via NTP
Parameter
The factory Time Server is the National Time Service Centre of China whose address is "
210.72.145.44
"
and port is
123
.
AT+QNTP Synchronize the Local Time Via NTP
Test Command
AT+QNTP=?
Response
+QNTP: “SERVER”,
(list of supported
<port>
s)
OK
Read Command
AT+QNTP?
Response
+QNTP: "<server>",<port>
OK
Execution Command
AT+QNTP
Response
OK
+QNTP: <result>
Write Command
AT+QNTP="<server>"[,<port>]
Response
OK
+QNTP: <result>
ERROR
Reference
<server>
The address of the Time Server in string style. It could be a domain name or a dotted
decimal IP address
<port>
The port of the Time Server
<result>
The result of time synchronization
0
Successfully synchronize the local time
1
Failed to synchronize the local time because of unknown reason
2
Failed to receive the response from the Time Server
3
The TCP/IP stack is busy now
4
Do Not find the Time Server
5
Failed to activate PDP context
NOTE