Access3-260 AT Commands Reference Manual June 30, 2008
Example
AT+CP IN= ?
OK
AT+CLCK="SC",1,"<correct PIN>"//Not case-sensitive
OK
The facility is enabled by the +CLCK command (Refer to “+CLCK, Facility Lock” on page 3-264)
AT+CP IN?
+CPIN: SIM PIN
OK
AT+CPIN="<correct PIN>"
OK
AT+CP IN?
+CPIN: READY
OK
The status of the SIM is still enabled, but the PIN is READY for this session.
The SIM is enabled per session. After power-up SIM must be unlocked again by using the +CLCK
command.
The following case shows an example of three unsuccessful attempts at entering the PIN:
AT+CP IN?
+CPIN: SIM PIN
OK
AT+CPIN="<wrong pin>"
+CME ERROR: incorrect password
AT+CPIN="<wrong pin>"
+CME ERROR: incorrect password
AT+CPIN="<wrong pin>"
+CME ERROR: SIM PUK required
AT+CP IN?
+CPIN: SIM PUK //PIN is blocked. The PUK is needed for unblocking.
OK
AT+CPIN="<PUK>","<NEW PIN>" //Enter PUK and new PIN
OK
AT+CLCK="FD",1,"<wrong PIN2>"
+CME ERROR: incorrect password
AT+CLCK="FD",1,"<wrong PIN2>"
+CME ERROR: incorrect password
AT+CLCK="FD",1,"<wrong PIN2>"
+CME ERROR: SIM PUK2 required
AT+CP IN?
+CPIN: SIM PUK2 //PIN2 is blocked. The PUK2 is needed for unlocking.
OK
AT+CPIN="<PUK2>","<NEW PIN2>" //Enter PUK2 and new PIN2
OK