Can you please calculate power consumption at different stages as show above.It will be very useful to calculate battery life.FanOfHue wrote: ↑16 Oct 2019, 20:00ESPNOW was a small but useful side step to improve the firmware for use on the LSC devices.
For all that have asked for more detailed timing specifics, i hooked up a logic analyzer to get some accurate timings.
Global graph, edge triggered on the reed contact, checking VCC power line and serial communications:
As mentioned, the doorsensor needs or just takes 500 mSeconds before power-up the ESP module. This seems unavoidable.
From there we see three phases, zoom in to the active part:
Bootloader part is fixed to 64 mSeconds.
Init part is currently 78 mSeconds, maybe there's something to gain if we look more into code detail
Communications is 144 mSeconds. In fact only the last one provides the real status, but it seems that we need all to make the "setup" button logic work.
This needs more testing, but for now i'm happy with the results.
The ESP is active for only 300 milliSeconds.