Skip to content

A ModbusTCP to ModbusRTU gateway written in python

Notifications You must be signed in to change notification settings

simeon-simsoft/ModBusGateway

 
 

Repository files navigation

Modbus TCP to Modbus RTU gateway (adapted for Alpha ESS)

License: CC BY-NC 4.0

This is my Modbus TCP to Modbus RTU gateway written in Python. I run it on a BeagleBone Black equiped with a USB Modbus RS485 converter to communicate with my Alpha ESS. I salvaged these components from the Crowdcharge controller used with the Wallbox Quasar v2g trial.

The gateway receives a ModbusTCP frame, translates it into a ModbusRTU frame, takes the ModbusRTU response and converts that into the ModbusTCP response for the initial request. I have modified this to also support writing registers too.

See the file AlphaModbus.xaml for configuration for Home Assistant when using the Alpha ESS battery system

How to use:

git clone https://github.com/simeon-simsoft/ModBusGateway.git
cd ModBusGateway
python modbus-gateway.py

The configuration can be changed by editing the modbus-gateway.cfg file.

A more detailed description can be found on the original fork site here:

About

A ModbusTCP to ModbusRTU gateway written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%