Install and use C-Kermit in Ubuntu10.04 (VMware + USB to serial port)

Source: Internet
Author: User
I have been using a Super Terminal in Windows. Today, I have a whim. I tried to control the serial port in Linux. I checked the following on the Internet: C-Kermit and minicom, many problems occurred during the installation of C-Kermit and Ubuntu10.04 finally selected, which are recorded here to prevent forgetting. 1. install and configure ckermitsudoapt-getinstallckermit before using kermit, in the user's home directory (/home/user name/

I have been using a Super Terminal in Windows. Today, I have a whim. I tried to control the serial port in Linux. I checked the following on the Internet: C-Kermit and minicom, many problems have occurred during the installation of C-Kermit and Ubuntu 10.04, which are recorded here to prevent forgetting.

1. install and configure ckermit

Sudo apt-get install ckermit

Before using kermit, create a configuration file named. kermrc under the user's home directory (/home/user name/). The content is as follows:

Set line/dev/ttyUSB0 // how is the serial port ttyS0?
Set speed 115200
Set carrier-watch off
Set handshake none
Set flow-control none
Robust
Set file type bin
Set file name Parameters
Set rec package 1000
Set send package 1000
Set window 5

Ii. use USB to serial port Devices

1. Add serial port support to VMware (this step can be left blank. In addition, this step is mainly to prevent connection failure. This method is to add serial port devices to the hardware, add the device in the window to the virtual machine. That is to say, you need to add the usb to serial port when the window gets the focus, and then add the device to the virtual machine. Then you can view the device file of the added device under ubuntu, usually/dev/tty0 or/dev/ttyS0. This method uses Windows usb to serial port as the serial port of the virtual machine, so tty0 or ttyS0 is used instead of being loaded under ubuntu .)

(1) Open Vmware workstation and click setting under VM on the menu bar to enter the virtual machine setting dialog.

(2) Click add to add the serial port. (You must disable ubuntu In the VM before adding the port. I chose COM2)

(3) Enable the USB Service (I turned it off by myself, and it is enabled by default)

2. # lsmod | grep usbserial

If USB serial and USB serial 33019 1 ch341 are available, the USB-to-serial port is supported.

If no sudo apt-get install setserial

Plug in the USB-to-serial port and enter the command # dmesg | grep ttyUSB0 on the terminal. If the connection is successful, the ubuntu system recognizes the device.

3. Start C-kermit

(1) Insert the serial line of the development board into the computer (note that the mouse should be placed in ubbuntu) and run the sudo kermit-c command to start the serial port. Then, the boot information of the bootloader of the Development Board is displayed.

(2) Close the serial port, hold down the "ctrl" and "\" keys at the same time, then release and press the "c" key, then enter "exit" and press Enter.

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.