RTS/CTS on QNX

Hi,

I want to configure the serial driver in order to ignore RTS/CTS
handling. On POSIX systems such as LINUX it can be done with a termios
config such as:

term.c_cflag &= ~CRTSCTS;

CRTSCTS does not exist on QNX4 but according to the QNX documentation,
you can do the same with:

term.c_lflag = IEXTEN;
term_c_cflag &= ~(IHFLOW|OHFLOW);

but it doesn’t work for me…

Any experience or idea ?

Thx by advance.


Pierre FICHEUX -/- COM One, Cestas, France – pficheux@com1.fr
http://www.com1.fr/~pficheux
Computers are not intelligent. They only think they are

Does stty </dev/whatever show lkhflow is set? If so, look at doing
term.c_qflag &= ~TC_PROTECT_HFLOW.


Pierre Ficheux wrote:

Hi,

I want to configure the serial driver in order to ignore RTS/CTS
handling. On POSIX systems such as LINUX it can be done with a termios
config such as:

term.c_cflag &= ~CRTSCTS;

CRTSCTS does not exist on QNX4 but according to the QNX documentation,
you can do the same with:

term.c_lflag = IEXTEN;
term_c_cflag &= ~(IHFLOW|OHFLOW);

but it doesn’t work for me…

Any experience or idea ?

Thx by advance.


Pierre FICHEUX -/- COM One, Cestas, France – > pficheux@com1.fr
http://www.com1.fr/~pficheux
Computers are not intelligent. They only think they are

“Richard R. Kramer” wrote:

Does stty </dev/whatever show lkhflow is set? If so, look at doing
term.c_qflag &= ~TC_PROTECT_HFLOW.

Thx for the answer, that’s right :wink: However I had to use tcflow() in
order to clear the ohpaged which is set sometimes. I don’t really know
why…

/* -ohpaged */
tcflow (modem_fd, TCOONHW);

regards,


Pierre FICHEUX -/- COM One, Cestas, France – pficheux@com1.fr
http://www.com1.fr/~pficheux
Il vaut mieux deux tiens que un tu l’auras.

If you turn off flow control when you start the Dev.ser driver (use -E -F
flags) then I’ve found that ohpaged never happens. If you turn it off with
stty or in code I’ve found that it can sometimes happen - possibly when the
buffers overflow when no task is reading the port.
-Paul

Pierre Ficheux <pficheux@com1.fr> wrote in message
news:398196CB.6A509FEB@com1.fr

“Richard R. Kramer” wrote:

Does stty </dev/whatever show lkhflow is set? If so, look at doing
term.c_qflag &= ~TC_PROTECT_HFLOW.

Thx for the answer, that’s right > :wink: > However I had to use tcflow() in
order to clear the ohpaged which is set sometimes. I don’t really know
why…

/* -ohpaged */
tcflow (modem_fd, TCOONHW);

regards,


Pierre FICHEUX -/- COM One, Cestas, France – > pficheux@com1.fr
http://www.com1.fr/~pficheux
Il vaut mieux deux tiens que un tu l’auras.