8.3 Enter PIN +CPIN

27.0073GPPAT command set for User Equipment (UE)Release 18TS

Table 62: +CPIN parameter command syntax

Command

Possible response(s)

+CPIN=<pin>[,<newpin>]

+CME ERROR: <err>

+CPIN?

+CPIN: <code>

+CME ERROR: <err>

+CPIN=?

Description

Set command sends to the MT a password which is necessary before it can be operated (SIM PIN, SIM PUK, PH‑SIM PIN, 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 towards MT and an error message, +CME ERROR, is returned to TE. Refer clause 9.2 for possible <err> values.

NOTE 1: SIM PIN, SIM PUK, PH-SIM PIN, PH-FSIM PIN, PH-FSIM PUK, SIM PIN2 and SIM PUK2 refer to the PIN of the selected application on the UICC. For example, in an UTRAN context, the selected application on the currently selected UICC should be a USIM and the SIM PIN then represents the PIN of the selected USIM. See 3GPP TS 31.101 [65] for further details on application selection on the UICC.

If the PIN required is SIM PUK or SIM PUK2, the second pin is required. This second pin, <newpin>, is used to replace the old pin in the SIM.

NOTE 2: Commands which interact with MT that are accepted when MT is pending SIM PIN, SIM PUK, or PH‑SIM are: +CGMI, +CGMM, +CGMR, +CGSN, D112; (emergency call), +CPAS, +CFUN, +CPIN, +CPINR, +CDIS (read and test command only), and +CIND (read and test command only). It is implementation specific whether additional commands can be accepted when MT is pending SIM PIN, SIM PUK, or PH‑SIM.

Read command returns an alphanumeric string indicating whether some password is required or not.

Defined values

<pin>, <newpin>: string type values

<code> values reserved by the present document:

READY MT is not pending for any password

SIM PIN MT is waiting SIM PIN to be given

SIM PUK MT is waiting SIM PUK to be given

PH-SIM PIN MT is waiting phone‑to‑SIM card password to be given

PH-FSIM PIN MT is waiting phone-to-very first SIM card password to be given

PH-FSIM PUK MT is waiting phone-to-very first SIM card unblocking password to be given

SIM PIN2 MT 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); if PIN2 is not entered right after the failure, it is recommended that MT does not block its operation)

SIM PUK2 MT 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); if PUK2 and new PIN2 are not entered right after the failure, it is recommended that MT does not block its operation)

PH-NET PIN MT is waiting network personalization password to be given

PH-NET PUK MT is waiting network personalization unblocking password to be given

PH-NETSUB PIN MT is waiting network subset personalization password to be given

PH-NETSUB PUK MT is waiting network subset personalization unblocking password to be given

PH-SP PIN MT is waiting service provider personalization password to be given

PH-SP PUK MT is waiting service provider personalization unblocking password to be given

PH-CORP PIN MT is waiting corporate personalization password to be given

PH-CORP PUK MT is waiting corporate personalization unblocking password to be given

Implementation

Mandatory for MT not supporting the +CKPD command and supporting AT commands only.