SARA-R4/N4 series - AT Commands Manual
UBX-17003787 - R09
8 Security
Page 62 of 307
8 Security
8.1 Enter PIN +CPIN
+CPIN
SARA-R404M SARA-R410M-01B SARA-R410M-02B SARA-R410M-52B SARA-R412M
Modules
SARA-N4
Syntax
PIN required
Settings saved Can be aborted
Response time Error reference
Attributes
full
No
No
No
8.1.1 Description
Enter PIN. If no PIN request is pending, the corresponding error code is returned. If a wrong PIN is given three
times, the PUK must be inserted in place of the PIN, followed by the <newpin> which replaces the old pin in
the SIM.
8.1.2 Syntax
Type
Syntax
Response
Example
Set
AT+CPIN=<pin>[,<newpin>]
OK
AT+CPIN="0933"
OK
Read
AT+CPIN?
+CPIN: <code>
OK
+CPIN: SIM PIN
OK
Test
AT+CPIN=?
OK
8.1.3 Defined values
Parameter
Type
Description
<pin>, <newpin>
String
4-to-8 characters long string of decimal digits.
If only PIN is required, <newpin> is not to be entered.
If PUK is required, <pin> must be the PUK and <newpin>, the new PIN code, must be
entered as well.
<code>
String
•
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
•
SIM PIN2: MT is waiting SIM PIN2 to be given
•
SIM PUK2: MT is waiting SIM PUK2 to be given
•
PH-NET PIN: MT is waiting network personalization password to be given
•
PH-NETSUB PIN: MT is waiting network subset personalization password to be
given
•
PH-SP PIN: MT is waiting service provider personalization password to be given
•
PH-CORP PIN: MT is waiting corporate personalization password to be given
•
PH-SIM PIN: MT is waiting phone to SIM/UICC card password to be given
8.1.4 Notes
• The command needs the SIM module to work correctly
• If PIN is not inserted the following situation can occur:
AT+CMEE=2
OK
AT+COPS=0
+CME ERROR: SIM PIN required
AT+CMEE=0
OK