Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipmi-sensor config #208

Open
tom-ky-wu opened this issue Nov 19, 2024 · 0 comments
Open

ipmi-sensor config #208

tom-ky-wu opened this issue Nov 19, 2024 · 0 comments

Comments

@tom-ky-wu
Copy link

tom-ky-wu commented Nov 19, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant