Get Device SDR Info 命令详情
更新时间:2025/06/26
在Gitcode上查看源码修订记录
| openUBMC版本号 | 修订日期 | 修订人 | 修订内容 |
|---|---|---|---|
| 25.06 | 2025/06/26 | pengqiang-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. |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code. |
| 2 | For 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. |
| 3 | Flags: 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:7 | Sensor 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:
- 请求:
- 响应: