After the physical connection between the battery and the charging pile is completed, the bms detects the adhesion of the relay in the charging/discharging circuit. When the detection passes, the charging circuit is switched on and the discharging circuit is disconnected.
When the battery enters the charging stage and the bms is reported without fault, the bms enters the current sensor fault detection mode;
The bms collects and stores a number of current detection values within a preset time t with a set step based on the current sensor arranged in the charging loop; At the same time, the bms obtains and stores a number of charging pile output current values corresponding to the current detection value one by one;
After reaching the preset time t, n groups of data are randomly extracted from several groups of data stored, and each group of data includes a current detection value and the corresponding output current value of the charging pile; Calculate the absolute value of the difference between two values in each set of data and write it as the detection value; Where n is a natural number greater than or equal to 2;
The detection value is compared with the preset threshold range; If n of the detection values are in the preset threshold range, after the end of charging, prompt the current sensor no fault and will be stored several groups of data clear; Otherwise, after the charging is complete, a message is displayed indicating that the current sensor is faulty and several groups of stored data are deleted