Building CAN message with Cerbo GX MK2

Dear community,

I’m searching to use a Cerbo GX MK2 and Node-Red to communicate with a third-party board.
My goal is to broadcast datas from 2 x MPPTs + 1 x Lynx BMS to this board.

Is anybody have any experience and/or example that will permits me to send those datas with a fixed CAN Identifier using the VE.can IO from Cerbo ?

Thank you for your interest and your help.

I don’t think that you can use the Cerbo’s CAN interface like this.
The CAN interfaces provided are dedicated for reading MPPT-CAN and BMS-CAN data. I don’t think that you can send ‘user’ messages over these interfaces.
If you want to access MPPT and Lynx BMS data remotely, the approved paths are to use either the Modbus data map, or MQTT (not used the latter).
If you need to use the CAN bus, if your MPPT data is also on CAN rather than VE direct, then you can extend the CAN bus, and get the 3rd party board to ‘listen only’ to the data. Decoding it is then your problem.

Hi, actually this is possible to do.

The canports on GX devices are available as standard linux socketcan devices.

(I recommend Google the term socketcan).

But how to do that is really something quite complex to explain and I can’t get into that.

All the best, Matthijs

1 Like

Ps.

And

And aside from working out how to send/receive from node-red, you also need to check what can profile to set in the gx settings, or set that to disabled and then manually “up” the can interface and set baudrate and such

Thank you for your comments.
I will try both Libraries.