GSM Shield Problem AT%13%Not connected

Hello Arduino community,

I am new user and i use a gsm shield with arduino mega 2560 and my sim card from my phone.

The code i use is this:

#include <GSM.h>

#define PINNUMBER “8960”

// initialize the library instance
GSM gsmAccess(true); // include a ‘true’ parameter for debug enabled
GSM_SMS sms;

// char array of the telephone number to send SMS
// change the number 1-212-555-1212 to a number
// you have access to
char remoteNumber[20]= “0035799123456”;

// char array of the message
char txtMsg[200]=“Test”;

void setup()
// initialize serial communications

Serial.println(“SMS Messages Sender”);

// connection state
boolean notConnected = true;

// Start GSM shield
// If your SIM has PIN, pass it as a parameter of begin() in quotes
notConnected = false;
Serial.println(“Not connected”);
Serial.println(“GSM initialized”);

void loop()
// nothing to see here

void sendSMS(){

Serial.print("Message to mobile number: ");

// sms text

// send the message

The message i get from serial monitor is :

SMS Messages Sender
AT%13%Not connected

Can anybody please explain why and how to fix this problem?

Which GSM shield? The Official Arduino one?

I have the same problem. A lil help would be awesome! I have the official Arduino GSM Shield!


I use Arduino GSM Shield V1.6 (GSM Playground)

Have you followed the instructions here?

I follow the instructions from here ( but still have the same issue.

Unfortunately I don't have an official shield, and it doesn't look as though I'm going to get one soon for a sensible price! So all I can suggest are the usual suspects:

Remove the pin number from the sim card. Check that the sim card works in a phone, and where appropriate has credit on it. You are using a substantial (2amp) external power supply for the shield?

Use a program like SerialRelay to try communicate with the shield, just get it to reply to an AT command before trying to send or receive anything.

Look at leds indicators. Power LED is ON? Network LED is blinking slowly, or fastly?