Get Sensor Event Status 命令详情
更新时间:2025/06/26
在Gitcode上查看源码

修订记录

openUBMC版本号修订日期修订人修订内容
25.062025/06/26pengqiang-gs初稿,新增命令详情

基本信息

功能说明

获取传感器对应的事件状态。 This command is provided to support systems where sensor polling is used in addition to, or instead of, Event Messages for event detection.

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
1sensor number (FFh = reserved)

响应信息

字节顺序域取值说明
1Completion Code.
2[7] - 0b = All Event Messages disabled from this sensor
[6] - 0b = Sensor scanning disabled
[5] - 1b = reading/state unavailable (formerly “initial update in progress”). This bit is set to indicate that a ‘re-arm’ or ‘Set Event Receiver’ command has been used to request an update of the sensor status, and that update has not occurred yet. Software should use this bit to avoid getting an incorrect status while the first sensor update is in progress. This bit is only required if it is possible for the controller to receive and process a ‘Get Sensor Reading’ or ‘Get Sensor Event Status’ command for the sensor before the update has completed. This is most likely to be the case for sensors, such as fan RPM sensors, that may require seconds to accumulate the first reading after a rearm. The bit is also used to indicate when a reading/state is unavailable because the management controller cannot obtain a valid reading or state for the monitored entity, typically because the entity is not present.
[4:0] - reserved. Ignore on read.
3For sensors with threshold based events:
(High-going events are asserted when value first becomes threshold. Low-going events are asserted when value first becomes  corresponding threshold.)
[7] - 1b = assertion event condition for upper non-critical going high occurred
[6] - 1b = assertion event condition for upper non-critical going low occurred
[5] - 1b = assertion event condition for lower non-recoverable going high occurred
[4] - 1b = assertion event condition for lower non-recoverable going low occurred
[3] - 1b = assertion event condition for lower critical going high occurred
[2] - 1b = assertion event condition for lower critical going low occurred
[1] - 1b = assertion event condition for lower non-critical going high occurred
[0] - 1b = assertion event condition for lower non-critical going low occurred

For sensors with discrete events:
[7] - 1b = state 7 assertion event occurred
[6] - 1b = state 6 assertion event occurred
[5] - 1b = state 5 assertion event occurred
[4] - 1b = state 4 assertion event occurred
[3] - 1b = state 3 assertion event occurred
[2] - 1b = state 2 assertion event occurred
[1] - 1b = state 1 assertion event occurred
[0] - 1b = state 0 assertion event occurred
(4)For sensors with threshold based events:
[7:4] - reserved. Write as 0000b.
[3] - 1b = assertion event condition for upper non-recoverable going high occurred
[2] - 1b = assertion event condition for upper non-recoverable going low occurred
[1] - 1b = assertion event condition for upper critical going high occurred
[0] - 1b = assertion event condition for upper critical going low occurred

For sensors with discrete events:
(00h otherwise)
[7] - reserved. Ignore on read.
[6] - 1b = state 14 assertion event occurred
[5] - 1b = state 13 assertion event occurred
[4] - 1b = state 12 assertion event occurred
[3] - 1b = state 11 assertion event occurred
[2] - 1b = state 10 assertion event occurred
[1] - 1b = state 9 assertion event occurred
[0] - 1b = state 8 assertion event occurred
(5)For sensors with threshold based events:
(High-going events are deasserted when value goes less than the corresponding threshold minus the positive-going hysteresis value. Low-going events are deasserted when value goes greater than the corresponding threshold plus the negative-going hysteresis value.)
[7] - 1b = deassertion event condition for upper non-critical going high occurred
[6] - 1b = deassertion event condition for upper non-critical going low occurred
[5] - 1b = deassertion event condition for lower non-recoverable going high occurred
[4] - 1b = deassertion event condition for lower non-recoverable going low occurred
[3] - 1b = deassertion event condition for lower critical going high occurred
[2] - 1b = deassertion event condition for lower critical going low occurred
[1] - 1b = deassertion event condition for lower non-critical going high occurred
[0] - 1b = deassertion event condition for lower non-critical going low occurred

For sensors with discrete events:
[7] - 1b = state 7 deassertion event occurred
[6] - 1b = state 6 deassertion event occurred
[5] - 1b = state 5 deassertion event occurred
[4] - 1b = state 4 deassertion event occurred
[3] - 1b = state 3 deassertion event occurred
[2] - 1b = state 2 deassertion event occurred
[1] - 1b = state 1 deassertion event occurred
[0] - 1b = state 0 deassertion event occurred
(6)For sensors with threshold based events:
[7:4] - reserved. Write as 0000b.
[3] - 1b = deassertion event condition for upper non-recoverable going high occurred
[2] - 1b = deassertion event condition for upper non-recoverable going low occurred
[1] - 1b = deassertion event condition for upper critical going high occurred
[0] - 1b = deassertion event condition for upper critical going low occurred

For sensors with discrete events:
(0h otherwise)
[7] - reserved. Ignore on read.
[6] - 1b = state 14 deassertion event occurred
[5] - 1b = state 13 deassertion event occurred
[4] - 1b = state 12 deassertion event occurred
[3] - 1b = state 11 deassertion event occurred
[2] - 1b = state 10 deassertion event occurred
[1] - 1b = state 9 deassertion event occurred
[0] - 1b = state 8 deassertion event occurred

命令样例

样例1:

  • 请求:
  • 响应:

返回到索引