ARDUINO and SIM 900 / GPS S1315RL

Thread Starter

mkbutan

Joined Sep 30, 2008
299
Hi
Is this Code's are Correct???

Rich (BB code):
#include "SIM900.h"

#include <SoftwareSerial.h>

#include "sms.h"

SMSGSM sms;

void setup()
{
  Serial.begin(9600);
  Serial.println("GSM Testing to send SMS");
  if (gsm.begin(2400)){
    Serial.println("\nstatus=READY");
    started=true; 
  }
  else Serial.println("\nstatus=IDLE");
 
  if(started){
    if (sms.SendSMS("+919********1", "Arduino SMS"))
    // number to which you want to send the sms and the sms text//
    Serial.println("\nSMS sent OK");
  }
};
void loop()
{
};
using the above code for SIM900 GSM/GPRS Module on ARDUINO 328

While uploading the above code to the ARDUINO 328 I am getting the Following Error
I st Time
sketch_jun16a.ino:1:20: error: SIM900.h: No such file or directory
sketch_jun16a.ino:5:17: error: sms.h: No such file or directory
sketch_jun16a:7: error: 'SMSGSM' does not name a type
sketch_jun16a.ino: In function 'void setup()':
sketch_jun16a:13: error: 'gsm' was not declared in this scope
sketch_jun16a:15: error: 'started' was not declared in this scope
sketch_jun16a:19: error: 'started' was not declared in this scope
sketch_jun16a:20: error: 'sms' was not declared in this scope


II nd Time
sketch_jun16b.ino:1:20: error: SIM900.h: No such file or directory
sketch_jun16b.ino:3:17: error: sms.h: No such file or directory
sketch_jun16b:4: error: 'SMSGSM' does not name a type
sketch_jun16b.ino: In function 'void setup()':
sketch_jun16b:13: error: 'gsm' was not declared in this scope
sketch_jun16b:20: error: 'sms' was not declared in this scope
Please help me
what am I doing wrong ????????
and what should I do now?
Thanks in advance
 

Thread Starter

mkbutan

Joined Sep 30, 2008
299
Hi
I have added the GSM Library but still it gives Errors
Code
Rich (BB code):
#include <GSM.h>
#include <GSM3CircularBuffer.h>
#include <GSM3MobileAccessProvider.h>
#include <GSM3MobileCellManagement.h>
#include <GSM3MobileClientProvider.h>
#include <GSM3MobileClientService.h>
#include <GSM3MobileDataNetworkProvider.h>
#include <GSM3MobileMockupProvider.h>
#include <GSM3MobileNetworkProvider.h>
#include <GSM3MobileNetworkRegistry.h>
#include <GSM3MobileServerProvider.h>
#include <GSM3MobileServerService.h>
#include <GSM3MobileSMSProvider.h>
#include <GSM3MobileVoiceProvider.h>
#include <GSM3ShieldV1.h>
#include <GSM3ShieldV1AccessProvider.h>
#include <GSM3ShieldV1BandManagement.h>
#include <GSM3ShieldV1BaseProvider.h>
#include <GSM3ShieldV1CellManagement.h>
#include <GSM3ShieldV1ClientProvider.h>
#include <GSM3ShieldV1DataNetworkProvider.h>
#include <GSM3ShieldV1DirectModemProvider.h>
#include <GSM3ShieldV1ModemCore.h>
#include <GSM3ShieldV1ModemVerification.h>
#include <GSM3ShieldV1MultiClientProvider.h>
#include <GSM3ShieldV1MultiServerProvider.h>
#include <GSM3ShieldV1PinManagement.h>
#include <GSM3ShieldV1ScanNetworks.h>
#include <GSM3ShieldV1ServerProvider.h>
#include <GSM3ShieldV1SMSProvider.h>
#include <GSM3ShieldV1VoiceProvider.h>
#include <GSM3SMSService.h>
#include <GSM3SoftSerial.h>
#include <GSM3VoiceCallService.h>

#include "SIM900.h"
#include <SoftwareSerial.h>
#include "sms.h"
SMSGSM sms;
void setup()
{
  Serial.begin(9600);
  Serial.println("GSM Testing to send SMS");
  if (gsm.begin(2400)){
    Serial.println("\nstatus=READY");
    started=true; 
  }
  else Serial.println("\nstatus=IDLE");
  if(started){
    if (sms.SendSMS("+919987687631", "Arduino SMS"))
    // number to which you want to send the sms and the sms text//
    Serial.println("\nSMS sent OK");
  }
};
void loop()
{
};

ERROR
sketch_jun18e.ino:36:20: error: SIM900.h: No such file or directory
sketch_jun18e.ino:40:17: error: sms.h: No such file or directory
sketch_jun18e:42: error: 'SMSGSM' does not name a type
sketch_jun18e.ino: In function 'void setup()':
sketch_jun18e:48: error: 'gsm' was not declared in this scope
sketch_jun18e:50: error: 'started' was not declared in this scope
sketch_jun18e:54: error: 'started' was not declared in this scope
sketch_jun18e:55: error: 'sms' was not declared in this scope
I am using ARDUINO 328 and its IDE is 1.0.5
Please help me to rectify these errors
also how and from where to Download SIM900.h & SMS..h File or Directory
 

Attachments

Top