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



  • I'm using the latest example for a ESP8266 Gateway and the Humidity example.

    When the gateway receives data from the sensor, the gateway crashes and restarts. Is anyone having similar issues?

    I have 3.3v power line coming from a DC adapter.

    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
    0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1)
    0;255;3;0;9;!TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=25,pt=1,l=1,sg=0,ft=0,st=fail:1
    0;255;3;0;9;TSP:SANCHK:OK
    0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1)
    0;255;3;0;9;TSP:CHKUPL:OK (FLDCTRL)
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
    0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1)
    
    Soft WDT reset
    
    ctx: cont 
    sp: 3ffef600 end: 3ffef980 offset: 01b0
    
    >>>stack>>>
    3ffef7b0:  00000000 3ffefc48 3ffefc48 4020495b  
    3ffef7c0:  40107050 00000000 3ffefc48 4020495b  
    3ffef7d0:  00000000 3ffefc48 00000000 40202376  
    3ffef7e0:  001e8480 3ffe0001 3ffef9df 40202376  
    3ffef7f0:  00000000 0000000e 00000000 00000001  
    3ffef800:  00000000 00000000 00000001 00000001  
    3ffef810:  00000030 0000000e 00000013 40202411  
    3ffef820:  00000001 3ffef9d8 00000001 4020250e  
    3ffef830:  00000008 3fffc6fc 00000001 00000027  
    3ffef840:  00000001 00000001 3ffef9d8 40202f54  
    3ffef850:  40107050 3ffef8b1 3ffefc48 00000061  
    3ffef860:  3ffef8b0 3ffefc48 3ffef8b0 40202376  
    3ffef870:  001e8480 3ffe0001 3ffefc48 00000000  
    3ffef880:  00000000 00000000 3ffefa00 00000001  
    3ffef890:  3ffefa1a 00000001 00000004 00000001  
    3ffef8a0:  000000ff 3ffef9d8 00000001 4020271d  
    3ffef8b0:  00000001 00000001 00000001 00000001  
    3ffef8c0:  000000ff 3ffef9d8 00000001 40203099  
    3ffef8d0:  3ffefa1a 00000001 3ffef9f9 402040ee  
    3ffef8e0:  00000018 00000001 00000001 00000000  
    3ffef8f0:  3ffef9a4 00000001 3ffefb30 40203a1a  
    3ffef900:  00000003 00000018 00000023 000000ff  
    3ffef910:  00000000 00000001 00000001 3ffee958  
    3ffef920:  3fffdad0 00000000 00000006 3ffee958  
    3ffef930:  3fffdad0 00000000 00000005 40204258  
    3ffef940:  3fffdad0 00000000 3ffee950 40204274  
    3ffef950:  00000000 00000000 3ffee950 40203b74  
    3ffef960:  3fffdad0 00000000 3ffee950 40204550  
    3ffef970:  feefeffe feefeffe 3ffee960 40100114  
    <<<stack<<<
    c_�rS�f�0;255;3;0;9;Starting gateway (RNNGE-, 2.0.0)
    0;255;3;0;9;TSM:INIT
    0;255;3;0;9;TSM:RADIO:OK
    0;255;3;0;9;TSM:GW MODE
    

    Any feedback would be appreciated.

    Update 1

    I should also mention this happens within minutes of powering everything up.



  • Looks like it may be related to ESP8266 MySensors Gateway Crashes when Node Connects. I'll try different ESP8266 board versions and post my results.



  • Made sure to use ESP8266 board version 2.3.0. I tried the latest from development and master branches of the MySensors repo with no luck. It still crashes shortly after data is sent to it.

    0;255;3;0;9;No registration required
    0;255;3;0;9;Init complete, id=0, parent=0, distance=0, registration=1
    pm open,type:2 0
    0;255;3;0;9;TSP:MSG:READ 1-1-255 s=255,c=3,t=7,pt=0,l=0,sg=0:
    0;255;3;0;9;TSP:MSG:BC
    0;255;3;0;9;TSP:MSG:FPAR REQ (sender=1)
    0;255;3;0;9;TSP:CHKUPL:OK
    0;255;3;0;9;TSP:MSG:GWL OK
    0;255;3;0;9;TSP:MSG:SEND 0-0-1-1 s=255,c=3,t=8,pt=1,l=1,sg=0,ft=0,st=ok:0
    0;255;3;0;9;TSP:MSG:READ 1-1-0 s=255,c=3,t=24,pt=1,l=1,sg=0:1
    0;255;3;0;9;TSP:MSG:PINGED (ID=1, hops=1)
    
    Soft WDT reset
    
    ctx: cont 
    sp: 3ffef610 end: 3ffef980 offset: 01b0
    
    >>>stack>>>
    3ffef7c0:  40107050 00000000 3ffefc48 4020495b  
    3ffef7d0:  00000000 3ffefc48 00000000 40202316  
    3ffef7e0:  001e8480 3ffe0001 3ffef9df 40202376  
    3ffef7f0:  00000000 0000000e 00000000 00000001  
    3ffef800:  00000000 00000000 00000001 00000001  
    3ffef810:  00000030 0000000e 000012bf 40202411  
    3ffef820:  00000001 3ffef9d8 00000001 4020250e  
    3ffef830:  00000008 00000030 00000010 00000027  
    3ffef840:  00000001 00000001 3ffef9d8 40202f54  
    3ffef850:  40107050 3ffef8b1 3ffefc48 00000061  
    3ffef860:  3ffef8b0 3ffefc48 3ffef8b0 40202376  
    3ffef870:  001e8480 3ffe0001 3ffefc48 00000030  
    3ffef880:  00000000 00000000 3ffefa00 00000001  
    3ffef890:  3ffefa1a 00000001 00000004 00000001  
    3ffef8a0:  000000ff 3ffef9d8 00000001 4020271d  
    3ffef8b0:  00000001 00000001 00000001 00000001  
    3ffef8c0:  000000ff 3ffef9d8 00000001 40203099  
    3ffef8d0:  3ffefa1a 00000001 3ffef9f9 402040ee  
    3ffef8e0:  00000018 00000001 00000001 00000000  
    3ffef8f0:  3ffef9a4 00000001 3ffefb30 40203a1a  
    3ffef900:  00000003 00000018 00000023 000000ff  
    3ffef910:  00000000 00000004 3ffefa1e 3ffee958  
    3ffef920:  3fffdad0 00000000 00000006 3ffee958  
    3ffef930:  3fffdad0 00000000 00000005 40204258  
    3ffef940:  3fffdad0 00000000 3ffee950 40204274  
    3ffef950:  00000000 00000000 3ffee950 40203b74  
    3ffef960:  3fffdad0 00000000 3ffee950 40204550  
    3ffef970:  feefeffe feefeffe 3ffee960 40100114  
    <<<stack<<<
    


  • 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.



  • 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


  • Hardware Contributor

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



  • Yes I use one DS18B20.


  • Mod

    @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!



  • removed



  • 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



  • @scalz,
    I'm using the DHT11



  • @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



  • 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



  • -----*removed and put comments above


Log in to reply
 

Suggested Topics

10
Online

11.4k
Users

11.1k
Topics

112.7k
Posts