All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Williams <patrick@stwcx.xyz>
To: Brad Bishop <bradleyb@fuzziesquirrel.com>
Cc: Rick Altherr <raltherr@google.com>,
	OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: Comments on Sensor design.
Date: Sun, 6 Nov 2016 21:54:12 -0600	[thread overview]
Message-ID: <20161107035412.GC15757@heinlein.lan> (raw)
In-Reply-To: <53C4D16D-D216-4C12-B760-5328AF3B8685@fuzziesquirrel.com>

[-- Attachment #1: Type: text/plain, Size: 1360 bytes --]

On Wed, Nov 02, 2016 at 10:12:47AM -0400, Brad Bishop wrote:
> 
> > On Nov 2, 2016, at 12:58 AM, Rick Altherr <raltherr@google.com> wrote:
> The difference really is just with signal match rules and I don’t really see that one approach over the other
> provides any more or less flexibility.  If you want signals for an entire class of sensors, you just use
> the pathnamespace match rule.

As long as you feel we have this covered with a mapper call or a signal
filter I am fine.  I was concerned with, especially, the number of calls
the REST server would need to do in order to subscribe to all the
sensors.

> > In both cases the dbus path could contain the 'type':
> >     /xyz/openbmc_project/sensors/temperature/ambient
> >     /xyz/openbmc_project/sensors/fan_tach/fan0
> > 
> > The question is essentially should the "Unit" property be used to
> > resolve the 'type' or should we have distinct interfaces for each
> > 'type’?
> 
> Patrick - after reading this again I don’t understand.  Why would you not just use
> the path namespace to resolve the type?

I think this was making leap that we would require / document paths as
well.  Maybe that is the right thing to do but we don't have a currently
defined mechanism for it.  I'm especially not happy with 'fan_tach' as a
path match string.

-- 
Patrick Williams

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  reply	other threads:[~2016-11-07  3:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-31 21:08 Comments on Sensor design Patrick Williams
2016-11-01 14:10 ` Brad Bishop
2016-11-01 19:24   ` Patrick Williams
2016-11-01 21:54     ` Xo Wang
2016-11-02  4:58 ` Rick Altherr
2016-11-02 14:12   ` Brad Bishop
2016-11-07  3:54     ` Patrick Williams [this message]
2016-11-11  4:04       ` Brad Bishop
2016-11-03 13:39   ` Patrick Williams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161107035412.GC15757@heinlein.lan \
    --to=patrick@stwcx.xyz \
    --cc=bradleyb@fuzziesquirrel.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=raltherr@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.