mbusd
mbusd copied to clipboard
Modbus RTU over TCP
Hi! Are you planning to add modbus RTU over TCP feature? For example, instead of using Modbus TCP packet, deploy Modbus RTU over TCP packet. It's very comfortable thing for getting info via virtual COM port (emulating Modbus RTU device using TCP connection).
Though it's an interesting idea, I'm still not sure it will fit into the mbusd concepts of multiplexed access to the RTU network. Need to look into this more thoroughly.
I have an initial implementation of this here. If this would be useful to anyone else I will create a pull request, but I will do some more testing first
@dasrue -- if I'm reading correctly, your implementation is still a ModbusTCP server (slave), but you added an option to make a ModbusRTU "encapsulated in TCP packets" client (master) connection to a remote device instead of accessing the remote device over a serial (TTY) connection?
I.e.: [client-device] ---ModbusTCP(502)---> [mbusd] ---ModbusRTU-encapsulated-in-TCP-packets---> [remote device]?
If so, that's a pretty cool option. I'd encourage submitting as a PR.