Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: MeffPosted on 2003-07-08 at 12:57:27ID: 8879973
>1) would you mind helping me in such a way to build this GPRS connection ? p-ip-gprs. html
r) which activate a task on the integreted C167 Processor.
p-ip-gprs. html om> 0.0.0",0,0 <cr> (1-GPRS context setting) com"<cr> (3-remote host setting)
<lf> . Sender ok m><cr><lf> lf> ><cr><lf>
By using of a GPRS module on http://www.gsm-modem.de/tc
*** The new feature Easy GPRS inside the GPRS module relieves you from writing the TCP/IP code and making your Internet access as simple as dialling a phone number. ***
> My formal collegue realize this task with GSM and it works, so i have to realize now a GPRS connection and sending an SMS or e.mail with the format (password;command;paramete
Example EMAIL sending application with Easy GPRS on http://www.gsm-modem.de/tc
Let' suppose we want to send with our embedded device an EMAIL by using a SMTP server.
Initial data:
Server to be contacted: smtp.xxxx.com
Application Layer Protocol: SMTP (RFC821)
Sender: "XXXXX"<me@me.com>
Receiver: "Receiver"<receiver@text.c
Subject: Email Test
Message body: this message is sent for test Easy GPRS feature. Hello World!
GPRS settings:
APN: internet.gprs
IP of GPRS device: dynamically assigned by the network
DNS: assigned by the network
USERID: Micky Mouse
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 incoming connections on that port and we
will fix the EASY GPRS port to be contacted on the remote server exactly to 25.
Second thing we have to discover is whether the transport protocol has to be TCP or UDP; on the
RFC821 we can read that the SMTP 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 GM862-GPRS the following AT commands:
AT+CGDCONT = 1,"IP","internet.gprs","0.
AT#USERID = "Meff"<cr> (2-Authentication setting)
AT#PASSWD = "EASY GPRS"<cr> (2-Authentication setting)
AT#SKTSET= 0,25,"smtp.roundsolutions.
For our convenience we store all these parameters with the command:
AT#SKTSAV=1<cr>
Now we can activate the GPRS connection and let the GM862-GPRS module contact the server:
AT#SKTOP<cr>
When we receive the CONNECT indication, then we are exchanging data with the SMTP server
program on the remote host machine.
Now following the SMTP protocol we proceed with the HELO presentation and mail delivery
directly over the serial line (in blu the data sent by us, in violet the one received from host):
220 smtp.xxxx.com ESMTP ; Thu, 5 Jun 2003 14:45:11 +0200
HELO XXXXX.com<cr><lf>
250 smtp.xxxx.com Hello [111.111.111.127], pleased to meet you
MAIL FROM: "XXXXXX"<XXXX@XXXXcom><cr>
250 2.1.0 "XXXXXXXX"<XXX@XXXX.com>..
RCPT TO: "Receiver"<receiver@XXXXco
250 2.1.5 "XXXX@XXXX.net"... Recipient ok
DATA<cr><lf>
354 Enter mail, end with "." on a line by itself
From: "XXXXX"<XXXX@XXXXcom><cr><
To: "Receiver"<XXXXX@XXXXX.com
Subject: Email Test<cr><lf>
this message is sent for testing Easy GPRS feature. Hello World!<cr><lf>
.<cr><lf>
250 2.0.0 h55CjBVI020859 Message accepted for delivery
That´s all
Meff