This section is applicable to MC87xx, MC77xx, and SL80xx modems.
Some applications need to check remaining SIM PIN unlock attempts and provide notifications to the user.
Recently, a custom AT command (AT+CPINC?) has been added to some minicards to support this feature.
In case where there is no support for AT+CPINC? command, the standard AT+CSIM AT command can be used.
AT+CSIM=10,”0020000100” to check PIN1 remaining unlock attempts
AT+CSIM=10,”002C000100” to check PUK1 remaining unlock attempts
AT+CSIM=10,“0020008100” to check PIN2 remaining unlock attempts
AT+CSIM=10,“002C008100” to check PUK2 remaining unlock attempts
+CSIM: 4,“63C3” displays PIN2 remaining unlock attempts
Last number shows 3 attempts left
+CSIM: 4,“63CA” displays PUK2 remaining unlock attempts
Last character shows Hex A (decimal 10) attempts left.