To be able to use remotely serial line and upload lua script to Acrios converter, which was connected to beaglebone board over serial line (configuration cable), the ser2net and socat were used.
Beaglebone board:
sudo apt install ser2net
sudo nano /etc/ser2net.conf
2000:raw:600:/dev/ttyUSB0:115200 8DATABITS NONE 1STOPBIT
ser2net -c /etc/ser2net.conf
If configuration is changed, the ser2net service has to be restarted:
pkill ser2net
ser2net -c /etc/ser2net.conf
PC:
sudo apt install socat
sudo socat pty,link=/dev/ttyUSBX,raw tcp:10.XX.XXX.X:2000
2000
is port (which you can see at ser2net configuration file)/dev/ttyUSBX
is name of the virtual port10.XX.XXX.X
is IP adressIt's likely to happen, that Converter GUI won't be able to use the virtual port.
In this case after socat command use sudo chown $USER /dev/ttyUSBX
and then connect.