Skip to content

ipmi-sensor config #208

@tom-ky-wu

Description

@tom-ky-wu

Can anyone help me for the discrete sensor to encode the statecase like if inventory instance I would like to do :

  1. if is present and functional then encode as 0x01
  2. if is present and not functional then encode as 0x02
  3. if not present then forced into 0x04
    That means each case matches two dbus property state and only assert one bit and deassert other bits
    Can exist configuration settings implement this? Please give me an example for this! Thanks a lot for answering in advance.

I have tried like following pattern, but assert bits will exist at the same time such as 0x05 or 0x06

interfaces:
    xyz.openbmc_project.Inventory.Item:
      Present:
        Offsets:
          0x04:
            assert: false
            deassert: true
            type: bool
    xyz.openbmc_project.State.Decorator.OperationalStatus:
      Functional:
        Offsets:
          0x06:
            assert: true
            deassert: false
            type: bool
        Prereqs:
          0x04:
            assert: false
            deassert: true
            type: bool

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions