Examples, Notes, Socket listen udp #sludp – Synaccess Networks NP-0801DTM User Manual

Page 227: Syntax, Parameters and values

Advertising
background image

CUSTOM AT COMMANDS 

 

 

227 

HSPA+ AT Commands Reference Guide

 

Examples 

Next command opens a socket listening for TCP on port 3500 without. 

AT#SL=1,1,3500

OK

Notes 

„

If successful, the command returns a final result code OK.  

„

If the ListenAutoRsp flag has not been set through the command AT#SCFGEXT (for the specific connId), then, 
when a TCP connection request comes on the input port, if the sender is not filtered by internal firewall (see 
#FRWL), an URC is received: 

+SRING : <connId> 

You must use #SA command to accept the connection or #SH command to refuse it. 

„

If the ListenAutoRSP flag is set when a TCP connection request is received on the local listening port, the 
connection is automatically accepted as long as the IP address of the device originating the connection has been 
defined in the internal firwewall (see #FRWL.) Once accepted the CONNECT indication is given and the modem 
goes into online data mode. 

„

When closing the listening socket you do not need to specify the <listenPort> value. 

Socket Listen UDP   #SLUDP 

This command opens or closes a socket listening for an incoming UDP connection on a specified port. 

Read command returns all the actual listening UDP sockets. 

Test command returns the range of supported values for all the subparameters. 

Syntax 

Command 

Command type 

AT#SLUDP=<connId>,<listenState>,<listenPort> 

 

AT#SLUDP? 

Read 

AT#SLUDP=? 

Test 

Parameters and Values 

<connId> 

Socket connection identifier. 

1‐6 

 

<listenState> 

 

Closes socket listening. 

Starts socket listening. 

Advertising