Linux statserial command
Linux statserial command displays port status.
statserial (status ofserial port) displays the status of each pin, used to determine the serial port is normal.
grammar
statserial [-dnx][串口设备名称]
Parameter Description:
- -d decimal digits to represent the state of the serial port.
- -n Only one serial port status after the program ends.
- Similar -x and -n parameters, but is represented in hexadecimal.
Examples
Display port status
# statserial /dev/tty1
Show only one serial port status
# statserial -n /dev/tty1