ubuntu系統(一):串口调试工具minicom

本文详细介绍了Linux终端程序minicom的用法,包括设置波特率、设备名称、颜色风格等选项。通过`minicom -D 设备名`可以打开指定串口设备,`minicom --color=on/off`用于切换颜色风格。在使用过程中,可以使用`Ctrl+A`暂停输出,`Ctrl+A X`退出程序。该教程适合嵌入式开发或Linux系统管理员参考。
摘要由CSDN通过智能技术生成

0.前言

        minocom配置博客:https://blog.csdn.net/lu_embedded/article/details/106309451https://blog.csdn.net/lu_embedded/article/details/106309451

1.minicom --help

clash$ minicom --help
Usage: minicom [OPTION]... [configuration]
A terminal program for Linux and other unix-like systems.

  ##设置波特率
  -b, --baudrate         : set baudrate (ignore the value from config)
  ##设备名称
  -D, --device           : set device name (ignore the value from config)
  -s, --setup            : enter setup mode
  -o, --noinit           : do not initialize modem & lockfiles at startup
  -m, --metakey          : use meta or alt key for commands
  -M, --metakey8         : use 8bit meta key for commands
  -l, --ansi             : literal; assume screen uses non IBM-PC character set
  -L, --iso              : don't assume screen uses ISO8859
  -w, --wrap             : Linewrap on
  -H, --displayhex       : display output in hex
  -z, --statline         : try to use terminal's status line
  -7, --7bit             : force 7bit mode
  -8, --8bit             : force 8bit mode
  ##是否使用ANSI style 的颜色
  -c, --color=on/off     : ANSI style color usage on or off
  -a, --attrib=on/off    : use reverse or highlight attributes on or off
  -t, --term=TERM        : override TERM environment variable
  -S, --script=SCRIPT    : run SCRIPT at startup
  -d, --dial=ENTRY       : dial ENTRY from the dialing directory
  -p, --ptty=TTYP        : connect to pseudo terminal
  -C, --capturefile=FILE : start capturing to FILE
  -F, --statlinefmt      : format of status line
  -R, --remotecharset    : character set of communication partner
  -v, --version          : output version information and exit
  -h, --help             : show help
  configuration          : configuration file to use

These options can also be specified in the MINICOM environment variable.
This variable is currently unset.
The configuration directory for the access file and the configurations
is compiled to /etc/minicom.

Report bugs to <minicom-devel@lists.alioth.debian.org>.

(1) sudo minicom -D  打开指定设备

        这里我只有ttyUSB0,没有ttyUSB1

(2) sudo minicom --color=on/off  设置颜色风格

 clash$ minicom --color=on

        颜色风格变了

 2.使用

(1)暂停输出

        “Ctrl+A"

(2)退出

        “Ctrl+A"后按下大写的“X”

                 

@meng

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值