Telit Wireless Solutions Easy GPRS User Manual

Page 28

Advertising
background image





Easy GPRS User Guide

80000ST10028 Rev. 1 - 14/03/07

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

page 28 of 37

AT#SKTTO=90

(3-Socket setting: sets the

maximum time with no data exchanging on the socket that the module awaits before closing the
socket and deactivating the GPRS context)

AT#SKTCT=600

(3-Socket setting)


For our convenience we will store all these parameters with the command:

AT#SKTSAV<cr>


Next step is activation of the GPRS context:

AT#GPRS=1<cr>
+IP: 193.199.234.255
OK

This command replies with the IP address assigned by the network.

Now we can proceed with contacting the server with AT command for socket dial:

AT#SKTD=0,80,”www.telit.com”,0,0

When we receive the CONNECT indication, then we are exchanging data with the HTTP server
program on the remote host machine.

Now following the HTTP protocol we ask for the homepage by sending the following lines on the serial
line:

GET / HTTP/1.1<cr><lf>
Host: www.telit.com<cr><lf>
Connection: keep-alive<cr><lf>
<cr><lf>

TIP: Remember that the strings, which are sent to the HTTP server, have to be ended by line
feed character. To see the issued commands enable the local echo.

As a response to our query the HTTP server will reply with the HTML code of the homepage and

some debugging responses that we will see directly on the serial line:

HTTP/1.1 200 OK
Date: Thu, 06 2003 10:21:58 GMT
Server: Apache/1.3.27 (Unix)
Last-Modified: Thu, 06 2003 10:21:58 GMT
Content-Type: text/html
Connection: close

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN">
<HTML>
… here is all the HTML code of the page..
</HTML>

<pause>+++<pause>

Advertising