Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.19 KB

Readme.md

File metadata and controls

24 lines (17 loc) · 1.19 KB

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: