I have configured every thing the right way and now trying the sms example. The serial
output says message sent but the message is not recieved by the phone. Hope you can help.
#include "SIM900.h" #include <SoftwareSerial.h>
//If not used, is better to exclude the HTTP library,
//for RAM saving.
//If your sketch reboots itself proprably you have finished,
//your memory available.
//#include "inetGSM.h"
//If you want to use the Arduino functions to manage SMS, uncomment the lines below. #include "sms.h"
SMSGSM sms;
//To change pins for Software Serial, use the two lines in GSM.cpp.
//GSM Shield for Arduino //www.open-electronics.org
//this code is based on the example of Arduino Labs.
//Simple sketch to send and receive SMS.
int numdata;
boolean started=false;
char smsbuffer[160];
char n[20];
void setup()
{
//Serial connection.
Serial.begin(9600);
Serial.println("GSM Shield testing.");
//Start configuration of shield with baudrate.
//For http uses is raccomanded to use 4800 or slower.
if (gsm.begin(2400)){
Serial.println("\nstatus=READY");
started=true;
}
else Serial.println("\nstatus=IDLE");
if(started){
//Enable this two lines if you want to send an SMS.
if (sms.SendSMS("+444538590489", "Arduino SMS"))
Serial.println("\nSMS sent OK");
}
};
void loop()
{
if(started){
//Read if there are messages on SIM card and print them.
if(gsm.readSMS(smsbuffer, 160, n, 20))
{
Serial.println(n);
Serial.println(smsbuffer);
}
delay(1000);
}
};
I'm not familiar with the library or hardware but I'll raise a question in a different direction: Do you have an itemized bill or a way to check the up-to-date expenses on the sim card that your modem is using? If it does show charges to messages sent, then the problem may reside on your phone/carrier.
Hi thanks for the reply. I don`t have a billing chart I can refer too. It also would not be practical calling
the carrier that I am having a sim900 gsm shield error , do you know of any that would block me from
using this module with your sim card.
I am hoping some one here has had the same issue and can help.
I'm not sure. If I were you, I would first make sure the sim card works with the modem and the carrier. I don't really know how to do this though. Post your country/region hopefully someone in your area has some experience to share with you.
hi im newbie in arduino, i have code that work perfectly receiving messages, heres the code:
#include "SIM900.h" #include <SoftwareSerial.h>
//If you want to use the Arduino functions to manage SMS, uncomment the lines below. #include "sms.h"
SMSGSM sms;
//To change pins for Software Serial, use the two lines in GSM.cpp.
//GSM Shield for Arduino //www.open-electronics.org
//this code is based on the example of Arduino Labs.
//Simple sketch to send and receive SMS.
int numdata;
boolean started=false;
char smsbuffer[160];
char n[20];
void setup()
{
//Serial connection.
Serial.begin(9600);
Serial.println("GSM Shield testing.");
//Start configuration of shield with baudrate.
//For http uses is raccomanded to use 4800 or slower.
if (gsm.begin(2400)){
Serial.println("\nstatus=READY");
started=true;
}
else Serial.println("\nstatus=IDLE");
};
void loop()
{
if(started){
//Read if there are messages on SIM card and print them.
if(gsm.readSMS(smsbuffer, 160, n, 20))
{
Serial.println(n);
Serial.println(smsbuffer);
}
delay(1000);
}
};
The problem is i want to delete all the message in the storage automatically and it to void setup(); but i dont have any idea. anyone can help me ? tnx for advance
robie26:
The problem is i want to delete all the message in the storage automatically and it to void setup(); but i dont have any idea. anyone can help me ? tnx for advance