First of all, there should be a terminal software called minicom under Linux. If friends who don't have this can download it from their own sources, then you have to plug in your usb serial port. Under Linux, Usb to serial cable hardly needs to be driven. After insertion, you should have a ttyUSB0 file in your dev directory. If so, congratulations, your cable TV is available now. Enter the terminal and enter su to log in as root. You must use the root user to use minicom, and then enter minicom -s to set it up. After entering the setting interface, you will see several options, namely:
File name and path, file transfer and protocol, serial port settings, modem and dial-up, screen and keyboard, save settings as df 1, save settings as ……, and exit minicom.
Enter the serial port settings.
Entering option letters will
The first item is changed to a- serial device:/dev/ttyub0.
Item 2: b-lock file location: /var/lock.
Item 5: e-bps/par/bits: 57600 (note here that this value should be changed to the baud rate of the equipment you are connected to).
Item 7: f- Hardware Flow Control: No.
Then exit the modem and dial.
Delete the value of a-initiating string b-reststring k-hang-upstring.
Then exit and choose save as df 1, and then choose exit MINICOM. The terminal here has been set up.
Next, you can connect your serial port to the device, and then enter minicom under the terminal to debug the device.
Please refer to