日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

Ubuntu中超级终端-minicom

發布時間:2023/12/10 Ubuntu 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ubuntu中超级终端-minicom 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

目錄

  • 目錄
  • 前言
  • minicom的安裝命令
  • minicom的配置
  • 總結

前言

因為使用Ubuntu下的fastboot燒錄鏡像,用到了Ubuntu中的超級終端-minicom,趁正在編譯rootfs的時候記錄一下linux中minicom的簡單使用。

minicom的安裝命令

sudo apt-get install minicom

minicom的配置

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 |+--------------------------+

通過鍵盤的上下鍵盤選擇Serial port setup,按Enter鍵進入,設置環境如下:

+--------------------------------------------+| A - Serial Device : /dev/tty3 || 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? |+--------------------------------------------+

輸入a鍵。

  • 選擇串口設備
    因為我需要在Ubuntu在使用fastboot對開發板進行刷機,所以也就是要找到連入Ubuntu中的OTG線的COM口。
  • 查看插入設備的com口的信息
    使用dmesg命令,結果如下:
[103712.038129] usb 1-2: new high-speed USB device number 48 using ehci-pci [103712.391545] usb 1-2: New USB device found, idVendor=18d1, idProduct=0002 [103712.391548] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [103712.391550] usb 1-2: Product: Android 1.0 [103712.391551] usb 1-2: Manufacturer: Google, Inc [103712.391551] usb 1-2: SerialNumber: SMDKEXYNOS-

從結果可以知道,我連入的com口是serialNumber=3,所以我設置A- Serial Device : /dev/tty3

  • 設置關閉硬件流控:(默認都是這樣,沒有研究過為什么)
F - Hardware Flow Control : No
  • 配置完成后,按下Enter鍵返回上一界面。
    在上一界面,選擇Save setup as dfl(保存成默認配置)。然后可以選擇Exit進入minicom界面,也可以選擇Exit from Minicom退出到命令行。
  • 選擇Exit退出,會出現如下minicom界面(也可以在命令行使用sudo minicom):
Welcome to minicom 2.7OPTIONS: I18n Compiled on Feb 7 2016, 13:37:27. Port /dev/tty3Press CTRL-A Z for help on special keys

但是進入了minicom終端界面如何退出呢?
附上如下組合鍵:
注意:先按Ctrl+A組合鍵,然后按Z鍵,可以得到使用說明如下:

+-------------------------------------------------------------------+ | Minicom Command Summary | | | | Commands can be called by CTRL-A <key> | | | | Main Functions Other Functions | | | | Dialing directory..D run script (Go)....G | Clear Screen.......C | | Send files.........S Receive files......R | cOnfigure Minicom..O | | comm Parameters....P Add linefeed.......A | Suspend minicom....J | | Capture on/off.....L Hangup.............H | eXit and reset.....X | | send break.........F initialize Modem...M | Quit with no reset.Q | | Terminal settings..T run Kermit.........K | Cursor key mode....I | | lineWrap on/off....W local Echo on/off..E | Help screen........Z | | Paste file.........Y Timestamp toggle...N | scroll Back........B | | Add Carriage Ret...U | | | | Select function or press Enter for none. | +-------------------------------------------------------------------+

比如:按住Ctrl+A,然后按X,選擇退出。

總結

只是對整個minicom的使用做個簡單記錄,主要是用到了,記錄下來,以后就不會重復造輪子。

總結

以上是生活随笔為你收集整理的Ubuntu中超级终端-minicom的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。