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