Notes, Examples, Socket accept #sa – Synaccess Networks NP-0801DTM User Manual

Page 228: Syntax, Parameters and values

Advertising
background image

 

CUSTOM AT COMMANDS

 

HSPA+ AT Commands Reference Guide 

228

 

 

<listenPort> 

Local listening port. 

1‐65535 

 

Notes 

„

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

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

+SRING : <connId> 

Afterwards, use #SA to accept the connection or #SH to refuse it. 

If the ListenAutoRsp flag is set, then, when an UDP connection request comes on the input port, if the sender 
is not filtered by the internal firewall (see command #FRWL), the connection is automatically accepted: the 
CONNECT indication is given and the modem goes into online data mode. 

If the network closes the socket the following URC is received: 

#SLUDP: ABORTED 

„

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

Examples 

Next command opens a socket listening for UDP on port 3500. 

AT#SLUDP=1,1,3500

OK

Socket Accept   #SA 

Execute command accepts an incoming socket connection after an URC SRING: <connId>. 

Test command reports the range of values for all the parameters. 

Syntax 

Command 

Command Type 

AT#SA=<connId>[,<connMode>] 

Execute 

AT#SA=? 

Test 

Parameters and Values 

<connID> 

Socket connection identifier. 

1‐6 

 

<connMode> 

Connection mode, as for command #SD. 

Online mode connection. Default: 0

Command mode connection. 

Advertising