Ubuntu under Install configuration minicom (fix default port/dev/tty8, can't change the problem)

Source: Internet
Author: User

Minicom is Linux under the serial communication software, the following is the installation and configuration of Ubuntu minicom.

Installation:
sudo apt-get install minicom
or search for "minicom" in the newly-made Package Manager to install the search minicom

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

Use this command to see your permissions on the COM1:
$ ls-l/DEV/TTYS0

1. Run $ sudo minicom
2. Press CTRL + A, let go, then press O, and the configuration menu appears.
3. Select Serial Port Setup, where the icon appears in "Change which setting", type "a", at which point the cursor moves to the corresponding position in item A: The serial port COM1 corresponds to TtyS0, COM2 corresponds to ttyS1.
For baud rate, data bit and stop bit configuration, type "E", baud rate selected as 115200 8N1 (parity none, stop bit 1),
Hard/Software flow control type "F" and "G" respectively and select No.

After confirming that the configuration is correct, type Enter to return to the ancestor configuration interface and save it as the default configuration. (That is, save Setup as DFL), and then restart minicom is just the configuration to take effect, after connecting the Development Board serial line, you can print the correct serial port information in the minicom.

4. The default port/dev/tty8, but cannot change, had to write a configuration file.

In the/etc/minicom/directory is the minicom configuration file

My configuration file is minirc.ttysusb0

The contents are as follows:

In the/etc/minicom/directory is the minicom configuration file

My configuration file is minirc.ttyusb0

The contents are as follows:

# machine-generated File-use "Minicom-s" to the change parameters.
PR PORT/DEV/TTYUSB0//I am using a USB to serial port
PU baudrate 115200//baud rate of transmission
PU Bits 8
Pu parity N
PU StopBits 1
Pu Minit
Pu Mreset
Pu rtscts No
Note that the TtyUSB1 USB must be capitalized

When you run minicom, enter the command minicom TTYS0.





Send file:
Send a file using the Zmodem protocol in minicom: Run the configured minicom, press Ctrl-a First, and then press the S key. Select the Zmodem protocol carriage return. Then use the arrows and double-click spaces to select the files you want to send, and then press ENTER to send.

Hursday, May 24th, 2007

Because often use the serial port, so in Ubuntu to explore the serial terminal program, before using gtkterm, printing good. Today found Minicom, originally thought is a simple and easy to use Terminal program, but found to be its name to flicker, this minicom function more, set up also many, but many choices are always good.

Naturally it is first to sudo apt-get install minicom
Run, this is the character interface program, a minicom on my serial port detected/dev/tty8 (I do not know how it detected this), re-run minicom-s, into the Settings menu, hehe, is really rich options. Fortunately, only need to change the serial port for/DEV/TTYS0, set the correct baud rate, OK, in the connection process ctrl-a activation menu, and then press Q can exit (seems a bit troublesome to say).

This program must be old, by default, the modem initialization sequence will be issued automatically, so use Minicom-o to run better, you can skip this modem initialization.

Reference: http://blog.csdn.net/yinjiabin/article/details/7543111

Ubuntu under Install configuration minicom (fix default port/dev/tty8, can't change the problem)

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.