Skip to content
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

Solved: Vitocal300 WO1B does not start with VitoWifi attached #86

Closed
s0170071 opened this issue Apr 14, 2023 · 4 comments
Closed

Solved: Vitocal300 WO1B does not start with VitoWifi attached #86

s0170071 opened this issue Apr 14, 2023 · 4 comments
Labels
won't fix Some things we just can't or don't want to fix.

Comments

@s0170071
Copy link

s0170071 commented Apr 14, 2023

I attached VitoWifi to the Wo1B control unit. Works great!

One thing that has been annoying though is that I always needed to power up the heater first. Dangerous low WAF after mains power glitches.

Seems like the heater goes into some boot mode when it detects communication right after power up.
I looked into it and here is a nice description of the protocol.

So basically all the ESP needs to do after power up is wait for the 0x5 character to arrive before it fires up vitowifi.
I put this code into my setup()

  unsigned int timeout=millis();
  Serial.begin(4800); 
  while (Serial.available()) { Serial.read();  } // remove whatever is in the queue.
  while (millis()< timeout +20000){          // 20 second timeout.
     delay(1000);   // wait a second
     if (Serial.available() > 0) {  // has a byte arrived ?
      if (  Serial.read() == 0x05)   break;  // skip the rest of the while loop if it is 0x05
    } 
  }

Home this helps someone.
@bertmelis: nothing to do for you here ;-)

@novaktom
Copy link

novaktom commented Oct 6, 2023

@s0170071 I have ESP on battery backup, but not Vitocal unit. In case of power outage ESP does not restart, so setup() would not help. Don't you know how to solve that please? Restart ESP periodically? Or close (0x04) and initialize communication periodically (every 5 min or so)?

@s0170071
Copy link
Author

s0170071 commented Oct 7, 2023

The thing is that when the Vitotronic starts, it listens for communication. If it sees any, it goes into some bootloader mode. I did not investigate this further as the solution is to just don't talk to it when it restarts. Seems like your're better off not hooking the ESP up to the backup supply.
In fact, I hooked mine up to the internal switch of the Vitotronic so that it gets rebooted when I switch on the heater.

I did this because my wife would hate me if the heating fails and cannot be restarted while I am away...

The only alternative that I can think of is that you monitor the heater power supply with your ESP.

@bertmelis
Copy link
Owner

bertmelis commented Oct 8, 2023

I remember suffering this issue too. There's no real bullet-proof solution. If your ESP is on mains power (same circuit as the heater?), you could add a delay before VitoWiFi starts listening and hope your heater has booted meanwhile.

PS I recently moved back to a house with a Viessmann heater so I'm planning to support more actively again. I have yet to build a module before I can start though.

@bertmelis bertmelis pinned this issue Oct 13, 2023
@bertmelis bertmelis added the won't fix Some things we just can't or don't want to fix. label Nov 29, 2023
@bertmelis
Copy link
Owner

Closing. This has to be taken care of by the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
won't fix Some things we just can't or don't want to fix.
Projects
None yet
Development

No branches or pull requests

3 participants