![Telit Wireless Solutions GM862GPS Series Technical Manual Download Page 26](http://html1.mh-extra.com/html/telit-wireless-solutions/gm862gps-series/gm862gps-series_technical-manual_1083661026.webp)
TECHNICAL MANUAL
Telit GM862-GPS
Quad Band GPS Data Terminal Module
Pag.26 of 79
Rev. 0
- the socket inactivity timeout (see command #SKTTO)
3.10.8.3
Defining the Internet peer to be contacted
As last setting definition, the host to be contacted and on which port/protocol must be set :
- the socket definition (see command #SKTSET)
This command permits also to specify the host name instead of its IP address, if a host
name is given to the set command, then the module stores it as a host nick name. It is
care of the module user to guarantee that the host nick name provided corresponds to an
existing internet peer.
If an host nick name has been given then, while opening the connection in response to the
AT#SKTOP command, the module will autonomously activate a GPRS connection and
query its DNS to obtain the IP address relative to the host nick name provided. This
process of context activation and DNS query may require a bit more time and requires that
the GPRS network coverage is good enough to permit data transfers.
Note that this setting command is not needed if the new #SKTD command is used.
3.10.8.4
Request the GPRS context to be activated
With the new command #GPRS you can activate or deactivate a GPRS context
INDEPENDENTLY from the TCP socket opening,
AT#GPRS=1 activates the context,
AT#GPRS=0 deactivates the context
Therefore with the AT#GPRS=1 command the module
- GM862-GPS activates the context previously defined with AT+CGDCONT
- GM862-GPS proceeds to the authentication
Note that activating a context implies getting an IP address from the network and this will
be maintained throughout the session.
The response code to the AT#GPRS=1 command reports the IP address obtained from
the network, allowing the user to report it to his server or application.
Deactivating the context implies freeing the network resources previously allocated to the
device.
3.10.8.5
Open the connection with the internet host
With the new command #SKTD (socket Dial) the TCP/UDP request to connect with the
internet host starts:
- Eventually does the DNS query to resolve the IP address of the host name internet
peer
- GM862-GPS establishes a TCP/UDP (depending on the parameter request)
connection with the given internet host
- Once the connection is up the module reports the code: CONNECT
Note that the peer specifications of this socket Dial are within the command and not the
one stored with #SKTSET command.
From this moment the data incoming in the serial port is packet and sent to the Internet
host, while the data received from the host is serialised and flushed to the Terminal
Equipment.