From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1R10Sb-0000y3-D3 for mharc-grub-devel@gnu.org; Tue, 06 Sep 2011 14:33:25 -0400 Received: from eggs.gnu.org ([140.186.70.92]:42100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R10ST-0000wv-6z for grub-devel@gnu.org; Tue, 06 Sep 2011 14:33:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R10SR-0001LV-HS for grub-devel@gnu.org; Tue, 06 Sep 2011 14:33:17 -0400 Received: from mail-ey0-f171.google.com ([209.85.215.171]:53374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R10SR-0001LB-Bg for grub-devel@gnu.org; Tue, 06 Sep 2011 14:33:15 -0400 Received: by eyg24 with SMTP id 24so6894225eyg.30 for ; Tue, 06 Sep 2011 11:33:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=j7prPMIbBxdMcd/K8eeX4dqtdN4usZdMQdsuPHLhY1w=; b=HtQHzpDjOT8fR61FG/NeXWP5++o8W75SQFYQ8hSnNUmYBWpQ+kWNwH39yIyAWcC1tT 01vgai9OXJwPX6OAo8kjBBmtfiMlhISNe4txEBfyzjd/AkMN9JLnGzG81nK33iKCZ9M2 vKwPx3B7e7+AfRV0KMprXMytquCpkmxddnsL8= Received: by 10.204.131.219 with SMTP id y27mr2933495bks.115.1315333994412; Tue, 06 Sep 2011 11:33:14 -0700 (PDT) Received: from debian.x201.phnet (ip156.170.adsl.wplus.ru [195.131.170.156]) by mx.google.com with ESMTPS id k8sm1295601bku.7.2011.09.06.11.33.12 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Sep 2011 11:33:13 -0700 (PDT) Message-ID: <4E666761.3010902@gmail.com> Date: Tue, 06 Sep 2011 22:33:05 +0400 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110820 Iceowl/1.0b2 Icedove/3.1.12 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Timeout broken with serial port References: <4E54C70A.8050503@gmail.com> <20110905220526.GD15310@caffeine.csclub.uwaterloo.ca> In-Reply-To: <20110905220526.GD15310@caffeine.csclub.uwaterloo.ca> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig3960982F8A3BF4539F7F2BD8" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.171 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2011 18:33:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3960982F8A3BF4539F7F2BD8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06.09.2011 02:05, Lennart Sorensen wrote: > If the UART (not grub) interprets noise as valid data, then it will pas= s > 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. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig3960982F8A3BF4539F7F2BD8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk5mZ2EACgkQNak7dOguQglUTAD/XnYs9GxINHWs0XvG/mT/NrYj fiLFdy+qP0qdyovnPNAA/jBsM7tpe7MB48OkcdYYRv1Q1kA5pWHLLBzglx3JolK/ =INxD -----END PGP SIGNATURE----- --------------enig3960982F8A3BF4539F7F2BD8--