8.1.4 +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 dependent. Typically it is 3 attempts for PIN, 10 attempts for
PUK.
This command will return error if SIM is not inserted.
Command
Read
The following table shows the +TPIN parameters.
<Parameter>
<chv1>
<chv2>
<unbl_chv1>
<unbl_chv2>
Example:
AT+TPIN?
+TPIN: 3,10,3,10
OK
AT+CPIN="7777"
+CME ERROR: incorrect password
AT+TPIN?
+TPIN: 2,10,3,10
OK
G5/G6-Family AT Commands User Manual
Syntax
Response/Action
AT+TPIN?
+TPIN: <chv1>,
<unb1_chv1>,<chv2>,<unb1_chv2>
or:
+CME ERROR: <err>
Description
Number of remaining PIN attempts
Number of remaining PIN2 attempts
Number of remaining PUK attempts
Number of remaining PUK2 attempts
Remarks
Page 123 of 243