Page 1 of 1

EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 16:50
by mrrose
Hallo all,

I´m new with EasyESP.

I use the latest Dev, and connect two pulse counter and serval DS18b20. All of them are send via MQTT to the broker.

Some days that are working without any issue. Then some of the DS18b20 stops send to the broker, but the pulse counter working properly. By the website the DS18b20 showing the value correct.

I try allready to flash the latest dev again and set all the devices again. But i can´t get them working again.

Anyone an idea?

Thanks

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 17:57
by grovkillen
Why do you need the Dev version when you only use stable DS18B20 and stable pulse counter?

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 18:29
by mrrose
Ok, i try also the stable version. Same issue.

I test some more around. If i define the ds18b20 as task 1 there are no problems i get the temp. via mqtt.

But if i define the pulse counter as task 1 and ds18b20 as maybe task 2 it will not send out as mqtt.

Any idea?

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 18:36
by grovkillen
Try DS18B20 on task 5 instead.

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 18:47
by mrrose
It´s the same if i use DS18B20 as task5. (no send via MQTT)

Attached the log response.

Code: Select all

246449: DS   : Temperature: 26.75 (28-44-ae-cc-5-0-0-38)
251450: DS   : Temperature: 26.75 (28-44-ae-cc-5-0-0-38)
256449: DS   : Temperature: 26.69 (28-44-ae-cc-5-0-0-38)
261450: DS   : Temperature: 26.75 (28-44-ae-cc-5-0-0-38)
266449: DS   : Temperature: 26.75 (28-44-ae-cc-5-0-0-38)
271450: DS   : Temperature: 26.69 (28-44-ae-cc-5-0-0-38)
271792: LoopStats: shortestLoop: 44 longestLoop: 1507270 avgLoopDuration: 82.56 systemTimerDuration: 28.87 systemTimerCalls: 31 loopCou
271796: WD   : Uptime 5 ConnectFailures 0 FreeMem 16936

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 19:13
by grovkillen
Remove the unused pulse counter tasks. If it still won't work, have only one active.

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 19:33
by mrrose
So strange.

1 Test) I test just two task. Pulse + DS18b20. Pulse will be send the DS18b20 not (checked via MQTT.fx scanning)

2 Test) As next i disable the pulse counter. With the same result no DS18b20 data.

3 Test) Just define one DS18b20 without any Pulse counter and the data will be send (MQTT.fx show them)

4 Test) Task 1 = DS18b20 Task 2 = Pulse Counter result = Both sending

5 Test) Task 1 = DS18b20 Task 2 = Pulse Counter Task 3 = Pulse counter Task 4 = DS18b20 Result first 3 Task will be send but Task 4 not

6 Test) Task 1 and 2 = Pulse Counter Task 3 - 6 DS18B20 Task 7 = BMP280 Task 8 and 9 DS18B20 Result: Pulse counter and BMP280 send but all DS18B20 not.

Looks like something to do with the pulse counter, after that no more DS18b20 possible.

Unfortunatly i need 7 DS18B20 sensors and 2 Pulse counter so i can´t let the DS18B20 on the first place due to the pulse counter can just be worke between Task 1-4

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 20:06
by grovkillen
What version are you running? We might have a bug if you're running latest version.

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 20:10
by mrrose
grovkillen wrote: 11 Jul 2018, 20:06 What version are you running? We might have a bug if you're running latest version.
Nodemcu with

ESP_Easy_mega-20180710_normal_ESP8266_4096.bin

Re: EasyESP Mega ds18b20 MQTT

Posted: 11 Jul 2018, 20:32
by grovkillen
Please report your findings to our GitHub issue list.

Re: EasyESP Mega ds18b20 MQTT

Posted: 14 Jul 2018, 07:49
by TD-er
Yesterday I merged an update to sending measured values to a controller (sending to MQTT is a controller)
Also pulse counters may only work on the first few tasks. (first 4??)