Skip to main content

XAPS - Power Saving Mode

Configures the device Power Saving Mode (PSM). When active, the device enters a low-power sleep state and wakes up periodically or on configured events.

Format

  • Query PSM config: >QXAPS<
  • Disable PSM: >SXAPSE<
  • Enable PSM: >SXAPSA[EXTPWR][INPUTS][MOTION][SLEEP_TIME][WAKE_TIME]<
  • Immediate sleep: >SXAPSI<
  • Query LPM-with-time flag: >QXAPSM<
  • Set LPM-with-time flag: >SXAPSM[x]<
  • Response (disabled): >RXAPSE<
  • Response (enabled): >RXAPSA[EXTPWR][INPUTS][MOTION][SLEEP_TIME][WAKE_TIME]<
  • Response (LPM-with-time): >RXAPSM[x]<
FieldValuesDescription
EXTPWR0 or 1Wake on external power restore
INPUTS0 or 1Wake policy based on digital inputs
MOTION0 or 1Wake on accelerometer motion
SLEEP_TIME4 digitsTime before entering sleep (minutes)
WAKE_TIME4 digitsWake-up interval (minutes)
x0 or 1LPM-with-time: 1 enables timed wake-up on low-battery PSM, 0 disables it

Examples

Configure PSM: sleep after 60 minutes, wake every 300 minutes, wake on motion:

>SXAPSA10100600300<
ValueMeaning
1Wake on external power
0Do not wake on inputs
1Wake on motion
0060Sleep after 60 minutes
0300Wake every 300 minutes

Query PSM state:

>QXAPS<
>RXAPSA10100600300<

Disable PSM:

>SXAPSE<

Force immediate sleep:

>SXAPSI<

Enable low-battery PSM with timed wake-up:

>SXAPSM1<

Disable low-battery PSM timed wake-up (immediate shutdown on low battery):

>SXAPSM0<

Query LPM-with-time flag:

>QXAPSM<
>RXAPSM1<

Low-Battery PSM Modes

When the battery falls below the critical threshold and no external power is connected, the device enters Power Saving Mode automatically. The PSM configuration used depends on the LPM-with-time flag:

>SXAPSM[x]<ConfigurationBehaviour
0 (default)PSM_LOW_BATT_CONFIG (0x201)Device shuts down; no scheduled wake-up
1PSM_LOW_BATT_CONFIG_WITH_TIME (0xA0201)Device enters LPM with timed wake-up capability

The flag is stored persistently and survives reboots.

SignalDescription
G15PSM scheduled
G16PSM canceled
F11PSM session ended (wake-up)
F13External power present

Defaults and Limits

  • Uses mode flags (A, E, I, M) and fixed-width schedule fields.
  • Time fields are encoded as 4-digit values.
  • Default LPM-with-time flag is 0 (disabled).