ENHANCEDIPSTACKEXTENSIONAT
HSPA+ATCommandsReferenceGuide 262
PINGRequest#PING
Usethiscommandtosendpingechorequestmessagesandtoreceivethecorrespondingechoreply.
Testcommandreportsthesupportedrangeofvaluesforthe#PINGcommand.
Syntax
Command Commandtype
AT#PING=<IPaddr>[,<retryNum>[,<len>[,<timeout>[,<ttl>]]]] Execute
AT#PING=? Test
ParametersandValues
<IPaddr> Stringtype.Addressoftheremotehost.Thisparametercanbeeither:
AnyvalidIPaddressintheformat:“xxx.xxx.xxx.xxx”.
AnyhostnametobesolvedwithaDNSquery.
<retryNum> Thenumberofpingechorequesttosend.
Rangeis1‐64.Default:4.
<len> Thelengthofpingechorequestmessage.
Rangeis32‐1460.Default:32.
<timeout> Thetimeout,in100msunits,waitingasingleechoreply.
Rangeis1‐600.Default:50.
<ttl> Timetolive.
Ran
geis1‐255.Default:128.
Oncethesingleechoreplymessageisreceived,astringlikethefollowingisdisplayed:
#PING:<replyId>,<IpAd dress>,<replyTime>,<ttl>
where:
<replyId> Echoreplynumber.
<IPAddress> IPaddressoftheremotehost
<replyTime> Time,in100msunits,requiredtoreceivetheresponse.
<ttl> Timetoliveoftheechoreplymessage.
Notes
Whentheechorequesttimeoutexpires(noreplyreceivedontime)theresponsecontains<replyTime>setto
600and<ttl>setto255.
Toreceivethecorrespondingechoreplyisnotrequiredtoenable separatelyAT#ICMP.
BeforesendPINGrequest,theGPRScontextmusthavebeenactivatedbyAT#SGACT=1,1.
Examples
AT#PING=”www.telit.com”
#PING: 01,"81.201.117.177",6,50
#PING: 02,"81.201.117.177",5,50
#PING: 03,"81.201.117.177",6,50
#PING: 04,"81.201.117.177",5,50
OK
Komentarze do niniejszej Instrukcji