3 easy gprs -email receiving application – Rainbow Electronics GM862-QUAD-PY User Manual

Page 42

Advertising
background image





Easy GPRS User Guide

80000ST10028 Rev. 4 - 16/07/08

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

page 42 of 63

2.4.3 Easy GPRS -EMAIL receiving application


Let's suppose we want to receive with our embedded device an EMAIL by using a POP3 server.

Initial data:

Server to be contacted

POP.mail.server

POP service

port #110

Application Layer Protocol

POP3 (RFC1785)

Receiver


"module"<[email protected]>

Email account username

[email protected]

Email account password

telit

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

Socket parameters
Connection Identifier

1

Packet size (used by
TCP/UDP/IP stack for data
sending)

300

Socket inactivity timeout

90

Connection timeout

600

Data sending time out

50



Checking on the RFC1785, we can found that the port 110 is dedicated for POP3 service, therefore
our POP 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 110.
Second thing we have to discover is whether the transport protocol has to be TCP or UDP; on the
RFC1785 we can read that the POP3 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 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 context setting)


For all the socket settings the following AT command will be used:

AT#SCFG=1,1,300,90,600,50
OK

Advertising