Skip to content

PassionateAngler/mrtu2mtcp

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
Simple server for translating Modbus RTU (over serial line) to Modbus TCP and vice versa.

Requirements:
libmodbus ver. 2.9.3, tested 3.0.1

Compilation:
gcc -Wall -I/usr/include/modbus -o mrtu2mtcp mrtu2mtcp.c -lmodbus -lrt

Usage:
$ ./mrtu2mtcp -h
Usage: ./mrtu2mtcp [options]
Possible options:
-s rtu_slave_address (default 1)
-S usb_device (default /dev/ttyUSB0)
-b baudrate (default 9600)
-y parity posible values: N,E,O (default E)
-n number_of_transport_bits (default 8)
-B number_of_stop_bits (default 1)
-A ip_address to bind (default 127.0.0.1)
-p port to bind (default 1502)
-v be verbose if present
-l log_file (NOT IMPLEMENTED)
-d demonize if present (NOT IMPLEMENTED)

Example:
mrtu2mtcp -S /dev/ttyR1 -A 0.0.0.0 -p 502 -v

Have fun!

About

Simple server for translating Modbus RTU (over serial line) to Modbus TCP and vice versa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages