AT Commands Reference
172 98-08901C68-O
4.9.1.3 +CPIN, Enter PIN for Unlocking SIM Card or Enter PUK for Unblocking SIM Card
This command locks the SIM card, and therefore is only relevant for phones that use SIM cards. It unlocks the SIM card when
the proper SIM PIN is provided and unblocks the SIM card when the proper SIM PUK is provided.
The SIM card is unlocked only once the provided pin is verified as the SIM PIN. If the required PIN (determined by the error
code returned from the requested operation or the Read command) 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 card. When entering the pin, a <new pin> is not required.
A SIM card related error is returned if an AT command operation is unsuccessful due to a SIM card problem. The following
table shows the SIM card errors:
Set Command
The Set command sends the g18 the password that is necessary before it can be operated (SIM PIN or SIM PUK). If there is no
PIN request pending, no action is taken towards the g18, and an error message, +CME ERROR, is returned to the terminal.
Note
The following commands are accepted when the g20 is awaiting the SIM PIN or SIM PUK: +CGMI, +CGMM,
+CGMR, +CGSN, D112; (emergency call), +CPAS, +CFUN, +CPIN, +CDIS (Read and Test command only),
+CIND (Read and Test command only), all basic AT commands, +CBAUD, +CEER, +CGMI, +CGMM, +CGMR,
+CGSN, +CIP, +CIPE, +CKPD, +CLAC, +CLCC, +CLVL, +CMEE, +CMER, +CMUX, +CR, +CRC, +CSCB,
+CSCR, +CSQ, +GCAP, +GMI, +GMM, +GMR, +GSN, +IFC, +IPR, +MCWAKE, +MDES, +MECC, +MSCTS,
+MTCTS, +MTDTR and +CRSM (ICC ID only).
Note
The SIM card lock is another level of security independent of the phone lock (See “Access Control Commands” on
page 170 for more information.)
Table 80. SIM Card Errors
Error Description
10? SIM not inserted SIM Card is not inserted
11? SIM PIN required SIM Card waiting for SIM PIN to be entered
12? SIM PUK required SIM PIN is blocked
13? SIM failure SIM Card is permanently blocked
17? SIM PIN2 required SIM Card is waiting for SIM PIN2 to be
entered
18? SIM PUK2 required SIM PIN2 is blocked