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 398 of 509
Mod. 0808 2011-07 Rev.2
AT#SKTD: <socket type>,<remote port>,<remote addr>,
<closure type>,<local port>
Test command returns the allowed values for the parameters.
AT#SKTD=0,1024,"123.255.020.001",255
CONNECT
AT#SKTD=1,1024,"123.255.020.001", ,1025
CONNECT
In this way my local port 1025 is opened to the remote port 1024
AT#SKTD=0,1024,"www.telit.net", 255
Socket Listen - #SKTL
=[<mode>,
<socket type>,
<input port>,
[<closure type>]]
Execution command opens/closes the socket listening for connection requests.
Parameters:
<mode> - socket mode
0 - closes socket listening
1 - starts socket listening
<socket type> - socket protocol type
0 -TCP (default)
1- UDP
<input port> - local host input port to be listened
1..65535 - port number
<closure type> - socket closure behaviour for TCP when remote host has closed
0 - local host closes immediately when remote host has closed (default)
255 - local host closes after an escape sequence (+++) or immediately in case of an
abortive disconnect from remote.
Command returns the OK result code if successful.
Note: the command to be successful requests that:
- the GPRS context 1 is correctly set with +CGDCONT
- the authentication parameters are set (#USERID, #PASSW)
- the GPRS coverage is enough to permit a connection
- the GPRS has been activated with AT#GPRS=1
When a connection request comes on the input port, if the sender is not filtered by
the internal firewall (see command #FRWL), an unsolicited code is reported:
+CONN FROM: <remote addr>