Linux下minicom的配置和使用方法
来源:互联网 发布:淘宝分享有礼效果怎样 编辑:程序博客网 时间:2024/05/18 01:34
Linux下minicom的配置和使用方法
Linux下的Minicom的功能与Windows下的超级终端功能相似,适于在linux通过超级终端对嵌入式设备的管理以及对嵌入操作系统的升级,现写出Minicom的使用手册
1. # lsmod | grep usbserial (如果直接使用串口线,而没有用到USB转串口设备,此步可以跳过)
如果有usbserial,说明系统支持USB转串口。
2. 安装minicom (Fedora自带有minicom,此步可以跳过,ISO里有RPM包可自行安装)
apt-get install minicom
apt-get install lrzsz
3. 配置minicom
以root权限登录系统
使用命令
minicom –s 则minicom启动,屏幕出现如下的界面|:
………………………………[configuration]……………………………………
…………………… Filename and paths …………………………
…………………… File transfer and protocols …………………………
…………………… Serial port setup …………………………
…………………… Modem and dialing …………………………
…………………… Screen and keyboard …………………………
…………………… Save setup as df1 …………………………
…………………… Save setup as…… …………………………
…………………… Exit …………………………
…………………… Exit from minicom …………………………
……………………………………………………………………………………
设置serial port setup
使用down箭头选择serial port setup,出现具体各选项的配置:
A — Serial Device : /dev/ttyS0
B — lockfile Location : /var/lock
C — Calling Program :
D — Callout Program:
E — Bps/par/Bits : 9600 8N1
F — Hardware Flow Control : YES
G — Software Flow Control : NO
Change with setting?
将选项A的值设置为/dev/ttyS0 表示是串口1。
将选项E的值设置为9600。
设置过程中命令的使用,例如需要修改选项A的值,在Change with setting?选项后输入A则光标转移到A选项后,可以对A选项的值进行修改。
注: 如果没有使用USB转接口,Serial Device要配置为/dev/ttyS0
Save setup as dfl
Exit from Minicom
4. 使用minicom传输文件
-----------------------------------
# minicom
(Ctrl + a) --> s --> zmodem --> [Okay] -->
+-----------------------------------------+
|No file selected - enter filename: |
|> /home/zxl/ssl/codes/led/lls_led.ko | [Enter]
+-----------------------------------------+
注: download kernel by minicom in ubuntu
--------------------------------------------------
When I download linux kernel by x protocol in minicom, it says "Failure executing protocol, press any key to continue".
The problem is the x protocol isn't installed bye ubuntu by default, so you should install it by hand:
# apt-get install lrzsz
After successful download and install, you can send files by x protocol in minicom.
lrzsz包括了x/y/zmodem协议
安装lrzsz
--------------------------------------------------
1. 从下面的网站下载lrzsz-0.12.20.tar.gz
http://www.filewatcher.com/m/lrzsz-0.12.20.tar.gz.280938.0.0.html
2. tar zxvf lrzsz-0.12.20.tar.gz
3. 查看里面的INSTALL文档了解安装参数说明和细节
4. # cd lrzsz-0.12.20
5. # ./configure --prefix=/usr/local/lrzsz
6. # make
7. # make install
8. 建立软链接
# cd /usr/bin
# ln -s /usr/local/lrzsz/bin/lrz rz
# ln -s /usr/local/lrzsz/bin/lsz sz
这样minicom就可以使用zmodem传输文件了
配置文件所在目录
--------------------------------------------------
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机上/home/zxl目录下
5. 选择Save as df1。
选择Save as df1选项将修改后的配置信息进行保存为默认的配置选项。
6. Exit from minicom 。
选择Exit from minicom 选项从配置菜单返回到命令行。
7. 重新启动Minicom。
使用minicom 启动minicom 在linux下通过串口连接路由器,实现超级终端的功能。
- Linux下minicom的配置和使用方法 安装配置minicom
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Linux下minicom的配置和使用方法
- Java数字证书的一些实例
- python ssh工具paramiko的一点修改
- jquery radio
- N的阶乘,别人写的……保存起来自己以后看
- 在一个MFC的对话框应用程序中,实现程序开始时就隐藏对话框界面方法(收集)
- Linux下minicom的配置和使用方法
- 树状结构
- shell中的正则表达式、sed、awk
- C2143: 在某类型前缺分号--VC里面的各种问题,应该首先查阅msdn
- javascript继承
- vivi的配置与编译
- php的exec()函数执行外部Linux脚本问题
- (2010)最新Dev-C++与Allegor平台的搭建方法
- jQuery入门指南教程