When the system is up, there will be three device nodes ttyS0, ttyS1, ttyS2 in the /dev directory, and set the tx of ttyS0 Connect to PC via serial port with rx, and execute echo 111> ttyS0 in the ipcam control terminal, and you will find that the serial terminal on the PC has received the data sent by ipcam via ttyS0, but it is garbled and needs to be passed through stty -F /dev /ttyS0 speed 57600 to set the baud rate of ttyS0 on the linux device to 57600. In this way, execute echo 111> ttyS0 in the terminal of the linux device to receive the “111” character information on the serial terminal of the pc.
< p>Stty is configured in busybox as follows
Config busybox settings ---> Coreutils ---> [*] stty
When the system is up, it will appear in the /dev directory ttyS0, ttyS1, ttyS2 three device nodes, connect the tx and rx of ttyS0 to the pc through the serial port, and then execute echo 111> ttyS0 on the ipcam control terminal, you will find that the serial port terminal on the pc has received the ipcam sent by ttyS0 The data is just garbled. You need to use stty -F /dev/ttyS0 speed 57600 to set the baud rate of ttyS0 on the linux device to 57600. In this way, you can execute echo 111> ttyS0 in the terminal of the linux device to be in the serial terminal of the pc. I have received the “111” character message on the
The configuration of stty in busybox is as follows
Config < span class="hljs-comment">busybox settings ---> Coreutils ---> [*] stty