Esp easy update temperature to domoticz generate a reboot

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Tixav
Normal user
Posts: 1
Joined: 04 Jan 2018, 14:50

Esp easy update temperature to domoticz generate a reboot

#1 Post by Tixav » 04 Jan 2018, 15:04

Hello I am new on this forum even if I have used it for a long time (since I used the R120 of easp easy)

I recently update a nodemcu from R147 to v2.0.0-dev12 then to v2.0.0-dev13 but the result is the same :

I setup a http domoticz controller
Capture2.PNG
Capture2.PNG (12.38 KiB) Viewed 1805 times

when I setup a ds18b20 like this
Capture1.PNG
Capture1.PNG (20.21 KiB) Viewed 1813 times
note : I did not forget to disable Enable Serial port in the advanced tab before

no issue it is working well, but if I checked Send to Controller, then the nodemcu is rebooting randomly, I also check with a weemo D1 mini it is the same !

for the moment, I use this counter measure (by rules), and it is working well without random reboot:

Code: Select all

//when temp is updated from device setup page
on temp#Temperature do
 SendToHTTP 192.168.1.4,8080,/json.htm?param=udevice&type=command&idx=510&nvalue=0&svalue=[temp#Temperature]
endon
Last edited by Tixav on 04 Jan 2018, 16:27, edited 1 time in total.

User avatar
grovkillen
Core team member
Posts: 3263
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Esp easy update temperature to domoticz generate a reboot

#2 Post by grovkillen » 04 Jan 2018, 16:00

Please report this on GitHub. I think you may have found a well hunted bug...
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

HansV
Normal user
Posts: 6
Joined: 31 Oct 2017, 12:26
Location: the Netherlands

Re: Esp easy update temperature to domoticz generate a reboot

#3 Post by HansV » 04 Jan 2018, 18:14

I can confirm this behaviour (random reboot when sending DS18B20 data to Domoticz/HTTP).
I mentioned a random reboot problem earlier in
Github problem #588
, but as that problem focussed on "Error while reading/writing config.dat in 926", the random reboot was not investigated any further.

My guess at the time was that it was related to the rules processing, but my rule modifies a local variable (dummy device) by TaskValueSet, and as the value of that Dummy Device is also sent to Domoticz, this may be directly related to sending the result over HTTP to Domoticz.

Domosapiens
Normal user
Posts: 286
Joined: 06 Nov 2016, 13:45

Re: Esp easy update temperature to domoticz generate a reboot

#4 Post by Domosapiens » 04 Jan 2018, 21:07

Tixav,

you could try the second controller position for Domoticz and leave the first one empty.
I had in the past some problems with out of bound memory write to the data area of the first controller.
Just my 2 cents,
Domosapiens

Note:
If this helps, it could be related to how memory allocation for Tasks is done.
hexenmeister suggests to introduce a relationship between a few memory blocks:
https://github.com/letscontrolit/ESPEas ... -344511468
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.

TD-er
Core team member
Posts: 1615
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Esp easy update temperature to domoticz generate a reboot

#5 Post by TD-er » 06 Jan 2018, 11:50

Domosapiens wrote:
04 Jan 2018, 21:07
Tixav,

you could try the second controller position for Domoticz and leave the first one empty.
I had in the past some problems with out of bound memory write to the data area of the first controller.
Just my 2 cents,
Domosapiens

Note:
If this helps, it could be related to how memory allocation for Tasks is done.
hexenmeister suggests to introduce a relationship between a few memory blocks:
https://github.com/letscontrolit/ESPEas ... -344511468
Hmmm, I will test that, but your remark triggers some old-fashioned light bulb above my head to glow about some very strange code I saw last night (it was close to 2 am, so a bit foggy)
In Controller.ino, in the callback function:

Code: Select all

  byte ProtocolIndex = getProtocolIndex(Settings.Protocol[0]);
  CPlugin_ptr[ProtocolIndex](CPLUGIN_PROTOCOL_RECV, &TempEvent, dummyString);
I have to get some coffee first to wrap my head around it, but I really don't know why index 0 is being used here and not like this here in the sendData function just above it:

Code: Select all

      event->ProtocolIndex = getProtocolIndex(Settings.Protocol[event->ControllerIndex]);
      CPlugin_ptr[event->ProtocolIndex](CPLUGIN_PROTOCOL_SEND, event, dummyString);

kimot
Normal user
Posts: 165
Joined: 12 Oct 2017, 20:46

Re: Esp easy update temperature to domoticz generate a reboot

#6 Post by kimot » 07 Jan 2018, 23:03

I have some nodes with DS18b20 too.
They reboots randomly, but I think, that it is my power distribution problem.
Now I see, I am not alone.

I download dev13_normal into one node and it works more then 3 days without reboot.
Others, with dev12, reboots after each couple of hours.
It seems, that dev13 is more stable.

wim16
Normal user
Posts: 77
Joined: 01 May 2017, 20:35

Re: Esp easy update temperature to domoticz generate a reboot

#7 Post by wim16 » 08 Jan 2018, 08:54

I had the same experience with a P1 smart meter gateway: viewtopic.php?f=4&t=3949&start=10#p22165

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests