I'm looking at a solution that involves running a Modbus 485 slave to a Raspberry Pi (or similar) via Modbus RTU (through a USB serial converter, or serial addon board), which the Pi then translates this to Modbus TCP and outputs the packet through a port (502).
The Pi would be connected to a network by static IP, and the network also has a computer connected.
Then have Modbus master software on the computer in the network connect to this port and IP of the Pi. Effectively bridging RTU to TCP through the Pi. Almost like having the Pi run as an Modbus TCP simulator, getting it's values from the Modbus RTU on the otherside.
I'm no expert whatsoever on communications so I'm not even sure this is possible. From what I can understand, Modbus TCP packets contain the RTU information being sent, with the ID removed and MBAP in it's place, and the CRC removed. Is it possible to do this on Linux (Python, Node Red, libmodbus etc.), or am I walking into a wall?
Thanks in advance.