Dallas DS18b20 no longer works on ESP32 since 20220427

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
wutz65
New user
Posts: 6
Joined: 21 Jul 2022, 11:10

Dallas DS18b20 no longer works on ESP32 since 20220427

#1 Post by wutz65 » 21 Jul 2022, 11:26

Hi, filesize
ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH is 1.233 KB
DS18B20 did not work

ESP_Easy_mega_20220427_normal_ESP32_4M316k_ETH is 1.707 KB
DS18b20 is working

can anybody check what´s wrong?

User avatar
Ath
Normal user
Posts: 3419
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#2 Post by Ath » 21 Jul 2022, 11:38

There is a lot of information in this ESPEasy Github issue #4080 with the same intent.
Please try to apply the suggestions given there.
/Ton (PayPal.me)

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#3 Post by chromo23 » 21 Jul 2022, 13:10

Which pin do you use and what´s the value of your pullup resistor. I had to go up to at least 10k to get it running..(right now i use 20k and it works fine)

wutz65
New user
Posts: 6
Joined: 21 Jul 2022, 11:10

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#4 Post by wutz65 » 21 Jul 2022, 14:10

Same pin as in oder Firmware
io02 and io14 testet 4.7k

older Release working normal using same settings.

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#5 Post by chromo23 » 21 Jul 2022, 14:19

Can you give the 10k or 20k pullup a try and report back?

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

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#6 Post by TD-er » 21 Jul 2022, 16:35

Can you also try one of the last builds from the GitHub Actions?
For example this one: https://github.com/letscontrolit/ESPEas ... 2707525876

Not sure if this might have been related to one of the stange "GPIO-issues" we had with the ESP32 2.0.3rc SDK.
I know for sure we do now use an SDK later than that, but not sure if it was used about a month ago.

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

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#7 Post by TD-er » 21 Jul 2022, 17:44

I just made a new PR to use the ESP32 SDK v 2.0.4
https://github.com/letscontrolit/ESPEasy/pull/4152

Maybe one of you could also test those GitHubActions builds for improvements on the Dallas sensors when those builds have finished?

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#8 Post by chromo23 » 21 Jul 2022, 18:35

sorry..i´ll be away for one week without any dallas sensor. but i will definitely do some testing after that...

wutz65
New user
Posts: 6
Joined: 21 Jul 2022, 11:10

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#9 Post by wutz65 » 26 Jul 2022, 16:26

is there a way to download your build or can you send me ESP32 ETH?

Code: Select all

I just made a new PR to use the ESP32 SDK v 2.0.4
https://github.com/letscontrolit/ESPEasy/pull/4152

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

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#10 Post by TD-er » 26 Jul 2022, 16:35

You can download the "Binaries" zip file here:
https://github.com/letscontrolit/ESPEas ... 2738830731

N.B. you need to be logged in on GitHub to download the built artifacts from GitHub Actions.

N.B.2 the build I linked is including the very nice new features I just made for the ADC plugin which also do add quite nice features for ESP32 :)

wutz65
New user
Posts: 6
Joined: 21 Jul 2022, 11:10

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#11 Post by wutz65 » 28 Jul 2022, 06:42

sorry, same problem no device adress available - tried 10k + 14.7k Pullup
devices.jpg
devices.jpg (29.08 KiB) Viewed 4155 times
devices_detail.jpg
devices_detail.jpg (67.78 KiB) Viewed 4155 times
filesize 1.275 KB

last working for me - ESP_Easy_mega_20220427_normal_ESP32_4M316k_ETH
devices_detail_working.jpg
devices_detail_working.jpg (28.78 KiB) Viewed 4150 times
filesize 1.771 KB

Code: Select all

ESP_Easy_mega_20220726_normal_ESP32_4M316k_ETH.env.txt

- not included in ESP_Easy_mega_20220427_custom_ESP32_4M316k_ETH.env.txt

			  <class 'piolib.ArduinoLibBuilder'>('/home/runner/work/ESPEasy/ESPEasy/lib/NewPingESP8266'),
                          <class 'piolib.PlatformIOLibBuilder'>('/home/runner/work/ESPEasy/ESPEasy/lib/PZEM-004T-v30-master'),
                          <class 'piolib.PlatformIOLibBuilder'>('/home/runner/work/ESPEasy/ESPEasy/lib/RAK12019_LTR390'),
                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/work/ESPEasy/ESPEasy/lib/RN2483-Arduino-Library'),

                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/work/ESPEasy/ESPEasy/.pio/libdeps/normal_ESP32_4M316k_ETH/CircularBuffer'),

                          <class 'piolib.PlatformIOLibBuilder'>('/home/runner/work/ESPEasy/ESPEasy/.pio/libdeps/normal_ESP32_4M316k_ETH/NeoPixelBus'),

                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/.platformio/packages/framework-arduinoespressif32/libraries/Ethernet'),

			  <class 'piolib.ArduinoLibBuilder'>('/home/runner/.platformio/packages/framework-arduinoespressif32/libraries/I2S'),
                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/.platformio/packages/framework-arduinoespressif32/libraries/LittleFS'),

                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/.platformio/packages/framework-arduinoespressif32/libraries/RainMaker'),

                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/.platformio/packages/framework-arduinoespressif32/libraries/USB'),



ESP_Easy_mega_20220427_custom_ESP32_4M316k_ETH.env.txt

- not included in ESP_Easy_mega_20220726_normal_ESP32_4M316k_ETH.env.txt

                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/.platformio/packages/framework-arduinoespressif32@3.10006.210326/libraries/AzureIoT'),
                          <class 'piolib.ArduinoLibBuilder'>('/home/runner/.platformio/packages/framework-arduinoespressif32@3.10006.210326/libraries/BLE'),



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

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#12 Post by TD-er » 28 Jul 2022, 10:47

OK, I will have to serch for my test board with Dallas units again and hook up my analyzer to see what's happening here.

wutz65
New user
Posts: 6
Joined: 21 Jul 2022, 11:10

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#13 Post by wutz65 » 28 Jul 2022, 12:39

testsed other boards

ESP8266 work ok

ESP32S2 didn´t work

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#14 Post by chromo23 » 28 Jul 2022, 22:27

I had the time to test today...
Everything seems to work fine here.
Bildschirmfoto 2022-07-28 um 21.39.23.png
Bildschirmfoto 2022-07-28 um 21.39.23.png (92.79 KiB) Viewed 4090 times
Have you tried to use only two or three sensors?

User avatar
chromo23
Normal user
Posts: 821
Joined: 10 Sep 2020, 16:02
Location: germany

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#15 Post by chromo23 » 28 Jul 2022, 22:35

TD-er wrote: 26 Jul 2022, 16:35 N.B.2 the build I linked is including the very nice new features I just made for the ADC plugin which also do add quite nice features for ESP32 :)
Just looked at it. Really, really cool! :)
Also the device statistics are a nice addition!

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

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#16 Post by TD-er » 28 Jul 2022, 23:10

I did find something that may be a good candidate for why the Dallas sensors no longer work (or much less reliable) on ESP32.
Probably the same reason for DHTxx plugins.

What has happened is that with SDK2.0.3 and 2.0.4 the time needed to switch pin mode takes about 16 usec. (used to be 4 usec)
For the 1wire protocol where timings are as critical as 6 - 10 usec, this is way too long.

I am working on it.

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

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#17 Post by TD-er » 29 Jul 2022, 01:14

Please check this PR: https://github.com/letscontrolit/ESPEasy/pull/4164
Current state: It compiles. Not yet tested myself, but it's already quite late now.

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

Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH

#18 Post by TD-er » 29 Jul 2022, 12:46

Correction on my previous message.... NOW it compiles ;) (on ESP8266 too)

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

Re: Dallas DS18b20 no longer works on ESP32 since 20220427

#19 Post by TD-er » 29 Jul 2022, 15:17

I edited the title for anyone to find it using search.

Anyway, just tested with 6 Dallas sensors and it is now working again.
I already merged the PR, so on the next build it will be fixed. (or for anyone willing to try/build another build before....)

wutz65
New user
Posts: 6
Joined: 21 Jul 2022, 11:10

Re: Dallas DS18b20 no longer works on ESP32 since 20220427

#20 Post by wutz65 » 30 Jul 2022, 12:33

thank you - now it is working perfekt ;-)

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

Re: Dallas DS18b20 no longer works on ESP32 since 20220427

#21 Post by TD-er » 30 Jul 2022, 12:58

Thanks for confirming it is also working at another configuration and not only on the one on my desk :)

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests