Specifications
AT Command Set
TC35-ATC-01-V02.10 Page 75/145 02.10 / 23.05.2001
4.32 AT+CPIN2 Enter PIN2
Test command
AT+CPIN2=?
Response
OK
Read command
AT+CPIN2?
Response
TA returns an alphanumeric string indicating whether some password is required
or not.
+CPIN2: <code> OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter
<code> READY ME is not pending for any password
SIM PIN2 ME is waiting SIM PIN2 to be given (this <code> is
recommended to be returned only when the last
executed command resulted in PIN2 authentication
failure (i.e. +CME ERROR:17)).
SIM PUK2 ME is waiting SIM PUK2 to be given (this <code> is
recommended to be returned only when the last
executed command resulted in PUK2 authentication
failure (i.e. +CME ERROR:18)).
Write command
AT+CPIN2=<pin
>
[, <new pin>]
Response
TA stores a password, which is necessary before it can be operated (SIM PIN2,
SIM PUK2, etc.). If the PIN is to be entered twice, the TA shall automatically
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 PUK2, the second pin is required. This second pin,
<newpin>, is used to replace the old pin2 in the SIM.
OK
If error is related to ME functionality:
+CME ERROR: <err>
Parameter
<pin> password (string type) should be entered in double quotes.
E.g.: AT+CPIN2=”9515”
<new pin> if the PIN required is SIM PUK2: new password
Reference Note
Commands dependent on PIN2:
“AT+CACM Accumulated call meter (ACM) reset or query”
“AT+CAMM Accumulated call meter maximum (ACMmax) set or query”
“AT+CLCK Facility lock”
“AT+CPIN Enter PIN”
“AT+CPWD Change password”
“AT^SLCK Facility lock (including self-defined locks)”
“AT+CPUC Price per unit and currency table”
AT+CPWD is the only command, which PIN2 cannot be entered directly with the
AT+CPIN command, the PIN2 can only be set if expected (+CPIN: SIM PIN2).
To manipulate the "FD" Phonebook, PIN2 has to be entered before.
If PIN2 is now set with AT+CPIN2="PIN2", it is possible writing to the FD
Phonebook.
Using the command AT+CLCK="FD",x PIN2 is again set to not set. Therefore
writing to the FD Phonebook is no longer possible.