-->
Page 1 of 2

differentiate from deep sleep reset and button click reset

PostPosted: Tue Mar 10, 2020 3:24 pm
by danilomna
Hi friends,

I´m trying to design a circuit where device wake time to time from deep sleep mode but also can be wake up by a button on reset pin.

problems is doesn´t matter is I wake from deepsleep timer or button the
ESP.getResetReason() is always the same:
REASON_DEEP_SLEEP_AWAKE
due to this I can not differentiate the reset conditions.
Any clue what is wrong?

Any help will be very appreciated.

cheers

Re: differentiate from deep sleep reset and button click res

PostPosted: Sun Apr 12, 2020 6:13 am
by eriksl
Because the ESP really can't see the difference. DeepSleep = off with only the RTC module remaining on.

You'll have to capture the signal of the clock button asap after booting and decide on it's state whether it was used.

Re: differentiate from deep sleep reset and button click res

PostPosted: Sun Apr 12, 2020 9:46 am
by perel josn
danilomna wrote:Hi friends,

I´m trying to design a circuit where device wake time to time from deep sleep mode but also can be wake up by a button on reset pin.

problems is doesn´t matter is I wake from deepsleep timer or button the
ESP.getResetReason() is always the same:
REASON_DEEP_SLEEP_AWAKE
due to this I can not differentiate the reset conditions.
Any clue what is wrong?

Any help will be very appreciated.

cheers


Hi buddy, yes exact same issue. Tried contacting via support mail but no real world solution. Any update on your side?

Regards,

Re: differentiate from deep sleep reset and button click res

PostPosted: Sun Apr 12, 2020 1:59 pm
by JurajA
this was discussed here before. the deep sleep wakeup reset over pin 16 is a workaround for a bug in the ROM bootloader. without this reset the esp8266 wakes-up but doesn't boot to user application.