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 184 of 261
#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
..CDMA context activation, authentication and socket open..
CONNECT
Note
This command is obsolete. It’s suggested to use the couple #SGACT and #SO
instead of it.
#QDNS - Query DNS
AT#QDNS=
[<host name>]
Execution command executes a DNS query to solve the host name into an IP
address.
Parameter:
<host name>
- host name, string type.
If the DNS query is successful then the IP address will be reported in the result
code:
#QDNS:"<host name>",<IP address>
Note: the command has to activate the CDMA context if it was not previously
activated. In this case, the context is deactivated after the DNS query.
Note:
<IP address>
is in the format:
xxx.xxx.xxx.xxx
AT#QDNS=?
Test command returns the
OK
result code.
Note
This command requires that the authentication parameters are correctly set and that
the CDMA network is present.
#CACHEDNS - DNS Response Caching
AT#CACHEDNS=
[<mode>]
Set command enables caching a mapping of domain names to IP
addresses, as does a resolver library.
Parameter:
<mode>