Install and configure minicom in Ubuntu

Source: Internet
Author: User
Install and configure minicom In Ubuntu (solve the default port/dev/tty8, but it cannot be changed). Minicom is a software for serial communication in linux. The following describes how to install and configure ubuntuMinicom. Install: sudoapt-getinstallminicom or search for "minicom" in the new software package manager. Install the searched minicom configuration. Before using minicom, you must first ensure that you have read/write permissions on the serial port.

Install and configure minicom In Ubuntu (solve the default port/dev/tty8, which cannot be changed)

Minicom is a software for serial communication in linux. The following describes how to install and configure ubuntu Minicom.

Installation:
Sudo apt-get install minicom
Or search for "minicom" in the new software package manager to install the minicom

Configuration:
Before using minicom, you must first ensure that you have read/write permissions on the serial port. The serial port COM1 corresponds to ttyS0, And the COM2 corresponds to ttyS1.

Use this command to view your permissions on COM1:
$ Ls-l/dev/ttyS0

1. run $ sudo minicom
2. Press Ctrl + a to open it, and then press o to display the configuration menu.
3. Select Serial port setup. In "Change which setting", type "A" and move the cursor to the corresponding location of item A: the Serial port COM1 corresponds to ttyS0 and COM2 corresponds to ttyS1.
Configure the baud rate, data bit, and stop bit. Type "E" and set the baud rate to 115200 8N1 (No parity check, 1 stop bit ),
For hardware/software traffic control, type "F" and "G" and select "NO.

After confirming that the configuration is correct, you can press enter to return to the upper-level configuration page and save it as the default configuration. (Save setup as dfl) and restart minicom. The configuration just now takes effect. After connecting to the serial port of the Development Board, you can print the correct serial port information in minicom.

4. The default port/dev/tty8 cannot be changed, so you have to write a configuration file by yourself.

The configuration file of minicom is in the/etc/minicom/directory.

My configuration file is minirc. ttys0 Serial Port 1

The content is as follows:


The configuration file of minicom is in the/etc/minicom/directory.

My configuration file is minirc. ttys0 Serial Port 1

The content is as follows:

# Machine-generated file-use "minicom-s" to change parameters.
Pr port/dev/ttyS0
Pu baudrate 115200
Pu bits 8
Pu parity N
Pu stopbits 1
Pu minit
Pu mreset
Pu rtscts No
Note that ttyS1 S must be capitalized.

Run the minicom command minicom ttys0.

Send file:
Use the ZMODem protocol in MINICOM to send files: run the configured MINICOM, press ctrl-a, and then press the s key. Select the ZMODem protocol and press Enter. Then, use the arrow and double-click the space to select the file to be sent, and press enter to send.

Hursday, May 24th, 2007

Because the serial port is often used, we need to explore the serial port terminal program under Ubuntu. We have used gtkterm before, and the print is good. I found minicom today. I thought it was a simple and easy-to-use terminal program, but I found it fooled by its name. This minicom has many functions and many settings, however, multiple choices are always good.

Naturally, sudo apt-get install minicom is required first.
Run it. This is the character interface program. When minicom comes up, it detects/dev/tty8 from the serial port (I don't know how it detects this) and re-runs minicom-s, go to the settings menu, and find a variety of options. Fortunately, you only need to change the serial port to/dev/ttyS0, set the correct baud rate, and then OK. During the connection process, Ctrl-A activates the menu, press q to exit (it seems a bit troublesome ).

This program must have a long history. By default, the modem initialization sequence is automatically issued. Therefore, it is better to use minicom-o to run the program. You can skip this modem initialization.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

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.