# SIM Problem

**URL:** <https://forum.sierrawireless.com/t/sim-problem/1342>\
**Category:** Open AT\
**Created:** [May 30, 2007, 7:56am UTC](https://forum.sierrawireless.com/t/sim-problem/1342 "2007-05-30T07:56:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SunilRao](https://avatars.discourse-cdn.com/v4/letter/s/4af34b/32.png) [@SunilRao](https://forum.sierrawireless.com/u/SunilRao)\
**Post date:** [May 30, 2007, 7:56am UTC](https://forum.sierrawireless.com/t/sim-problem/1342/1 "2007-05-30T07:56:13Z")

</div>

Hi !!!

I m facing a problem that even if the SIM card is removed after the SIM is fully registered, i will still be in the previous status ie. ADL\_SIM\_STATE\_FULL\_INIT. If the module is restarted with SIM card removed then the ADL\_SIM\_STATE\_REMOVED will be displayed.

I’m using adl\_simGetState() function to check SIM state but I didn’t find a way to refresh it’s status.

I get the same results if I subscribe to SIM events using adl\_simSubscribe() instead of calling adl\_simGetState().

With Regards,  
Sunil Rao.M

---

<div class="post-metadata">

**Author:** ![colin-tfe](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@colin-tfe](https://forum.sierrawireless.com/u/colin-tfe)\
**Post date:** [May 30, 2007, 9:40am UTC](https://forum.sierrawireless.com/t/sim-problem/1342/2 "2007-05-30T09:40:48Z")

</div>

Hi Sunil !

I’m using a Q2501B (firmware 652a) and when i remove the sim card (while running and attached to GPRS network) i reveive the following events in my callback functions :

ADL\_GPRS\_EVENT\_ME\_CONTEXT\_DEACT  
ADL\_GPRS\_EVENT\_ME\_DETACH  
ADL\_GPRS\_EVENT\_ME\_UNREG  
ADL\_SIM\_STATE\_REMOVED

(from subscription to GPRS and SIM services)

In the Wavecom documentation (for Open AT 3.04) they say that if you send “AT+CPIN?” command to module when sim card is not present, it answer “+CME ERROR 10”…  
you can maybe try this if the events are not autogenerated for you…
