dbus-sensors icon indicating copy to clipboard operation
dbus-sensors copied to clipboard

ADC sensor value is "na" and TempSensor value not update

Open noman-kwai opened this issue 1 year ago • 6 comments

I added ADC and TMP75 sensors to my BaseBoard.json file just like this: "Exposes": [ { "Index": 0, "Name": "AUX3V3", "PowerState": "On", "ScaleFactor": 0.28147, "Thresholds": [ { "Direction": "greater than", "Name": "upper critical", "Severity": 1, "Value": 3.96 }, { "Direction": "greater than", "Name": "upper non critical", "Severity": 0, "Value": 3.63 }, { "Direction": "less than", "Name": "lower non critical", "Severity": 0, "Value": 2.97 }, { "Direction": "less than", "Name": "lower critical", "Severity": 1, "Value": 2.64 } ], "Type": "ADC" }, { "Index": 1, "Name": "P1V0", "PowerState": "On", "ScaleFactor": 0.8528, "Thresholds": [ { "Direction": "greater than", "Name": "upper critical", "Severity": 1, "Value": 1.2 }, { "Direction": "greater than", "Name": "upper non critical", "Severity": 0, "Value": 1.1 }, { "Direction": "less than", "Name": "lower non critical", "Severity": 0, "Value": 0.9 }, { "Direction": "less than", "Name": "lower critical", "Severity": 1, "Value": 0.8 } ], "Type": "ADC" }, { "Index": 2, "Name": "P12V", "PowerState": "On", "ScaleFactor": 0.03701, "Thresholds": [ { "Direction": "greater than", "Name": "upper critical", "Severity": 1, "Value": 14.4 }, { "Direction": "greater than", "Name": "upper non critical", "Severity": 0, "Value": 13.2 }, { "Direction": "less than", "Name": "lower non critical", "Severity": 0, "Value": 10.8 }, { "Direction": "less than", "Name": "lower critical", "Severity": 1, "Value": 9.6 } ], "Type": "ADC" }, { "Address": "0x48", "Bus": "4", "Name": "temperature1", "Thresholds": [ { "Direction": "greater than", "Name": "upper critical", "Severity": 1, "Value": 80 }, { "Direction": "greater than", "Name": "upper non critical", "Severity": 0, "Value": 70 }, { "Direction": "less than", "Name": "lower non critical", "Severity": 0, "Value": 5 }, { "Direction": "less than", "Name": "lower critical", "Severity": 1, "Value": 2.5 } ], "Type": "TMP75" }, { "Address": "0x49", "Bus": "4", "Name": "temperature2", "Thresholds": [ { "Direction": "greater than", "Name": "upper critical", "Severity": 1, "Value": 80 }, { "Direction": "greater than", "Name": "upper non critical", "Severity": 0, "Value": 70 }, { "Direction": "less than", "Name": "lower non critical", "Severity": 0, "Value": 5 }, { "Direction": "less than", "Name": "lower critical", "Severity": 1, "Value": 2.5 } ], "Type": "TMP75" }

In BMC, they can be read by cat CMD ADC::~# cat /sys/class/hwmon/hwmon8/in1_input 939 TMP75:~# cat /sys/class/hwmon/hwmon6/temp1_input 30750

But use ipmitool to send "sensor list" CMD, it return: temperature1 | 31.000 | degrees C | ok | na | 3.000 | 5.000 | 70.000 | 80.000 | na temperature2 | 30.000 | degrees C | ok | na | 3.000 | 5.000 | 70.000 | 80.000 | na AUX3V3 | na | Volts | na | na | 2.635 | 2.962 | 3.639 | 3.966 | na P1V0 | na | Volts | na | na | 0.797 | 0.896 | 1.104 | 1.204 | na P12V | na | Volts | na | na | 9.550 | 10.887 | 13.179 | 14.325 | na ADC sensor value is "na" TempSensor value is ok but not update.

I found some errors by "journalctl | grep hwmon" CMD:

kernel: lm75 4-0048: hwmon6: sensor 'tmp75' kernel: lm75 4-0049: hwmon7: sensor 'tmp75' hwmontempsensor[266]: error getting SpecialMode status No route to host hwmontempsensor[266]: Error calling mapper hwmontempsensor[266]: failed to find match for 4-0048 hwmontempsensor[266]: failed to find match for 4-0049 adcsensor[264]: failed to find match for /sys/class/hwmon/hwmon8/in3_input adcsensor[264]: failed to find match for /sys/class/hwmon/hwmon8/in1_input adcsensor[264]: failed to find match for /sys/class/hwmon/hwmon8/in2_input

Is there some configuration missing or operation error ?

I‘m a beginner of openbmc, Please give me some advice.

Thank you!

noman-kwai avatar Oct 19 '23 06:10 noman-kwai