我在 192.168.xx:yyyy(其中“x”和“y”是实数)上有一个串行设备,它工作正常。但我想与它作为/dev/ttyX设备进行通信。
/dev/ttyX
我已经测试了socat命令但不能正常工作
socat
$ while true; do socat pty,link=/dev/ttyX,raw,echo=0,waitslave tcp:192.168.x.x:yyyy; done
我该如何解决?
tty serial-port tcp-ip socat
serial-port ×1
socat ×1
tcp-ip ×1
tty ×1