esp lost connection
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 230
- Joined: 13 Apr 2017, 23:09
esp lost connection
hi, i have a nodemcu with espeasy build 20190226
every two or three days i lost connection of nodecmu and not respond anymore also http is not responding.
the only solution is power off manually and power on again, in this case become working again.
it's stressful because happened one a week minimum.
i try to change nodemcu, or flash again, or change version but noting change.
i use as device: pulse plugin (refresh every 30sec) ; DS1820sensor (refresh avery 40sec) ; and PCF to control 8ch relay
domoticz controll with http and mqtt enabled.
how i can solve?
wifi signal is good.
i also see that sometimes (once a day minimum) the esp reboot by itself.
if it's usefull i can post a log, if someone tell me how i have to export a usefull log.
if someone has suggestion please let me know.
thanks
every two or three days i lost connection of nodecmu and not respond anymore also http is not responding.
the only solution is power off manually and power on again, in this case become working again.
it's stressful because happened one a week minimum.
i try to change nodemcu, or flash again, or change version but noting change.
i use as device: pulse plugin (refresh every 30sec) ; DS1820sensor (refresh avery 40sec) ; and PCF to control 8ch relay
domoticz controll with http and mqtt enabled.
how i can solve?
wifi signal is good.
i also see that sometimes (once a day minimum) the esp reboot by itself.
if it's usefull i can post a log, if someone tell me how i have to export a usefull log.
if someone has suggestion please let me know.
thanks
Re: esp lost connection
Thanks to TD-er, the releases after mega-20190827 might fix the WiFi hangs. So try flashing the latest Mega version.
https://github.com/letscontrolit/ESPEasy/releases
- Thomas
https://github.com/letscontrolit/ESPEasy/releases
- Thomas
-
- Normal user
- Posts: 230
- Joined: 13 Apr 2017, 23:09
Re: esp lost connection
hi and thanks for reply.
i'll update to this version.
just a question: i need to select somethin of this option in advance menu?
eg: "restart wifi lost connection" what should do?
force wifi no sleep? could help?
periodical send gratuitos ARP could help?
thanks
i'll update to this version.
just a question: i need to select somethin of this option in advance menu?
eg: "restart wifi lost connection" what should do?
force wifi no sleep? could help?
periodical send gratuitos ARP could help?
thanks
Re: esp lost connection
See here for an explanation of the options: https://espeasy.readthedocs.io/en/lates ... p#advanced
Gratuitous ARP is one you may want to check if you sometimes experience the node does not react anymore, or only after 10 - 60 seconds retrying.
Force WiFi B/G if you currently have a low RSSI value (< -70 dB)
Connection Failure Threshold will trigger a reboot if there have been a lot of failed connect attempts. So for example if you experience what you did experience (should not happen anymore
)
Best to leave it at 0, unless needed otherwise.
Gratuitous ARP is one you may want to check if you sometimes experience the node does not react anymore, or only after 10 - 60 seconds retrying.
Force WiFi B/G if you currently have a low RSSI value (< -70 dB)
Connection Failure Threshold will trigger a reboot if there have been a lot of failed connect attempts. So for example if you experience what you did experience (should not happen anymore

Best to leave it at 0, unless needed otherwise.
Re: esp lost connection
Hello everyone,
I am using ESP32 NODEMCU and working on reset on connection lost. But ESP32 is not resetting when there is no connection between the ESP32 & the wifi. Need some help. I am using ESPeasy(ESP32), Domoticz, and a local host wifi router.
I am using ESP32 NODEMCU and working on reset on connection lost. But ESP32 is not resetting when there is no connection between the ESP32 & the wifi. Need some help. I am using ESPeasy(ESP32), Domoticz, and a local host wifi router.
Re: esp lost connection
This setting you refer to is about counting the number of failed connect attempts.
However if it isn't connected to WiFi at all, there will be no connect attempt.
What you can do is keep track of the events in the rules and issue a reboot if it fails to connect or reconnect.
Just some example of how to do it (not tested, see https://espeasy.readthedocs.io/en/lates ... vents.html for more ideas)
However if it isn't connected to WiFi at all, there will be no connect attempt.
What you can do is keep track of the events in the rules and issue a reboot if it fails to connect or reconnect.
Just some example of how to do it (not tested, see https://espeasy.readthedocs.io/en/lates ... vents.html for more ideas)
Code: Select all
on System#Boot do
timerSet,1,60 // Set timer 1
endon
on WiFi#Disconnected do
timerSet,1,60 // Set timer 1
endon
on WiFi#Connected do
timerSet,1,0 // Clear timer 1
endon
On Rules#Timer=1 do
Reboot
endOn
Re: esp lost connection
Okay. Will check. Thank YouTD-er wrote: ↑12 Nov 2020, 10:03 This setting you refer to is about counting the number of failed connect attempts.
However if it isn't connected to WiFi at all, there will be no connect attempt.
What you can do is keep track of the events in the rules and issue a reboot if it fails to connect or reconnect.
Just some example of how to do it (not tested, see https://espeasy.readthedocs.io/en/lates ... vents.html for more ideas)
Code: Select all
on System#Boot do timerSet,1,60 // Set timer 1 endon on WiFi#Disconnected do timerSet,1,60 // Set timer 1 endon on WiFi#Connected do timerSet,1,0 // Clear timer 1 endon On Rules#Timer=1 do Reboot endOn

Re: esp lost connection
I don't advise using the Connection Failure Threshold feature. Otherwise plan on experiencing random reboots that will occur from it during normal use. Instead, use rules as suggested by TD-er.
- Thomas
- Thomas
Who is online
Users browsing this forum: Ahrefs [Bot] and 13 guests