MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Esp32 Randomly Stops Working

    General Discussion
    2
    5
    168
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Xilef
      Xilef last edited by

      Re: Display different Roomtemperature on MagicMirror

      Hey, I wanted to give a little update on my 2 Esp32 temperature and humidity sensors, from which the data is displayed on my MagicMirror.
      They have been working almost perfect for almost 3 Months now, but theres still one major problem.

      Every 24 Hours or less they randomly stop Working. Until now I ignored it and just pressed the “RST” Button to reset them and than they would work perfect for another 24 Hours, but in the last time it got very annoying. I tried an different Power Supply but that doesn´t worked either, especially since another ESP32 with WLED and the same Power Supply runs 24/7 with no problems.

      Maybe this isn’t the right place, but does anyone have any ideas what could be causing the problem, or how to fix the error?

      wishmaster270 1 Reply Last reply Reply Quote 0
      • wishmaster270
        wishmaster270 Module Developer @Xilef last edited by

        @Xilef
        I do have the same problem with two different types of my ESP32 boards. This one of AZDelivery powered with different cables and power supplies and this one of Olimex powered over PoE.
        I replaced the AZDelivery with a this and now i do not have any problems.
        In case of the Olimex board i could not replace it easily cause i need the power over ethernet feature. I integrated a check of the current uptime to the sketch and restart the board programatically every configured amount of time:

        #define MAX_MILLIS_RUNTIME 300000
        //some more code
        
        //loop function
        void loop() {
          unsigned long curTime = millis();
        
          if(curTime > MAX_MILLIS_RUNTIME){
            ESP.restart();
          }
          //some more code
        )
        

        In my case i reboot the board every 5 minutes but i do not think you need to boot that often. You may need to configure some timeout and reuse settings in the module that displays the values cause of the board being unreachable during the reboot.

        wishmaster270 1 Reply Last reply Reply Quote 0
        • wishmaster270
          wishmaster270 Module Developer @wishmaster270 last edited by

          @Xilef
          Me again…
          I have some problems at the moment with two of my modules counting my water usage and gas usage by reed switches.
          They stop working after 18 hours to 24 hours.
          As i figured out the problem is the MQTT library i use (AsyncMqttClient). I am now porting my sketches back to PubSubClient instead.

          How do you send the data with your boards. Is it still plain TCP or do you use MQTT?

          Xilef 1 Reply Last reply Reply Quote 0
          • Xilef
            Xilef @wishmaster270 last edited by

            @wishmaster270
            I have no idea what I’m using, I just use the sketch you gave me. I added your reboot Programm and now both of them work fine since 4 Days but I only changed it on one Esp.
            So I wonder why there are now no more problems with both.

            wishmaster270 1 Reply Last reply Reply Quote 0
            • wishmaster270
              wishmaster270 Module Developer @Xilef last edited by

              @Xilef
              Just checked the other post.
              The Sketch i gave to you does not use any AsyncTCP libraries so there needs to be some different problem in your case.

              If you still use ArduinoIDE to flash the boards you will have received some updates of the ESP core packages in the last time. Maybe there was fixed a problem and cause of the reflash the changes got active now.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy