Dear All,
Being new I would like some help.
Using GPRSbee rev.6 on a Sodaq Mbili board. I would like to send data over SMS using 2 different modes:
1: I would like to call the GPRSbee, the GPRSbee to reject my call, read the sensors and reply with an SMS with the reading.
2: Use the RTC, open 1,2,3 etc times a day ( used defined) read the sensors and send SMS.
The first problem which occurred is which commands to use with the GPRSbee rev.6 .
I have done it using sim900 and arduino Uno as follows :
#include “SIM900.h”
#include <SoftwareSerial.h>
#include “call.h”
#include <DHT.h>
#include “sms.h”
SMSGSM sms;
#define DHTPIN 7
#define DHTTYPE DHT22
CallGSM call;
boolean started=false;
char sms_text[160];
DHT dht(DHTPIN, DHTTYPE);
void setup()
{
dht.begin();
Serial.begin(9600);
if (gsm.begin(9600))
{
Serial.println("\nstatus=READY");
started=true;
}
else
Serial.println("\nstatus=IDLE");
}
void loop()
{
float humidity, temperature;
String smsText ="";
switch (call.CallStatus())
{
case CALL_NONE: // Nothing is happening
break;
case CALL_INCOM_VOICE : //
Serial.println("RECEIVING CALL");
call.HangUp();
delay(2000);
humidity = dht.readHumidity();
temperature = dht.readTemperature();
delay(2000);
smsText = "Temperature: "+String(temperature,1)+"C Humidity: "+String(humidity,1)+"%";
smsText.toCharArray(sms_text,160);
//Serial.println(smsText);
sms.SendSMS("+4400000000",sms_text);
break;
case CALL_COMM_LINE_BUSY: //
Serial.println("TALKING. Line busy.");
break;
}
delay(1000);
}
Any help to do it with GPRSbee?
Thanks