![Telit Wireless Solutions DE910-DUAL Reference Manual Download Page 170](http://html1.mh-extra.com/html/telit-wireless-solutions/de910-dual/de910-dual_reference-manual_1083623170.webp)
DE910-DUAL AT commands reference guide
80392ST10102A Rev.2 – 2012-07-03
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 170 of 261
#SLUDP – UDP Socket Listen
AT#SLUDP=
<connId>,
<listenState>,
<listenPort>
[,<lingerT>]
This command opens/closes a socket listening for an incoming 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
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
Note: when closing the listening socket <listenPort> is a Don’t Care parameter.
AT#SLUDP?
Read command returns all the actual listening sockets.
AT#SLUDP=?
Test command returns the range of supported values for all the sub parameters.
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