Use the LINUX serial port tool minicom

Source: Internet
Author: User

System Environment: Ubuntu destop 11.10

At that time, I needed to see the normal Serial Output and output the serial content to the file in real time.

 

Next we will focus on two main tasks: 1. Installation 2. Configuration

I believe that everyone will at least perform some full-order operations. Here we will use apt-Get for installation (if not, please google it)

 

1. Installation

Sudo apt-Get install minicom

2. Configuration

(1) Run sudo minicom on the command line to start the program.

(2) enter the main interface, press Ctrl + A, and then press Z

Enter the configuration page

 

I mainly use two here, the second one on the right, configure minicom...

The fourth capture on/off... l on the left opens the output file and configures the file directory.

 

First, configure the serial port printing information.

In this interface, you can enter the corresponding primary key.

Now we go to the configuration page for ammonium O.

 

 

 

 

In this column, your comport device is correctly set after. It is usually/dev/ttys0. Then, F is set to No.

.

 

Save

 

Now that the serial port is output to the screen, the following configuration can save the content output to the screen to the file:

 

 

In this interface, press L to enter

The output file here is the directory relative to the software. You can change it to the directory you want to store.

For directories and files set by me

 

 

You can do either of these two jobs. What is printed in your window output? The printed output files will be stored in your file (I am here/home/tmp/output. Log.

The above content from: http://www.2cto.com/ OS /201111/110568.html

Note the following when outputting data to a file:

(1) Each time you close and re-open the serial port, you must reset the output file.

(2) files must be created before use

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.