-->
Page 1 of 1

Two different reset/boot triggers

PostPosted: Tue Feb 21, 2017 4:42 am
by TrialAndError
Hello,

I'm new to the field IOT with the ESP8266. A real newbie, so please be patient.

I develop a battery driven application where my ESP-01 board is in dsleep() for electricity saving and must be booted through 2 distinct events from the low sleep.

A variant would be Reset and PowerOn. However, I have no distinction with node.bootreason() between Reset and PowerOn. Both provide 2,6 as result. According to the documentation, PowerOn should be 1,0. I'm using Nodemcu 2.0.0.

Next idea would be by using a PCF8574A with 2 separate resets to switch the reset pin of the ESP-01 and each a separate pin of the PCF8574A. If timing fits, this could be a solution. However, I have no idea how this would be wired.

Last idea. I use two ESP-01s. This works, but halvs battery life. Therefore, I would like to prefer one of the other two versions.

Can somebody help me with it.

Thank you in advance

TrialAndError

Re: Two different reset/boot triggers

PostPosted: Tue Feb 21, 2017 5:44 pm
by TrialAndError
Hi folks,

found a solution myself. The ESP-01 has two reset pins: The RST pin, of course, and the CHPD pin works the same way. And both delivers different boot reasons.

I'm lucky,

TrialAndError