The working principle of BMS battery management system