EasyESP Mega ds18b20 MQTT

Moderators: rtenklooster, Voyager, BertB, Stuntteam

Forum rules
You have entered the experimental forum, beware!!!
Post Reply
Message
Author
mrrose
New user
Posts: 7
Joined: 11 Jul 2018, 16:42

EasyESP Mega ds18b20 MQTT

#1 Post by mrrose » 11 Jul 2018, 16:50

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

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

Re: EasyESP Mega ds18b20 MQTT

#2 Post by grovkillen » 11 Jul 2018, 17:57

Why do you need the Dev version when you only use stable DS18B20 and stable pulse counter?
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:

mrrose
New user
Posts: 7
Joined: 11 Jul 2018, 16:42

Re: EasyESP Mega ds18b20 MQTT

#3 Post by mrrose » 11 Jul 2018, 18:29

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?

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

Re: EasyESP Mega ds18b20 MQTT

#4 Post by grovkillen » 11 Jul 2018, 18:36

Try DS18B20 on task 5 instead.
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:

mrrose
New user
Posts: 7
Joined: 11 Jul 2018, 16:42

Re: EasyESP Mega ds18b20 MQTT

#5 Post by mrrose » 11 Jul 2018, 18:47

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
Attachments
StromESP.JPG
StromESP.JPG (141.25 KiB) Viewed 16285 times

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

Re: EasyESP Mega ds18b20 MQTT

#6 Post by grovkillen » 11 Jul 2018, 19:13

Remove the unused pulse counter tasks. If it still won't work, have only one active.
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:

mrrose
New user
Posts: 7
Joined: 11 Jul 2018, 16:42

Re: EasyESP Mega ds18b20 MQTT

#7 Post by mrrose » 11 Jul 2018, 19:33

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

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

Re: EasyESP Mega ds18b20 MQTT

#8 Post by grovkillen » 11 Jul 2018, 20:06

What version are you running? We might have a bug if you're running latest version.
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:

mrrose
New user
Posts: 7
Joined: 11 Jul 2018, 16:42

Re: EasyESP Mega ds18b20 MQTT

#9 Post by mrrose » 11 Jul 2018, 20:10

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

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

Re: EasyESP Mega ds18b20 MQTT

#10 Post by grovkillen » 11 Jul 2018, 20:32

Please report your findings to our GitHub issue list.
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:

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

Re: EasyESP Mega ds18b20 MQTT

#11 Post by TD-er » 14 Jul 2018, 07:49

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??)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests