[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: stty: problem if IXON enabled and DC3 char was received
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2016-01-03 23:17:26
Message-ID: CAK1hOcMrK_kWOKLDWGu5eTN_WyQEAJ-Y1VB8kLQd6wdwO+wZ+g () mail ! gmail ! com
[Download RAW message or body]

What does "standard" stty does? Does it use TCSANOW?
(Use strace to find out).

On Sun, Jan 3, 2016 at 10:47 AM, Tomas Krcka <tomas.krcka@nkgroup.cz> wrote:
> Hi,
> I had a problem with setting baudrate of serial line by stty command.
> I tried to change the baudrate, but the stty went to frozen state.
> I found out that problem is that kernel has IXON enabled as default and before \
> change of speed the line received DC3 char. It's illegal character in this \
> situation, it happens once per 100 starts of the system. 
> Example situation:
> IXON is enabled in kernel by default and a serial line received DC3 char and then \
> you can not disable IXON. There is waiting for empty buffer in kernel but sending \
> is stopped because of DC3 char. 
> If TCSADRAIN is changed to TCSANOW then it's correct.
> 
> Do you have any opinion about the situation ? Is it possible to change TCSADRAIN to \
> TCSANOW or create a new parameter of stty to change the serial line settings \
> immediately ? 
> Thanks,
> Tomas
> 
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic