-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtctime_dsleep(_aligned) do not take in account sleep mode #1843
Comments
@jmattsson Thanks, I did not see #1472 . I dont think replacing I am willing to make a bit more tests, but I could use a bit of guiding, as I found it quite difficult to find good documentation with ESP. I have the feeling that the key is here: but that looks like lots of magic peek pokes I am not very confortable to modify blindly. |
I had a quick dig through So, I guess what we'd like to try is to switch out our
and then use I don't have the time for (or means of testing) that at the moment however, but maybe that will give you something to run with? If you want to be really sneaky you might even be able to supply an override for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Expected behavior
when using rtctime_dsleep and rtctime_dsleep_aligned with option 4, I should get same power consumption as when using node.dsleep():
init.lua used:
wake up consumption is 2uAh
Actual behavior
wake up consumption is 4.57uAh (a bit more than double of waht is expected)
init.lua used is:
Test code
NodeMCU version
master
Hardware
tested with esp12e connected to https://www.msoon.com/LabEquipment/PowerMonitor/
I believe that rtctime is reimplementing its own deepsleep method, and probably it does not take in account the system_deep_sleep_set_option (which we dont have the source code)
Please let me know how I can help while I have access to the power monitor.
The text was updated successfully, but these errors were encountered: