How do the CLOCAL and CRTSCTS flags in termios.c_cflag affect the serial port?

I want to configure UART to use the RTS and CTS hardware flow control lines on Linux. According to http://linux.die.net/man/3/termios , CRTSCTS enables RTS / CTS flow control (hardware), and CLOCAL configures the serial port to ignore modem control lines. The 2 flags seem contradictory, how can you enable hardware flow control with CRTSCTS and ignore lines with CLOCAL?

+4
source share
1 answer

CLOCAL ignores only the CD signal.

+5
source

Source: https://habr.com/ru/post/1442154/


All Articles