Test methods, devices, program products, and storage media for vehicle motor controllers
By defining the target simulation format and constructing the corresponding test environment, the problems of poor flexibility and low efficiency in motor controller testing methods were solved, enabling flexible switching and efficient testing, reducing human error, and improving test accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2026-03-13
AI Technical Summary
In the existing technology, the testing methods for motor controllers are inflexible and inefficient, and human error exists during operation, affecting the accuracy of the results.
By obtaining the test requirements of the motor controller under test, the target simulation format is determined, the target simulation test environment is constructed, and tests are conducted based on this environment, enabling flexible switching and improving test efficiency.
This has improved the flexibility and efficiency of motor controller testing, reduced human error, and increased the accuracy of test results.
Smart Images

Figure CN118938871B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle simulation testing technology, and more specifically, to a testing method, apparatus, program product, and storage medium for a vehicle motor controller. Background Technology
[0002] As one of the three core electronic control systems in new energy vehicles, the motor controller has functions such as Controller Area Network (CAN) communication, overcurrent protection, overload protection, undervoltage protection, overvoltage protection, energy feedback, power limiting, high-voltage interlocking, and fault reporting. Hardware-in-the-loop (HIL) testing is an important means of verifying the functional performance of the motor controller. By establishing virtual battery and motor simulation models, it is possible to test and verify the motor controller under semi-virtual and semi-physical conditions.
[0003] In existing technologies, to verify different functions of a motor controller, testing needs to be conducted separately in a test environment with the integrated inverter and a test environment with the inverter removed. This process requires the tester to manually remove the inverter from the motor controller after testing the integrated inverter to test the removed inverter's motor controller board. Because this method cannot quickly switch between the test environments of the integrated inverter and the removed inverter, it suffers from poor flexibility and low testing efficiency. Furthermore, in existing HIL-based motor controller testing methods, many operations need to be performed manually by the tester, leading to human error and affecting the accuracy of the results.
[0004] As can be seen from the above analysis, there is currently no effective solution to the problems of poor flexibility and low testing efficiency of the existing testing methods for motor controllers. Summary of the Invention
[0005] This invention provides a testing method, apparatus, program product, and storage medium for a vehicle motor controller, to at least solve the technical problems of poor flexibility and low testing efficiency in existing motor controller testing methods.
[0006] According to one aspect of the present invention, a testing method for a vehicle motor controller is provided, comprising:
[0007] Obtain the test requirements of the motor controller under test; determine the target simulation form of the motor controller under test based on the test requirements; construct the target simulation test environment according to the target simulation form; test the motor controller under test based on the target simulation test environment and obtain the test results, which are used to evaluate the performance of the motor controller under test.
[0008] Optionally, determining the target simulation form of the motor controller under test based on the test requirements includes: analyzing the test requirements to determine the function under test of the motor controller under test; analyzing the function under test to obtain the analysis results, wherein the analysis results are used to determine whether the motor controller under test needs to use an inverter to assist in realizing the function under test; and determining the target simulation form from the candidate simulation forms based on the analysis results.
[0009] Optionally, the candidate simulation forms include a first simulation form and a second simulation form. The first simulation form is a simulation model of the motor controller with an integrated inverter, and the second simulation form is a simulation model of the motor control board with the inverter removed.
[0010] Optionally, determining the target simulation form from the candidate simulation forms based on the analysis results includes: if the analysis results determine that the motor controller under test needs to use an inverter to assist in realizing the function under test, the first simulation form of the motor controller under test is determined as the target simulation form; if the analysis results determine that the motor controller under test does not need to use an inverter to assist in realizing the function under test, the second simulation form of the motor controller under test is determined as the target simulation form.
[0011] Optionally, the above-mentioned test method for the vehicle motor controller further includes: acquiring a target test sequence, wherein the target test sequence is used to test the function under test; and executing the target test sequence to generate a target test signal.
[0012] Optionally, the test results are obtained by testing the motor controller under test based on the target simulation test environment, including: generating simulation operating condition parameters based on the target simulation test environment and target test signals; transmitting the simulation operating condition parameters to the motor controller under test and receiving the control signals output by the motor controller under test in response to the simulation operating condition parameters; evaluating the function under test based on the control signals, and obtaining the test results.
[0013] According to another aspect of the present invention, a testing apparatus for a vehicle motor controller is also provided, comprising:
[0014] The module is used to acquire the test requirements of the motor controller under test; the module is used to determine the target simulation format of the motor controller under test based on the test requirements; the module is used to construct the target simulation test environment according to the target simulation format; and the module is used to test the motor controller under test based on the target simulation test environment and obtain the test results, which are used to evaluate the performance of the motor controller under test.
[0015] Optionally, the aforementioned determining module is further used to: analyze the test requirements and determine the function to be tested of the motor controller under test; analyze the function to be tested and obtain the analysis results, wherein the analysis results are used to determine whether the motor controller under test needs to use an inverter to assist in realizing the function to be tested; and determine the target simulation form from the candidate simulation forms based on the analysis results.
[0016] Optionally, the candidate simulation forms include a first simulation form and a second simulation form. The first simulation form is a simulation model of the motor controller with an integrated inverter, and the second simulation form is a simulation model of the motor control board with the inverter removed.
[0017] Optionally, the above-mentioned determining module is further configured to: in response to determining, based on the analysis results, that the motor controller under test needs to use an inverter to assist in realizing the function under test, determine the first simulation form of the motor controller under test as the target simulation form; in response to determining, based on the analysis results, that the motor controller under test does not need to use an inverter to assist in realizing the function under test, determine the second simulation form of the motor controller under test as the target simulation form.
[0018] Optionally, the testing device for the vehicle motor controller further includes: a generation module for acquiring a target test sequence, wherein the target test sequence is used to test the function under test; and executing the target test sequence to generate a target test signal.
[0019] Optionally, the above-mentioned test module is also used to: generate simulation operating condition parameters based on the target simulation test environment and the target test signal; transmit the simulation operating condition parameters to the motor controller under test and receive the control signal output by the motor controller under test in response to the simulation operating condition parameters; evaluate the function under test according to the control signal and obtain the test result.
[0020] According to another aspect of the present invention, a computer program product is also provided, including a computer program, wherein the computer program, when executed by a processor, implements a test method for a vehicle motor controller that performs any of the foregoing.
[0021] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is executed, the device on which the computer-readable storage medium is located executes any of the aforementioned test methods for a vehicle motor controller.
[0022] According to another aspect of the present invention, a vehicle is also provided, including an on-board memory and an on-board processor, wherein the on-board memory stores a computer program, and the on-board processor is configured to run the computer program to perform a test method for a vehicle motor controller as described above.
[0023] In this embodiment of the invention, the test requirements of the motor controller under test (MTBT) are first obtained. Then, the target simulation format of the MTBT is determined based on the test requirements. Next, a target simulation test environment is constructed according to the target simulation format. Finally, the MTBT is tested based on the target simulation test environment to obtain test results, which are used to evaluate the performance of the MTBT. By determining the target simulation format that matches the test function of the MTBT based on the test requirements before testing the MTBT, and then constructing a suitable target simulation test environment according to the target simulation format, the functional performance test of the MTBT is performed under the target simulation test environment. This achieves the goal of flexibly switching the target simulation test environment of the MTBT, thereby improving the flexibility and efficiency of vehicle motor controller testing and solving the technical problems of poor flexibility and low testing efficiency in existing motor controller testing methods. Attached Figure Description
[0024] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this invention, illustrate exemplary embodiments of the invention and are used to explain the invention, but do not constitute an undue limitation of the invention. In the drawings:
[0025] Figure 1 This is a hardware structure block diagram of a vehicle terminal for an optional test method of a vehicle motor controller according to an embodiment of the present invention.
[0026] Figure 2 This is a flowchart of a test method for a vehicle motor controller according to an embodiment of the present invention;
[0027] Figure 3 This is a schematic diagram of a test system for a vehicle motor controller according to an embodiment of the present invention;
[0028] Figure 4 This is a schematic diagram of the structure of a hardware-in-the-loop simulation platform according to an embodiment of the present invention;
[0029] Figure 5 This is a schematic diagram of a test process for a vehicle motor controller according to an embodiment of the present invention;
[0030] Figure 6 This is a schematic diagram of the structure of a motor body simulation unit according to an embodiment of the present invention;
[0031] Figure 7 This is a structural block diagram of a test device for a vehicle motor controller according to an embodiment of the present invention. Detailed Implementation
[0032] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0033] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0034] According to an embodiment of the present invention, a method embodiment for testing a vehicle motor controller is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0035] Figure 1 This is a hardware structure block diagram of a vehicle terminal for an optional testing method of a vehicle motor controller according to an embodiment of the present invention, such as... Figure 1 As shown, a vehicle terminal (or mobile device) may include one or more processors 102 (processor 102 may include, but is not limited to, processing devices such as microprocessors (MCUs) or field-programmable gate arrays (FPGAs),) a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display device 110, an input / output device 108 (i.e., I / O devices), a Universal Serial Bus (USB) port (which may be included as one of the ports of a computer bus, not shown in the figure), a network interface (not shown in the figure), a power supply (not shown in the figure), and / or a camera (not shown in the figure). Those skilled in the art will understand that... Figure 1The structure shown is for illustrative purposes only and does not limit the structure of the vehicle terminal described above. For example, the vehicle terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0036] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits may be embodied, in whole or in part, as software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuitry may be a single, independent processing module, or may be integrated, in whole or in part, into any other component within the vehicle terminal (or mobile device).
[0037] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the test method of the vehicle motor controller in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned test method of the vehicle motor controller. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the vehicle terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0038] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the vehicle terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0039] Under the above operating environment, the embodiments of the present invention provide as follows: Figure 2 The test method for the vehicle motor controller is shown. Figure 2 This is a flowchart of a test method for a vehicle motor controller according to an embodiment of the present invention, such as... Figure 2 As shown, the method includes the following implementation steps:
[0040] Step S201: Obtain the test requirements of the motor controller under test;
[0041] Step S202: Determine the target simulation format of the motor controller under test according to the test requirements;
[0042] Step S203: Construct the target simulation test environment according to the target simulation format;
[0043] Step S204: Test the motor controller under test based on the target simulation test environment and obtain the test results, wherein the test results are used to evaluate the performance of the motor controller under test.
[0044] The following combination Figure 3 , Figure 4 The above methods will be further explained.
[0045] Figure 3 This is a schematic diagram of a test system for a vehicle motor controller according to an embodiment of the present invention, as shown below. Figure 3 As shown, the test system includes a host computer system 301, a hardware-in-the-loop simulation platform 302, and a motor controller under test 303. The host computer system 301 is communicatively connected to the hardware-in-the-loop simulation platform 302, and the hardware-in-the-loop simulation platform 302 is communicatively connected to the motor controller under test 303 of the target vehicle.
[0046] It should be noted that the host computer system 301 may include, but is not limited to, a test sequence unit, a test management unit, and an automated test unit. The test sequence unit is used to generate test sequences to control the driving assistance system containing the motor under test controller 303 to perform corresponding actions, and to evaluate the action execution based on the feedback from the action execution. The test management unit communicates with the test sequence unit and can specifically manage the test requirements, test plans, test cases, test reports, etc. of the driving assistance system, such as parameterizing the test sequences.
[0047] Figure 4 This is a schematic diagram of the structure of a hardware-in-the-loop simulation platform according to an embodiment of the present invention, as shown below. Figure 4 As shown, the hardware-in-the-loop simulation platform 302 may include: a real-time operating system unit 312, an input-output (I / O) board, a CAN-based communication board, a signal conditioning board, a fault injection board, a motor body simulation unit 322, and a controllable high-voltage power supply. The real-time operating system unit 321 includes a central processing unit (CPU), an I / O model, a battery model, a virtual controller model, a motor model, and an insulated gate bipolar transistor (IGBT) model.
[0048] As an optional implementation, the host computer system 301 can acquire the test requirements of the motor controller 303 under test, analyze the test requirements, determine the test functions of the motor controller 303 included in the test requirements, and then determine the target simulation form of the motor controller 303 under test based on the analysis of the test functions. Then, the host computer system 301 controls the hardware-in-the-loop simulation platform 302 to construct the target simulation test environment according to the target simulation form of the motor controller 303 under test, so as to test the test functions of the motor controller 303 under test in the target simulation test environment.
[0049] In this embodiment of the invention, the test requirements of the motor controller under test (MTBT) are first obtained. Then, the target simulation format of the MTBT is determined based on the test requirements. Next, a target simulation test environment is constructed according to the target simulation format. Finally, the MTBT is tested based on the target simulation test environment to obtain test results, which are used to evaluate the performance of the MTBT. By determining the target simulation format that matches the test function of the MTBT based on the test requirements before testing the MTBT, and then constructing a suitable target simulation test environment according to the target simulation format, the functional performance test of the MTBT is performed under the target simulation test environment. This achieves the goal of flexibly switching the target simulation test environment of the MTBT, thereby improving the flexibility and efficiency of vehicle motor controller testing and solving the technical problems of poor flexibility and low testing efficiency in existing motor controller testing methods.
[0050] The methods described in the embodiments of the present invention will be further described below.
[0051] In an optional embodiment, in step S202, determining the target simulation form of the motor controller under test according to the test requirements includes:
[0052] Step S221: Analyze the test requirements and determine the function to be tested of the motor controller under test;
[0053] Step S222: Analyze the function under test and obtain the analysis results. The analysis results are used to determine whether the motor controller under test needs to use an inverter to assist in realizing the function under test.
[0054] Step S223: Determine the target simulation form from the candidate simulation forms based on the analysis results.
[0055] In step S223, determining the target simulation form from the candidate simulation forms based on the analysis results includes:
[0056] Step S2231: Based on the analysis results, it is determined that the motor controller under test needs to use an inverter to assist in realizing the function under test, and the first simulation form of the motor controller under test is determined as the target simulation form.
[0057] Step S2232: Based on the analysis results, it is determined that the motor controller under test does not need to use an inverter to assist in realizing the function under test, and the second simulation form of the motor controller under test is determined as the target simulation form.
[0058] Still as Figure 3 As shown, the host computer system 301 can analyze the test requirements and determine all functions that need to be tested in the motor controller 303 under test (such as start-stop control and speed control). Then, it analyzes the determined functions under test to determine whether the motor controller needs to use an inverter when executing the functions under test, obtains the analysis results, and then determines the target simulation form from the candidate simulation forms based on the analysis results.
[0059] In this invention, the candidate simulation formats include a first simulation format and a second simulation format. The first simulation format is a simulation model of the motor controller with an integrated inverter, and the second simulation format is a simulation model of the motor control board with the inverter removed. Figure 4 As shown, the first simulation form is the integrated inverter form. In this form, the motor controller removes the motor body and uses a power resistor instead. The motor control board can control the inverter to output three-phase (U, V, W) voltages to the power resistor and power the motor model to collect the data. The second simulation form is the inverter removal form. In this form, the motor controller only retains the motor control board. The motor model directly collects the IGBT drive signals output by the motor controller. This simulation form is based on the proprietary communication protocol between the motor control board and the inverter.
[0060] In an optional embodiment, the testing method for the vehicle motor controller further includes:
[0061] Step S205: Obtain the target test sequence, wherein the target test sequence is used to test the function under test;
[0062] Step S206: Execute the target test sequence to generate the target test signal.
[0063] The following combination Figure 5 The above methods will be further explained.
[0064] Figure 5 This is a schematic diagram of a test process for a vehicle motor controller according to an embodiment of the present invention, as shown below. Figure 3 , Figure 4 , Figure 5As shown, when testing the motor controller 303 under test, after the host computer system 301 determines the target simulation form of the motor controller 303 under test based on the obtained test requirements, the host computer system 301 downloads the simulation models such as the IO model, battery model, motor model, and virtual controller model to the real-time running system unit 321. Then, after the host computer system 301 selects the target test sequence corresponding to the function under test, it associates the parameter information of each simulation model and generates a test signal. This test signal is sent to the hardware-in-the-loop simulation platform 302 through the IO board and the CAN-based communication board.
[0065] It should be noted that, Figure 4 The I / O model serves as the link between the battery model and the hardware board channels. Within the I / O model, numerical values (e.g., physical values and electrical values) can be converted between each other based on the signal characteristics of sensors, actuators, and device controls. This conversion process can be accomplished through methods such as table lookup and mathematical operations. The controller node that interacts with the motor under test controller can employ Residual Bus Simulation (RBS) technology. RBS technology can simulate the communication function of CAN nodes. The simulation node is physically connected to the CAN bus via relays, and devices such as relays can be used to control whether the simulation node is connected to the CAN network. The CAN communication function is implemented by a CAN-based communication board. Figure 4 The IO model and battery model can simulate a controllable power supply to provide high voltage to the motor controller 303 under test; the motor model can simulate the acquisition of the three-phase voltage of the motor controller 303 under test or the acquisition of the drive signal of the IGBT of the motor controller under test.
[0066] It should also be noted that, Figure 4 The IO model can generate various test signals, which can be fed into the motor under test (MUT) 303 via CAN-based communication boards, IO boards, signal conditioning boards, and fault injection boards. It should be noted that fault injection methods can be divided into electrical fault injection and signal fault injection. Motor fault injection can include setting pin short circuits or open circuits, while signal fault injection can include setting input and output signal values that are not within a reasonable range.
[0067] Figure 6 This is a schematic diagram of the structure of a motor body simulation unit according to an embodiment of the present invention, as shown below. Figure 4 , Figure 6 As shown, the motor body simulation unit 322 can acquire the three-phase voltage of the motor by using two series-connected resistors to divide the voltage. Figure 6S1, S2, and S3 are three sampling points. Considering factors such as sampling speed, DC voltage, and isolation, there are multiple voltage values at sampling point S1 (one-third of the high-voltage DC transmission voltage, half of the high-voltage DC transmission voltage, high-voltage DC transmission voltage, and high-voltage ground voltage). The linear optocoupler (connected to the field-programmable gate array digital-to-analog converter) can output different low voltage values under various high voltage conditions to transmit the low voltage values to the motor model. In this process, a heat dissipation method of natural airflow from the heat sink plus forced air cooling from the cooling fan can be used for heat dissipation.
[0068] Still as Figure 4 , Figure 6 As shown, it should be noted that the low-voltage signal flow in the system is divided into two parts: the first part enters the signal input flow of sensors, switches, etc. of the motor under test controller. The signal is simulated by the IO board, first passing through the signal conditioning board to convert the physical signal into an electrical signal, then through the fault injection board, and finally entering the motor under test controller; the second part is the control signal output by the motor under test controller. The control signal passes through the fault injection board to the real load or simulated load, and then passes through the signal conditioning board and IO board to be sampled back to the real-time running system unit for use by the model and the host computer for display.
[0069] In an optional embodiment, in step S204, the motor controller under test is tested based on the target simulation test environment, and the test results include:
[0070] Step S241: Generate simulation condition parameters based on the target simulation test environment and target test signals;
[0071] Step S242: Transmit the simulation operating condition parameters to the motor controller under test, and receive the control signal output by the motor controller under test in response to the simulation operating condition parameters;
[0072] Step S243: Evaluate the function under test based on the control signal to obtain the test result.
[0073] In this invention, the hardware-in-the-loop simulation platform can receive various test signals generated by the IO model, generate corresponding simulation operating condition parameters based on the test signals, and then the motor under test controller receives the simulation operating condition parameters and generates control commands containing control signals in response to the simulation operating condition parameters. The host computer system collects the control signals output by the motor under test controller, and then analyzes the control signals to generate test results and test reports corresponding to the test results.
[0074] In addition, it remains the same Figure 4As shown, the hardware-in-the-loop simulation platform may also include a high-voltage status monitoring unit 323. The high-voltage status monitoring unit 323 may include: an insulation monitoring unit for monitoring the insulation condition of the high-voltage line, which can issue an audible and visual alarm or shut down the power supply to the test system when the insulation condition of the high-voltage line deteriorates; a cabinet door status monitoring unit for monitoring the cabinet door status, which can shut down the DC high-voltage output when the cabinet door is open; and a hybrid CAN monitoring unit for monitoring the working status of the hybrid CAN controller, which shuts down the DC high-voltage output when the hybrid CAN controller malfunctions.
[0075] The testing method for the vehicle motor controller provided in the above embodiments of the present invention achieves the following technical effects:
[0076] (1) It can realize both simulation closed-loop testing of motor controllers with integrated inverters and closed-loop testing of motor controllers after inverter removal, realizing flexible switching between the two closed-loop testing environments and improving the flexibility and efficiency of the testing method.
[0077] (2) The high-voltage status monitoring unit is used to monitor and protect the test process of the vehicle motor controller, which improves the safety of the test process of the motor controller.
[0078] In this embodiment, a testing device for a vehicle motor controller is also provided. This device is used to implement the above embodiments and preferred embodiments, and details already described will not be repeated. As used below, a "module" is a combination of software and / or hardware that can perform a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0079] Figure 7 This is a structural block diagram of a test device for a vehicle motor controller according to an embodiment of the present invention, as shown below. Figure 7 As shown, the device includes:
[0080] The acquisition module 701 is used to acquire the test requirements of the motor controller under test;
[0081] The determination module 702 is used to determine the target simulation form of the motor controller under test according to the test requirements.
[0082] Module 703 is used to construct the target simulation test environment according to the target simulation format;
[0083] Test module 704 is used to test the motor controller under test based on the target simulation test environment and obtain test results, which are used to evaluate the performance of the motor controller under test.
[0084] Optionally, the aforementioned determining module 702 is further configured to: analyze the test requirements and determine the function to be tested of the motor controller under test; analyze the function to be tested and obtain the analysis results, wherein the analysis results are used to determine whether the motor controller under test needs to use an inverter to assist in realizing the function to be tested; and determine the target simulation form from the candidate simulation forms based on the analysis results.
[0085] Optionally, the candidate simulation forms include a first simulation form and a second simulation form. The first simulation form is a simulation model of the motor controller with an integrated inverter, and the second simulation form is a simulation model of the motor control board with the inverter removed.
[0086] Optionally, the determining module 702 is further configured to: in response to determining, based on the analysis results, that the motor controller under test needs to use an inverter to assist in realizing the function under test, determine the first simulation form of the motor controller under test as the target simulation form; in response to determining, based on the analysis results, that the motor controller under test does not need to use an inverter to assist in realizing the function under test, determine the second simulation form of the motor controller under test as the target simulation form.
[0087] Optionally, the testing device for the vehicle motor controller further includes: a generation module 705 (not shown in the figure), used to acquire a target test sequence, wherein the target test sequence is used to test the function under test; and to execute the target test sequence to generate a target test signal.
[0088] Optionally, the test module 704 is further configured to: generate simulation operating condition parameters based on the target simulation test environment and the target test signal; transmit the simulation operating condition parameters to the motor controller under test and receive the control signal output by the motor controller under test in response to the simulation operating condition parameters; evaluate the function under test according to the control signal and obtain the test result.
[0089] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0090] According to another aspect of the present invention, a computer program product is also provided, including a computer program, wherein the computer program, when executed by a processor, implements a test method for a vehicle motor controller that performs any of the foregoing.
[0091] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored executable program, wherein, when the executable program is executed, the device on which the computer-readable storage medium is located executes any of the aforementioned test methods for a vehicle motor controller.
[0092] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0093] Step S1: Obtain the test requirements of the motor controller under test;
[0094] Step S2: Determine the target simulation format of the motor controller under test according to the test requirements;
[0095] Step S3: Construct the target simulation test environment according to the target simulation format;
[0096] Step S4: Test the motor controller under test based on the target simulation test environment and obtain the test results. The test results are used to evaluate the performance of the motor controller under test.
[0097] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing computer programs, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0098] According to another aspect of the present invention, a vehicle is also provided, including an on-board memory and an on-board processor, wherein the on-board memory stores a computer program, and the on-board processor is configured to run the computer program to perform a test method for a vehicle motor controller as described above.
[0099] Optionally, in this embodiment, the on-board processor can be configured to perform the following steps via a computer program:
[0100] Step S1: Obtain the test requirements of the motor controller under test;
[0101] Step S2: Determine the target simulation format of the motor controller under test according to the test requirements;
[0102] Step S3: Construct the target simulation test environment according to the target simulation format;
[0103] Step S4: Test the motor controller under test based on the target simulation test environment and obtain the test results. The test results are used to evaluate the performance of the motor controller under test.
[0104] Optionally, in this embodiment, the above-mentioned vehicle-mounted processor can be configured to perform the following steps through a computer program: determining the target simulation form of the motor controller under test according to the test requirements includes: parsing the test requirements to determine the function under test of the motor controller under test; analyzing the function under test to obtain the analysis results, wherein the analysis results are used to determine whether the motor controller under test needs to use an inverter to assist in realizing the function under test; and determining the target simulation form from the candidate simulation forms based on the analysis results.
[0105] Optionally, in this embodiment, the above-mentioned vehicle processor can be configured to perform the following steps through a computer program: the candidate simulation form includes a first simulation form and a second simulation form, the first simulation form is a motor controller simulation model with an integrated inverter, and the second simulation form is a motor control board simulation model with the inverter removed.
[0106] Optionally, in this embodiment, the on-board processor can be configured to execute the following steps via a computer program: in response to determining, based on the analysis results, that the motor controller under test needs to use an inverter to assist in realizing the function under test, the first simulation form of the motor controller under test is determined as the target simulation form; in response to determining, based on the analysis results, that the motor controller under test does not need to use an inverter to assist in realizing the function under test, the second simulation form of the motor controller under test is determined as the target simulation form.
[0107] Optionally, in this embodiment, the vehicle-mounted processor can be configured to perform the following steps via a computer program: obtaining a target test sequence, wherein the target test sequence is used to test the function under test; and executing the target test sequence to generate a target test signal.
[0108] Optionally, in this embodiment, the above-mentioned vehicle-mounted processor can be configured to perform the following steps through a computer program: generating simulation operating condition parameters based on the target simulation test environment and the target test signal; transmitting the simulation operating condition parameters to the motor controller under test and receiving the control signal output by the motor controller under test in response to the simulation operating condition parameters; evaluating the function under test according to the control signal and obtaining the test result.
[0109] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and their optional implementations, which will not be repeated here.
[0110] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0111] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0112] In the several embodiments provided by this invention, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection can be through some interfaces; the indirect coupling or communication connection of units or modules can be electrical or other forms.
[0113] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0114] Furthermore, the functional units in the various embodiments of the present invention 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. The integrated unit can be implemented in hardware or as a software functional unit.
[0115] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all 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 the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0116] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A test method for a vehicle motor controller, characterized in that, include: Obtain the test requirements of the motor controller under test; The test requirements are analyzed to determine the function to be tested of the motor controller under test; The function under test is analyzed to obtain analysis results, wherein the analysis results are used to determine whether the motor controller under test needs to use an inverter to assist in realizing the function under test; Based on the analysis results, the target simulation form of the motor controller under test is determined from the candidate simulation forms. The candidate simulation forms include a first simulation form and a second simulation form. The first simulation form is a simulation model of the motor controller with an integrated inverter, and the second simulation form is a simulation model of the motor control board of the inverter with the inverter removed. Construct the target simulation test environment according to the target simulation format; Obtain a target test sequence, wherein the target test sequence is used to test the function to be tested; Execute the target test sequence to generate the target test signal; Simulation operating parameters are generated based on the target simulation test environment and the target test signal; The simulated operating condition parameters are transmitted to the motor controller under test, and the control signal output by the motor controller under test in response to the simulated operating condition parameters is received. The function under test is evaluated based on the control signal to obtain test results, wherein the test results are used to evaluate the performance of the motor controller under test.
2. The test method for the vehicle motor controller according to claim 1, characterized in that, The target simulation form is determined from the candidate simulation forms based on the analysis results, including: Based on the analysis results, the response determines that the motor controller under test needs to use an inverter to assist in realizing the function under test, and determines the first simulation form of the motor controller under test as the target simulation form. Based on the analysis results, it is determined that the motor controller under test does not require the use of an inverter to achieve the function under test, and the second simulation form of the motor controller under test is determined as the target simulation form.
3. A testing device for a vehicle motor controller, characterized in that, include: The acquisition module is used to acquire the test requirements of the motor controller under test; A determination module is used to analyze the test requirements and determine the functions to be tested of the motor controller under test, wherein the functions to be tested include start-stop control and speed control; analyze the functions to be tested to obtain analysis results, wherein the analysis results are used to determine whether the motor controller under test needs to use an inverter to assist in realizing the functions to be tested; and determine the target simulation form of the motor controller under test from candidate simulation forms based on the analysis results, wherein the candidate simulation forms include a first simulation form and a second simulation form, wherein the first simulation form is a simulation model of a motor controller with an integrated inverter, and the second simulation form is a simulation model of a motor control board without the inverter; The construction module is used to construct the target simulation test environment according to the target simulation format; A generation module is used to acquire a target test sequence, wherein the target test sequence is used to test the function under test; and to execute the target test sequence to generate a target test signal. The testing module is used to generate simulation operating condition parameters based on the target simulation test environment and the target test signal; transmit the simulation operating condition parameters to the motor controller under test (MTBD), and receive control signals output by the MTBD in response to the simulation operating condition parameters, wherein the control signals include one-third of the high-voltage direct current (HVDC) transmission voltage, half of the HVDC transmission voltage, HVDC transmission voltage, and high-voltage ground voltage; evaluate the function under test according to the control signals to obtain test results, wherein the test results are used to evaluate the performance of the MTBD.
4. The testing apparatus for the vehicle motor controller according to claim 3, characterized in that, The determining module is further configured to: respond to the analysis result that the motor controller under test needs to use an inverter to assist in realizing the function under test, and determine the first simulation form of the motor controller under test as the target simulation form; Based on the analysis results, it is determined that the motor controller under test does not require the use of an inverter to achieve the function under test, and the second simulation form of the motor controller under test is determined as the target simulation form.
5. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the test method for the vehicle motor controller according to any one of claims 1 to 2.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored executable program, wherein, when the executable program is executed, it controls the device on which the computer-readable storage medium is located to perform the test method of the vehicle motor controller according to any one of claims 1 to 2.
7. A vehicle, characterized in that, The device includes an on-board memory and an on-board processor, wherein the on-board memory stores a computer program, and the on-board processor is configured to run the computer program to perform a test method for the vehicle motor controller according to any one of claims 1 to 2.
Citation Information
Patent Citations
Rail vehicle control unit simulation test method and system
CN111026071A