Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-22 Thread Vincent Danjean
On 21/03/2011 22:22, nick wrote: This interests me greatly. So with my network below, i would have to poll each alarm directory in turn. Indicated by ? Yes, because each poll means a specific 1-wire command on the hardware. Thus on each ds2409 coupler if both branches are in use (ie contain

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-22 Thread nick
My current setup checks outdoor and greenhouse temp to determine whether to turn on a 240VAC power switch to heat up (or cool down) the greenhouse. owfs polls every 15 seconds? owfs never poll on itself ! If owfs never polls itself, how does the cached directory structure get updated? Maybe

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-22 Thread Roberto Spadim
you should read the directory, or cat the value if using owfs (filesystem) to 'poll' the ow network 2011/3/22 nick n...@kiwi-hacker.net: My current setup checks outdoor and greenhouse temp to determine whether to turn on a 240VAC power switch to heat up (or cool down) the greenhouse. owfs

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-22 Thread Pascal Baerten
by itself, owfs does not actively poll the slaves. it only access the bus to get the informations queried by the client application (ls, owread, ...) 1-wire is a slow bus on which many sensors (slave) may be attached. Discovering every slaves connected and reading theirs state is a relatively long

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-22 Thread Roberto Spadim
put more master to get faster reads 2011/3/22 Pascal Baerten pascal.baer...@gmail.com: by itself, owfs does not actively poll the slaves. it only access the bus to get the informations queried by the client application (ls, owread, ...) 1-wire is a slow bus on which many sensors (slave) may be

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-21 Thread nick
This interests me greatly. So with my network below, i would have to poll each alarm directory in turn. Indicated by ? Thus on each ds2409 coupler if both branches are in use (ie contain ds1820s on them) this would need each branch's alarm directory polled, from the ow uncached directory.

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Pascal Baerten
Hi Marc, The protocol require that the master always initiate the communication. so polling is unavoidable. However the functinality you're wondering exist; you may reduce bus traffic by using alarm function: basically you configure the slave to respond to conditionnal search only when a change

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Marc MERLIN
On Sat, Mar 19, 2011 at 08:38:58AM +0100, Pascal Baerten wrote: Hi Marc, The protocol require that the master always initiate the communication. so polling is unavoidable. However the functinality you're wondering exist; you may reduce bus traffic by using alarm function: basically you

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Roberto Spadim
check ds1820 datasheet it´s a good source of information http://datasheets.maxim-ic.com/en/ds/DS18S20.pdf 2011/3/19 Marc MERLIN marc_n...@merlins.org: On Sat, Mar 19, 2011 at 08:38:58AM +0100, Pascal Baerten wrote: Hi Marc, The protocol require that the master always initiate the

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Pascal Baerten
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.

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Marc MERLIN
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

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Vincent Danjean
On 19/03/2011 20:07, Marc MERLIN wrote: 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

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Marc MERLIN
On Sat, Mar 19, 2011 at 11:59:59PM +0100, Vincent Danjean wrote: Got it, and I take it owfs automatically does 'alarmed only' searches on its own on 1sec interval or somesuch. No. owfs does nothing on its own. It does 'alarmed only' searches when you ask it to list the contents of an

Re: [Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-19 Thread Roberto Spadim
hum, it´s a good question, how ow 'hub' DS2409 and owfs DS2409 implementation works? 2011/3/19 Vincent Danjean vdanjean.p...@free.fr: On 19/03/2011 20:07, Marc MERLIN wrote: On Sat, Mar 19, 2011 at 07:49:03PM +0100, Pascal Baerten wrote: Marc, The 1-wire protocol has an unique discovery

[Owfs-developers] Quick detection of 8 channel IO input changes?

2011-03-18 Thread Marc MERLIN
I have this board: http://owfs.org/index.php?page=8-channel-i-o I know how to read the I/O status from it, but I was wondering what's the best way to get immediately notified of an input bit flip? Do I need to read the uncached tree every second and spam the 1-wire bus (probably preventing