Linux serial Command __linux

Source: Internet
Author: 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| CD
1:uart:unknown port:000002f8 irq:3
2:uart:unknown port:000003e8 irq:4 3:uart:unknown port:000002E8
Irq:3
4:uart:unknown port:00000000 irq:0
5:uart:unknown port:00000000

statserial

# STATSERIAL/DEV/TTYS0
Device:/dev/ttys0

Signal  pin  pin  Direction  Status
full Name (    9)  (computer)         name
-----   ---  ---  ---------  ------  -----
FG 1---   Frame Ground
TxD      2    3      out         -   transmit Data
rxd      3    2      in          -   Receive  Data
RTS      4    7      out         1   Request to send
CTS      5    8 in 1 clear to   Send
DSR      6    6      in          1   Data Set Ready
GND      7    5      -           -   Signal Ground
DCD      8    1      in          1   Data Carrier detect
DTR     4 out of         1   Data Terminal Ready
RI    9 in          0   Ring Indicator

Stty

# stty-f/dev/ttys0-a speed 115200 baud; rows 0; columns 0; line = 0; intr = <undef>; qu it = <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-ICR Nl-ixon-ixoff-iuclc-ixany-imaxbel-iutf8-opost-olcuc-ocrnl-onlcr-onocr-onlret-ofill-ofdel nl0 cr0 tab0 bs0 VT 0 Ff0-isig-icanon-iexten-echo-echoe-echok-echonl-noflsh-xcase-tostop-echoprt-echoctl-echoke 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.