BSB-LAN icon indicating copy to clipboard operation
BSB-LAN copied to clipboard

[BUG] Set date and time reset after a while

Open barbuslex opened this issue 1 year ago • 20 comments

BSB-LAN Version

#define MAJOR "3"
#define MINOR "3"
#define PATCH "2"
#define COMPILETIME "20231115201023"

Architecture ESP32

Bus system BSB

Describe the bug The entry of the date and time is reset to zero after a few times.

To Reproduce I do not observe this behavior if the heat pump control panel remains on the first date and time setting display at startup. Comment-regler-date-et-heure-pac-alfea-ai-3

Steps to reproduce the behavior: Power Off Atlantic Extensa Duo. Power On. The date/time is resetted to 01.01.2015 00:00:00 by default. At startup, the panel request to set date and time. Cancel this display with return button. Comment-regler-date-et-heure-pac-alfea-ai-1

  1. Go to http://bsblanip/0
  2. Default value is '01.01.2015 01:50:57'
  3. Go to http://bsblanip/S0=28.02.2024_13:12:23
  4. Go to http://bsblanip/0
  5. The time is correctly set to '28.02.2024 13:12:23'
  6. Wait 1-2 minutes
  7. Go to http://bsblanip/0
  8. The time is resseted to '01.01.2015 01:52:57'

Log files - Bug reports without log files will be closed Don't have any logs

Expected behavior When the date and time is set by http, i need it will be persisted.

Screenshots image image

Desktop (if applicable, please complete the following information):

  • OS: Windows 11
  • Browser: Firefox
  • Browser version: 123

Additional context Maybe my BSB_LAN_custom_defs.h (attached) file is bad because i use same that my neighbor who have same heat pump than me. But it seems its seems in integrated control panel which send every 1-2 minutes the date/time : image

BSB_LAN_custom_defs.h.txt BSB_LAN_config.h.txt BSB-LAN-211-127-137987.txt

barbuslex avatar Feb 28 '24 22:02 barbuslex

You need to provide a serial monitor log as described in the manual, from the time the heater starts until the time is reset to the wrong date, after you changed it via BSB-LAN. Otherwise there is nothing I can do.

fredlcore avatar Feb 29 '24 01:02 fredlcore

Is it possible to monitor log from wifi ? Is not possible for me to connect ESP32 on heater pump and on my pc in same time :S I have see it's possible to connect to telnet for debugging (in settings). Could this be enough?

barbuslex avatar Feb 29 '24 01:02 barbuslex

Yes, that would be enough. It's just important that you start the log before you set the time and wait until the wrong time is set again.

fredlcore avatar Feb 29 '24 03:02 fredlcore

OK, i have try but it seems that i have only log from ESP32 but no log from heat pump. I see in log the date/time set by bsb-lan but not the reset. And i can't set Parameter 0 for retrieve date/time by MQTT every 30 seconds : image

Here my settings : image image Should i activate this setting ? image

barbuslex avatar Feb 29 '24 11:02 barbuslex

Please read up in the manual what a serial monitor log is, it is not the same as logging parameters. There is a dedicated chapter in the manual: https://1coderookie.github.io/BSB-LPB-LAN_EN/chap12.html#122-serial-monitor All you need to activate is Debugging / Usage / Telnet

fredlcore avatar Feb 29 '24 12:02 fredlcore

I have enabled this settings : image

I confirm, if i let the heat pump on startup display, the date/time is not resetted : 308736560-05a7499b-bc72-4325-a76b-169995f5bdd9

I have push 3 time to the return button (3) for cancel and return on home display the date is resetted every 1-2 minutes. But i not have the log of the reset. In log file it's just refresh (F5) of the BSB-LAN /K0 page.

In the log file: Set date/time: line 166 Show reset by F5 on /K0: line 3414 monitor.txt

Tell me if it's good or not...

barbuslex avatar Feb 29 '24 12:02 barbuslex

Yes, that log file is the one I'm looking for, but please disable all kind of logging, MQTT etc., otherwise the file is way too cluttered to find anything.

fredlcore avatar Feb 29 '24 12:02 fredlcore

Here the new clean monitor log : monitor2.txt

barbuslex avatar Feb 29 '24 17:02 barbuslex

Hm, that's strange, also because there is no other communication on the bus. Normally, the display (which identifies as "DISP" in addition to "HEIZ" and "LAN" which is the heater and BSB-LAN respectively) should send a telegram every 10 seconds to the heater to either query the displayed value or to make changes for example regarding the time. What makes me wonder is that the date falls back to 2015. Normally, the time is set via the display unit on the heater. It seems to me that the display "forgets" the correct time, as if it had lost its backup battery or something like that, and then just uses the first date it know (i.e. 2015). Since there is "silence" in the log unless you are doing something with BSB-LAN, I can't really help because I can't see what/if the display unit is interfering in any way. From the BSB-LAN part, all seems to be fine...

fredlcore avatar Feb 29 '24 17:02 fredlcore

Yes, in fact I'd like to be able to send the date and time back to the heat pump after a power cut. I don't have this problem if I set the date on the display and use it. The problem occurs after a power cut. So I'd have to force this date and time onto the heat pump display instead. Is there any way of doing this?

I have see inside the heater and the wiring is like this : (example picture its not my installation) image

Yellow : Front display of the heater Blue: Inside home sensor/switch Red: ESP32 BSB-LAN

Is it possible that yellow is not on the same bus than red ?

barbuslex avatar Feb 29 '24 17:02 barbuslex

It's the same with me, and both are part of the BSB bus. Can you try and run the serial monitor log while you change one parameter to a different value and then back again? Let's say comfort temperature setpoint (710) to 24 degrees and then back to the original. It should be visible on the serial monitor. If not, then your system may be different from mine and then I don't know if you can "reach" the display unit.

In order to send directly to the display unit, you could try and add a !10 after the /S0, so that it's /S0!10=... and also run a serial monitor log when doing so. The second option would be to send it as an INF, i.e. /I0=.... Also run a serial monitor log here. If none of this works, then I'm at my wit's end...

fredlcore avatar Mar 01 '24 01:03 fredlcore

Ok i need to buy a long usb cable to do it. I will buy it and i will try. I will reply on next message in few days when i have the monitor log.

barbuslex avatar Mar 01 '24 11:03 barbuslex

Here the log : monitor.txt

I have try to set year to 2025. Set comfort temperature setpoint (710) to 24 degrees : OK Set comfort temperature setpoint (710) to 21.5 degrees : OK /S0!10=01.03.2025_23:02:32 set failed /I0=01.03.2025_23:02:32 return nothing

barbuslex avatar Mar 01 '24 22:03 barbuslex

Sorry, I meant to change these parameters on the display and have the serial monitor running while you change it there...

fredlcore avatar Mar 02 '24 00:03 fredlcore

Ok i change just comfort temperature or date/time too ? I tried the date and time in the previous monitor it seems and it displayed nothing. But i can retry. I will test in 1 week because i'm not in my house actually. I will post the monitor in a next comment.

barbuslex avatar Mar 02 '24 11:03 barbuslex

Just the temperature is enough. I know you changed the time in the previous log, but since nothing of that showed up in the monitor log, I wanted you to try it with a different parameter. If that one also does not show up in the monitor log, then the display is somehow detached from the rest of the BSB bus - which is strange, but could be possible. But it would mean that you have no way of accessing the display unit and change its time. The last resort would be if you have a room unit. What happens if you change the time from there? If you have one, then changing the time via the room unit while you are capturing the serial monitor output would be the last thing I could look at.

fredlcore avatar Mar 02 '24 11:03 fredlcore

Oh.. ok i have understand... i will test when i return to my home. I have 2 room display like this : Sans titre But i can't change date/time with them just temperature and climate hot/cool.

barbuslex avatar Mar 02 '24 17:03 barbuslex

Yes, these are the "simpler" ones, unfortunately...

fredlcore avatar Mar 02 '24 17:03 fredlcore

What's strange is that when I change the temperature or turn the room thermostat on/off from the BSBLAN, it works. The heat pump display updates with the correct values after a while.

barbuslex avatar Mar 02 '24 18:03 barbuslex

No, unfortunately, that is not strange at all. The controller (RVS21) is the authoritative device in all cases except for the time and date settings. Since it works that you change parameters via BSB-LAN on the RVS21, these will be reflected on the display as well because the display gets these values from the RVS21. The time is the only thing that the display "knows" and which it sends to the heater. But since we do not see any activity of the display on the bus, it must somehow be isolated from the rest of the bus. We'll know this for sure once you have made the last tests that I suggested.

fredlcore avatar Mar 03 '24 01:03 fredlcore

I can test at the end of the afternoon. I thought about this scenario.

  • On the heat pump display, set:
    Zone 1 temperature: 19 °C
    Zone 2 temperature: 19 °C
    
  • On the zone 1 room display, set the temperature: 24 °C
  • On the zone 2 room display, set the temperature: 24 °C
  • From the BSB-LAN:
    Zone 1 temperature: 21 °C
    Zone 2 temperature: 21 °C
    

Is it a good test scenario for you ?

barbuslex avatar Mar 13 '24 12:03 barbuslex

Yes, the important thing is that you have the serial monitor running when making all of these changes. I need to be able to see the telegrams that appear in the log when you make changes both on the heat pump display as well as on the room display(s).

fredlcore avatar Mar 13 '24 13:03 fredlcore

monitor.txt

It seems the serial monitor not log the bus :S Just the BSBLAN actions are logged.

Maybe its because i capture log from telnet ?

barbuslex avatar Mar 13 '24 16:03 barbuslex

Yes, it seems that the connector to which you have connected BSB-LAN is isolated from both the heating unit's display and the other room units. This is really strange and new to me, but it has nothing to do with the telnet connection. Both serial and telnet just listen to what is on the bus, and they only see the messages going to and from the heater (which is most important of course), but nothing from the other devices. Can you post a photo so I can see where BSB-LAN is connected to and where the zone room display units are connected to?

fredlcore avatar Mar 13 '24 17:03 fredlcore

Global installation : IMG20240313181216

Focus on X86: IMG20240313181154

barbuslex avatar Mar 13 '24 17:03 barbuslex

I just remembered that I changed a part behind the display following a call to the manufacturer Atlantic so that they could keep the date and time in the event of a power outage.

They are differentiated by the gray cylinder (capacitor or battery) which allows the date and time to be retained for around ten minutes in the event of a power outage (see photo).

At the top the new part and at the bottom the old one : remplacement-carte-pac-jpg-stor-636e2554dc552127060

Maybe I should put the old one back?

barbuslex avatar Mar 13 '24 17:03 barbuslex

Ah, ok, the zone units are connected to the AVS55. It may make sense that these do not show up on the bus because the AVS55 is connected directly to the underlying RVS21, so the messages may not go on the rest of the bus. The same could be true for the heater display, but that is still kind of new to me. I don't think that the device on your photo has anything to do with it, but on the other hand, I've never seen that either. Bottom line is that as long as you don't see any data telegrams on the serial monitor when changing parameters on the main display, you can't change it, unfortunately...

fredlcore avatar Mar 13 '24 17:03 fredlcore

It's not possible to connect BSBLAN on AVS55 next to the other zone display (in purple on the global photo) ?

barbuslex avatar Mar 13 '24 17:03 barbuslex

I haven't found any documentation on this connector. If it measures around 12-15V you can safely try without breaking the adapter. Then you could try again and see if there is any activity on the bus once you are changing parameters on the zone units...

fredlcore avatar Mar 13 '24 17:03 fredlcore

The other zone display is connected to it I think it is the same voltage.

barbuslex avatar Mar 13 '24 17:03 barbuslex