Configure USB to serial port and serial port tool in Ubuntu

Source: Internet
Author: User
Tags dmesg
First of all, standing on the shoulders of giants, the first half is the previous article. I am lucky to be guided by this article, set successfully, and pass the test. The second part is the configuration of the serial port tool. Original address:

First of all, standing on the shoulders of giants, the first half is the previous article. I am lucky to be guided by this article, set successfully, and pass the test. The second part is the configuration of the serial port tool. Original address http://www.linuxidc.com/Linux/2011-11/47480.htm

  1. $
  2. 1. Download sudo apt-get install minicom
  3. 2. Insert the usb to the serial port. Terminal input: dmesg | grep usb
  4. ........................................ ........................................ ............
  5. [2, 7415.893942] USB Serial: USB Serial Driver core
  6. [2, 7415.931116] usb 3-1: ark3116 converter now attached to ttyUSB0
  7. [2, 7415.931141] usbcore: registered new interface driver ark3116
  8. [2, 7430.248072] usb 3-1: USB disconnect, address 2
  9. [2, 7434.588044] usb 3-1: new full speed USB device using uhci_hcd and address 3
  10. ........................................ ........................................ .............
  11. 3. Settings: minicom-s
  12. Serial port setup -->Serial device:/dev/ttyUSB0
  13. Set hardware data flow and Software Data Flow Control to no
  14. 4. Save and exit
  15. 5. Run the command window: minicom
  16. Bytes ----------------------------------------------------------------------------------------------------
  17. Note: by default, the USB to serial port driver (pl2303) is installed in Ubuntu ). I am using ark3116, which is also the default installation.
  18. 1. # lsmod | grep usbserial
  19. If USB serial exists, the USB-to-serial port is supported.
  20. Yzj @ yzj-laptop :~ /Minicom $ lsmod | grep usbserial
  21. Usbserial 36264 3 ark3116
  22. 2. 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 has recognized the device.
  23. Bytes ----------------------------------------------------------------------------------------
  24. Key combination: press Ctrl + A first, then release the two keys, and then press Z. There are also some common key combinations.
  25. (1) S key: send the file to the target system;
  26. (2) W key: automatic screen scrolling. When more than one line is displayed, the next line is automatically wrapped. This function is useful when viewing kernel startup information.
  27. (3) C: Clear the display content on the screen;
  28. (4) Key B: view the historical display of minicom;
  29. (5) Key X: Exit mInicom and a prompt is displayed to confirm exit.
  30. $

Okay. After the USB to serial port is configured, It is the serial port tool. Kermit is used here.

Install Kermit

$ Sudo apt-get install ckermit

Configuration

Here, the configuration is to manually write a configuration file. kermrc, which is placed in the/home/jun directory (of course, you are definitely not the jun directory, that is, the current user's home directory)

$ Vi. kermrc # The file content is below. Note that this file is stored in/home/jun.

# In fact, many configuration files of the software you installed are stored in this directory, except that # is hidden. Does it start.

Set line/dev/ttyUSB0

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

Run

$ Sudo kermit-c

It starts. to close it, press Ctrl + \, press C, enter exit, and press enter to exit.

Below are some of the screen capture tools Shutter for Ubuntu.

Is the output of Uboot;


Is the kernel and root file output on the board.

Related Article

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.