configuration: ventura: add hysteresis
The hysteresis value is set to 2% of the trigger threshold
to ensure more precise triggering of assert and deassert for
sensors like a 12V sensor. For example, with normal readings
and thresholds at ±10% (10.8V to 13.2V), the default value of
2.55 is too large for this range.
Change-Id: I75df51a2a5ae1a36878787226e6ba451c87b02a4
Signed-off-by: Jason Hsu <jason-hsu@quantatw.com>
diff --git a/configurations/meta/ventura_fanboard_adc_max.json b/configurations/meta/ventura_fanboard_adc_max.json
index 2e49899..b46cc8b 100644
--- a/configurations/meta/ventura_fanboard_adc_max.json
+++ b/configurations/meta/ventura_fanboard_adc_max.json
@@ -18,12 +18,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
},
{
"Direction": "less than",
+ "Hysteresis": 39.2,
"Name": "lower critical",
"Severity": 1,
"Value": 1960
@@ -48,6 +50,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
@@ -78,6 +81,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
@@ -108,12 +112,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
},
{
"Direction": "less than",
+ "Hysteresis": 51.0,
"Name": "lower critical",
"Severity": 1,
"Value": 2550
@@ -134,6 +140,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -141,6 +148,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in0",
"Name": "lower critical",
"Severity": 1,
@@ -148,6 +156,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "in2",
"Name": "upper critical",
"Severity": 1,
@@ -155,6 +164,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in2",
"Name": "lower critical",
"Severity": 1,
@@ -211,12 +221,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
},
{
"Direction": "less than",
+ "Hysteresis": 39.2,
"Name": "lower critical",
"Severity": 1,
"Value": 1960
@@ -241,12 +253,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
},
{
"Direction": "less than",
+ "Hysteresis": 51.0,
"Name": "lower critical",
"Severity": 1,
"Value": 2550
@@ -271,12 +285,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
},
{
"Direction": "less than",
+ "Hysteresis": 39.2,
"Name": "lower critical",
"Severity": 1,
"Value": 1960
@@ -301,12 +317,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
},
{
"Direction": "less than",
+ "Hysteresis": 51.0,
"Name": "lower critical",
"Severity": 1,
"Value": 2550
@@ -327,6 +345,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -334,6 +353,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in0",
"Name": "lower critical",
"Severity": 1,
@@ -341,6 +361,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "in2",
"Name": "upper critical",
"Severity": 1,
@@ -348,6 +369,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in2",
"Name": "lower critical",
"Severity": 1,
diff --git a/configurations/meta/ventura_fanboard_adc_tic.json b/configurations/meta/ventura_fanboard_adc_tic.json
index c19ef96..a8b820f 100644
--- a/configurations/meta/ventura_fanboard_adc_tic.json
+++ b/configurations/meta/ventura_fanboard_adc_tic.json
@@ -14,6 +14,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 2.72,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -21,6 +22,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in0",
"Name": "lower critical",
"Severity": 1,
@@ -28,6 +30,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.72,
"Label": "in2",
"Name": "upper critical",
"Severity": 1,
@@ -35,6 +38,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in2",
"Name": "lower critical",
"Severity": 1,
@@ -70,12 +74,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
},
{
"Direction": "less than",
+ "Hysteresis": 39.2,
"Name": "lower critical",
"Severity": 1,
"Value": 1960
@@ -100,12 +106,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
},
{
"Direction": "less than",
+ "Hysteresis": 51,
"Name": "lower critical",
"Severity": 1,
"Value": 2550
@@ -130,12 +138,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
},
{
"Direction": "less than",
+ "Hysteresis": 39.2,
"Name": "lower critical",
"Severity": 1,
"Value": 1960
@@ -160,12 +170,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
},
{
"Direction": "less than",
+ "Hysteresis": 51,
"Name": "lower critical",
"Severity": 1,
"Value": 2550
@@ -207,6 +219,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -214,6 +227,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in0",
"Name": "lower critical",
"Severity": 1,
@@ -221,6 +235,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "in2",
"Name": "upper critical",
"Severity": 1,
@@ -228,6 +243,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 2.1,
"Label": "in2",
"Name": "lower critical",
"Severity": 1,
@@ -263,12 +279,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
},
{
"Direction": "less than",
+ "Hysteresis": 39.2,
"Name": "lower critical",
"Severity": 1,
"Value": 1960
@@ -293,12 +311,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
},
{
"Direction": "less than",
+ "Hysteresis": 51.0,
"Name": "lower critical",
"Severity": 1,
"Value": 2550
@@ -323,12 +343,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 660.0,
"Name": "upper critical",
"Severity": 1,
"Value": 33000
},
{
"Direction": "less than",
+ "Hysteresis": 39.2,
"Name": "lower critical",
"Severity": 1,
"Value": 1960
@@ -353,12 +375,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 726.0,
"Name": "upper critical",
"Severity": 1,
"Value": 36300
},
{
"Direction": "less than",
+ "Hysteresis": 51.0,
"Name": "lower critical",
"Severity": 1,
"Value": 2550
diff --git a/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json b/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json
index 2d24e83..c77775e 100644
--- a/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json
+++ b/configurations/meta/ventura_rmc_hsc_ltc_fsc_max_p24vsen_ina_gndsen_ina_p12vbrick_delta.json
@@ -12,6 +12,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.504,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -19,6 +20,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.456,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -26,6 +28,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.88,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -54,6 +57,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.504,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -61,6 +65,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.456,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -68,6 +73,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 5.28,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -94,6 +100,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 4.0,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -116,6 +123,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 4.0,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -142,6 +150,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 2.0,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -149,6 +158,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.12,
"Label": "vin",
"Name": "upper critical",
"Severity": 1,
@@ -156,6 +166,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.92,
"Label": "vin",
"Name": "lower critical",
"Severity": 1,
@@ -163,6 +174,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.12,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
@@ -170,6 +182,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.92,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -177,6 +190,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 11.6,
"Label": "pin",
"Name": "upper critical",
"Severity": 1,
@@ -203,6 +217,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 1.0,
"Name": "upper critical",
"Severity": 1,
"Value": 50
@@ -223,6 +238,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -230,6 +246,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.92,
"Label": "vin",
"Name": "lower critical",
"Severity": 1,
@@ -237,6 +254,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.12,
"Label": "vin",
"Name": "upper critical",
"Severity": 1,
@@ -244,6 +262,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.21,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -251,6 +270,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
diff --git a/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json b/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json
index 4eda3f4..fc25671 100644
--- a/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json
+++ b/configurations/meta/ventura_rmc_hsc_xdp_fsc_nct_p24vsen_isl_gndsen_isl_p12vbrick_flex.json
@@ -12,6 +12,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.504,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -19,6 +20,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.456,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -26,6 +28,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.88,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -54,6 +57,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.504,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -61,6 +65,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.456,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -68,6 +73,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 5.28,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -94,6 +100,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 4.0,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -116,6 +123,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 4.0,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -135,6 +143,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 1.0,
"Name": "upper critical",
"Severity": 1,
"Value": 50
@@ -156,6 +165,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 2.0,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -163,6 +173,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.12,
"Label": "vin",
"Name": "upper critical",
"Severity": 1,
@@ -170,6 +181,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.92,
"Label": "vin",
"Name": "lower critical",
"Severity": 1,
@@ -177,6 +189,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.12,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
@@ -184,6 +197,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.92,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -191,6 +205,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 11.6,
"Label": "pin",
"Name": "upper critical",
"Severity": 1,
@@ -219,6 +234,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -226,6 +242,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.92,
"Label": "vin",
"Name": "lower critical",
"Severity": 1,
@@ -233,6 +250,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.12,
"Label": "vin",
"Name": "upper critical",
"Severity": 1,
@@ -240,6 +258,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.21,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -247,6 +266,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.272,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
diff --git a/configurations/meta/ventura_scm.json b/configurations/meta/ventura_scm.json
index e43111a..2a510c9 100644
--- a/configurations/meta/ventura_scm.json
+++ b/configurations/meta/ventura_scm.json
@@ -7,12 +7,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Name": "upper critical",
"Severity": 1,
"Value": 13.2
},
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Name": "lower critical",
"Severity": 1,
"Value": 10.8
@@ -27,12 +29,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.105,
"Name": "upper critical",
"Severity": 1,
"Value": 5.25
},
{
"Direction": "less than",
+ "Hysteresis": 0.095,
"Name": "lower critical",
"Severity": 1,
"Value": 4.75
@@ -47,12 +51,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.072,
"Name": "upper critical",
"Severity": 1,
"Value": 3.6
},
{
"Direction": "less than",
+ "Hysteresis": 0.06,
"Name": "lower critical",
"Severity": 1,
"Value": 3.0
@@ -67,12 +73,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.0525,
"Name": "upper critical",
"Severity": 1,
"Value": 2.625
},
{
"Direction": "less than",
+ "Hysteresis": 0.0475,
"Name": "lower critical",
"Severity": 1,
"Value": 2.375
@@ -87,12 +95,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.0396,
"Name": "upper critical",
"Severity": 1,
"Value": 1.98
},
{
"Direction": "less than",
+ "Hysteresis": 0.0324,
"Name": "lower critical",
"Severity": 1,
"Value": 1.62
@@ -107,12 +117,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.0396,
"Name": "upper critical",
"Severity": 1,
"Value": 3.6
},
{
"Direction": "less than",
+ "Hysteresis": 0.0324,
"Name": "lower critical",
"Severity": 1,
"Value": 1.62
@@ -127,12 +139,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.0252,
"Name": "upper critical",
"Severity": 1,
"Value": 1.26
},
{
"Direction": "less than",
+ "Hysteresis": 0.0228,
"Name": "lower critical",
"Severity": 1,
"Value": 1.14
@@ -155,12 +169,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.068,
"Name": "upper critical",
"Severity": 1,
"Value": 3.4
},
{
"Direction": "less than",
+ "Hysteresis": 0.052,
"Name": "lower critical",
"Severity": 1,
"Value": 2.6
@@ -174,12 +190,14 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.022,
"Name": "upper critical",
"Severity": 1,
"Value": 1.1
},
{
"Direction": "less than",
+ "Hysteresis": 0.018,
"Name": "lower critical",
"Severity": 1,
"Value": 0.9
@@ -204,6 +222,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 0.9,
"Name": "upper critical",
"Severity": 1,
"Value": 45