Linux TTL serial login Pcduino V2

Source: Internet
Author: User

I am a program ape, hardware is his hobby! I hope you will not hesitate to enlighten us.

In the absence of monitors and network cables, the serial port is the only choice to connect Pcduino V2. This paper mainly records the process steps of my Usb-ttl connecting Pcduino V2 under Linux, for reference only!


System: Ubuntu 14.04

Software: minicom

Hardware:

    • PL2303 Usb-ttl Adapter

    • DuPont Line 3 root

    • Pcduino V2 piece, with USB power


Hardware connection:


Usb-ttl adapter and Pcduino V2 connection, please refer to:



I use the USB to TTL serial device such as:



Connect the adapter to the USB port on the computer and enter LSUSB to see if the PL2303 USB device is recognized:


Use the DMESG command to view device information:


Complete the hardware setup by connecting the USB power to the Pcduino V2 motherboard.


minicom Installation:

    • sudo apt-get install minicom

Minicom Configuration:

Log in as root and run the following command:

# minicom-s

The minicom main configuration menu appears on the screen, the keyboard key is moved, the "Serial Port Setup" option is selected, and the following configuration items appear:

A-serial Device:/dev/ttyusb0

B-lockfile Location:/var/lock

C-callin Program:

D-callout Program:

E-bps/par/bits: 115200 8N1

F-hardware Flow Control:no

G-software Flow Control:no

Change which setting?

  

Configure the following parameters as needed:  

Serial device/dev/ttyusb0;

Baud rate 115200;

Frame Format 8N1 (indicates 8-bit data, 0-bit checksum and 1-bit stop bit);

Soft and hardware flow control No.

Note that the serial number can be changed based on the port being connected

  

After the configuration is complete, go back to the main configuration menu, select the "Modem and dialing" option, and clear the value of the "A-init string", "B-reset string" and "k-hang-up string" options. Then return to the main menu and select the "Sxdye as DFL" option and save as the default setting. After selecting exit from Minicom, restart Minicom with the following command:  

# minicom




Reference:

http://www.crifan.com/continue_try_access_pcduino_via_ttl_serial_port/comment-page-1/

Http://it.china-b.com/lixt/456363.html

Linux TTL serial login Pcduino V2

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.