Get Sensor Reading Factors
更新时间: 2025/06/26
在Gitcode上查看源码23h-获取传感器读数计算系数(Get-Sensor-Reading-Factors)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
查询传感器读数计算系数。
权限
ReadOnly
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | S/E 04h |
| CMD | 23h |
| 1 | sensor number (FFh=reserved) |
| 2 | reading byte |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code |
| 2 | Next reading. This field indicates the next reading for which a different set of sensor reading factors is defined. If the reading byte passed in the request does not match exactly to a table entry, the nearest entry will be returned, and this field will hold the reading byte value for which an exact table match would have been obtained. Once the exact’table byte has been obtained, this field will be returned with a value such that, if the returned value is used as the reading byte for the next request, the process can be repeated to cycle through all the Sensor Reading Factors in the device's internal table. This process shall wrap around' such a complete list of the table values can be obtained starting with any reading byte value. |
| 3 | M: LS 8 bits |
| 4 | [7:6]-M: MS 2 bits [5:0]-Tolerance in +/- 1/2 raw counts |
| 5 | [7:0]-B: LS 8 bits |
| 6 | [7:6]-B: MS 2 bits Unsigned, 10-bit Basic Sensor Accuracy in 1/100 percent scaled up byr unsigned Accuracy exponent. [5:0]-Accuracy: LS 6 bits |
| 7 | [7:4]-Accuracy: MS 4 bits [3:2]-Accuracy exp: 2 bits, unsigned [1:0]-reserved: 2 bits, returned as 00b |
| 8 | [7:4]-R (result) exponent 4 bits, signed [3:0]-B exponent 4 bits, signed |
命令样例
查询传感器读数计算因子
请求:
ipmicmd -k "0f 00 04 23 25 00" smi 0响应:
00 03 00 93 00 00 00