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 190 of 273
#SLUDP – UDP Socket Listen
<listenState>
-
0 - closes socket listening
1 - starts socket listening
<listenPort>
- local listening port
1..65535
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>
Afterwards it is possible to use
#SA
to accept the connection or
#SH
to refuse it.
If the socket is closed by the network the following URC is received:
#SLUDP: ABORTED
AT#SLUDP?
Read command returns all the actual listening sockets.
AT#SLUDP=?
Test command returns the range of supported values for all the subparameters.
Example
AT#SLUDP=?
#SLUDP: (1-6),(0,1),(1-65535)
OK
Next command opens a socket listening on port 860
AT#SLUDP=1,1,860
OK
SRING: 1
AT#SA=1
OK
CONNECT
Test
#SA - Socket Accept
AT#SA=<connId>
[,<connMode>]
Execution command accepts an incoming socket connection after an URC
SRING: <connId>
Parameter:
<connId>
- socket connection identifier
1..6
<connMode>
- Connection mode, as for command
#SD
.
0 - online mode connection (default)
1 - command mode connection
Note: the
SRING
URC has to be a consequence of a
#SL
issue
Содержание LE910-SKG
Страница 1: ......