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.

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

AT+CPIN="9546"
>>>; OK

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

AT+CPIN?
>>> +CPIN: READY

 

 
Dost Muhammad Shah

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

 

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

  1. Hi,
    Thanks for the tip; i’m getting an error, could you please help? The AT+CPIN? gives the expected feedback, but when i type AT+CPIN=”MY PIN” it returns Error. This is a new SIM, any guess?
    Kindest regards from Portugal,
    Pedro

  2. 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

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

Leave a Reply to Stalin P JosephCancel reply

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