tcsetattr (on serial device) takes effect only at next application startup
From: Felix Brack (fb_at_ltec.ch)
Date: Wed, 23 Mar 2005 18:40:43 +0100
I use 'tcsetattr' to change the attributes of a serial interface like ttyS1.
According to my knowledge the new parameters I set should be in effect
as soon as a call like 'tcsetattr(nfed, TCSANOW, &tty_parms)' returns.
Fact is, they are not. The old parameters seem to remain active, even though
a call to 'tcgetattr' shows the new parameters.
After stopping and restarting my application the new paramters are effective
and the application is working fine.
Is there any other routine besides 'tcsetattr' (and 'tcflush') I must call
a new set of parameters?
Do I have to close and reopen the device after a call to 'tcsetattr'?
many thanks, Felix