Specifications

CUSTOMATCOMMANDS
231 HSPA+ATCommandsReferenceGuide
>Test<CTRL-Z>
OK
SendUDP DatatoaSpecificRemoteHost#SSENDUDP
Whilethemoduleisincommandmode,thisco mmandsendsdataoverUDPtoaspecificremotehost.
UDPconnectionhastobepreviouslycompletedwithafirstremotehostthrough#SLUDP/#SA.
Then,ifdataisreceivedfromthisoranotherhost,datacanbesenttoit.
Likecomman
d#SSEND,thedevicerespondswith‘>andwaitsforthedatatosend.
Testcommandreportsthesupportedrangeofvaluesfor<connId>,<remoteIP>and<remotePort>
Syntax
Command Commandtype
AT#SSENDUDP=<connId>,<remoteIP>,<remotePort>
AT#SSENDUDP=? Test
ParametersandValues
<connID> Socketconnectionidentifier.
16
<remoteIP>
Stringtype,IPaddressoftheremotehostindotteddecimalnotation
“xxx.xxx.xxx.xxx”.
<remotePort> Remotehostport.
165535
Examples
Startslisteningon<LocPort>(previoussettingoffirewallthrough#FRWLhastobedone)
AT#SLUDP=1,1,<LocPort>
OK
SRING: 1 // UDP data from a remote host available
AT#SA=1,1
OK
SRING: 1
AT#SI=1
#SI: 1,0,0,23,0 // 23 bytes to read
OK
AT#SRECV=1,23
#SRECV:1,23
message from first host
OK
AT#SS=1
#SS: 1,2,<LocIP>,<LocPort>,<RemIP1>,<RemPort1>