Address type in entity-manager repo

James Feist james.feist at linux.intel.com
Thu Jul 18 09:01:34 AEST 2019


On 7/16/19 12:15 AM, Deng Tyler wrote:
> Hi All:
>      I am investigated entity-manager with dbus-sensors. In 
> entity-manager, the schema define Address type is string as below
> ---------------------------------------------------
>              "type": "object",
>              "properties": {
>                  "Exposes": {
>                      "type": "array",
>                      "items": {
>                          "type": "object",
>                          "properties": {
>                              "Address": {
>                                  "type": "string"      <== here
>                              },
>                              "Name": {
>                                  "type": "string"
>                              },
> --------------------------------------------------------
> In dbus-sensor application, cpusensor get CPU configuration from DBUS. 
> But the type is mismatch and cause cpusensor terminated.
> *journalctl:*
> cpusensor[296]: terminate called after throwing an instance of 
> 'std::invalid_argument'
> cpusensor[296]:   what():  Cannot translate type to unsigned int
> 
> I found code in cpusensor to get "Address" and type shall be integer 
> from dbus as below
> image.png
> But in dbus the Address property is string
> image.png
> 
> Is this code error? or I miss something? thanks.

I would suggest updating EntityManager, looks like you are using an old 
version, SkylakeCPU change to XeonCpu a long time ago.

Thanks,

James



> 
> Tyler


More information about the openbmc mailing list