Hi,
I used this GSM-Shield:http://www.elecfreaks.com/wiki/index.php?title=EFCom_GPRS/GSM_Shield
I have some problem with sending sms from this example code:
void setup()
{
Serial.begin(19200); //Default serial port setting for the GPRS modem is 19200bps 8-N-1
delay(1000); //Wait for a second while the modem sends an "OK"
Serial.print("AT+CMGF=1\r"); //Because we want to send the SMS in text mode
Serial.read();
delay(1000);
//Serial.print("AT+CSCA="+919032055002"\r"); //Setting for the SMS Message center number,
//delay(1000); //uncomment only if required and replace with
//the message center number obtained from
//your GSM service provider.
//Note that when specifying a tring of characters
// " is entered as "
Serial.print("AT+CMGS="+919032055002"\r"); //Start accepting the text for the message
Serial.read(); //to be sent to the number specified.
//Replace this number with the target mobile number.
delay(1000);
Serial.print("SIM900 and Arduino say Hi!\r"); //The text for the message
Serial.read();
delay(1000);
Serial.write(26); //Equivalent to sending Ctrl+Z
}
void loop()
{
//We just want to send the SMS only once, so there is nothing in this loop.
//If we put the code for SMS here, it will be sent again and again and cost us a lot.
I can send sms using sscom32E(terminal program) but when I monitor the above code using built in serial monitor it just print out the lines without any response from the shield.
When I for example sending AT with sscom32E then the shield response with OK. When I do this with the code nothing happens .
Does any body have an idea what the problem could be.
Regards Andreas