> 2.20.2 | Cyclic restart

> This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Example. To move to these subsections please use the Navigation Frame or the appropriate buttons on the toolbar.

> 2.20.2.1 | Description

> This chapter describes how to schedule a cyclic restart of the ME by using the “AutoExec” option of the AT^SCFG command. Cyclic restart is an effective solution for industrial mobile applications (such as telemetry and remote metering) in the event the GSM network deregisters the mobile due to inactivity.
> The “AutoExec” option enables the ME to automatically execute any AT command or sequence of AT commands, either when a timer expires or when the DTR signal is toggled. For cyclic restart, the timer driven mode applies. To configure cyclic restart, use the AT^SCFG command to set the timer (maximum 240 hours) and specify the reset command to be executed when the time stamp is reached, in the example below this is the command AT+CFUN=1,1.
> IMPORTANT: The “AutoExec” feature is not supported by all Siemens wireless modules. Please refer to [2] for details.

> 2.20.2.2 | Used AT commands

> Command | Explanation
> AT+CFUN | Set phone functionality
> AT^SCFG | Extended Configuration Settings (not supported by all products)

> For further details about the commands see [2].

> 2.20.2.3 | Flow chart

> Figure 179: Cyclic restart

> 2.20.2.4 | Hints

> • | Be careful with small period values to shut down or reset the ME, because only little time remains to change these settings again after restart the ME.

> 2.20.2.5 | Example

> ***************************************
> Comment: Cyclic restart (not supported by all products)
> ***************************************
> ***************************************
> Comment: Reset ME after 1 hour 30 min.
> ***************************************
> Subscr 2 Send: AT^SCFG="AutoExec",1,1,2,5,"AT+CFUN=0,1","001:30:00"
> Subscr 2 Receive: AT^SCFG="AutoExec",1,1,2,5,"AT+CFUN=0,1","001:30:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","0","0","0",""
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","1","1","2","5","AT+CFUN=0,1","001:30:00","001:29:59"
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> ***************************************
> Comment: Query configuration and time.
> ***************************************
> Subscr 2 Send: AT^SCFG?
> Subscr 2 Receive: AT^SCFG?
> Subscr 2 Receive: ^SCFG: "AutoExec","0","0","0","0",""
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","1","1","2","5","AT+CFUN=0,1","001:30:00","001:00:27"
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> ***************************************
> Comment: Query configuration and time.
> ***************************************
> Subscr 2 Send: AT^SCFG?
> Subscr 2 Receive: AT^SCFG?
> Subscr 2 Receive: ^SCFG: "AutoExec","0","0","0","0",""
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","1","1","2","5","AT+CFUN=0,1","001:30:00","000:29:09"
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> ***************************************
> Comment: Query configuration and time.
> ***************************************
> Subscr 2 Send: AT^SCFG?
> Subscr 2 Receive: AT^SCFG?
> Subscr 2 Receive: ^SCFG: "AutoExec","0","0","0","0",""
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","1","1","2","5","AT+CFUN=0,1","001:30:00","000:00:01"
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> Subscr 2 Receive:
> Subscr 2 Receive: ^SCFG: "AutoExec",1,1,2,5,"AT+CFUN=0,1"
> Subscr 2 Receive:
> Subscr 2 Receive: OK
> ***************************************
> Comment: Erase autoexec.
> ***************************************
> Subscr 2 Send: AT^SCFG="AutoExec",0,1,2,5,"AT+CFUN=0,1","001:30:00"
> Subscr 2 Receive: AT^SCFG="AutoExec",0,1,2,5,"AT+CFUN=0,1","001:30:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","0","0","0",""
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
> Subscr 2 Receive: ^SCFG: "AutoExec","0","1","2","0","","000:00:00","000:00:00"
> Subscr 2 Receive:
> Subscr 2 Receive: OK