comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R. Carter" <spam@spam.com>
Subject: Re: embedded programming for unreliable hardware
Date: Wed, 15 Feb 2006 05:54:27 GMT
Date: 2006-02-15T05:54:27+00:00	[thread overview]
Message-ID: <nmzIf.1839$JR6.201@newsread3.news.pas.earthlink.net> (raw)
In-Reply-To: <DoOdnX3Pqo0Dzm_eRVn-uQ@comcast.com>

tmoran@acm.org wrote:

> Can someone recommend a book or something on techniques for embedded
> control when the sensors and activators are not terribly reliable?
> I've been playing with X10 home stuff and it seems about 95% reliable.

I can't refer you to any references, but this specific case seems pretty clear. 
I presume that with X10 an occasional error is acceptable. If it's > 90% 
reliable, then reading a sensor 3 times should give at least 2 that agree; that 
would be the correct value. 2 out of 3 won't agree 0.25% (at 95%) of the time, 
assuming errors are independent; you can probably see how to deal with that rare 
case if you can't ignore it.

Things get a little more interesting with binary sensors. 2 out of 3 will always 
agree, and those 2 will be wrong 0.25% of the time.

For actuators, it depends on whether you command to an absolute value or not. If 
you command to an absolute value ("turn on") then issuing the command twice 
should ensure that it's performed. If you command a relative change ("toggle 
power") then you'd need to issue the command, check the result through a sensor, 
and reissue if it didn't take. Issuing twice will work 99.75% of the time.

-- 
Jeff Carter
"Monsieur Arthur King, who has the brain of a duck, you know."
Monty Python & the Holy Grail
09



  reply	other threads:[~2006-02-15  5:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-14 22:03 embedded programming for unreliable hardware tmoran
2006-02-15  5:54 ` Jeffrey R. Carter [this message]
2006-02-15  9:17   ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox