Disable PIN code using Gsm modem AT commands

If you have a PIN code enabled SIM card and want to remove /disable PIN code using AT commands follow these commands,
suppose 9546 is the current PIN code , Replace 9546 with your PIN code, >>> shows the response from modem.

>>> +CPIN: SIM PIN // pin codes need to be entered
>>> OK

>>>; OK

AT+CLCK="SC",0,"9546" // disable pin code
>>> OK



RECOMMENDED READ  easyavr.h Header file for pin/port operations

Dost Muhammad Shah

Dost Muhammad specializing in Embedded Design, Firmware development, PCB designing , testing and prototyping. He enjoys sharing his experience with others .Get in touch with Dost on Twitter or via Contact form


9 thoughts on “Disable PIN code using Gsm modem AT commands

  1. My sim doesn’t have a pin but I keep getting error message like this +CME 58 and error 5.am using gsm A6.. Please assist

    1. AT+CPWD=”SC”,”1234″,”4321″ where 1234 is current pin and 4321 is the new pin code.

      Have a look at this post for more info

  2. hi sir, how can i stop getting URC using AT command in between my parsing ?
    Is there any AT command to stop all URC ?

    1. There are several AT commands to enable or disable different URCs. Search the AT-command manual for URC and you will get to know the exact AT-commands to use

      1. Enter the wrong pin three times, your sim would get blocked, Now get the PUK code from operator and create a new pin

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.