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

修订记录

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

基本信息

功能说明

获取传感器设备的通用信息。 This command returns general information about the collection of sensors in a Dynamic Sensor Device.

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
(1)Operation (optional)
[7:1] - reserved
[0]
 1b = Get SDR count. This returns the total number of SDRs in the device.
 0b = Get Sensor count. This returns the number of sensors implemented on LUN this command was addressed to.

响应信息

字节顺序域取值说明
1Completion Code.
2For Operation = “Get Sensor Count” (or if byte 1 not present in request):
 Number of sensors in device for LUN this command was addressed to.

For Operation = “Get SDR Count”:
 Total Number of SDRs in the device.
3Flags:
Dynamic population
[7]
 0b = static sensor population. The number of sensors handled by this device is fixed, and a query shall return records for all sensors.
 1b = dynamic sensor population. This device may have its sensor population vary during ‘run time’ (defined as any time other that when an install operation is in progress).

Reserved
[6:4] -reserved

Device LUNs
[3] - 1b = LUN 3 has sensors
[2] - 1b = LUN 2 has sensors
[1] - 1b = LUN 1 has sensors
[0] - 1b = LUN 0 has sensors
4:7Sensor Population Change Indicator. LS byte first.

Four byte timestamp, or counter. Updated or incremented each time the sensor population changes. This field is not provided if the flags indicate a static sensor population.

命令样例

样例1:

  • 请求:
  • 响应:

返回到索引