Telit LE910 V2 Series AT Commands
80446ST10707A Rev. 0– 2015-11-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 340 of 509
Mod. 0808 2011-07 Rev.2
Socket Listen - #SL
<listenState>,
<listenPort>
>[,<closure type>]
This command opens/closes a socket listening for an incoming TCP connection on
a specified port.
Parameters:
<connId> - socket connection identifier
1..6
<listenState> -
0 - closes socket listening
1 - starts socket listening
<listenPort> - local listening port
1..65535
<closure type> - socket closure behaviour for TCP when remote host has closed
0 - local host closes immediately (default)
255 - local host closes after an AT#SH or immediately in case of an abortive
disconnect from remote.
Note: 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>
Afterwards we can use #SA to accept the connection or #SH to refuse it.
If the ListenAutoRsp flag has been set, then, when a TCP 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 socket is closed by the network the following URC is received:
#SL: ABORTED
Note: when closing the listening socket <listenPort> is a don’t care
Parameter
Note:
255
takes effect on a command mode connection
(connection accepted through AT#SA=<connId>,1
or online mode connection
suspended with +++) only if
<closureTypeCmdModeEnabling>
parameter has been previously enabled.
Read command returns all the actual listening TCP sockets.
Test command returns the range of supported values for all the subparameters.