background image

 
 
 
 

 

 

Easy GPRS User Guide 

80000ST10028 Rev. 0 - 02/01/07  

  

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

 

page 26 of 35 

 

To get more information for other available commands on the FTP functionality please refer to the AT 
Commands Reference Guide. 
 

2.3 Examples

1

  

2.3.1 Easy GPRS - 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 GPRS feature. 
 

     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 

APN

 

internet.gprs 

IP of GPRS device

 

dynamically assigned by the network 

DNS

 

assigned by the network 

USERID

 

EASY GPRS 

PASSWORD

 

EASY GPRS 

 
 
 
Checking on the RFC990 the HTTP service we can found that the port 80 is dedicated for HTTP 
service, therefore our HTTP server will be waiting for incoming connections on that port and we will fix 
the EASY GPRS port to be contacted on the remote server exactly to 80. 
Second thing we have to discover is whether the transport protocol has to be TCP or UDP; on the 
RFC1945 we can read that the HTTP Application layer protocol is meant to be on top of TCP/IP 
protocol, therefore the transport protocol choice will fall on TCP. 
Now we have all the information needed to configure our system. 
 
With our microcontroller we issue to the Telit module the following AT commands: 

AT+CGDCONT = 1,"IP","internet.gprs","0.0.0.0",0,0<cr>    

   

(1-GPRS context setting) 

AT#USERID = "EASY GPRS"<cr> 

    (2-Authentication 

setting) 

AT#PASSW = "EASY GPRS"<cr>

 

    (2-Authentication 

setting) 

AT#PKTSZ=300 

      

(3-Socket setting: sets the 

default packet size to be used by the TCP/UDP/IP stack for data sending.) 

AT#DSTO=50 

      

(3-Socket setting)

 

                                                 

1

 

NOTE:

 For the detailed information about AT commands reported in examples please consult AT Commands 

Reference Guide 

Содержание GE864-PY

Страница 1: ...Easy GPRS User Guide 80000ST10028 Rev 0 02 01 07...

Страница 2: ...863 GPS 3 990 250 660 GT863 PY 3 990 250 466 GM862 QUAD 3 990 250 655 GM862 QUAD PY 3 990 250 656 GM862 QUAD 3 990 250 659 GM862 QUAD PY 3 990 250 658 GE864 QUAD 3 990 250 675 GE864 PY 3 990 250 676 G...

Страница 3: ...the Internet peer to be contacted 17 2 1 1 4 Request the GPRS context to be activated 18 2 1 1 5 Open the connection with the internet host 18 2 1 1 6 Close the Socket without deactivating the context...

Страница 4: ...s In CSD operations the modem establishes a connection with the other party another modem in such a way that all the Network devices in between are transparent to the data exchanged simulating a real...

Страница 5: ...ad an internet tunneling must be done to achieve a point to point connection between two peers This approach as the immediate advantage of projecting the controlling application of the GPRS modem dire...

Страница 6: ...ress the internet address is assigned by the ISP dynamically then when the GPRS context of the device is not activated it has no address and therefore it cannot be reached by internet requests The sam...

Страница 7: ...e unit is always connected to the internet taking advance of the features of the GPRS system when it needs to send data to the server application it simply fills the TCP IP packets for the server with...

Страница 8: ...tocol type a string parameter which specifies the type of packet data protocol IP Internet Protocol PPP Point to Point Protocol APN Access Point Name a string parameter that represents logical name us...

Страница 9: ...NT 1 IP ibox tim it 0 0 0 0 0 0 cr response OK 1 2 2 Minimum Quality of the Service Requested The minimum quality of service requested parameters represent the boundary under which the connection qual...

Страница 10: ...lass 3 unacknowledged GTP and LLC acknowledged RLC protected data 4 reliability class 4 unacknowledged GTP LLC and RLC protected data 5 reliability class 5 unacknowledged GTP LLC and RLC unprotected d...

Страница 11: ...l try reducing your minimum quality requirements For example 1 Let s assume you want to set up the GPRS context number 1 cid written before with your GPRS min QoS parameters Precedence class Normal pr...

Страница 12: ...e the same values as in the previous section wait for response Response Reason Action OK context parameters have been successfully stored proceed ahead ERROR some error occurred check parameters and r...

Страница 13: ...Action CONNECT GPRS connection is being processed proceed ahead with the authentication Packed data protocol ERROR some error occurred check context parameters and retry See par 1 2 1 1 2 2 1 2 3 che...

Страница 14: ...P IP PPP protocol stack is up and data packets can be exchanged NOTE Explanation of TCP IP and PPP protocol stack is beyond the scope of this document Further information on the LCP protocol and PPP p...

Страница 15: ...IER response or in alternative send escape sequence wait for 2s default silence time wait for response Response Reason Action OK Telit module is in command mode now proceed ahead ERROR some error occu...

Страница 16: ......

Страница 17: ...CM some AT commands are provided to configure the Data Module Internet stack and to start up the data traffic In data traffic mode Socket Mode SKTM the client can send receive a raw data stream which...

Страница 18: ...to the device 2 1 1 5 Open the connection with the internet host With the AT command SKTD socket Dial the TCP UDP request to connect with the internet host starts DNS query is done to resolve the IP...

Страница 19: ...hat can contact this device firewall settings see par 2 1 2 1 request the GPRS context to be activated see par 2 1 1 4 request the socket connection to be opened in listen see par 2 1 2 2 receive conn...

Страница 20: ...ernet hosts The parameters that shall be specified are the local port where packets shall be received the type of socket and the closing behaviour 2 1 2 3 Receiving connection requests Once the connec...

Страница 21: ...his permits sending and receiving Emails on your embedded device To get more information on system settings and AT commands available for email client please consult the examples in the section 2 2 an...

Страница 22: ...hundreds of ms factory default is 100 NOTE The parameter is not saved in NVM NOTE if parameter tout is omitted the behaviour of Set command is the same as Read command Example AT FTPTO 1000 cr set th...

Страница 23: ...ver With the command AT FTPPUT filename to issued during an FTP connection is possible to open a data connection and starts sending filename file to the FTP server If the data connection succeeds a CO...

Страница 24: ...t AT FTPPUT file txt cr CONNECT send the file escape sequence to close the data connection NOCARRIER AT FTPCLOSE cr closing FTP connection OK Deactivation of GPRS context if required AT GPRS 0 cr OK 2...

Страница 25: ...this case port of FTP server is not specified which means that it has the default value 21 AT FTPTYPE 0 cr FTP settings of file type OK AT FTPCWD incoming change working directory if requiered OK In o...

Страница 26: ...the port 80 is dedicated for HTTP service therefore our HTTP server will be waiting for incoming connections on that port and we will fix the EASY GPRS port to be contacted on the remote server exactl...

Страница 27: ...lit 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 sendin...

Страница 28: ...ed by the network USERID EASY GPRS PASSWORD EASY GPRS Checking on the RFC990 the SMTP service we can found that the port 25 is dedicated for SMTP service therefore our SMTP server will be waiting for...

Страница 29: ...dication then we are exchanging data with the SMTP server program on the remote host machine Following the SMTP protocol we proceed with the HELLO presentation and mail delivery directly over the seri...

Страница 30: ...1000 1 0 1111 0 cr lf Importance Normal cr lf X MimeOLE Produced By GM862 TEST SW cr lf cr lf Content Type text plain cr lf charset iso 8859 1 cr lf Content Transfer Encoding 7bit cr lf cr lf This me...

Страница 31: ...have all the information needed to configure our system With our microcontroller we can now issue to the Telit module the following AT commands AT CGDCONT 1 IP internet gprs 0 0 0 0 0 0 cr 1 GPRS cont...

Страница 32: ...e connection between two modules Configuration for the module that receives data server Define PDP Context AT CGDCONT 1 IP ibox tim it 0 0 0 0 GPRS Context Activation AT GPRS 1 Firewall Setup if requi...

Страница 33: ...S 1 Socket Dial AT SKTD 0 1024 217 201 142 223 First you have to define PDP context filling in the information of APN in this example ibox tim it Next step is activation of GPRS context which gives as...

Страница 34: ...munication GTP GPRS Tunneling Protocol HTML Hyper Text Markup Language HTTP Hypertext Transfer Protocol HSCSD High Speed Circuit Switched Data IP Internet Protocol ISDN Integrated Services Digital Net...

Страница 35: ...80000ST10028 Rev 0 02 01 07 Reproduction forbidden without Telit Communications S p A written authorization All Rights Reserved page 35 of 35 4 Document Change Log Revision Date Changes ISSUE 0 02 01...

Отзывы: