Linux Super Terminal minicom User Manual (and solve the problem that minicom cannot enter commands)

Source: Internet
Author: User
Tags file transfer protocol

#Lsmod | grep usbserial(Skip this step if you directly use a serial cable instead of a USB to serial port device)
If USB serial exists, the USB-to-serial port is supported. For example, if the USB port to serial port chip is pl2303, you can see that it has been connected to ttyusb0.

1. problems that cannot be identified by the USB Serial Port:

My notebook does not have RS232 interface, so I had to use USB to serial port, and then connect to the Development Board through a cross serial line Supporting the Development Board. However, when the VM is started, the host machine cannot connect to the USB device, for example:

In fact, the following line tells you the cause of the problem-the VMware USB arbitration service is not started. Start the Service as follows:

"My Computer"-> "management"-> "services and applications"-> "services", find the VMware USB Arbitration Service and start it manually.

For example:

2. What is minicom?

The mini-com function in Linux is similar to the Super Terminal function in Windows. It can control external hardware devices through serial ports and is suitable for managing embedded devices in Linux Through super terminals. If the connection is successful, I can see the files on the Development Board under minicom, or directly operate on the Development Board file under minicom, which is equivalent to the same operation on the Development Board. That is to say, minicom is a terminal of the Development Board. For example, if the connection is successful, you can see the Development Board file:

In this interface, you can use commands like on a PC, but using these commands is equivalent to operating on the Development Board.

Now let's see how to connect the host machine (PC) to the Development Board through minicom (assuming that minicom has been successfully installed) and how to transfer files.

3. Configure minicom:

[Root @ localhost ~] # Minicom-s [enter]

Configure minicom:

Press the corresponding letter to enter the corresponding settings, you need to set two items, [a] serial device selection, [e] serial port baud rate and data frame format.

Press ESC to return

Set modem and dialing
Use the direction arrow to select the modem and dialing items, then modify the configuration items in the modem and dialing options.
You need to remove a-initing string ...... :, B-Reset string ...... K-hang-up string ...... Values after the three configuration items.

Remember to save it! Press save setup as DFL ".

4. operation instructions on the minicom command:

[Root @ localhost ~] # Minicom [enter]

Enter the minicom interface:

Commands under minicom can be viewed by pressing CTRL + A and then z. The following is a command description. You can use "Ctrl + A <key>" under minicom to enter the interface of the corresponding function. Press ESC to return to the main interface.

Common Commands include:

Z: Help. It has been used above.

O (CONfigure): the configuration of minicom is very powerful.

S (SEnd files): Send files

R (REceive files): receives files

X (EXIt): Exit minicom

5. transfer files

This section describes how to upload files from a PC to the Development Board.

After entering the minicom terminal, press Ctrl + A, s to enter the settings of the Transfer file.

The first is the file transfer protocol. We use the zmodem protocol.

Then select File for transfer,

Of course, you can also transfer files from the Development Board to the PC. The related settings are similar.

========================================================== ======================================

The command cannot be entered to solve the problem of minicom!
It was originally set in the security book (number of bits per second/parity/number of BITs 115200 8n1)
The target machine information can be printed normally, but the command cannot be entered!
Then I went to Google + Baidu and finally found a clue that "Data Stream Control" should be set to none.
However, the "Data Stream Control" like that of a Super Terminal cannot be found even when the serial port setting is returned to minicom ",
However, the unexpected result is the discovery of a "Hardware flow control" and a "software flow control". The default values are yes and no.
Later, I tried to set it to no/no or no/Yes. (I found the online saying that it is generally set to No.) I can enter commands like a Super Terminal!

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.