Linux下minicom配置

Linux下minicom配置

minicom是Linux系统与串口设备通信的工具,相当于串口调试助手

1、安装minicom

[root@localhost 桌面]# yum list | grep minicom
minicom.x86_64 2.6.2-5.el7 @redhat7-4
[root@localhost 桌面]# yum install minicom
已加载插件:langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
redhat7-4 | 4.1 kB 00:00
软件包 minicom-2.6.2-5.el7.x86_64 已安装并且是最新版本
无须任何处理

//我已经安装过了

[root@localhost 桌面]# minicom -s //配置minicom

        +-----[configuration]----+
        | Filenames and paths    |
        | File transfer protocols|
        | Serial port setup      |
        | Modem and dialing      |
        | Screen and keyboard    |
        | Save setup as dfl      |
        | Save setup as..        |
        | Exit                   |
        | Exit from Minicom      |
        +------------------------+

光标移到这行,按确认进入,| Serial port setup |

+-----------------------------------------------------------------------+
| A -    Serial Device      : /dev/ttyUSB0                              |
|                                                                       |
| C -   Callin Program      :                                           |
| D -  Callout Program      :                                           |
| E -    Bps/Par/Bits       : 115200 8N1                                |
| F - Hardware Flow Control : No                                        |
| G - Software Flow Control : No                                        |
|                                                                       |
|    Change which setting?                                              |
+-----------------------------------------------------------------------+
        | Screen and keyboard      |
        | Save setup as dfl        |
        | Save setup as..          |
        | Exit                     |
        | Exit from Minicom        |
        +--------------------------+

按相应的字母便会跳到相应的行号
A为设置串口设备文件名,一般串口设备文件名为 /dev/ttyUSB0,设置完按确认键保存

[root@localhost 桌面]# ls /dev/tty
tty tty16 tty24 tty32 tty40 tty49 tty57 tty8
tty0 tty17 tty25 tty33 tty41 tty5 tty58 tty9
tty1 tty18 tty26 tty34 tty42 tty50 tty59 ttyS0
tty10 tty19 tty27 tty35 tty43 tty51 tty6 ttyS1
tty11 tty2 tty28 tty36 tty44 tty52 tty60 ttyS2
tty12 tty20 tty29 tty37 tty45 tty53 tty61 ttyS3
tty13 tty21 tty3 tty38 tty46 tty54 tty62 ttyUSB0
tty14 tty22 tty30 tty39 tty47 tty55 tty63
tty15 tty23 tty31 tty4 tty48 tty56 tty7
[root@localhost 桌面]# ls /dev/tty

E为设置波特率和数据位,一般数据位为8N1,跟乘船口设备硬件需求有关,注意查手册,设置完按确认键保存
F为设置硬件流控,一般为关闭,通过按F改变 yes or no
G为设置软件流控,一般为关闭,通过按G改变 yes or no

设置完按确认键保存

最后保存为,Save setup as dfl ,即可退出minicom

猜你喜欢

转载自blog.csdn.net/qq_40288857/article/details/88345321
今日推荐