Battery management Solution for Electric Vehicles