openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.34k stars 228 forks source link

What are the reasons for frequent device restarts? #1284

Open q127981 opened 2 days ago

q127981 commented 2 days ago

I have a BL602 device. After configuring wifi and mqtt information for the device, the device works normally. Then disconnect the WiFi Internet (keep the device connected to WiFi), and the device will restart frequently and automatically. The reason for displaying the error is: BL-RST-SOFTWARE-WATCHDOG But I have disabled the watchdog, it should not work. I want to ask how to prevent the device from being restarted frequently when the connected WiFi has no Internet?

The log of the device is always lost after reboot. I can't get the reason why the device restarts frequently from the log.

Firmware:

rpv-tomsk commented 2 days ago

Catch the same BL-RST-SOFTWARE-WATCHDOG on BL602.

giedriuslt commented 1 day ago

You cannot disable software watchdog, it always works; what is our mqtt config? does it contain dns name? could you try replacing it with IP?

q127981 commented 18 hours ago

You cannot disable software watchdog, it always works; what is our mqtt config? does it contain dns name? could you try replacing it with IP?

Yes, I disabled the watchdog and it still works. My mqtt config: host mqtt.xxxxx.com port 1883 username xxxx password xxxx I changed host to ip, and this problem never occurred again. thank you very much! @giedriuslt

giedriuslt commented 14 hours ago

@openshwprojects maybe we can make dns resolution for mqtt asynchronous? Now it's in the main loop, and if slow (or no-internet) causes reboot