# Modbus CLI proxy This project contains a small CLI tool to proxy Modbus connections. ``` Usage: modbus-proxy --server --client [options] General options: --help, -h Shows this help message. --debug Waits for a debugger to be attached before starting. Server options: --server Defines whether to use an RTU or an TCP proxy. --server-baud # The baud rate (e.g. 9600) to use for the RTU proxy. Default: 19200. --server-databits # The number of data bits. Default: 8. --server-device The serial port to use (e.g. COM1, /dev/ttyS0). --server-parity The parity to use. Default: even. --server-stopbits # The number of stop bits. Default: 1. --server-host
The IP address to listen on. Default: 127.0.0.1. --server-port # The port to listen on. Default: 502. Client options: --client Defines whether to use an RTU or an TCP client. --client-protocol Select which Modbus protocol to use. --client-baud # The baud rate (e.g. 9600) to use for the RTU client. Default: 19200. --client-databits # The number of data bits. Default: 8. --client-device The serial port to use (e.g. COM1, /dev/ttyS0). --client-parity The parity to use. Default: even. --client-stopbits # The number of stop bits. Default: 1. --client-enable-rs485 Enables the RS485 software switch for serial adapters capable of RS232 and RS485. --client-host The host to connect to. --client-port # The port to connect to. Default: 502. ``` --- Published under MIT License (see [choose a license]) [choose a license]: https://choosealicense.com/licenses/mit/