A battery management system (BMS) is a micro-controller used for monitoring controlling and protecting a rechargeable battery. Battery management systems are used in electric cars and elsewhere.
Details: https://en.wikipedia.org/wiki/Battery_management_system