I've one serial device on 192.168.x.x:yyyy (where "x" and "y" are real number) and it works correctly. But I want to communicate with this as /dev/ttyX device.
I've tested socat command but not working correctly
$ while true; do
socat pty,link=/dev/ttyX,raw,echo=0,waitslave tcp:192.168.x.x:yyyy;
done
How can I resolve?
update
- I think that I must be creating a virtual serial device. VIRTUAL SERIAL DEVICE <-> SERIAL-MACHINE-IP:PORT