modbus-cli icon indicating copy to clipboard operation
modbus-cli copied to clipboard

Modbus RTU over TCP

Open mo8Zomo0 opened this issue 3 years ago • 3 comments

I wonder, if it could be a cli option to use Modbus RTU over TCP.

Sure the readme has an example for socat, but it would be more handy if this would not be needed on the modbus-cli side. I would like to use RS485 to ip/raw adapters and just point the modbus cli application to this adapter and not having to add some socat rule.

mo8Zomo0 avatar Jul 15 '22 12:07 mo8Zomo0

If I understand correctly how RTU over TCP works, there are devices out there that work as if they were running this step internally (referring to the example in the README):

remote$ socat -d -d tcp-l:54321,reuseaddr file:/dev/ttyUSB0,raw,b19200

I agree that is would be convenient to have a way to get rid of the socat step on the local side too.

Are you available to implement this improvement?

favalex avatar Jul 31 '22 04:07 favalex

Hello @favalex sadly my programming skills are not good enough.

Yes, there are some hardware devices doing so, as well as some software.

mo8Zomo0 avatar Sep 19 '22 23:09 mo8Zomo0

I won't attempt implementing this without having access to a device for testing. Here are the options I see:

  1. using a publicly accessible device
  2. using a simulator
  3. get physical access to a device

Can you help me with any of those? Do you know of any remotely accessible device or can you suggest a simulator or device to be used for testing?

favalex avatar Oct 09 '22 05:10 favalex