LTE Module Series
EC25&EC21 AT Commands Manual
EC25&EC21_AT_Commands_Manual 63 / 231
OK
5.3. AT+CPIN Enter PIN
The command is used to enter a password or query whether or not the module requires a password which
is necessary before it can be operated. The password may be (U)SIM PIN, (U)SIM PUK, PH-SIM PIN,
etc.
Parameter
AT+CPIN Enter PIN
Test Command
AT+CPIN=?
Response
OK
Read Command
AT+CPIN?
Response
TA returns an alphanumeric string indicating whether or not
some password is required.
+CPIN: <code>
OK
Write Command
AT+CPIN=<pin>[,<new_pin>]
Response
TA stores a password, such as (U)SIM PIN, (U)SIM PUK, etc.,
which is necessary before it can be operated. 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 (U)SIM PUK or (U)SIM PUK2, the
second pin is required. This second pin
<new_pin>
is used to
replace the old pin in the (U)SIM.
OK
Maximum Response Time
5s
Reference
3GPP TS 27.007
<code>
READY
MT is not pending for any password
SIM PIN
MT is waiting for SIM PIN to be given
SIM PUK
MT is waiting for SIM PUK to be given
SIM PIN2
MT is waiting for SIM PIN2 to be given
SIM PUK2
MT is waiting for SIM PUK2 to be given
PH-NET PIN
MT is waiting for network personalization password to be given
PH-NET PUK
MT is waiting for network personalization unblocking password