Skip to content

A ModbusTCP to ModbusRTU gateway written in python

Notifications You must be signed in to change notification settings

Bouni/ModBusGateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

A ModbusTCP to ModbusRTU gateway written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages