Minicom is a serial communication software in Linux. It uses a keyboard. Although it does not have a Windows Super Terminal, it is also a method of serial communication.
1. Install minicom
Enter:
[Email protected]: ~ $ Sudo apt-Get install minicom
Note: The minicom dependency file is not integrated into the installation before Ubuntu 8.0. You need to manually install the dependency package. The installation command is:
[Email protected]: ~ $ Sudo apt-Get install lrzsz
Ii. minicom Configuration
1. Before using minicom, you must ensure that you have read and write permissions on the serial port. in Linux, the device files are stored in the/dev directory. The device file corresponding to serial port 1 is ttys0, the device file corresponding to serial port 2 is ttys1. In the terminal, type the following command to view the com permission:
[Email protected]: ~ $ Sudo LS-L/dev/ttys0
[Sudo] password for Sally:
CrW-RW ---- 1 root dialout 4, 64 2010-07-10 11: 08/dev/ttys0
It can be seen that its owner belongs to the root permission.
2. type the following command in the Super Terminal to configure minicom
[Email protected]: ~ $ Sudo minicom-S
The following interface is displayed:
+ ---- [Configuration] ---- +
| File name and path |
| File Transfer Protocol |
| Serial Port Settings |
| Modem and dialing |
| Screen and keyboard |
| Set to DFL |
| Save the settings as... |
| Exit |
| Exit minicom |
+ ------------ +
Move the cursor over the serial port settings with the up/down key. Press enter to display the following interface:
+ ----------------------------------------------------------------------- +
| A-serial port device:/dev/ttys0
| B-lock file location:/var/lock
| C-import program:
| D-call out program:
| E-bps/PAR/bits: 115200 8n1 |
| F-hardware Data Flow Control: OK
| G-Software Data Flow Control: No |
| Which setting Do You Want To modify? + ----------------------------------------------------------------------- +
Type A A-G to set related options and return to the configuration page. Select "Save settings as DFL" and exit to complete the configuration of minicom.