1. Preface
I am using USB to serial port, and the chip is pl2303. It seems that Ubuntu has a USB driver of pl2303, which can be used directly. I have never tried other USB to serial ports.
2. Install minicom
Enter sudo apt-Get install minicom in the terminal
Download and install minicom as prompted. After downloading and installing minicom, run the command to start minicom. Enter sudo minicom in the terminal to start minicom.
3. Set minicom
Close the opened minicom and enter sudo minicom-s in the terminal to configure the minicom, which is mainly to configure the serial port,
Set the serial port number in the serial port setup option
I have ttyusb0, which is my serial port device. You can set it according to your actual situation.
View serial devices
Open another terminal and enter dmesg | grep TTYs * in the terminal *
After the settings are complete, press enter to save and save the settings as default.
You can modify other settings according to your actual situation. To debug the development version of Linux, you only need to modify the serial port number.
4. Use
Enter sudo minicom in the terminal to open the serial assistant.