[problem] frequency log causes /dev/ttyS0 console freeze until any key input
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[problem] frequency log causes /dev/ttyS0 console freeze until any key input
my board uses uclinux -2.6.18 , and I have servals shell scripts which executes every 5mins.
If scripts print amount log, it randomly causes console (/dev/ttyS0) freeze, then scripts also can not finish (also hang).
If I press any key, the console will print the amount queue message and scripts goes continus
I had check dmesg, there is no any message about that~~
Is any thing wrong?
Wild guess...
Your terminal is issuing 'XOFF', causing the sender to pause. Some implementations of XON/XOFF are not strict about the use of XON to resume the transmission, hence your 'any key' is acceptable as XON. From the output of stty, it does appear that your port is configured to use XON/XOFF flow control. I see also, that the report of received characters is 0, which I think results because the bytes interpreted as flow-control are swallowed by the driver, and don't appear in the statistics.
--- rod.
stty can recevie (print out to terminal screen) a lot of message without any resume signal.
Is it in waiting status?
And if I do not plug the console line, it stills happen randomly.
Do you mean that I need change the flow control of ttyS0 to XON/XOFF?
Thanks.
stty can recevie (print out to terminal screen) a lot of message without any resume signal.
This seems to contradict your original post. Your terminology is a bit confusing (receive <==> print out). You need to clearly distinguish which tty you are referring to in all cases.
Your embedded host uses a serial console (tty), and external to that, you have some linux host acting as a terminal (using a tty). I think we may be each talking about two different hosts/ports.
You seem to have missed my point. Your board that is running uclinux uses a serial console. The serial console is connected to a serial terminal. So, there are two serial ports involved. You aren't distinguishing between them, and the wording you use doesn't disambiguate between them. What kind of terminal are you using to monitor the serial console of your embedded Linux board? The problem could originate at either end or both ends of the system. From your original description, I still believe my first reply is a reasonable analysis of the problem.
--- rod.
Thanks for your kind reply.
I use 'console=ttyS0,115200' in bootloader.
If the information is wrong, could you remind how to get ?
Thank you very much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.