> 5.2 | AT+CPIN2 PIN2 Authentication

> AT+CPIN2 controls network authentication of the TC65.
> The read command returns an alphanumeric string indicating whether or not network authentication is required.
> The write command allows the TC65 to store the entered password. This may be for example the SIM PIN2 to benefit from the features listed below, or the SIM PUK2 to replace a disabled PIN2 with a new one. Note that PIN2 can only be entered if PIN1 authentication was done.
> If the TC65 is requesting SIM PUK2, use <pin> to enter the PUK2, followed by <new pin> to specify the new PIN2.
> Syntax

> Test Command AT+CPIN2=?
> Response(s)
> OK

> Read Command AT+CPIN2?
> Response(s)
> +CPIN2: <code>
> OK
> ERROR
> +CME ERROR: <err>

> Write Command AT+CPIN2=<pin>[, <new pin>]
> Response(s)
> OK
> ERROR
> +CME ERROR: <err>

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> GSM 07.07 |  | + |  | + | + | + | + | + | + |  |  | - | + | -

> Parameter Description

> <pin>(str)

> Password (string type), usually SIM PIN2 or, if requested, SIM PUK2.

> <new pin>(str)

> If the requested code was SIM PUK2: new password (PIN2).
> See Section 5.1.1, What to do if PIN or password authentication fails? for more information about when you may need to enter the PUK.

> <code>(text)

> READY
> ME is not pending for any password.
> SIM PIN2
> ME is waiting for SIM PIN2.
> This <code> is returned only when PIN2 authentication has not yet been done or has failed ("+CME ERROR:17").
> SIM PUK2
> ME is waiting for SIM PUK2.
> This <code> is returned only when PIN2 authentication has failed and ME is pending for SIM PUK2 (i.e. "+CME ERROR:18").
> Note

> • | Functions accessible only after PIN2 authentication: AT+CACM: Accumulated call meter (ACM) reset or query AT+CAMM: Accumulated call meter maximum (ACMmax) set or query AT+CLCK: Facility lock to "FD" (Fixed dialing phonebook) AT^SLCK: Facility lock to "FD" (Fixed dialing phonebook) AT+CPWD: Change "P2"password AT^SPWD: Change "P2"password AT+CPUC: Price per unit and currency table AT+CPIN2: Enter SIM PIN2 or SIM PUK2 if requested. For example, SIM PIN2 will be needed when you attempt to edit the "FD" phonebook and ME returns "+CME Error 17" or "+CPIN: SIM PIN2". Once the required <pin> has been entered correctly, PIN2 authentication code changes to READY. After 300s, a repetition of the authentication process is required (PIN2 authentication code changes from READY to SIM PIN2).

> Examples

> EXAMPLE 1 | Change PIN2

> AT+CPWD="P2","0000","8888" | (where "0000" = old PIN2 and "8888" = new PIN2)
> OK

> EXAMPLE 2 | Unblock a disabled PIN2

> AT+CPIN2?
> +CPIN2: SIM PUK2 | PIN2 has been disabled, PUK2 must be entered
> OK | to define a new PIN2
> AT+CPIN2=12345678,8888 | where "12345678" is the PUK2, and "8888" the new PIN2.

> EXAMPLE 3 | Write into "FD" phonebook

> AT+CPBS="FD"
> OK
> AT+CPBW=2,"+493012345678",145,"Charly"
> +CME ERROR 17 | access denied due to missing PIN2 authentication
> AT+CPIN2=8888
> OK
> AT+CPBW=2,"+493012345678",145,"Charly"
> OK