From: Patrick Williams <patrick@stwcx.xyz>
To: Maxim Sloyko <maxims@google.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>,
Vijay Khemka <vijaykhemka@fb.com>
Subject: Re: Board Sensor Calibration
Date: Thu, 20 Aug 2020 11:15:32 -0500 [thread overview]
Message-ID: <20200820161532.GA3532@heinlein> (raw)
In-Reply-To: <CAFR_W8pG0gLhS5Ycxdhvx=1xdm7J2mCP0VfiHyuZOofB3gWHhw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1412 bytes --]
On Wed, Aug 19, 2020 at 10:39:15AM -0700, Maxim Sloyko wrote:
> Hi OpenBMC!
>
> We would like to have a value reported by a certain sensor changed
> according to our calibration results. This is a temperature sensor and the
> calibration has nothing to do with the sensor itself -- so no need to
> change the driver or anything -- but with a sensor placement on the board.
> Basically we want to infer the temperature at a different location by
> calibrating the sensor.
>
> Are there any tools in OpenBMC that would allow us to add the calibration
> curve to, say, phosphor-hwmon and have it report the value different from
> the one reported by the underlying sensor? Did anybody else have to deal
> with something like this and what was your solution? Do people more
> familiar with sensor architecture have any recommendations on how best to
> handle this?
>
> Thank you.
>
> --
> -MS
There is work being implemented now under phosphor-virtual-sensor[1]
which is intended to cover exactly this case (among others). We have a
similar situation where sensors need to be calibrated based on values
from one or more other sensors. An example might be a voltage regulator
which reads high as it gets hotter. phosphor-virtual-sensor will allow
you to forumlate a secondary sensor (the "virtual" sensor) using math
applied to one or more real sensors.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-08-20 16:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-19 17:39 Board Sensor Calibration Maxim Sloyko
2020-08-20 16:15 ` Patrick Williams [this message]
2020-08-20 16:17 ` Patrick Williams
2020-08-20 16:23 ` Ed Tanous
2020-08-20 16:54 ` Maxim Sloyko
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=20200820161532.GA3532@heinlein \
--to=patrick@stwcx.xyz \
--cc=maxims@google.com \
--cc=openbmc@lists.ozlabs.org \
--cc=vijaykhemka@fb.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.