From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Timeout broken with serial port
Date: Tue, 06 Sep 2011 22:33:05 +0400 [thread overview]
Message-ID: <4E666761.3010902@gmail.com> (raw)
In-Reply-To: <20110905220526.GD15310@caffeine.csclub.uwaterloo.ca>
[-- Attachment #1: Type: text/plain, Size: 716 bytes --]
On 06.09.2011 02:05, Lennart Sorensen wrote:
> If the UART (not grub) interprets noise as valid data, then it will pass
> that to grub which legitimately sees that as keypresses.
I agree with both sides of dispute. It's a hardware bug but GRUB has
reliability and unattended boot as one of its goals. And this noise can
be detected. Noise is likely to have two neighbouring bits equal (due to
noise not being on the same frequency as serial speed) and unlikely to
produce a lot of valid characters. I propose to buffer serial input for
200/speed seconds and after this period do a small analysis and in case
of bad data discard the whole buffer.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
prev parent reply other threads:[~2011-09-06 18:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-24 9:16 Timeout broken with serial port Michal Suchanek
2011-08-24 9:40 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-09-05 19:40 ` Michal Suchanek
2011-09-05 20:51 ` Aleš Nesrsta
2011-09-06 6:55 ` Michal Suchanek
2011-09-06 18:07 ` starous
2011-09-06 18:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-09-06 20:36 ` richardvoigt
2011-09-05 22:05 ` Lennart Sorensen
2011-09-06 18:33 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E666761.3010902@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.