Home
last modified time | relevance | path

Searched hist:f6443742a6e383a4fec63a005aa3e50fa1848b1c (Results 1 – 2 of 2) sorted by relevance

/openbmc/phosphor-virtual-sensor/
H A Dvirtual_sensor_config.jsondiff f6443742a6e383a4fec63a005aa3e50fa1848b1c Fri Apr 09 03:47:36 CDT 2021 Harvey Wu <Harvey.Wu@quantatw.com> Add MaxValue/MinValue setting in config

- Adding MaxValue, MinValue setting in json config file,
so sel-logger could show correct sensor value on journal log
if user set MaxValue, MinValue in config.

Tested:
- set MaxValue: 127, MinValue: -128

- modified virtual sensor formula to let trigger CriticalHigh

- trigger threshold and see journal log and sel log
Jan 01 00:48:29 gbs sel-logger[435]: i2cool_0 sensor crossed a warning high threshold going high. Reading=57.000000 Threshold=35.000000.
Jan 01 00:48:29 gbs sel-logger[435]: i2cool_0 sensor crossed a critical high threshold going high. Reading=57.000000 Threshold=35.000000.

1 | Pre-Init |0000002909| Temperature i2cool_0 | Upper Critical going high | Asserted | Reading 57 > Threshold 35 degrees C

Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com>
Change-Id: I6d908fc206ef9c50316df606f71f47316ae6f9cf
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
H A DvirtualSensor.cppdiff f6443742a6e383a4fec63a005aa3e50fa1848b1c Fri Apr 09 03:47:36 CDT 2021 Harvey Wu <Harvey.Wu@quantatw.com> Add MaxValue/MinValue setting in config

- Adding MaxValue, MinValue setting in json config file,
so sel-logger could show correct sensor value on journal log
if user set MaxValue, MinValue in config.

Tested:
- set MaxValue: 127, MinValue: -128

- modified virtual sensor formula to let trigger CriticalHigh

- trigger threshold and see journal log and sel log
Jan 01 00:48:29 gbs sel-logger[435]: i2cool_0 sensor crossed a warning high threshold going high. Reading=57.000000 Threshold=35.000000.
Jan 01 00:48:29 gbs sel-logger[435]: i2cool_0 sensor crossed a critical high threshold going high. Reading=57.000000 Threshold=35.000000.

1 | Pre-Init |0000002909| Temperature i2cool_0 | Upper Critical going high | Asserted | Reading 57 > Threshold 35 degrees C

Signed-off-by: Harvey Wu <Harvey.Wu@quantatw.com>
Change-Id: I6d908fc206ef9c50316df606f71f47316ae6f9cf
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>