7 socket open - #sktop – Rainbow Electronics GM862-QUAD-PY User Manual

Page 340

Advertising
background image




AT Commands Reference Guide

80000ST10025a Rev. 5 - 09/07/08

Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved

page 340 of 434

#SKTSET - Socket Definition

SELINT 2


Note: this command is not allowed for sockets associated to a GSM context
(see #SCFG).

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

Note Issuing

command

#QDNS will overwrite <remote addr> setting.

3.5.7.5.7 Socket Open - #SKTOP

#SKTOP - Socket Open

SELINT 0 / 1

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?

Read command behaviour is the same as Execution command.

Example

AT#SKTOP
..GPRS context activation, authentication and socket

open..
CONNECT


#SKTOP - Socket Open

SELINT 2

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.

Note: this command is not allowed for sockets associated to a GSM context
(see #SCFG).

AT#SKTOP=?

Test command returns the OK result code.

Example

AT#SKTOP

Advertising