Here, we introduce how to use UART board to connect Pi’s Serial console in your PC. We suppose Raspberry Pi is running Raspbian. The raspberry Pi by default uses serial port as a console port. If you disabled it before, you need enable it again.
Login the pi, and run:
$ sudo raspi-config
Select Advance Options, and enable serial for shell and kernel
If you use a windows PC to connect your Pi console, you need first find out the serial port number that the UART board are using.
Here we assume your PC is Debian. Steps for other Linux systems would be very similar.
First, let us add serial port access to your normal user and thus we do not need ‘root’ right to access it.
let us find out the group of /dev/ttyUSB0
$ ls -l /dev/ttyUSB0
In debian, it usually is dialout
Type id to check if your user name belong to dialout group,
$ id
If not, add dialout to your user name,
$ sudo usermod -a -G dialout Your_USER_Name
We recommend minicom or screen to connect to UART board.
$ minicom -b 115200 -D /dev/ttyUSB0
$ screen /dev/ttyUSB0 115200