Linux statserial Command

Linux 命令大全Linux Commands Reference

The Linux statserial command is used to display the serial port status.

statserial (status of serial port) can display the status of each pin and is often used to determine whether the serial port is working properly.

Syntax

statserial [-dnx][串口设备名称]

Parameter Description:

  • -d Display the serial port status in decimal numbers.
  • -n Only display the serial port status once and then terminate the program.
  • -x Similar to the -n parameter, but expressed in hexadecimal.

Examples

Display serial port status

# statserial /dev/tty1

Display serial port status only once

# statserial -n /dev/tty1

Linux 命令大全Linux Commands Reference

Other Extensions