在Linux的串行端口终端中禁用打印输入命令

时间:2018-12-18 16:09:08

标签: linux terminal serial-port

我需要知道是否可以通过某种方式禁用在Linux终端中接收回发回串行端口的命令。 端口参数为:

速度9600波特;第0行;列0;行= 0; intr = ^ C;退出= ^ \;擦除= ^ ?;杀= ^ U; eof = ^ D; eol =; eol2 =; swtch =;开始= ^ Q;停止= ^ S; susp = ^ Z; rprnt = ^ R; werase = ^ W; lnext = ^ V;丢弃= ^ O; min = 60;时间= 1; parenb -parodd -cmspar cs7 -hupcl -cstopb读取clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8 -opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 -isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase -tostop -echoprt -echoctl -echoke -flusho -extproc

就像我需要它们一样,7E1 9600,但是通过发送任何命令后

'sudo echo -n -e'\ x2F \ x3F \ x34 \ x37 \ x37 \ x34 \ x39 \ x30 \ x31 \ x35 \ x21 \ x0D \ x0A'>> / dev / ttyUSB0'

转换为:/?47675101 \ r \ n我正在找回自己发送的信息以及所需的响应(如果有人问我,我正在读电表)。 这是我的终端的外观:

/?47749015!^ M

^ @ / ISk5MT174-0004 ^ M

我想摆脱第一行,如果有办法的话?

0 个答案:

没有答案