Specifications
SIM900 AT Commands Set
SIM900_ATC_V1.01 74 23.06.2010
3.2.28 AT+CPIN Enter PIN
AT+CPIN Enter PIN
Test Command
AT+CPIN=?
Response
OK
Parameters
see Write Command
Response
TA returns an alphanumeric string indicating whether some password is
required or not.
+CPIN: <code>
OK
Read Command
AT+CPIN?
Parameter
<code>
READY MT is not pending for any password
SIM PIN MT is waiting SIM PIN to be given
SIM PUK MT is waiting for SIM PUK to be given
PH_SIM PIN ME is waiting for phone to SIM card (antitheft)
PH_SIM PUK ME is waiting for SIM PUK (antitheft)
SIM PIN2 PIN2, e.g. for editing the FDN book possible only if
preceding Command was acknowledged with +CME ERROR:17
SIM PUK2 possible only if preceding Command was
acknowledged with error +CME ERROR: 18.
Response
TA stores a password which is necessary before it can be operated (SIM
PIN, SIM PUK, PH-SIM PIN, etc.).
If the PIN required is SIM PUK or SIM PUK2, the second pin is required.
This second pin, <new pin>, is used to replace the old pin in the SIM.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Write Command
AT+CPIN=<pin>
[, <new pin>]
Parameters
<pin> string type; password
<new pin> string type; If the PIN required is SIM PUK or SIMPUK2:
new password
Reference
GSM 07.07 [13]
Note
3.2.29 AT+CPWD Change Password
AT+CPWD Change Password