Get Sensor Reading Factors
更新时间: 2026/08/06
在Gitcode上查看源码Get Sensor Reading Factors
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to query the coefficient for calculating the sensor reading.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | S/E 04h |
| CMD | 23h |
| 1 | sensor number (FFh=reserved) |
| 2 | reading byte |
Response Information
| Byte | Data Field |
|---|---|
| 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 |
Command Example
Query the sensor reading calculation factor.
Request:
bash
ipmicmd -k "0f 00 04 23 25 00" smi 0Response:
text
00 03 00 93 00 00 00