Skip to main content
Firmware Stable

Charge port (CHG)

The charge port is the secondary BMS port connected to the charger. The CHG port is opened by the state machine when a charger is detected and charging conditions are met.

info

All mentioned variables are located in folder /driver/chg/.

Readings

StateUnitDescription
ichgfAFiltered current through CHG port
uchgfVFiltered voltage at the CHG port

Protection parameters

ParameterUnitDescription
ichgshrtACharge short circuit current threshold (0 to disable)
ichgshrtpACharge short circuit current to battery (0 to disable)

Charge blocking

The BMS can block charging under certain conditions. The reason for blocking is indicated by the chg_blocked state.

chg_blocked bitDescription
0 (value 1)Time hysteresis
1 (value 2)Overvoltage
2 (value 4)Overcurrent

Charge block configuration

info

Configuration parameters are located in folder /driver/chg/chg_block/.

ParameterUnitDescription
chg_reconnect_timesTime to wait after charge block cleared before re-enabling charging

CHG port current limiter

The CHG port has its own current limiter that limits the maximum current through the charge port independently of the pack current limiter.

info

Limiter parameters are located in folder /driver/chg/limiter/.

ParameterUnitDescription
ichgPosACHG port maximum output current
ichgPosDecdelta ACHG port output current limit slope (0 to disable)
ichgNegDecdelta ACHG port input current limit slope (0 to disable)
ichgNegACHG port maximum input current