CUSTOMATCOMMANDS
HSPA+ATCommandsReferenceGuide 228
<listenPort> Locallisteningport.
1‐65535
Notes
Ifsuccessful,thecomman d returnsafinalresultcod eOK.
IftheListenAutoRspflagisnotsetthroughthecommandAT#SCFGEXT(forthespecificconnId),then,whenan
UDPconnectionrequestcomesontheinputport,ifthesenderisnotfilteredbyinternalfirewall(see#FRWL),
aURCisreceived:
+SRI
NG:<connId>
Afterwards,use#SAtoaccepttheconnection or#SHtorefuseit.
IftheListenAutoRspflagisset,then,whenanUDPconnectionrequestcomesontheinputport,ifthesender
isnotfilteredbytheinternalfirewall(seecommand#FRWL),theconnectionisautomaticallyaccepted:the
CONNECTindic
ationisgivenandthemodemgoesintoonlinedatamode.
IfthenetworkclosesthesocketthefollowingURCisreceived:
#SLUDP:ABORTED
Whenclosingthelisteningsocketyoudonotneedtospecifythe<listenPort>value.
Examples
NextcommandopensasocketlisteningforUDPonport3500.
AT#SLUDP=1,1,3500
OK
SocketAccept#SA
ExecutecommandacceptsanincomingsocketconnectionafteranURCSRING:<connId>.
Testcommandreportstherangeofvaluesforalltheparameters.
Syntax
Command CommandType
AT#SA=<connId>[,<connMode>] Execute
AT#SA=? Test
ParametersandValues
<connID> Socketconnectionidentifier.
1‐6
<connMode> Connectionmode,asforcommand#SD.
0 Onlinemodeconnection.Default:0.
1 Commandmodeconnection.
Commentaires sur ces manuels