Suddenly deadlock during boot

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
warp
New user
Posts: 5
Joined: 23 May 2022, 15:39

Suddenly deadlock during boot

#1 Post by warp » 23 May 2022, 18:34

Hello,

over the last 2 years I installed 5 ESP8266 using espeasy in my house. Some measure temperatures, some have a smog sensor and one has a pulse counter; but all of them send their data via MQTT to an iobroker instance.
They all were installed at different dates. But the day before yesterday they all stopped sending measurement values.
Additionally I cannot access their web interface and I even cannot ping them.
Pushing the reset button or dis- and reconnecting the power supply does not help.

When I connect one of them to a PC using USB for receiving the serial output, I can see the boot sequence stops while printing the line "Info : Current Time..."

Code: Select all

77 : Info   : WIFI : Set WiFi to OFF
196 : Info   :

INIT : Booting version: mega-20220328 (ESP82xx Core 2843a5ac, NONOS SDK 2.2.2-dev(38a443e), LWIP: 2.1.2 PUYA support)
196 : Info   : INIT : Free RAM:28928
198 : Info   : INIT : Manual Reboot #6 Last Action before Reboot: Background Task Last systime: 82 - Restart Reason: External System
199 : Info   : FS   : Mounting...
224 : Info   : FS   : Mount successful, used 75802 bytes of 957314
244 : Info   : CRC  : SecuritySettings CRC   ...OK
247 : Info   : INIT : I2C
248 : Info   : INIT : SPI not enabled
250 : Info   : Time set to 82.000 Time adjusted by 81751.00 msec. Wander: 0.000 msec/second Source: RTC at boot
252 : Info   : Current Time 
The Last Action before Reboot isn't always the same. I also saw "Const Interval: TIMER_100MSEC".

I flashed the complete firmware again to the ESP8266, but that didn't fix the problem.
In order to revive the board I had to flash the blank_4MB.bin image and start from scratch.

Does anyone have an idea how I can get the other 4 devices back to life without starting from scratch?

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Suddenly deadlock during boot

#2 Post by TD-er » 23 May 2022, 20:13

Are they reachable from the internet?
Or is the iobroker accessable from the internet?

warp
New user
Posts: 5
Joined: 23 May 2022, 15:39

Re: Suddenly deadlock during boot

#3 Post by warp » 23 May 2022, 22:50

The ESPs are not reachable. iobroker itself isn't, too. The Raspberry which is running iobroker also runs Grafana for displaying the measurements. The Grafana website is accessible from the internet.

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Suddenly deadlock during boot

#4 Post by TD-er » 23 May 2022, 23:16

I cannot explain why they all suddenly stopped.
Only things I can think of is that they either received some command from the MQTT broker to a similar topic they all subscribe to, of there has been some power surge?
Another this might be that the units all got scanned by some network tool to which they act strange, but that seems highly unlikely as this must have been some very specific call.

warp
New user
Posts: 5
Joined: 23 May 2022, 15:39

Re: Suddenly deadlock during boot

#5 Post by warp » 24 May 2022, 22:17

Yesterday evening the 2 ESPs with the temperature sensors surprisingly came back to life! I didn't do anything with them - no reset, no power off/on. All of a sudden Grafana showed new measurement values. The one ESP which I had connected to my PC for reading the serial output when booting also started talking again. Only my pulse counter ESP is still silent.

Very strange!

I suspect my wifi access point of locking out ESPs. Either because of their MAC address prefix or any other wifi related criterion. I can't think of any other explanation.
I didn't reboot my wifi AP yesterday. And all of my other wifi devices (smartphones, RPi, ...) never stopped working.

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Suddenly deadlock during boot

#6 Post by TD-er » 24 May 2022, 22:42

Do you have something like WiFi mesh running? (thus several APs from the same brand creating a mesh to extend WiFi coverage)

User avatar
Ath
Normal user
Posts: 3386
Joined: 10 Jun 2018, 12:06
Location: NL

Re: Suddenly deadlock during boot

#7 Post by Ath » 24 May 2022, 22:53

When having such Asus mesh, this thread may be helpful: viewtopic.php?f=6&t=8851&p=55920&hilit=asus+mesh#p55920
/Ton (PayPal.me)

warp
New user
Posts: 5
Joined: 23 May 2022, 15:39

Re: Suddenly deadlock during boot

#8 Post by warp » 24 May 2022, 23:53

No, I don't have a mesh running. Just a single router from my internet provider Vodafone (cable network).

TD-er
Core team member
Posts: 8607
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Suddenly deadlock during boot

#9 Post by TD-er » 25 May 2022, 00:19

And no other access point using the same SSID?

warp
New user
Posts: 5
Joined: 23 May 2022, 15:39

Re: Suddenly deadlock during boot

#10 Post by warp » 27 May 2022, 22:31

I checked with the App Fing on my smartphone but it showed only my own networks (2,4 GHz and 5 GHz) with that SSID.

Maybe it had something to do with the wifi channels. Maybe my router switched my network to another channel. From my experience the ESPs need some time to reconnect in that case. But I never saw them taking days for that.
Anyway - in the meantime - they are all back. 3 of them came back without my help after a few days, number 4 needed a power off/on switch. Because I cleared number 5 completely, I had to reconfigure it. But now it's working again also.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests