fredlcore / BSB-LAN

LAN/WiFi interface for Boiler-System-Bus (BSB) and Local Process Bus (LPB) and Punkt-zu-Punkt Schnittstelle (PPS) with a Siemens® controller used by Elco®, Brötje® and similar heating systems
220 stars 83 forks source link

[BUG] Set date and time reset after a while #622

Closed barbuslex closed 1 month ago

barbuslex commented 5 months ago

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):

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

fredlcore commented 1 month ago

Any news?

barbuslex commented 1 month ago

I have tested Yesterday but its same i don't have any logs... Thé led blinking but no logs 🥴

Le sam. 22 juin 2024, 18:15, fredlcore @.***> a écrit :

Any news?

— Reply to this email directly, view it on GitHub https://github.com/fredlcore/BSB-LAN/issues/622#issuecomment-2184086874, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3TIPZBNI6BUSHV22TJ5DZIWPJ3AVCNFSM6AAAAABD632RHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBUGA4DMOBXGQ . You are receiving this because you authored the thread.Message ID: @.***>

fredlcore commented 1 month ago

Ok, this is impossible. If the LED is flickering, then some kind of data must be visible on the bus. BSB-LAN would even output unknown telegrams if that was the case. But without having my hands on the device, there's nothing more I can do from here, so I guess, we'll have to close this. But feel free to come back here if you have any further information.

barbuslex commented 1 month ago

I have see it : https://community.home-assistant.io/t/read-modbus-with-esp32-and-esphome/151638

Maybe there are another way to read bus (directly from windows) ?

barbuslex commented 1 month ago

@fredlcore i have see this device in Aliexpress : https://fr.aliexpress.com/item/1005005321189496.html Have you an idea which chip is better between CH340, PL2303 and FT232 ?

fredlcore commented 1 month ago

I don't know what you want with that. Why should the bus you are connecting to be ModBus or RS485? We have established above that you can set parameters and that the heater responds to your set commands, right? The only two problems are that you cannot set the time and that for some unexplicable reason the messages from the heater cannot be seen on the bus. But that doesn't mean it's a different type of bus because otherwise you would not be able to set/read any parameter.

One last thing you can try is to set BSB-LAN into monitor mode. It will not function properly then, but you will be able to see any data that comes in. You can activate this in the settings and then set some parameters on the heater, and if the BSB-LAN LED flickers, you should be able to read some data on the serial monitor. If that isn't working, then I really have no idea what could be wrong.

barbuslex commented 1 month ago

image It's already in monitor mode.

The aim with the device is to try to do a serial read from the USB directly on windows to see if it's the esp32 that might have a problem or not. For the price of the component, it might be worth a try.

fredlcore commented 1 month ago

Has monitor mode been on all the time? Then that might be a reason and there is a bug somewhere. Then you could turn it off and try again (usually, only verbosity mode is on, monitor mode is off). I don't think the ESP32 has a problem, because in the log above, you could see the telegrams that you sent from BSB-LAN to the heater and the answer coming from the heater to BSB-LAN:

LAN->HEIZ QUR  0.0 Heure - Date actuelle / Heure actuelle:
DC C2 00 0B 06 3D 05 00 0B C3 A1
HEIZ->LAN ANS  0.0 Heure - Date actuelle / Heure actuelle: 28.03.2024 23:44:46
DC 80 42 14 07 05 3D 00 0B 00 7C 03 1C 04 17 2C 2E 00 FC EF

The first telegram came from BSB-LAN (QUR), and the heater has received (ANS) and the answer was displayed. So that should be fine.

If you really want to try this, you would need a TTL-to-Serial-USB dongle (like in your second post, I think) and then connect it with the RX/TX pins marked on the back of the BSB-LAN adapter. You would also still need to provice 3.3V and GND to the adapter to make it work. The transmission speed is 4800 bps, 8 data bits, odd parity, 1 stop bit. But this is not something I can help you with any further. If you really find out something new, then let me know, but this is taking a lot of my time already...

barbuslex commented 1 month ago

I managed to capture this by trying to switch the cold mode on and off on the room unit. (attached) log.txt log2.txt

fredlcore commented 1 month ago

Yes, that makes sense. I'd expect something similar when you set the time or change any other parameters. That's what confuses me.