In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the serial port debugging tool in the Linux system, which has a certain reference value. Interested friends can refer to it. I hope you will gain a lot after reading this article.
Experimental environment:
OS: Ubuntu16.04 Kernel: 4.4.0
Minicom
Minicom is a serial terminal debugging tool with fast startup speed and powerful function. of course, the disadvantage is pure character interface, debugging tool without graphical interface looks intuitive and convenient, but it is very powerful, and it is useful to run on some embedded motherboards without screens. The following are specific installation and use tutorials:
Installation: apt-get install minicom
Use process:
After installation, run the software through the command "minicom". Instructions have been given on the home page. Minicom often encounters a combination of three keys, such as "CTRL-A Z", which means pressing CTRL and "A" (not capital-sensitive) at the same time, then release the two keys and then press "Z". Follow this method to open the help instructions:
You can see that there are many functions. Here is only a preliminary demonstration. Press "O" to enter the configuration page, as follows:
Select the "Serial port setup" option, and then press enter to enter the serial port settings page, as follows:
Change the actual serial device name in our system to the following settings, as shown in the following figure:
Once set up, return to the previous level, select "Save setup as dfl" to save, and then Exit. After ensuring that the serial device has been connected, re-run the minicom software to send and receive serial data. If you do not find the set serial device minicom running, you will get an error, as shown below:
If you need to modify the settings, you need to run "minicom-s" to reset them. In the case of correct configuration, connect my Openwrt development board for communication demonstration:
Is it a bit similar to the putty tool, which makes it easy to interact with the device? If you encounter an exception in sending and receiving serial data, or if the serial port receives a string such as "ATE E0", it is because the serial device is affected by the modem service that exists in the system. At this time, you can stop the service with the following command, and then you can send and receive normal data. The command is as follows:
Root@ubuntu:/#systemctl stop ModemManager.service
This is the end of the introduction of the software, if you have more detailed requirements and questions, please give me comments and comments.
Cutecom
This software is very similar to the serial debugging tool of the graphical interface we use under Windows. The following is the installation and use tutorial:
Installation: apt-get install cutecom
Usage process: it should be noted that administrator privileges are required to manipulate the device files under linux / dev, which should be noted when using it. After entering root mode, run "cutecom" with the following interface:
At this time, many people have a sense of deja vu, as for how to use it, I do not need to repeat it. If you have any questions, you can leave me a message or comment.
Picocom
The software looks like a stripped-down version of minicom, which is easy to set up and can have a background color. It is also used by more users. The installation and use instructions are given below:
Installation: apt-get install picocom
Usage process: due to the convenient introduction of the software, we directly type out the help function and run "picocom-h". The results are as follows:
The help page is exactly one page, and the comments are relatively clear. The following is still connected to my Openwrt board for debugging to see the results. Note that the commands required for setting the serial port are given when running. If I need to set the baud rate here, then execute as shown in the following figure:
If you need to exit, you need to press the key combination Ctrl + a, which is an escape function, and then press the key combination Ctrl + Q to exit normally.
Putty
People who have used putty know that I will not dwell on the function. The following is mainly about the installation and use of putty tools under linux. Many people are used on Windows. I specially studied it on linux.
Online installation: apt-get install putyy
Offline installation link: PuTTY Download Linux, the installation steps refer to the INSTALL or README documentation in the folder.
Use process:
Directly run the command "putty", if it is offline installation may be due to no specified installation path, prompt can not find the command, the default will be installed in the / usr/local/bin directory, which is not written. Run the command, enter, see the familiar interface, and set it to the configuration we need, as follows:
Click "Open" to open and a new interface pops up, as shown below:
Thank you for reading this article carefully. I hope the article "how to use Serial debugging tools in Linux system" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.