Automated testing methods and systems for battery control units
By using automated testing systems and software for computer equipment, automated testing of the BCU was achieved, solving the problems of low testing efficiency and poor consistency, and improving testing efficiency and accuracy.
Patent Information
- Application Number
- CN202411757672.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2044-12-03
AI Technical Summary
In the existing technology, the testing efficiency of battery control unit (BCU) is low and the consistency is poor. Manual testing is time-consuming, labor-intensive, and prone to errors, which affects the accuracy and consistency of the test.
An automated testing system in computer equipment is used to execute test scripts through automated testing software to perform voltage and current calibration, input/output control detection, communication detection, data writing, data verification, network port detection, voltage and current sampling accuracy detection, insulation resistance value detection, and temperature detection, thereby realizing automated testing of the BCU.
This improved the testing efficiency of the BCU, reduced the test error rate, and ensured the consistency and accuracy of the BCU's quality.
Smart Images

Figure CN119575952B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of battery management technology, and more specifically, to an automated testing method and system for battery control units. Background Technology
[0002] In a battery management system (BMS), the battery control unit (BCU) has complex functions, and there are many test cases when testing the performance of the BCU.
[0003] Currently, performance testing of the BCU requires testers to manually perform tests one by one according to the test cases. This consumes a significant amount of time, manpower, and resources. The complex testing environment and numerous testing steps result in a high error rate for manual testing, making it easy to miss some test items and increase testing risks. Furthermore, the varying skill levels of testers can easily affect the consistency and accuracy of the BCU.
[0004] Therefore, improving the testing efficiency of BCUs and ensuring the consistency of BCU quality are urgent problems that need to be solved. Summary of the Invention
[0005] The purpose of this application is to provide an automated testing method and system for battery control units (BCUs) to address the shortcomings of the prior art, thereby solving the practical problems of low testing efficiency and poor consistency in the prior art.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of this application are as follows:
[0007] In a first aspect, embodiments of this application provide an automated testing method for a battery control unit, applied to a computer device in an automated testing system for a battery control unit. The automated testing system for the battery control unit includes: the computer device, a battery control unit communicatively connected to the computer device, an input / output module, a DC standard source, and a battery management unit; wherein the battery control unit is communicatively connected to the input / output module and the battery management unit; the method includes:
[0008] The configuration information corresponding to each test item in the test process of the battery control unit is obtained, and the test script corresponding to each test item is generated according to the configuration information corresponding to each test item. The test items in the test process include at least: voltage and current calibration test item and input / output control detection test item.
[0009] Run the test script corresponding to the voltage and current calibration test item, read the internal total voltage, external total voltage and current collected by the battery control unit, and perform zero-point calibration and gain calibration on the internal total voltage, external total voltage and current in sequence.
[0010] Run the test script corresponding to the input / output control detection test item, read the level status of the input interface of the battery control unit, read the status of each switch quantity of the input / output module connected to the battery control unit, read the input level status returned by the battery management unit, and test the input / output function, dry contact function and address encoding function of the battery control unit according to the level status, the status of each switch quantity and the input level status.
[0011] As an optional implementation, the step of reading the internal total voltage, external total voltage, and current collected by the battery control unit, and sequentially performing zero-point calibration and gain calibration on the internal total voltage, external total voltage, and current, includes:
[0012] The internal total voltage, external total voltage, and current collected by the battery control unit are read through the second serial bus, and a zero-point calibration command is sent to the battery control unit through the second serial bus to calibrate the internal total voltage, external total voltage, and current to zero.
[0013] The system sends a current and voltage output command to the DC standard source via the first serial bus to control the DC standard source to output a first current and voltage. It also reads the internal total voltage, external total voltage, and current collected by the battery control unit via the second serial bus and sends a gain calibration command to the battery control unit via the second serial bus to perform gain calibration on the internal total voltage, external total voltage, and current.
[0014] A restart command is sent to the battery control unit via the second serial bus to control the battery control unit to restart, and a test start command is sent to the battery control unit via the second serial bus to make the battery control unit re-enter the test working state.
[0015] As an optional implementation, the step of reading the level state of the input interface of the battery control unit, reading the state of each switch quantity of the input / output module connected to the battery control unit, reading the input level state returned by the battery management unit, and testing the input / output function, dry contact function, and address encoding function of the battery control unit based on the level state, the state of each switch quantity, and the input level state includes:
[0016] The level of each internal high-side output interface of the battery control unit is controlled by the second serial bus, and the level status of each return data input interface and each data input interface of the battery control unit is read by the second serial bus to detect whether the input and output functions of the battery control unit are normal.
[0017] The second serial bus is used to determine whether each switch of the input / output module is in an open state. If so, the second serial bus is used to control the battery control unit to close each dry contact inside the battery control unit in sequence, and the second serial bus is used to read the status of each switch of the input / output module in sequence to detect whether each dry contact inside the battery control unit is normal.
[0018] The system determines whether the input level status returned by the battery management unit is high through the controller local area network bus. If so, it controls the address encoding input / output interface of the battery control unit to output a low level through the second serial port bus, and determines whether the input level status returned by the battery management unit is low through the controller local area network bus.
[0019] The second serial bus controls the address encoding input / output interface of the battery control unit to output a high level, and the controller local area network bus determines whether the input level status returned by the battery management unit is high, thereby detecting whether the address encoding function of the battery control unit is normal.
[0020] As an optional implementation, the test items in the test process also include: a communication detection test item; the method also includes:
[0021] Run the test script corresponding to the communication detection test item, send the output shutdown command and DC mode initialization command to the DC standard source through the first serial port bus, and check whether the first serial port communication is normal.
[0022] The first value returned by the battery control unit and the second value returned by the input / output module are read through the second serial bus. Based on the first value, the second value and the preset value, the second serial communication is checked to see if it is normal.
[0023] The third value returned by the battery control unit is read through the controller local area network bus, and the controller local area network communication is checked for normality based on the third value and the preset value.
[0024] As an optional implementation, the test items in the test process also include: a data writing test item; the method also includes:
[0025] Run the test script corresponding to the data writing test item, send the factory reset command to the battery control unit through the second serial bus, and set the first parameter set and the second parameter set of the battery control unit;
[0026] The test start command is sent to the battery control unit via the second serial bus, causing the battery control unit to enter the test working state, and the external insulation resistor is disconnected command is sent to the battery control unit via the second serial bus.
[0027] The system sends an identifier and network card physical address writing command to the battery control unit via the controller local area network bus, and writes the identifier and network card physical address obtained by scanning the code into the battery control unit.
[0028] The computer device sends a time calibration command to the battery control unit via the second serial bus and writes the current time of the computer device into the clock chip of the battery control unit.
[0029] As an optional implementation, the test items in the test process also include: a data verification test item; the method also includes:
[0030] Run the test script corresponding to the data verification test item, read the identifier and network card physical address written in the battery control unit through the controller local area network bus, and verify whether the identifier and network card physical address are written correctly;
[0031] The time of the clock chip of the battery control unit is read through the second serial bus, and the time is verified to be correct.
[0032] The software version number and hardware version number of the battery control unit are read according to the second serial bus, and the correctness of the software version number and hardware version number is verified.
[0033] As an optional implementation, the test items in the test procedure also include: a voltage and current sampling accuracy detection test item; the method also includes:
[0034] Run the test script corresponding to the voltage and current sampling accuracy detection test item, and send multiple current and voltage output commands to the DC standard source through the first serial bus to control the DC standard source to output multiple sets of current and voltage;
[0035] The battery control unit reads the internal total voltage, external total voltage, and current collected by the second serial bus. Based on the internal total voltage, external total voltage, current, and current-voltage combinations, the voltage and current sampling accuracy of the battery control unit is detected.
[0036] As an optional implementation, the test items in the test procedure also include: insulation resistance value detection test item; the method also includes:
[0037] Run the test script corresponding to the insulation resistance value detection test item, send a current and voltage output command to the DC standard source through the first serial bus, control the DC standard source to output a second current and voltage, and send a command to the battery control unit to connect an external insulation resistor through the second serial bus, control the battery control unit to connect an insulation resistor;
[0038] The second serial bus is used to send a command to the battery control unit to start the insulation resistance value detection, and the second serial bus is used to read the insulation resistance value collected by the battery control unit.
[0039] As an optional implementation, the test items in the test process also include: a temperature detection test item; the method also includes:
[0040] Run the test script corresponding to the temperature detection test item, read the impedance of each resistor in the battery control unit through the second serial bus, and detect whether the temperature of the battery control unit is normal according to the impedance of each resistor and the preset impedance-temperature mapping table. The resistance value of each resistor is a preset first resistance value.
[0041] Secondly, embodiments of this application provide an automated testing system for a battery control unit. The automated testing system for the battery control unit includes: a computer device, a battery control unit communicatively connected to the computer device, an input / output module, a DC standard source, and a battery management unit; wherein the battery control unit is communicatively connected to the input / output module and the battery management unit.
[0042] The automated testing system for the battery control unit performs the steps of the automated testing method for the battery control unit as described in the first aspect above.
[0043] The beneficial effects of this application are:
[0044] This application provides an automated testing method and system for a battery control unit. The computer equipment, based on the testing requirements of the battery control unit, acquires each test item in the testing process of the battery control unit, obtains the configuration information corresponding to each test item, determines the test operation steps corresponding to each test item, and programs the test scripts corresponding to each test item. The test items in the testing process include at least: voltage and current calibration test items and input / output control detection test items. When calibrating the voltage and current of the battery control unit, the pre-installed automated testing software for the battery control unit runs the test script corresponding to the voltage and current calibration test item, reads the internal total voltage, external total voltage, and current collected by the battery control unit, and sequentially performs zero-point calibration and gain calibration on the internal total voltage, external total voltage, and current collected by the battery control unit. When detecting the input / output control of the battery control unit, the automated testing software runs the test script corresponding to the input / output control detection test item, reads the level state of the input interface of the battery control unit, and tests the input / output functions of the battery control unit based on the level state of the input interface. It also reads the state of each switch quantity of the input / output module connected to the battery control unit and tests the dry contact function of the battery control unit based on the state of each switch quantity. The system reads the input level status returned by the battery management unit (BMU) via the Controller Area Network (CLAN) bus, and tests the address encoding function of the BMU based on the input level status. Voltage and current calibration of the BMU ensures the accuracy of voltage and current measurements, improving the measurement precision. Input / output control detection of the BMU tests its input / output functions, dry contact functions, and address encoding functions. This improves testing efficiency, reduces the error rate, and ensures consistent quality of the BMUs. Attached Figure Description
[0045] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0046] Figure 1 A schematic diagram of the architecture of an automated testing system for a battery control unit provided in an embodiment of this application;
[0047] Figure 2 This is a first flowchart illustrating the automated testing method for a battery control unit provided in an embodiment of this application.
[0048] Figure 3This is a second flowchart illustrating the automated testing method for the battery control unit provided in an embodiment of this application.
[0049] Figure 4 This is a third flowchart illustrating the automated testing method for a battery control unit provided in an embodiment of this application.
[0050] Figure 5 A schematic diagram illustrating the zero-point calibration and gain calibration process of the automated testing method for the battery control unit provided in this application embodiment;
[0051] Figure 6 This is a flowchart illustrating the automated testing method for a battery control unit provided in this application, which tests the input / output function, dry contact function, and address encoding function of the battery control unit.
[0052] Figure 7 This is a schematic diagram of the fourth process of the automated testing method for the battery control unit provided in the embodiments of this application;
[0053] Figure 8 This is a schematic diagram of the fifth process of the automated testing method for the battery control unit provided in the embodiments of this application;
[0054] Figure 9 This is a schematic diagram of the sixth process of the automated testing method for the battery control unit provided in the embodiments of this application. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the accompanying drawings in this application are for illustrative and descriptive purposes only and are not intended to limit the scope of protection of this application. Furthermore, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of this application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical contextual relationships may be reversed or implemented simultaneously. In addition, those skilled in the art, guided by the content of this application, may add one or more other operations to the flowcharts, or remove one or more operations from the flowcharts.
[0056] Furthermore, the described embodiments are merely some, not all, of the embodiments of this application. The components of the embodiments of this application described and illustrated herein can typically be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0057] It should be noted that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features declared thereafter, but does not exclude the addition of other features.
[0058] Currently, BCU performance is mainly tested manually, which results in high consumption of manpower and resources, low testing efficiency, and a high error rate, affecting the consistency and accuracy of BCU testing.
[0059] Based on the above-mentioned problems, this application proposes an automated testing method for battery control units (BCUs). By using automated BCU testing software in a computer device, automated testing is initiated and the test scripts corresponding to each test item are executed. The method automatically performs communication testing, data writing, voltage and current calibration, input / output control testing, data verification, network port testing, voltage and current sampling accuracy testing, insulation resistance value testing, and temperature testing on the BCU. It also automatically saves the test results, generates and uploads test reports, thereby achieving automated testing of the BCU, improving testing efficiency, and ensuring the consistency and accuracy of BCU testing.
[0060] Figure 1 This is a schematic diagram of the architecture of the automated testing system for the battery control unit provided in the embodiments of this application, as shown below. Figure 1As shown, the automated testing system for the battery control unit includes a computer, a BCU, input / output modules, a DC standard source, a BMU, and a shunt. The input / output modules can be the data input / output (DI / DO) modules of the PMAC302. The computer includes a first serial port for communication with the DC standard source via a first serial bus (RS232 serial bus). The computer connects to a Universal Serial Bus (USB) to RS485 converter to convert USB signals to RS485 signals, which then communicate with the BCU and the PMAC302's DI / DO modules via a second serial bus (RS485 serial bus). The computer also connects to a USB to Controller Area Network (CAN) converter to convert USB signals to CAN signals, which then communicate with the BCU and BMU via the CAN bus. The computer also communicates with the BCU via a Local Area Network (LAN) bus.
[0061] The BCU communicates with the PMAC302's DI / DO module via an RS485 serial bus and with the BMU via a CAN bus. The shunt is connected to the BCU and the DC standard source via current wires.
[0062] The computer equipment is pre-installed with automated testing software for the BCU, which is used to execute the test scripts corresponding to each test item, communicate with the BCU, the DI / DO module of PMAC302, the DC standard source and the BMU, and perform communication detection, data writing, voltage and current calibration, input and output control detection, data verification, network port detection, voltage and current sampling accuracy detection, insulation resistance value detection and temperature detection on the BCU, thereby realizing automated testing of the BCU.
[0063] The BCU under test is placed on the test fixture and connected to an external relay ( Figure 1 (not shown) and contactor ( Figure 1 (Connections not shown). The PMAC302's DI / DO module is used to detect the BCU's input / output and dry contact functions. The DC standard source is used to output standard voltage and current. The BMU is used to detect the BCU's encoding function. The shunt is a resistor used by the BCU to measure the battery pack current.
[0064] Figure 2 This is a first flowchart illustrating the automated testing method for a battery control unit provided in an embodiment of this application. The execution entity of this method is the aforementioned... Figure 1 Computer equipment in an automated testing system for battery control units. For example... Figure 2As shown, the method includes:
[0065] S201. Obtain the configuration information corresponding to each test item in the test process of the battery control unit, and generate the test script corresponding to each test item based on the configuration information corresponding to each test item. The test items in the test process include at least: voltage and current calibration test item and input / output control detection test item.
[0066] Optionally, the computer device determines each test item in the BCU's test process based on the user's testing requirements for the BCU, and obtains the configuration information corresponding to each test item input by the user. This configuration information is used to instruct the test operation steps corresponding to each test item. The computer device determines the test operation steps corresponding to each test item based on the configuration information and programs the corresponding Extensible Markup Language (XML) test scripts for each test item. This allows the pre-installed BCU automated testing software on the computer device to run the test scripts corresponding to each test item and execute the test steps for that item.
[0067] The test procedures include at least the following test items: voltage and current calibration test and input / output control detection test. Voltage and current calibration is used to calibrate the voltage and current of the battery pack collected by the BCU, while input / output control detection is used to test whether the BCU's input / output functions, dry contact functions, and address encoding functions are functioning correctly.
[0068] S202. Run the test script corresponding to the voltage and current calibration test item, read the internal total voltage, external total voltage and current collected by the battery control unit, and perform zero-point calibration and gain calibration on the internal total voltage, external total voltage and current in sequence.
[0069] Optionally, when calibrating the BCU for voltage and current, the BCU automated test software in the computer device runs the test script corresponding to the voltage and current calibration test item, performs zero drift check on the voltage and current of the battery pack collected by the BCU, reads the internal total voltage, external total voltage and current of the battery pack collected by the BCU, and performs zero-point calibration on the internal total voltage, external total voltage and current of the battery pack collected by the BCU to ensure the accuracy of the voltage and current collected by the BCU.
[0070] The BCU automated testing software continues to perform gain checks on the voltage and current of the battery pack acquired by the BCU, reads the total internal voltage, total external voltage, and current of the battery pack acquired by the BCU again, and performs gain calibration on the total internal voltage, total external voltage, and current of the battery pack acquired by the BCU to improve the accuracy of the voltage and current acquired by the BCU.
[0071] S203. Run the test script corresponding to the input / output control detection test item, read the level status of the input interface of the battery control unit, read the status of each switch quantity of the input / output module connected to the battery control unit, read the input level status returned by the battery management unit, and test the input / output function, dry contact function and address encoding function of the battery control unit according to the level status, the status of each switch quantity and the input level status.
[0072] Optionally, when performing input / output control testing on the BCU, the BCU automated testing software in the computer device runs the test script corresponding to the input / output control testing test item, reads the level status of the return DI of each contactor connected to the BCU and the level status of each DI of the BCU, and tests the input / output function of the BCU based on the level status of the return DI of each contactor and the level status of each DI of the BCU.
[0073] Read the status of each switch quantity of the DI / DO module of the PMAC302 connected to the BCU, and test the dry contact function of the BCU based on the status of each switch quantity. Read the input level status returned by the BMU through the CAN bus, and test the address encoding function of the BCU based on the input level status. The switch quantity status includes the closed and open states of the switch quantity, and the input level status is the level status of the first input / output (IO1) interface returned by the BMU. The level status of the IO1 interface returned by the BMU is active low.
[0074] In this embodiment, the computer device acquires each test item in the battery control unit's test process according to the battery control unit's test requirements, obtains the configuration information corresponding to each test item, determines the test operation steps corresponding to each test item, and programs the test scripts corresponding to each test item. The test items in the test process include at least: voltage and current calibration test items and input / output control detection test items. When calibrating the battery control unit's voltage and current, the pre-installed automated test software for the battery control unit runs the test script corresponding to the voltage and current calibration test item, reads the internal total voltage, external total voltage, and current collected by the battery control unit, and sequentially performs zero-point calibration and gain calibration on the internal total voltage, external total voltage, and current collected by the battery control unit. When detecting the battery control unit's input / output control, the automated test software for the battery control unit runs the test script corresponding to the input / output control detection test item, reads the level state of the battery control unit's input interface, and tests the input / output functions of the battery control unit based on the level state of the battery control unit's input interface. It also reads the state of each switch quantity of the input / output module connected to the battery control unit and tests the dry contact function of the battery control unit based on the state of each switch quantity. The system reads the input level status returned by the battery management unit (BMU) via the Controller Area Network (CLAN) bus, and tests the address encoding function of the BMU based on the input level status. Voltage and current calibration of the BMU ensures the accuracy of voltage and current measurements, improving the measurement precision. Input / output control detection of the BMU tests its input / output functions, dry contact functions, and address encoding functions. This improves testing efficiency, reduces the error rate, and ensures consistent quality of the BMUs.
[0075] As an optional implementation, the test items in the test process also include: communication detection test items.
[0076] Optionally, the test items in the test procedure also include communication detection test items. Before calibrating the voltage and current of the BCU, communication detection is performed to check whether RS232 serial communication, RS485 serial communication and CAN communication are normal, so that the computer equipment can communicate with the DC standard source via RS232 serial communication, communicate with the DI / DO module of the BCU and PMAC302 via RS485 serial communication, and communicate with the BCU and BMU via CAN communication.
[0077] Figure 3 This is a second flowchart illustrating the automated testing method for the battery control unit provided in this application embodiment, as shown below. Figure 3 As shown, the method also includes:
[0078] S301. Run the test script corresponding to the communication detection test item, send the output shutdown command and DC mode initialization command to the DC standard source through the first serial port bus, and check whether the first serial port communication is normal.
[0079] Optionally, the BCU automated test software in the computer device runs the test script corresponding to the communication detection test item, sends a shutdown output command to the DC standard source through the RS232 serial bus to control the DC standard source to shut down the voltage and current output, and sends a DC mode initialization command to the DC standard source through the RS232 serial bus to put the DC standard source into the initialization DC mode.
[0080] By verifying whether the DC standard source has its voltage and current outputs turned off and whether it is in initial DC mode, the system checks whether the first serial port communication between the computer device and the DC standard source is normal. The first serial port communication is RS232 serial communication. If the DC standard source has its voltage and current outputs turned off and is in initial DC mode, the first serial port communication is normal; otherwise, it indicates an abnormality.
[0081] S302: Read the first value returned by the battery control unit and the second value returned by the input / output module through the second serial port bus, and check whether the second serial port communication is normal based on the first value, the second value and the preset value.
[0082] Optionally, the second serial communication is RS485 serial communication. The BCU's second serial communication includes a first RS485 serial communication channel and a second RS485 serial communication channel. When testing the first RS485 serial communication channel of the BCU, the BCU automated testing software in the computer device continues to run the test script corresponding to the communication test item, and reads the first value returned by the BCU through the RS485 serial bus. If the first value is consistent with the preset value, it indicates that the RS485 serial communication between the computer device and the BCU is normal; otherwise, it indicates that the RS485 serial communication between the computer device and the BCU is abnormal.
[0083] The BCU automated testing software in the computer device reads the second value returned by the DI / DO module of PMAC302 through the RS485 serial bus. If the second value is consistent with the preset value, it means that the RS485 serial communication between the computer device and the DI / DO module of PMAC302 is normal. Otherwise, it means that the RS485 serial communication between the computer device and the DI / DO module of PMAC302 is abnormal.
[0084] After the first RS485 serial communication test of the BCU is completed, the BCU automated test software in the computer device controls the DI / DO module of PMAC302 to close the second relay through the RS485 serial bus, so that the second contactor connected to the BCU is working, and reads the fourth value returned by the BCU through the RS485 serial bus. If the fourth value is consistent with the preset value, it means that the second RS485 serial communication of the BCU is normal; otherwise, it means that the second RS485 serial communication of the BCU is abnormal.
[0085] After the second RS485 serial communication test of the BCU is completed, the BCU automated test software in the computer device controls the DI / DO module of PMAC302 to disconnect the second relay and close the first relay through the RS485 serial bus, so that the first contactor connected to the BCU externally works and switches back to the first RS485 serial communication of the BCU.
[0086] S303: Read the third value returned by the battery control unit through the controller local area network bus, and check whether the controller local area network communication is normal based on the third value and the preset value.
[0087] Optionally, the BCU automated testing software in the computer device continues to run the test script corresponding to the communication detection test item, opens the CAN channel, and reads the third value returned by the BCU through the CAN bus. If the third value is consistent with the preset value, it indicates that the CAN communication between the computer device and the BCU is normal; otherwise, it indicates that the CAN communication between the computer device and the BCU is abnormal.
[0088] In this embodiment, the automated testing software for the battery control unit in the computer device runs the test script corresponding to the communication detection test item. It sends a shutdown output command to the DC standard source via the first serial port bus, controlling the DC standard source to shut down its voltage and current output. It also sends a DC mode initialization command to the DC standard source via the first serial port bus, putting the DC standard source into initialization DC mode. By verifying whether the DC standard source shuts down its output and is in initialization DC mode, the system checks whether the first serial port communication is normal. The system reads the first value returned by the battery control unit via the second serial port bus. Based on the first value and a preset value, it checks whether the second serial port communication between the computer device and the battery control unit is normal. Similarly, it reads the second value returned by the input / output module via the second serial port bus. Based on the second value and a preset value, it checks whether the second serial port communication between the computer device and the input / output module is normal. Finally, it reads the third value returned by the battery control unit via the controller area network (CAN) bus. Based on the third value and a preset value, it checks whether the CAN communication is normal. Through these communication tests, the system ensures that the computer device maintains first serial port communication with the DC standard source, second serial port communication with the battery control unit and input / output module, and CAN communication with the battery control unit and battery management unit.
[0089] It's worth noting that the testing process also includes a network port detection test, used to check if the LAN port is functioning correctly. Specifically, the BCU automated testing software in the computer device runs the test script corresponding to the network port detection test, reading the fifth value returned by the BCU through the LAN bus connected to the LAN port. If the fifth value matches the preset value, it indicates that the LAN communication between the computer device and the BCU is normal, i.e., the LAN port function is normal; otherwise, it indicates that the LAN communication between the computer device and the BCU is abnormal, i.e., the LAN port function is abnormal.
[0090] As an optional implementation, the test items in the test process also include: data writing test items.
[0091] Optionally, the test items in the test process also include a data writing test item, which involves writing data into the BCU after the communication test. The communication test and data writing are preparations for the BCU test.
[0092] Figure 4 This is a schematic diagram of the third process of the automated testing method for the battery control unit provided in the embodiments of this application, as shown below. Figure 4 As shown, the method also includes:
[0093] S401: Write the running data into the test script corresponding to the test item, send the factory reset command to the battery control unit through the second serial bus, and set the first parameter set and the second parameter set of the battery control unit.
[0094] Optionally, the BCU automated test software in the computer device writes the running data into the test script corresponding to the test item, sends a factory reset command to the BCU through the RS485 serial bus, so that the BCU is restored to factory settings, and sets the first parameter set and the second parameter set of the BCU according to the parameters input by the user, so that the first parameter set and the second parameter set of the BCU are in the default value state.
[0095] The first parameter set of the BCU is the system parameter set of the BCU, which is a set of all factory-set parameters of the BCU. The factory-set parameters are fixed preset values. The second parameter set of the BCU is the user parameter set of the BCU. The user parameters can be preset judgment conditions input by the user, such as the preset voltage range used to judge voltage and the preset current range used to judge current during voltage and current calibration and voltage and current sampling accuracy detection.
[0096] S402. Send a test start command to the battery control unit via the second serial bus, causing the battery control unit to enter the test working state, and send a command to disconnect the external insulation resistor to the battery control unit via the second serial bus.
[0097] Optionally, the BCU automated testing software in the computer device continues to run the test script corresponding to the data writing test item, and sends a test start command to the BCU through the RS485 serial bus to control the BCU to enter the test working state.
[0098] After detecting that the BCU has entered the test operation state, a command to disconnect the external insulation resistor is sent to the BCU via the RS485 serial bus, controlling the BCU to disconnect the external insulation resistor. The insulation resistor includes both positive and negative terminal insulation resistors.
[0099] S403: Send an identifier and network card physical address writing command to the battery control unit via the controller local area network bus, and write the identifier and network card physical address obtained by scanning the code into the battery control unit.
[0100] Optionally, the BCU automated testing software in the computer device continues to run the test script corresponding to the data writing test item, and sends the identifier and network card physical address writing command to the BCU through the CAN bus, writing the BCU identifier and network card physical address obtained by scanning the QR code in advance into the BCU.
[0101] The BCU is identified by its unique serial number (SN) and its network card physical address is its unique media access control address (MAC). Based on the BCU's SN and MAC address, the corresponding BCU can be quickly identified, which facilitates subsequent BCU maintenance and after-sales service.
[0102] S404: Send a time calibration command to the battery control unit via the second serial bus, and write the current time of the computer device into the clock chip of the battery control unit.
[0103] Optionally, the BCU automated test software in the computer device continues to run the test script corresponding to the data writing test item, and sends a time calibration command to the BCU through the RS485 serial bus. The time calibration command is used to indicate the current time of the computer device and write the current time of the computer device into the clock chip of the BCU to start the BCU to keep time according to the current correct time.
[0104] In this embodiment, the automated testing software for the battery control unit in the computer device writes data into the test script corresponding to the test item. It sends a factory reset command to the battery control unit via the second serial bus, controlling the battery control unit to restore its factory settings and setting the first and second parameter sets of the battery control unit to their default values. A test start command is sent to the battery control unit via the second serial bus, controlling the battery control unit to enter the test working state. A command to disconnect the external insulation resistor is also sent to the battery control unit via the second serial bus, controlling the battery control unit to disconnect the external positive and negative insulation resistors. An identifier and network card physical address write command is sent to the battery control unit via the controller area network bus, writing the identifier and network card physical address obtained from a pre-scanned QR code into the battery control unit for quick location of the battery control unit corresponding to the identifier and network card physical address. A time calibration command is sent to the battery control unit via the second serial bus, writing the current time of the computer device indicated by the time calibration command into the clock chip of the battery control unit, starting the battery control unit to run at the current time. Through data writing, the identifier and network card physical address of the battery control unit are written, and the time of the battery control unit is corrected.
[0105] The following is a detailed explanation of the process of reading the internal total voltage, external total voltage, and current collected by the battery control unit, and performing zero-point calibration and gain calibration on the internal total voltage, external total voltage, and current in sequence.
[0106] Figure 5 This is a schematic diagram illustrating the zero-point calibration and gain calibration process of the automated testing method for the battery control unit provided in this application embodiment. Figure 5As shown, step S202 above, which involves reading the internal total voltage, external total voltage, and current collected by the battery control unit, and sequentially performing zero-point calibration and gain calibration on the internal total voltage, external total voltage, and current, includes:
[0107] S501: Read the internal total voltage, external total voltage, and current collected by the battery control unit through the second serial bus, and send a zero-point calibration command to the battery control unit through the second serial bus to calibrate the internal total voltage, external total voltage, and current to zero.
[0108] Optionally, the BCU automated testing software in the computer device runs the test script corresponding to the voltage and current calibration test item to perform zero-point calibration on the voltage and current of the battery pack acquired by the BCU. Specifically, a zero-value current and voltage output command is sent to the DC standard source via the RS232 serial bus to control the DC standard source to output 0V voltage and 0A current. After waiting for 5 seconds to ensure that the voltage and current output is stable, the internal total voltage, external total voltage, and current of the battery pack acquired by the BCU are read via the RS485 serial bus. The acquisition chip of the BCU is connected to both ends of the shunt to acquire the current, and the shunt can be a resistor.
[0109] Based on the battery pack's internal total voltage, external total voltage, and current collected by the BCU, zero-drift checks are performed on the internal total voltage, external total voltage, and current to verify whether the BCU-collected internal and external total voltages are within preset voltage and current ranges. The preset voltage and current ranges can be ±5% of the DC standard source output voltage and current. After the zero-drift check, a zero-point calibration command is sent to the BCU via the RS485 serial bus to calibrate the battery pack's internal and external total voltages and current to zero. After zero-point calibration, the battery pack's internal and external total voltages and current are read again via the RS485 serial bus to verify whether the BCU-collected internal and external total voltages and current are indeed calibrated to zero.
[0110] S502: Send a current and voltage output command to the DC standard source through the first serial bus to control the DC standard source to output the first current and voltage, and read the internal total voltage, external total voltage and current collected by the battery control unit through the second serial bus. Send a gain calibration command to the battery control unit through the second serial bus to perform gain calibration on the internal total voltage, external total voltage and current.
[0111] Optionally, the BCU automated test software in the computer device continues to run the test scripts corresponding to the voltage and current calibration test items to perform gain calibration on the BCU. Specifically, a current and voltage output command is sent to the DC standard source via the RS232 serial bus to control the DC standard source to output a first current and voltage. For example, the first current and voltage can be 1000V voltage and 200A current, that is, the current and voltage output command controls the DC standard source to output 1000V voltage and 200A current.
[0112] After waiting 5 seconds to ensure stable voltage and current output, the internal total voltage, external total voltage, and current of the battery pack collected by the BCU are read via the RS485 serial bus. Based on the internal total voltage, external total voltage, and current collected by the BCU, internal total voltage gain, external total voltage gain, and current gain checks are performed on the BCU to verify whether the internal and external total voltages and the current of the battery pack collected by the BCU are within the preset voltage and current ranges. For example, if the DC standard source outputs 1000V and 200A during gain calibration, the preset voltage range can be 900-1100V, and the preset current range can be 195-205A.
[0113] After gain check, a gain calibration command is sent to the BCU via RS485 serial bus to calibrate the internal total voltage, external total voltage, and current of the battery pack collected by the BCU. This calibration ensures that the errors between the internal and external total voltages of the battery pack collected by the BCU and the voltage output from the DC standard source are less than 0.2%, and the errors between the current collected by the BCU and the current output from the DC standard source are also less than 0.2%. After gain calibration, the internal and external total voltages and current of the battery pack collected by the BCU are read again via RS485 serial bus to verify whether the errors between the internal and external total voltages and current collected by the BCU and the voltage and current output from the DC standard source are less than 0.2%.
[0114] S503 sends a restart command to the battery control unit via the second serial bus to control the battery control unit to restart, and sends a test start command to the battery control unit via the second serial bus to make the battery control unit re-enter the test working state.
[0115] Optionally, the BCU automated testing software in the computer device continues to run the test scripts corresponding to the voltage and current calibration test items, and sends a restart command to the BCU via the RS485 serial bus to control the BCU to perform a restart. After the BCU restarts, the BCU automated testing software sends a test start command to the BCU via the RS485 serial bus to control the BCU to re-enter the test working state. By restarting the BCU, it is verified whether the data written to the BCU in the aforementioned embodiment is saved and effective after power failure.
[0116] In this embodiment, the automated testing software for the battery control unit in the computer device runs the test script corresponding to the voltage and current calibration test items. It reads the internal total voltage, external total voltage, and current collected by the battery control unit via the second serial bus, and sends a zero-point calibration command to the battery control unit via the second serial bus to calibrate the internal total voltage, external total voltage, and current to zero and verify them. It sends a current and voltage output command to the DC standard source via the first serial bus to control the DC standard source to output a first current and voltage, and reads the internal total voltage, external total voltage, and current collected by the battery control unit via the second serial bus. It then sends a gain calibration command to the battery control unit via the second serial bus to calibrate the internal total voltage, external total voltage, and current and verify them. Finally, it sends a restart command to the battery control unit via the second serial bus to control the battery control unit to restart, and sends a test start command to the battery control unit via the second serial bus to control the battery control unit to re-enter the test working state. By performing zero-point calibration and gain calibration on the battery control unit, the accuracy of the voltage and current measurements of the battery control unit is ensured, and the voltage and current measurement accuracy of the battery control unit is improved. Restarting the battery control unit verifies the power-off retention function of the battery control unit.
[0117] The following is a detailed explanation of the process of reading the level status of the input interface of the battery control unit, reading the status of each switch quantity of the input / output module connected to the battery control unit, reading the input level status returned by the battery management unit, and testing the input / output function, dry contact function, and address encoding function of the battery control unit based on the level status, the status of each switch quantity, and the input level status.
[0118] Figure 6 This is a flowchart illustrating the automated testing method for a battery control unit provided in this application, demonstrating the testing of the battery control unit's input / output functions, dry contact functions, and address encoding functions. Figure 6 As shown, step S203 above, which involves reading the level state of the input interface of the battery control unit, reading the state of each switch quantity of the input / output module connected to the battery control unit, reading the input level state returned by the battery management unit, and testing the input / output function, dry contact function, and address encoding function of the battery control unit based on the level state, the state of each switch quantity, and the input level state, includes:
[0119] S601. Control the level of each internal high-side output interface of the battery control unit through the second serial bus, and read the level status of each return data input interface and the level status of each data input interface of the battery control unit through the second serial bus to detect whether the input and output functions of the battery control unit are normal.
[0120] Optionally, the BCU automated test software in the computer device runs the test script corresponding to the input / output control detection test item, and controls the level of each internal high-side output interface of the BCU to a low level through the RS485 serial bus. The level of each internal high-side output interface of the BCU includes the levels of DOH1, DOH2, DOH3 and DOH4.
[0121] The return DI levels of each contactor connected to the BCU include the levels of FB1, FB2, FB3, and FB4. The level levels of each DI of the BCU include the levels of DIL1, DIL2, DIH3, and DIH4. The level levels of the return DI of each contactor connected to the BCU and the level levels of each DI of the BCU are read via the RS485 serial bus when the levels of each internal high-side output interface of the BCU are low. Specifically, if the input / output functions of the BCU are normal, and the levels of DOH1, DOH2, DOH3, and DOH4 are all low, then the level levels of FB1, FB2, FB3, and FB4, as well as the level levels of DIL1, DIL2, DIH3, and DIH4, are also all low.
[0122] The RS485 serial bus is used to sequentially control DOH1, DOH2, DOH3, and DOH4 to be at a high level. The RS485 serial bus is also used to sequentially read the return DI level of each contactor connected to the BCU and the level status of each DI of the BCU when only DOH1, DOH2, DOH3, and DOH4 are at a high level, respectively, to further test the input and output functions of the BCU.
[0123] For example, if the input / output function of the BCU is normal, DOH1 is at a high level, and DOH2, DOH3 and DOH4 are all at a low level, then the level of FB1 is at a high level, the level of FB2, FB3 and FB4 is at a low level, the level of DIL1 is at a high level, and the level of DIL2, DIH3 and DIH4 is at a low level.
[0124] In other words, if the level of each internal high-side output interface of the BCU is consistent with the level of each return data input interface of the BCU and the level of each data input interface, it means that the input and output functions of the BCU are normal.
[0125] S602. Determine whether each switch of the input / output module is in the off state through the second serial bus. If so, control the battery control unit to close each dry contact inside the battery control unit in sequence through the second serial bus, and read the status of each switch of the input / output module in sequence through the second serial bus to check whether each dry contact inside the battery control unit is normal.
[0126] Optionally, the BCU automated testing software in the computer device continues to run the test scripts corresponding to the input / output control detection test items, reads the values of the switch quantities S1 and S2 of the PMAC302's DI / DO module via the RS485 serial bus, and determines whether switch quantities S1 and S2 are in an open state based on their values. Specifically, if both switch quantities S1 and S2 of the PMAC302's DI / DO module are 0, then both switch quantities S1 and S2 of the PMAC302's DI / DO module are in an open state, indicating that dry contact 1 and dry contact 2 inside the BCU are both open.
[0127] If it is determined that both switch quantity S1 and switch quantity S2 are in the open state, then the BCU is controlled to close the internal dry contact 1 via the RS485 serial bus. Then, the values of switch quantity S1 and switch quantity S2 of the PMAC302's DI / DO module are read via the RS485 serial bus. If switch quantity S1 is 1 and switch quantity S2 is 0, then the switch quantity S1 of the PMAC302's DI / DO module is in the closed state and switch quantity S2 is in the open state, indicating that the internal dry contact 1 of the BCU is closed and the dry contact 2 is open. At this time, it is verified that the function of the internal dry contact 1 of the BCU is normal.
[0128] Accordingly, the BCU is controlled via RS485 serial bus to disconnect internal dry contact 1 and close internal dry contact 2. Then, the values of switch inputs S1 and S2 of the PMAC302's DI / DO module are read via RS485 serial bus. If switch input S1 is 0 and switch input S2 is 1, then switch input S1 of the PMAC302's DI / DO module is in an open state and switch input S2 is in a closed state, indicating that internal dry contact 1 of the BCU is open and dry contact 2 is closed. This verifies that the BCU's function of closing internal dry contact 2 is normal. After verification, the BCU is controlled via RS485 serial bus to disconnect internal dry contact 2.
[0129] In other words, if the closed / open state of each internal dry contact of the BCU is consistent with the closed / open state of the corresponding switch quantity of the DI / DO module of the PMAC302, it means that the function of each internal dry contact of the BCU is normal.
[0130] S603. Determine whether the input level status returned by the battery management unit is high through the controller local area network bus. If so, control the address encoding input / output interface of the battery control unit to output a low level through the second serial port bus, and determine whether the input level status returned by the battery management unit is low through the controller local area network bus.
[0131] Optionally, the BCU automated test software in the computer device continues to run the test script corresponding to the input / output control detection test item, and reads whether the level status of the IO1 interface returned by the BMU is high through the CAN bus. If it is, since the IO1 interface returned by the BMU is active low, the BCU determines that the address encoding status is invalid when the level status of the IO1 interface returned by the BMU is high.
[0132] The address encoding IO interface of the BCU is controlled to output a low level via the RS4858 serial bus. The IO1 interface level returned by the BMU is read again via the CAN bus to see if it is low. If it is, since the IO1 interface returned by the BMU is active low, the BCU determines that the address encoding status is valid when the IO1 interface level returned by the BMU is low.
[0133] S604. The address encoding input / output interface of the battery control unit is controlled to output a high level through the second serial bus, and the input level status returned by the battery management unit is determined to be high level through the controller local area network bus, and the address encoding function of the battery control unit is checked to see if it is normal.
[0134] Optionally, the address encoding IO interface of the BCU is controlled to output a high level via the RS4858 serial bus. The IO1 interface level returned by the BMU is read again via the CAN bus to see if it is high. If it is, since the IO1 interface returned by the BMU is active low, the BCU will determine the address encoding state as invalid again when the IO1 interface level returned by the BMU is high.
[0135] In other words, if the level output by the address encoding IO interface of the BCU is consistent with the high or low level of the IO1 interface returned by the BMU, it means that the address encoding function of the BCU is normal.
[0136] In this embodiment, the automated testing software for the battery control unit in the computer device runs the test script corresponding to the input / output control detection test item. It controls the level of each internal high-side output interface of the battery control unit via the second serial bus, and reads the level status of each return data input interface and each data input interface of the battery control unit via the second serial bus. If the level of each internal high-side output interface of the battery control unit is consistent with the level status of each return data input interface and each data input interface, then the input / output function of the battery control unit is normal. The second serial bus is used to determine whether each switch quantity of the input / output module is in an open state. If so, the second serial bus controls the battery control unit to sequentially close each internal dry contact, and sequentially reads the status of each switch quantity of the input / output module via the second serial bus. If the closing / opening status of each internal dry contact of the battery control unit is consistent with the closing / opening status of the corresponding switch quantity of the input / output module, then the function of each internal dry contact of the battery control unit is normal. The system determines whether the input level returned by the battery management unit (BMU) is high via the Controller Area Network (CLAN) bus. If so, it controls the level of the address encoding input / output interface of the BMU via the second serial bus and reads the input level returned by the BMU via the CLAN bus to check if it is low. If the level of the address encoding input / output interface of the BMU matches the high / low level returned by the BMU, the address encoding function of the BMU is normal. The system accurately tested the input / output functions, internal dry contact functions, and address encoding function of the BMU to ensure they were functioning correctly.
[0137] As an optional implementation, the test items in the test process also include: data verification test items.
[0138] Optionally, the test items in the test process also include data verification test items. Through data verification, it can be verified whether the data written to the BCU in the aforementioned embodiments is correct and whether the data writing function of the BCU is normal.
[0139] Figure 7 This is a schematic diagram of the fourth process of the automated testing method for the battery control unit provided in the embodiments of this application, as shown below. Figure 7 As shown, the method also includes:
[0140] S701. Run the test script corresponding to the test item for data verification, read the identifier and network card physical address written in the battery control unit through the controller LAN bus, and verify whether the identifier and network card physical address are written correctly.
[0141] Optionally, the BCU automated testing software in the computer device runs the test script corresponding to the test item, reads the identifier and network card physical address written in the BCU through the CAN bus, and compares the BCU identifier and network card physical address obtained by scanning the QR code in advance with the read BCU identifier and network card physical address to verify whether the identifier and network card physical address written in the BCU are written correctly.
[0142] S702: Read the time of the clock chip of the battery control unit through the second serial bus and verify that the time is correct.
[0143] Optionally, the BCU automated testing software in the computer device continues to run the test script corresponding to the data verification test item, reads the current time of the BCU's clock chip through the RS485 serial bus, and compares the current time of the BCU's clock chip with the current time of the computer device to verify whether the BCU's clock chip is keeping time and whether the current time of the BCU's clock chip is correct.
[0144] S703: Read the software version number and hardware version number of the battery control unit according to the second serial bus, and verify whether the software version number and hardware version number are correct.
[0145] Optionally, the BCU automated testing software in the computer device continues to run the test scripts corresponding to the data verification test items. It reads the BCU's software version number and hardware version number via the RS485 serial bus, and compares the read software version number with the user-preset BCU software version number to verify the correctness of the BCU's software version. Based on the read hardware version, it verifies the correctness of the BCU's hardware version.
[0146] In this embodiment, the automated testing software for the battery control unit in the computer device runs the test script corresponding to the data verification test item. It reads the identifier and network card physical address written in the battery control unit via the controller local area network bus, and verifies whether the identifier and network card physical address are written correctly based on the pre-scanned battery control unit identifier and network card physical address. It reads the time of the battery control unit's clock chip via the second serial port bus and verifies whether the battery control unit's clock chip is running correctly against the current time of the computer device. It also reads the software version number and hardware version number of the battery control unit via the second serial port bus and verifies whether the software version number and hardware version number are correct. Through data writing verification, time verification, and software / hardware version number verification, the data writing function of the battery control unit is verified.
[0147] As an optional implementation, the test items in the test procedure also include: voltage and current sampling accuracy detection test item.
[0148] Optionally, the test items in the test procedure also include a voltage and current sampling accuracy detection test item, which measures the current and voltage sampling accuracy of the BCU at multiple measurement points to determine whether the current and voltage sampling accuracy of the BCU is within the preset accuracy range.
[0149] Figure 8 This is a schematic diagram of the fifth process of the automated testing method for the battery control unit provided in the embodiments of this application, as shown below. Figure 8 As shown, the method also includes:
[0150] S801: Run the test script corresponding to the voltage and current sampling accuracy test item, and send multiple current and voltage output commands to the DC standard source through the first serial bus to control the DC standard source to output multiple sets of current and voltage.
[0151] Optionally, the BCU automated testing software in the computer equipment runs the test script corresponding to the voltage and current sampling accuracy detection test item, taking 200V / 20A, 800V / 100A, and 1000V / 30A as three test points, and sequentially sends three current and voltage output commands to the DC standard source through the RS232 serial bus, controlling the DC standard source to sequentially output 200V voltage and 20A current, 800V voltage and 100A current, and 1000V voltage and 300A current.
[0152] S802: Read the total internal voltage, total external voltage, and current collected by the battery control unit through the second serial bus. Based on the total internal voltage, total external voltage, current, and current-voltage groups, detect the voltage and current sampling accuracy of the battery control unit.
[0153] Optionally, the BCU automated testing software in the computer device continues to run the test script corresponding to the voltage and current sampling accuracy detection test item. It sequentially reads the internal total voltage, external total voltage, and current of the battery pack collected by the BCU at each test point through the RS485 serial bus, and detects the internal total voltage sampling accuracy, external total voltage sampling accuracy, and current sampling accuracy of the BCU at each test point based on the internal total voltage, external total voltage, current, and current voltage of each group.
[0154] Taking the 200V / 20A test point as an example, the total internal voltage, total external voltage, and current of the battery pack are read by the BCU when the DC standard source outputs 200V voltage and 20A current. Based on the total internal voltage, total external voltage, and current of the battery pack when the DC standard source outputs 200V voltage and 20A current, the sampling accuracy of the BCU's total internal voltage, total external voltage, and current is calculated, and it is determined whether the sampling accuracy of the BCU's total internal voltage, total external voltage, and current is within the preset accuracy range.
[0155] In this embodiment, the battery control unit in the computer device runs the test script corresponding to the voltage and current sampling accuracy detection test item. Based on multiple pre-selected test points, it sequentially sends multiple current and voltage output commands to the DC standard source via the first serial bus, controlling the DC standard source to sequentially output multiple sets of current and voltage. The internal total voltage, external total voltage, and current collected by the battery control unit under each set of current and voltage are read via the second serial bus. Based on these data, the sampling accuracy of the internal total voltage, external total voltage, current, and current sets of voltage are detected. Through the voltage and current sampling accuracy detection, the voltage and current calibration effect is verified again, and the voltage and current sampling accuracy of the battery control unit is determined.
[0156] As an optional implementation, the test items in the test procedure also include: insulation resistance value detection test item.
[0157] Optionally, the test items in the test procedure also include an insulation resistance value detection test item. By detecting the insulation resistance value collected by the BCU, the accuracy of the insulation resistance value collected by the BCU is verified, thereby improving battery reliability.
[0158] Figure 9 This is a schematic diagram of the sixth process of the automated testing method for the battery control unit provided in the embodiments of this application, as shown below. Figure 9 As shown, the method also includes:
[0159] S901. Run the test script corresponding to the insulation resistance value detection test item, send current and voltage output commands to the DC standard source through the first serial bus, control the DC standard source to output the second current and voltage, and send the external insulation resistance access command to the battery control unit through the second serial bus, control the battery control unit to access the insulation resistance.
[0160] Optionally, the BCU automated testing software in the computer device runs the test script corresponding to the insulation resistance value detection test item, and sends current and voltage output commands to the DC standard source via the RS232 serial bus to control the DC standard source to output a second current and voltage. For example, the second current and voltage can be a 1000V voltage and a 0A current, and the DC standard source is controlled to output a 1000V voltage and a 0A current through the current and voltage output commands.
[0161] The system sends an external insulation resistor access command to the BCU via the RS485 serial bus, controlling the BCU to access both the positive and negative insulation resistors.
[0162] S902: Send a start insulation resistance value detection command to the battery control unit via the second serial bus, and read the insulation resistance value collected by the battery control unit via the second serial bus.
[0163] Optionally, the BCU automated testing software in the computer device continues to run the test script corresponding to the insulation resistance value detection test item, sends a command to the BCU to start the positive and negative insulation resistance value detection via the RS485 serial bus, controls the BCU to perform positive and negative insulation resistance value detection, and reads the positive and negative insulation resistance values collected by the BCU via the RS485 serial bus to verify whether the positive and negative insulation resistance values collected by the BCU meet the preset insulation resistance value range.
[0164] In this embodiment, the automated testing software for the battery control unit in the computer device runs the test script corresponding to the insulation resistance value detection test item. It sends current and voltage output commands to the DC standard source via the first serial bus, controlling the DC standard source to output a second current and voltage. It also sends a command to the battery control unit via the second serial bus to connect external insulation resistors, controlling the battery control unit to connect positive and negative insulation resistors. Furthermore, it sends a command to the battery control unit to start insulation resistance value detection via the second serial bus, and reads the insulation resistance value collected by the battery control unit. The insulation resistance value detection verifies the accuracy of the positive and negative insulation resistance values collected by the battery control unit.
[0165] As an optional implementation, the test items in the test process also include: temperature detection test item.
[0166] Optionally, the test items in the test process also include a temperature detection test item, which verifies the accuracy of BCU temperature detection by detecting the temperature at each temperature acquisition point of the BCU.
[0167] Run the test script corresponding to the temperature detection test item, read the impedance of each resistor in the battery control unit through the second serial bus, and detect whether the temperature of the battery control unit is normal according to the impedance of each resistor and the preset impedance-temperature mapping table. The resistance value of each resistor is the preset first resistance value.
[0168] Optionally, the BCU automated testing software in the computer device runs the test script corresponding to the temperature detection test item, reads the impedance of the resistors at each temperature acquisition point in the BCU via the RS485 serial bus, and looks up the temperature corresponding to the impedance of each resistor in a preset impedance-temperature mapping table, thereby detecting whether the temperature value and accuracy of the BCU are normal. The resistance values at each temperature acquisition point in the BCU are the same, all being a preset first resistance value.
[0169] In this embodiment, the automated testing software for the battery control unit in the computer device runs the test script corresponding to the temperature detection test item. It reads the impedance of each resistor with the same resistance value at each temperature acquisition point in the battery control unit via the second serial bus. Based on the impedance of each resistor and a preset impedance-temperature mapping table, it detects whether the temperature value and accuracy of the battery control unit are normal. This verifies whether the temperature detection function of the battery control unit is normal.
[0170] This application also provides an automated testing system for a battery control unit, such as... Figure 1 As shown, the automated testing system for the battery control unit includes: a computer device, a battery control unit that is communicatively connected to the computer device, an input / output module, a DC standard source, and a battery management unit; wherein, the battery control unit is communicatively connected to the input / output module and the battery management unit.
[0171] The automated testing system for the battery control unit performs the steps of the automated testing method for the battery control unit as described in the foregoing embodiments.
[0172] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems and devices described above can be referred to the corresponding processes in the method embodiments, and will not be repeated here. In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed mutual coupling or direct coupling or communication connection can be through some communication interfaces; the indirect coupling or communication connection of devices or modules can be electrical, mechanical, or other forms.
[0173] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.
[0174] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.
Claims
1. An automated testing method for a battery control unit, characterized in that, A computer device is used in an automated testing system for battery control units. The automated testing system for battery control units includes: a computer device, a battery control unit communicatively connected to the computer device, an input / output module, a DC standard source, and a battery management unit; the method includes: Obtain the configuration information corresponding to each test item in the test process of the battery control unit, and generate the test script corresponding to each test item based on the configuration information corresponding to each test item. The test items include: voltage and current calibration test item and input / output control detection test item. Run the test script corresponding to the voltage and current calibration test item, read the internal total voltage, external total voltage and current collected by the battery control unit, and perform zero-point calibration and gain calibration in sequence; Run the test script corresponding to the input / output control detection test item, read the level status of the input interface of the battery control unit, read the status of each switch quantity of the input / output module connected to the battery control unit, read the input level status returned by the battery management unit, and test the input / output function, dry contact function, and address encoding function of the battery control unit based on the level status, the status of each switch quantity, and the input level status; control the level of each internal high-side output interface of the battery control unit through the second serial bus, read the level status of each return data input interface and the level status of each data input interface of the battery control unit through the second serial bus, and check whether the input / output function of the battery control unit is normal; determine whether each switch quantity of the input / output module is in the off state through the second serial bus, if so, then through the second serial bus... The serial bus controls the battery control unit to sequentially close each dry contact inside the battery control unit, and sequentially reads the status of each switch quantity of the input / output module through the second serial bus to check whether each dry contact inside the battery control unit is normal; it determines whether the input level status returned by the battery management unit is high through the controller LAN bus. If so, it controls the address encoding input / output interface of the battery control unit to output a low level through the second serial bus, and determines whether the input level status returned by the battery management unit is low through the controller LAN bus; it controls the address encoding input / output interface of the battery control unit to output a high level through the second serial bus, and determines whether the input level status returned by the battery management unit is high through the controller LAN bus, thus checking whether the address encoding function of the battery control unit is normal.
2. The method according to claim 1, characterized in that, The system reads the internal total voltage, external total voltage, and current collected by the battery control unit, and performs zero-point calibration and gain calibration sequentially, including: The internal total voltage, external total voltage, and current collected by the battery control unit are read through the second serial bus, and a zero-point calibration command is sent to the battery control unit through the second serial bus to calibrate the internal total voltage, external total voltage, and current to zero. The system sends a current and voltage output command to the DC standard source via the first serial bus to control the DC standard source to output a first current and voltage. It also reads the internal total voltage, external total voltage, and current collected by the battery control unit via the second serial bus and sends a gain calibration command to the battery control unit via the second serial bus to perform gain calibration on the internal total voltage, external total voltage, and current. A restart command is sent to the battery control unit via the second serial bus to control the battery control unit to restart, and a test start command is sent to the battery control unit via the second serial bus to make the battery control unit re-enter the test working state.
3. The method according to claim 1, characterized in that, The test items in the test process also include: a communication detection test item; the method also includes: Run the test script corresponding to the communication detection test item, send the output shutdown command and DC mode initialization command to the DC standard source through the first serial port bus, and check whether the first serial port communication is normal. The first value returned by the battery control unit and the second value returned by the input / output module are read through the second serial bus. Based on the first value, the second value and the preset value, the second serial communication is checked to see if it is normal. The third value returned by the battery control unit is read through the controller local area network bus, and the controller local area network communication is checked for normality based on the third value and the preset value.
4. The method according to claim 1, characterized in that, The test items in the test process also include: a data writing test item; the method also includes: Run the test script corresponding to the data writing test item, send the factory reset command to the battery control unit through the second serial bus, and set the first parameter set and the second parameter set of the battery control unit; The test start command is sent to the battery control unit via the second serial bus, causing the battery control unit to enter the test working state, and the external insulation resistor is disconnected command is sent to the battery control unit via the second serial bus. The system sends an identifier and network card physical address writing command to the battery control unit via the controller local area network bus, and writes the identifier and network card physical address obtained by scanning the code into the battery control unit. The computer device sends a time calibration command to the battery control unit via the second serial bus and writes the current time of the computer device into the clock chip of the battery control unit.
5. The method according to claim 1, characterized in that, The test items in the test process also include: data verification test items; the method also includes: Run the test script corresponding to the data verification test item, read the identifier and network card physical address written in the battery control unit through the controller local area network bus, and verify whether the identifier and network card physical address are written correctly; The time of the clock chip of the battery control unit is read through the second serial bus, and the time is verified to be correct. The software version number and hardware version number of the battery control unit are read according to the second serial bus, and the correctness of the software version number and hardware version number is verified.
6. The method according to claim 1, characterized in that, The test items in the test procedure also include: voltage and current sampling accuracy detection test item; the method also includes: Run the test script corresponding to the voltage and current sampling accuracy detection test item, and send multiple current and voltage output commands to the DC standard source through the first serial bus to control the DC standard source to output multiple sets of current and voltage; The battery control unit reads the internal total voltage, external total voltage, and current collected by the second serial bus. Based on the internal total voltage, external total voltage, current, and current-voltage combinations, the voltage and current sampling accuracy of the battery control unit is detected.
7. The method according to claim 1, characterized in that, The test items in the test procedure also include: insulation resistance value detection test item; the method also includes: Run the test script corresponding to the insulation resistance value detection test item, send a current and voltage output command to the DC standard source through the first serial bus, control the DC standard source to output a second current and voltage, and send a command to the battery control unit to connect an external insulation resistor through the second serial bus, control the battery control unit to connect an insulation resistor; The second serial bus is used to send a command to the battery control unit to start the insulation resistance value detection, and the second serial bus is used to read the insulation resistance value collected by the battery control unit.
8. The method according to claim 1, characterized in that, The test items in the test procedure also include: a temperature detection test item; the method also includes: Run the test script corresponding to the temperature detection test item, read the impedance of each resistor in the battery control unit through the second serial bus, and detect whether the temperature of the battery control unit is normal according to the impedance of each resistor and the preset impedance-temperature mapping table. The resistance value of each resistor is a preset first resistance value.
9. An automated testing system for a battery control unit, characterized in that, The automated testing system for the battery control unit includes: computer equipment, a battery control unit that communicates with the computer equipment, input / output modules, a DC standard source, and a battery management unit; The automated testing system for the battery control unit performs the steps of the automated testing method for the battery control unit as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for testing performance of battery management system
CN108445404A
Dynamic environment testing method and system for intelligent power supply
CN109613448A