Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do the CLOCAL and CRTSCTS Flags in termios.c_cflag Affect the Serial Port?

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

like image 286
Samuel Avatar asked Oct 25 '12 19:10

Samuel


1 Answers

CLOCAL ignores only the CD signal.

like image 171
ninjalj Avatar answered Oct 24 '22 05:10

ninjalj