为什么猫< /dev/ttyS0 send output to ttyS0?

问题描述 投票:0回答:1

当我使用

cat < /dev/ttyS0
并接收到数据时,它不会显示在我输入命令的终端上,而是被发送回它来自的 ttyS0。我怎样才能让它不那样做?

linux raspberry-pi serial-port cat
1个回答
0
投票

没有回传但是有回显,试试

stty -echo </dev/ttyS0
cat </dev/ttyS0

应抑制回声。

© www.soinside.com 2019 - 2024. All rights reserved.