Function test method and device of electronic control unit, vehicle and storage medium

By adopting a functional test system in the electronic control unit test, dividing the test resource blocks and using the automatic switching module for synchronous testing, the problems of long test cycles and low resource utilization in the existing technology are solved, and efficient and economical multi-electronic control unit synchronization testing is achieved.

CN119556670APending Publication Date: 2025-03-04GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411539848.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In the prior art, the electronic control unit has a long test cycle and low testing resource utilization rate, resulting in low testing efficiency and high cost. It can only conduct a single functional test, and synchronous testing of multiple electronic control units cannot be achieved.

Method used

The functional testing system is adopted, including a test control module, a test resource module and an automatic switching module. By obtaining the functional testing requirements of the electronic control unit to be tested, the test resource module is divided into multiple test resource blocks, and the automatic switching module is used to switch to the target test resource block to realize the synchronous functional testing of multiple electronic control units.

Benefits of technology

It effectively improves the utilization rate and testing efficiency of test resources, shortens the test cycle, reduces costs, and realizes synchronous testing of multi-electronic control units.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119556670A_ABST
    Figure CN119556670A_ABST
Patent Text Reader

Abstract

The invention relates to a function test method and device for an electronic control unit, a vehicle and a storage medium, and the method employs a function test system which comprises a test control module, a test resource module and an automatic switching module. The method comprises the steps of dividing a test resource module into a plurality of test resource blocks according to function types on the basis of function test requirements of a to-be-tested electronic control unit, obtaining a test project corresponding to each test resource block, determining a target test function on the basis of at least one test function and a plurality of test cases of each test function, and based on the target test function, switching to the target test resource block by using the automatic switching module so as to perform function test on the to-be-tested electronic control unit through the target test resource block. Therefore, the problems of long test period, low test resource utilization rate and the like in related technologies are solved, the test resource utilization rate and the test efficiency are effectively improved, and meanwhile, the cost is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle safety technology, and in particular to a function testing method, device, vehicle and storage medium for an electronic control unit. Background Art

[0002] With the increase in the number of cars and the popularization of intelligence, people pay more and more attention to the safety performance of cars. The electronic control unit (ECU) of the intelligent safety system can trigger airbags, tighten active seat belts and other protective measures to protect the occupants in the car when a serious collision occurs, but it should not trigger airbags, tighten active seat belts and other protective measures when a minor collision or no collision occurs. Therefore, when designing the electronic control unit product of the intelligent safety system, it is necessary to conduct full coverage of functional and performance tests to ensure the reliability and safety of the product. As a key component of automobile safety, the electronic control unit of the intelligent safety system is extremely important for the ignition control, fault diagnosis, communication and service functions and performance testing of the entire passive safety protection system. How to use limited resources to improve test efficiency, save costs, and realize the synchronous testing of multiple electronic control units is of great significance to the test development of the electronic control unit of the intelligent safety system.

[0003] In the related technology, the current electronic control unit test generally uses the test equipment to directly connect a single test electronic control unit, and test the functions one by one. After one round of testing is completed, the test electronic control unit needs to be manually replaced for the next round of testing, or a multi-way switching device is connected between the test equipment and the test electronic control unit. After the current test electronic control unit has completed the functional testing one by one, the test electronic control unit is switched to test the next electronic control unit.

[0004] Since the relevant technology requires manual replacement of the test electronic control unit after the test is completed, and the test parameters need to be manually modified multiple times, the test cycle is long and manpower and material resources are wasted. In addition, the relevant technology can only test a single function of the electronic control unit, resulting in low functional utilization of the test equipment and a long overall test cycle, which urgently needs to be solved. Summary of the invention

[0005] The present application provides a functional testing method, device, vehicle and storage medium for an electronic control unit to solve the problems of long testing cycle and low testing resource utilization in related technologies, effectively improving the utilization of testing resources and testing efficiency while saving costs.

[0006] A first aspect of the present application provides a method for functional testing of an electric control unit, wherein the method adopts a functional testing system, wherein the functional testing system includes a test control module, a test resource module, and an automatic switching module, and the method includes the following steps:

[0007] Obtain the functional test requirements of the electronic control unit to be tested;

[0008] Based on the functional test requirements, the test resource module is divided into a plurality of test resource blocks according to the functional type, and a test project corresponding to each test resource block is obtained, wherein the test project includes at least one test function and a plurality of test cases for each test function;

[0009] Based on the at least one test function and the multiple test cases of each test function, a target test function is determined, and based on the target test function, the automatic switching module is used to switch to the target test resource block to perform a functional test on the electronic control unit to be tested through the target test resource block.

[0010] According to an embodiment of the present application, after dividing the test resource module into a plurality of test resource blocks based on the functional test requirements of the electronic control unit to be tested, the method further includes:

[0011] Based on the functional test requirements of the electronic control unit to be tested, corresponding test parameters are configured for each test resource block.

[0012] According to an embodiment of the present application, when the automatic switching module is used to switch to the target test resource block based on the target test function, it also includes:

[0013] Determine whether the current test function is consistent with the target test function and whether the current self-test loop passes;

[0014] If the current test function is inconsistent with the target test function, or the current self-test loop fails, the step of switching to the target test resource block by using the automatic switching module based on the target test function is re-executed.

[0015] According to an embodiment of the present application, after performing a functional test on the electronic control unit to be tested through the target test resource block, the method further includes:

[0016] Obtaining a test result of the electronic control unit to be tested;

[0017] A test report is generated according to the test results.

[0018] According to one embodiment of the present application, before obtaining the functional test requirements of the electronic control unit to be tested, the method further includes:

[0019] A communication connection is established between the test control module, the test resource module and the automatic switching module based on a preset connection mode.

[0020] According to the functional test method of the electric control unit provided by the embodiment of the present application, based on the functional test requirements of the electric control unit to be tested, the test resource module is divided into multiple test resource blocks according to the functional type, and based on at least one test function and multiple test cases of each test function, the target test function is determined, and based on the target test function, the automatic switching module is used to switch to the target test resource block, so as to perform functional testing on the electric control unit to be tested through the target test resource block. As a result, the problems of long test cycle and low test resource utilization in the related technology are solved, the utilization rate of test resources and test efficiency are effectively improved, and the cost is saved at the same time.

[0021] A second aspect of the present application provides a functional test device for an electric control unit, wherein the device adopts a functional test system, wherein the functional test system includes a test control module, a test resource module and an automatic switching module, and wherein the device includes:

[0022] An acquisition module is used to obtain the functional test requirements of the electronic control unit to be tested;

[0023] A processing module, configured to divide the test resource module into a plurality of test resource blocks according to the functional type based on the functional test requirement, and obtain a test project corresponding to each test resource block, wherein the test project includes at least one test function and a plurality of test cases for each test function;

[0024] A test module is used to determine a target test function based on the at least one test function and multiple test cases for each test function, and based on the target test function, switch to a target test resource block using the automatic switching module to perform a functional test on the electronic control unit to be tested through the target test resource block.

[0025] According to an embodiment of the present application, after the test resource module is divided into a plurality of test resource blocks based on the functional test requirements of the electronic control unit to be tested, the processing module is further used to:

[0026] Based on the functional test requirements of the electronic control unit to be tested, corresponding test parameters are configured for each test resource block.

[0027] According to an embodiment of the present application, when the automatic switching module is used to switch to the target test resource block based on the target test function, the test module is further used to:

[0028] Determine whether the current test function is consistent with the target test function and whether the current self-test loop passes;

[0029] If the current test function is inconsistent with the target test function, or the current self-test loop fails, the step of switching to the target test resource block by using the automatic switching module based on the target test function is re-executed.

[0030] According to an embodiment of the present application, after performing a functional test on the electronic control unit to be tested through the target test resource block, the test module is further used to:

[0031] Obtaining a test result of the electronic control unit to be tested;

[0032] A test report is generated according to the test results.

[0033] According to one embodiment of the present application, before obtaining the functional test requirements of the electronic control unit to be tested, the obtaining module is further used to:

[0034] A communication connection is established between the test control module, the test resource module and the automatic switching module based on a preset connection mode.

[0035] According to the functional test device of the electric control unit provided by the embodiment of the present application, based on the functional test requirements of the electric control unit to be tested, the test resource module is divided into multiple test resource blocks according to the functional type, and based on at least one test function and multiple test cases of each test function, the target test function is determined, and based on the target test function, the automatic switching module is used to switch to the target test resource block, so as to perform functional testing on the electric control unit to be tested through the target test resource block. As a result, the problems of long test cycle and low test resource utilization in the related technology are solved, the utilization rate of test resources and test efficiency are effectively improved, and the cost is saved at the same time.

[0036] A third aspect of the present application provides a vehicle, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the functional testing method of the electronic control unit as described in the above embodiment.

[0037] A fourth aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the functional testing method of the electric control unit as described in the above embodiment.

[0038] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0040] Figure 1 is a structural schematic diagram of a functional testing system according to an embodiment of the present application;

[0041] Figure 2 is a structural schematic diagram of a functional testing system according to an embodiment of the present application;

[0042] Figure 3 A flowchart of a method for testing the function of an electronic control unit according to an embodiment of the present application;

[0043] Figure 4 is a flow chart of a method for functional testing of an electronic control unit according to an embodiment of the present application;

[0044] Figure 5 is a flow chart of a method for functional testing of an electronic control unit according to another embodiment of the present application;

[0045] Figure 6 is a block diagram of a functional testing device for an electronic control unit according to an embodiment of the present application;

[0046] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0048] The following describes the functional testing method, device, vehicle and storage medium of the electronic control unit in the embodiments of the present application with reference to the accompanying drawings.

[0049] Before introducing the functional testing method of the electronic control unit according to the embodiment of the present application, a functional testing system involved in the functional testing method of the electronic control unit is first introduced.

[0050] Specifically, if Figure 1 As shown, the functional test system may include a host computer, a test resource module and an automatic switching module, wherein the automatic switching module is connected to a plurality of electronic control units.

[0051] Furthermore, if Figure 2As shown, the host computer includes a test control module, and the test control module can be connected to the test resource module and the automatic switching module through Ethernet. Those skilled in the art can configure test resources in the test control module according to test requirements, divide the test resource module into several functional types such as A, B, C, and D, and divide the test resource modules into multiple test resource blocks in the test control module according to the division, such as test resource area A: electrical performance, power supply voltage related tests; test resource area B: UDS (Universal Diagnostic Services), Boot (boot loader) related tests; test resource area C: DTC (Diagnostic Trouble Code), EDR (Event Data Recorder) function related tests; test resource area D: bus related tests.

[0052] Furthermore, the test project is constructed by functional modularization, and the test cases are encapsulated according to the above functions for reuse, wherein the test resource module may include programmable power supply, various boards, CANoe (CAN open environment, bus development environment), etc. The test control module in the host computer controls the automatic switching module to connect or disconnect each test resource block of the test resource module with the electric control unit, so as to realize multi-electric control unit and multi-function synchronous testing.

[0053] Optionally, the automatic switching module may include a programmable relay and a connector, which are connected to the test resource module and multiple electronic control units (ECUs) of the intelligent safety system through wiring harnesses. The connection or disconnection of the programmable relay in the automatic switching module is controlled by the test control module in the host computer, so as to enable multiple electronic control units to carry out tests of different functions simultaneously.

[0054] The following is an introduction to the functional testing method of the electronic control unit proposed in the present application using the above-mentioned functional testing system.

[0055] Specifically, Figure 3 A schematic flow chart of a functional testing method for an electronic control unit provided in an embodiment of the present application.

[0056] like Figure 3 As shown, the functional testing method of the electronic control unit includes the following steps:

[0057] In step S301, a functional test requirement of an electronic control unit to be tested is obtained.

[0058] The functional test requirements of the electronic control unit to be tested refer to a series of test items and conditions determined to verify whether the electronic control unit to be tested operates correctly according to the design requirements. Specifically, the embodiment of the present application can determine the functional test requirements of the electronic control unit to be tested according to the design requirements and usage scenarios of the electronic control unit to be tested.

[0059] Furthermore, in some embodiments, before obtaining the functional test requirements of the electronic control unit to be tested, it also includes: establishing a communication connection between the test control module, the test resource module and the automatic switching module based on a preset connection mode.

[0060] The preset connection mode may be a connection mode preset by a person skilled in the art, such as a wired Ethernet communication connection mode or a wireless Ethernet communication connection mode, which is not specifically limited here.

[0061] Specifically, before obtaining the functional test requirements of the electronic control unit to be tested, the embodiment of the present application needs to establish a communication connection between the test control module, the test resource module and the automatic switching module. Optionally, the embodiment of the present application can use wired Ethernet or wireless Ethernet to establish a communication connection between the test control module, the test resource module and the automatic switching module, so that after the communication connection is established between the test control module, the test resource module and the automatic switching module, the test control module controls the software and hardware devices in the test resource module and the automatic switching module, thereby realizing automated testing.

[0062] In step S302, based on the functional testing requirements, the test resource module is divided into multiple test resource blocks according to the functional type, and a test project corresponding to each test resource block is obtained, wherein the test project includes at least one test function and multiple test cases for each test function.

[0063] Specifically, the embodiment of the present application can divide the test resource module into multiple test resource blocks in the test control module according to the functional test requirements of the electronic control unit to be tested, such as Figure 2 Test resource area A shown: electrical performance, power supply voltage related tests; test resource area B: UDS, Boot related tests; test resource area C: DTC, EDR function related tests; test resource area D: bus related tests.

[0064] Furthermore, according to the divided multiple test resource blocks, the test project is built by functional modularization, and the test process and test cases are established in the test control module, and the test cases are packaged according to the above functions for reuse. Among them, the test project contains test processes for multiple functions, and the test process for each function contains multiple test cases.

[0065] Therefore, by utilizing limited test resources, innovatively dividing the test resources into multiple test resource blocks according to the test function requirements, using functional modularization to build the test project, and encapsulating the test cases by function, which can be reused, effectively improving the utilization of test resources and saving costs. In addition, based on the functional division of test resources, multiple functional tests of multiple electronic control units can be carried out simultaneously, thereby effectively improving test efficiency and shortening the test cycle.

[0066] Furthermore, in some embodiments, after dividing the test resource module into a plurality of test resource blocks based on the functional test requirements of the electronic control unit to be tested, it further includes: configuring corresponding test parameters for each test resource block based on the functional test requirements of the electronic control unit to be tested.

[0067] Specifically, after the test resource module is divided into multiple test resource blocks based on the functional test requirements of the electronic control unit to be tested, the embodiment of the present application needs to configure the test control module, which mainly includes the test software connection, test information file and test execution related configuration. By configuring the test control module, the real-time test software, simulation module, calibration tool and bus communication tool in the test resource module can be called, and the test parameters can be configured according to the functional requirements of each test resource block test.

[0068] In addition, the embodiment of the present application can also configure an automatic switching process in the test control module, and switch the programmable relays in the automatic switching module according to the test process to achieve connectivity between each electronic control unit to be tested and each test resource block. According to the test process, the multi-functions of the electronic control unit to be tested in the intelligent safety system, such as the airbag detonation function, active seat belt function, and active hood function, are synchronously tested.

[0069] Therefore, by utilizing the test control module to automatically control the automatic switching module, automatic switching of multiple electronic control unit tests and multi-function simultaneous testing are achieved, which reduces the time for personnel switching and improves the overall test efficiency.

[0070] In step S303, based on at least one test function and multiple test cases of each test function, a target test function is determined, and based on the target test function, an automatic switching module is used to switch to a target test resource block to perform a functional test on the electronic control unit to be tested through the target test resource block.

[0071] Specifically, based on at least one test function and multiple test cases for each test function, a target test function that needs to be tested is determined, and based on the target test function, an automatic switching module is used to switch to a target test resource block of resources required for the target test function, so as to perform functional testing on the electronic control unit to be tested through the target test resource block.

[0072] Among them, in the process of performing functional testing on the electronic control unit to be tested, the test control module is responsible for designing and controlling the test process, and the test resource module is responsible for executing specific test actions. The test control module also tests and verifies the functions of the electronic control unit to be tested through the written test project.

[0073] Furthermore, in some embodiments, when switching to the target test resource block using the automatic switching module based on the target test function, it also includes: determining whether the current test function is consistent with the target test function, and whether the current self-test loop passes; if the current test function is inconsistent with the target test function, or the current self-test loop fails, then re-executing the step of switching to the target test resource block based on the target test function using the automatic switching module.

[0074] It is understandable that in order to ensure that the same type of functional resources does not affect the normal testing of other electronic control units, the embodiment of the present application adopts a closed-loop control method during the testing process.

[0075] Specifically, before switching the test resource block, first check whether the currently ongoing test function is consistent with the target test function to be switched to, and whether the current self-test loop (a loop used to check whether the test system itself is working normally) passes. If the current test function is consistent with the target test function and the current self-test loop passes, execute the step of switching to the target test resource block.

[0076] If the current test function is inconsistent with the target test function or the current self-test loop fails, stop the current step and return to the previous step, that is, re-execute the step based on the target test function, use the automatic switching module to switch to the target test resource block, and restart the test to ensure the accuracy and reliability of the test.

[0077] Furthermore, in some embodiments, after performing a functional test on the electronic control unit to be tested through the target test resource block, the method further includes: obtaining a test result of the electronic control unit to be tested; and generating a test report according to the test result.

[0078] Specifically, after completing the functional test of the ECU to be tested through the target test resource block, the test control module will obtain the test results of the ECU to be tested and analyze the test results to determine whether the functional performance of the ECU meets the expected standards. Finally, the test control module automatically generates a test report based on the test results. The test report records the results of each test case in detail, including success or failure, any abnormal conditions, and recommended follow-up actions.

[0079] Therefore, by generating a test report according to the test results, it is convenient for those skilled in the art to quickly understand the overall situation of the functional test of the electronic control unit to be tested.

[0080] In order to facilitate those skilled in the art to more clearly and intuitively understand the functional testing method of the electric control unit proposed in this application, Figure 4 and Figure 5 The specific embodiments are described in detail.

[0081] Specifically, if Figure 4 As shown, the functional testing method of the electronic control unit includes the following steps:

[0082] S401, establishing a communication connection between the test control module, the test resource module and the automatic switching module via Ethernet.

[0083] S402, configuring a test control module, and dividing the test resource module into multiple functional blocks according to test requirements.

[0084] S403, build a test project and control the automatic switching module to connect each electronic control unit with each functional block.

[0085] S404, execute test.

[0086] Therefore, by utilizing limited test resources, through partitioned synchronous testing and automatic switching, multifunctional synchronous testing such as the airbag detonation function, active seat belt function and active hood function of the intelligent safety system electronic control unit can be achieved. The test range is wide, and the test efficiency and test resource utilization can be effectively improved, and the cost can be reduced, which is of great significance to the development of the intelligent safety system electronic control unit.

[0087] Furthermore, if Figure 5 As shown, the functional testing method of the electronic control unit includes the following steps:

[0088] First, the user needs to select a test mode. There are three modes to choose from, namely 1, 2 and 3. After the user selects the test mode, the test parameters and test items are read, and the test instrument is detected to see if it is correctly connected. If the test instrument is connected properly, the user needs to enter the ID of the corresponding test mode. At this time, the functional test system will perform a self-check to ensure that everything is ready.

[0089] Furthermore, after the self-test is passed, the functional test system will test three test ECUs (test ECU1, test ECU2 and test ECU3) in sequence. Each test ECU will undergo a series of test items, such as test item 1, test item 2 and test item 3.

[0090] Furthermore, after all test items are completed, the functional system will judge the test results, decide whether the test has passed, and record the test results in the database.

[0091] Finally, the functional test system will enter the next test cycle until all tests are completed.

[0092] Therefore, by utilizing limited test resources, the test resource module is divided into multiple test blocks according to test requirements, and multiple electronic control units are connected to different test blocks through automatic control automatic switching modules to ensure that the same type of functional resources does not affect the normal testing of other electronic control units. Multifunctional synchronous testing such as airbag detonation function, active seat belt function and active hood function is realized. At the same time, functional and performance tests can be performed on multiple intelligent safety system electronic control units simultaneously, which greatly improves test efficiency and test resource utilization, and reduces costs.

[0093] According to the functional test method of the electric control unit proposed in the embodiment of the present application, the test resource module is divided into multiple test resource blocks according to the functional type based on the functional test requirements of the electric control unit to be tested, and the target test function is determined based on at least one test function and multiple test cases of each test function, and based on the target test function, the automatic switching module is used to switch to the target test resource block to perform functional testing on the electric control unit to be tested through the target test resource block. As a result, the problems of long test cycle and low test resource utilization in the related technology are solved, the utilization rate of test resources and test efficiency are effectively improved, and the cost is saved at the same time.

[0094] Next, a functional testing device for an electronic control unit according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0095] In this embodiment, the device adopts a functional test system, which includes a test control module, a test resource module and an automatic switching module.

[0096] Figure 6 It is a block diagram of a functional testing device for an electronic control unit according to an embodiment of the present application.

[0097] like Figure 6 As shown, the functional testing device 10 of the electric control unit includes: an acquisition module 100 , a processing module 200 and a testing module 300 .

[0098] Among them, the acquisition module 100 is used to obtain the functional test requirements of the electronic control unit to be tested; the processing module 200 is used to divide the test resource module into multiple test resource blocks according to the functional type based on the functional test requirements, and obtain the test project corresponding to each test resource block, wherein the test project includes at least one test function and multiple test cases for each test function; the testing module 300 is used to determine the target test function based on at least one test function and multiple test cases for each test function, and based on the target test function, use the automatic switching module to switch to the target test resource block, so as to perform functional testing on the electronic control unit to be tested through the target test resource block.

[0099] Furthermore, in some embodiments, after dividing the test resource module into multiple test resource blocks based on the functional test requirements of the electronic control unit to be tested, the processing module 200 is further used to: configure corresponding test parameters for each test resource block based on the functional test requirements of the electronic control unit to be tested.

[0100] Further, in some embodiments, when switching to the target test resource block using the automatic switching module based on the target test function, the test module 300 is also used to: determine whether the current test function is consistent with the target test function, and whether the current self-test loop passes; if the current test function is inconsistent with the target test function, or the current self-test loop fails, then re-execute the step of switching to the target test resource block based on the target test function using the automatic switching module.

[0101] Furthermore, in some embodiments, after performing a functional test on the electronic control unit to be tested through the target test resource block, the test module 300 is further used to: obtain a test result of the electronic control unit to be tested; and generate a test report according to the test result.

[0102] Furthermore, in some embodiments, before obtaining the functional test requirements of the electronic control unit to be tested, the acquisition module 100 is further used to establish a communication connection between the test control module, the test resource module and the automatic switching module based on a preset connection mode.

[0103] It should be noted that the above explanation of the embodiment of the functional testing method of the electric control unit is also applicable to the functional testing device of the electric control unit of this embodiment, which will not be repeated here.

[0104] According to the functional test device of the electric control unit proposed in the embodiment of the present application, the test resource module is divided into multiple test resource blocks according to the functional type based on the functional test requirements of the electric control unit to be tested, and the target test function is determined based on at least one test function and multiple test cases of each test function, and based on the target test function, the automatic switching module is used to switch to the target test resource block to perform functional testing on the electric control unit to be tested through the target test resource block. As a result, the problems of long test cycle and low test resource utilization in the related technology are solved, the utilization rate of test resources and test efficiency are effectively improved, and the cost is saved at the same time.

[0105] Figure 7 A schematic diagram of the structure of a vehicle provided in an embodiment of the present application. The vehicle may include:

[0106] A memory 701, a processor 702, and a computer program stored in the memory 701 and executable on the processor 702. When the processor 702 executes the program, the function test method of the electric control unit provided in the above embodiment is implemented.

[0107] Furthermore, the vehicle also includes:

[0108] The communication interface 703 is used for communication between the memory 701 and the processor 702 .

[0109] The memory 701 is used to store computer programs that can be executed on the processor 702 .

[0110] The memory 701 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0111] If the memory 701, the processor 702 and the communication interface 703 are implemented independently, the communication interface 703, the memory 701 and the processor 702 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0112] Optionally, in a specific implementation, if the memory 701, the processor 702 and the communication interface 703 are integrated on a chip, the memory 701, the processor 702 and the communication interface 703 can communicate with each other through an internal interface.

[0113] The processor 702 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

[0114] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned functional testing method of the electric control unit when executed by a processor.

[0115] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0116] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0117] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0118] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0119] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0120] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0121] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0122] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A functional testing method for an electronic control unit, characterized in that: The method adopts a functional test system, which includes a test control module, a test resource module and an automatic switching module. The method includes the following steps: Obtain the functional test requirements of the electronic control unit to be tested; Based on the functional test requirements, the test resource module is divided into a plurality of test resource blocks according to the functional type, and a test project corresponding to each test resource block is obtained, wherein the test project includes at least one test function and a plurality of test cases for each test function; Based on the at least one test function and the multiple test cases of each test function, a target test function is determined, and based on the target test function, the automatic switching module is used to switch to the target test resource block to perform a functional test on the electronic control unit to be tested through the target test resource block.

2. The method according to claim 1, characterized in that After dividing the test resource module into a plurality of test resource blocks based on the functional test requirements of the electronic control unit to be tested, the method further includes: Based on the functional test requirements of the electronic control unit to be tested, corresponding test parameters are configured for each test resource block.

3. The method according to claim 1, characterized in that When the automatic switching module is used to switch to the target test resource block based on the target test function, it also includes: Determine whether the current test function is consistent with the target test function and whether the current self-test loop passes; If the current test function is inconsistent with the target test function, or the current self-test loop fails, the step of switching to the target test resource block based on the target test function by using the automatic switching module is re-executed.

4. The method according to claim 1, characterized in that: After performing a functional test on the electronic control unit to be tested through the target test resource block, the method further includes: Obtaining a test result of the electronic control unit to be tested; A test report is generated according to the test results.

5. The method according to claim 1, characterized in that Before obtaining the functional test requirements of the electronic control unit to be tested, the method further includes: A communication connection is established between the test control module, the test resource module and the automatic switching module based on a preset connection mode.

6. A functional test device for an electronic control unit, characterized in that: The device adopts a functional test system, which includes a test control module, a test resource module and an automatic switching module. The device includes: An acquisition module is used to obtain the functional test requirements of the electronic control unit to be tested; A processing module, configured to divide the test resource module into a plurality of test resource blocks according to the functional type based on the functional test requirement, and obtain a test project corresponding to each test resource block, wherein the test project includes at least one test function and a plurality of test cases for each test function; A test module is used to determine a target test function based on the at least one test function and multiple test cases of each test function, and based on the target test function, switch to a target test resource block using the automatic switching module to perform a functional test on the electronic control unit to be tested through the target test resource block.

7. The device according to claim 6, characterized in that After the test resource module is divided into a plurality of test resource blocks based on the functional test requirements of the electronic control unit to be tested, the processing module is further used to: Based on the functional test requirements of the electronic control unit to be tested, corresponding test parameters are configured for each test resource block.

8. The device according to claim 6, characterized in that When the automatic switching module is used to switch to the target test resource block based on the target test function, the test module is further used to: Determine whether the current test function is consistent with the target test function and whether the current self-test loop passes; If the current test function is inconsistent with the target test function, or the current self-test loop fails, the step of switching to the target test resource block based on the target test function by using the automatic switching module is re-executed.

9. A vehicle, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the functional testing method of an electronic control unit as claimed in any one of claims 1 to 5.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement a functional testing method for an electronic control unit as claimed in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Distributed test method and device

    CN116955157A

  • Equipment testing method, device and equipment

    CN117762788A

  • Electronic controller testing device and method, electronic equipment and readable storage medium

    CN118605451A

  • Remote control test device and test system

    CN217060827U