sudo apt-get install socat
sudo socat -d -d PTY,link=/dev/gps_input,b9600 PTY,link=/dev/gps_output,b9600
然后在/dev/gps_input中写入,可以在/dev/gps_output中读取
sudo apt-get install socat
sudo socat -d -d PTY,link=/dev/gps_input,b9600 PTY,link=/dev/gps_output,b9600
然后在/dev/gps_input中写入,可以在/dev/gps_output中读取