I thought I would raise the topic again as the Photon is in the works.
After reading many of the threads on sleep modes and low power consumption - a topic that was active many months ago - there were suggestions from @BDub about using a regulator with a sleep control pin as well as bringing out support for Vbat.
I wanted to post this in the Hardware section in hopes the new Photon may incorporate some of these suggestions.
As for the Software - all of the threads dropped off around March - has anyone been able to successfully get DEEP_SLEEP working?
There was a comment from @kennethlimcp
In regards to DEEP_SLEEP restarting the user code again, does that mean the behavior is as if the core just restarted when returning from DEEP_SLEEP?
UPDATE - Just checked the documentation on DEEP_SLEEP and it basically resets the core on return from DEEP_SLEEP.
I already manage the WiFi (CC3000) in my user code, what I am looking for is a way to have the STM32 go into sleep without affecting the CC3000.
If the only options are the Spark.sleep() then how do they interact with SYSTEM_MODES? If I have set SYSTEM_MODE(MANUAL) and use Spark.sleep(SLEEP_MODE_DEEP, 600) will the core restart correctly?
I was hoping for a mode that retained memory variables but placed the processor into a low power mode, if none such mode exists I guess I can store my variables in EEPROM before entering SLEEP_MODE_DEEP and then restore them after returning in my setup().
I’m curious what others are doing?