I'm trying to explore sensor values and signals in openbmc. I can see the available bus names:
# busctl |grep Sensor|sed -e 's| .*||'
xyz.openbmc_project.ADCSensor
xyz.openbmc_project.CPUSensor
xyz.openbmc_project.ExitAirTempSensor
xyz.openbmc_project.FanSensor
xyz.openbmc_project.HwmonTempSensor
xyz.openbmc_project.IntrusionSensor
xyz.openbmc_project.IpmbSensor
xyz.openbmc_project.MCUTempSensor
xyz.openbmc_project.PSUSensor
But, I can't get any objects out of these. For example:
# busctl tree xyz.openbmc_project.HwmonTempSensor
Only root object discovered.
Since I'm not getting objects, how do a do a 'busctl introspect'? Sorry if this is obevious. New to dbus...
I am not an authority on either openbmc or DBus, but I will tell you what I can.
When I am not familiar with a bmc platform I will run
busctl tree | less
then search in the output for eitherxyz.openbmc_project.Hwmon
or the sensor name I want. Example:Then I am able to make my dbus introspect command.
And that brings up the following sections
There are many people in the community that work more closely with the dbus sensor interface. But I thought I would share my method. This is the document I follow when I have a dbus sensor read question. https://github.com/openbmc/docs/blob/master/architecture/sensor-architecture.md