The charger mainly consists of circuit board, shell, connector and cooling structure. The charger has standby, charging, trouble and dormancy states at least, and each state is defined in the process of project development. It is suitable for on-board charger for passenger cars.