Im doing a little porject with the Arduino. Its a GPS/GPRS system that when a SMS its receive, it will retreive the GPS info and send it back to a predifine number via SMS.
Parts used:
GPS Shield
Libelium.com GPRS shield
IM STILL developing this...so the code its not finished...I need to figure how to verify when a SMS is receive.....Any help would be great,...
#include <AFSoftSerial.h>
/* *GPS-GPRS Module para Arduino. *Basado en el modulo GPS de ladyada.net y el modulo GPRS de Libelium.com *Cuando se recibe un mensaje de texto(SMS), tomo las coordernadas del GPS y las envio via SMS. *Hecho por Alexander Veloz, 2008, [email protected] */
//GPS Conf
#define GPSrxPin 3 // GPS rx Pin
#define GPStxPin 4 // GPS tx Pin
#define GPSpowerpin 5 // GPS Power Pin
#define GPSRATE 4800 // GPS Baud Rate //GPRS Conf
#define GPRSpowerpin 2 // GPRS Power Pin
#define GPRSRATE 115200 // GPRS Baud Rate //Opciones GPS
#define RMC_ON "$PSRF103,4,0,1,1*21\r\n"// RMC on (1 hz rate)
#define RMC_OFF "$PSRF103,4,0,0,1*20\r\n"// RMC off
#define GGA_ON "$PSRF103,0,0,1,1*25\r\n"// GGA on (1 hz rate)
#define GGA_OFF "$PSRF103,0,0,0,1*24\r\n"// GGA off
#define GSA_ON "$PSRF103,2,0,1,1*27\r\n"// GSA on (1 hz rate)
#define GSA_OFF "$PSRF103,2,0,0,1*26\r\n"// GSA off
#define GSV_ON "$PSRF103,3,0,1,1*26\r\n"// GSV on (1 hz rate)
#define GSV_OFF "$PSRF103,3,0,0,1*27\r\n"// GSV off
#define WAAS_ON "$PSRF151,1*3F\r\n"// WAAS on
#define WAAS_OFF "$PSRF151,0*3E\r\n"// WAAS off
b) Read a text SMS
Like PDU mode, when the M20 Terminal receives a SMS message, the following message will appear on the PC screen.
+CMTI: “SM”, 1
where 1 is the memory location in which the message can be read from.
To read the SMS message use the AT+CGMR command as follow.
AT+CMGR=1[ENTER]
The M20 Terminal should return the text message as follow.
+CMGR: “REC READ”,“+61407809050”,“98/12/01,20:16:11+44”
hello
OK
c) Delete a SMS message
The SMS message can be deleted from memory (eg. location 1) using the AT+CMGD command as follow. Note that there is no AT command to delete all the SMS messages at once.
AT+CMGD=1[ENTER]
The M20 Terminal should return OK.
now I need to see how those command I can make the arduino to read the message...and answer back with the GPS information...
I just want to share this project...this is not about getting help from Libelium...the AT commands are somehting you can found all over the internet...is not something specifig to this shield...
I have worked in a company specialized in the gps tracking field. I am interested to share with you about this project. If you are also interested we can discuss by email.
Did you manage to get it working, Im starting a project to do the same. I'll be using a gsm/gprs modem instead of a normal phone.
Im building a gps tracker that I can activate by text message. I want to put this tracker in a secure case (maybe encapsulate it) and attach it underneath my bike seat. I also want to include a fuel cut off valve that is electronically actuated so I can stop the bike in its tracks if it was ever to be stolen.
If you have got it working, please can you pm me? Thanks.
And nenuma idéai how to do things.
I found an internet code where does the gps and other works where sendingtorpedoes gprs. I'm trying to join the two but I think that has a conflict with thedoors with gps gprs.
It seems to me that shlds you are using are the same.