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

修订记录

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

基本信息

功能说明

获取传感器的实时读值。 This command returns the present reading for sensor.

权限

ReadOnly

命令信息

请求信息

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

响应信息

字节顺序域取值说明
1Completion Code.
2Sensor reading
Byte 1: byte of reading. Ignore on read if sensor does not return an numeric (analog) reading.
3[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 re-arm. 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. See Section 16.4, Event Status, Event Conditions, and Present State and Section 16.6, Re-arming for more information.
[4:0] - reserved. Ignore on read
(4)For threshold-based sensors
Present threshold comparison status
[7:6] - reserved. Returned as 1b. Ignore on read.
[5] - 1b = at or above () upper non-recoverable threshold
[4] - 1b = at or above () upper critical threshold
[3] - 1b = at or above () upper non-critical threshold
[2] - 1b = at or below () lower non-recoverable threshold
[1] - 1b = at or below () lower critical threshold
[0] - 1b = at or below () lower non-critical threshold

For discrete reading sensors
[7] - 1b = state 7 asserted
[6] - 1b = state 6 asserted
[5] - 1b = state 5 asserted
[4] - 1b = state 4 asserted
[3] - 1b = state 3 asserted
[2] - 1b = state 2 asserted
[1] - 1b = state 1 asserted
[0] - 1b = state 0 asserted
(5)For discrete reading sensors only. (Optional)
(00h Otherwise)
[7] - reserved. Returned as 1b. Ignore on read.
[6] - 1b = state 14 asserted
[5] - 1b = state 13 asserted
[4] - 1b = state 12 asserted
[3] - 1b = state 11 asserted
[2] - 1b = state 10 asserted
[1] - 1b = state 9 asserted
[0] - 1b = state 8 asserted

命令样例

样例1:

  • 请求:
  • 响应:

返回到索引