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