Hi everyone,
I am facing a strange issue with one of my Cerbo GX installations. It has been running perfectly for a few years, but recently, I lost communication with my USB devices after a reboot.
I have Carlo Gavazzi Energy Meter and SMA Inverter connected to Cerbo GX with two original Victron USB-RS485 cables (FTDI). I have specific rules in serial-starter configuration to ignore these USB dongles. Previously, this setup worked flawlessly. Now, after a reboot, the devices are not visible in the Remote Console or Node-RED (status “Disconnected”).
It seems that serial-starter is ignoring my “ignore” rules and grabbing the ports anyway, or something else is locking them.
I found that I can restore functionality via SSH, but I have to forcibly stop the tty service first. The following sequence brings everything back to life:
Force stop the tty service:
/opt/victronenergy/serial-starter/stop-tty.sh /dev/ttyUSB0
/opt/victronenergy/serial-starter/stop-tty.sh /dev/ttyUSB1
Manually start the cgwacs driver:
nohup /opt/victronenergy/dbus-cgwacs/dbus-cgwacs --verbose /dev/ttyUSB0 &
nohup /opt/victronenergy/dbus-cgwacs/dbus-cgwacs --verbose /dev/ttyUSB1 &
Why would Cerbo GX suddenly stop respecting the ignore rules for these USB-RS485 adapters? Since I have to run stop-tty.sh first, it proves that something is actively holding the ports after boot. I haven’t changed the hardware or the configuration files, yet it stopped working on this specific site (while works fine on others).
Any hints on how to make the configuration persistent again without manual intervention via SSH would be great.
Thanks!