This example demonstrates Power Saving Mode(PSM) in Sim70XX modems along with Deep sleep and Light Sleep modes in esp32. This example enables Power saving mode in Sim70XX modem and tries to synchronise the sleep cycle of the modem with esp32. When the modem wakes up from PSM sleep it wakes up the esp32. While the modem is awake esp32 goes to light sleep.
This example is tested on a SIM7080 modem.
This example is supported only on ESP32, ESP32-S2 and ESP32-S3.
The status pin might not be exposed on a modem. It needs to tapped out from the LED indicator marked as STS.
If the esp32 goes into deep sleep while the modem is awake, esp32 will be awaken by the STATUS pin. So it's recommended to go to light sleep while the modem is awake.
The timeout information is coded in bit format for T3412 and T3324 timer.
To create a project from this example, run:
idf.py create-project-from-example "espressif/esp_modem=1.4.0:modem_psm"