98-08901C68-O 173
AT Commands Reference
The Set command issued gives the code (SIM PIN or SIM PUK) corresponding to the error code required or returned or the
result of the Read command. For example, if the SIM PIN is blocked and the AT command operation requires SIM card access,
then the error code 11 or "SIM PIN required" is returned. The user must then issue the Set command with the SIM PUK and
new SIM PIN passed in.
Read Command
The Read command returns an alphanumeric string indicating the status of the SIM card, and whether a password is required or
not. This is an independent SIM card lock status check only, and does not check the phone lock status.
Test Command
The following table shows the +CPIN parameters.
Command Response/Action
AT+CPIN=[<puk> or <pin>],
[<newpin>]
OK
or:
+CME ERROR: <err>
Command Response/Action
AT+CPIN? +CPIN: <code>
OK
or:
+CME ERROR: <err>
Command Response/Action
AT+CPIN=? OK
or:
+CME ERROR: <err>
Table 81. +CPIN Parameters
<Parameter> Description
<puk> PUK code for blocked phone
<pin> Current PIN
<newpin> New PIN (after changing or after entering PUK) 4 - 8 digits
<code> READY Not waiting for a password
SIM PIN Waiting for SIM PIN
SIM PUK Waiting for SIM PUK
SIM PIN2 Waiting for SIM PIN2
SIM PUK2 Waiting for SIM PUK2