Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. WifiGateway crashes after 1 or 2 days

WifiGateway crashes after 1 or 2 days

Scheduled Pinned Locked Moved Troubleshooting
12 Posts 2 Posters 3.5k Views 2 Watching
  • 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.
  • K Offline
    K Offline
    kr0815
    wrote on last edited by
    #1

    Any ideas how o solve that problem ?
    I built a WifiGateway, after 1 - 2 days, it crashes, i can´t reach it through telnet
    But a ping is still working.

    As it tkaes that long, it´s not that easy to find the problem

    Is there any debug feature ?

    Y 1 Reply Last reply
    0
    • K kr0815

      Any ideas how o solve that problem ?
      I built a WifiGateway, after 1 - 2 days, it crashes, i can´t reach it through telnet
      But a ping is still working.

      As it tkaes that long, it´s not that easy to find the problem

      Is there any debug feature ?

      Y Offline
      Y Offline
      Yveaux
      Mod
      wrote on last edited by
      #2

      @kr0815 best debug option is to connect something to the serial port (before the crash) and watch the logs.
      I've seen similar behavior on a regular Ethernet getaway, so not sure if it's really WiFi gateway related.

      http://yveaux.blogspot.nl

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kr0815
        wrote on last edited by
        #3

        Hello Yveaux,

        i tried to debug with serial connected, but

        for hours only that:

        0;255;3;0;9;read: 102-102-0 s=1,c=1,t=0,pt=7,l=5,sg=0:19.0
        0;255;3;0;9;read: 102-102-0 s=0,c=1,t=1,pt=7,l=5,sg=0:43.9
        0;255;3;0;9;read: 102-102-0 s=255,c=3,t=0,pt=1,l=1,sg=0:95
        0;255;3;0;9;read: 112-112-0 s=0,c=1,t=0,pt=7,l=5,sg=0:24.0
        0;255;3;0;9;read: 112-112-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.9
        0;255;3;0;9;read: 112-112-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.9
        
        

        then not responsible, no fault message

        after waiting for a while i get

        LmacRxBlk:1
        LmacRxBlk:1
        LmacRxBlk:1
        LmacRxBlk:1
        LmacRxBlk:1
        LmacRxBlk:1
        LmacRxBlk:1
        LmacRxBlk:1
        

        After a reboot:

        0;255;3;0;9;Starting gateway (RNNGE-, 2.0.0-beta)
        0;255;3;0;9;Radio init successful.
        ....scandone
        state: 0 -> 2 (b0)
        .state: 2 -> 3 (0)
        state: 3 -> 5 (10)
        add 0
        aid 3
        pm open phy_2,type:2 0 0
        cnt 
        chg_B:-60
        
        connected with Power-LAN, channel 6
        dhcp client start...
        ...ip:192.168.178.84,mask:255.255.255.0,gw:192.168.178.1
        .IP: 192.168.178.84
        0;255;3;0;9;Init complete, id=0, parent=0, distance=0
        0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
        0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
        0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
        
        Y 1 Reply Last reply
        0
        • K kr0815

          Hello Yveaux,

          i tried to debug with serial connected, but

          for hours only that:

          0;255;3;0;9;read: 102-102-0 s=1,c=1,t=0,pt=7,l=5,sg=0:19.0
          0;255;3;0;9;read: 102-102-0 s=0,c=1,t=1,pt=7,l=5,sg=0:43.9
          0;255;3;0;9;read: 102-102-0 s=255,c=3,t=0,pt=1,l=1,sg=0:95
          0;255;3;0;9;read: 112-112-0 s=0,c=1,t=0,pt=7,l=5,sg=0:24.0
          0;255;3;0;9;read: 112-112-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.9
          0;255;3;0;9;read: 112-112-0 s=1,c=1,t=0,pt=7,l=5,sg=0:23.9
          
          

          then not responsible, no fault message

          after waiting for a while i get

          LmacRxBlk:1
          LmacRxBlk:1
          LmacRxBlk:1
          LmacRxBlk:1
          LmacRxBlk:1
          LmacRxBlk:1
          LmacRxBlk:1
          LmacRxBlk:1
          

          After a reboot:

          0;255;3;0;9;Starting gateway (RNNGE-, 2.0.0-beta)
          0;255;3;0;9;Radio init successful.
          ....scandone
          state: 0 -> 2 (b0)
          .state: 2 -> 3 (0)
          state: 3 -> 5 (10)
          add 0
          aid 3
          pm open phy_2,type:2 0 0
          cnt 
          chg_B:-60
          
          connected with Power-LAN, channel 6
          dhcp client start...
          ...ip:192.168.178.84,mask:255.255.255.0,gw:192.168.178.1
          .IP: 192.168.178.84
          0;255;3;0;9;Init complete, id=0, parent=0, distance=0
          0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
          0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:0
          0;255;3;0;9;read: 111-111-0 s=1,c=1,t=16,pt=0,l=1,sg=0:1
          
          Y Offline
          Y Offline
          Yveaux
          Mod
          wrote on last edited by
          #4

          @kr0815 said:

          LmacRxBlk

          Googled, this came up.
          Here they say it's related to the maximum simultaneous socket connections to the ESP, which is set to 5 in hardware.
          Could it be that you open more than 5 sockets simultaneously?

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kr0815
            wrote on last edited by kr0815
            #5

            Thanks a lot for your help, it´s really frustrating :-)

            unfortunately, there are notr more than 5 connections, only my FHEM - installation and me playing around with one, max 2 instances of putty

            but as i´m experimenting with it right now it looks like there is a problem with the radio

            I tried re-pluging power many times, sometimes i get in in a state where it says "radio init ok", but doesn´t receive messages

            I re-checked all the wires (only 10K Pull-Down at GPIO15 , the other lines to Radio are in Mega-Ohm Areas, so no wrong resistors on my ESP-Board)
            I tried to add small / large capacitors to the Vcc Line
            I swapped the NRF2401 - 3 different batches now, which even look different.
            I swapped the wall-wart to a regulated laboratory power supply
            --> all the same result

            I have about 5 of these ESP-Boards running with ESP-Easy since weeks, so i can´t imagine it´s a fake ESP-Unit ?

            Any further ideas what to try ?

            Y 1 Reply Last reply
            0
            • K kr0815

              Thanks a lot for your help, it´s really frustrating :-)

              unfortunately, there are notr more than 5 connections, only my FHEM - installation and me playing around with one, max 2 instances of putty

              but as i´m experimenting with it right now it looks like there is a problem with the radio

              I tried re-pluging power many times, sometimes i get in in a state where it says "radio init ok", but doesn´t receive messages

              I re-checked all the wires (only 10K Pull-Down at GPIO15 , the other lines to Radio are in Mega-Ohm Areas, so no wrong resistors on my ESP-Board)
              I tried to add small / large capacitors to the Vcc Line
              I swapped the NRF2401 - 3 different batches now, which even look different.
              I swapped the wall-wart to a regulated laboratory power supply
              --> all the same result

              I have about 5 of these ESP-Boards running with ESP-Easy since weeks, so i can´t imagine it´s a fake ESP-Unit ?

              Any further ideas what to try ?

              Y Offline
              Y Offline
              Yveaux
              Mod
              wrote on last edited by
              #6

              @kr0815 said:

              my FHEM - installation and me playing around with one, max 2 instances of putty

              It could still be that 5 or more connections are open simultaneously, when e.g. a connection is dropped and not nicely shut down before a new one is opened.

              http://yveaux.blogspot.nl

              1 Reply Last reply
              0
              • K Offline
                K Offline
                kr0815
                wrote on last edited by kr0815
                #7

                Maybe you are right
                I set up two gateways, only one is connected to FHEM, now i swapped them in FHEM, the connected one crashed
                I´ll ask the FHEM guys for help, but as long as i´m playing with putty, is there any command to check / close connections ?
                Is it ok just to close putty, or should i send something to close the connection ?

                Y 1 Reply Last reply
                0
                • K kr0815

                  Maybe you are right
                  I set up two gateways, only one is connected to FHEM, now i swapped them in FHEM, the connected one crashed
                  I´ll ask the FHEM guys for help, but as long as i´m playing with putty, is there any command to check / close connections ?
                  Is it ok just to close putty, or should i send something to close the connection ?

                  Y Offline
                  Y Offline
                  Yveaux
                  Mod
                  wrote on last edited by
                  #8

                  @kr0815 Could also be caused by the ESP side, keep that in mind. Maybe search around for 'closed connections' w.r.t. ESP.

                  http://yveaux.blogspot.nl

                  1 Reply Last reply
                  0
                  • K Offline
                    K Offline
                    kr0815
                    wrote on last edited by
                    #9

                    Sorry, this i don´t understand ? What do you mean wth by the ESP side ? Changes in the ESP Code needed ?
                    The more i think about it, the less i know...
                    WHat causes the Wifi Gateway sometines after replugging power to say radio init ok, but not receiving messages ?

                    Y 1 Reply Last reply
                    0
                    • K kr0815

                      Sorry, this i don´t understand ? What do you mean wth by the ESP side ? Changes in the ESP Code needed ?
                      The more i think about it, the less i know...
                      WHat causes the Wifi Gateway sometines after replugging power to say radio init ok, but not receiving messages ?

                      Y Offline
                      Y Offline
                      Yveaux
                      Mod
                      wrote on last edited by
                      #10

                      @kr0815 said:

                      the ESP side

                      I mean that when a connection is disconnected abruptly, the socket connection might also not be closed correctly on the ESP side.
                      It can go wrong on either the server or the client side; I don't know.

                      http://yveaux.blogspot.nl

                      1 Reply Last reply
                      0
                      • K Offline
                        K Offline
                        kr0815
                        wrote on last edited by
                        #11

                        I still have the same problem, it worked now for about 5 days on the workbench, brought it to the final desination, crashes after some hours

                        But i always could still ping the ESP

                        What i wonder most about is, that sometimes when i replug the power it says radio init ok, but it doesn´t receive messages
                        ( i see on other gateway that messages are definetly sent)

                        Is there any possibility to restart the gateway remotely ? Or only chance to replug power ?
                        Could it be it´s a problem with the initialization of the radio ?

                        Is it maybe because in my set-up, the gateway is only receiving, never sending anything ?

                        The gateway lays avbout one meter away from a raspberry (no wifi) , but i can´t imagine that causes the problems ?

                        Any help / ideas welcome.

                        1 Reply Last reply
                        0
                        • K Offline
                          K Offline
                          kr0815
                          wrote on last edited by kr0815
                          #12

                          i investigated further:
                          i have 2 gateways, both dev version, one from today, the other one about 2 weeks old

                          I tried the relay sketch (newest dev version) - gave it an ID trough my ethernet gateway
                          --> directly after connecting the relay sensor both ESP gateway crash - no fault messages in serial monitor

                          DId anybody try the wifi gateway together with a repeater ?

                          1 Reply Last reply
                          0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          16

                          Online

                          12.0k

                          Users

                          11.2k

                          Topics

                          113.4k

                          Posts


                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • MySensors
                          • OpenHardware.io
                          • Categories
                          • Recent
                          • Tags
                          • Popular