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 183 of 261
#SKTSET - Socket Definition
AT#SKTSET=
[<socket type>,
<remote port>,
<remote addr>,
[<closure type>],
[<local port>]]
Set command sets the socket parameters values.
Parameters:
<socket type>
- socket protocol type
0 - TCP (factory default)
1 - UDP
<remote port>
- remote host port to be opened
1..65535 - port number (factory default is 3333)
<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
1..65535 - port number (factory default is 0)
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
#SKTSET
command, then an error message
will be issued.
Note: the DNS Query to be successful requests that:
-
the authentication parameters are set
the CDMA coverage is enough to permit a connection.
AT#SKTSET?
Read command reports the socket parameters values, in the format:
AT#SKTSET: <socket type>,<remote port>,<remote addr>,
<closure type>,<local port>
AT#SKTSET=?
Test command returns the allowed values for the parameters.
Example
AT#SKTSET=0,1024,"www.telit.net"
OK
Note
Issuing command #QDNS will overwrite <remote addr> setting.
#SKTOP - Socket Open