Have a Color Control GX managing my system. I managed to brick it by incorrectly editing the sytem.conf file. Then I managed to install a fresh image to get it running again. Hope to help someone save a few hours of head scratching, caused by my own fault
2 Answers
Hi there...
I'm trying to communicate a BMS (from a HydraRedox flow battery) with a CCGX, in order to allow the BMS manage battery charge an discharge using DVCC.
The system is off-grid, so I've discarded using ESS.
The BMS includes a PLC which can communicate through Modbus TCP, and optionally using CAN bus (CANOpen).
One of the most interesting options for me is to communicate them through Node-Red, using the "node-red-contrib-modbus" and "node-red-contrib-victron" nodes. I'd install Node-Red in a computer in the same local network, as CCGX doesn't seem to support Node-Red.
I have no problem with the Modbus part, as I've used it in other projects, but have some questions about communication with the CCGX:
Is it possible to write the DVCC parameters needed (CVL, CCL and DCL) from Node-Red?
As it seems "node-red-contrib-victron" nodes use internally D-Bus, this question could also be asked like this:
Is it possible to write the DVCC parameters needed (CVL, CCL and DCL) using D-Bus?
And, if it's possible, where can I find the D-Bus paths to these parameters?
Just in case somebody suggest using Modbus to write these parameters, I cannot find some of them in the Modbus register list cor CCGX, and some other are just not writable.
My other preferred option is to communicate both systems using CAN Bus (Ve.Can/NMEA2000/CANOpen), but I also have some questions about that and will ask them in another thread.
I've posted this same question in the Spanish forum (in spanish), please tell me if you consider this a misuse of the forums (I'm a newbie here...).
Thanks in advance,
Raúl
1 Answer
Hola otra vez:
Como ya comentaba en una pregunta anterior, estoy estudiando cómo comunicar el BMS de una batería de flujo HydraRedox con un CCGX, de forma que el BMS pueda gestionar la carga y descarga de la batería usando DVCC. El sistema está aislado de la red eléctrica, y por tanto he descartado usar ESS.
El BMS incorpora un PLC que puede comunicarse vía Modbus TCP, y opcionalmente también mediante CAN bus (CANOpen). En mi otra pregunta hablaba de la comunicación mediante Modbus, y por separar los temas he preferido escribir aparte esta consulta, en este caso sobre CAN bus:
¿Es posible comunicar directamente el CCGX (que usa VE.Can/NMEA2000) con el PLC (que utiliza CANOpen)?
Y si es así, ¿alguien me puede dar alguna pista sobre cómo hacerlo?
Sé que tanto VE.Can/NMEA2000 como CANOpen están basados en CAN bus, y si no me equivoco ambos son compatibles eléctricamente si se usa el cable adecuado, pero no tengo ni idea de si los dispositivos "entenderían" los mensajes del otro. No tengo experiencia previa sobre CAN bus, pero sí sobre Node-Red, y se me ocurre que en caso de tener que hacer alguna "traducción" de mensajes podría utilizarlo de intermediario. En este caso usaría adaptadores USB-CAN bus para conectarlos a un ordenador en el que instalaría Node-Red, pero no tengo claro que sea necesario.
Gracias otra vez,
Raúl
1 Answer
Hola a todos...
Estoy estudiando cómo comunicar un BMS (de una batería de flujo HydraRedox) con un CCGX, de forma que el BMS pueda gestionar la carga y descarga de la batería usando DVCC.
El sistema está aislado de la red eléctrica, por lo que he descartado usar ESS.
El BMS incorpora un PLC que puede comunicarse vía Modbus TCP, y opcionalmente mediante CAN bus (CANOpen).
Una de las opciones que me parecen más interesantes es comunicarlos mediante Node-Red, usando los nodos "node-red-contrib-modbus" y "node-red-contrib-victron". Instalaría Node-Red en un ordenador dentro de la misma red local, ya que al parecer el CCGX no tiene capacidad suficiente para ello. La parte de Modbus la he utilizado en otros proyectos y no tengo problemas con ella, pero tengo algunas dudas respecto a la comunicación con el CCGX:
¿Es posible escribir los parámetros que utiliza DVCC (CVL, CCL y DCL) desde Node-Red?
Tengo entendido que los nodos "node-red-contrib-victron" utilizan internamente D-Bus, por lo que una pregunta equivalente sería:
¿Es posible escribir los parámetros que utiliza DVCC (CVL, CCL y DCL) mediante D-Bus?
Y en caso de que sea posible, ¿dónde puedo encontrar las rutas ("paths") D-Bus para estos parámetros?
Por si a alguien se le ocurre, he descartado también la opción de comunicación directa vía Modbus porque algunos de estos parámetros no aparecen en la lista de registros Modbus del CCGX, y otros no son escribibles.
Mi otra opción es comunicar ambos mediante CAN Bus (Ve.Can/NMEA2000/CANOpen), pero también tengo algunas dudas al respecto que preguntaré en otro hilo, para no liar éste.
Y si no hay inconveniente (soy novato por aquí), voy a hacer estas mismas preguntas en inglés en el foro general. Por favor, avisadme si se considera un mal uso del foro.
Gracias por todo,
Raúl
1 Answer
Struggeling to set this up I have:
Ubuntu VM with a bridged adaptor on the same network as the CCGX.
I can ping the CCGX
Installed Node Red (https://nodered.org/docs/getting-started/raspberrypi ) got it running as a service and can view the flow editor.
Installed node-red-contrib-victron by doing steps 1,2 & 3 (https://github.com/victronenergy/node-red-contrib-victron#installation-and-usage)
Now I can see the Victron Energy tab
[image]
A CCGX with Modbus/TCP and MQTT turned.
Root password set and SSH'd into.
Carried out Step 4. (https://github.com/victronenergy/node-red-contrib-victron#installation-and-usage) - rebooted
Back on the Ubuntu VM
export NODE_RED_DBUS_ADDRESS=192.168.1.4:78 (the IP of the CCGX)
restarted node-red
But can't seem to see anything in the node-red editor.
[image]
What am i doing wrong? Do I need to generate the node specification file? (https://github.com/victronenergy/node-red-contrib-victron#generating-the-node-specification-file-developers)
Where do i get 2 .csv files from, I've tried just running (after installing csv-parse and gar via npm)
node parse-services.js --append
but it throws an error:
Please make sure that the files ./csv/dataAttributeEnums.csv and ./csv/dataAttributes.csv exist.
7 Answers