stuartpittaway / diyBMSv4Code

Software for diyBMS v4
Other
145 stars 65 forks source link

Status relays #106

Open pablo170 opened 3 years ago

pablo170 commented 3 years ago

Stuart congratulations for your amazing project, is it possible to add a delay to the relays or something similar while diybms starts? I think who chooses this bms with victron inverter set the two signals bms in configuration, but what happens is that if we restart the bms, while diybms starts searching the modules, the relays communicates with victron like the battery is empty and the inverter starts to charge in sustain mode. Could be there any enhancement for fix it? Thanks in advance.

stuartpittaway commented 3 years ago

When the controller is reset, it cannot control the relays so they switch off.

No code is running at that point, so I cannot affect the relays at that point.

pablo170 commented 3 years ago

Thank you Stuart for you fast answer, the case is the relays are off but they are activated (on)during the start of controller, I tried a lot of examples to understand why the relays were activated or deactivated. I used NC and NO contacts and default status on/off relays, and if the relay is in idle mode, and the diybms is restarted the relay is activated while the message waiting for reply modules is shown, is it not possible that the controller interprets the message like if the voltage value is under the set point and it is why it sends the signal to activate the relay? Thanks in advance.