Skip to main content
Firmware Stable

Current and voltage readings

This is a list of all variables that are related to battery pack current and voltage readings.

info
  • All mentioned variables are located in folder /driver/.
  • Positive current is flowing from the battery to the load. (ie. making the battery discharge)
  • Negative current is flowing from the load to the battery. (ie. making the battery charge, regenerative braking)

Pack-level readings

VariableUnitDescription
currentARAW unfiltered current of battery pack
currentfAFiltered current of battery pack
voltageVBattery pack voltage
powerWPower of battery pack

The filtered current currentf is used by the pack current limiter and by the current direction detection which drives the DISCHARGING / REGEN / CHARGING / IDLE states (see idle configuration).

Port-level readings

VariableUnitDescription
/dsc/idscfAFiltered current through DSC port
/dsc/udscfVFiltered voltage at DSC port
/chg/ichgfAFiltered current through CHG port
/chg/uchgfVFiltered voltage at CHG port

Hardware status

VariableDescription
hw_errorHardware error code (negative: init error, positive: runtime error)
stateCurrent state name (string), see state machine
heatsink_isol[V] Heatsink isolation voltage. 1.65 V means the heatsink is isolated.

A non-zero hw_error puts the BMS into the ERROR state ("Hardware error", value 10 in errorLog).

hw_error valueMeaning
-1Balancer initialization failed - the balancer IC could not be started (communication problem)
-3Configuration error - the cell count parameter /driver/balancing/Scount is 0 (the BMS enters the INIT state)
-4Temperature sensor configuration error - at least one TS input must be configured as NTC (conf=3). See temperature inputs.