tcsetattr (on serial device) takes effect only at next application startup
by Felix Brack » Fri, 25 Mar 2005 02:40:43 GMT
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
to activate
a new set of parameters?
Do I have to close and reopen the device after a call to 'tcsetattr'?
many thanks, Felix