- Check if the system supports USB to serial port:
Lsmod grep usbserial
If there is usbserial, the system supports USB to serial port.
plug in the USB to serial port, enter the command in the terminal:
grep ttyUSB0
If the connection success message appears, the Ubuntu system has identified the device.
Note: Ubuntu in a virtual machine environment is not automatically recognized by default and needs to be clicked in the lower right corner of the virtual machine window:
sudo Install minicom
Minicom-s
Enter the "Serial Port Setup" option to set the serial port parameters:
in the actual application will not frequently change these parameters, you can save it as the default parameters, select "Save Setupas DFL" and enter:Next Select "Exit" and enter;Run again:
Minicom
after initialization is complete, the minicom will connect to the serial port and the interface to the serial port as shown:
Press "CTRL + a" and press "Z" to enter the Minicom help screen, enter "X" or "Q" to exit minicom.
Ubuntu under the Serial Debugging tool minicom installation and configuration