GPRS/GSM I'm in love!

My application is working so well and is so stable i’m ready to wet the rug! I am starting, stopping and checking the status of a large-ish generator from which i am often hundreds of miles away. This app has saved many, many miles of driving.

There is no reason you could not control anything at home or work remotely with no internet connection.

Great app Rabbit!

Ted

Can anybody give me an idea of how to transmit data from RCM3000 to a web server through email or any means(What are the AT Commands required). I came to know that if you send a mail to any inbox of yahoo or gmail, you can write some program on your desktop to retrieve the information from the inbox using POP3 or SMTP.

Can anyone through more light on the above requirement.

First off, Ted, if you’re listening, great to hear of your success!
Although we assume no responsibility for loss of bladder control. :slight_smile:

On to the question from Prane…

Are you using the ethernet jack to connect to a network? Or are you using some external device? For Rabbit supplied hardware, including external devices in some of the application kits, you should not have to go down to AT commands. There are typically supplied libraries that handle this level for you. So exactly what hardware (list all pieces) are you using and how do you expect to be connecting to the internet?

I am having a GPS-GSM kit . RCM2020 supports Dynamic C.
GSM module is Wavecom Q2403 type. Antenna is Passive and integrated.It has a SIM holder. operating mode SMS only.
The GSM module can be used to send and receive SMS and also to study and learn the AT commands.

Using the above kit , i want to transmit data to a remote server.
As far as i know. The kit that we have supports gprs.
So is it that, i need to connect to internet using only AT commands…

I am thinking of transferring data to remote server using e-mail(smtp).Then at the server side will program an application that reads from smtp server.

I already used the kit to send ,receive ,delete SMS

[QUOTE=bsprouse;2971]First off, Ted, if you’re listening, great to hear of your success!
Although we assume no responsibility for loss of bladder control. :slight_smile:

On to the question from Prane…

Are you using the ethernet jack to connect to a network? Or are you using some external device? For Rabbit supplied hardware, including external devices in some of the application kits, you should not have to go down to AT commands. There are typically supplied libraries that handle this level for you. So exactly what hardware (list all pieces) are you using and how do you expect to be connecting to the internet?[/quote]

Very funny! Thanks.

I check daily but i am not qualified to help Prane with his issue as it is not the way i approached my solutions, i.e i did not want any form of communication except SMS. I have used a lot of Rabbits but always GPS apps or bit banging for industrial control. Glad you jumped in.

Ted

Prane,

Attached is a sample that uses GPRS to send an email via SMTP. Keep in mind its setup for the RCM3000 so if you are using something else you will have to change the #use rcm3000.lib. Also its setup for serial port B for data and PC2 and PC3 for hardware flow-control, so depending on what board you use you may have to change a few macros at the top of the code.

Also you need to take a look at the CGDCONT macro as it needs to be setup for a particular service provider as well as the other email and mail server macros.

Also, I compiled it but did not test it…

Good luck

I want to do a task only on receiving a particular message.

If suppose, i am doing some process with rabbit processor like sending data using UART to a PC and at this very moment an user happened to send a message using his cell phone and which was received by GSM modem attached to the rabbit kit…

Now after completing the UART ,i want to read the message that has been sent by the user and was received by my modem when i was doing UART process with PC.

How would i solve this situation

Either run both functions in seperate costates ,and use the USART costate functions, or query the cel phone if it has any sms messages in its buffer, when you are done with the PC communications.

I was trying to use AT commands to solve the problem.
But didn’t turn up fine…
Then i changed the rabbit kit and tried … It worked …its surprising me .

According to my conclusion… the first kit was able to receive or read a message only if i am trying to read the GSM port
The second one stored the received SMS in the SIM memory and so it worked…

To read an unread SMS ,i used AT command …thats it…
Thanks for your help…

From memory, most GSM modules you can set up to either broadcast the received sms immediately on its USART, or store it in memory, for later retrieval by the processor.

Furthermore some GSM modules you can select where the SMS must be stored, on the devices own memory, or the sim card. To retrieve the sms from another location, onboard memory differs from device to device, but usually involves a small change in the AT command.

Most probably it isn’t the change in Rabbit kit that worked, but a change in GSM modules.