i try to program the GSM shield Arduino with Arduino UNO R3 i write down this code for get the message it is worked perfectly
#include <SerialGSM.h>
#include <SoftwareSerial.h>
SerialGSM cell(2,3);
boolean sendonce=true;
void setup(){
Serial.begin(9600);
cell.begin(9600);
cell.Verbose(true);
cell.Boot();
cell.DeleteAllSMS();
cell.FwdSMS2Serial();
}
void loop(){
if (cell.ReceiveSMS()){
Serial.print("Sender: ");
Serial.println(cell.Sender());
Serial.print("message: ");
Serial.println(cell.Message());
cell.DeleteAllSMS();
}
}
but when i try to send the message for selected number i don't get the message !
here is code and the output !
#include <SerialGSM.h>
#include <SoftwareSerial.h>
SerialGSM cell(2,3);
void setup(){
Serial.begin(9600);
cell.begin(9600);
cell.Verbose(true);
cell.Boot();
cell.FwdSMS2Serial();
cell.Rcpt("+972123456789");
cell.Message("hello world");
cell.SendSMS();
}
void loop(){
if (cell.ReceiveSMS()){
Serial.println(cell.Message());
cell.DeleteAllSMS();
}
}
the output of the serial
+964750703971
dana
AT+CMGF=1
AT+CMGF=1
AT+CMGS=+964750703971OK
dana
AT+CMGS="+964750703971"
AT+CMGD=1,4
any help thanks