3 easy gprs -email receiving application – Telit Wireless Solutions Easy GPRS User Manual
Page 33

Easy GPRS User Guide
80000ST10028 Rev. 1 - 14/03/07
Reproduction forbidden without Telit Communications S.p.A. written authorization - All Rights Reserved
page 33 of 37
Now we can issue AT command that activates a GPRS context
3
, if not previously activated
by AT#EMAILACT=1, and sends an e-mail message.
AT#SEMAIL="[email protected]","Email test",0
this message is sent in order to test the Easy GPRS feature. Hello World!
CTRL-Z
2.3.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 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
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
(1-GPRS context setting)
AT#USERID = "EASY GPRS"
(2-Authentication setting)
AT#PASSWD = "EASY GPRS"
(2-Authentication
setting)
AT#PKTSZ=300
(3-Socket setting)
3
NOTE: In case you choose this method to send an email you can note that GPRS context will be activated with
AT command different from the first method so please make sure that AT#GPRS=0