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
- Install
Ckermit
: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
- Set
Pl2303
Insert USB into the computer and start Raspberry Pi
Sudo Kermit
Open Kermit
- Input
C
And 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 pressC
To exit the Kermit interface.
- Enter again
C
Can be connected to Raspberry Pi
- Input
Exit
You 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.