Function test system based on minimum battery management system and test method thereof
Technical Field
The invention relates to the technical field of testing of battery management systems of new energy electric vehicles, in particular to a functional testing system based on a minimum battery management system and a testing method thereof.
Background
The main functions of the battery management system include: battery physical parameter real-time monitoring, battery state estimation, on-line diagnosis and early warning, charge-discharge and pre-charge control, equalization, thermal management and the like. The performance of the battery management system directly affects the safety performance of the power battery.
Currently, there are two main methods for testing battery management systems: one is to perform a docking test on the battery management system and the physical battery pack. The test method is the truest and direct, but has the problems of long test time, difficult adjustment of battery state parameters and poor controllability in the test process, has potential safety hazards and is not suitable for batch test of the battery management system.
The second method is a test method based on a simulated battery pack. The voltage, temperature and current sensors of the battery cells are simulated by high-precision program-controlled battery simulators, resistors, DACs (digital-to-analog converters) and the like. The method is based on a software and hardware platform of the test instrument, the state of the battery pack can be quickly adjusted through application software, the test is safe, and the expandability is strong. However, the cost of the test equipment of the method is very high, and usually, only one single battery of the battery simulator simulates a channel by at least 5000 yuan, but the power requirement of the electric automobile on a power supply system is relatively high at present, and the number of battery groups is relatively large, and can reach 300 strings at most, so that the hardware cost of only one battery simulator is as high as 150 ten thousand. In addition, the method has poor joint debugging test applicability to a battery management system with one master and multiple slaves, and the master control module and the slave control module need to be connected with the simulation unit respectively for testing, so that the wiring tool is huge in size, inconvenient to operate and high in cost of test equipment.
Disclosure of Invention
The technical problems to be solved by the invention are as follows: in order to overcome the defects in the prior art, the invention provides a function test system based on a minimum battery management system and a test method thereof.
The technical scheme adopted for solving the technical problems is as follows: the function test system based on the minimum battery management system comprises an upper computer test platform for parameter setting, displaying and simulating at least one slave control module in the BMS battery management system and a BMS-master-slave minimum system connected with the upper computer test platform, wherein the BMS-master-slave minimum system is used for providing a master control module and a slave control module of a real BMS battery management system, and collecting data of other modules and uploading the data to the upper computer test platform for display;
the battery simulation unit is used for simulating the single battery voltage signal and providing a simulated single battery voltage signal for the test system; the battery simulation unit is a battery pack formed by connecting a plurality of single batteries in series.
The temperature simulation detection unit is used for simulating the temperature signal of the single battery and providing a simulated temperature signal of the single battery for the test system;
the Hall shunt detection unit is used for simulating the total current signal of the battery;
the high-voltage constant-voltage source is used for simulating the total voltage signal of the battery;
the direct current source is used for simulating the charging current;
the charging simulation unit is used for simulating an alternating current charging connection confirmation CC signal, a direct current charging connection confirmation CC2 signal and a control pilot CP signal during charging;
the high-precision universal meter is used for measuring the real data of each analog unit and providing a comparison signal for the battery management system; a BMS supply voltage source.
And the BMS is used for reporting the voltage, current, SOC, temperature and fault information of the battery management system to the upper computer test platform by the primary and secondary minimum systems, and displaying the information on a human-computer interaction interface. In order to realize the joint debugging test of the battery management system with one master and multiple slaves, the battery management system software with one master and multiple slaves is configured into a minimum system with one master and multiple slaves in the upper computer test platform software of the battery management system, namely, when the joint debugging test of the battery management system with one master and multiple slaves is carried out, only one real master control module and one real slave control module are needed to be connected, and other slave control modules in the system are simulated by using the upper computer test platform software, so that the communication with the master control module is realized, and the voltage and temperature information of a single battery are reported to ensure the integrity of the BMS system and the normal internal communication of the system.
The battery simulation unit, the temperature simulation detection unit, the high-voltage constant-voltage source, the charging simulation unit and the direct-current source are respectively connected with the signal input end of a master-slave minimum system, and respectively provide corresponding single voltage signals, temperature signals, total voltage signals, alternating-current charging connection confirmation CC, control guidance CP, direct-current charging connection confirmation CC2 signals and current signals for the system. The battery management system power supply serves as an operating power supply of the BMS system.
The battery simulation unit, the temperature simulation detection unit, the high-precision universal meter, the Hall shunt detection unit, the high-voltage constant-voltage source, the charging simulation unit, the direct-current source, the battery management system power supply and the upper computer test platform are communicated through RS232, and the analog signals and the power supply signals are displayed on the interface of the upper computer test platform.
Specifically, the BMS-master-slave minimum system comprises a real main control module and a real slave control module, the main control module and the slave control module communicate through an internal CAN bus, the real slave control module collects voltage data of the single battery provided by the battery simulation unit and single battery temperature data provided by the temperature simulation detection unit and reports the voltage data and the single battery temperature data to the real main control module, and the real main control module collects total voltage signals and total current signals provided by the high-voltage constant-voltage source and the Hall shunt detection unit and displays a display interface of the upper computer test platform together with voltage and temperature information reported by the slave control module.
The functional test method based on the minimum battery management system comprises the steps that during the state parameter measurement accuracy test of the battery management system, a real slave control module collects voltage and temperature signals provided by a battery simulation unit and a temperature simulation detection unit, the voltage and temperature signals are reported to a real master control module through an internal CAN, and the voltage and temperature signals collected by other slave control modules in the BMS battery management system are simulated by an upper computer test platform and are reported to the real master control module according to the communication protocol requirements; the real main control module collects the total voltage signal and the total current signal provided by the high-voltage constant-voltage source and the Hall shunt detection unit, and displays the total voltage signal and the total current signal together with the voltage and the temperature information reported to the main control module by the slave control module (the slave control module refers to the real slave control module, because only the signal collected by the real slave control can be reported to the real main control module); meanwhile, through the real state parameter data of each simulation unit detected by the high-precision multimeter, judging whether the functions of the BMS battery management system meet the design requirements or not through the comparison of the data collected by the battery management system and the real state parameter data of each simulation unit detected by the high-precision multimeter, and finishing the test of the state parameter test precision of the BMS battery management system;
further, the battery balancing method further comprises balancing current testing, when balancing current testing is carried out, voltages of the single batteries in the battery simulation unit are required to be sequentially adjusted to enter an unbalanced state (the highest voltage of the single batteries is larger than the cut-off voltage or the difference between the highest voltage and the lowest voltage of the single batteries is larger than the threshold value), the BMS battery management system reads CAN messages, measures the voltage value of the consumption resistor at the position of the single battery with the highest voltage and feeds the voltage value back to the upper computer testing platform, and whether the balancing current value is in a reasonable range is judged according to the calculated balancing current value.
Further, the method further comprises a static current test, when the static current test is carried out, parameters of the battery simulation unit are preset on the upper computer test platform, the battery simulation unit is started to output according to the setting, the battery simulation unit is kept stand for a period of time, working currents of the single batteries in the battery simulation unit are measured by the high-precision universal meter and fed back to the upper computer test platform, and the upper computer test platform judges whether a test result meets requirements according to the preset parameters, wherein the test string number, the cut-off voltage and the running time of the single batteries can be set through upper computer software.
Further, the battery fault diagnosis test is further included, when the battery fault diagnosis test is performed, the battery simulation unit, the temperature simulation unit, the high-voltage power supply and the direct-current power supply provide various abnormal alarm simulation voltage, temperature, total voltage and total current signals for the BMS battery management system according to instructions issued by the upper computer test platform, the main control module of the BMS battery management system detects the abnormal simulation signals and feeds test results back to the upper computer test platform, and the upper computer test platform compares the feedback results with the simulation signals given by the platform to judge whether the BMS battery management system can accurately detect alarm information and give corresponding alarms.
And in the SOC evaluation function test, firstly, adjusting an initial value of the SOC in the upper computer test platform and an initial value of the SOC of the BMS battery management system to be consistent, then simulating a battery charging process, and carrying out charging/discharging for a certain time on the single battery, and comparing the SOC value read by the BMS battery management system with the SOC value of the upper computer test platform, wherein a direct current source (adopting a direct current constant current source) receives an instruction of the upper computer test platform, adjusts the current output by the direct current source, completes charging for a certain time on the battery simulation unit, acquires the charging current output by the direct current source, and the BMS battery management system calculates the charged SOC value according to an internal SOC estimation method, compares the charged SOC value with the SOC value calculated by the test platform, and completes the estimation of the SOC estimation precision.
Further, the device also comprises a charging simulation unit test, wherein the charging simulation unit respectively simulates a CC signal, a CC2 signal and a CP signal when the charging simulation unit is tested; the method comprises the steps of CC signal simulation test, outputting resistors with different resistance values to the ground by an upper computer test platform, detecting voltage at two ends of the output resistor by a BMS battery management system, calculating the resistance value of the output resistor according to a voltage division principle, feeding the resistance value back to the upper computer test platform for comparison, and judging whether the BMS battery management system recognizes a CC signal or not; based on the principle, the similar CC2 signal simulation test is also based on the principle, the upper computer test platform outputs resistors with different resistance values to the ground, the BMS battery management system detects the voltages at two ends of the output resistor, calculates the resistance value of the output resistor according to the voltage division principle and feeds back the resistance value to the upper computer test platform for comparison, and whether the BMS battery management system recognizes the CC2 signal is judged; when the CP signal is simulated and tested, the charging simulation unit outputs PWM waveform with 1KHz and 0-100% duty ratio, the BMS battery management system detects the simulation signal and feeds back the result to the upper computer test platform for comparison, and whether the BMS correctly identifies the CP signal is judged.
Further, the system also comprises a product software and hardware version reading test, when the product software and hardware version reading function test is performed, the upper computer test platform sends a test-in instruction to the BMS battery management system main control module, and after the BMS battery management system main control module receives the test-in instruction, the real software and hardware version of the BMS battery management system is uploaded to the upper computer test platform for version analysis and display, and the analyzed real software and hardware version is compared with the version number marked by the product shell to complete the version reading function.
And when the upper computer test platform sends out a test instruction, the upper computer test platform analyzes and displays the instruction, compares the two instructions and judges whether the main control module can store correctly.
In practical use, a master multi-slave BMS battery management system is difficult to test because the tool harness is complex and the system is huge. The invention solves the problem that one master control and a plurality of slave control huge systems cannot be tested from the perspective of the whole management system of the BMS, and considers the method of using one real master control and one real slave control to simulate other slave control by using software to replace the whole master multi-slave real system.
The beneficial effects of the invention are as follows: the function test system and the test method thereof based on the minimum battery management system realize the completion of the master multi-slave BMS system joint debugging test based on the master-slave minimum system, and have the advantages of simple operation system, small wiring tool size and low cost.
Drawings
The invention is further described below with reference to the drawings and examples.
Fig. 1 is a system schematic diagram of a preferred embodiment of the present invention.
Detailed Description
The present invention will now be described in detail with reference to the accompanying drawings. The figure is a simplified schematic diagram illustrating the basic structure of the invention only by way of illustration, and therefore it shows only the constitution related to the invention.
As shown in fig. 1, the function test system based on the minimum battery management system of the present invention includes an upper computer test platform for parameter setting, displaying and simulating at least one slave control module in the BMS battery management system, and a BMS-master-slave minimum system connected with the upper computer test platform, for providing a master control module and a slave control module of a real BMS battery management system, collecting data of other modules and uploading the data to the upper computer test platform for display;
the battery simulation unit is used for simulating the single battery voltage signal and providing a simulated single battery voltage signal for the test system; in this embodiment, the battery simulation unit is a battery pack formed by connecting 60 unit batteries in series.
The temperature simulation detection unit is used for simulating the temperature signal of the single battery and providing a simulated temperature signal of the single battery for the test system; the temperature simulation detection unit is realized by adopting a variable resistor box, and can simulate a plurality of single battery temperature signals at the same time, and in the embodiment, 16 single battery temperature signals can be simulated.
The Hall shunt detection unit is used for simulating the total current signal of the battery;
the high-voltage constant-voltage source is used for simulating the total voltage signal of the battery;
the direct current source is used for simulating the charging current;
the charging simulation unit is used for simulating an alternating current charging connection confirmation CC signal, a direct current charging connection confirmation CC2 signal and a control pilot CP signal during charging;
the high-precision universal meter is used for measuring the real data of each analog unit and providing a comparison signal for the battery management system; a BMS supply voltage source.
The upper computer test platform and a master-slave system carry out information interaction through the RS 232-CAN communication unit, and the master-slave minimum system reports the voltage, current, SOC, temperature and fault information of the battery management system to the upper computer test platform which displays on a man-machine interaction interface. In order to realize the joint debugging test of the battery management system with one master and multiple slaves, the battery management system software with one master and multiple slaves is configured into a minimum system with one master and multiple slaves in the upper computer test platform software of the battery management system, namely, when the joint debugging test of the battery management system with one master and multiple slaves is carried out, only one real master control module and one real slave control module are needed to be connected, and other slave control modules in the system are simulated by using the upper computer test platform software, so that the communication with the master control module is realized, and the voltage and temperature information of a single battery are reported to ensure the integrity of the BMS system and the normal internal communication of the system.
The battery simulation unit, the temperature simulation detection unit, the high-voltage constant-voltage source, the charging simulation unit and the direct-current source are respectively connected with the signal input end of a master-slave minimum system, and corresponding single voltage signals, single temperature signals, total voltage signals, CC (common control) signals, CP (common control) signals and CC2 signals of the charger and charging current signals are respectively provided for the system. The battery management system power supply serves as an operating power supply of the BMS system.
The battery simulation unit, the temperature simulation detection unit, the high-precision universal meter, the Hall shunt detection unit, the high-voltage constant-voltage source, the charging simulation unit, the direct-current source, the battery management system power supply and the upper computer test platform are communicated through RS232, and the analog signals and the power supply signals are displayed on the interface of the upper computer test platform.
Specifically, the BMS-master-slave minimum system comprises a real main control module and a real slave control module, the main control module and the slave control module communicate through an internal CAN bus, the real slave control module collects voltage data of the single battery provided by the battery simulation unit and single battery temperature data provided by the temperature simulation detection unit and reports the voltage data and the single battery temperature data to the real main control module, and the real main control module collects total voltage signals and total current signals of the battery provided by the high-voltage constant-voltage source and the Hall shunt detection unit and displays a display interface of the upper computer test platform together with voltage and temperature information reported by the slave control module.
A functional test method based on a minimum battery management system mainly comprises a state parameter measurement precision test, an equilibrium current test, a static current test, a battery fault diagnosis test, an SOC evaluation functional test, a charging simulation unit test, a product software and hardware version reading test, a data storage test and other tests, and the specific methods of each test are respectively described in detail below.
(1) When the state parameter measurement precision of the battery management system is tested, the real slave control module collects voltage and temperature signals provided by the battery simulation unit and the temperature simulation detection unit, the voltage and temperature signals are reported to the real master control module through an internal CAN, the voltage and temperature signals collected by other slave control modules in the BMS battery management system are simulated by the upper computer test platform, and the voltage and temperature information unified to the real master control module, namely the same voltage and temperature information, is reported to the real master control module according to the communication protocol requirements of the upper computer test platform and the real master control module, for example, each simulated slave control module reports a voltage value between 2.5V and 3.7V and a temperature value of 25 ℃, and in the embodiment, the RS232 to CAN communication unit is adopted to realize the communication between the upper computer test platform and the real master control module; the real main control module collects the total voltage signal and the total current signal provided by the high-voltage constant-voltage source and the Hall shunt detection unit, and displays the total voltage signal and the total current signal together with the voltage and the temperature information reported to the main control module by the slave control module (the slave control module refers to the real slave control module, because only the signal collected by the real slave control can be reported to the real main control module); meanwhile, through the real state parameter data of each simulation unit detected by the high-precision multimeter, judging whether the functions of the BMS battery management system meet the design requirements or not through the comparison of the data collected by the battery management system and the real state parameter data of each simulation unit detected by the high-precision multimeter, and finishing the test of the state parameter test precision of the BMS battery management system;
(2) When the balanced current is tested, the voltages of the single batteries in the battery simulation unit are required to be sequentially adjusted to be in an unbalanced state, namely, the highest voltage of the single batteries is larger than the cut-off voltage or the difference between the highest voltage and the lowest voltage of the single batteries is larger than a threshold value, for example: the highest voltage of the single battery of the lithium iron phosphate battery is more than 3.7V of the charge cut-off voltage or the pressure difference between the highest voltage of the single battery and the lowest voltage of the single battery is more than 200mV. The BMS battery management system reads the CAN message, measures the voltage value of the consumption resistor at the position of the single battery with the highest voltage and feeds back the voltage value to the upper computer test platform, and judges whether the balanced current value is in a reasonable range or not according to the calculated balanced current value.
The method for calculating the balanced current comprises the following steps: equalizing current = measured voltage value/resistance value of the drain resistor. The resistance value of the consumption resistor is a known value, and the balanced current value can be calculated only by measuring the voltage value.
(3) When the static current is tested, the parameters of the battery simulation unit are preset in the upper computer test platform, the battery simulation unit is started to output according to the setting, the battery simulation unit is stood for a period of time, the working current of the single batteries in the battery simulation unit is measured by the high-precision universal meter and fed back to the upper computer test platform, and the upper computer test platform judges whether the test result meets the requirement according to the preset parameters, wherein the number of test strings, the cut-off voltage and the running time of the single batteries can be set through upper computer software.
(4) When the battery fault diagnosis tests, the battery simulation unit, the temperature simulation unit, the high-voltage power supply and the direct-current power supply provide various abnormal alarm simulation voltage, temperature, total voltage and total current signals for the BMS battery management system according to instructions issued by the upper computer test platform, the main control module of the BMS battery management system detects the abnormal simulation signals and feeds test results back to the upper computer test platform, and the upper computer test platform compares the feedback results with the simulation signals given by the platform to judge whether the BMS battery management system can correctly detect alarm information and give corresponding alarm.
(5) When the SOC evaluation function is tested, the initial value of the SOC in the upper computer test platform is firstly adjusted to be consistent with the initial value of the SOC of the BMS battery management system, then the charging process of the battery is simulated, the single battery is charged/discharged for a certain time, the SOC value read by the BMS battery management system is compared with the SOC value of the upper computer test platform, wherein a direct current source (adopting a direct current constant current source) receives an instruction of the upper computer test platform, the current output by the direct current source is adjusted, the battery simulation unit is charged for a certain time, the main control module acquires the charging current output by the direct current source, the BMS battery management system calculates the charged SOC value according to an internal SOC estimation method, and the charged SOC value is compared with the SOC value calculated by the test platform, so that the estimation of the SOC estimation precision is completed.
(6) When the charging simulation unit is used for testing, the charging simulation unit respectively simulates an alternating current charging connection confirmation CC signal, a direct current charging connection confirmation CC2 signal and a control pilot CP signal; the AC charging connection confirms the CC signal simulation test, the upper computer test platform outputs resistors with different resistance values to the ground, the BMS battery management system detects the voltages at two ends of the output resistor, the resistance value of the output resistor is calculated according to the voltage division principle and fed back to the upper computer test platform for comparison, and whether the BMS battery management system recognizes the CC signal is judged; based on the principle, the upper computer test platform outputs resistors with different resistance values to the ground, the BMS battery management system detects the voltages at two ends of the output resistor, calculates the resistance value of the output resistor according to the voltage division principle and feeds back the resistance value to the upper computer test platform for comparison, and judges whether the BMS battery management system recognizes the CC2 signal; when the pilot CP signal simulation test is controlled, the charging simulation unit outputs PWM waveform with 1KHz and 0-100% duty ratio, the BMS battery management system detects the simulation signal and feeds back the result to the upper computer test platform for comparison, and whether the BMS correctly identifies the CP signal is judged.
(7) When the software and hardware version of the product is read and tested, the upper computer test platform sends a test command to the BMS battery management system main control module, and after the BMS battery management system main control module receives the test command, the real software and hardware version of the BMS battery management system is uploaded to the upper computer test platform for version analysis and display, and the analyzed real software and hardware version is compared with the version number marked by the product shell, so that the version reading function is completed.
(8) When the data storage test is performed, the upper computer test platform sends a specific instruction to the BMS battery management system main control module, the BMS battery management system main control module receives the instruction for storage, and returns the instruction to the upper computer test platform for analysis and display when the upper computer test platform sends out a test instruction, and the two instructions are compared to judge whether the main control module can store correctly.
In practical use, a master multi-slave BMS battery management system is difficult to test because the tool harness is complex and the system is huge. The invention solves the problem that one master control and a plurality of slave control huge systems cannot be tested from the perspective of the whole management system of the BMS, and considers the method of using one real master control and one real slave control to simulate other slave control by using software to replace the whole master multi-slave real system.
While the foregoing is directed to the preferred embodiment of the present invention, other and further embodiments of the invention may be devised without departing from the basic scope thereof, and the scope thereof is determined by the claims that follow. The technical scope of the present invention is not limited to the description, but must be determined according to the scope of claims.