Notes, Send udp data to a specific remote host extended – Synaccess Networks NP-0801DTM User Manual

Page 232

Advertising
background image

 

CUSTOM AT COMMANDS

 

HSPA+ AT Commands Reference Guide 

232

 

OK

AT#SSENDUDP=1,<RemIP1>,<RemPort1>

>response to first host

OK

SRING: 1 // UDP data from a remote host available

AT#SI=1

#SI: 1,22,23,24,0 // 24 bytes to read

OK

AT#SRECV=1,24

#SRECV:1,24

message from second host

OK

AT#SS=1

#SS: 1,2,<LocIP>,<LocPort>,<RemIP2>,<RemPort2>

OK

 

Remote host has changed, you want to send a reponse: 

AT#SSENDUDP=1,<RemIP2>,<RemPort2>

>response to second host

OK

Notes 

„

After SRING that indicates incoming UDP data and issuing #SRECV to receive data itself, through #SS is possible 
to check last remote host (IP/Port). 

„

If successive resume of the socket to online mode Is performed(#SO), connection with first remote host is 
restored. 

Send UDP Data to a Specific Remote Host Extended 

While the module is in command mode, this command allows the sending of data over UDP to a specific remote 
host including all possible octets (from 0x00 to 0xFF). 

As indicated about #SSENDUDP: 

UDP socket has to be previously opened through #SLUDP / #SA, then you can send data to different remote hosts. 

Advertising