| Output Parameters |
{
"data": {
"ver": {
"hardware_major": 49,
"hardware_minor": 48,
"hardware_revision": 49,
"software_major": 55,
"software_minor": 48,
"software_revision": 49
},
"voltage": 45460,
"current": -1156,
"power": 52551,
"temperature": 289,
"capacity": 4220,
"charge": 29,
"power_supply_health": "PowerSupplyHealth_GOOD",
"power_supply_status": "PowerSupplyStatus_IDEL",
"cycles_num": 1,
"cycles_capacity": 21,
"abnormal_state": "PowerAbnormalStatus_NORMAL",
"charger_state": "ChargerNotPulgin",
"bms_state": "BatteryStatus_Connected",
"max_current": 0,
"battery_firmware_type": "BatteryFirmwareType_OLD",
"battery_key_state": "BatteryKeyStatus_SHORT_CURCUIT",
"battery_pack_state": "BatteryPackStatus_NORMAL",
"battery_comm_state": "BatteryCommunication_NORMAL"
}
}
-
ver: Version information
-
voltage: Current voltage, unit mV
-
current: Current current, unit mA
-
power: Current power, unit mW
-
temperature: Current temperature, unit 0.1 degrees Celsius
-
capacity: Current capacity, unit: mAh
-
charge: Current charge percentage
-
power_supply_health: Not currently available
-
power_supply_status: Charging status
- PowerSupplyStatus_IDEL
- PowerSupplyStatus_CHARGING
- PowerSupplyStatus_FULL
-
cycles_num: Number of cycles
-
cycles_capacity: Cycle capacity (total charge and discharge capacity of the current battery pack), unit: Ah
-
abnormal_state: Abnormal status
- PowerAbnormalStatus_NORMAL
- PowerAbnormalStatus_SHORT_CIRCUIT
- PowerAbnormalStatus_DISCHARGE_OVERCURRENT
- PowerAbnormalStatus_CHARGING_OVERCURRENT
- PowerAbnormalStatus_UNDERVOLTAGE
- PowerAbnormalStatus_OVERVOLTAGE
- PowerAbnormalStatus_EXCEED_DISCHARGE_TEMP_LIMIT
- PowerAbnormalStatus_EXCEED_CHARGING_TEMP_LIMIT
-
charger_state: Whether the charger is plugged in
- ChargerNotPulgin
- ChargerConnected
-
bms_state: Whether the battery is connected
- BatteryStatus_NotPulgin
- BatteryStatus_Connected
-
max_current: Maximum current
-
battery_firmware_type: Battery pack firmware version
- BatteryFirmwareType_OLD
- BatteryFirmwareType_NEW
-
battery_key_state: Battery pack key status
- BatteryKeyStatus_SHORT_CURCUIT
- BatteryKeyStatus_CONNECTED
-
battery_pack_state: Battery pack abnormal status
- BatteryPackStatus_NORMAL
- BatteryPackStatus_ABNORMAL
-
battery_comm_state: Battery pack communication status
- BatteryCommunication_NORMAL
- BatteryCommunication_ABNORMAL
|