Hello I'm trying to figure out a way to automatically receive a call when i call from my cellphone for the gsm shield to pick up automatically from what i read in the 900 datasheet the command ATA should receive a call below is my sketch to send a call from my arduino to my cellphone I'm trying to go the other way around and have my gsm shield to receive the call automatically can someone please help me?
#include <SoftwareSerial.h>
SoftwareSerial SIM900(7, 8); // configure software serial port
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 callSomeone()
{
SIM900.println("ATD + +1xxxxxxxxx;"); // dial US (212) 8675309
delay(100);
SIM900.println();
}
void loop()
{
callSomeone(); // call someone
SIM900power(); // power off GSM shield
do {} while (1); // do nothing
}