System environment: Ubuntu 14.04 and Ubuntu 16.04
I was the need for the main two, to see the normal serial output, and the serial content of the real-time output to the file
The next work is mainly two: 1, installation 2, configuration
I believe you will be at least operate some of the full line, we are here with Apt-get installation (not the classmate please google a bit)
1. Installation
sudo apt-get install minicom
2. Configuration
(1) First execute the sudo minicom startup program at the command line
(2) After entering the main interface, press CTRL + A and then press Z
Enter the Configuration interface
I mainly use two here, the second on the right, configure Minicom ... o Configure serial port information
Fourth capture on/off on the left ... L Open the output file and configure the file directory.
First of all, configure the serial port printing information.
In this interface you want to enter which item, press the corresponding letter key after it.
Now we have ammonium o into the configuration interface
This column, which is mainly a after the corresponding to your COM port device settings are correct. It is generally/dev/ttys0. And then there's F under no
。
Save
to this first job view serial output has been done. Next is the output of the serial port output to the file at the same time.
The second job, output to a file.
In this interface, press L to enter
The output file here is relative to the directory of the software, you can change to the directory you want to store.
As the directory and file I set
OK to both of these jobs are okay. What your window output prints, in your file (I'm/home/tmp/output.log here), will also be stored in those printout files.
Linux under the serial port tool minicom