Get BBU/Power Info
更新时间: 2026/08/06
在Gitcode上查看源码

Get BBU/Power Info

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Obtaining BBU Information

Privilege

USERROLE_POWERMGNT

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1:3Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
4Sub command, sub command=55h
5ID: BBU ID
6Parameter selector. For details, see Table 1.
7:8Reading offset
The offset parameter can only be selected from the BBU pmbus command word. For details, see the BBU pmbus command word table in Table 2.
9Reading length
The value varies with the reading offset. For details, see the BBU pmbus command word table.

Response Information

ByteData Field
1Completion Code
2:4Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
5:NData

Reference Information

Table 1 BBU/power supply configuration parameters

FunctionsParameter SelectorParameter data-getParameter data-set
Use the pmbus command word to access BBU information.0x01Request:
Read offset: byte7 = CMD (refer to the BBU PMBUS protocol table), byte8 = 0
Lenth:byte9=Length of the BBU data to be read
Response:
Data: data read back from the BBU
Request:
Write offset: byte7=CMD (see the BBU PMBUS protocol table), byte8=0
Length: byte9=Length of the data written to the BBU
Data: data written to the BBU (see the BBU PMBUS protocol table)
Disabling the BBU Backup Power Function0x02NARequest:
Write offset: 0x0000,
Length: 0x00,
Data:
0x01: Power backup is stopped.
Enabling or Disabling the BBU Online Test Function0x03NARequest:
Write offset: 0x0000,
Length: 0x00
Data:
0xAA: The online test function is enabled.
0x55: Stop the online test function.
The pmbus command word is used to access power information.0x04Request:
Read offset: byte7=CMD (see the Power PMBUS protocol table), byte8=0
Length: byte9=length of the read power data
Response:
Data: data read back from the power supply
Request:
Write offset: byte7=CMD (see the Power PMBUS protocol table), byte8=0
Length: byte9=length of the written power data
Data: data written to the power supply (see the Power PMBUS protocol table)
The pmbus command word is used to access the information about the power transfer board.0x05Request:
Read offset: byte 7=CMD (refer to the PMBus protocol table of the power transfer board), byte 8=0
Length: byte 9=Length of the data to be read from the power transfer board
Response:
Data: data read back from the power adapter board
NA

Table 2 Command word definition

FunctionCMD_IDCommand nameCommand DefinitionIndicates the data content.Data typeLengthW/R
Real-time data interface0xC0READ_CMLModule communication statusCommunication status [uint8, defined by referring to the standard PMBUS1.2 specification]Byte1R
0xC1READ_WORK_STATEWorking Status of the ModuleWorking status [uint8 bits 0-3: 0 (not used), 1 (initial), 2 (idle), 3 (charging), 4 (full charging), 5 (discharging), 6 (online test), 7 (protection), 8 (power-off); bits 4-7: secondary status]Byte1R
0xC2READ_TEMPTemperatureBoard temperature 1 + board temperature 2 + electrochemical cell temperature 1 + electrochemical cell temperature 2 + reserved temperature 1 + reserved temperature 2. The unified format is [LINEAR11(-2)-°C].Block14R
0xC3READ_VOLTVoltageBus voltage + discharge voltage + charge voltage + battery voltage + reserved voltage
Unified format: [LINEAR16(-9)-V]
Block12R
0xC4READ_CURRRectifier currentCharging current + Discharge current + Battery current + Reserved current 1 + Reserved current 2
Unified format: [LINEAR11(-4)-A]
Block10R
0xC5READ_CELL_VOLTModule electrochemical cell voltageCell 1 voltage + Cell 2 voltage + Cell 3 voltage + Cell 4 voltage + Cell 1 reserved voltage + Cell 2 reserved voltage
Unified format: [LINEAR16(-9)-V]
Block12R
0xC6READ_ALARM_BITThe module is in alarm state.Alarm status [uint32: type defined by byte. For details, see Table 3].Block4R
0xC7READ_BATT_CAPABILITYModule power backup capabilityTransient capacity [uint16-W] + Stable capacity [uint16-10 mWh] + Full capacitance [uint16-10 mWh] + Remaining capacity [uint16-10mWh]+RSOC[uint8- %]+SOH[uint8- %]Block10R
0xC8READ_BATT_STATUSModule battery statusSafetyAlert+SafetyStatus+PFAlert+PFStatus+OperationStatus+ChargingStatus+GaugingStatus+Resv
Unified format [uint32]
Block32R
Function control interface0xCCCTRL_FORCE_ALMForcible alarmMask [uint8 bit0: 5V fault, bits 1-7 reserved] + command [0-clear, non-0-set]Word2W/R
0xCDCTRL_FUNCTIONFunction Control ItemsMask [uint8 bit0: power-off; bit1: pre-charging; bit2: online test; bit3: bits 4-7 are reserved] + command [0-DISABLE, non-0-ENABLE]Word2W/R
Inherent parameter interface0xD0ATTR_VERSoftware & Hardware VersionsModule flag code [uint8] + PCB version [uint8] + Software version [ASCII*11byte, "ab.cd.ef (g) Txy"]Block13R
0xD1ATTR_E_LABLE_FRAME_IDFrame sequence number of the electronic label of the moduleFrame sequence number [uint16, starting from 0]Word2W/R
0xD2ATTR_E_LABLEModule e-labelFrame sequence number [uint16] + frame data [uint8*Len]Block130W/R
0xD3ATTR_SNRectifier ESNSerial number [ASCII*32]Block32R
0xD4ATTR_BATT_INFOBattery pack label informationManufacturer name [ASCII16] + Product name [ASCII16] + Production date [uint8*3]Block35R
0xD5ATTR_BATT_SNBattery pack serial numberSerial number [ASCII*32]Block32R
0xD6ATTR_DIE_IDChip die IDChip die ID (uint8*20)Block20R
Parameter configuration interface0xD9CONF_RTCClock synchronizationReal-time time [uint8*6-year (starting from 2000) month day hour minute second]Block6W/R
0xDACONF_WORK_TIMEExecution DurationRunning time [uint32-hour]Block4W/R
0xDBCONF_DISCHAR_TIMESReads the discharge times.Module discharge times [uint16] + battery pack discharge times [uint16] (cannot be modified)Block4W/R
0xDCCONF_LEARNING_TIMELatest Test End TimeEnd time [uint8*6]Block6R
0xDDCONF_DISCHAR_PARALatest Discharge ParameterDischarge time [uint8*6] + Discharge duration [uint16-s] + Discharge capacity [uint16-10mWh] + Average current [LINEAR11(-4)-A] + Cut-off voltage [LINEAR16(-9)-V]Block14R
Interface for Reading Logs0xE0LOG_READ_FORMATLog format (reserved)Log format: [ASCII*n]-"Data name 1[Type]+Space+Data name 2[Type]+... ",eg."Vout[U16- %d] Iout[L11%d] Safety[U32%X]"BlockVariableR
0xE1LOG_READ_ROMMemory log readingLog data 1 + log data 2. When there is no log data, the value is 0xFF.Block128R
0xE2LOG_READ_FLASH_NUMLog RereadingNumber of reread logs [uint16]Word2W/R
0xE3LOG_READ_FLASHHistorical log readingLog data 1 + log data 2. When there is no log data, the value is 0xFF.Block128R
Equipment commissioning port0xE5EQUIP_MODETest ModeControl command [0xAA: ENABLE, 0x55: DISABLE]. Disabled by default.Byte1W/R
0xE6EQUIP_CTRLPort SATA control registerMask [ uint8 bit0: LED_R, bit1: LED_G, bit2: bbu_ok, bit3: bbu_alm, bit4: bbu_run, bit5: bbu_kill, bit6: HDD_5V_PG, bit7 reserved] + command [0-DISABLE, non-0-ENABLE]Word2W/R
0xE7EQUIP_CALIBRATIONCalibration controlControl command [0xAA: recalibrate; 0x55: clear calibration]Byte1W
Querying Calibration ResultsAD reference source [LINEAR16(-9)-V] + charging current offset [LINEAR11(-4)-A] + discharge current offset [LINEAR11(-4)-A] + reserved [uint16*12]Block32R
0xE9DCIP_STATEChip CRACK QueryBits 1-7: reserved
Bit 0: Crack Fault 1 valid
Byte1R
Automated test interface0xEATEST_MODETest simulationControl command [0xAA: ENABLE, 0x55: DISABLE], disabled by defaultByte1W/R
0xEBTEST_STATUS_SIMUStatus simulationMask [uint8 0: not controlled; 1: controlled] + command [uint8 bit0: fully charged, bits 1-7]. 1: set; 0: clearedWord2W/R
0xECTEST_ALM_THRESHOLDData simulationData type [uint8] + data value [uint16]. For details, see Table 4.Block3W
Data [uint16*16]. For details, see Table 4.Block32R
Software loading interface. For details, see Secondary Power Supply Software Upgrade PMBus Communication Specifications V1.5.0xFBSOFT_LOAD_INFOLoading information queryLoading information [uint8*36]Block36R
0xFCSOFT_LOAD_CTRLLoading process controlControl command action[uint8]+software ID[uint8]Word2W
0xFCSOFT_LOAD_RESULTPlugin Running StatusExecution result [uint16]Word2R
0xFDSOFT_LOAD_DATAData loading and transmissionFrame sequence number [uint16] + frame data [uint8*Len]Block130W

Table 3 Alarm bit definition

bit 00The board is faulty.Soft-start short circuitWhen the soft-start function is disabled, if Vout is greater than (Vin x 0.68 – 0.5 V) (the voltage difference is less than 2 V) for 1 second, the alert is triggered.1
bit 01Soft-start open circuitAfter the soft-start function is enabled, if Vout is greater than Vin + 2 V for 1 second, the alert is triggered.3
bit 02Combiner disconnectionIf ORING Vin is greater than Vout + 0.3 V for 3 seconds and the power is shut down, the alert is triggered (locked).5
bit 03Power fault 1During the first voltage boost phase, if Vout(Vref-0.05V, Vref+0.05V) lasts for 1 second, the alert is triggered.7
bit 04Power fault 2During the first voltage boost phase, if Vout(Vref-0.05V, Vref+0.05V) lasts for 1 second, the alert is triggered.9
bit 05Charge overcurrent OSTWhen the CHG_OC hardware OST signal is detected and the power is shut down, the alert is triggered (locked).11
bit 06Charge overvoltage OSTWhen the CHG_OV hardware OST signal is detected and the power is shut down, the alert is triggered (locked).13
bit 07Discharge overcurrent OSTWhen the DSG_OC hardware OST signal (about 135 A) is detected and the power is shut down, the alert is triggered (locked).15
bit 08Discharge overvoltage OSTWhen the DSG_OV hardware OST signal (about 14.7 V) is detected and the power is shut down, the alert is triggered (locked).17
bit 09Slow discharge overcurrentIf Idsg is greater than 60 A for 3 seconds, the alert is triggered (locked).19
bit 10---21
bit 11---23
bit 12Battery faultCommunication faultsThe communication between the MCU and the battery pack fails.25
bit 13Failure faultWhen a PF permanent fault returned by the BQ chip occurs, the alert is triggered.27
bit 14Protection faultWhen a protection fault returned by the BQ chip occurs, the alert is triggered.29
bit 1531
bit 16External faultService life expirationWhen the battery capacity is less than the threshold or the battery pack delivery time exceeds the threshold for 3 seconds, the alert is triggered. When the battery capacity is greater than the hysteresis for 3 seconds, the alert is cleared.33
bit 17Level-1 high temperatureWhen the temperature is higher than the threshold for 1 second, the alert is triggered. When the temperature is lower than the hysteresis for 1 second, the alert is cleared.35
bit 18Level-2 high temperatureWhen the temperature is higher than the threshold for 10 seconds, the alert is triggered, and cannot be cleared in any cases.37
bit 19Low temperatureThe software repository is not in use.39
bit 20Hard drive 5 V faultThe software repository is not in use.41
bit 2143
bit 2245
bit 2347
bit 24External pre-warningService life pre-expirationWhen the battery capacity is less than the threshold or the battery pack delivery time exceeds the threshold for 3 seconds, the alert is triggered. When the battery capacity is greater than the hysteresis for 3 seconds, the alert is cleared.49
bit 2551
bit 2653
bit 2755
bit 2857
bit 2959
bit 3061
bit 3163

Table 4 Definition of data simulation

No.DefinitionFormatUnit
0Energy Alarm Threshold for Service Life Pre-Expirationuint1610mWh
1Service life expiration energy alarm thresholduint1610mWh
2Service life expiration alarm thresholduint16month
3Alarm Threshold of Service Life Pre-Expiration Timeuint16month
4Level 1 high temperature alarm thresholdint16
5Level 2 high temperature alarm thresholdint16
6Low Temperature Alarm Thresholdint16
7Cell temperature simulationint16
8Board temperature simulationint16
9Battery pack voltage simulationuint16mV
10Reserved--
11Reserved--
12Reserved--
13Reserved--
14Reserved--
15Reserved--
16Reserved--

Command Example

Obtain the communication status of the BBU module on the BMC.

Request:

bash
ipmicmd -k "0f 00 30 93 db 07 00 55 00 01 c0 00 01" smi 0

Response:

text
0f 31 00 93 00 db 07 00 00

Back to Index