problem in gsm sim900 arduino shield

Hello guys
I am using SIM900 GSM/GPRS shield for arduino and I have bought it from ITEAD STUDIO (http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=413)
But when I have upload sample program for checking registration it gives me output in serial monitor

Registration 0
GSM doesn't response

I have also pressed SIM900-RST pin on shield.
But first status light is turned on for few seconds and automatically turned off.
and it gives me same result.

Can any one please help me?
:~

My sample program is as below.

/* GSM Shield example
 
 created 2011
 by Boris Landoni
 
 This example code is in the public domain.

 
 http://www.open-electronics.org
 http://www.futurashop.it
 */

#include <GSM_Shield.h>
//for enable disable debug rem or not the string       #define DEBUG_PRINT
// definition of instance of GSM class
GSM gsm;



void setup() {
  Serial.begin(9600);
  Serial.println("system startup"); 
  //gsm.InitSerLine(9600);   //initialize serial 1 
  gsm.TurnOn(9600);              //module power on
  //gsm.InitSerLine(9600);   //initialize serial 1 
  gsm.InitParam(PARAM_SET_1);//configure the module  
  gsm.Echo(1);               //enable AT echo 
}


void loop()
{
  
    int reg;
    reg=gsm.CheckRegistration();
    switch (reg){    
      case REG_NOT_REGISTERED:
        Serial.println("not registered");
        break;
      case REG_REGISTERED:
        Serial.println("GSM module is registered");      
        break;
      case REG_NO_RESPONSE:
        Serial.println("GSM doesn't response");
        break;
      case REG_COMM_LINE_BUSY:
        Serial.println("comm line is not free");
        break;
    }
    delay(2000);
    
    reg=gsm.IsRegistered();
      Serial.print("Registration ");
      Serial.println(reg);
    
    delay(2000);
}

Moderator edit:
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags added.

@megh2301,
Which library are you using? Send me a link.
Can you also tell me what the jumper setting of your "UART Multiplexer" is?

Kelvin

I have the same problem, and I have solved connecting a two antennas and using a power supply, with that established communication network, the code of the program is well

@ Kelvin ,

I am using library for arduino gsm shield from link shown below :

http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=413

And jumper setting is on the UART side .

and Thanks for ur help.....

@ Pepino ,

first of all Thanks for your reply.

Now , I am using only one antenna. As you have said me for connecting two antennas but i am not knowing how to connect the second antenna ? Should I have to connect two antennas simultaneously ? Now I am using my shield by connecting only one antenna as shown in the fig. shown in the below link.

http://iteadstudio.com/store/index.php?main_page=product_info&cPath=18&products_id=413

Can you tell me How should I have to connect the small antenna ( small wire-strip ) ?

Please reply me .....

The library you are using might be a bit out of date. You can see that the code was intended for Arduino-0022 or lower instead of Arduino 1.0.1. Inside the old library, it has "#include <WProgram.h>" rather than "#include <Arduino.h>". That's how I knew it wasn't the right one.

The one I am using can be found here: Google Code Archive - Long-term storage for Google Code Project Hosting. . This version should be compatible with the new Arduino IDE.

If you insist on using the old library with previous IDE, then you need to have NewSoftSerial library installed. But I wouldn't go there if I were you.

I don't think there is any problem with the antenna since either the UFL or the SMA connectors worked fine for me. No, you don't need two antennas. I can actually receive phone calls. I heard it ringing though my headphones! But only thing annoys me is that I am getting either gibberish or nothing at all on the Serial monitor. And also, I can't send in anything via serial! :0 Could it be a power supply problem? I don't know. But thanks for your advice Pepino. I shall try it out soon.

My jumper settings are pin2 on TX and pin3 on RX. In GSM.cpp, you'll also need to comment out and un-comment accordingly:

//De-comment this two lines below if you have the
//first version of GSM GPRS Shield
//#define _GSM_TXPIN_ 4
//#define _GSM_RXPIN_ 5

//De-comment this two lines below if you have the
//second version og GSM GPRS Shield
#define _GSM_TXPIN_ 2
#define _GSM_RXPIN_ 3

Hope that helps