USB serial port and minicom communication __linux under Linux

Source: Internet
Author: User

Notebook is not a serial port, so bought a USB to the serial port line. After the driver installation, the Super terminal to try, the development of the Board pass.

I am using XP system +vmware, how to make the virtual machine to identify this serial can be used for a long time, because this is different from the ordinary serial port, but also through the virtual machine, so more than ordinary system add a serial port trouble a lot. Finally, after visiting countless web pages, consulted some people, under the virtual machine with Minicom unicom Development Board.

Here's how I set up the procedure:

First, you need to set up the virtual machine. USB to the serial port as a PC, in the virtual machine Linux system shutdown state, click Edit Virtual machine settings, enter and click the following add (if Linux started here is not a point), and then add serial port, Click until complete.

Start the Linux system, click on the top of the VM (with the File,edit option in parallel), click on the removable devices (in the start of Linux only after the effective), if you have plugged in the USB to the serial line, this time click Prolific usb-serial Controller, click Connect, then there will be a check mark on this option, so the setting is successful.

Go to Linux system and download good minicom. In the terminal input minicom-s, select the serial port settings, the serial device to/dev/ttyusb0 (sometimes need to delete this to no longer delete, add new information to be effective, here also may be ttyUSB1 or ttyUSB2, according to the specific circumstances change), bps/ Par/bits is set to 115200 8N1, and the last two are changed to No. Then set the save to DFL and exit minicom.

If there is no ttyUSB0 in your/dev file, then enter in the terminal

Mknod/dev/ttyusb0 C 188 0

Then enter minicom, open the Development Board power, you can see Minicom and Development Board Unicom.

Here also to say, if you use the serial line again, there will often exist/dev/ttyusb0 this file, but will prompt minicom: Unable to open/dev/ttyusb0: No file or directory, this time can be the VM prolific Usb-serial Controller disconnect (disconnect), reinsert the USB to the serial port line, connect again, and then minicom the connection.

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.