New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mega-20191116 Core260 upgrade experience: DS18B20's error; Analog re-calibrate #2786
Comments
How about wiping the board with a blank.bin and then reinstall easyesp and re do all the configuration. Make a backup first. |
Can you disconnect one of the not working sensors (and disable the plugin for it) and check if the non working sensor starts working then? |
@TD-er have also reports about some kind of instability also on my own builds, will ask more details from my friends |
Make sure you also check how many are connected (and active) on the same string. |
@TD-er but this is related to configuration submit or rules editing/sending |
Ah, OK, I thought it was more about the init being called when submitting a task config and maybe that would be the issue here, when the plugins are initialized at boot they are all init'ed quite fast one after the other. Well, you're the official Dallas expert here :) |
and DHT ;) |
Just after a cold start. Just after a cold start. So something is writing extreme often to flash |
Hmm that's strange. |
[OT for this problem] I tough ... The Off cycle was too short (due to an overkill of capacitors for stability ;) Then after a number of experiments, say 10 different configurations. But after a long Off cycle, still the problem Solution: |
Back to the observations:
Spoiler alert .... Task4 position is corrupted !
And then: Both sensors are working correct. |
Do you have rules active? |
Yes, 3 pages of rules, but .. Yes, P2P active. 2 units. Both mega-20191116. 2 Domoticz HTTP controllers are active (2 different IP's) |
Some wrap-up: So I did try the same for Unit2, and swapped the DS18B20 Task 4 with Task 11 (in this case a Switch input) and YES. Now #4 DS18B20 tasks are operational. To me it seems that there are some strange memory-out-of-bound things going on. About the reboot mania: Hope these observations will help. |
@Domosapiens please show your configuration - screenshots |
One explanation for this behavior can be that you increased the "distance" between the tasks. |
@uzi18 : to help your bug search .. Unit with #2 DS18B20 sensors Code related to P2P, just SendTo: `On Detect#Switch do On Touch#Switch=0 do On Rules#Timer=1 do
Unit with #4 DS18B20 sensors |
@TD-er , I remember the discussion about 12/24 Tasks and Task/Memory allocation. About mega20191116 release: In generally I operate sensor tasks at at different time, like 29, 30, 31, 33 seconds (or 58,59,60,61) to create some random aspects for the scheduler. |
Was one of them (or both) running a test firmware? (see firmware name in the sysinfo tab) |
No, no test version.
Running: ESP82xx Core 2_6_0, NONOS SDK 2.2.2-dev(bb83b9b), LWIP: 2.1.2 PUYA support
Running ESP82xx Core 2_5_2, NONOS SDK 2.2.1(cfd48f3), LWIP: 2.1.2 PUYA support Will update the 4 sensor unit to Core 2_6_0, also. |
Maybe even go for core 2.6.1 or 2.6.2? |
Core 2.6.1 or 2.6.2 not seen in mega20191116 release My first objective is to get my 7 production units to an acceptable reliability level. (second unit looks promising: running now 8hr without RB) ! |
BTW. Self compilation is not that complicated anymore thanks to great Vagrant environment prepared by TD-er. All you need is a machine with (preferably) Ubuntu 18 LTS OS connected to Internet and able to run a virtual machine inside (so some RAM and CPU features are needed but even 10 years old PC is enough). If you are interested, I can help you with it. |
Only thing I can imagine is that the plugin now does some more filtering and also not samples during WiFi (re)connect attempts. v2.0.0-dev13 used core 2.3.x and we're now using a newer core. |
Great experience with mega-20191116 Core260 ! Today an other production unit was loaded with the mega-20191116 Core260 update. The solution ... swap Task4 with Task9 a system info uptime task B.t.w. |
Before upgrade:
Both units upgraded to mega-20191116 core 260 sdk 222 4M1M
Problem (the unit with 4 sensors):
All DS18B20 give 0.0
All DS18B20 don't give a log contribution
No scheduling?
Cold start, same problem
(re-) Submit of first DS18B20 task (all actions with ErrorStateValue -127) does not help
(re-) Submit of second DS18B20 task: sensor is working !
(re-) Submit again of first DS18B20 task: both sensors not working
Try again:
Other unit with 2 sensors
.
.
.
Conclusion:
First sensor is omitted, 2,3 and 4 are working.
Bug search suggestion:
A start counting with 0 or 1 bug?
Additional info:
Bug introduced after mega-20190809
(other units of mine, with mega-20190809, don't have this DS18B20 problem)
Related to #2585 ??
First sensor not scheduled ???
#2745 ??
First sensor of a type not scheduled ???
(no need to discuss the hardware, that was working for > 3 months on both units)
The text was updated successfully, but these errors were encountered: