{"id":34740,"date":"2024-09-04T10:56:54","date_gmt":"2024-09-04T02:56:54","guid":{"rendered":"https:\/\/www.deepin.org\/?p=34740"},"modified":"2024-10-21T10:25:21","modified_gmt":"2024-10-21T02:25:21","slug":"deepin-use-minicom-and-cutecom","status":"publish","type":"post","link":"https:\/\/www.deepin.org\/en\/deepin-use-minicom-and-cutecom\/","title":{"rendered":"Two Essential Tools Network Engineers Must Master When Using deepin: Minicom and Cutecom"},"content":{"rendered":"<section data-mpa-template=\"t\">\n<section data-mpa-template=\"t\">\n<section data-role=\"outer\">\n<section>\n<section>\n<section><img loading=\"lazy\" class=\"alignnone size-full wp-image-34745\" src=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640.jpeg\" alt=\"\" width=\"900\" height=\"383\" srcset=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640.jpeg 900w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640-300x128.jpeg 300w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640-150x64.jpeg 150w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640-768x327.jpeg 768w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640-24x10.jpeg 24w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640-36x15.jpeg 36w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/640-48x20.jpeg 48w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<h1 style=\"text-align: center;\"><strong data-brushtype=\"text\">\u00a0<\/strong><b><span data-font-family=\"default\">Minicom (Command-line Tool)<\/span><\/b><\/h1>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p><span data-font-family=\"default\">Minicom is a command-line tool with no graphical interface. It has a small installation package, consumes minimal system resources, and can be used directly from deepin's Super Terminal window. Minicom is the recommended tool for use.Minicom is mainly used for serial communication. Below is a guide to installing and using Minicom.<\/span><\/p>\n<h2><b><span data-font-family=\"default\">Installing Minicom<\/span><\/b><\/h2>\n<p><span data-font-family=\"default\">The method to install Minicom depends on the Linux distribution you are using. For deepin, you can follow these steps to install Minicom:<\/span><\/p>\n<p><b><span data-font-family=\"default\">1\u3001Open the terminal:<\/span><\/b><span data-font-family=\"default\"> First, open the deepin Super Terminal.<\/span><\/p>\n<p><b><span data-font-family=\"default\">3\u3001Get root privileges:<\/span><\/b><span data-font-family=\"default\"> To install software, root privileges are usually required. You can obtain them by typing sudo su -. The system may ask for the administrator password.<\/span><\/p>\n<p><b><span data-font-family=\"default\">3\u3001Install Minicom using apt-get:<\/span><\/b><span data-font-family=\"default\"> deepin and its derivative versions (such as UnionTech UOS) typically use the apt package manager. In the terminal, enter the following commands to install Minicom:<\/span><\/p>\n<blockquote><p><span data-font-family=\"default\">sudo apt-get update # Update the software package list<\/span><\/p>\n<p><span data-font-family=\"default\">sudo apt-get install minicom# Install Minicom<\/span><\/p><\/blockquote>\n<p><span data-font-family=\"default\">This command will download and install Minicom from the deepin software repository. During the installation, the system may prompt you to confirm the installation, type 'y' and press Enter to continue.<\/span><\/p>\n<section data-mpa-template=\"t\">\n<section data-role=\"outer\">\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>&nbsp;<\/p>\n<h2><b><span data-font-family=\"default\">Using Minicom<\/span><\/b><\/h2>\n<p><span data-font-family=\"default\">The usage of Minicom mainly involves configuring the serial port and conducting serial communication. Here are the basic steps:<\/span><\/p>\n<p><b><span data-font-family=\"default\">1\u3001Configure the serial port:<\/span><\/b><\/p>\n<p><span data-font-family=\"default\">a. Start Minicom's configuration tool by entering sudo minicom -s in the terminal. This will open Minicom's configuration menu.<\/span><\/p>\n<p><span data-font-family=\"default\">b. Select \"Serial port setup\" to configure the serial port. You will need to set the correct serial port device (e.g., \/dev\/ttyS0, \/dev\/ttyUSB0), baud rate, data bits, stop bits, and other parameters.<\/span><\/p>\n<p><span data-font-family=\"default\">c. After configuration, select \"Save setup as dfl\" to save the default settings, and then exit the configuration menu.<\/span><\/p>\n<section>\n<section data-mpa-template=\"t\">\n<section data-role=\"outer\">\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section>\n<h2><img loading=\"lazy\" class=\"alignnone size-full wp-image-34741 aligncenter\" src=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842.jpg\" alt=\"\" width=\"1199\" height=\"1134\" srcset=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842.jpg 1199w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842-300x284.jpg 300w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842-1024x968.jpg 1024w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842-150x142.jpg 150w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842-768x726.jpg 768w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842-24x24.jpg 24w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842-36x34.jpg 36w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095842-48x45.jpg 48w\" sizes=\"(max-width: 1199px) 100vw, 1199px\" \/><\/h2>\n<p>&nbsp;<\/p>\n<p><b><span data-font-family=\"default\">2\u3001Start Minicom:<\/span><\/b><span data-font-family=\"default\"> After configuring the serial port, you can start Minicom by entering sudo minicom in the terminal. If the default configuration was saved earlier, Minicom will automatically use those settings.<\/span><\/p>\n<p><b><span data-font-family=\"default\">3\u3001Conduct serial communication:<\/span><\/b><span data-font-family=\"default\"> Once Minicom is started, you can begin communicating with the device connected to the specified serial port. You can input commands and view the device's responses. Typically, you will see a familiar device debugging interface, such as a Huawei switch prompting for a user and password.<\/span><\/p>\n<p><b><span data-font-family=\"default\">4\u3001Exit Minicom:<\/span><\/b><span data-font-family=\"default\"> To exit Minicom, press Ctrl+A and then press the X key. The system will ask for confirmation to exit, press y to confirm.<\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>&nbsp;<\/p>\n<h2><b><span data-font-family=\"default\">Common Minicom Functions (Some Advanced Features)<\/span><\/b><\/h2>\n<p><b><span data-font-family=\"default\">1\u3001Automatic scrolling:<\/span><\/b><span data-font-family=\"default\"> Press Ctrl+A and then press W to enable automatic scrolling, so that when the displayed content exceeds one line, it will automatically wrap to the next line.<\/span><\/p>\n<p><b><span data-font-family=\"default\">2\u3001Clear screen:<\/span><\/b><span data-font-family=\"default\"> Press Ctrl+A and then press C to clear the content displayed on the screen.<\/span><\/p>\n<p><b><span data-font-family=\"default\">3\u3001Browse history:<\/span><\/b><span data-font-family=\"default\"> Press Ctrl+A and then press B to browse through Minicom's history of displayed content.<\/span><\/p>\n<p><b><span data-font-family=\"default\">4\u3001Send files:<\/span><\/b><span data-font-family=\"default\"> Minicom supports sending files through the serial port. The specific method may vary depending on the Minicom version and configuration, but typically requires using specific commands or options.<\/span><\/p>\n<h3><b><span data-font-family=\"default\">Notes<\/span><\/b><\/h3>\n<p><span data-font-family=\"default\">Before using Minicom, make sure you have sufficient permissions to access the specified serial port device. Typically, these device files are located in the \/dev\/ directory, and root permissions are required to access them. You can check the driver installation as follows:<\/span><\/p>\n<p><span data-font-family=\"default\">lsusb # Check if the serial line driver is installed properly. deepin has it installed by default.<\/span><\/p>\n<section data-mpa-template=\"t\">\n<section data-mpa-template=\"t\">\n<section data-role=\"outer\">\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-34743 aligncenter\" src=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847.jpg\" alt=\"\" width=\"1267\" height=\"475\" srcset=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847.jpg 1267w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847-300x112.jpg 300w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847-1024x384.jpg 1024w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847-150x56.jpg 150w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847-768x288.jpg 768w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847-24x9.jpg 24w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847-36x13.jpg 36w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095847-48x18.jpg 48w\" sizes=\"(max-width: 1267px) 100vw, 1267px\" \/><\/p>\n<p><span data-font-family=\"default\">cd \/dev # Enter the dev directoryls# <\/span><\/p>\n<p><span data-font-family=\"default\">Check if the driver for ttyUSB0 exists in the dev directory<\/span><\/p>\n<p><span data-font-family=\"default\">Minicom's configuration and usage may vary depending on the Linux distribution and the version of Minicom being used. If you are using another Linux distribution or a different Minicom version, refer to the corresponding documentation or help information.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h1 style=\"text-align: center;\"><b><span data-font-family=\"default\">Cutecom (Graphical Debugging Tool)<\/span><\/b><\/h1>\n<p><span data-font-family=\"default\">Cutecom is another tool that can be used for serial debugging in deepin. Cutecom has a graphical interface, making it similar to tools that users might be familiar with from Windows and MacOS. Follow the steps below to install and use Cutecom:<\/span><\/p>\n<h2><span data-font-family=\"default\">Installing Cutecom<\/span><\/h2>\n<p><b><span data-font-family=\"default\">1\u3001Install using apt-get (for deepin and its derivatives):<\/span><\/b><\/p>\n<p><span data-font-family=\"default\">a. Open the deepin Super Command Terminal.<\/span><\/p>\n<p><span data-font-family=\"default\">b. Install Cutecom by typing the command sudo apt-get install cutecom, and follow the prompts to complete the installation.<\/span><\/p>\n<p><span data-font-family=\"default\">If the installation fails, you can run a system update to ensure that the system is up-to-date by typing sudo apt-get update to update your software package list, ensuring the latest version of the software is installed.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h2><b><span data-font-family=\"default\">Using Cutecom<\/span><\/b><\/h2>\n<p><b><span data-font-family=\"default\">1\u3001Start Cutecom:<\/span><\/b><span data-font-family=\"default\"> After installation, you can start Cutecom by typing sudo cutecom in the terminal. Since Cutecom may need to access serial port devices, you may need to use sudo to gain the necessary permissions.<\/span><\/p>\n<p><b><span data-font-family=\"default\">1\u3001Configure Serial Port Parameters:<\/span><\/b><\/p>\n<p><b><span data-font-family=\"default\">a. Find the serial port:<\/span><\/b><span data-font-family=\"default\"> Connect your serial device to the computer, and then enter dmesg | grep ttyS<\/span><i><span data-font-family=\"default\"> (for traditional serial devices) or dmesg | grep ttyUSB<\/span><\/i><span data-font-family=\"default\"> (for USB-to-serial devices) in the terminal to find the corresponding serial port name (e.g., \/dev\/ttyS0, \/dev\/ttyUSB0, etc.).<\/span><\/p>\n<p><b><span data-font-family=\"default\">b. Set serial port parameters:<\/span><\/b><span data-font-family=\"default\"> In the Cutecom interface, click the \"Settings\" button to enter the settings window. Set the correct serial port name, baud rate, data bits, stop bits, etc. Typically, the baud rate should be set according to your device's manual.<\/span><\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-34744 aligncenter\" src=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095851.jpg\" alt=\"\" width=\"650\" height=\"619\" srcset=\"https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095851.jpg 650w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095851-300x286.jpg 300w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095851-150x143.jpg 150w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095851-24x24.jpg 24w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095851-36x34.jpg 36w, https:\/\/www.deepin.org\/wp-content\/uploads\/2024\/09\/\u5fae\u4fe1\u56fe\u7247_20240904095851-48x46.jpg 48w\" sizes=\"(max-width: 650px) 100vw, 650px\" \/><\/p>\n<blockquote><p><span data-font-family=\"default\">Note: At the top of the window, you can see widgets where you can adjust the serial communication settings. Below this section is the output view, where all the data returned by the device is displayed, including non-printable characters. At the bottom, you can see the input area, where you can input commands using the input line, along with a list showing the history of the input lines.<\/span><\/p><\/blockquote>\n<p><b><span data-font-family=\"default\">3\u3001Connect the Serial Device:<\/span><\/b><\/p>\n<p><b><span data-font-family=\"default\">Select the serial port:<\/span><\/b><span data-font-family=\"default\"> In the \"Device\" field of Cutecom, choose the serial port name you found using the dmesg command, or manually enter the name.<\/span><\/p>\n<p><b><span data-font-family=\"default\">Open the serial port:<\/span><\/b><span data-font-family=\"default\"> Click the \"Open Device\" button in the upper left corner of the software to connect to the serial device.<\/span><\/p>\n<p><b><span data-font-family=\"default\">4\u3001Send and Receive Data: <\/span><\/b><span data-font-family=\"default\">Once connected, you can send and receive data through Cutecom's interface. Typically, the interface is divided into two windows\u2014the top window displays the received data, and the bottom window is used for inputting data to send.<\/span><\/p>\n<p><b><span data-font-family=\"default\">5\u3001Close the Connection: <\/span><\/b><span data-font-family=\"default\">When you finish serial communication, click the \"Close Device\" button in the upper left corner of the software to close the current serial connection.<\/span><\/p>\n<section data-mpa-template=\"t\">\n<section data-role=\"outer\">\n<section data-id=\"us-4148222\" data-tools=\"135\u7f16\u8f91\u5668\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>&nbsp;<\/p>\n<h3><b><span data-font-family=\"default\">Notes<\/span><\/b><\/h3>\n<p><span data-font-family=\"default\">Before using Cutecom, ensure that your deepin system has the necessary serial drivers installed, and that the serial device is correctly connected to the computer (similar to the operations for Minicom).<\/span><\/p>\n<p><span data-font-family=\"default\">If your Linux distribution does not support the apt-get package manager, you may need to search for other installation methods that are suitable for your system.<\/span><\/p>\n<p><span data-font-family=\"default\">When using Cutecom for serial communication, make sure you understand the basic principles of serial communication and parameter configuration to avoid communication failures or data loss.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span data-font-family=\"default\">Thanks to deepin\u00a0 Community user \"UOS\u5927\u5c40\u89c2\" for the contribution.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h1><strong>Releated Readings\uff1a<\/strong><\/h1>\n<p>\uff081\uff09<a href=\"https:\/\/distrowatch.com\/table.php?distribution=deepin\">deepin Full Version ISO (including deepin V15)<\/a><\/p>\n<p>\uff082\uff09<a href=\"https:\/\/www.deepin.org\/zh\/category\/news%ef%bc%88chinese%ef%bc%89\/deepin-monthly-report\/\">deepin Community Monthly Report\u00a0<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<article id=\"post-34702\" class=\"post-34702 post type-post status-publish format-standard hentry category-community-news category-community-activities\">\n<div class=\"entry-content\">\n<p style=\"text-align: right;\">Content source: deepin community<\/p>\n<p style=\"text-align: right;\">Reprinted with attribution<\/p>\n<\/div>\n<\/article>","protected":false},"excerpt":{"rendered":"<p>\u00a0Minicom (Command-line Tool) Minicom is a command-line tool with no graphical interface. It has a small installation package, consumes minimal system resources, and can be used directly from deepin's Super Terminal window. Minicom is the recommended tool for use.Minicom is mainly used for serial communication. Below is a guide to installing and using Minicom. Installing Minicom The method to install Minicom depends on the Linux distribution you are using. For deepin, you can follow these steps to install Minicom: 1\u3001Open the terminal: First, open the deepin Super Terminal. 3\u3001Get root privileges: To install software, root privileges are usually required. You ...<a href=https:\/\/www.deepin.org\/en\/deepin-use-minicom-and-cutecom\/>Read more<\/a><\/p>\n","protected":false},"author":11164,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[155,93],"tags":[144,153,148,141,147,143,162,189,184],"_links":{"self":[{"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/posts\/34740"}],"collection":[{"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/users\/11164"}],"replies":[{"embeddable":true,"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/comments?post=34740"}],"version-history":[{"count":4,"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/posts\/34740\/revisions"}],"predecessor-version":[{"id":34799,"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/posts\/34740\/revisions\/34799"}],"wp:attachment":[{"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/media?parent=34740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/categories?post=34740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.deepin.org\/en\/wp-json\/wp\/v2\/tags?post=34740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}