A method of extracting a parasitic resistance of battery connection wires in a battery, wherein the battery comprises a plurality of cells, each respective cell of the plurality of cells comprising battery connection wires connecting battery terminals of the respective cell to a cell balancing circuit, the method comprising:
- for each respective cell of the plurality of cells and for a contiguous group of two or more adjacent cells:
- controlling a pack current through the battery to be zero;
- measuring a first cell voltage of the respective cell, or a first contiguous cell group voltage as a sum of respective cell voltages of the two or more adjacent cells in the contiguous group, with no pack current flowing through the battery;
- controlling the pack current through the battery to be non-zero;
- applying a balancing current to the respective cell or to each of the two or more adjacent cells in the contiguous group, equal to the pack current and flowing in an opposite direction to the pack current;
- measuring a second cell voltage of the respective cell, or a second contiguous cell group voltage as a sum of respective cell voltages of the two or more adjacent cells in the contiguous group, with the balancing current applied to the respective cell or to each of the two or more adjacent cells in the contiguous group;
- determining a total voltage drop across the battery connection wires of the respective cell or of the two or more adjacent cells in the contiguous group based on the difference between the first and second cell voltages;
- and
- determining a total parasitic resistance of the battery connection wires of the respective cell or of the two or more adjacent cells in the contiguous group based on the total voltage drop and the balancing current;
- and
- computing a respective parasitic resistance of respective battery connection wires in the battery based on the total parasitic resistances of the battery connection wires.