linux串口命令__linux

來源:互聯網
上載者:User

proc

# cat /proc/tty/driver/serial serinfo:1.0 driver revision:0: uart:16550A port:000003F8 irq:4 tx:103686 rx:76876 RTS|CTS|DTR|DSR|CD1: uart:unknown port:000002F8 irq:32: uart:unknown port:000003E8 irq:43: uart:unknown port:000002E8 irq:34: uart:unknown port:00000000 irq:05: uart:unknown port:00000000 irq:0

statserial

# statserial /dev/ttyS0Device: /dev/ttyS0Signal  Pin  Pin  Direction  Status  FullName    (25) (9)  (computer)         Name-----   ---  ---  ---------  ------  -----FG       1    -      -           -   Frame GroundTxD      2    3      out         -   Transmit DataRxD      3    2      in          -   Receive  DataRTS      4    7      out         1   Request To SendCTS      5    8      in          1   Clear To SendDSR      6    6      in          1   Data Set ReadyGND      7    5      -           -   Signal GroundDCD      8    1      in          1   Data Carrier DetectDTR     20    4      out         1   Data Terminal ReadyRI      22    9      in          0   Ring Indicator

stty

# stty -F /dev/ttyS0 -a speed 115200 baud; rows 0; columns 0; line = 0;intr = <undef>; quit = <undef>; erase = <undef>; kill = <undef>; eof = <undef>; eol = <undef>;eol2 = <undef>; swtch = <undef>; start = <undef>; stop = <undef>; susp = <undef>;rprnt = <undef>; werase = <undef>; lnext = <undef>; flush = <undef>; min = 1; time = 0;-parenb -parodd cs8 -hupcl -cstopb cread 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.