On 8/2/07, Matthias Urlichs <[EMAIL PROTECTED]> wrote:
>
> Doug Collinge:
> > Presumably, the reason you are using chaining is so that you don't have
> to
> > deal with device IDs.  So one natural way to interface a chain is to
> make a
> > "chain" directory and put the chained devices inside it, named "0", "1",
> > "2", ...  This way the order of the chain is naturally established by
> the
> > alpha ordering of the device names so that scripts and so on will
> > automatically get them in chain order, which is probably what you
> normally
> > want.
> >
> That would allow people to address the devices by position, which is not
> stable -- you insert another device near the beginning and everything
> still works -- but some time later, when the cache for the ordering
> times out, everything is mislabeled.
>
> IMHO it's better to offer a file that shows the ordering, but still
> force everybody to address devices by ID.
>

I can see the argument both ways. Part of the problem is that our filesystem
model really matched the 1-wire design -- no inherent order to the entries.

Do you think rewiring is likely/possible on the fly? Could we do both
methods? Something like:

/ -- 42.0010000
  -- 42.0020000
  -- simultaneous
     \ -- temperature
      --- voltage
      -- chain_list
  -- chain
    \ -- 0
      -- 1


Paul Alfille
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to