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
222 stars 84 forks source link

[BUG] Arduino Due does not respond shortly after start #540

Closed tiger42 closed 1 year ago

tiger42 commented 1 year ago

BSB-LAN Version Commit hash: 8a1ec49557618c35d9a0c0946108464995afc37e (compiletime: 20230217224441)

Architecture Arduino Due with W5500 ethernet shield

Bus system BSB

Describe the bug Since the version of 02/17 BSB-LAN does not work for me any longer. If I rollback to the previous version of Feb, 4th (commit hash f3e6deb5d008cb9833725f4ebeeee9a8a75f52b8), everything works again. The error manifests itself in the fact that the Arduino just stops responding shortly after startup. The serial monitor output looks like this:

Reading EEPROM
Reading done.
EEPROM schema v.10 Program schema v.10
Address EEPROM option 0: 0
Address EEPROM option 1: 1
... (shortened)
Address EEPROM option 62: 1506
Address EEPROM option 63: 1507
Size of cmdtbl: 14952
free RAM: 85307
BSB-LAN version: 3.0.4-20230217224441
3.0.4-20230217224441
Using RX/TX pins 19, 18
PPS settings:
Starting SD..failed
Waiting for DHCP address
192.168.0.95
255.255.255.0
192.168.0.100
Waiting 3 seconds to give Ethernet shield time to get ready...
Calculating free space on SD...0 MB free
Start network services
Device family: 97
Device variant: 100

Starting MDNS service with hostname BSB-LAN
Setup complete
Client ID: BSB-LAN
Will topic: bsb-lan/status
Connect to MQTT broker, updating will topic
Subscribed to topic 'bsb-lan'
Published status 'online' to topic 'bsb-lan/status'
DSP1->HEIZ QUR 8310.0

After that nothing happens and the Arduino is playing dead...

fredlcore commented 1 year ago

I have added bugfix, can you test this one and let me know if this fixes it?

tiger42 commented 1 year ago

Thanks, the bugfix is working! The Arduino is behaving normally again. I've done multiple reset cycles just to be sure that the system is coming up every time.

fredlcore commented 1 year ago

Great, thanks a lot for testing it so quickliy!