Linux statserial Command
The Linux statserial command is used to display serial port status.
statserial (status of serial port) displays the status of each pin and is often used to determine whether a serial port is working properly.
Syntax
statserial [-dnx][串口设备名称]
Parameter Description:
- -d Display the serial port status in decimal notation.
- -n Display the serial port status only once and then exit.
- -x Similar to the -n parameter, but displays in hexadecimal.
Example
Display serial port status
# statserial /dev/tty1
Display serial port status only once
# statserial -n /dev/tty1
Linux Command Reference