Specifications
HE863 family AT commands reference guide
80377ST10083a Rev.4 – 2012-02-01
Reproduction forbidden without written authorization from Telit Communications S.p.A.- All Rights Reserved. Page 195 of
228
3.5.5.1.75. Socket Dial - #SKTD
#SKTD - Socket Dial
AT#SKTD=
[<socket type>,
<remote port>,
<remote addr>,
[<closure type>],
[<local port>]]
Set command opens the socket towards the peer specified in the parameters.
Parameters:
<socket type> - socket protocol type
0 - TCP (factory default)
1 - UDP
<remote port> - remote host port to be opened
0..65535 - port number (factory default is 0)
<remote addr> - address of the remote host, string type. This parameter can be
either:
- any valid IP address in the format: xxx.xxx.xxx.xxx
- any host name to be solved with a DNS query in the format: <host name>
(factory default is the empty string “”)
<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 (+++)
<local port> - local host port to be used on UDP socket
0..65535 - port number
Note: <closure type> parameter is valid only for TCP socket type, for UDP sockets
shall be left unused.
Note: <local port> parameter is valid only for UDP socket type, for TCP sockets
shall be left unused.
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 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
Note: If all parameters are omitted then the behaviour of Set command is the same
as Read command.
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