Specifications

Smart Machine Smart Decision
SIM900_AT Commands Manual_V1.07 74 2012.12.10
Test Command
AT+CPIN=?
Response
OK
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
Test Command
AT+CPWD=?
Response
TA returns a list of pairs which present the available facilities and the
maximum length of their password.
+CPWD: (list of supported <fac>s, list of supported <pwdlength>s)