All of lore.kernel.org
 help / color / mirror / Atom feed
* Comments on Sensor design.
@ 2016-10-31 21:08 Patrick Williams
  2016-11-01 14:10 ` Brad Bishop
  2016-11-02  4:58 ` Rick Altherr
  0 siblings, 2 replies; 9+ messages in thread
From: Patrick Williams @ 2016-10-31 21:08 UTC (permalink / raw)
  To: OpenBMC Maillist

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

There was a request for us to start on the openbmc interfaces for
Sensors in the near future.  Before we get started on it I wanted to
solicit feedback on two divergent approaches.

Before I start, keep in mind that any proposals for DBus designs will
show up here:
    https://gerrit.openbmc-project.xyz/#/q/project:openbmc/phosphor-dbus-interfaces+status:open

The two divergent approaches are:

    1. Have a single interface for all sensor readings.  Example:
            Interface xyz.openbmc_project.Sensor
                Properties:
                     - Value (integer)
                     - Unit (string [enumeration])
                     - Scale (integer, n where real_value = value*10^n)

    2. Have unique interfaces for different kinds of sensor readings.
            Interface xyz.openbmc_project.Sensor.Temperature
            Interface xyz.openbmc_project.Sensor.Tach
                ( Same value and scale properties )

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'?

For some comparison with other standards, CIM had a single Sensor class
while Redfish seems to have multiple classes (Fan, Temperature) for each
type.

-- 
Patrick Williams

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-11-11  4:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2016-11-11  4:04       ` Brad Bishop
2016-11-03 13:39   ` Patrick Williams

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.