Analyzer for Victron Can Traces

Hi @ Alex Pescaru,
Unfortunately, our original chat “There is still a problem with the MPPT Can SmartSolar firmware 3.18” has already closed, but as you were a great help to me in troubleshooting and analysing the CAN traces, I don’t want to keep my findings from you:
As I expected, there is an analyser for CAN NMEA2000 traces that can be configured via XML and is open source!
You can download it here: GitHub - canboat/canboat: CAN Boat provides NMEA 2000 and NMEA 0183 utilities. It contains a NMEA 2000 PGN decoder and can read and write N2K messages. It is not meant as an end-user tool but as a discovery mechanism for delving into NMEA 2000 networks. · GitHub
and build it for Linux or Windows. Using the default settings, I analysed a trace, which I also sent to you.
The results look very good to my mind:

cat CanDump20260506_V3.18_Oceanvolt250kbit.txt | candump2analyzer | analyzer -json > analyzer.output.json

analyzer.output.json.gz.zip (105,4 KB)

Thank you for sharing!
:+1:

Hi @ Alex Pescaru,
I have one more question, as I’d like to understand this. In which log file did you find the 0 V? I’ve now gone through a few logs and haven’t been able to find any entry with “Voltage”:0.

I will take your first log from April 6.
This one: CanDump20260406.txt.zip (203.7 KB)

Here is a cut (see line in front), where the Cerbo (E1) is broadcasting (FF) the value 0. (marked 00 00 00 00)
(01 20) means 0x2001, which is the VE_REG_LINK_VSET register.
1

In the same log, the controller (24, decimal 36) is broadcasting (FF) the value 58.4V (D0 16 00 00, which is 0x16D0, decimal 5840)
On the same VE_REG_LINK_VSET register (0x2001)
2

So two entities broadcasting a value for the same register.
One 0V and another 58.4V

But Victron clearly states for the 0x2001 register:
Charger link, voltage set-point (un16 = voltage [0.01V], read-only), only the master broadcasts voltage set-point
So… which master?
Because it seems that there are two… :wink:

Probably, on the later firmware versions, there are some changes about who takes priority on such cases…

More info on the CAN bus transactions, here: https://www.victronenergy.com/upload/documents/VE.Can-registers-public.pdf

I’ve found it now! The tool doesn’t convert the value as a voltage, but as a register value without a unit.
It’s a bit tricky – you have to convert the values from hex to decimal :wink:
grafik