How to set and edit the serial port baud rate and open the specified uart port on the Linux development board?
The following demonstrates commonly used command operations:
1) Edit the configuration file that opens the specified serial port
ls -l /boot/uEnv/
sudo vim /boot/uEnv/xxx.txt
2) Check whether the serial port is opened successfully
ls /dev/tty*
3) Check the serial port baud rate
stty -F /dev/ttyS3
4) Set the serial port baud rate
stty -F /dev/ttyS3 ispeed 115200 ospeed 115200
5) Send data to the designated serial port
echo hello >/dev/ttyS3
6) View the received serial port data
cat /dev/ttyS3