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. Gateway ESP8266 Wifi resets after connecting to router

Gateway ESP8266 Wifi resets after connecting to router

Scheduled Pinned Locked Moved Troubleshooting
34 Posts 6 Posters 14.3k 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.
  • PetjepetP Offline
    PetjepetP Offline
    Petjepet
    wrote on last edited by
    #16

    @Harry-van-der-Wolf I tried but I'm still getting the same reset message: Cause:4, boot mode:(3,4).
    I'm stuck here. I also tried another NRF with the same result.

    1 Reply Last reply
    0
    • PetjepetP Offline
      PetjepetP Offline
      Petjepet
      wrote on last edited by
      #17

      @Harry-van-der-Wolf and @mfalkvidd . I'm now on Mysensors 2 trying to get my WFI Gateway to run.
      Used new sketch (tried both 0.9 and 1.0 board setting but no luck.
      Serial Monitor now:

      ets Jan  8 2013,rst cause:4, boot mode:(3,6)
      
      wdt reset
      load 0x4010f000, len 1384, room 16 
      tail 8
      chksum 0x2d
      csum 0x2d
      v3de0c112
      ~ld
      

      repeating

      1 Reply Last reply
      0
      • sundberg84S Offline
        sundberg84S Offline
        sundberg84
        Hardware Contributor
        wrote on last edited by sundberg84
        #18

        A long-shot but i had some resets due to I didnt set the right flash size.
        I ran the sketch https://github.com/esp8266/Arduino/blob/master/libraries/esp8266/examples/CheckFlashConfig/CheckFlashConfig.ino and found it it was wrong.

        Also I had alot of resets due to what @mfalkvidd said - POWER! I have the ESP 07 and tried to power it with a 3.3v regulator that couldnt provide enough mA.

        Controller: Proxmox VM - Home Assistant
        MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
        MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
        RFLink GW - Arduino Mega + RFLink Shield, 433mhz

        1 Reply Last reply
        0
        • PetjepetP Offline
          PetjepetP Offline
          Petjepet
          wrote on last edited by Petjepet
          #19

          @sundberg84 I powered my NodeMCU 1.0 (ESP-12E Module) via USB from my PC. That should not give a powerissue.
          How does your linked sketch work: load it to the NodeMCU and then check the Serial Monitor?

          sundberg84S 1 Reply Last reply
          0
          • PetjepetP Petjepet

            @sundberg84 I powered my NodeMCU 1.0 (ESP-12E Module) via USB from my PC. That should not give a powerissue.
            How does your linked sketch work: load it to the NodeMCU and then check the Serial Monitor?

            sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by
            #20

            @Petjepet - Sorry, dont even know if it works with nodeMCU... this is ArdinoESP. My misstake...

            Controller: Proxmox VM - Home Assistant
            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

            1 Reply Last reply
            0
            • Harry van der WolfH Offline
              Harry van der WolfH Offline
              Harry van der Wolf
              wrote on last edited by
              #21

              @Petjepet - Sorry, I don't have a clue. It is simply working for me. I did quite some tries with different versions but either it worked or it didn't. I didn't see this error before. Are you sure you have connected the NRF24L01 correctly?

              1 Reply Last reply
              0
              • PetjepetP Offline
                PetjepetP Offline
                Petjepet
                wrote on last edited by Petjepet
                #22

                When using MySensors 1.5, I had this output in the Serial Monitor:

                ESP8266 MySensors Gateway
                Connecting to Vierkenshof_G
                ..Connected!
                IP: 192.168.1.76
                
                 ets Jan  8 2013,rst cause:4, boot mode:(3,4)
                
                wdt reset
                load 0x4010f000, len 1264, room 16 
                tail 0
                chksum 0x42
                csum 0x42
                ~ld
                

                Where now using MySensors 2.0, I end up with:

                ets Jan  8 2013,rst cause:4, boot mode:(3,6)
                
                wdt reset
                load 0x4010f000, len 1384, room 16 
                tail 8
                chksum 0x2d
                csum 0x2d
                v3de0c112
                ~ld
                

                So I don't see the connect to my network anymore (?) and having different boot mode for the reset cause.
                Tried a different radio, no change.
                Powered with my iPhone power plug I also do not see the MCU connect to my router.
                I guess my Amica NodeMCU isn't compatible/has hardware failure.

                I now ordered the one as presented in the shop.

                See if that will work.

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

                  I have had the same problem - the ESP8266 MQTT gateway device just "WDT resets" when a sensor device tries to send a message.
                  *EDIT 081016
                  In my case, I was using a yellow 0.9 dev board which has a known "screen print" error for pins GPIO4 and GPIO5 - I just swapped these pins over and all was OK - no crashes anymore.
                  https://twitter.com/bdcatalin/status/663434209265078272

                  1 Reply Last reply
                  0
                  • CurlyWurlyC Offline
                    CurlyWurlyC Offline
                    CurlyWurly
                    wrote on last edited by CurlyWurly
                    #24
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • Harry van der WolfH Offline
                      Harry van der WolfH Offline
                      Harry van der Wolf
                      wrote on last edited by Harry van der Wolf
                      #25

                      @Petjepet
                      Please see this specific post on pimatic: https://forum.pimatic.org/topic/2234/external-selfmade-pimatic-max-thermostat-control-with-esp8266/17 for an EspEasy esp8266

                      This guy has the exact same crash and he set the spiffs-flash-size to 1M, and then it functioned.

                      1 Reply Last reply
                      0
                      • PetjepetP Offline
                        PetjepetP Offline
                        Petjepet
                        wrote on last edited by
                        #26

                        @Harry-van-der-Wolf thank you for the info!

                        I'm not so familiar with these hardware items: what is the 'spiffs-flash-size' and how to adjust it?

                        1 Reply Last reply
                        0
                        • Harry van der WolfH Offline
                          Harry van der WolfH Offline
                          Harry van der Wolf
                          wrote on last edited by Harry van der Wolf
                          #27

                          In your Arduino software under "Tools" ("Hulpmiddelen" assuming you are using the Dutch version) you select the platform you flash for. In this case probably Nodemcu 0.9 or Nodemcu 1.0.
                          In that same menu you have "Flash size". In that submenu you can select 4M(3M SPIFFS) and 4M(1M SPIFFS). Default is the first one but in your case try the second one.

                          SPIFFS is SPI Flash File System. See here: https://nodemcu.readthedocs.io/en/master/en/spiffs/

                          PetjepetP 1 Reply Last reply
                          0
                          • Harry van der WolfH Harry van der Wolf

                            In your Arduino software under "Tools" ("Hulpmiddelen" assuming you are using the Dutch version) you select the platform you flash for. In this case probably Nodemcu 0.9 or Nodemcu 1.0.
                            In that same menu you have "Flash size". In that submenu you can select 4M(3M SPIFFS) and 4M(1M SPIFFS). Default is the first one but in your case try the second one.

                            SPIFFS is SPI Flash File System. See here: https://nodemcu.readthedocs.io/en/master/en/spiffs/

                            PetjepetP Offline
                            PetjepetP Offline
                            Petjepet
                            wrote on last edited by
                            #28

                            @Harry-van-der-Wolf I tried your suggestion without luck.
                            I'll wait for my other MCU to arrive and try again.

                            1 Reply Last reply
                            0
                            • Harry van der WolfH Offline
                              Harry van der WolfH Offline
                              Harry van der Wolf
                              wrote on last edited by
                              #29

                              I accidentally ran into this topic for a completely different reason. One of the posters mentioned that he had the same issues as you have due to an unstable power connector.
                              Another try?

                              PetjepetP 1 Reply Last reply
                              0
                              • PetjepetP Petjepet

                                Hello,

                                I just build my ESP8266 Wifi gateway with a NodeMCU Lua board and an NRF24L01+ and loaded the standard sketch as distributed in MySensors 1.5.4 library with ESP8266 v2.1.0 according to the board manager in Arduino 1.6.8, using board 'NodeMCU 1.0 (ESP-12E Module)'.

                                The same MySensors library I used to build a Serial Gateway and a few nodes with success.

                                However when uploading the sketch to the NodeMCU and starting the Serial Monitor I see rebooting after successful wifi connection:

                                ESP8266 MySensors Gateway
                                Connecting to Vierkenshof_G
                                ..Connected!
                                IP: 192.168.1.76
                                
                                 ets Jan  8 2013,rst cause:4, boot mode:(3,4)
                                
                                wdt reset
                                load 0x4010f000, len 1264, room 16 
                                tail 0
                                chksum 0x42
                                csum 0x42
                                ~ld
                                
                                
                                ESP8266 MySensors Gateway
                                Connecting to Vierkenshof_G
                                ..Connected!
                                IP: 192.168.1.76
                                

                                I do not understand the 'cause: 4, boot mode:(3,4)'.
                                What could be wrong?

                                TheoLT Offline
                                TheoLT Offline
                                TheoL
                                Contest Winner
                                wrote on last edited by
                                #30
                                This post is deleted!
                                1 Reply Last reply
                                0
                                • Harry van der WolfH Harry van der Wolf

                                  I accidentally ran into this topic for a completely different reason. One of the posters mentioned that he had the same issues as you have due to an unstable power connector.
                                  Another try?

                                  PetjepetP Offline
                                  PetjepetP Offline
                                  Petjepet
                                  wrote on last edited by
                                  #31

                                  @Harry-van-der-Wolf thank you for this interesting link.
                                  When using a more stable (other than PC-usb, iPad charger, decicated USB 2A power outlet??) other then USB, how would I be able to feed the module and also Monitor its behaviour with the Arduino IDE?

                                  1 Reply Last reply
                                  0
                                  • PetjepetP Offline
                                    PetjepetP Offline
                                    Petjepet
                                    wrote on last edited by
                                    #32

                                    Today arrived the new MCU (as presented in the shop) and I uploaded the sketch.
                                    Still no success, but with again a new error code:

                                    ets Jan  8 2013,rst cause:4, boot mode:(3,7)
                                    
                                    wdt reset
                                    load 0x4010f000, len 1384, room 16 
                                    tail 8
                                    chksum 0x2d
                                    csum 0x2d
                                    v3de0c112
                                    ~ld
                                    

                                    mode:(3,6) changed to mode:(3,7)

                                    I powered by USB on PC (for serial Monitor), USB on 2.0A output and seperate 5V directly to pin on MCU (how to monitor when not using USB on MCU?).
                                    It won't work. I think the concept is not stable enough (resets are common issues I see on the net).

                                    I'll have to give up on this I guess.

                                    1 Reply Last reply
                                    0
                                    • PetjepetP Offline
                                      PetjepetP Offline
                                      Petjepet
                                      wrote on last edited by
                                      #33

                                      I gave it a try again by using some suggestions on the net like changing the radio CS connection from GPIO15 to GPIO5.
                                      No effect.

                                      In the comments of the sketch I read:

                                       * Not all ESP8266 modules have all pins available on their external interface.
                                       * This code has been tested on an ESP-12 module.
                                       * The ESP8266 requires a certain pin configuration to download code, and another one to run code:
                                       * - Connect REST (reset) via 10K pullup resistor to VCC, and via switch to GND ('reset switch')
                                       * - Connect GPIO15 via 10K pulldown resistor to GND
                                       * - Connect CH_PD via 10K resistor to VCC
                                       * - Connect GPIO2 via 10K resistor to VCC
                                       * - Connect GPIO0 via 10K resistor to VCC, and via switch to GND ('bootload switch')
                                      

                                      I guess these are not needed when using the NodeMCU as presented in the MySensors store?

                                      1 Reply Last reply
                                      0
                                      • Harry van der WolfH Offline
                                        Harry van der WolfH Offline
                                        Harry van der Wolf
                                        wrote on last edited by
                                        #34

                                        It is not necessary for any esp8266 having a usb port as you program these directly via that usb port.
                                        So. indeed: the nodemcu doesn't need it and neither does the Wemos.

                                        The esp-07, also available, does need that setup to flash/program it.

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


                                        8

                                        Online

                                        11.7k

                                        Users

                                        11.2k

                                        Topics

                                        113.0k

                                        Posts


                                        Copyright 2019 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