Two methods of battery pack balancing management