Configuration of minicom in Linux

Source: Internet
Author: User

Mini-com is equivalent to a Super Terminal in windows. If I can use mini-com like a Super Terminal, it does not save me a lot of effort. So I tried to find out how to use mini-Com, I have said this before during my training. I am not very careful about it. When I went out to work on CPLD/FPGA, I found that arm + Linux is the foothold for finding a job.

On the Linux terminal, enter the command # minicom, So that I encountered the first problem: minicom: Warning: configuration file not found, Using defaults device/dev/modem access failed: Obviously, if there is no modem file or directory, it indicates you want to set the minicom configuration file. You can search for it under the/dev directory to see what serial device files are available. The command is as follows:

[Root @ localhost Dev] # pwd
/Dev
[Root @ localhost Dev] # ls TTYs *
Ttys0 ttys1 ttys2 ttys3
[Root @ localhost Dev] # ls Modem
Ls: Modem: the file or directory does not exist.
[Root @ localhost Dev] #

In Linux, TTYs * identifies the serial port. The serial port number is the serial port number. Generally, a PC is a serial port, which is also known as the comport (that is, the Tianhe Computer City with a computer ), don't talk nonsense. Set up the minicom configuration file. Professional Engineers will use # Man minicom, like me... It must have been checked online.

Enter # minicom-s under the terminal to enter the setting minicom Configuration window. The content is as follows:

┌ ── ─ [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 │
└ ── ─

Here we need to set two options: Serial Port setup and modem and dialing. The first is Serial Port setup. Press enter to enter Serial Port setup settings. The settings are as follows:

Serial device: Corresponding Device File/dev/ttys0

The baud rate is set to, with 8 data bits and 1 Stop bits.

There is no hardware stream. This is common sense. In fact, I don't know why to set it like this ..
┌ ── ─
│ 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? │
└ ── ─
Here I want to talk about it. I am stupid. It takes a while to preview and get started to operate these things. After exiting, I have to return and check whether there are any omissions. In short, enter the number before the option, then set it. The other words seem like I just came out of kindergarten.

Exit Serial Port setup and enter modem and dialing. The settings are as follows:

Specifically, remove a-initing string ...... :, B-Reset string ...... : K-hang-up string ...... The three configuration items are not clear. Let's look back at the project. Sometimes, I have to be "not seeking for a thorough solution". I still want to put my questions elsewhere.

 

┌ ── ─ [Modem and dialing Parameter setup] ── ─

│ A-init string ......
│ B-Reset string ...... │
│ C-dialing prefix #1... atdt │
│ D-dialing suffix #1 ...... ^ m │
│ E-dialing prefix #2... atdp │
│ F-dialing suffix #2 ...... ^ m │
│ G-dialing prefix #3... atx1dt │
│ H-dialing suffix #3 ......; x4d ^ m │
│ I-connect string ...... connect │
│ J-no connect strings .. no carrier busy │
│ No dialtone voice │
│ K-hang-up string ...... │
│ L-dial cancel string .. ^ m │

│ M-dial time ...... 45 Q-auto BPS detect ...... No │
│ N-delay before redial. 2 R-modem has DCD line .. Yes │
│ O-Number of tries... 10 s-status line shows... DTE speed │
│ P-DTR drop time (0 = No). 1 T-multi-line UNTAG... no │

│ Change which setting? (Return or ESC to exit) │
└ ── ─

Then, exit and select the Save As DF1 option to save the modified configuration information as the default configuration option, and then exit from minicom ....

 

Restart minicom To Go To The following screen:

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

 

Then press Ctrl + A and then add a Z to it. Then, a rich screen is displayed .. Please try it ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.