I’m trying to send sms with shield but nothing happening, my code:
[code]#include <NewSoftSerial.h>
NewSoftSerial mySerial(7, 8);
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.println(“AT+CMGF=1”); // set the SMS mode to text
delay(1500);
Serial.print(“AT+CMGS=”); // send the SMS the number
Serial.print(34,BYTE); // send the " char
Serial.print("+552492320295"); // send the number change ********* by the actual number
Serial.println(34,BYTE); // send the " char
delay(1500);
Serial.print(“Hola caracola…”); // the SMS body
Serial.print(26,BYTE); //Equivalent to sending Ctrl+Z
delay(1500); // the SMS module needs time to return to OK status
}
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.
}[/code]
Terminal when turn on:
i’m using arduino UNO version: arduino-0022
when sending the terminal is sent without problems, look: