Go Down

Topic: GSM Module SIM900 detect incoming call (Read 297 times) previous topic - next topic

garreb

Hi all

Im using the SIM 900 to detect an incoming call i used the following code but i can't  detect the incoming caller number

Code: [Select]

//Serial Relay - pour Arduino 1.0
//
// Arduino will patch a serial link between the computer
// and the GPRS Shield at 19200 bps 8-N-1
//Computer is connected to Hardware UART
//GPRS Shield is connected to the Software UART

#include <SoftwareSerial.h>    // For Arduino 1.0

SoftwareSerial mySerial(7, 8); // For Arduino 1.0

void setup()
{
  mySerial.begin(19200);               // the GPRS baud rate   
  Serial.begin(19200);                 // the GPRS baud rate   
}

void loop()
{
    if(Serial.available())
    {
       char c = Serial.read();
       mySerial.print(c);
     } 
    else  if(mySerial.available())
    {
        char c = mySerial.read();
       Serial.println(c);
     }   
}


But the problem i can see only RING
Is there a way to detect the number (With AT command)

BR



#2
Dec 30, 2013, 07:23 pm Last Edit: Dec 30, 2013, 07:33 pm by captainking Reason: 1
Hi I am just learning AT commands at the ripe old age of 62.....so here goes!

AT+CLIP=1
OK

type the AT command in hyper terminal press return you should get ok then ring the number and you should see RING
then the next line should read

+CLIP: "NUMBER "

you can download commands file from the tinternet! there are some good examples on you tube type .....at commands
oh! just another thing the spec I've got for sim900 is baud rate  115200 this might make a difference
All the best
Steve

Go Up