My GX IO-Extender 150 switches its digital outputs ON for about 4 seconds every time the Cerbo GX reboots, then they go back OFF. On an output driving an optocoupler: the equipment behind it was triggered on each reboot.
Setup:
- Cerbo GX, Venus OS v3.81
- GX IO-Extender 150, firmware 0.11, DIP switches set to output mode
- Digital Outputs controlled from Node-RED; all were off before the reboot
The latching relays don’t do this, so I’ve moved this function for now. But that leaves very few relays then, and I’d like to use the digital outputs as intended.
Is there a setting to keep the outputs off during startup? If not, could this be considered for a firmware update? Anyone using these outputs to trigger equipment would get an unwanted 4s pulse at every reboot.
Thanks for the suggestion! Unfortunately a timer in Node-RED doesn’t help here. The pulse happens while the Cerbo is still booting, before Node-RED has started (it only comes up about a minute later). None of my flows write to the IO-Extender digital outputs at startup either. It looks like the extender restarts when the USB connection resets, and its outputs sit ON for about 4s until the firmware sets them up.
A hardware on-delay timer after the optocoupler would of course work with a longer intended pulse from Node-RED. That’s extra hardware just to work around the startup behaviour, though.
So question to Victron: could the firmware keep the digital outputs OFF during startup, or is there a setting for it?
Another option is to sacrifice one of the Cerbo relay NO to feed the octocoupler supply (or COM) of all the Digital outputs, NodeRed then closes the realy about 10s after each startup. That’d work but not ideal.
Surely any controller (like the IO-Extender 150) having outputs switching to ON after power-up – even only for a few seconds – is inadvisable, and could even be dangerous?
Normally such outputs default to OFF (or high-Z) after power-up and before any programming data is received. Even better is to have the power-on state programmable and stored in NVM.
Well this is disappointing to find out, I haven’t got around to integrating the IO extender into my system yet but I’m definitely going to have to think about what I connect to it.
I’m glad to hear that the latching relays don’t have that issue, I’m going to use those to control my DC to DC boost converters.
I hope Victron can spend some time on firmware for this thing and fix some of the shortcomings.
(The inputs also won’t work out for what I was planning, using them as momentary inputs from push buttons to control lights etc with the outputs, apparently the inputs are only polled about once a second.)
Yep correct, we don’t use them, the basic settings are simply not there, it’s more made for Node-red, in the Cerbo the second fixed relay can only be coupled to temperature and the first relay is also quite limited as not even a choosen text can be given to both of them.
We understand that Victron (is not supporting Node-red) but a lot of “add-ons” like the 150 needs it to work properly…
And having to use node red is not the issue, that’s to be expected more or less.
The problem is kind of basic functionality, inputs can’t be used for push buttons unless you want to sit there holding it to trigger it, now outputs you have to be aware could turn on unintended if the system reboots or USB connectivity glitches out.
They got it so close, just needs a little bit more attention.
So it seems the Digital inputs/outputs of the GX IO-Extender 150 are kind of useless for these purposes. Any chances Victron can implement some changes to the devices?
We have now experienced this twice in a real installation: once when restoring power to the Cerbo GX, and again during a remote Venus OS firmware update from 3.79 to 3.85.
The digital outputs control optocouplers connected to our JK-BMS power buttons. Unfortunately, a 4-second button press shuts the batteries down, so this startup behaviour appears to have switched off both batteries and taken the entire site offline.
We really hope Victron can address this. Does anyone know whether it depends on the Venus OS version, the IO-Extender hardware, or its firmware? Is an IO-Extender firmware update available, and how would it be installed?
A Node-RED startup delay cannot prevent an output pulse that occurs before Node-RED starts.