Distributed Battery Management System Based on CAN Bus