Welcome to Raspberry Pi 4B repository
3.2 2.Serial port login Pi
1.USB to TTL module connect to Raspberry pi board
We need to prepare three DuPont lines)
RXD--------TXD0(GPIO14)
TXD--------RXD0(GPIO15)
GND--------Ground
Raspberry Pi pin distribution diagram:
Physical connection diagram:
After the wiring is completed, power on the Raspberry Pi, and plug the USB to TTL module into the USB port of the computer, and check the corresponding port number on the computer device management.
2. Login Raspberry Pi by serial port
2.1 Connect Raspberry Pi
First, we can open a WiFi hotspot via a mobile phone, then modify the Raspberry Pi configuration file to connect to the mobile network and open the SSH service.
!!! Note: that the laptop should also be connected to the WiFi hotspot of the phone.
You can search for the IP address of the Raspberry Pi by installing IPscanner on your computer, and then log in to the Raspberry Pi using putty.
!!Note:IP address just for example: user need input your own IP address.
2.2 Configure the serial port
We need to enter the command shown below at the command terminal:
sudo raspi-config
Change “Interfacing Options” -> “P6 Serial” -> “Yes” ->”OK”
Next, we can exit the setup and restart the Raspberry Pi.
2.3 Install ckermit
Enter the command shown below at the command terminal to install the ckermit tool
sudo apt-get install ckermit
Enter the command shown below at the command terminal to start kermit:
sudo kermit
Enter the following to set the serial port:
set line /dev/ttyS0
set speed 115200
set carrier-watch off
set handshake none
set flow-control none
set file type bin
set file name lit
set rec pack 1000
set send pack 1000
After the configuration is complete, enter exit to exit.
2.4 Serial remote login
Open the putty, select the Serial serial port, enter the corresponding port and baud rate, and finally click “open”.
Enter the user name pi and password.
If you make a mistake, you can re-enter it according to the prompt.
However, if you cannot enter it, the configuration is unsuccessful. Please reconfigure.
The above interface indicates that the login is successful.