> 20.3 | AT^SCPOL Polling Configuration

> The AT^SCPOL write command serves to start and stop polling a pin or port specified with <io_id>. The pin or port must already be configured via AT^SCPIN or AT^SCPORT. Polling is only applicable to input pins.
> After polling has been activated on a specified pin or port, all new values related to this pin or port will be reported via the "^SCPOL" URC.
> Syntax

> Test Command AT^SCPOL=?
> Response(s)
> ^SCPOL:(list of supported <mode>s), (list of supported <io_id>s)
> OK

> Write Command AT^SCPOL=<mode>, <io_id>
> Response(s)
> OK
> ERROR
> +CME ERROR: <err>

> Reference(s) |  | PIN |  | ASC0 | ASC1 | USB | MUX1 | MUX2 | MUX3 |  |  | Charge | Q | Last
> SIEMENS |  | - |  | + | + | + | + | + | + |  |  | - | + | -

> Unsolicited Result Code
> ^SCPOL: <io_id>, <value>
> Parameter Description

> <mode>(num)

> 0
> Suppress polling
> 1
> Activate polling

> <io_id>(num)

> This can be either a <pin_id> already configured or a <port_id> already opened.

> <value>(num)

> New value on this <io_id>.
> 0
> Low for <pin_id>
> 1
> High for <pin_id>
> 0...1023
> For <port_id>
> Notes

> • | The pins will be polled at every TDMA frame interrupt, i.e. every 4.616ms. In SLEEP mode, the frequency of polling is reduced, as polling will be done only when the module shortly suspends power saving when CTS is activated. So in SLEEP mode polling intervals are extended to a range from 0.9s to 2.7s. After a state change has been detected the "^SCPOL" URC is issued if the state of the pin remains stable for 8 TDMA frames (= 36.93ms) in Normal mode, or accordingly, 0.9s to 2.7s in SLEEP mode.

> • | If the <value> of one or more of the polled pins has changed since polling has been performed last time, or since a particular pin or its entire port have last been queried with AT^SGIO, polling will be suspended to send a URC. There will be one URC reported for each polled pin whose <value> has changed, and one for each polled port with one or more changed pins.