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 Gateway restarts when data is received from node [Solved]

ESP8266 Gateway restarts when data is received from node [Solved]

Scheduled Pinned Locked Moved Troubleshooting
14 Posts 5 Posters 3.5k Views 4 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.
  • CravecodeC Offline
    CravecodeC Offline
    Cravecode
    wrote on last edited by
    #4

    After giving on up finding a possible solution for the ESP8266 gateway, I decided to focus on potential issues with the sensors. I added a 4.7uF capacitor to the radios on the gateway and sensor as the troubleshooting thread suggested and it fixed my gateway issues.

    1 Reply Last reply
    4
    • mysensors-6043M Offline
      mysensors-6043M Offline
      mysensors-6043
      wrote on last edited by
      #5

      Yes I have the same Situation. nodeMCU with mysensors 2.0 and ESP8266 board version 2.3.0.
      See Article https://forum.mysensors.org/topic/4983/nodemcu-my_gateway_esp8266-and-temp-sensor

      YveauxY 1 Reply Last reply
      0
      • scalzS Offline
        scalzS Offline
        scalz
        Hardware Contributor
        wrote on last edited by
        #6

        @cravecode
        could you tell us which sensors are you using plz ?

        1 Reply Last reply
        0
        • mysensors-6043M Offline
          mysensors-6043M Offline
          mysensors-6043
          wrote on last edited by
          #7

          Yes I use one DS18B20.

          1 Reply Last reply
          0
          • mysensors-6043M mysensors-6043

            Yes I have the same Situation. nodeMCU with mysensors 2.0 and ESP8266 board version 2.3.0.
            See Article https://forum.mysensors.org/topic/4983/nodemcu-my_gateway_esp8266-and-temp-sensor

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

            @mysensors-6043 said:

            Yes I have the same Situation.

            No, you have a different situation, we are trying to help you solve it.
            Please stick to the original thread you started!

            http://yveaux.blogspot.nl

            CurlyWurlyC 1 Reply Last reply
            0
            • YveauxY Yveaux

              @mysensors-6043 said:

              Yes I have the same Situation.

              No, you have a different situation, we are trying to help you solve it.
              Please stick to the original thread you started!

              CurlyWurlyC Offline
              CurlyWurlyC Offline
              CurlyWurly
              wrote on last edited by CurlyWurly
              #9

              removed

              CurlyWurlyC 1 Reply Last reply
              0
              • CurlyWurlyC CurlyWurly

                removed

                CurlyWurlyC Offline
                CurlyWurlyC Offline
                CurlyWurly
                wrote on last edited by
                #10

                Not sure what happened before (!)
                Just to say I still get this problem - I'm not sure if solved or not - so posting some device configurations for people to try .

                I found that in situations 1 and 2, the ESP8266 always resets with WDT when the node tries to send a message.(before a message is sent, the ESP8266 is fine - it just waits).
                Situation 3 works! - It would be good if someone can confirm if Situation 3 is the intended design ( I also tried uncommenting the LED lines - no difference seen) .

                • Situation 1 (Does not work :( ) - 2 devices (Both devices have capacitors added and good power)
                  Device 1 - Sensor node (Uno with motion sensor - added extra line for device ID)
                  Device 2 - Gateway (ESP8266 using the "ESP8266 MQTT Gateway" sketch - No changes to code).

                • Situation 2 (Does not work :( ) - 2 devices (Both devices have capacitors added and good power)
                  Device 1 - Sensor node (Uno with motion sensor - added extra line for device ID)
                  Device 2 - Gateway (ESP8266 using the "gatewayserial" sketch) - No changes to code).

                • Situation 3 - (works! :) ) As above, but with a 3rd device
                  Device 3 - Gateway (Uno with "GatewaySerial" sketch - No change to code

                CravecodeC 1 Reply Last reply
                0
                • CravecodeC Offline
                  CravecodeC Offline
                  Cravecode
                  wrote on last edited by
                  #11

                  @scalz,
                  I'm using the DHT11

                  1 Reply Last reply
                  0
                  • CurlyWurlyC CurlyWurly

                    Not sure what happened before (!)
                    Just to say I still get this problem - I'm not sure if solved or not - so posting some device configurations for people to try .

                    I found that in situations 1 and 2, the ESP8266 always resets with WDT when the node tries to send a message.(before a message is sent, the ESP8266 is fine - it just waits).
                    Situation 3 works! - It would be good if someone can confirm if Situation 3 is the intended design ( I also tried uncommenting the LED lines - no difference seen) .

                    • Situation 1 (Does not work :( ) - 2 devices (Both devices have capacitors added and good power)
                      Device 1 - Sensor node (Uno with motion sensor - added extra line for device ID)
                      Device 2 - Gateway (ESP8266 using the "ESP8266 MQTT Gateway" sketch - No changes to code).

                    • Situation 2 (Does not work :( ) - 2 devices (Both devices have capacitors added and good power)
                      Device 1 - Sensor node (Uno with motion sensor - added extra line for device ID)
                      Device 2 - Gateway (ESP8266 using the "gatewayserial" sketch) - No changes to code).

                    • Situation 3 - (works! :) ) As above, but with a 3rd device
                      Device 3 - Gateway (Uno with "GatewaySerial" sketch - No change to code

                    CravecodeC Offline
                    CravecodeC Offline
                    Cravecode
                    wrote on last edited by Cravecode
                    #12

                    @CurlyWurly,

                    My situation involves 2 devices:

                    • Device 1 - Gateway (ESP8266 + NRF24L01)
                    • Device 2 - Temp sensor (NRF24L01 + DHT11)

                    FYI: I have a 4.7uF capacitor across the GND and VCC pins of the NRF24L01 on both devices.

                    This may sound silly, but make sure your ESP8266 is booted into the correct mode:
                    GPIO 0 = High
                    GPIO 2 = High
                    GPIO 15 = Low

                    CurlyWurlyC 1 Reply Last reply
                    0
                    • CravecodeC Cravecode

                      @CurlyWurly,

                      My situation involves 2 devices:

                      • Device 1 - Gateway (ESP8266 + NRF24L01)
                      • Device 2 - Temp sensor (NRF24L01 + DHT11)

                      FYI: I have a 4.7uF capacitor across the GND and VCC pins of the NRF24L01 on both devices.

                      This may sound silly, but make sure your ESP8266 is booted into the correct mode:
                      GPIO 0 = High
                      GPIO 2 = High
                      GPIO 15 = Low

                      CurlyWurlyC Offline
                      CurlyWurlyC Offline
                      CurlyWurly
                      wrote on last edited by CurlyWurly
                      #13

                      SUCCESS! - My "ESP8266 MQTT gateway" sketch now works OK - no need for a 3rd device :) :)
                      *EDIT I've been using this board and the problem is ....

                      I'M USING THE BOARD PICTURED BELOW AND THE LABELS FOR GPIO4 and GPIO5 ARE THE WRONG WAY ROUND (screen print error)

                      I swapped the cable from the header pin marked GPIO4 to GPIO5 and everything worked fine. I'm wondering if this is the same solution for a lot of people here (I've put this info on build page)
                      https://github.com/esp8266/Arduino/issues/437
                      https://twitter.com/bdcatalin/status/663434209265078272

                      0_1475610572517_yellow_ESP12E_test_module.jpg

                      Hope it helps someone

                      1 Reply Last reply
                      1
                      • CurlyWurlyC Offline
                        CurlyWurlyC Offline
                        CurlyWurly
                        wrote on last edited by CurlyWurly
                        #14

                        -----*removed and put comments above

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


                        20

                        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