question

Louis van der Walt avatar image
Louis van der Walt asked

serial-starter not always starting driver in V2.80 for second instance

Perhaps someone has seen this before or have an idea where I can check.

In Venus OS V2.80 firmware the serial-starter does not start the second instance of my battery driver, but in V2.73 it does. I upgraded from V2.73 to the V2.80~38 (had the same issue before on earlier V2.80 beta)

The serial-starter log show that it starts all the services (including USB0 and USB1):

INFO: Create daemontools service dbus-serialbattery.ttyUSB0
INFO: Create daemontools service dbus-serialbattery.ttyUSB1
INFO: Create daemontools service vedirect-interface.ttyUSB2
INFO: Create daemontools service vedirect-interface.ttyUSB3
INFO: Create daemontools service mk2-dbus.ttyUSB4
INFO: Start service dbus-serialbattery.ttyUSB0 once
INFO: Start service dbus-serialbattery.ttyUSB1 once
INFO: Start service vedirect-interface.ttyUSB2
INFO: Start service vedirect-interface.ttyUSB3
INFO: Start service mk2-dbus.ttyUS

And the first instance at USB0 starts up fine

INFO:SerialBattery:Starting dbus-serialbattery
INFO:SerialBattery:dbus-serialbattery v0.1
INFO:SerialBattery:Testing LltJbd
ERROR:SerialBattery:>>> ERROR: No reply - returning
INFO:SerialBattery:Testing Ant
ERROR:SerialBattery:>>> ERROR: No reply - returning
ERROR:SerialBattery:>>> ERROR: Incorrect Data
INFO:SerialBattery:Testing Daly
ERROR:SerialBattery:>>> ERROR: No reply - returning
INFO:SerialBattery:Testing Daly
ERROR:SerialBattery:>>> ERROR: No reply - returning
INFO:SerialBattery:Testing Jkbms
INFO:SerialBattery:Connection established to Jkbms
INFO:SerialBattery:DeviceInstance = 2
INFO:SerialBattery:com.victronenergy.battery.ttyUSB0
INFO:SerialBattery:Battery connected to dbus from /dev/ttyUSB0

But the instance at USB1 never gets called and no log file is created so it is not even reaching my first line which is the logging for Starting dbus-serialbattery
If I manually run the driver on USB1 it starts up and work perfectly, so it seems to be something between serial-starter and the actual driver being run.

Could it be a setting left over from the V2.73 firmware?
If I switch back to V2.73 both batteries connect. The serial-starter and the USB0 logs look the same as on V2.80 and the logfile for USB1 is also created.

Venus OS
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

0 Answers

Related Resources

Additional resources still need to be added for this topic