Article Title: configuration and use of minicom. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
I believe many Linux users have noticed how to connect to the Com Port device in command line mode, such as debugging layer-3 switches and routers. The new users who just came into contact with me cannot start, if this happens, you can continue to read it :)
In the Centos 5.2 environment, I tried to initialize a UPS (APC Smart-UPS VT 15 kVA :), And the notebook on hand had no Com port, there is only one Linux system next to UPS that I usually use to test. I don't want to move another Windows server to a higher level. I think it is possible to directly connect to UPS using Com 1 in Linux. By searching, we found that the mini-software MiniCom is not bad. In addition, there are several more detailed articles on installation, use, and configuration.
However, at the beginning of installation, I encountered a dependency package problem. At first, I selected an RPM package based on the online articles. However, whether it was 2.25 or 2.3, I was prompted that the dependency package could not be found, then try to use the original code package for compilation, and the compilation will fail. Finally, I thought of using yum for direct installation (the host was shut down to access the Internet at the beginning). Two minutes later, the installation was successful.
Currently, the YUM version is as follows:
# Minicom-v
Minicom version 2.1 (compiled Jan 7 2007)
The use of Minicom is relatively convenient. Some connection parameters can be set through minicom-s;
# Minicom-s
+ ----- [Configuration] ------ +
| Filenames and paths |
| File transfer protocols |
| Serial port setup |
| Modem and dialing |
| Screen and keyboard |
| Save setup as dfl |
| Save setup as... |
| Exit |
| Exit from Minicom |
+ -------------------------- +
Move the cursor to Serial port setup and press Enter:
| A-Serial Device:/dev/ttyS0 |
| B-Lockfile Location:/var/lock |
| C-Callin Program: |
| D-Callout Program: |
| E-Bps/Par/Bits: 2400 8N1 |
| F-Hardware Flow Control: Yes |
| G-Software Flow Control: No |
|
| Change which setting?
According to the information,/dev/ttyS0 is the Com 1 mentioned in Winodws. Press A to modify it, press E to modify the speed, and press enter to return to the top menu, select Save setup as dfl, and then select Exit to enter the Com connection.
As follows:
Welcome to mini-com 2.1
OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Jan 7 2007, 04:48:39.
Press CTRL-A Z for help on special keys
User Name: (if you can see this, the connection is successful)
By the way, the APC Smart-ups vt 15 kVA UPS is a bit strange. It has two comports, one of which is used for system upgrade and initialization, the lower one is used to connect to the network management card (model: AP9619), and the connection speed of the two COM is different, and the connection speed of the system is 115200, the speed of connecting to the network management card is 2400. For this reason, I have been depressed for a long time. I always thought it was a problem with mini-com and it was always unable to connect.