Use the linux serial port tool minicom

Source: Internet
Author: User
System environment: ubuntudestop11.10 I needed two items at the time. I can see the normal serial port output and output the serial port content to the file in real time. then I will mainly work on two items: 1. installation 2. I believe that you will operate at least some full-line configurations. here we are...

 

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

 

 

In this first step, check that the serial port output has been completed. The next step is to output the content output from the serial port to the file at the same time.

 

The second job is output 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

 

 

OK. 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 ).

 

It's also fashionable to get online from talent show!

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.