# Remaining SIM PIN unlock attempts

**URL:** <https://forum.sierrawireless.com/t/remaining-sim-pin-unlock-attempts/6145>\
**Category:** General wireless topics FAQ\
**Created:** [February 14, 2013, 4:36pm UTC](https://forum.sierrawireless.com/t/remaining-sim-pin-unlock-attempts/6145 "2013-02-14T16:36:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FAQ\_Poster](https://avatars.discourse-cdn.com/v4/letter/f/f9ae1b/32.png) [@FAQ\_Poster](https://forum.sierrawireless.com/u/FAQ_Poster)\
**Post date:** [February 14, 2013, 4:36pm UTC](https://forum.sierrawireless.com/t/remaining-sim-pin-unlock-attempts/6145/1 "2013-02-14T16:36:41Z")

</div>

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.
