Tasmota: wemos D1 mini every 5 min restart

Created on 23 Oct 2018  路  14Comments  路  Source: arendst/Tasmota

IMPORTANT NOTICE
If you do not complete the template below it is likely that your issue will not be addressed. When providing information about your issue please be as extensive as possible so that it can be solved by as little as possible responses.

Make sure these boxes are checked [x] before submitting your issue - Thank you!

  • [X] Searched the problem in issues (https://github.com/arendst/Sonoff-Tasmota/issues)
  • [X] Searched the problem in the wiki (https://github.com/arendst/Sonoff-Tasmota/wiki/Troubleshooting)
  • [X] Searched the problem in the forum (https://groups.google.com/d/forum/sonoffusers)
  • [X] Searched the problem in the chat (https://discord.gg/Ks2Kzd4)
  • [X] Development/Compiler/Upload tools used : Arduino
  • [X] Hardware used : wemos D1 mini + 4 relay board + PZEM004T
  • [X] Provide the output of command status 0 :
12:08:52 MQT: stat/3PhazesMonitors/STATUS = {"Status":{"Module":18,"FriendlyName":["3PhazesMonitors","Sonoff2","Sonoff3","Sonoff4"],"Topic":"3PhazesMonitors","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS1 = {"StatusPRM":{"Baudrate":9600,"GroupTopic":"sonoffs","OtaUrl":"http://192.168.0.254:9999/data/firmwares/sonoff.bin","RestartReason":"Hardware Watchdog","Uptime":"0T00:00:29","StartupUTC":"2018-10-23T09:08:23","Sleep":0,"BootCount":1695,"SaveCount":1807,"SaveAddress":"F5000"}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS2 = {"StatusFWR":{"Version":"6.2.1.18","BuildDateTime":"2018-10-21T18:00:59","Boot":31,"Core":"2_3_0","SDK":"1.5.3(aec24ac9)"}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS3 = {"StatusLOG":{"SerialLog":0,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Mejahez",""],"TelePeriod":300,"SetOption":["00008009","55818000","00000000"]}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS4 = {"StatusMEM":{"ProgramSize":486,"Free":516,"Heap":14,"ProgramFlashSize":1024,"FlashSize":4096,"FlashMode":3,"Features":["00000809","0FDAE794","000083A0","23B617CE","00003BC0"]}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS5 = {"StatusNET":{"Hostname":"3PhazesMonitors","IPAddress":"192.168.0.91","Gateway":"192.168.0.138","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.254","Mac":"84:F3:EB:B3:63:33","Webserver":2,"WifiConfig":5}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.254","MqttPort":1883,"MqttClientMask":"3PhazesMonitors","MqttClient":"3PhazesMonitors","MqttUser":"homeassistant","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS7 = {"StatusTIM":{"UTC":"Tue Oct 23 09:08:52 2018","Local":"Tue Oct 23 12:08:52 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":3,"Sunrise":"09:23","Sunset":"19:46"}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS9 = {"StatusPTH":{"PowerDelta":80,"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS10 = {"StatusSNS":{"Time":"2018-10-23T12:08:52","ENERGY":{"Total":70.793,"Yesterday":2.603,"Today":0.890,"Power":89,"ApparentPower":130,"ReactivePower":95,"Factor":0.68,"Voltage":232,"Current":0.560},"DHT11":{"Temperature":28.9,"Humidity":50.0},"TempUnit":"C"}}
12:08:52 MQT: stat/3PhazesMonitors/STATUS11 = {"StatusSTS":{"Time":"2018-10-23T12:08:52","Uptime":"0T00:00:29","Vcc":2.726,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"Mejahez","BSSId":"80:2A:A8:54:8A:49","Channel":11,"RSSI":76}}}

hi ,
i see in info that every couple mins he made a software restrart.. i cant figure why...???

(Please, remember to close the issue when the problem has been addressed)

awaiting feedback troubleshooting

Most helpful comment

@ascillato ok i thinks that problem slove for now .
what i did is flash again the firmware include erase all , move the ping to RX TX on WEMOS .
now its seems ok and not make restart again

All 14 comments

Just a guess, but most likely the PZEM004T is timing out and causing a wdt reset... just guessing.

@andrethomas how can i check the timing out ?

Disable the driver and disconnect the PZEM004T then see if it still reboots every 5 minutes.

You are using core 2.3.0 and receive watchdog exceptions.

Core 2.3.0 does not allow software serial interrupts in RAM which may result in possible watchdog exceptions with certain type of connected hardware.

When using the PZEM004T on core 2.3.0 only use the hardware serial connection enabled with the following gpio config:
image

@arendst ok , i change it to 2.4.2 but now he start to disconnect and connect from wifi .
here is STATUS 0 :

16:19:25 CMD: status 0
16:19:25 MQT: stat/3PhazesMonitors/STATUS = {"Status":{"Module":18,"FriendlyName":["3PhazesMonitors","Sonoff2","Sonoff3","Sonoff4"],"Topic":"3PhazesMonitors","ButtonTopic":"0","Power":0,"PowerOnState":3,"LedState":1,"SaveData":1,"SaveState":1,"SwitchTopic":"0","SwitchMode":[0,0,0,0,0,0,0,0],"ButtonRetain":0,"SwitchRetain":0,"SensorRetain":0,"PowerRetain":0}}
16:19:25 MQT: stat/3PhazesMonitors/STATUS1 = {"StatusPRM":{"Baudrate":115200,"GroupTopic":"sonoffs","OtaUrl":"http://sonoff.maddox.co.uk/tasmota/sonoff.bin","RestartReason":"Software/System restart","Uptime":"0T00:05:18","StartupUTC":"2018-10-23T13:14:07","Sleep":0,"BootCount":8,"SaveCount":22,"SaveAddress":"3F6000"}}
16:19:25 MQT: stat/3PhazesMonitors/STATUS2 = {"StatusFWR":{"Version":"6.2.1.18","BuildDateTime":"2018-10-23T15:53:35","Boot":31,"Core":"2_4_2","SDK":"2.2.1(cfd48f3)"}}
16:19:25 MQT: stat/3PhazesMonitors/STATUS3 = {"StatusLOG":{"SerialLog":2,"WebLog":2,"SysLog":0,"LogHost":"","LogPort":514,"SSId":["Mejahez",""],"TelePeriod":300,"SetOption":["00008009","55818000","00000000"]}}
16:19:25 MQT: stat/3PhazesMonitors/STATUS4 = {"StatusMEM":{"ProgramSize":529,"Free":2540,"Heap":19,"ProgramFlashSize":4096,"FlashSize":4096,"FlashMode":3,"Features":["00000809","0FDA6794","000083A0","23B617CE","00003BC0"]}}
16:19:25 MQT: stat/3PhazesMonitors/STATUS5 = {"StatusNET":{"Hostname":"3PhazesMonitors","IPAddress":"192.168.0.91","Gateway":"192.168.0.138","Subnetmask":"255.255.255.0","DNSServer":"192.168.0.254","Mac":"84:F3:EB:B3:63:33","Webserver":2,"WifiConfig":5}}
16:19:26 MQT: stat/3PhazesMonitors/STATUS6 = {"StatusMQT":{"MqttHost":"192.168.0.254","MqttPort":1883,"MqttClientMask":"3PhazesMonitors","MqttClient":"3PhazesMonitors","MqttUser":"homeassistant","MqttType":1,"MAX_PACKET_SIZE":1000,"KEEPALIVE":15}}
16:19:26 MQT: stat/3PhazesMonitors/STATUS7 = {"StatusTIM":{"UTC":"Tue Oct 23 13:19:26 2018","Local":"Tue Oct 23 16:19:26 2018","StartDST":"Sun Mar 25 02:00:00 2018","EndDST":"Sun Oct 28 03:00:00 2018","Timezone":3,"Sunrise":"09:23","Sunset":"19:46"}}
16:19:26 MQT: stat/3PhazesMonitors/STATUS9 = {"StatusPTH":{"PowerDelta":80,"PowerLow":0,"PowerHigh":0,"VoltageLow":0,"VoltageHigh":0,"CurrentLow":0,"CurrentHigh":0}}
16:19:26 MQT: stat/3PhazesMonitors/STATUS10 = {"StatusSNS":{"Time":"2018-10-23T16:19:26","ENERGY":{"Total":71.145,"Yesterday":0.000,"Today":1.145,"Period":0,"Power":92,"ApparentPower":145,"ReactivePower":112,"Factor":0.64,"Voltage":234,"Current":0.620},"DHT11":{"Temperature":29.3,"Humidity":48.0},"TempUnit":"C"}}
16:19:26 MQT: stat/3PhazesMonitors/STATUS11 = {"StatusSTS":{"Time":"2018-10-23T16:19:26","Uptime":"0T00:05:19","Vcc":2.973,"POWER1":"OFF","POWER2":"OFF","POWER3":"OFF","POWER4":"OFF","Wifi":{"AP":1,"SSId":"Mejahez","BSSId":"80:2A:A8:54:8A:49","Channel":11,"RSSI":74}}}
16:19:43 DNS: Initialized
16:19:43 MQT: Attempting connection...
16:19:44 MQT: Connected
16:19:44 MQT: tele/3PhazesMonitors/LWT = Online (retained)
16:19:44 MQT: cmnd/3PhazesMonitors/POWER = 
16:20:04 WIF: Connecting to AP1 Mejahez in mode 11N as 3PhazesMonitors...
16:20:09 MQT: Attempting connection...
16:20:09 MQT: Connected
16:20:09 MQT: tele/3PhazesMonitors/LWT = Online (retained)
16:20:09 MQT: cmnd/3PhazesMonitors/POWER = 
16:20:09 WIF: Connected
16:20:09 DNS: Initialized

Seems that you are having some incorrect data left on the flash.

Please, try to full erase the flash using esptool.py (explained in the wiki) and then flashing again.

@ascillato i erase all when update to 2.4.2

Have you tried the precompiled bins from http://thehackbox.org/tasmota/ ?

@ascillato they use with 2.3.0 core ..not 2.4.2

Yes. So, have you tried them?

@rt400 have you tried the connections as @arendst has told you?

Hi,

Have you managed to solve your issue?

@ascillato ok i thinks that problem slove for now .
what i did is flash again the firmware include erase all , move the ping to RX TX on WEMOS .
now its seems ok and not make restart again

Awesome @rt400 Thanks for reporting back.

Was this page helpful?
0 / 5 - 0 ratings