visualapproach / WiFi-remote-for-Bestway-Lay-Z-SPA

Hack - ESP8266 as WiFi remote control for Bestway Lay-Z spa Helsinki
GNU General Public License v3.0
305 stars 74 forks source link

NO54154 4 Wire unable to get working on new Unified firmware - works on the old FW #510

Closed chunkysteveo closed 8 months ago

chunkysteveo commented 1 year ago

Hardware:

Software:

Your message Spa works and has worked perfect for months and years, just got it ready for Summer - working fine on the "old - split" firmware, 4W_2022-08-03. Tried out the new unified firmware following the instructions and wiping my ESP8266, but getting a "04" or "39" on the CIO depending on the temperature unit, and no response from the pump by either Web GUI or buttons.

Did the Hardware test and it states all pins failing (I think there is a typo in the hardware test output stings, as it states pins 3,4,5 and then 3,4,5 again in the code, not 0,1,2,3,4,5?).

Re-installed Firmware 4W_2022-08-03 and the spa works again fine via buttons and Web GUI again.

I've skimmed through the code and am unsure what may be causing this, but it's like the pin mappings are all out for me on the newest version? I'd love to be able to be on the latest revision and take advantage of the new GUI, HA entities and the firmware updates etc. Any pointers, as its most definitely NOT a hardware issue, despite the HW test stating all lines are down? Is it the level shifter having issue with the new firmware (seems unlikely)?

visualapproach commented 1 year ago

Thank you, I will do some testing and call you back

lazmo88 commented 1 year ago

Thank you, I will do some testing and call you back

To add on above, I tried catching the "power on" tx/rx from DSP to CIO by keeping the ESP powered with CIO cable, turned on debugging on ESP and then connecting DSP. Not sure if it resulted any useful logs?

visualapproach commented 1 year ago

Status report: WIP. The softwareserial is acting strange when I test with another ESP as "pump simulator". Needs more investigation. Maybe I'm on to something, but I don't know yet.

visualapproach commented 1 year ago

Hahaha maybe if I learned some C++... Due to me forgetting to make some functions virtual, the derived methods were not called. Anyhow, I now hope we will make some progress. Check out dev branch, and let's see what the next problem will be.

lazmo88 commented 1 year ago

Hahaha maybe if I learned some C++... Due to me forgetting to make some functions virtual, the derived methods were not called. Anyhow, I now hope we will make some progress. Check out dev branch, and let's see what the next problem will be.

Great progress! I have uploaded the new FW, will plug the PCB in tonight and report back :) Did you find the debug logs helpful?

visualapproach commented 1 year ago

Thanks, yes they were helpful. Not that they told me what was wrong exactly but it gave me some clues where to look.

lazmo88 commented 1 year ago

Thanks, yes they were helpful. Not that they told me what was wrong exactly but it gave me some clues where to look.

So, great news! It works, however there are few weird issues.

  1. If any of the buttons are "on" when taking control, the unit errors with E02. To avoid the error, you should make sure all buttons on the DSP unit are "off".
  2. Target temperature is not displayed correctly on the ESP WebUI. It always defaults to 20. If any changes are done via the DSP buttons, change is not reflected to ESP WebUI.
  3. Running /inputs/ will trigger E02 (most likely due to same reason if any DSP buttons are "on")
  4. When target temp is adjusted from the ESP WebUI, there seems to be no indicator if the heater is on or off? My current water temp is at 40C, if I adjust target temp to 30C, nothing changes on the ESP WebUI so it is unclear if the heater is actually on or off.

Underneath are the logs and some notes.

Debug log when no control is taken, DSP controls works fine. DSP value is displayed correctly, but target temperature is not updating from DSP to ESP. Unit button does not reflect changes done from DSP buttons to webui. Take control button triggers E02 error. I DSP buttons pressed in following sequence: temp down x 3 / temp up x 3 / bubbles on / bubbles off / pump on / pump off / heating on / heating off / temp down x 2 / temp up x 2 / pump off. Take control from webui > no error when all buttons are off from DSP. All buttons work from webui when DSP buttons were first turned off!

24SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:0,0,0,0,0,0,0,0,0,0,0 ESP-CIO:0,0,0,0,0,0,0,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 0
1700412500SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 1
1700412500SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 1 dsp msg count: 1
1700412511SW:2023-11-19-1330 CIO-ESP:BC,3,27,2,1,2D,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,27,2,1,2D,FD,0,0,0,0
cio msg count: 23 dsp msg count: 23
1700412511SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 24 dsp msg count: 24
33SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 41 dsp msg count: 45
38SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 52 dsp msg count: 57
39SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 53 dsp msg count: 58
1700412650SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,13,0,1,17,FD,0,0,0,0 ESP-CIO:BB,3,13,0,1,17,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 57 dsp msg count: 62
1700412652SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,13,0,0,16,FD,0,0,0,0 ESP-CIO:BB,3,13,0,0,16,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 62 dsp msg count: 67
1700412653SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,30,0,0,33,FD,0,0,0,0 ESP-CIO:BB,3,30,0,0,33,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 63 dsp msg count: 68
1700412657SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,30,0,0,33,FD,0,0,0,0 ESP-CIO:BB,3,30,0,0,33,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 74 dsp msg count: 78
1700412658SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 74 dsp msg count: 79
1700412658SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 76 dsp msg count: 81
1700412659SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 77 dsp msg count: 82
1700412661SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,13,0,1,17,FD,0,0,0,0 ESP-CIO:BB,3,13,0,1,17,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 81 dsp msg count: 86
1700412691SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,1B,0,1,1F,FD,0,0,0,0 ESP-CIO:BB,3,1B,0,1,1F,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 138 dsp msg count: 143
1700412698SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,1B,0,1,1F,FD,0,0,0,0 ESP-CIO:BB,3,1B,0,1,1F,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 153 dsp msg count: 157
1700412698SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 153 dsp msg count: 158
1700412721SW:2023-11-19-1330 CIO-ESP:BC,3,29,2,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,29,2,1,2F,FD,0,0,0,0
cio msg count: 200 dsp msg count: 204
1700412732SW:2023-11-19-1330 CIO-ESP:BC,3,2A,2,1,30,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2A,2,1,30,FD,0,0,0,0
cio msg count: 217 dsp msg count: 221
1700412734SW:2023-11-19-1330 CIO-ESP:BC,3,29,2,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,29,2,1,2F,FD,0,0,0,0
cio msg count: 221 dsp msg count: 225
1700412735SW:2023-11-19-1330 CIO-ESP:BC,3,2A,2,1,30,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2A,2,1,30,FD,0,0,0,0
cio msg count: 222 dsp msg count: 226
1700412748SW:2023-11-19-1330 CIO-ESP:BC,3,2B,2,1,31,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2B,2,1,31,FD,0,0,0,0
cio msg count: 242 dsp msg count: 247
66SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 7 dsp msg count: 12
1700412875SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 35 dsp msg count: 43
1700412884SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 55 dsp msg count: 62
1700412885SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 57 dsp msg count: 65
1700412886SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 60 dsp msg count: 68
1700412887SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 61 dsp msg count: 69
1700412887SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 62 dsp msg count: 69
1700412888SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 63 dsp msg count: 71
1700412889SW:2023-11-19-1330 CIO-ESP:BC,3,2A,0,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,2A,0,1,2E,FD,0,0,0,0
cio msg count: 66 dsp msg count: 73
1700412890SW:2023-11-19-1330 CIO-ESP:BC,3,29,0,1,2D,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,29,0,1,2D,FD,0,0,0,0
cio msg count: 69 dsp msg count: 76
1700412901SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:0,0,0,0,0,0,0,0,0,0,0 ESP-CIO:0,0,0,0,0,0,0,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 0
1700412901SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 1
1700412901SW:2023-11-19-1330 CIO-ESP:BC,3,29,2,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,29,2,1,2F,FD,0,0,0,0
cio msg count: 1 dsp msg count: 1
1700412902SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 2 dsp msg count: 2
1700412902SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 2 dsp msg count: 3
1700412919SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:0,0,0,0,0,0,0,0,0,0,0 ESP-CIO:0,0,0,0,0,0,0,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 0
1700412920SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 1
1700412920SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 1 dsp msg count: 1
1700413098SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 100 dsp msg count: 104
1700413113SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 129 dsp msg count: 134
1700413123SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 152 dsp msg count: 157
1700413123SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 153 dsp msg count: 158
1700413125SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,13,0,1,17,FD,0,0,0,0 ESP-CIO:BB,3,13,0,1,17,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 157 dsp msg count: 162
1700413155SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,1B,0,1,1F,FD,0,0,0,0 ESP-CIO:BB,3,1B,0,1,1F,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 204 dsp msg count: 209
1700413169SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,1B,0,0,1E,FD,0,0,0,0 ESP-CIO:BB,3,1B,0,0,1E,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 229 dsp msg count: 235
1700413169SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,33,0,0,36,FD,0,0,0,0 ESP-CIO:BB,3,33,0,0,36,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 230 dsp msg count: 236
1700413170SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,30,0,0,33,FD,0,0,0,0 ESP-CIO:BB,3,30,0,0,33,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 233 dsp msg count: 239
1700413172SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,0,13,FD,0,0,0,0 ESP-CIO:BB,3,10,0,0,13,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 238 dsp msg count: 244
1700413174SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 242 dsp msg count: 248
1700413178SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 251 dsp msg count: 257
1700413191SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,0,13,FD,0,0,0,0 ESP-CIO:BB,3,10,0,0,13,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 278 dsp msg count: 284
1700413191SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,30,0,0,33,FD,0,0,0,0 ESP-CIO:BB,3,30,0,0,33,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 279 dsp msg count: 285
1700413194SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,0,13,FD,0,0,0,0 ESP-CIO:BB,3,10,0,0,13,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 286 dsp msg count: 292
1700413195SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 289 dsp msg count: 295
1700413263SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 427 dsp msg count: 433
1700413265SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,13,0,1,17,FD,0,0,0,0 ESP-CIO:BB,3,13,0,1,17,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 431 dsp msg count: 437
1700413266SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 433 dsp msg count: 439
1700413339SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,0,13,FD,0,0,0,0 ESP-CIO:BB,3,10,0,0,13,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 583 dsp msg count: 589
1700413344SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,30,0,0,33,FD,0,0,0,0 ESP-CIO:BB,3,30,0,0,33,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 594 dsp msg count: 600
1700413345SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 596 dsp msg count: 602
1700413351SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 608 dsp msg count: 614
1700413351SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 609 dsp msg count: 615
1700413352SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 611 dsp msg count: 617
1700413375SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 660 dsp msg count: 665
1700413376SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 660 dsp msg count: 666
1700413435SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 38 dsp msg count: 41
1700413462SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 93 dsp msg count: 96
1700413463SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 96 dsp msg count: 99
1700413464SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 97 dsp msg count: 100
1700413504SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 178 dsp msg count: 182
1700413512SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 194 dsp msg count: 198
1700413525SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 221 dsp msg count: 225
1700413534SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 240 dsp msg count: 243
1700413534SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,0,13,FD,0,0,0,0 ESP-CIO:BB,3,10,0,0,13,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 240 dsp msg count: 244
1700413539SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 251 dsp msg count: 255
1700413548SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 270 dsp msg count: 274
1700413549SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 271 dsp msg count: 275
1700413551SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,13,0,1,17,FD,0,0,0,0 ESP-CIO:BB,3,13,0,1,17,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 275 dsp msg count: 279
1700413569SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 312 dsp msg count: 316
1700413609SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,0,13,FD,0,0,0,0 ESP-CIO:BB,3,10,0,0,13,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 396 dsp msg count: 400
1700413615SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 407 dsp msg count: 411

E02 error when taking control via ESP. Before taking control DSP worked and webui displayed all values except target temperature.

24SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:0,0,0,0,0,0,0,0,0,0,0 ESP-CIO:0,0,0,0,0,0,0,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 0
1700412500SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 1
1700412500SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 1 dsp msg count: 1
1700412511SW:2023-11-19-1330 CIO-ESP:BC,3,27,2,1,2D,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,27,2,1,2D,FD,0,0,0,0
cio msg count: 23 dsp msg count: 23
1700412511SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 24 dsp msg count: 24
33SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 41 dsp msg count: 45
38SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 52 dsp msg count: 57
39SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 53 dsp msg count: 58
1700412650SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,13,0,1,17,FD,0,0,0,0 ESP-CIO:BB,3,13,0,1,17,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 57 dsp msg count: 62
1700412652SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,13,0,0,16,FD,0,0,0,0 ESP-CIO:BB,3,13,0,0,16,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 62 dsp msg count: 67
1700412653SW:2023-11-19-1330 CIO-ESP:BC,3,27,0,1,2B,FD,0,0,0,0   DSP-ESP:BB,3,30,0,0,33,FD,0,0,0,0 ESP-CIO:BB,3,30,0,0,33,FD,0,0,0,0     ESP-DSP:BC,3,27,0,1,2B,FD,0,0,0,0
cio msg count: 63 dsp msg count: 68
1700412657SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,30,0,0,33,FD,0,0,0,0 ESP-CIO:BB,3,30,0,0,33,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 74 dsp msg count: 78
1700412658SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 74 dsp msg count: 79
1700412658SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 76 dsp msg count: 81
1700412659SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 77 dsp msg count: 82
1700412661SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,13,0,1,17,FD,0,0,0,0 ESP-CIO:BB,3,13,0,1,17,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 81 dsp msg count: 86
1700412691SW:2023-11-19-1330 CIO-ESP:BC,3,28,0,1,2C,FD,0,0,0,0   DSP-ESP:BB,3,1B,0,1,1F,FD,0,0,0,0 ESP-CIO:BB,3,1B,0,1,1F,FD,0,0,0,0     ESP-DSP:BC,3,28,0,1,2C,FD,0,0,0,0
cio msg count: 138 dsp msg count: 143
1700412698SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,1B,0,1,1F,FD,0,0,0,0 ESP-CIO:BB,3,1B,0,1,1F,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 153 dsp msg count: 157
1700412698SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 153 dsp msg count: 158
1700412721SW:2023-11-19-1330 CIO-ESP:BC,3,29,2,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,29,2,1,2F,FD,0,0,0,0
cio msg count: 200 dsp msg count: 204
1700412732SW:2023-11-19-1330 CIO-ESP:BC,3,2A,2,1,30,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2A,2,1,30,FD,0,0,0,0
cio msg count: 217 dsp msg count: 221
1700412734SW:2023-11-19-1330 CIO-ESP:BC,3,29,2,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,29,2,1,2F,FD,0,0,0,0
cio msg count: 221 dsp msg count: 225
1700412735SW:2023-11-19-1330 CIO-ESP:BC,3,2A,2,1,30,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2A,2,1,30,FD,0,0,0,0
cio msg count: 222 dsp msg count: 226
1700412748SW:2023-11-19-1330 CIO-ESP:BC,3,2B,2,1,31,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2B,2,1,31,FD,0,0,0,0
cio msg count: 242 dsp msg count: 247
66SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 7 dsp msg count: 12
1700412875SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 35 dsp msg count: 43
1700412884SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,20,0,0,23,FD,0,0,0,0 ESP-CIO:BB,3,20,0,0,23,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 55 dsp msg count: 62
1700412885SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 57 dsp msg count: 65
1700412886SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 60 dsp msg count: 68
1700412887SW:2023-11-19-1330 CIO-ESP:BC,3,2C,0,1,30,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,2C,0,1,30,FD,0,0,0,0
cio msg count: 61 dsp msg count: 69
1700412887SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,11,0,1,15,FD,0,0,0,0 ESP-CIO:BB,3,11,0,1,15,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 62 dsp msg count: 69
1700412888SW:2023-11-19-1330 CIO-ESP:BC,3,2B,0,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,2B,0,1,2F,FD,0,0,0,0
cio msg count: 63 dsp msg count: 71
1700412889SW:2023-11-19-1330 CIO-ESP:BC,3,2A,0,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,2A,0,1,2E,FD,0,0,0,0
cio msg count: 66 dsp msg count: 73
1700412890SW:2023-11-19-1330 CIO-ESP:BC,3,29,0,1,2D,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,29,0,1,2D,FD,0,0,0,0
cio msg count: 69 dsp msg count: 76
1700412901SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:0,0,0,0,0,0,0,0,0,0,0 ESP-CIO:0,0,0,0,0,0,0,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 0
1700412901SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 1
1700412901SW:2023-11-19-1330 CIO-ESP:BC,3,29,2,1,2F,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,29,2,1,2F,FD,0,0,0,0
cio msg count: 1 dsp msg count: 1
1700412902SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,10,0,1,14,FD,0,0,0,0 ESP-CIO:BB,3,10,0,1,14,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 2 dsp msg count: 2
1700412902SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 2 dsp msg count: 3
1700412919SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:0,0,0,0,0,0,0,0,0,0,0 ESP-CIO:0,0,0,0,0,0,0,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 0
1700412920SW:2023-11-19-1330 CIO-ESP:0,0,0,0,0,0,0,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:0,0,0,0,0,0,0,0,0,0,0
cio msg count: 0 dsp msg count: 1
1700412920SW:2023-11-19-1330 CIO-ESP:BC,3,28,2,1,2E,FD,0,0,0,0   DSP-ESP:BB,3,0,0,0,3,FD,0,0,0,0 ESP-CIO:BB,3,0,0,0,3,FD,0,0,0,0     ESP-DSP:BC,3,28,2,1,2E,FD,0,0,0,0
cio msg count: 1 dsp msg count: 1
lazmo88 commented 1 year ago

@visualapproach perhaps unrelated to above issue, yet for some reason Home Assistant displays all sensors/buttons duplicated?

There is only one climate entity: climate.layzspa_wifi_controller_4w_layzspa_4w_temp_ctrl

However buttons/sensors are displayed as: switch.layzspa_wifi_controller_layzspa_heat_regulation switch.layzspa_wifi_controller_4w_layzspa_heat_regulation

I tried searching the repo for issues, but did not find any similar issues reported?

visualapproach commented 1 year ago

That was very nice to hear! Indeed! Thanks for your detailed report in short time, cool! My comments below:

  1. If any of the buttons are "on" when taking control, the unit errors with E02. To avoid the error, you should make sure all buttons on the DSP unit are "off".

Okay, I need to look into that. I guess it's the same meaning as on the 6-wire pumps - "no flow". I have an idea of how to get round that issue.

  1. Target temperature is not displayed correctly on the ESP WebUI. It always defaults to 20. If any changes are done via the DSP buttons, change is not reflected to ESP WebUI.

That's "by design". There is no way to know what the target temp is on the DSP, because it's internal to that unit. It only toggles heater on/off to regulate the temperature. So when in control, the web UI target temp is in charge. Otherwise it's the DSP.

  1. Running /inputs/ will trigger E02 (most likely due to same reason if any DSP buttons are "on")

An error is expected. Actually i'd expect E13 since the serial ports to/from the pump is shut down. The ESP is only listening and the DSP panics.

  1. When target temp is adjusted from the ESP WebUI, there seems to be no indicator if the heater is on or off? My current water temp is at 40C, if I adjust target temp to 30C, nothing changes on the ESP WebUI so it is unclear if the heater is actually on or off.

The UI button should turn red when heater is on (IIRC). If water temp is 40 (max), the heater is likely OFF. Check when actual temp is lower than target temp.

Regarding HA: Go to settings/devices and remove the extra layzspa device: ("Ta bort" is Swedish for "remove")

image

lazmo88 commented 1 year ago

That was very nice to hear! Indeed! Thanks for your detailed report in short time, cool! My comments below:

  1. If any of the buttons are "on" when taking control, the unit errors with E02. To avoid the error, you should make sure all buttons on the DSP unit are "off".

Okay, I need to look into that. I guess it's the same meaning as on the 6-wire pumps - "no flow". I have an idea of how to get round that issue.

  1. Target temperature is not displayed correctly on the ESP WebUI. It always defaults to 20. If any changes are done via the DSP buttons, change is not reflected to ESP WebUI.

That's "by design". There is no way to know what the target temp is on the DSP, because it's internal to that unit. It only toggles heater on/off to regulate the temperature. So when in control, the web UI target temp is in charge. Otherwise it's the DSP.

  1. Running /inputs/ will trigger E02 (most likely due to same reason if any DSP buttons are "on")

An error is expected. Actually i'd expect E13 since the serial ports to/from the pump is shut down. The ESP is only listening and the DSP panics.

  1. When target temp is adjusted from the ESP WebUI, there seems to be no indicator if the heater is on or off? My current water temp is at 40C, if I adjust target temp to 30C, nothing changes on the ESP WebUI so it is unclear if the heater is actually on or off.

The UI button should turn red when heater is on (IIRC). If water temp is 40 (max), the heater is likely OFF. Check when actual temp is lower than target temp.

Regarding HA: Go to settings/devices and remove the extra layzspa device: ("Ta bort" is Swedish for "remove")

image

Thanks! MQTT issue was indeed resolved by deleting device and then enabling MQTT again on the ESP/WebUI :)

Also the heating indicator is now clear, it is green when in "idle" and red when "heating". This is more clear on the Home Assistant, so I just did not read the color on webui correctly. All good here as well.

Re:target value, makes sense. I will monitor that the ESP works as expected when it comes to temp regulation, it seems to work, but I will keep an eye on it to be sure.

Re:inputs, good to know, it is a debug feature anyway so won't interfere with the use ;)

Re:E02 if any DSP buttons are "on" when taking control from ESP - some sort of "handover/reset" protocol could be a solution here. Basically sending "turn off all buttons" command sequence when ESP takes over could solve the issue? And the same if any DSP buttons are pressed when ESP is in control? Obviously root cause would need to be identified first, it could be either invalid combination of buttons or turning on a button that is already on to trigger this error? While this can cause some confusion as it did for me, controller still works. If no solution is found, perhaps updating documentation/readme could avoid confusion :)

malfurion commented 1 year ago

Hey,

i've installed the latest dev version and all works good.

to answer the questions above.

If any of the buttons are "on" when taking control, the unit errors with E02. To avoid the error, you should make sure all buttons > on the DSP unit are "off". Target temperature is not displayed correctly on the ESP WebUI. It always defaults to 20. If any changes are done via the DSP buttons, change is not reflected to ESP WebUI.

when taking the control with the esp the dsp is always kinda deactivated the E02 error was already coming on older versions when pressing buttons on the dsp. but ok for me because im not using the dsp any more since changed to the esp control The only thing working in both directions is if you take control the dsp shows the correct actual temp

When target temp is adjusted from the ESP WebUI, there seems to be no indicator if the heater is on or off? My current water temp is at 40C, if I adjust target temp to 30C, nothing changes on the ESP WebUI so it is unclear if the heater is actually on or off.

the heating works fine mine is on 27°C atm and when going up with the target temp the heater icon is going from green to red and you can hear the relay switching inside the pump

image

image

perhaps unrelated to above issue, yet for some reason Home Assistant displays all sensors/buttons duplicated?

There is only one climate entity: climate.layzspa_wifi_controller_4w_layzspa_4w_temp_ctrl

However buttons/sensors are displayed as: switch.layzspa_wifi_controller_layzspa_heat_regulation switch.layzspa_wifi_controller_4w_layzspa_heat_regulation

This is normal because the ha item names underneath changed because there is no 4w in the name any more because its a unified firmware now but home assistant is holding the old items because it dosn't know that change so you need to delete the old item

you can do this manual or you can delete the mqtt item and restart the pools esp so the entries will get regenerated by home assistant but take care if you have any automations like me you perhaps need to reassign them to the new items

lazmo88 commented 1 year ago

@visualapproach

Hey,

i've installed the latest dev version and all works good.

to answer the questions above.

If any of the buttons are "on" when taking control, the unit errors with E02. To avoid the error, you should make sure all buttons > on the DSP unit are "off". Target temperature is not displayed correctly on the ESP WebUI. It always defaults to 20. If any changes are done via the DSP buttons, change is not reflected to ESP WebUI.

when taking the control with the esp the dsp is always kinda deactivated the E02 error was already coming on older versions when pressing buttons on the dsp. but ok for me because im not using the dsp any more since changed to the esp control The only thing working in both directions is if you take control the dsp shows the correct actual temp

When target temp is adjusted from the ESP WebUI, there seems to be no indicator if the heater is on or off? My current water temp is at 40C, if I adjust target temp to 30C, nothing changes on the ESP WebUI so it is unclear if the heater is actually on or off.

the heating works fine mine is on 27°C atm and when going up with the target temp the heater icon is going from green to red and you can hear the relay switching inside the pump

image

image

perhaps unrelated to above issue, yet for some reason Home Assistant displays all sensors/buttons duplicated? There is only one climate entity: climate.layzspa_wifi_controller_4w_layzspa_4w_temp_ctrl However buttons/sensors are displayed as: switch.layzspa_wifi_controller_layzspa_heat_regulation switch.layzspa_wifi_controller_4w_layzspa_heat_regulation

This is normal because the ha item names underneath changed because there is no 4w in the name any more because its a unified firmware now but home assistant is holding the old items because it dosn't know that change so you need to delete the old item

you can do this manual or you can delete the mqtt item and restart the pools esp so the entries will get regenerated by home assistant but take care if you have any automations like me you perhaps need to reassign them to the new items

Thanks for the details, it seems all works as expected :) Does "god mode" work on all pumps or is this limited to certain units only? 54123 does not have heating + bubbles mode by default, so I am wondering if I can test the god mode to enable this.

Related to god mode and optimizing the controller, is there any good tips how to enable instant recovery after potential power cut? I know I can schedule commands to turn on the unit every hour for example and another command for turn on the pump, but this only happens on set intervals. Unless I am not mistaken there is no trigger on reboot/power cycle?

visualapproach commented 1 year ago

"god mode" aka "take control" is necessary for all 4 wire pumps. It shifts the control from the DSP to the ESP8266. It doesn't allow hidden features or such. Think of it as a switch between "DSP is in control" and "ESP is in control". You can ofc test while supervising, but I don't recommend enabling features the pump isn't designed for (I like the spirit though). You may draw more current than anticipated and start a fire in worst case. Probably you will just have a pump that doesn't do what you want since the messages are a bit different between the pump models.

visualapproach commented 1 year ago

BTW, you can activate "restore on start" in the config menu. I hope it is working.

lazmo88 commented 1 year ago

BTW, you can activate "restore on start" in the config menu. I hope it is working.

Just discovered and tested it, it seems to work at least when restart is triggered from the ESP.

Not sure if it is a software limitation or hardware, but ESP doesn't allow turning bubbles + heating on.

Is there a bug in the "ready in" time display? I did run calibration and current ambient temperature is pushed from HA. Result displayed is -1 d - 1:00:00 while target temp is 40 and current 38, virtual 37.99.

malfurion commented 1 year ago

Not sure if it is a software limitation or hardware, but ESP doesn't allow turning bubbles + heating on.

this is a restriction from the pump and isn't also possible without the esp when activating the bubbles on the dsp the filter will go off

chunkysteveo commented 1 year ago

Not sure if it is a software limitation or hardware, but ESP doesn't allow turning bubbles + heating on.

this is a restriction from the pump and isn't also possible without the esp when activating the bubbles on the dsp the filter will go off

Depends on the model - my Paris 4-wire allows for bubbles and heater on (low). The model definition specify what is allowed in a matrix in the code.

chunkysteveo commented 1 year ago

Hey @visualapproach ! I guess if the firmware is updated to allow for the 4-wires, I'd best pull my finger out and test this too now?!!! Ha

Will pull out the pump asap and test on mine too, to confirm. Excited to test!!

Steve

visualapproach commented 1 year ago

Hey @visualapproach ! I guess if the firmware is updated to allow for the 4-wires, I'd best pull my finger out and test this too now?!!! Ha

Will pull out the pump asap and test on mine too, to confirm. Excited to test!!

Steve

Fingers crossed 🤞🏻

lazmo88 commented 1 year ago

@malfurion or @visualapproach can you confirm that the time to ready is working as expected? I have ran few calibrations now and I'm still getting negative output as value.

visualapproach commented 1 year ago

Some pumps have a very erratic temperature sensor that jumps between, let's say 25 and 26 when it's in between. This makes it hard for the auto calibration. Make a manual calibration instead (see manual and tooltip in UI)

visualapproach commented 1 year ago

@chunkysteveo can you plz report here after you have tested. If it works we can finally close this issue.

chunkysteveo commented 1 year ago

Will do!! 👌🏻

MyMakibox commented 1 year ago

@chunkysteveo can you plz report here after you have tested. If it works we can finally close this issue.

I have positive hardware test results but no success in the pump, even with the latest firmware. Maybe that's the pump model - mine is a Sienna with egg pump, 4 wire, air. I've exhausted all the HW options.

lazmo88 commented 1 year ago

@chunkysteveo can you plz report here after you have tested. If it works we can finally close this issue.

I have positive hardware test results but no success in the pump, even with the latest firmware. Maybe that's the pump model - mine is a Sienna with egg pump, 4 wire, air. I've exhausted all the HW options.

What is your FW version? Just make sure you are using the latest development branch as I managed to flash wrong FW multiple times 😅

visualapproach commented 1 year ago

@lazmo88 I pulled the beta to master branch so they're the same for the moment but thanks for the heads up. @MyMakibox did you get it to work on v3.5? If not your problem belongs in another issue. Yeah I could probably scroll through and get the answer but I don't wanna on my phone.

lazmo88 commented 1 year ago

@lazmo88 I pulled the beta to master branch so they're the same for the moment but thanks for the heads up. @MyMakibox did you get it to work on v3.5? If not your problem belongs in another issue. Yeah I could probably scroll through and get the answer but I don't wanna on my phone.

@visualapproach do we have any fallback/redundancy features in place for mqtt/wifi connectivity? We have had quite a few power cuts lately and sometimes the ESP fails to connect to wifi/mqtt afterwards. You basically need to power cycle the whole device to get it back online. And as HASS controls the ESP parameters, the pump has had a close calls of freezing in these cold temps (restore last states has been on, but DSP has been stuck at 00 after power cuts) 😬 I am aware of the command queue, but it doesn't have any connectivity options (unless you reboot whole ESP, which may be excessive). Alternatively we could automate power cycle if ESP/mqtt is unavailable, but I would like to know if there are any built-in redundancy features that I'm unaware of 😅

visualapproach commented 1 year ago

@lazmo88 plz move this question to a separate issue/discussion. This thread is about something else. You should deactivate autoportal and it should be fine and you are welcome to test it.

github-actions[bot] commented 10 months ago

Stale issue message

chunkysteveo commented 10 months ago

Going to test, review, confirm and hopefully close off!!

ashb commented 10 months ago

So one thing I think I've noticed on my 4 wire 2020? Hydrojet (model 54173) is that the old firmware worked most of the time, but not all of the time.

One thing that I did find that made the old fw work 100% of the time is to power on the pump and ESP with the screen disconnected and only then plug the screen into the ESP.

I will try and find time to test if the same holds true on the new firmware.

Could this be a sign that the serial proxy/MitM isn't quick enough at starting for my model of screen?

github-actions[bot] commented 8 months ago

Stale issue message

ashb commented 5 months ago

Still not stale -- @visualapproach I've just tried the latest v4.3 version and I'm still having this issue. I think the wifi is taking too long to connect and the screen enters an error state that can only be fixed by powercycling (It's in just beeping.)

How ever even though the screen is complaining the controls still work, I can turn the blower on etc.

visualapproach commented 5 months ago

Okay, so if you disconnect the display and reconnect again while the esp is running, it will work?

ashb commented 5 months ago

Yes, that works.

ashb commented 5 months ago

Okay "interesting" if I apply this diff to delay wifi, ntp etc for 60s:

diff --git a/Code/src/main.cpp b/Code/src/main.cpp
index 2fd59bf..f449b6b 100644
--- a/Code/src/main.cpp
+++ b/Code/src/main.cpp
@@ -76,20 +76,11 @@ void setup()
     // update webpage every 2 seconds. (will also be updated on state changes)
     updateWSTimer.attach(2.0, []{ sendWSFlag = true; });
     loadWebConfig();
-    startWiFi();
-    startNTP();
-    startOTA();
-    startHttpServer();
-    startWebSocket();
-    startMqtt();
     if(bwc->hasTempSensor)
     { 
         oneWire->begin(bwc->tempSensorPin);
         tempSensors->begin();
     }
-    Serial.println(WiFi.localIP().toString());
-    bwc->print("   ");  //No overloaded function exists for the F() macro
-    bwc->print(WiFi.localIP().toString());
     bwc->print("   ");
     bwc->print(FW_VERSION);
     Serial.println(F("End of setup()"));
@@ -97,6 +88,19 @@ void setup()
     Serial.println(ESP.getFreeHeap());
 }

+void onStartWifi() {
+    wifiConnected = true;
+    startWiFi();
+    startNTP();
+    startOTA();
+    startHttpServer();
+    startWebSocket();
+    startMqtt();
+    Serial.println(WiFi.localIP().toString());
+    bwc->print("   ");  //No overloaded function exists for the F() macro
+    bwc->print(WiFi.localIP().toString());
+}
+
 void loop()
 {
     uint32_t freeheap = ESP.getFreeHeap();
@@ -154,6 +158,9 @@ void loop()
     if (periodicTimerFlag)
     {
         periodicTimerFlag = false;
+        if (!wifiConnected) {
+          onStartWifi();
+        }
         if (WiFi.status() != WL_CONNECTED)
         {
             bwc->print(F("check network"));

The screen is silent right up until the WiFi connects, buttons work on screen, and only then does it the screen enter an error state (starts beeping).

visualapproach commented 5 months ago

Thanks. I wonder if it's a timing thing - the ESP is delaying comms to the DSP, or if it's due to a power "surge" when turning on the Wi-FI.

ashb commented 5 months ago

It feels more like timing than a power surge, but I only have basic electronic tools (a v cheap DMM) to debug.

ashb commented 5 months ago

@visualapproach I think it's NTP: This seems to help:

diff --git a/Code/src/main.cpp b/Code/src/main.cpp
index 2fd59bf..1d3708f 100644
--- a/Code/src/main.cpp
+++ b/Code/src/main.cpp
@@ -450,29 +450,20 @@ void startWiFiConfigPortal()
     // Serial.println("");
 }

-/**
- * start NTP sync
- */
-void startNTP()
-{
-    sWifi_info wifi_info;
-    wifi_info = loadWifi();
-    Serial.println(F("start NTP"));
-    // configTime(0,0,"pool.ntp.org", "time.nist.gov");
-    configTime(0,0,wifi_info.ip4NTP_str, F("pool.ntp.org"), F("time.nist.gov"));
+int ntpTryNumber = 0;
+
+void checkNTP() {
     time_t now = time(nullptr);
-    int count = 0;
-    while (now < 8 * 3600 * 2) {
-        delay(500);
-        Serial.print(".");
-        now = time(nullptr);
-        if(count++ > 10) return;
+    if (now < 8 * 3600 * 2) {
+        if (++ntpTryNumber == 10) {
+          ntpCheck.detach();
+          return;
+        }
+
+        return;
     }
-    Serial.println();
     struct tm timeinfo;
     gmtime_r(&now, &timeinfo);
-    // Serial.print("Current time: ");
-    // Serial.print(asctime(&timeinfo));

     time_t boot_timestamp = getBootTime();
     tm * boot_time_tm = gmtime(&boot_timestamp);
@@ -483,6 +474,21 @@ void startNTP()
     bwc->saveRebootInfo();
 }

+/**
+ * start NTP sync
+ */
+void startNTP()
+{
+    sWifi_info wifi_info;
+    wifi_info = loadWifi();
+    Serial.println(F("start NTP"));
+
+    // configTime(0,0,"pool.ntp.org", "time.nist.gov");
+    configTime(0,0,wifi_info.ip4NTP_str, F("pool.ntp.org"), F("time.nist.gov"));
+    ntpCheck.attach(0.5, checkNTP);
+}
+
+
 void startOTA()
 {
     ArduinoOTA.setHostname(OTAName);
@@ -549,6 +555,7 @@ void pause_all(bool action)
         if(startComplete.active()) startComplete.detach();
         if(updateWSTimer.active()) updateWSTimer.detach();
         if(bootlogTimer.active()) bootlogTimer.detach();
+        if(ntpCheck.active()) ntpCheck.detach();
     } else 
     {
         periodicTimer.attach(periodicTimerInterval, []{ periodicTimerFlag = true; });
@@ -1478,6 +1485,7 @@ void resetWiFi()
     periodicTimer.detach();
     updateMqttTimer.detach();
     updateWSTimer.detach();
+    if (ntpCheck.active()) ntpCheck.detach();
     bwc->stop();
     bwc->saveSettings();
     delay(1000);
diff --git a/Code/src/main.h b/Code/src/main.h
index 313588e..a451c5a 100644
--- a/Code/src/main.h
+++ b/Code/src/main.h
@@ -41,6 +41,7 @@ Ticker bootlogTimer;
 /**  */
 Ticker periodicTimer;
 Ticker startComplete;
+Ticker ntpCheck;
 /**  */
 bool periodicTimerFlag = false;
 /**  */
visualapproach commented 5 months ago

I timed some functions, and the startWifi takes 5 seconds for me. Investigated further and seeing that it sits in a waiting loop, not handling the comms with the DSP, so I put in calls to bwc->loop() while waiting. I really hope this is it!! Please try the new dev branch. FW = 2024-06-09-1845

visualapproach commented 5 months ago

Oh I saw your last NTP message after I posted. But try both changes.

ashb commented 5 months ago

The wifi only change for me doesn't seem to help, in fact somehow it seems to make it worse and the wifi doesn't connect at all for me anymore. (I don't quite get how looking at that diff) -- but it just occurred to me: I'm in Eurpoe, so the latency to time.nist.gov is probably on the large side.

visualapproach commented 5 months ago

Okay I'll look at it again (later) and see if I can spot something. I'm also in Europe and the NTP just took around 100 ms to run. But anyhow, we must get rid of all unnecessary delays that will stall dsp comms.

visualapproach commented 5 months ago

Ok, I don't want to push to github yet because it's unstable if you remove the debug=serial in platformio.ini. But can you replace your local files with these and try? main.zip

visualapproach commented 5 months ago

The setup() is now done in under a second :-) and it should not stall waiting for wifi.

ashb commented 5 months ago

I'll try at some point today

@visualapproach Looking good! I'll test it through a few more power cycles over the day, but that seems to have done the trick

visualapproach commented 5 months ago

@ashb Nice! I have uploaded a new version to dev branch. It was stable during my own tests. I haven't tested how it behaves after a wifi loss but I hope it works the same.

ashb commented 5 months ago

Hmm, possibly getting an E01 (water sensor) error running this for a bit.

Today is the first time I've been able to test and the tub was empty for a few days

visualapproach commented 5 months ago

It may be a correct error. Do you get it without the device?

ashb commented 5 months ago

It's difficult for me to try, but I'll check

Do I remember that the pump will kick on every so often to read the temperature? I am wondering if it's to do with that