温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

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

发布时间:2020-09-22 09:36:09 来源:网络 阅读:1989 作者:虎皮喵的喵 栏目:系统运维

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

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

  1. Open打开设备
  2. 配置设备 tcsetatttr, tcgetattr
  3. Write, read 写/读数据
  4. 关闭close

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

4.点击下方:添加
minicom:6818开发板串口的Ubuntu界面配置

5.点击: 串行端口
minicom:6818开发板串口的Ubuntu界面配置
6.点击:完成
7.OK
minicom:6818开发板串口的Ubuntu界面配置
8.开启Ubuntu

二.Linux下minicom配置

1.安装 :sudo apt-get install minicom

  1. sudo minicom
  2. 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?

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

  1. 回车
  2. 保存 -----> 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        |
        +--------------------------+
  3. 回车 ------------>>>> Exit from Minicom
  4. 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界面配置

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI