> 2.6.2 | Cyclic monitoring

> 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.6.2.1 | Description

> This chapter describes cyclic monitoring implemented in the application (polling). To do so, set up your application to send the read form of an AT command at a given polling rate.
> Remember that in terms of power consumption event-driven notification may be more efficient than the cyclic approach. For example, to check the network registration activate the URCs “+CREG: <stat>” or “+CREG: <stat>[, <lac>,<ci>]” rather than sending the AT+CREG? read command in a polling scheme. Also, the signal quality can be polled with AT+CSQ?, but it can be better monitored by activating the event indicator <rssi> provided by AT+CIND. Compare Section 2.6.3.
> The battery charge and/or the current consumption can be polled using the AT^SBC? read command as shown in Section 2.6.2.4. The URC function provided by AT^SBC applies only to undervoltage conditions and, depending on the module type, overvoltage conditions. See examples in Section 2.6.1.5.

> 2.6.2.2 | Used AT commands

> Command | Explanation
> AT+CREG | Network registration
> AT+CSQ | Signal quality
> AT+COPS | Operator selection
> AT^SBC | Battery charging / discharging and charge control

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

> 2.6.2.3 | Flow chart

> Figure 28: Cyclic monitoring

> 2.6.2.4 | Hints

> Not applicable.

> 2.6.2.5 | Example

> ***************************************
> Comment: Cyclic monitoring
> ***************************************
> ***************************************
> Comment: Request network registration.
> ***************************************
> Subscr 1 Send: AT+CREG?
> Subscr 1 Receive: AT+CREG?
> Subscr 1 Receive: +CREG: 2,1,"4EED","A500"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Request signal quality.
> ***************************************
> Subscr 1 Send: AT+CSQ
> Subscr 1 Receive: AT+CSQ
> Subscr 1 Receive: +CSQ: 24,99
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Request current operator.
> ***************************************
> Subscr 1 Send: AT+COPS?
> Subscr 1 Receive: AT+COPS?
> Subscr 1 Receive: +COPS: 0,2,"26207"
> Subscr 1 Receive:
> Subscr 1 Receive: OK
> ***************************************
> Comment: Request Battery charge and current consumption.1
> ***************************************
> Subscr 1 Send: AT^SBC?
> Subscr 1 Receive: AT^SBC?
> Subscr 1 Receive: ^SBC: 0,0,15
> Subscr 1 Receive:
> Subscr 1 Receive: OK

> 1
> The parameters indicated by the read command AT^SBC? depend on the product type. For details please refer to [1] and [2].