Specifications

UC864-E/G AT Commands Reference Guide
80304ST10041a Rev. 3 - 18/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 211 of 259
#SKTSET - Socket Definition
(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 #SKTSET command, then
an error message will be issued.
Note: the DNS Query 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.
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,"123.255.020.001"
OK
AT#SKTSET=0,1024,"www.telit.net"
OK
3.5.7.4.7 Socket Open - #SKTOP
#SKTOP - Socket Open
AT#SKTOP Execution command activates the context number 1, proceeds with the
authentication with the user ID and password previously set by #USERID
and #PASSW commands, and opens a socket connection with the host
specified in the #SKTSET command. Eventually, before opening the socket
connection, it issues automatically a DNS query to solve the IP address of
the host name.
If the connection succeeds a CONNECT indication is sent, otherwise a NO
CARRIER indication is sent.
AT#SKTOP=? Test command returns the OK result code.
Example
AT#SKTOP
..GPRS context activation, authentication and socket
open..