LE910-SKG AT commands reference guide
80437ST10619A Rev.1 – 2014-09-16
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 189 of 273
#SL - Socket Listen
<listenState>
-
0 - closes socket listening
1 - starts socket listening
<listenPort>
- local listening port
1..65535
<closure type>
- socket closure behavior for TCP when remote host has closed
0 – local host closes immediately(factory default)
255 – local host closes after an escape sequence (
+++
) or immediately in case of
an abortive disconnect from remote
Note : If the socket connection is opened in CMD mode, <closureType> 255 does
not take effect.
Note: if successful, commands returns a final result code
OK
. Then, when there’s
an incoming connection on the local port and if the sender is not filtered by
internal firewall (see
), an URC is received:
SRING : <connId>
Note: the command
#SCFGEXT
doesn’t influence the presentation format
of the URC
SRING
Afterwards we can use
If the socket is closed by the network the following URC is received:
#SL: ABORTED
AT#SL?
Read command returns all the actual listening sockets.
AT#SL=?
Test command returns the range of supported values for all the subparameters.
Example
AT#SL=?
#SL: (1-6),(0,1),(1-65535),(0,255)
OK
Next command opens a socket listening for TCP on port 3500.
AT#SL=1,1,3500
OK
#SLUDP – UDP Socket Listen
AT#SLUDP=
<connId>,
<listenState>,
<listenPort>
This command opens/closes a socket listening for an incoming connection on a
specified port.
Parameters:
<connId>
- socket connection identifier
1..6
Summary of Contents for LE910-SKG
Page 1: ......