Specifications
CUSTOMATCOMMANDS
199 HSPA+ATCommandsReferenceGuide
SetTCPRunATServiceParameter#TCPATRUNCFG
SetcommandconfigurestheTCPATRUNservice.
Readcommandreturnsthecurrentsettingsofparametersintheformat:
#TCPATRUNCFG:
<connId>,<instance>,<tcpPort>,<tcpHostPort>,<tcpHost>,<urcmod>,<timeout>,<authMode>,<retryCnt>,<retr
yDelay>
Testcommandreturnsthesupportedvaluesfortheparameters
Syntax
Command Commandtype
AT#TCPATRUNCFG=<connId>,<instance>,<tcpPort>,<tcpHostPort>
,<tcpHost>[,<urcmod>[,<timeout>[,<authMode>[,<retryCnt>
[,<retryDelay>]]]]]
Set
AT#TCPATRUNCFG? Read
AT#TCPATRUNCFG=? Test
ParametersandValues
<connId> Socketconnectionidentifier.Default:1.
Range1‐6.Thisparameterismandatory.
<instance>
ATinstanceusedbytheservicetoruntheATcommand.Range2‐3.Default:
2.Thisparameterismandatory.
<tcpPort>
TCPlistenportfortheconnectiontotheserviceinservermode.Default:1024.
Range1‐65
535.Thisparameterismandatory.
<tcpHostPort>
TCPremoteportofthehosttoconnectto,inclientmode.Default:1024.Range
1‐65535.Thisparameterismandatory.
<tcpHost> Stringtype,IPaddressofthehost.
Thisparametercanbeeither:
AnyvalidIPaddressintheformat:“xxx.xxx.xxx.xxx”.
Anyhostnametobesolvedwi
thaDNSquery.
Thisparameterismandatory.Default:“”.
Note:Ifusernameorpasswordarenotallowed—seeAT#TCPATRUNAUTH—the
connectionclosesimmediately.
<retryCnt>
Inclientmode,atbootorafterasocketdisconnection,thisparameterrepresents
thenumberofattemptsthataremadeinordertore‐con
necttothehost.
Default:0.Range:0‐5.
<retryDelay> Inclientmode,delaybetweenoneattemptandtheother.Inminutes.
Default:2.Range:1‐3600.
<urcmod>
0 Disableunsolicitedmessages.
1
EnableanunsolicitedmessagewhentheTCPsocketisconnectedordisconnect.
Default:1.
Whe
nunsolicitedisenabled,anasynchronousTCPSocketconnectionisindicated
toTEwithunsolicitedresultcode:
#TCPATRUN:<iphostaddress>
Whenunsolicitedisenabled,theTCPsocketdisconnectionisindicatedtoTEwith
unsolicitedresultcode: