Pages: [1]   Go Down
Author Topic: GSM Module SIM900 detect incoming call  (Read 207 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
//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

Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 11
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks for your answers
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: December 30, 2013, 01:33:17 pm by captainking » Logged

Pages: [1]   Go Up
Jump to: