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 190 of 261
#SKTD - Socket Dial
Note: the resolution of the host name is done when opening the socket, therefore if
an invalid host name is given to the
#SKTD
command, then an error message will
be issued.
Note: the command to be successful requests that:
-
the authentication parameters are set
(
#USERID, #PASSW) the CDMA
coverage is enough to permit a connection
-
the CDMA data connection has been activated with AT#SGACT or
AT#CDMADC
AT#SKTD?
Read command reports the socket dial parameters values, in the format:
AT#SKTD: <socket type>,<remote port>,<remote addr>,
<closure type>,<local port>
AT#SKTD=?
Test command returns the allowed values for the parameters.
Example
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
CONNECT
Note
The main difference between this command and #SKTOP is that this command
does not interact with the CDMA context status, leaving it
ON
or
OFF
according to
the #CDMADC setting, therefore when the connection made with
#SKTD
is closed
the context (and hence the local IP address) is maintained.
#SKTL - Socket Listen
AT#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
<input port>
- local host input port to be listened
1..65535 - port number
<closure type>
- socket closure behaviour for TCP
0 - local host closes immediately when remote host has closed (default)
255 - local host closes after an escape sequence (
+++
)