This section is applicable to MC87xx, MC77xx, and SL80xx modems.
Background
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.
Resolution
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
For example:
AT+CSIM =10,“0020008100”
+CSIM: 4,“63C3” displays PIN2 remaining unlock attempts
OK
Last number shows 3 attempts left
AT+CSIM =10,“002C008100”
+CSIM: 4,“63CA” displays PUK2 remaining unlock attempts
OK
Last character shows Hex A (decimal 10) attempts left.