zoukankan      html  css  js  c++  java
  • 串口设置-stty--设置终端线

    stty - chang and print terminal line settings

    SYNOPSIS
    stty [-F DEVICE | --file=DEVICE] [SETTING]...
    stty [-F DEVICE | --file=DEVICE] [-a|--all]
    stty [-F DEVICE | --file=DEVICE] [-g|--save]

    DESCRIPTION
    Print or change terminal characteristics.

    -a, --all
    print all current settings in human-readable form

    -g, --save
    print all current settings in a stty-readable form

    -F, --file=DEVICE
    open and use the specified DEVICE instead of stdin

    --help display this help and exit

    --version
    output version information and exit

    Optional - before SETTING indicates negation. An * marks non-POS
    IX settings. The underlying system defines which settings are available.

    可用stty设置波特率,设置串口回现等。

    ~$sudo stty -F /dev/tty0 -a
    speed 38400 baud; rows 37; columns 100; line = 0;
    intr = ^C; quit = ^; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
    eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
    rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; 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

    ~$sudo stty -F /dev/tty0 echo

  • 相关阅读:
    按钮一色三变化
    最小的k个数-Python版
    字符串的全排列-终于弄明白了
    键值offer-求逆序对
    Python小技巧
    面试题48-动态规划-最长不含重复字符的子字符串,剪绳子
    面试题47-礼物的最大价值(Python版)
    多元高斯分布
    torch_13_ProGan笔记
    pytorch-模型保存与加载自己训练的模型详解 
  • 原文地址:https://www.cnblogs.com/embedded-linux/p/6227851.html
Copyright © 2011-2022 走看看