Owner's manual

Easy GPRS User Guide
80000ST10028 Rev. 4 - 16/07/08
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved page 49 of 63
3.3 Examples
3.3.1 Easy GSM - HTTP client application
Let’s suppose we want to connect our embedded device to an HTTP server and retrieve an HTML
page using the EASY GSM feature. This example is analogue to the one given for GPRS carrier.
Suppose to use a sim TIM.
Initial data:
Server to be contacted www.telit.com
Application Layer Protocol HTTP1.0 (RFC1945);
HTTP1.1 (RFC2068)
Page to be retrieved homepage of server
GPRS settings
Provider number “3359009000“
IP of the device dynamically assigned by
the network
DNS assigned by the network
USERID
Userid of the TIM account
PASSWORD
Password of the TIM
account
Socket parameters
Connection Identifier 0
Packet size (used by
TCP/UDP/IP stack for data
sending)
300
Socket inactivity timeout 90
Connection timeout 600
Data sending time out 50
Our HTTP server will be waiting for incoming connections on port 80 and we will fix the port to be
contacted on the remote server exactly to 80.
As transport protocol we choose TCP.
With our microcontroller we issue to the Telit module the following AT commands:
AT#GSMCONT = 0,"IP","3359009000"<cr> (GSM context setting)
For the all socket settings, the following AT command will be used:
AT#SCFG=1,0,300,90,600,50
OK