Enter pin2 +cpin2, Pin remaining attempt number +cpinc – Multi-Tech Systems CDMA Wireless Modem User Manual
Page 52
Chapter 7 - SIM Card Operational Commands
Multi-Tech Systems, Inc. CDMA Wireless AT Commands - PN S000294C
52
Enter PIN2 +CPIN2
Description: This command is used to validate the PIN2 code (CHV2), or to validate the PUK2 code
(UNBLOCK CHV2) and to define a new PIN2 code. Of course, the +CPIN command allows
PIN2 or PUK2 codes to be validated, but only when the last command executed resulted in
PIN2 authentication failure. PIN2 length is between 4 and 8 digits. The PUK2 length must be
8 digits.
Syntax:
Command syntax: AT+CPIN2=
Command
Possible Responses
AT+CPIN2=1234
OK
Note: PIN2 code is correct
After 3 unsuccessful attempts, PUK2 will then be required. PUK2 validation forces the user
to enter a new PIN2 code as a second parameter and this will be the new PIN2 code if
PUK1 validation succeeds. The application therefore uses this command:
Command
syntax:
AT+CPIN2=
Command
Possible Responses
AT+CPIN2=00000000,1234
Note: Enter PUK2 and new PIN2
+CME ERROR: 16
Note: Incorrect PUK2
AT+CPIN2=12345678,1234
Note: Enter PUK2 and new PIN2, 2nd attempt
OK
Note: PUK2 correct, new PIN2 stored
To ascertain which code must be entered (or not), the following query command can also be
used: AT+CPIN?
The possible responses are:
+CPIN: READY
ME is not pending for any password
+CPIN: UIM PIN2
CHV2 is required
+CPIN: UIM PUK2
PUK2 is required
+CME ERROR:
The product requires that the PIN2 code be successfully entered in order to write a entry into
the Fix Dialing Phonebook (FDN).
Command
Possible Responses
AT+CPBS=”FD”
Note: Select Phonebook FDN
OK
AT+CPBW=5,”12345678”,145”test1”
Note: Write entry 5 in the FDN
+CME ERROR: 17
Note: PIN2 not yet entered
AT+CPIN2=1234
Note: Enter PIN2
OK
Note: PIN2 successfully entered
AT+CPBW=5,”12345678”,145”test1”
Note: Write entry 5 in the FDN
OK
Note: Command now successful
PIN Remaining Attempt Number +CPINC
Description: This command is used to get the number of valid attempts for PIN1 (CHV1), PIN2 (CHV2),
PUK1 (UNBLOCK CHV1) and PUK2 (UNBLOCK CHV2) identifiers.
Values:
For this to work, the card should be present at the time of initialization. Otherwise, an error
will be sent (+CME ERROR: 10).
Syntax:
Command syntax: AT+CPINC
Response
syntax:
+CPINC:
Command
Possible Responses
AT+CPINC
Note: Get the number of attempts left
+CPINC: 2,3,10,10
OK
Note: First CHV1 attempt was a failure
AT+CPINC?
Note: Get the number of attempts left
+CPINC: 2,3,10,10
OK
Note: First CHV1 attempt was a failure