A ModbusTCP to ModbusRTU gateway written in python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Modbus TCP to Modbus RTU gateway

License: CC BY-NC 4.0

This is my Modbus TCP to Modbus RTU gateway written in Python. I run it on a BeagleBone Green equiped with a Waveshare CAN RS485 Cape to communicate with my centralized ventilation system.

I've only tested Modbus functions [01,02,03,04,06] so far because I don't need any other functions for my purpose. Maybe the gateway need to be exteded to support other functions.

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.

How to use:

git clone https://github.com/Bouni/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 here: