Help Modify AutoGen Start Modbus comms to/from DynaGen TG410 gen controller

I requested official support for this, but in the meantime, working with a friend to see if we can get this going unofficially. I’m more Industrial Automation, he’s the coder.

I believe we have the hardware and Modbus wiring set up and communicating to a Cerbo GX MkII via a Modbus RTU to TCP gateway (TG-410 Modbus RTU → PUSR DR302 Gateway → Cerbo GX MkII Ethernet Port). I have manually added a Modbus TCP/UDP device in the Cerbo GX pointing at the gateway using Device ID 100 and that device not showing any errors.

However, we have been unable to get the controllers Modbus registers pointing at the correct registers in the Cerbo GX, no surprise there. What Files need to be added and or modified? Not being very far up the learning curve, I’m thinking…

  1. MODIFY - dbus-modbus-client.py to initialize the DynaGen controller
  2. MODIFY - client.py to point at correct Modbus registers
  3. ADD - DynaGen.py to add vendor_name attribute to device classes

I’ve see energy meters and Mebay controllers added by modifying the existing code, but wanted to get some feedback as to what is required and or how to accomplish. We’ve read the Victron gx_modbus-Tcp_manual have access to the GCGX-Modbus-TCP-registers list-3.50 spreadsheet and the DynaGen Modbus Manual.

For those that have done this, what’s involved? What are we missing?