On Sat, Mar 19, 2011 at 07:49:03PM +0100, Pascal Baerten wrote: > Marc, > > The 1-wire protocol has an unique discovery protocol where every slave > participate to enumeration sequence initiated by the master. this is the > search > algorithm <http://www.maxim-ic.com/app-notes/index.mvp/id/187> > A conditional search utilize the same method to discover only alarmed > devices. When le conditional search command is issued by the master, every > devices on the bus receive it but only thoses with alarm condition > participate. The participating devices are shown in the alarm directory. Got it, and I take it owfs automatically does 'alarmed only' searches on its own on 1sec interval or somesuch.
> You then simply get directory list of alarm folder; if devices are shown > there you know that some condition are met for those and you read their > input state. > > if you configure the slaves to trigger the alarm only on latch bit (instead > of sensed) you ensure that when accessing the device to reset the latch, you > neutralize the alarm condition until new pio change occurs. I found the set_alarm property in the docs for DS2408, but I'm a bit confused as to how you read alarms in owfs. There is no alarm subdir in /owfs or /owfs/uncached/ I do have a hub however, and I see alarm under /owfs/1F.F05005000000/aux/ for instance, but most of my devices are listed in there too. Does that mean that alarm is somehow set for all my DS18[SB]20s, DS2408, but interestingly not DS2438 and DS2760. set_alarm in my DS2408 currently says '0', so I'm not sure why it shows up in the alarm subdir. I'll have to look closer to see what's up. Thanks for pointing me in the right direction. Marc -- "A mouse is a device used to point at the xterm you want to type in" - A.S.R. Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking Home page: http://marc.merlins.org/ ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers