Dallas DS18b20 no longer works on ESP32 since 20220427
Moderators: grovkillen, Stuntteam, TD-er
Dallas DS18b20 no longer works on ESP32 since 20220427
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?
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?
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
There is a lot of information in this ESPEasy Github issue #4080 with the same intent.
Please try to apply the suggestions given there.
Please try to apply the suggestions given there.
/Ton (PayPal.me)
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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)
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
Same pin as in oder Firmware
io02 and io14 testet 4.7k
older Release working normal using same settings.
io02 and io14 testet 4.7k
older Release working normal using same settings.
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
Can you give the 10k or 20k pullup a try and report back?
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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.
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.
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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?
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?
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
sorry..i´ll be away for one week without any dallas sensor. but i will definitely do some testing after that...
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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
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
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
sorry, same problem no device adress available - tried 10k + 14.7k Pullup
last working for me - ESP_Easy_mega_20220427_normal_ESP32_4M316k_ETH filesize 1.771 KB
filesize 1.275 KBlast working for me - ESP_Easy_mega_20220427_normal_ESP32_4M316k_ETH 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'),
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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.
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
testsed other boards
ESP8266 work ok
ESP32S2 didn´t work
ESP8266 work ok
ESP32S2 didn´t work
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
I had the time to test today...
Everything seems to work fine here.
Have you tried to use only two or three sensors?
Everything seems to work fine here.
Have you tried to use only two or three sensors?
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
Just looked at it. Really, really cool!
Also the device statistics are a nice addition!
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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.
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.
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
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.
Current state: It compiles. Not yet tested myself, but it's already quite late now.
Re: ESP_Easy_mega_20220616_normal_ESP32_4M316k_ETH
Correction on my previous message.... NOW it compiles (on ESP8266 too)
Re: Dallas DS18b20 no longer works on ESP32 since 20220427
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....)
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....)
Re: Dallas DS18b20 no longer works on ESP32 since 20220427
thank you - now it is working perfekt
Re: Dallas DS18b20 no longer works on ESP32 since 20220427
Thanks for confirming it is also working at another configuration and not only on the one on my desk
Who is online
Users browsing this forum: No registered users and 43 guests