+TPIN, Query Number of Remaining SIM PIN/PUK Entering Attempts
This command returns the number of remaining attempts of entering the PIN and PUK for the
SIM card in use. The command returns the number of remaining attempts for PIN1 (CHV1),
PIN2 (CHV2), PUK1 (unblock CHV1) and PUK2 (unblock CHV2).
Number of available attempts is provider dependant. Typically it is 3 attempts for PIN, 10
attempts for PUK.
This command will return error if SIM is not inserted.
The following table shows the +TPIN parameters.
Example
AT+TP IN= ?
+TPIN: 3,10,3,10
OK
AT+CPIN="7777"
+CME ERROR: incorrect password
AT+TP IN?
+TPIN: 2,10,3,10
OK
Command
Type Syntax Response/Action Remarks
Read AT+TPIN? +TPIN:<chv1>,
<unb1_chv1>,<chv2>,
<unb1_chv2>
or
ERROR
Table 3-173:+TPIN Parameters
<Parameter> Description
<chv1> Number of remaining PIN attempts
<chv2> Number of remaining PIN2 attempts
<unbl_chv1> Number of remaining PUK attempts
<unbl_chv2> Number of remaining PUK2 attempts