[Probleme connection gsm]

Hello everybody,
I try to do a code for send sms to the gsm
But i have a problem when i try to connect the gsm module with gsmAccess.begin
because he send me this code :

try Access
AT%13%
0 9>AT%13%%13%%10%OK%13%%10%
AT+CPIN=0000%13%
9 39>AT+CPIN=0000%13%%13%%10%+CME ERROR: 3%13%%10%

After Access
code is ERROR

and this is my code :

#include <GSM.h>
GSM gsmAccess(true);
GSM_SMS sms;
void setup()
{
  Serial.begin(9600);
  char code='X';
  while(true)
  {
    Serial.println("try Access");
    code=gsmAccess.begin("0000",true,true);  // code=gsmAccess.begin("0000",true,false); // my pin is "0000"
    Serial.println("\nAfter Access");
    if(code==GSM_READY)
    {
      Serial.println("code is GSM_READY");
      break;
    } 
    if(code==CONNECTING)
    {
      Serial.println("code is CONNECTING");
    }    
    if(code==ERROR) {Serial.println("code is ERROR");}
    if(code==IDLE) {Serial.println("code is IDLE");}
    if(code==GPRS_READY) {Serial.println("code is GPRS_READY");}
    if(code==TRANSPARENT_CONNECTED) {Serial.println("code is TRANSPARENT_CONNECTED");}
    
  }
  
}
void loop()
{
  
}

thanks for your help !

That looks like error 3 - Operation not allowed.

so how i can fix that ?

The first thing I can think of is the pin 0000? And if it is then I have no further ideas I'm afraid.

Please do not cross-post. Other thread removed.

This is the official Arduino GSM shield isn't it?

What response do you get when you send the command 'AT+CPIN?'?