# Reset PIN Code Value

**URL:** <https://forum.sierrawireless.com/t/reset-pin-code-value/2344>\
**Category:** Legacy AirPrime modules\
**Created:** [July 21, 2008, 1:43pm UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344 "2008-07-21T13:43:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pironex](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pironex](https://forum.sierrawireless.com/u/pironex)\
**Post date:** [July 21, 2008, 1:43pm UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344/1 "2008-07-21T13:43:41Z")

</div>

Hello,

I want to reset the PIN (i entered before to log in), so that i can get to the PIN input prompt (without the need to perform a complete restart) and log in with a different Sim Card.  
I tried “AT+COPS=2” but it only logged me out of the telephone network and didn’t reset the PIN.

Does anyone know how to do this?

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [July 21, 2008, 7:09pm UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344/2 "2008-07-21T19:09:12Z")

</div>

Which “PIN” are you talking about?

The AT commands available for controlling the SIM PIN are described in the AT Commands manual…

---

<div class="post-metadata">

**Author:** ![ToF](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ToF](https://forum.sierrawireless.com/u/ToF)\
**Post date:** [July 22, 2008, 7:18am UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344/3 "2008-07-22T07:18:30Z")

</div>

Could you be more precise about what are you looking for ?

- Do you intend to connect 2 SIM card, then switch from one to another ?
- Do you just want to disable the SIM, then reconnect with it ?

…

---

<div class="post-metadata">

**Author:** ![pironex](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pironex](https://forum.sierrawireless.com/u/pironex)\
**Post date:** [July 22, 2008, 7:19am UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344/4 "2008-07-22T07:19:12Z")

</div>

I mean the PIN value which is saved/cached by the adl\_simSubscribe(adl\_simHdlr\_f SimHandler,ascii \* PinCode) function.  
My Firmware version is 663c00 and the OS is 4.23.02, but I don’t find a command to log off the SIM (the saved/cached PIN value) and to relog with:

```auto
if(adl_simGetState() == ADL_SIM_STATE_PIN_WAIT)
{
    adl_simSubscribe(mySIMHandle,”00000”);
}
```

(I don’t want to perform a system restart)

@ToF  
In the moment i have only one SIM slot and want to log off and close the connection to the SIM, put another SIM inside and log in again with the new SIM and login PIN.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [July 22, 2008, 9:39am UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344/5 "2008-07-22T09:39:49Z")

</div>

> [@pironex](#):
>
> I mean the PIN value which is saved/cached by the adl\_simSubscribe(adl\_simHdlr\_f SimHandler,ascii \* PinCode) function.

The adl\_simSubscribe function does not save or cache any PIN value!

When you call the adl\_simSubscribe function, you have to supply the appropriate PIN value in that call!

If your application is not supporting your requirement, then you need to fix the application.

---

<div class="post-metadata">

**Author:** ![ToF](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ToF](https://forum.sierrawireless.com/u/ToF)\
**Post date:** [July 23, 2008, 6:51am UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344/6 "2008-07-23T06:51:48Z")

</div>

> [@pironex](#):
>
> In the moment i have only one SIM slot and want to log off and close the connection to the SIM, put another SIM inside and log in again with the new SIM and login PIN.

OK, so may i’m stupid but why not doing this:

- Don’t try to close the connection to the SIM.
- Simply remove current SIM (SIM card slot accept hot plug from my mind)
- This will automatically close the SIM connection
- Then, insert your new SIM
- Then, enter new PIN code

By proceeding like this, i feel that you will not perform any complete restart. “Log off” and “close”, as you say, are automatic when you remove the SIM.

---

<div class="post-metadata">

**Author:** ![pironex](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@pironex](https://forum.sierrawireless.com/u/pironex)\
**Post date:** [July 23, 2008, 8:42am UTC](https://forum.sierrawireless.com/t/reset-pin-code-value/2344/7 "2008-07-23T08:42:01Z")

</div>

It doens’t work with adl\_simSubscribe(…) because it re-login automatically, even if i remove and insert the same SIM Card. I can’t retype the Login-PIN with this function (don’t get PIN\_OK and SIM\_FULL\_INIT). I’ve tested it whit a new Project and got the same effect, but if i use “AT+CPIN” it work. This instruction doesn’t store the session/PIN/whatever and i can change the SIM Card and retype the Login-PIN.

The problem is solved now.  
Thanks for your effort!
