Serial Port minicom in Linux

Source: Internet
Author: User
Minicom is a software for serial communication in Linux. Its use relies entirely on the keyboard. Although it is not as easy as a "Super Terminal, however, readers will learn about its efficiency and convenience after getting used to it. The following describes how to install and configure minicom.

Installation:
Sudoapt-getinstallminicom

Configuration:
Before using minicom, you must first ensure that you have the read/write permission on the serial port. we know that Linux devices correspond to a file in the/dev/directory. the serial port COM1 corresponds to ttys0 and com2 corresponds to ttys1. Use this command to check your permissions on com1:

$ LS-L/dev/ttys0
CrW-RW ---- 1rootdialout4, 642006-05-0406: 52/dev/ttys0

As you can see, its owner is root.

For example, to configure a Super Terminal in Windows, you must configure the serial port before using minicom.

1. run $ sudominicom
2. Press ctrl a first, open it, and then press o to display the configuration menu.
3. Select serialportsetup. In "changewhichsetting", type "A", and move the cursor to the corresponding position of item A: ttys0 for serial port COM1 and ttys1for com2. (select)

Pair
Configure the baud rate, data bit, and stop bit, type "E", and set the baud rate to 1152008n1 (No parity check, stop bit 1). For hard/software traffic control, type "F", "g", and select both
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. (Savesetupasdfl), and then restart minicom.
Effective. After connecting to the serial port of the Development Board, you can print the correct serial port information in minicom.

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.