Ultra Low Power Mode
This API is used to set the boot sources and switch the device to ultra-low power state. Ultra- low power mode is achieved by shutting down major components (e.g. app processor, modem, etc.) while keeping an ultra-low power component alive. This ultra-low power component is used to monitor boot sources that are set before switching to ultra-low power mode.
Typical Usage
Typically, this API is used like this:
- Boot sources are set by calling le_ulpm_BootOnGpio()/le_ulpm_BootOnTimer(). If multiple boot sources are configured, the module will boot if any of the boot sources are triggered.
- After configuring boot source, le_ulpm_ShutDown() can be called to initiate shutdown (i.e. shutt down all major components like the app processor, modem, etc.).
Sample Code
This C code sample calls low power manager API to switch low power mode:
void SwitchToLowPowerMode(void){char version[LE_ULPM_MAX_VERS_LEN+1];// Get ultra low power manager firmware version"Failed to get ultra low power firmware version");LE_INFO("Ultra Low Power Manager Firmware version: %s", version);// Boot after 1000 second of shutdown.// Boot if GPIO36 voltage level is high.// Boot if GPIO38 voltage level is low.// Initiate shutdown.}
Copyright (C) Sierra Wireless Inc.