Specifications
AT Command Set
TC35-ATC-01-V02.10 Page 74/145 02.10 / 23.05.2001
4.31 AT+CPIN Enter PIN
Test command
AT+CPIN=?
Response
OK
Read command
AT+CPIN?
Response
TA returns an alphanumeric string indicating whether some password is required
or not.
+CPIN: <code> OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter
<code> READY no further entry needed
SIM PIN ME is waiting for SIM PIN
SIM PUK ME is waiting for SIM PUK
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 ac-
knowledged with error +CME ERROR:18.
Write command
AT+CPIN=<pin
>
[, <new pin>]
Response
TA stores a password, which is necessary before it can be operated on (SIM PIN,
SIM PUK, PH-SIM PIN, etc.). If the PIN is to be entered twice, the TA shall auto-
matically repeat the PIN. If no PIN request is pending, no action is taken and an
error message, +CME ERROR, is returned to TE.
If the PIN required is SIM PUK or SIM PUK2, the second pin is required. This sec-
ond pin, <newpin>, is used to replace the old pin in the SIM.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter
<pin> password (string type) E.g.: AT+CPIN=9515<CR>
<new pin> if the PIN required is SIM PUK or SIM PUK2: new password
Reference
GSM 07.07
Note
1. Attention: After entering a password via AT+CPIN all other commands that
need access to the data on the SIM card may be blocked for up to 20 sec-
onds!
2. Wait 10 seconds after PIN input before using SMS related commands.
3. <pin> and <new pin> can also be entered in double quotes (e.g. ”1234”).
4. See additional Chapter 7.8 „List of PIN-requiring AT Commands“.