Control Raspberry Pi through serial connection

Source: Internet
Author: User
Requirement

Without a network, a keyboard, or a monitor, controlling Raspberry Pi becomes a problem. I accidentally saw an article today.ArticleThat is, you can directly control the Raspberry Pi through the serial port. Give a decisive try. The effect is good. Share it with others!Pai_^

Preparation
    • Raspberry Pi Development Board (Official System has been refreshed)
    • USB to serial port tool (pl2303)
    • Dubang line (4)
Link
 
Pl2303 Raspberry Pi--------------------VCC + 5vrx rxd (gpio14) TX txd (gpio15) Gnd ground

Raspberry Pi pin distribution chart:

Physical connection Diagram

I directly use the notebook power supply for power supply. Of course, you can also add another power supply.

Install the software Ubuntu Linux
    • InstallCkermit:Sudo apt-Get install ckermit
    • Edit the configuration file:VI ~ /. Kermrc, Write the following content:
SetLine/dev/ttyusb0SetSpeed115200SetCarrier-watch offSetHandshake noneSetFlow-control nonerobustSetFile Type BinSetFile Name exampleSetREC pack1000SetSend pack1000SetWindows5
Windows

In Windows, you can use a Super Terminal or Putty to select a Comport and set the baud rate to 115200.

Start connection
    • SetPl2303Insert USB into the computer and start Raspberry Pi
    • Sudo KermitOpen Kermit
    • InputCAnd press enter to view some output information during Raspberry Pi startup.
    • After the startup is complete, enter the user name and password to control Raspberry Pi.
How to disconnect
    • Enter the shortcut key:CTRL \And then pressCTo exit the Kermit interface.
    • Enter againCCan be connected to Raspberry Pi
    • InputExitYou can exit Kermit.
Feelings

It is much more convenient to use the serial port for connection. After all, many times we don't need or don't have a monitor. It is enough to just control Raspberry Pi.

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.