Quectel BG96 TCP/IP Application Note page 25

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

Advertisement

AT+QPING Ping a Remote Server
Test Command
AT+QPING=?
Write Command
AT+QPING=<contextID>,<host>[,<tim
eout>[,<pingnum>]]
Maximum Response Time
Characteristics
Parameter
<contextID>
Integer type. Context ID. Range: 1–16.
<host>
String type. Host address. The format is a domain name or a dotted decimal IP address.
<timeout>
Integer type. Maximum time to wait for the response of each ping request.
Range: 1–255. Default value: 4. Unit: second.
<pingnum>
Integer type. Maximum number of times for sending ping request. Range: 1–10. Default
value: 4.
<result>
Integer type. Result of each ping request.
0
Others
<IP_address>
String type. IP address of the remote server formatted as a dotted decimal IP.
<bytes>
Integer type. Length of each sent ping request. Unit: byte.
<time>
Integer type. Time wait for the response of the ping request. Unit: ms.
<ttl>
Integer type. Time to live value of the response packet for the ping request.
<finresult>
Integer type. Final result of the command.
0
BG96_TCP/IP_Application_Note
Response
+QPING: (range of supported <connectID>s),<host>,(range
of supported <timeout>s),(range of supported <pingnum>s)
OK
Response
If a remote server is pinged successfully:
OK
+QPING: <result>[,<IP_address>,<bytes>,<time>,<ttl>]<C
R><LF>[...]
+QPING: <finresult>[,<sent>,<rcvd>,<lost>,<min>,<max>,
<avg>]
If there is any error:
ERROR
255s, determined by <timeout>.
/
Received the ping response from the server. In this case, it is followed
by ,<IP_address>,<bytes>,<time>,<ttl>.
Error code of operation. Please refer to the error codes in Chapter 4.
It is finished normally. It is successful to activate the context and find the host.
In this case, it is followed by <sent>, <rcvd>, <lost>, <min>, <max> and
<avg>.
LPWA Module Series
BG96 TCP/IP Application Note
24 / 52

Advertisement

Table of Contents
loading

Table of Contents