Configuration and use of minicom

Source: Internet
Author: User

安装配置minicom
--------------------------------------------------
# lsmod | grep usbserial (如果直接使用串口线,而没有用到USB转串口设备,此步可以跳过)。如果有usbserial,说明系统支持USB转串口。
或者输入命令: dmesg| grep usb 查看usb串口,注意倒数第三行写着:usb2-10: ch341-uart converter now attached to ttyUSB0。现在你可以用ttyUSB0当串口了。

安装minicom
apt-get install minicom
apt-get install lrzsz

配置minicom
# minicom -s
Serial port setup [Enter]
    +-------------------------------------------------------------+
    | A -    Serial Device      : /dev/ttyUSB0                    |
    | B - Lockfile Location     : /var/lock                       |
    | 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?                                    |
    +-------------------------------------------------------------+
注: 如果没有使用USB转接口,Serial Device要配置为/dev/ttyS0
Save setup as dfl
Exit from Minicom

使用minicom传输文件
--------------------------------------------------
# minicom
(Ctrl + a) --> s --> zmodem --> [Okay] -->
    +-----------------------------------------+
    |No file selected - enter filename:       |
    |> /home/zxl/ssl/codes/led/lls_led.ko     | [Enter]
    +-----------------------------------------+

配置文件所在目录
--------------------------------------------------
Ctrl + a     o
         +-----[configuration]------+
         | Filenames and paths      |
         | File transfer protocols -|
         | Serial port setup        |
         | Modem and dialing        |
         | Screen and keyboard      |
         | Save setup as dfl        |
         | Save setup as..          |
         | Exit                     |
         +--------------------------+
+-----------------------------------------------------------------------+
| A - Download directory : /home/zxl                                    |
| B - Upload directory   : /tmp                                         |
| C - Script directory   :                                              |
| D - Script program     : runscript                                    |
| E - Kermit program     :                                              |
| F - Logging options                                                   |
|                                                                       |
|    Change which setting?                                              |
+-----------------------------------------------------------------------+
    A - download 下载的文件的存放位置         
    B - upload   从此处读取上传的文件
    download     开发板 ---> PC
    upload       PC     ---> 开发板
    B - Upload directory   : /tmp
    PC机向开发板发送文件,需要发送的文件在/tmp目录下(PC机上的目录)。做了此项配置后,每次向开发板发送文件时,只需输入文件名即可,无需输入文件所在目录的绝对路径

开发板 ---> PC
--------------------------------------------------
    开发板上的(操作)命令
    # sz filename
    开发板上的文件filename将被传输到PC机上~目录下

录制开发板输入信息:
--------------------------------------------------
Ctrl + A + L
    +-----------------------------------------+               
    |Capture to which file?                   |               
    |> /tmp/minicom.cap                       |               
    +-----------------------------------------+               

参考链接:http://hi.baidu.com/zengzhaonong/item/a7452f3d8d50ecbf124b1449

minicom的配置和使用

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.