大橙子网站建设,新征程启航

为企业提供网站建设、域名注册、服务器等服务

minicom:6818开发板串口的Ubuntu界面配置

系统运维

通信:串行, 并行, COM串口, 485总线,can总线, 单总线

成都创新互联公司专业为企业提供双清网站建设、双清做网站、双清网站设计、双清网站制作等企业网站建设、网页设计与制作、双清企业网站模板建站服务,十多年双清做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。Open打开设备 配置设备 tcsetatttr, tcgetattr Write, read 写/读数据 关闭close

一.虚拟机串行端口设置:
1.关闭Ubuntu
2.接好6818开发板串口
3.打开:编辑虚拟机设置

4.点击下方:添加

5.点击: 串行端口

6.点击:完成
7.OK

8.开启Ubuntu

二.Linux下minicom配置

1.安装 :sudo apt-get install minicom

sudo minicom ctrl+A ----> O ----> Serial port setup gec@ubuntu:~$ sudo minicom -s
+-----[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
+--------------------------+
串行设置
+-----------------------------------------------------------------------+
A - Serial Device : /dev/ttyS2
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?

+-----------------------------------------------------------------------+

回车

保存 -----> Save setup as dfl

+-----[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        |
    +--------------------------+
回车 ------------>>>> Exit from Minicom sudo minicom ----->>> 回车 (若光标下移,则成功,否则改Serial Device : /dev/ttyS2,还不行就一直往上加)

Minicom发送文件

进入minicom终端 : sudo minicom
Welcome to minicom 2.5

OPTIONS: I18n
Compiled on May 2 2011, 00:39:27.
Port /dev/ttyS2

Press CTRL-A Z for help on special keys

[root@GEC6818 /]#AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0
-/bin/sh: c1: not found
-/bin/sh: AT: not found[root@GEC6818 /]#

[1]+ Done(127) AT S7=45 S0=0 L1 V1 X4
[root@GEC6818 /]#
[root@GEC6818 /]#
root@GEC6818 /]#rx write_serial 回车

输入完后按ctrl+a +s


本文标题:minicom:6818开发板串口的Ubuntu界面配置
分享地址:http://dzwzjz.com/article/cppsop.html
在线咨询
服务热线
服务热线:028-86922220
TOP