Reference: http://www.linuxidc.com/Linux/2008-01/10939.htm
Because serial port configuration is required, it is easier to use the serial port management software in windows. It is better to use a Super Terminal or CRT. linunx is a little more troublesome, previously, I used minicom in RedHat Enterprise 4.0 and wrote a PPT to explain how to use it. Now I forgot how to use centos, A few days ago, I was worried about using putty directly. This software can be used directly by using a serial port. But there is a problem, that is, it cannot be copied, And it is troublesome to encounter long strings, run "minicom" with the following error message:[Root @ host temp] # minicom
Minicom: Warning: configuration file not found, Using defaults
Device/dev/modem access failed: No file or directory.
You can use minicom-s after searching on the Internet. Man minicom indicates that-s indicates configuration, and the warning message indicates that no configuration file exists.
[Root @ hostcy temp] # minicom-S
Minicom: Warning: configuration file not found, Using defaults
The following is the configuration process. As follows:
Filenames and paths
File transfer protocols
Serial Port setup
Modem and dialing
Screen and keyboard
Save setup as DFL
Save setup ..
Exit
Exit from minicom
After Serial Port setup is selected, the serial port settings menu is displayed, as shown below:
A-serial device:/dev/ttys1
B-lockfile location:/var/lock
C-callin program:
D-callout program:
E-bps/PAR/bits: 38400 8n1
F-hardware Flow Control: Yes
G-software flow control: No
Change which setting?
Press a to change ttys1 to ttys0, because my notebook only has one serial port com1. if you use other settings. Press E and set bps/PAR/bits to 115200 8n1. I think the general development board should be set like this. Then press F to change Yes to no and exit.
The result before exiting should be as follows:
A-serial device:/dev/ttys0
B-lockfile location:/var/lock
C-callin program:
D-callout program:
E-bps/PAR/bits: 115200 8n1
F-hardware Flow Control: No
G-software flow control: No
Change which setting?
After exiting, select Save setup as DFL and save it as the default read configuration file.
Filenames and paths
File transfer protocols
Serial Port setup
Modem and dialing
Screen and keyboard
Save setup as DFL
Save setup ..
Exit
Exit from minicom
Select exit and exit the configuration interface to reach the serial port. When you use it again, run minicom directly.