Reset the ESP by a rule

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Reset the ESP by a rule

#1 Post by kr0815 » 28 May 2017, 19:40

I have one of my many ESPEasy-Setups running just to remotely turn on a fan for a few minutes (bath)
Unfortunately, this one looses connection after a few days
The strange thing, it doesn´t span it´s own network then, just gone.
A power reset brings it back alive
(I´m running V147)

My idea now, reset it by a rule like every 2 hours, what do you think?

kr0815
Normal user
Posts: 136
Joined: 18 Nov 2015, 18:24

Re: Reset the ESP by a rule

#2 Post by kr0815 » 05 Jun 2017, 14:06

Sorry for the Typo in the headlined, fixed now

So any thoughts about it?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Reset the ESP by a rule

#3 Post by grovkillen » 05 Jun 2017, 14:26

ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: Reset the ESP by a rule

#4 Post by papperone » 05 Jun 2017, 22:12

I'm not sure a reboot every 2h is a solution that can work.
- it can reboot the module while the fan is working and I don't consider this acceptable (but that is me and how I see the automation system)
- depending on various factors ESPEasy takes anyhow several seconds to reboot, this means you could not have a reactive action when needed (turning on the fan)
- this behaviour is a symptom of an issue (most probably hardware but not 100% sure)
- then if you still want to use the "easy" solution I would suggest the usage of an external watchdog (it's easy to build with few very common components) that will reset the module only when it becomes non-responsive or under specific conditions
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: Reset the ESP by a rule

#5 Post by Shardan » 05 Jun 2017, 22:33

Agree with papperone.

It might be possible to reset the ESP automatically but that's just a second class remedy.
There is an issue definitely.

As long as it runs check the free memory now and then - if it is permanently
decreasing there is a bug somewhere in the software. But I don't think so.

As you switch a fan it's more likely there is a problem from power supply,
getting spikes from the relay or the fan motor now and then. The ESP
(and many other devices) are somewhat sensitive at this point.
This is the reason in many cases if strange behaviour occurs.

Can you give some more info? Schematic? Picture(s)?
It's diffcult to help with no knowledge about the setup.

Regards
Shardan
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 59 guests