Latest web development tutorials

Linux setserial command

Linux command Daquan Linux command Daquan

Linux setserial command is used to set or display serial port information.

setserial can be used to set or display the current serial port settings.

grammar

setserial [-abgGqvVz][设备][串口参数]

Parameter Description:

  • -a Displays detailed information.
  • -b displays summary information.
  • -g Displays information about the serial port.
  • -G Command to format the list to display information.
  • Show less information when performing -q.
  • -v Displays more information when executed.
  • -V Display version information.
  • -z Before setting, first of all marked zero.

Examples

Serial Display information

# setserial -g /dev/ttyS2 
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4

Linux command Daquan Linux command Daquan