configurations: harma_mb: 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: I1cdb58e7baa078d89c8f60fcf9ee3cbb46b6724e
Signed-off-by: Daniel Hsu <Daniel-Hsu@quantatw.com>
diff --git a/configurations/meta/harma_mb.json b/configurations/meta/harma_mb.json
index d2a6e49..b29e7a1 100644
--- a/configurations/meta/harma_mb.json
+++ b/configurations/meta/harma_mb.json
@@ -15,12 +15,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.04,
"Name": "lower critical",
"Severity": 1,
"Value": 2.0
},
{
"Direction": "greater than",
+ "Hysteresis": 0.068,
"Name": "upper critical",
"Severity": 1,
"Value": 3.4
@@ -42,6 +44,7 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.0209,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -49,6 +52,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0231,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -56,6 +60,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0627,
"Label": "in2",
"Name": "lower critical",
"Severity": 1,
@@ -63,6 +68,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.068,
"Label": "in2",
"Name": "upper critical",
"Severity": 1,
@@ -70,6 +76,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0352,
"Label": "in3",
"Name": "lower critical",
"Severity": 1,
@@ -77,6 +84,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0368,
"Label": "in3",
"Name": "upper critical",
"Severity": 1,
@@ -84,6 +92,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "in4",
"Name": "lower critical",
"Severity": 1,
@@ -91,6 +100,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "in4",
"Name": "upper critical",
"Severity": 1,
@@ -98,6 +108,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "in5",
"Name": "lower critical",
"Severity": 1,
@@ -105,6 +116,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "in5",
"Name": "upper critical",
"Severity": 1,
@@ -137,6 +149,7 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "in0",
"Name": "lower critical",
"Severity": 1,
@@ -144,6 +157,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "in0",
"Name": "upper critical",
"Severity": 1,
@@ -151,6 +165,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.095,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -158,6 +173,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.105,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -165,6 +181,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0626,
"Label": "in2",
"Name": "lower critical",
"Severity": 1,
@@ -172,6 +189,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0692,
"Label": "in2",
"Name": "upper critical",
"Severity": 1,
@@ -179,6 +197,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0342,
"Label": "in3",
"Name": "lower critical",
"Severity": 1,
@@ -186,6 +205,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0378,
"Label": "in3",
"Name": "upper critical",
"Severity": 1,
@@ -193,6 +213,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "in4",
"Name": "lower critical",
"Severity": 1,
@@ -200,6 +221,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "in4",
"Name": "upper critical",
"Severity": 1,
@@ -207,6 +229,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0342,
"Label": "in5",
"Name": "lower critical",
"Severity": 1,
@@ -214,6 +237,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0378,
"Label": "in5",
"Name": "upper critical",
"Severity": 1,
@@ -257,6 +281,7 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -264,6 +289,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -271,6 +297,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.042,
"Label": "curr1",
"Name": "upper critical",
"Severity": 1,
@@ -278,6 +305,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.5,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -302,6 +330,7 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -309,6 +338,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -316,6 +346,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.042,
"Label": "curr1",
"Name": "upper critical",
"Severity": 1,
@@ -323,6 +354,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.5,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -346,6 +378,7 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "in1",
"Name": "lower critical",
"Severity": 1,
@@ -353,6 +386,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "in1",
"Name": "upper critical",
"Severity": 1,
@@ -360,6 +394,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.114,
"Label": "curr1",
"Name": "upper critical",
"Severity": 1,
@@ -367,6 +402,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.5,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -392,6 +428,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 1.18,
"Label": "iout1",
"Name": "upper critical",
"Severity": 1,
@@ -399,6 +436,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0209,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -406,6 +444,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0231,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
@@ -413,6 +452,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.3,
"Label": "pout1",
"Name": "upper critical",
"Severity": 1,
@@ -420,6 +460,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp1",
"Name": "lower critical",
"Severity": 1,
@@ -427,6 +468,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -457,6 +499,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 6.36,
"Label": "iout1",
"Name": "upper critical",
"Severity": 1,
@@ -464,6 +507,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 4.2,
"Label": "iout2",
"Name": "upper critical",
"Severity": 1,
@@ -471,6 +515,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0106,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -478,6 +523,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0304,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
@@ -485,6 +531,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0146,
"Label": "vout2",
"Name": "lower critical",
"Severity": 1,
@@ -492,6 +539,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0244,
"Label": "vout2",
"Name": "upper critical",
"Severity": 1,
@@ -499,6 +547,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 3.5,
"Label": "pout1",
"Name": "upper critical",
"Severity": 1,
@@ -506,6 +555,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "pout2",
"Name": "upper critical",
"Severity": 1,
@@ -513,6 +563,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp1",
"Name": "lower critical",
"Severity": 1,
@@ -520,6 +571,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -527,6 +579,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp2",
"Name": "lower critical",
"Severity": 1,
@@ -534,6 +587,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "temp2",
"Name": "upper critical",
"Severity": 1,
@@ -568,6 +622,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 6.36,
"Label": "iout1",
"Name": "upper critical",
"Severity": 1,
@@ -575,6 +630,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.66,
"Label": "iout2",
"Name": "upper critical",
"Severity": 1,
@@ -582,6 +638,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0106,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -589,6 +646,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0304,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
@@ -596,6 +654,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.0176,
"Label": "vout2",
"Name": "lower critical",
"Severity": 1,
@@ -603,6 +662,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.0244,
"Label": "vout2",
"Name": "upper critical",
"Severity": 1,
@@ -610,6 +670,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 3.5,
"Label": "pout1",
"Name": "upper critical",
"Severity": 1,
@@ -617,6 +678,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.4,
"Label": "pout2",
"Name": "upper critical",
"Severity": 1,
@@ -624,6 +686,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp1",
"Name": "lower critical",
"Severity": 1,
@@ -631,6 +694,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -638,6 +702,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp2",
"Name": "lower critical",
"Severity": 1,
@@ -645,6 +710,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 2.1,
"Label": "temp2",
"Name": "upper critical",
"Severity": 1,
@@ -675,6 +741,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 1.44,
"Label": "iout1",
"Name": "upper critical",
"Severity": 1,
@@ -682,6 +749,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "vin",
"Name": "lower critical",
"Severity": 1,
@@ -689,6 +757,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "vin",
"Name": "upper critical",
"Severity": 1,
@@ -696,6 +765,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.216,
"Label": "vout1",
"Name": "lower critical",
"Severity": 1,
@@ -703,6 +773,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.264,
"Label": "vout1",
"Name": "upper critical",
"Severity": 1,
@@ -710,6 +781,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 19.0,
"Label": "pin",
"Name": "upper critical",
"Severity": 1,
@@ -717,6 +789,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -738,12 +811,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.1,
"Name": "lower critical",
"Severity": 1,
"Value": 5.0
},
{
"Direction": "greater than",
+ "Hysteresis": 1.4,
"Name": "upper critical",
"Severity": 1,
"Value": 70.0
@@ -759,12 +834,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.1,
"Name": "lower critical",
"Severity": 1,
"Value": 5.0
},
{
"Direction": "greater than",
+ "Hysteresis": 1.4,
"Name": "upper critical",
"Severity": 1,
"Value": 70.0
@@ -780,12 +857,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Name": "lower critical",
"Severity": 1,
"Value": -1.0
},
{
"Direction": "greater than",
+ "Hysteresis": 2.0,
"Name": "upper critical",
"Severity": 1,
"Value": 100.0
@@ -801,12 +880,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Name": "lower critical",
"Severity": 1,
"Value": -1.0
},
{
"Direction": "greater than",
+ "Hysteresis": 2.0,
"Name": "upper critical",
"Severity": 1,
"Value": 100.0
@@ -841,6 +922,7 @@
"Thresholds": [
{
"Direction": "greater than",
+ "Hysteresis": 12.8,
"Label": "power1",
"Name": "upper critical",
"Severity": 1,
@@ -848,6 +930,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power2",
"Name": "upper critical",
"Severity": 1,
@@ -855,6 +938,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power3",
"Name": "upper critical",
"Severity": 1,
@@ -862,6 +946,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power4",
"Name": "upper critical",
"Severity": 1,
@@ -869,6 +954,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power5",
"Name": "upper critical",
"Severity": 1,
@@ -876,6 +962,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power6",
"Name": "upper critical",
"Severity": 1,
@@ -883,6 +970,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power7",
"Name": "upper critical",
"Severity": 1,
@@ -890,6 +978,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power8",
"Name": "upper critical",
"Severity": 1,
@@ -897,6 +986,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 0.28,
"Label": "power9",
"Name": "upper critical",
"Severity": 1,
@@ -904,6 +994,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp1",
"Name": "lower critical",
"Severity": 1,
@@ -911,6 +1002,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp1",
"Name": "upper critical",
"Severity": 1,
@@ -918,6 +1010,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp2",
"Name": "lower critical",
"Severity": 1,
@@ -925,6 +1018,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp2",
"Name": "upper critical",
"Severity": 1,
@@ -932,6 +1026,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp3",
"Name": "lower critical",
"Severity": 1,
@@ -939,6 +1034,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp3",
"Name": "upper critical",
"Severity": 1,
@@ -946,6 +1042,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp4",
"Name": "lower critical",
"Severity": 1,
@@ -953,6 +1050,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp4",
"Name": "upper critical",
"Severity": 1,
@@ -960,6 +1058,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp5",
"Name": "lower critical",
"Severity": 1,
@@ -967,6 +1066,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp5",
"Name": "upper critical",
"Severity": 1,
@@ -974,6 +1074,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp6",
"Name": "lower critical",
"Severity": 1,
@@ -981,6 +1082,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp6",
"Name": "upper critical",
"Severity": 1,
@@ -988,6 +1090,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp7",
"Name": "lower critical",
"Severity": 1,
@@ -995,6 +1098,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp7",
"Name": "upper critical",
"Severity": 1,
@@ -1002,6 +1106,7 @@
},
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Label": "temp8",
"Name": "lower critical",
"Severity": 1,
@@ -1009,6 +1114,7 @@
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Label": "temp8",
"Name": "upper critical",
"Severity": 1,
@@ -1042,12 +1148,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.02,
"Name": "lower critical",
"Severity": 1,
"Value": -1.0
},
{
"Direction": "greater than",
+ "Hysteresis": 1.9,
"Name": "upper critical",
"Severity": 1,
"Value": 95.0
@@ -1062,12 +1170,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.1,
"Name": "lower critical",
"Severity": 1,
"Value": 5.0
},
{
"Direction": "greater than",
+ "Hysteresis": 1.6,
"Name": "upper critical",
"Severity": 1,
"Value": 80.0
@@ -1082,12 +1192,14 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.1,
"Name": "lower critical",
"Severity": 1,
"Value": 5.0
},
{
"Direction": "greater than",
+ "Hysteresis": 1.2,
"Name": "upper critical",
"Severity": 1,
"Value": 60.0