Xinyuan-LilyGO / LilyGo-T-Call-SIM800

https://www.aliexpress.com/item/33045221960.html
482 stars 239 forks source link

Not able to wake ESP32 from deepsleep with modem or PMU #166

Closed d0ct0rd-dalimo closed 3 years ago

d0ct0rd-dalimo commented 3 years ago

Hi there!

In schematic, I see the issue of not being able to use both PMU and GPRS modem as wake-up sources due to schematic specialties. When RI is active, modem pulls it down, the same thing for PMU Here is the schematic of RI level converter: image For PMU, only delimiting resistor: image For PMU, only pull-up: image

Both of them are connected to pins 33 and 35 respectively, which supports ext1 wake up in ESP32. EXT1 in ESP32 supports only 2 wake-up modes:

Solution for design change: add inverters before ESP32 pins

Workarounds for current design:

  1. Use PMU and modem as different wake-up sources, configure bitmask for one of sources, set ext1 for ALL_LOW, another wake-up source set to ext0.
    • doesn't increase power consumption
    • for another external wake-up sources design will be hardly constraint
  2. Periodically or constantly, poll wake-up sources with ULP
    • enables to use another external wake-up sources
    • increases power consumption
    • the risk to miss wake-up signal
LilyGO commented 3 years ago

Thank you for your offer. Solution for Design Change : But adding triodes to esp32 pins also increases sleep power consumption.