# Turning off GSM stack from OpenAt

**URL:** <https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256>\
**Category:** Open AT\
**Created:** [February 2, 2006, 11:00pm UTC](https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256 "2006-02-02T23:00:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkp](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kkp](https://forum.sierrawireless.com/u/kkp)\
**Post date:** [February 2, 2006, 11:00pm UTC](https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256/1 "2006-02-02T23:00:08Z")

</div>

I’m having some problems turning off the GSM stack from OpenAT.  
According to the AT commandset, I need to send either AT+CFUN=0 or  
AT+CPOF to turn off the GSM stack (for powersaving), and then AT+CFUN=1  
to turn it back on.

I use the following API call to turn off the stack:  
adl\_atCmdCreate("\rAT+CFUN=0\r", FALSE, myHandler ,"\*", NULL);

But I get an adl\_atResponse\_t with type ADL\_STR\_ERROR. Have I overlooked  
anything? I can turn off the GSM stack over rs232 fine with AT+CFUN=0,  
but just not from OpenAt. Any hints?

---

<div class="post-metadata">

**Author:** ![kkp](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kkp](https://forum.sierrawireless.com/u/kkp)\
**Post date:** [February 2, 2006, 11:19pm UTC](https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256/2 "2006-02-02T23:19:04Z")

</div>

Two things I found out:  
1: The ON/OFF input was in the wrong position  
2: There shouldn’t be any \r around the command.

Now it appears to work.

---

<div class="post-metadata">

**Author:** ![kkp](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kkp](https://forum.sierrawireless.com/u/kkp)\
**Post date:** [February 3, 2006, 12:07am UTC](https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256/3 "2006-02-03T00:07:54Z")

</div>

OK - I’ve gotten a little further now. I can turn off the GSM stack with AT+CPOF from OpenAt, and that works as it should.

Now, the documentation says to turn the stack back on with a AT+CFUN=1, which I’ve tried. But that resets the module, and restarts the OpenAt application as well. Is there no way to restart just the GSM stack, and let the OpenAt program continue running?

I’ve also tried AT+COPS=0, but that gives +CME ERROR: 3

---

<div class="post-metadata">

**Author:** ![pvg](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@pvg](https://forum.sierrawireless.com/u/pvg)\
**Post date:** [February 14, 2006, 8:55am UTC](https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256/4 "2006-02-14T08:55:08Z")

</div>

No, You have no other way, unless restart the module with “AT+CFUN=1”.

---

<div class="post-metadata">

**Author:** ![idoreis](https://avatars.discourse-cdn.com/v4/letter/i/59ef9b/32.png) [@idoreis](https://forum.sierrawireless.com/u/idoreis)\
**Post date:** [August 31, 2008, 10:48am UTC](https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256/5 "2008-08-31T10:48:40Z")

</div>

Did anyone tried to use the “AT+WREGC” command to register/deregsiter from GSM/GPRS.  
Does it effect the radio functinalities (on and off)?

---

<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:** [September 1, 2008, 6:05am UTC](https://forum.sierrawireless.com/t/turning-off-gsm-stack-from-openat/256/6 "2008-09-01T06:05:29Z")

</div>

> [@'AT Commands Interface Guide for Open AT® Firmware v7.1'](#):
>
> After the +WREGC mode is set to 1 (AT+WREGC=1), the Wireless CPU® enters the Spy Mode immediately. During the Spy Mode, MS is in IMSI detached state, for both GSM and GPRS, but keeps monitoring serving cell and all surrounding cells; only emergency call is allowed.

(my emphasis)

So the radio functionalities must still be running.
