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. ESP8266 MySensors Gateway Crashes when Node Connects

ESP8266 MySensors Gateway Crashes when Node Connects

Scheduled Pinned Locked Moved Troubleshooting
22 Posts 8 Posters 9.7k Views 6 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.
  • YveauxY Offline
    YveauxY Offline
    Yveaux
    Mod
    wrote on last edited by
    #2

    Power supply seems to be a recurring problem with ESP8266.
    I assume you power the ESP board through the USB connector?
    Do you power it from your PC then?
    USB 2.0 can supply a maximum power of 500mA, which is on the edge for ESP.
    Try powering the board from a 1Amp minimum supply and see if things improve.

    http://yveaux.blogspot.nl

    1 Reply Last reply
    0
    • L Offline
      L Offline
      Luppie
      wrote on last edited by Luppie
      #3

      I did power it from my PC, so i tried your suggestion and powered it with an 'official' Raspberry Pi 2A power adapter. IMHO this is the most stable 2A power adapter.

      Unfortunately it still crashes and reboots.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vickey
        wrote on last edited by
        #4

        I am using mysensor 1.5.1 ESP8266 mysensor gateway. But It is not starting up. I am using 2A power supply. Here is the log.

        ESP8266 MySensors Gateway
        Connecting to Ahmed
        ............Connected!
        IP: 192.168.0.31
        
        ctx: cont 
        sp: 3ffebcb0 end: 3ffec010 offset: 01b0
        
        >>>stack>>>
        3ffebe60:  3ffea8af 000000ff 3ffea940 40205384  
        3ffebe70:  3ffea8af 00000030 3ffea940 402053d0  
        3ffebe80:  a8e1fc0a 000000a8 3ffea940 40205587  
        3ffebe90:  3ffea8af 0000000a 3ffea940 40204dd7  
        3ffebea0:  3fff1e58 4024371c 3fff235c 0000000a  
        3ffebeb0:  000000ff 3ffea8a8 3ffea8af 40203c7d  
        3ffebec0:  3ffec070 00000001 3ffebf2f 4020c5a8  
        3ffebed0:  402421c0 00000001 00000001 3ffec070  
        3ffebee0:  00000033 0000000a 3ffec070 4020b6e1  
        3ffebef0:  3ffebf2e 40243cbc 3fff1e58 0000000a  
        3ffebf00:  000000ff 00000000 0000000d 4020335e  
        3ffebf10:  40217e00 3ffead34 3ffe9390 3ffe93a4  
        3ffebf20:  00000065 3ffea940 3ffebf65 40203379  
        3ffebf30:  00000000 3ffea940 3ffea94a 0000000a  
        3ffebf40:  000000ff 00000000 3ffea8a8 40203f38  
        3ffebf50:  0000001d 3ffea8af 3ffea940 402053bc  
        3ffebf60:  3ffe92f8 a8e1fc0a 3ffea940 00000001  
        3ffebf70:  00000001 00000000 3ffea8a8 402040b0  
        3ffebf80:  00000001 0000000a 3ffea8a8 4020422b  
        3ffebf90:  00000000 0000000a 3ffea8a8 40204381  
        3ffebfa0:  0000007f 3ffec03c 40201cac 3ffeaff0  
        3ffebfb0:  40202320 00000001 0000000a 40201d4f  
        3ffebfc0:  1f00a8c0 00ffffff 0100a8c0 3ffec03c  
        3ffebfd0:  3ffe9328 3ffead34 3ffec070 402026ef  
        3ffebfe0:  3ffe98a8 1f00a8c0 00000000 00000000  
        3ffebff0:  3fffdc20 00000000 3ffec034 40201d1f  
        3ffec000:  00000000 00000000 3ffeaff0 40100398  
        <<<stack<<<
        
         ets Jan  8 2013,rst cause:1, boot mode:(3,7)
        
        load 0x4010f000, len 1264, room 16 
        tail 0
        chksum 0x42
        csum 0x42
        ~ld
        

        May someone help me?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          Luppie
          wrote on last edited by
          #5

          I also tried to use 1.5.1, but the ESP8266Gateway sketch won't even compile, so I'm stuck with no Gateway.

          1 Reply Last reply
          0
          • L Offline
            L Offline
            Luppie
            wrote on last edited by
            #6

            Yesterday I installed 1.5.1 Development.
            Today I installed 1.5.1 master

            Still having the same crash when a sensor connects to the gateway.

            To rule out if the problem is on the controller side, I installed a different controller (MajorDomo) to see how the gateway reacts.

            Unfortunately the gateway still crashes.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              twisted
              wrote on last edited by
              #7

              Well I'm sort of glad, I thought I was the only one with this issue. I have tried numerous power supplies, including one I am sure is very stable and can supply the required load.

              I am using 1.5.

              1 Reply Last reply
              0
              • hekH Offline
                hekH Offline
                hek
                Admin
                wrote on last edited by
                #8

                Sorry to hear about your troubles. Very strange. My ESP gateway seems very stable here, shuffling messages back and forth. I just feed in from my mac (but with vanilla NRF-radio on it).

                Yesterday I installed 1.5.1 Development.

                Guess you mean 1.6.0-beta? That is what I mainly run here now...

                What happens if you simply use netcat to send messages to the ESP?

                > nc 192.168.1.xx 5003
                (then send the serial messages..)
                42;1;1;47;0;Hello
                
                1 Reply Last reply
                0
                • L Offline
                  L Offline
                  Luppie
                  wrote on last edited by
                  #9

                  When I use a telnet session from Putty, the crash does occur.
                  result.JPG

                  When i connect from linux with nc, the crash doesn't occur.
                  result2.JPG

                  What could be the problem ? I exactly followed the build instructions. I even bought the hardware from the ebay-links provided.

                  1 Reply Last reply
                  0
                  • hekH Offline
                    hekH Offline
                    hek
                    Admin
                    wrote on last edited by
                    #10

                    Looks like you're sending some trash characters when connecting with telnet (just after "Client 0"-print).

                    I have no idea what that crap is.

                    But as it works with nc you must be doing something strange...

                    1 Reply Last reply
                    0
                    • mfalkviddM Offline
                      mfalkviddM Offline
                      mfalkvidd
                      Mod
                      wrote on last edited by
                      #11

                      telnet is more than just a TCP connection. Not much more, but it will always send some extra characters. Netcat is a pure TCP connection.

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        Luppie
                        wrote on last edited by
                        #12

                        Thanks hek & mfalkvidd.
                        Reading your replies made me think that maybe the problem isn't the gateway, but the sensor sending some crap.
                        I will build a new sensor toninght and test it.

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          Luppie
                          wrote on last edited by
                          #13

                          Hmmm, I've build the most basic actuator "BinarySwitchSensor" and again when it connects, the gateway crashes. I'm totaly lost here.

                          1 Reply Last reply
                          0
                          • hekH Offline
                            hekH Offline
                            hek
                            Admin
                            wrote on last edited by
                            #14

                            So it crashes both when controller connects to gateway or when it receives a radio message?

                            1 Reply Last reply
                            0
                            • L Offline
                              L Offline
                              Luppie
                              wrote on last edited by Luppie
                              #15

                              When no controller is connected and a message is received it doesn't crash.

                              It only crashes when a controller is connected and the gateway receives a radio message.
                              (I used the tempsensor sketch and the binaryswitch sketch to test)
                              (But the testmessage : 42;1;1;47;0;Hello didn't crash the gateway)

                              Right now I just uploaded the SerialGateway sketch to 1 of my sensors and that is working correctly with my Domoticz Controller. But I still prefer a wifi gateway.

                              T 1 Reply Last reply
                              0
                              • L Luppie

                                When no controller is connected and a message is received it doesn't crash.

                                It only crashes when a controller is connected and the gateway receives a radio message.
                                (I used the tempsensor sketch and the binaryswitch sketch to test)
                                (But the testmessage : 42;1;1;47;0;Hello didn't crash the gateway)

                                Right now I just uploaded the SerialGateway sketch to 1 of my sensors and that is working correctly with my Domoticz Controller. But I still prefer a wifi gateway.

                                T Offline
                                T Offline
                                Tronix
                                wrote on last edited by
                                #16

                                @Luppie Hi. Have you ever been able to solve this issue? I have the same here.

                                Tronix

                                1 Reply Last reply
                                0
                                • L Offline
                                  L Offline
                                  Luppie
                                  wrote on last edited by
                                  #17

                                  Nope, I never resolved it. So I've build a USB gateway, thats is working great for 4 months now.

                                  T 1 Reply Last reply
                                  1
                                  • L Luppie

                                    Nope, I never resolved it. So I've build a USB gateway, thats is working great for 4 months now.

                                    T Offline
                                    T Offline
                                    Tronix
                                    wrote on last edited by
                                    #18

                                    @Luppie Ok, thanks. I also have the USB and LAN gateway running. But it would be very helpful having the WIFI version on other locations in the house. Thanks anyway.

                                    1 Reply Last reply
                                    0
                                    • Mark SwiftM Offline
                                      Mark SwiftM Offline
                                      Mark Swift
                                      wrote on last edited by Mark Swift
                                      #19

                                      I also experience a crash... I've tried using master and dev, I see the crash when Domoticz tries to connect to the gateway (Using the MySensors LAN option)... When running without Domoticz, it seems to run fine without issue (watching debug all appears a-okay).

                                      Spent almost the last day trying to work it out, no luck so far!

                                      1 Reply Last reply
                                      0
                                      • hekH Offline
                                        hekH Offline
                                        hek
                                        Admin
                                        wrote on last edited by
                                        #20

                                        Could this be related to your problems?
                                        http://forum.mysensors.org/topic/3141/big-wish-a-working-system-including-up-to-date-reference/22

                                        Mark SwiftM 2 Replies Last reply
                                        0
                                        • hekH hek

                                          Could this be related to your problems?
                                          http://forum.mysensors.org/topic/3141/big-wish-a-working-system-including-up-to-date-reference/22

                                          Mark SwiftM Offline
                                          Mark SwiftM Offline
                                          Mark Swift
                                          wrote on last edited by
                                          #21

                                          @hek I'm not sure as I'm using a nodemcu

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          22

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.1k

                                          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