Hi all,
I am intending on creating an SMS LCD display, the components i have chosen are the Arduino Mega 2560, in conjunction with the Antrax GSM/GPRS shield (w/o GPS) the details and manual are shown below:
Through following the step by step procedure explained in the manual i set up the device and ran the example code with the relevant changes made (inputting SIM pin and destination-phone number in " ") . (Example code below)
GSM gsm(7,9600); // (power_pin, baudrate)
GPS gps(9600); // (baudrate)
void setup()
{
if(gps.initializeGPS())
Serial.println("Initialization completed");
else
Serial.println("Initialization can't completed");
Serial.begin(9600);
}
void loop()
{
gps.getGPS();
Serial.print(gps.coordinates);
// GPS-LED
if(gps.coordinates[0] == 'n')
{
delay(20);
gps.setLED(1);
delay(20);
gps.setLED(0);
delay(20);
gps.setLED(1);
delay(20);
gps.setLED(0);
}
else
{
delay(300);
gps.setLED(1);
delay(500);
gps.setLED(0);
}
if(!gps.checkS1())
{
gsm.initializeGSM("1234"); // Enter your SIM-Pin if it's required (Example: "1234") --> the quote signs are important
delay(200);
gsm.makeCall("0176123456789"); // Enter the Destination-Phone-Number (Example: "0176123456789" or "+49176123456789") --> the quote signs are important
}
if(!gps.checkS2())
{
gsm.initializeGSM("1234"); // Enter your SIM-Pin if it's required (Example: "1234") --> the quote signs are important
delay(200);
gsm.sendSMS("0176123456789",gps.coordinates); // Enter the Destination-Phone-Number (Example: "0176123456789" or "+49176123456789") --> the quote signs are important
}
}
The LED's didn't lite up nor did the device properly initialize. I then came to realize this example code is just for the GPS enabled version of the device which i do not have, and no such example code let alone start up instructions are available for mine. I then reworked the code to test the LED's to ensure the functionality of the device and initialize the GSM functionality ( uses Telit GE865);
GSM gsm(7,9600); // (power_pin, baudrate)
GPS gps(9600); // (baudrate)
void setup()
{
if(gps.initializeGPS())
Serial.println("Initialization completed");
else
Serial.println("Initialization can't completed");
}
void loop()
{
Serial.println("test print...");
gps.setLED(1);
delay(500);
gps.setLED(0);
delay(500);
if(!gps.checkS2())
{
Serial.println("check 1 print...");
gsm.initializeGSM("1210");
delay(200);
Serial.println("GSM initialized...");
gsm.sendSMS("07535267131","123456"); // Enter the Destination-Phone-Number (Example: "0176123456789" or "+49176123456789") --> the quote signs are important
}
}
When running the code the LED's do turn on, but it never Initializes the GSM (gsm.initializeGSM("1210") line onward...). The more playing around i did i found i could not get any response whatsoever from the Telit GE865 in establishing a GSM network. I downloaded the GSM libraries from HW kitchen in attempt to make communication. I ran the AT commands test and that did not work either.
I just downloaded the GSM libraries from HW kitchen and i will play around with it some more and, as if you cant tell already, need to read more on the subject as i am not that experienced. Could someone please give me some insight on how to resolve this issue or share links/examples on initializing and communication through the GSM to a Telit GE865, and the subsequent SIM card attached.
Thanks a bunch for your attention, and would greatly appreciate any help or insight
P.S. some smaller details that might weave out initial considerations, i have indeed connected it to a power supply to ensure that the device has enough power to communicate via GSM. The SIM card inserted to the shield has been activated, I have also used Termite software to input SELINT 2 AT commands which wont even show up after i hit enter in the compiler so not sure whats going on with that. (not sending to device at all?).