Need help on gprs.AttachGPRS() connection issue, using SIM800 GSM/GPRS module

Hi Team,

I need an immediate help/resolution on my SIM800 GSM/GPRS module for Arduino UNO. My sketch is not connecting with internet. I have tried with multiple providers based out in India and their specific APN. Still GPRS is not showing GPRS_READY. Where as GSM is getting turned on successfully with the “gsmAccess.begin()” method. The “gprs.attachGPRS(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD)” status is always in “CONNECTING” state. Expecting gprs to be in GPRS_READY state. So that my code can connect ‘GSMClient’ with other IP/server. Below, I am pasting my code sample as reference.

Code: [
#include <GSM.h>

//GPRS APN data
#define GPRS_APN “internet” // (For Idea) “imis”/“internet” // (For Vodafone) “www”/“portalnmms”/“” // replace your GPRS APN
#define GPRS_LOGIN “” // replace with your GPRS login
#define GPRS_PASSWORD “” // replace with your GPRS password

GSMClient client;
GPRS gprs;
GSM gsmAccess;

void setup()
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only

boolean gsmConnected = false; //–connection state
boolean grpsConnected = false;
int ok = 0;

//–Start GSM shield
while (!gsmConnected) {
Serial.println(“Trying to Connect…”);
//if (gsmAccess.begin(PINNUMBER) == GSM_READY) {
if (gsmAccess.begin() == GSM_READY)
Serial.println(“GSM Connected.”);

while (!grpsConnected)
ok = gsmAccess.getStatus();
if (ok == GPRS_READY)
Serial.println(“GPRS Connected.”);
gsmConnected = true;
grpsConnected = true;
Serial.println(“GPRS Connection Failed.”);
else {
Serial.println(“GSM not connected.”);
Serial.println(“GSM/GPRS initializing…”);

void loop()