Go Down

Topic: SIM900 ICOMSAT 1.1 does not send sms (Read 11013 times) previous topic - next topic

dannable

Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Edward_Ndh

Greeting,

This is the first time I am using Arduino Uno with IComSat V1.0 SIM900. I have stacked both of them together and even supply the Arduino Uno with additional power source.

Source Code:
#include "SIM900.h"
#include <SoftwareSerial.h>
#include "sms.h"
SMSGSM sms;
boolean started=false;

void setup()
{
  //Serial connection.
  Serial.begin(9600);
  Serial.println("GSM Shield testing.");

  if (gsm.begin(2400)){
    Serial.println("\nstatus=READY");
    started=true; 
  }
  else Serial.println("\nstatus=IDLE");
 
  if(started){
    if (sms.SendSMS("+60193702799", "SMS from Arduino"))
      Serial.println("\nSMS sent OK");
  }

};


void loop()
{

}

However, when I tried the coding as above, this is the result which I get.


"GSM Shield testing.
Trying to force the baud-rate to 9600

ERROR: SIM900 doesn't answer. Check power and serial pins in GSM.cpp

status=IDLE"


Hope you may assist me on this matter.

Many thanks.

shimonbd


roalrogar

Check this code,it can help you, I sent some SMS by it.

Code: [Select]
#include <SoftwareSerial.h>
SoftwareSerial SIM900(7, 8);
 
void setup()
{
  SIM900.begin(19200);
  SIM900power(); 
  delay(20000);  // give time to log on to network.
}
 
void SIM900power()
// software equivalent of pressing the GSM shield "power" button
{
  digitalWrite(9, HIGH);
  delay(1000);
  digitalWrite(9, LOW);
  delay(5000);
}
 
void sendSMS()
{
  SIM900.print("AT+CMGF=1\r");                         // AT command to send SMS message
  delay(100);
  SIM900.println("AT + CMGS = \"+21267315xxxx\"");     // recipient's mobile number, in international format
  delay(100);
  SIM900.println("Hello ^^");        // message to send
  delay(100);
  SIM900.println((char)26);                       // End AT command with a ^Z, ASCII code 26
  delay(100);
  SIM900.println();
  delay(5000);                                     // give module time to send SMS
  SIM900power();                                   // turn off module
}
 
void loop()
{
  sendSMS();
  do {} while (1);
}

i have shield Keyes SIM900A help me.   i need help. pls

Go Up