mbusd icon indicating copy to clipboard operation
mbusd copied to clipboard

Modbus RTU over TCP

Open embeddman opened this issue 4 years ago • 3 comments

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).

embeddman avatar May 12 '20 13:05 embeddman

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.

3cky avatar May 15 '20 14:05 3cky

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 avatar Aug 13 '23 22:08 dasrue

@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.

kpr0th avatar Dec 22 '23 16:12 kpr0th