Go Down

Topic: HELP: How I Detection The Number ID Caller To GSM SIM900? (Read 1 time) previous topic - next topic

orwawatt

Hi..

I Have GSM SIM900, and i want to know the number id caller' if the thier the specific number, then the gsm pickup..

i have this code, and wont to repair this to detection the number that calling:





#include "SIM900.h"
#include <SoftwareSerial.h>
#include "call.h"

CallGSM call;
SoftwareSerial SIM900(7, 8);

void setup()
{
  pinMode(10,OUTPUT);
    Serial.begin(9600);
   
    if (gsm.begin(9600))
    {
        Serial.println("\nstatus=READY");
    }
    else
        Serial.println("\nstatus=IDLE");
}


void loop()
{
       if (call.CallStatus() == CALL_INCOM_VOICE)  // Yes! Someone is calling us
      {
     call.PickUp();
     delay(5000);
     call.HangUp();
       }
}




any help ?????????????? please .........................

dannable

If you cannot be bothered reading the post 'How to use this forum - please read' then I cannot be bothered trying to help you.
Beginners guide to using the Seeedstudio SIM900 GPRS/GSM Shield

Go Up