From: Andrew Rodland <arodland@noln.com>
To: "Albert D. Cahalan" <acahalan@cs.uml.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Speaker twiddling [was: Re: Panicking in morse code]
Date: Sat, 27 Jul 2002 01:57:03 -0400 [thread overview]
Message-ID: <20020727015703.21f47a37.arodland@noln.com> (raw)
In-Reply-To: <200207270526.g6R5Qw942780@saturn.cs.uml.edu>
On Sat, 27 Jul 2002 01:26:58 -0400 (EDT)
"Albert D. Cahalan" <acahalan@cs.uml.edu> wrote:
> >> The vast majority of us would need a microphone and
> >> translator program anyway, so a computer-friendly
> >> encoding makes more sense. Modems don't do morse.
> >
> > "asciimorse" would be possible, just going through the byte and
> > doing - for 1 and . for 0... as a matter of fact, it would probably
> > only take about two lines of code to get that to be an option, too.
> > Does everyone else think that that's really the situation?
> > (Personally, I can't do morse in my head. But neither do I have any
> > oops-decoding hardware. >:)
> >
> > I'll probably code it anyway. It should allow for a faster
> > transmission rate, anyway, since you don't have to accomodate
> > humans. (Anyone who can decode "asciimorse" in their head is a REAL
> > freak. Er. no offense.)
>
> Hopefully reasonable idea:
>
> Start each transmission with 900 HZ for 80 ms.
> Start each line with 1300 HZ for 40 ms.
> Each bit is 10 ms at 1600 HZ or 1900 HZ.
> Transmit the 7 low bits, plus a parity bit.
> End each line with a '\0' and a checksum byte.
> End each transmission with silence for 80 ms.
>
Reasonable -- it would still fit within the code framework I've got
right now, and within the way that panic_blink() works in general.
Do we use odd-parity, so that we can tell the \0 before the checksum
from a \0 in the input stream?
Does a crappy, battery-powered micro tape recorder have a chance of
recording this accurately?
> That ought to survive telephone transmission.
> If I'm lucky, it might survive MP3 encoding.
> It's about 120 WPM, and doesn't slow down on
> non-English text like an oops report.
Anyway, I like it in general. Could you write the decoder software, or
do we have any other volunteers on the list to do it? I'm not sure that
my /dev/dsp programming is up to snuff. (Actually, it'd probably be
easier operating on a .wav/.au unless you want real-time.)
Some final notes/questions:
* 10ms is just one jiffie on most arches in 2.4. That means that we
won't get perfect timing. (I don't think I want to switch to anything
_other_ than jiffies when we're panicked, but I don't know anything
about any of the higher-res stuff. Keep in mind that we get called
inside an infinite loop, and that it's not so easy to change that)
* Might anything from userland want access to this as a device? This
sounds nice at first blush, but using the same code to work well both
as a 'real' driver and for panic situation doesn't seem too easy.
--hobbs
next prev parent reply other threads:[~2002-07-27 5:54 UTC|newest]
Thread overview: 59+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-19 5:13 [PATCH -ac] Panicking in morse code Andrew Rodland
2002-07-19 5:29 ` William Lee Irwin III
2002-07-19 16:36 ` Thorsten Kranzkowski
2002-07-19 17:00 ` Andrew Rodland
2002-07-19 17:27 ` Eli Carter
2002-07-19 17:32 ` Andrew Rodland
2002-07-19 23:02 ` [PATCH -ac] Panicking in morse code, v2 Andrew Rodland
2002-07-20 10:58 ` Daniel Phillips
2002-07-20 11:19 ` Thunder from the hill
2002-07-20 13:22 ` Ville Herva
2002-07-20 14:18 ` Daniel Phillips
2002-07-20 14:55 ` Tomas Szepe
2002-07-20 16:05 ` Daniel Phillips
2002-07-20 19:51 ` Thunder from the hill
2002-07-20 0:35 ` [PATCH -ac] Panicking in morse code Alan Cox
2002-07-20 0:39 ` Andrew Rodland
2002-07-20 0:48 ` Thunder from the hill
2002-07-25 12:51 ` Bill Davidsen
2002-07-26 3:43 ` Daniel Phillips
2002-07-26 4:47 ` Daniel Phillips
2002-07-26 4:52 ` jdow
2002-07-26 5:13 ` Daniel Phillips
2002-07-26 13:50 ` Bill Davidsen
2002-07-26 13:38 ` Bill Davidsen
2002-07-26 14:39 ` Richard B. Johnson
2002-07-26 20:09 ` Bill Davidsen
2002-07-26 23:25 ` Jens Schmidt
2002-07-27 2:05 ` Albert D. Cahalan
2002-07-27 4:00 ` Andrew Rodland
[not found] ` <200207270526.g6R5Qw942780@saturn.cs.uml.edu>
2002-07-27 5:57 ` Andrew Rodland [this message]
2002-07-27 9:46 ` Speaker twiddling [was: Re: Panicking in morse code] Daniel Phillips
2002-07-27 12:57 ` David D. Hagood
2002-07-27 15:45 ` Andrew Rodland
2002-07-29 17:47 ` Pavel Machek
2002-07-29 22:02 ` Ray Friess
2002-07-29 17:49 ` Pavel Machek
2002-07-29 20:35 ` Albert D. Cahalan
2002-07-29 21:08 ` Pavel Machek
2002-07-27 18:56 ` Albert D. Cahalan
2002-07-27 19:44 ` Ville Herva
2002-07-27 22:40 ` Alan Cox
2002-07-27 21:35 ` Ville Herva
2002-07-31 15:20 ` Thunder from the hill
2002-07-27 21:40 ` Ryan Anderson
2002-07-28 10:26 ` Lars Magne Ingebrigtsen
2002-07-29 20:03 ` Albert D. Cahalan
2002-08-13 17:20 ` Mark H. Wood
2002-07-27 4:04 ` [PATCH -ac] Panicking in morse code Andrew Rodland
2002-07-29 11:50 ` Bill Davidsen
2002-07-29 12:34 ` Richard B. Johnson
2002-07-29 19:57 ` Albert D. Cahalan
2002-07-31 17:54 ` Bill Davidsen
2002-07-20 21:32 ` [PATCH -ac] Panicking in morse code v3 Andrew Rodland
2002-07-21 8:49 ` Brad Hards
2002-07-21 9:08 ` Russell King
2002-07-21 10:50 ` Zwane Mwaikambo
2002-07-21 15:43 ` Daniel Phillips
2002-07-22 17:18 ` Andrew Rodland
[not found] <04a801c235b9$03f699f0$1125a8c0@wednesday>
2002-07-28 0:43 ` Speaker twiddling [was: Re: Panicking in morse code] Albert D. Cahalan
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=20020727015703.21f47a37.arodland@noln.com \
--to=arodland@noln.com \
--cc=acahalan@cs.uml.edu \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome