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
<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 Received the ping response from the server. In this case, it is followed
by ,<IP_address>,<bytes>,<time>,<ttl>.
Others Error code of operation. Please refer to the error codes in Chapter 4.
<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 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>.