-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What conditions will trigger a software restart? #2678
Comments
There are quite a few configuration changes that will cause a restart. But those are generally user initiated. What is the issue you are trying to troubleshoot? Depending on how you have it configured, not being able to connect to WiFi or MQTT can cause it too. |
I'm using a sonoff basic in a 3D printed wall switch case and while it is fully seated in the case on my desk, it restarts about once every 30 seconds to 2 minutes. If I pull the board up slightly off of the bottom of the box so that the contacts aren't near the plastic, the restart interval will go up to once every hour. If I take it out of the case entirely, it will run all day without issue. All the while, I see MQTT errors like the following regularly, regardless of how often it actually restarts. The reported WIFI strength ranges from 75-100 seemingly independent if it is in the box or not. The fluctuation looks more directly tied to me being between the device and the AP than if it is in the box. |
I would suggest including the information requested for all issues. In particular status 0. I will bet your device/environment is one that doesn't work well with core 2.4.x and that is at least part of the problem. |
I have several sonoff basic boards in the standard cases working for 20+ days without an issue plus I have 3 APs. The status 0 details: |
You might be right, but as predicted, you are using core 2.4.x. Some people/devices have had good luck with that, others not so much. You might try compiling with core 2.3.0 and try it on the device that is most problematic. It will either make it better or it won't. I don't believe it will make it worse. Several people have said the same things as you have and then tried 2.3.0 and discovered that their devices were much more reliable on 2.3.0 |
Note that your time is not set, which means your NTP servers are not set correctly or the device does not have access to the internet. |
@Frogmore42 Maybe the device fails under some circumstances when no correct time is set... |
I'll give core 2.3.0 a shot. I didn't get what you had meant earlier, thanks for the persistence in the suggestion. As for the time, in the status details above, the device had just reset and it has been consistently taking between 15 and 30 seconds for the time to update. After I pulled the status details, the time was set successfully. |
@Jason2866 I have a device that has been running for a month or so with the wrong time, so that doesn't seem to cause a reset to occur. @AndrewHoover I have a NodeMCU that is running core 2.4.0. It doesn't stay up for more than a day. I had assumed it was because it was somewhat defective, but maybe it is because of the 2.4.0 core. I will have to try it with 2.3.0 and see if that improves things or not. |
@AndrewHoover 15 to 30s to get the time is a little slow, but not unreasonable, mine usually get it within 10s |
15 to 30 sec is long. Do you have a really slow internt connection? |
@Frogmore42 Yes that was old build. In later releases Theo added the timer function with sunrise and sunset function. Maybe this functions produces errors with wrong time.... |
Ok, I am simply amazed at the difference between 2.3 and 2.4.1!
I fully buttoned up the board in the wall switch box as before and, while it hasn't been online for long, it is definitely performing far better than it was on 2.4.1. Fully enclosed I have RSSI values of 90+ Thank you very much for the recommendation to change board versions. This is incredible! |
I believe the newer versions use lwip2, which is a networking library. It is supposed to be better, and I am sure it is in some ways. But, it seems not so much in others. |
I see. |
I'll let @arendst answer that. I am pretty sure he knows about the issue, which is with the underlying esp8266 Arduino code and not Tasmota. |
Might be related to one or more of the many issues like these: esp8266/Arduino#4689 |
Hi If your issue is solved, please close it. Thanks 👍 |
Yes! |
This is not so much an issue but a question.
What are the failures/conditions under which the software will perform a restart? I ask because I am trying to troubleshoot an issue and I need to narrow down the possibilities.
I have a sonoff basic and I am using version 5.13.1.
The text was updated successfully, but these errors were encountered: