From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,779e26feb708bd00 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news4.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: embedded programming for unreliable hardware References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 15 Feb 2006 05:54:27 GMT NNTP-Posting-Host: 67.150.78.30 X-Complaints-To: abuse@earthlink.net X-Trace: newsread3.news.pas.earthlink.net 1139982867 67.150.78.30 (Tue, 14 Feb 2006 21:54:27 PST) NNTP-Posting-Date: Tue, 14 Feb 2006 21:54:27 PST Xref: g2news1.google.com comp.lang.ada:2900 Date: 2006-02-15T05:54:27+00:00 List-Id: 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