Vehicle motor controller test method and device, program product and storage medium

By acquiring test requirements, determining the target simulation form and building a test environment, the problems of poor flexibility and low efficiency of vehicle motor controller testing methods are solved, flexible switching and efficient testing are achieved, artificial errors are reduced, and testing accuracy is improved.

CN118938871AActive Publication Date: 2024-11-12CHINA FAW CO LTD

Patent Information

Application Number
CN202411146912.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-11-12
Estimated Expiration
2044-08-20

AI Technical Summary

Technical Problem

In the prior art, the test methods of vehicle motor controllers have poor flexibility and low testing efficiency, and there are human errors during operation, which affect the accuracy of the results.

Method used

By obtaining the test requirements of the motor controller to be tested, determining the target simulation form, building a target simulation test environment, and conducting tests based on this environment, achieving flexible switching and improving testing efficiency.

Benefits of technology

It improves the flexibility and efficiency of vehicle motor controller testing, reduces human error, and improves the accuracy of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118938871A_ABST
    Figure CN118938871A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle motor controller testing method and device, a program product and a storage medium, and relates to the technical field of vehicle simulation testing. The method comprises the following steps: acquiring a test requirement of a to-be-tested motor controller; determining a target simulation form of the to-be-tested motor controller according to a test requirement; constructing a target simulation test environment according to the target simulation form; the to-be-tested motor controller is tested based on the target simulation test environment, a test result is obtained, and the test result is used for evaluating the performance of the to-be-tested motor controller. According to the invention, the technical problems of poor flexibility and low test efficiency of a motor controller test method in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vehicle simulation testing, and in particular to a testing method, device, program product and storage medium for a vehicle motor controller. Background Art

[0002] As one of the three core electronic control systems of 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-Loop (HIL) testing is an important means to verify the functional performance of the motor controller. By establishing virtual battery and motor simulation models, it can test and verify the motor controller under semi-virtual and semi-physical conditions.

[0003] In the prior art, in order to verify the different functions of the motor controller, it is necessary to test in a test environment of the motor controller with an integrated inverter and a test environment of the motor controller board with the inverter removed respectively. This process requires that after the test of the motor controller with the integrated inverter is completed, the tester manually removes the inverter of the motor controller to test the motor controller board with the inverter removed. Since this method cannot quickly switch between the test environment of the motor controller with the integrated inverter and the test environment of the motor controller board with the inverter removed, the method has poor flexibility and low testing efficiency. In addition, in the existing HIL-based motor controller testing method, many operations need to be completed manually by the tester, which leads to human errors in the operation process and affects the accuracy of the operation results.

[0004] From the above analysis, it can be seen that, with respect to the problems of poor flexibility and low testing efficiency of the above-mentioned prior art testing methods for motor controllers, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a vehicle motor controller testing method, device, program product, and storage medium to at least solve the technical problems of poor flexibility and low testing efficiency of the prior art motor controller testing method.

[0006] According to one aspect of an embodiment of the present invention, a method for testing a vehicle motor controller is provided, comprising:

[0007] Obtain the test requirements of the motor controller to be tested; determine the target simulation form of the motor controller to be tested according to the test requirements; build a target simulation test environment according to the target simulation form; test the motor controller to be tested based on the target simulation test environment to obtain test results, wherein the test results are used to evaluate the performance of the motor controller to be tested.

[0008] Optionally, determining the target simulation form of the motor controller to be tested according to the test requirements includes: parsing the test requirements to determine the function to be tested of the motor controller to be tested; analyzing the function to be tested to obtain an analysis result, wherein the analysis result is used to determine whether the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested; and determining the target simulation form from the candidate simulation forms according to the analysis result.

[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 a motor controller with an integrated inverter, and the second simulation form is a simulation model of a motor control board with the inverter removed.

[0010] Optionally, determining a target simulation form from candidate simulation forms based on the analysis results includes: in response to determining according to the analysis results that the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested, determining the first simulation form of the motor controller to be tested as the target simulation form; in response to determining according to the analysis results that the motor controller to be tested does not need to use an inverter to assist in realizing the function to be tested, determining the second simulation form of the motor controller to be tested as the target simulation form.

[0011] Optionally, the above-mentioned vehicle motor controller testing method further includes: acquiring a target test sequence, wherein the target test sequence is used to test the function to be tested; and executing the target test sequence to generate a target test signal.

[0012] Optionally, the motor controller to be tested is tested based on the target simulation test environment, and the test results obtained include: 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 to be tested, and receiving a control signal output by the motor controller to be tested in response to the simulation operating condition parameters; evaluating the function to be tested according to the control signal to obtain the test results.

[0013] According to another aspect of an embodiment of the present invention, a testing device for a vehicle motor controller is provided, comprising:

[0014] An acquisition module is used to obtain the test requirements of the motor controller to be tested; a determination module is used to determine the target simulation form of the motor controller to be tested according to the test requirements; a construction module is used to construct a target simulation test environment according to the target simulation form; a test module is used to test the motor controller to be tested based on the target simulation test environment to obtain test results, wherein the test results are used to evaluate the performance of the motor controller to be tested.

[0015] Optionally, the above-mentioned determination module is also used to: analyze the test requirements and determine the function to be tested of the motor controller to be tested; analyze the function to be tested to obtain an analysis result, wherein the analysis result is used to determine whether the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested; determine the target simulation form from the candidate simulation forms according to the analysis result.

[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 a motor controller with an integrated inverter, and the second simulation form is a simulation model of a motor control board with the inverter removed.

[0017] Optionally, the above-mentioned determination module is also used for: in response to determining according to the analysis results that the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested, determining the first simulation form of the motor controller to be tested as the target simulation form; in response to determining according to the analysis results that the motor controller to be tested does not need to use an inverter to assist in realizing the function to be tested, determining the second simulation form of the motor controller to be tested as the target simulation form.

[0018] Optionally, the above-mentioned vehicle motor controller test device also includes: a generation module, used to obtain a target test sequence, wherein the target test sequence is used to test the function to be tested; and execute 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 to be tested, and receive the control signal output by the motor controller to be tested in response to the simulation operating condition parameters; evaluate the function to be tested according to the control signal to obtain the test result.

[0020] According to another aspect of an embodiment of the present invention, there is further provided a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the aforementioned vehicle motor controller testing methods.

[0021] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the aforementioned vehicle motor controller testing methods.

[0022] According to another aspect of an embodiment of the present invention, a vehicle is provided, comprising an on-board memory and an on-board processor, wherein a computer program is stored in the on-board memory, and the on-board processor is configured to run the computer program to execute any one of the aforementioned vehicle motor controller testing methods.

[0023] In an embodiment of the present invention, the test requirements of the motor controller to be tested are first obtained, then the target simulation form of the motor controller to be tested is determined according to the test requirements, then the target simulation test environment is constructed according to the target simulation form, and finally the motor controller to be tested is tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested. Before testing the motor controller to be tested, the target simulation form that meets the function to be tested of the controller to be tested is determined according to the test requirements of the motor controller to be tested, and then a suitable target simulation test environment is constructed according to the target simulation form, so as to perform a functional performance test of the motor controller to be tested under the target simulation test environment, thereby achieving the purpose of flexibly switching the target simulation test environment of the motor controller to be tested, thereby achieving the technical effect of improving the flexibility of vehicle motor controller testing and improving test efficiency, thereby solving the technical problems of poor flexibility and low test efficiency of the prior art test method for motor controllers. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0025] Figure 1 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;

[0026] Figure 2 is a flow chart of a method for testing a vehicle motor controller according to an embodiment of the present invention;

[0027] Figure 3 is a schematic diagram of a vehicle motor controller testing system according to an embodiment of the present invention;

[0028] Figure 4 is a structural schematic diagram of a hardware-in-the-loop simulation platform according to an embodiment of the present invention;

[0029] Figure 5 is a schematic diagram of a testing process of a vehicle motor controller according to an embodiment of the present invention;

[0030] Figure 6 is a schematic structural diagram of a motor body simulation unit according to an embodiment of the present invention;

[0031] Figure 7 The present invention is a structural block diagram of a vehicle motor controller testing device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work 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 and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] According to an embodiment of the present invention, a method embodiment of a vehicle motor controller testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0035] Figure 1 is a hardware structure block diagram of a vehicle terminal according to an optional testing method for a vehicle motor controller according to an embodiment of the present invention, such as Figure 1 As shown, the vehicle terminal (or mobile device) may include one or more processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor (Microcontroller Unit, MCU) or a programmable logic device (Field Programmable Gate Array, FPGA)), 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 and output device 108 (i.e., an IO device), 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). It can be understood by those skilled in the art that Figure 1The structure shown is only for illustration and does not limit the structure of the vehicle terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0036] It should be noted that the 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. In addition, the data processing circuit may be a single independent processing module, or may be integrated in whole or in part into any of the other components in 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 vehicle motor controller test method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the above-mentioned vehicle motor controller test method is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the vehicle terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0038] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the vehicle terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0039] Under the above operating environment, the embodiment of the present invention provides the following Figure 2 The test method of the vehicle motor controller shown in Figure 2 is a flow chart of a method for testing a vehicle motor controller according to an embodiment of the present invention. Figure 2 As shown, the method includes the following implementation steps:

[0040] Step S201, obtaining the test requirements of the motor controller to be tested;

[0041] Step S202, determining the target simulation form of the motor controller to be tested according to the test requirements;

[0042] Step S203, constructing a target simulation test environment according to the target simulation form;

[0043] Step S204 , testing the motor controller to be tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested.

[0044] The following combination Figure 3 , Figure 4 The above method is further explained.

[0045] Figure 3 is a schematic diagram of a vehicle motor controller test system according to an embodiment of the present invention, such as 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 303 to be tested. 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 303 to be tested 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, wherein the test sequence unit is used to generate a test sequence to control the driving assistance system including the motor controller 303 to be tested to perform corresponding actions, and evaluate the execution of the actions based on the feedback of the action execution; the test management unit is communicatively connected with the test sequence unit, and the test management unit can perform specific management on the test requirements, test plans, test cases, test reports, etc. of the driving assistance system, for example: parameterizing the test sequence.

[0047] Figure 4 is a schematic diagram of the structure of a hardware-in-the-loop simulation platform according to an embodiment of the present invention. Figure 4 As shown, the hardware-in-the-loop simulation platform 302 may include: a real-time operating system unit 312, an input-output (In-Out, IO) 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, wherein the real-time operating system unit 321 includes a central processing unit (Central Processing Unit, CPU), an IO model, a battery model, a virtual controller model, a motor model, and an insulated gate bipolar transistor (Insulated Gate Bipolar Transistor, IGBT) model.

[0048] As an optional implementation, the host computer system 301 can obtain the test requirements of the motor controller 303 to be tested, and analyze the test requirements to determine the functions to be tested of the motor controller 303 to be tested included in the test requirements, and then determine the target simulation form of the motor controller 303 to be tested based on the analysis of the functions to be tested. Then, the host computer system 301 controls the hardware-in-the-loop simulation platform 302 to build a target simulation test environment according to the target simulation form of the motor controller 303 to be tested, thereby testing the functions to be tested of the motor controller 303 to be tested under the target simulation test environment.

[0049] In an embodiment of the present invention, the test requirements of the motor controller to be tested are first obtained, then the target simulation form of the motor controller to be tested is determined according to the test requirements, then the target simulation test environment is constructed according to the target simulation form, and finally the motor controller to be tested is tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested. Before testing the motor controller to be tested, the target simulation form that meets the function to be tested of the controller to be tested is determined according to the test requirements of the motor controller to be tested, and then a suitable target simulation test environment is constructed according to the target simulation form, so as to perform a functional performance test of the motor controller to be tested under the target simulation test environment, thereby achieving the purpose of flexibly switching the target simulation test environment of the motor controller to be tested, thereby achieving the technical effect of improving the flexibility of vehicle motor controller testing and improving test efficiency, thereby solving the technical problems of poor flexibility and low test efficiency of the prior art test method for motor controllers.

[0050] The above method of the embodiment of the present invention is further introduced below.

[0051] In an optional embodiment, in step S202, determining the target simulation form of the motor controller to be tested according to the test requirements includes:

[0052] Step S221, analyzing the test requirements and determining the function to be tested of the motor controller to be tested;

[0053] Step S222, analyzing the function to be tested to obtain an analysis result, wherein the analysis result is used to determine whether the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested;

[0054] Step S223, determining a target simulation form from the candidate simulation forms according to the analysis result.

[0055] Wherein, in step S223, determining the target simulation form from the candidate simulation forms according to the analysis result includes:

[0056] Step S2231, in response to determining according to the analysis result that the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested, the first simulation form of the motor controller to be tested is determined as the target simulation form;

[0057] Step S2232, in response to determining according to the analysis result that the motor controller to be tested does not need to use an inverter to assist in realizing the function to be tested, the second simulation form of the motor controller to be tested is determined as the target simulation form.

[0058] Still Figure 3 As shown, the host computer system 301 can parse the test requirements and determine all functions that need to be tested on the motor controller 303 to be tested (such as start-stop control, speed control), and then analyze the determined functions to be tested to determine whether an inverter is required when the motor controller executes the functions to be tested, and obtain analysis results, thereby determining the target simulation form from the candidate simulation forms based on the analysis results.

[0059] In the present invention, the candidate simulation forms include a first simulation form and a second simulation form, 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 with the inverter removed. Figure 4 As shown, the first simulation form is an integrated inverter form. The motor controller of this form removes the motor body and uses a power resistor instead of the motor body. The motor control board can control the inverter to output three-phase (U, V, W) voltage to the power resistor and provide it to the motor model for collection; the second simulation form is a form of removing the inverter. The motor controller of this form only retains the motor control board, and the motor model directly collects the drive signal of the IGBT output by the motor controller. This simulation form is based on a private communication protocol between the motor control board and the inverter.

[0060] In an optional embodiment, the vehicle motor controller testing method further includes:

[0061] Step S205, obtaining a target test sequence, wherein the target test sequence is used to test the function to be tested;

[0062] Step S206, executing a target test sequence to generate a target test signal.

[0063] The following combination Figure 5 The above method is further explained.

[0064] Figure 5 is a schematic diagram of a test process of a vehicle motor controller according to an embodiment of the present invention, such as Figure 3 , Figure 4 , Figure 5As shown, when testing the motor controller 303 to be tested, after the host computer system 301 determines the target simulation form of the motor controller 303 to be tested according to the acquired test requirements, the host computer system 301 downloads the simulation models such as the IO model, battery model, motor model, virtual controller model, etc. that need to be used to the real-time operation system unit 321. Then, after the host computer system 301 selects the target test sequence corresponding to the function to be tested, it associates the parameter information of each simulation model and generates a test signal, which 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 IO model is the link between the battery model and the hardware board channel. In the IO model, the values ​​(such as physical values ​​and electrical values) can be converted to each other according to the signal characteristics of sensors, actuators, equipment control, etc. The numerical conversion process can be completed by table lookup, mathematical operations and other methods; the controller node that interacts with the motor controller to be tested can adopt the residual bus simulation (RBS) technology. The RBS technology can simulate the communication function of the CAN node. The simulation node is physically connected to the CAN bus through a relay. Relays and other devices 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 battery model in the IO model can simulate a controllable power supply to provide high voltage electricity 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 simulate the acquisition of the driving 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, and the test signals can enter the motor controller 303 to be tested through the CAN-based communication board, IO board, signal conditioning board, and fault injection board. It should be noted here that the fault injection method can be divided into electrical fault injection and signal fault injection. The motor fault injection can include setting pin short circuit, open circuit, etc., and the signal fault can include setting the input signal value and output signal value that are not within a reasonable range.

[0067] Figure 6 is a schematic diagram of the structure of a motor body simulation unit according to an embodiment of the present invention. Figure 4 , Figure 6 As shown, the motor body simulation unit 322 can collect the three-phase voltage of the motor by using two series 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 the sampling point S1 (one-third of the high-voltage DC transmission voltage, one-half of the high-voltage DC transmission voltage, the high-voltage DC transmission voltage, and the high-voltage ground voltage). The linear optocoupler (a digital-to-analog converter connected to a field programmable logic gate array) can output different low voltage values ​​at a variety of high voltages to transmit the low voltage values ​​to the motor model. In this process, the heat dissipation method of natural wind from the heat sink and forced air cooling from the cooling fan can be used for heat dissipation.

[0068] Still 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 sensor, switch and other signal input streams of the motor controller to be tested. The signal is simulated by the IO board and first passes through the signal conditioning board to convert the physical signal into an electrical signal, and then passes through the fault injection board, and finally enters the motor controller to be tested; the second part is the control signal output by the motor controller to be tested. 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 the IO board to collect it back to the real-time running system unit for display by the model and the host computer.

[0069] In an optional embodiment, in step S204, the motor controller to be tested is tested based on the target simulation test environment, and the test results obtained include:

[0070] Step S241, generating simulation operating condition parameters based on the target simulation test environment and the target test signal;

[0071] Step S242, transmitting the simulation working condition parameters to the motor controller to be tested, and receiving a control signal output by the motor controller to be tested in response to the simulation working condition parameters;

[0072] Step S243, evaluating the function to be tested according to the control signal to obtain a test result.

[0073] In the present invention, the hardware-in-the-loop simulation platform can receive various test signals generated by the IO model, and generate corresponding simulation operating condition parameters according to the test signals. Then, the motor controller to be tested receives the simulation operating condition parameters and generates control instructions containing control signals in response to the simulation operating condition parameters. The upper computer system collects the control signals output by the motor controller to be tested, and then analyzes the control signals to generate test results and test reports corresponding to the test results.

[0074] In addition, Figure 4As shown, the hardware-in-the-loop simulation platform may further include a high-voltage status monitoring unit 323, which may include: an insulation monitoring unit for monitoring the insulation condition of the high-voltage line, which may issue an audible and visual alarm or shut down the power supply of 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 may shut down the DC high-voltage output when the cabinet door is opened; and a hybrid CAN monitoring unit for monitoring the working status of the hybrid CAN controller, which may shut down the DC high-voltage output when the hybrid CAN controller is working abnormally.

[0075] The vehicle motor controller testing method provided by the above embodiment of the present invention achieves the following technical effects:

[0076] (1) It can realize the simulation closed-loop test of the motor controller with integrated inverter, and can also realize the closed-loop test of the motor controller after removing the inverter, realizing the flexible switching of the two closed-loop test environments, and improving the flexibility and efficiency of the test method;

[0077] (2) The high-voltage status monitoring unit is used to monitor and protect the test process of the vehicle motor controller, thereby improving the safety of the motor controller test process.

[0078] In this embodiment, a test device for a vehicle motor controller is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, a "module" is a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0079] Figure 7 is a structural block diagram of a vehicle motor controller test device according to an embodiment of the present invention, such as Figure 7 As shown, the device comprises:

[0080] An acquisition module 701 is used to acquire the test requirements of the motor controller to be tested;

[0081] A determination module 702 is used to determine a target simulation form of the motor controller to be tested according to the test requirements;

[0082] A construction module 703 is used to construct a target simulation test environment according to a target simulation form;

[0083] The testing module 704 is used to test the motor controller to be tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested.

[0084] Optionally, the above-mentioned determination module 702 is also used to: analyze the test requirements and determine the function to be tested of the motor controller to be tested; analyze the function to be tested to obtain an analysis result, wherein the analysis result is used to determine whether the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested; determine the target simulation form from the candidate simulation forms according to the analysis result.

[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 a motor controller with an integrated inverter, and the second simulation form is a simulation model of a motor control board with the inverter removed.

[0086] Optionally, the above-mentioned determination module 702 is also used for: in response to determining according to the analysis results that the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested, determining the first simulation form of the motor controller to be tested as the target simulation form; in response to determining according to the analysis results that the motor controller to be tested does not need to use an inverter to assist in realizing the function to be tested, determining the second simulation form of the motor controller to be tested as the target simulation form.

[0087] Optionally, the above-mentioned vehicle motor controller testing device also includes: a generating module 705 (not shown in the figure), which is used to obtain a target test sequence, wherein the target test sequence is used to test the function to be tested; and execute the target test sequence to generate a target test signal.

[0088] Optionally, the above-mentioned test module 704 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 to be tested, and receive the control signal output by the motor controller to be tested in response to the simulation operating condition parameters; evaluate the function to be tested according to the control signal to obtain the test result.

[0089] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0090] According to another aspect of an embodiment of the present invention, there is further provided a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any one of the aforementioned vehicle motor controller testing methods.

[0091] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, which includes a stored executable program, wherein when the executable program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the aforementioned vehicle motor controller testing methods.

[0092] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0093] Step S1, obtaining the test requirements of the motor controller to be tested;

[0094] Step S2, determining the target simulation form of the motor controller to be tested according to the test requirements;

[0095] Step S3, constructing a target simulation test environment according to the target simulation form;

[0096] Step S4, testing the motor controller to be tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested.

[0097] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0098] According to another aspect of an embodiment of the present invention, a vehicle is provided, comprising an on-board memory and an on-board processor, wherein a computer program is stored in the on-board memory, and the on-board processor is configured to run the computer program to execute any one of the aforementioned vehicle motor controller testing methods.

[0099] Optionally, in this embodiment, the vehicle-mounted processor may be configured to perform the following steps through a computer program:

[0100] Step S1, obtaining the test requirements of the motor controller to be tested;

[0101] Step S2, determining the target simulation form of the motor controller to be tested according to the test requirements;

[0102] Step S3, constructing a target simulation test environment according to the target simulation form;

[0103] Step S4, testing the motor controller to be tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested.

[0104] Optionally, in this embodiment, the above-mentioned on-board processor can be configured to perform the following steps through a computer program: determining the target simulation form of the motor controller to be tested according to the test requirements, including: parsing the test requirements to determine the function to be tested of the motor controller to be tested; analyzing the function to be tested to obtain an analysis result, wherein the analysis result is used to determine whether the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested; determining the target simulation form from the candidate simulation forms according to the analysis result.

[0105] Optionally, in this embodiment, the above-mentioned on-board processor can be configured to perform the following steps through a computer program: the candidate simulation forms include a first simulation form and a second simulation form, the first simulation form is a motor controller simulation model of 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 above-mentioned on-board processor can be configured to perform the following steps through a computer program: in response to determining according to the analysis results that the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested, the first simulation form of the motor controller to be tested is determined as the target simulation form; in response to determining according to the analysis results that the motor controller to be tested does not need to use an inverter to assist in realizing the function to be tested, the second simulation form of the motor controller to be tested is determined as the target simulation form.

[0107] Optionally, in this embodiment, the above-mentioned on-board processor can be configured to perform the following steps through a computer program: obtaining a target test sequence, wherein the target test sequence is used to test the function to be tested; and executing the target test sequence to generate a target test signal.

[0108] Optionally, in this embodiment, the above-mentioned on-board processor can be configured to perform the following steps through a computer program: 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 to be tested, and receive the control signal output by the motor controller to be tested in response to the simulation operating condition parameters; evaluate the function to be tested according to the control signal to obtain the test result.

[0109] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiment and its optional implementation modes, and this embodiment will not be described in detail here.

[0110] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0111] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0112] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0113] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0114] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0115] If the integrated unit is implemented in the form of 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk, etc., various media that can store program codes.

[0116] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for testing a vehicle motor controller, characterized in that: include: Obtain the test requirements of the motor controller to be tested; Determine the target simulation form of the motor controller to be tested according to the test requirements; Constructing a target simulation test environment according to the target simulation form; The motor controller to be tested is tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested.

2. The vehicle motor controller testing method according to claim 1, characterized in that: Determining the target simulation form of the motor controller to be tested according to the test requirements includes: Analyzing the test requirements to determine the function to be tested of the motor controller to be tested; Analyze the function to be tested to obtain an analysis result, wherein the analysis result is used to determine whether the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested; The target simulation form is determined from candidate simulation forms according to the analysis result.

3. The vehicle motor controller testing method according to claim 2, characterized in that: The candidate simulation forms include a first simulation form and a second simulation form, the first simulation form is a simulation model of a motor controller integrated with an inverter, and the second simulation form is a simulation model of a motor control board with the inverter removed.

4. The vehicle motor controller testing method according to claim 2, characterized in that: Determining the target simulation form from the candidate simulation forms according to the analysis result includes: In response to determining, according to the analysis result, that the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested, determining the first simulation form of the motor controller to be tested as the target simulation form; In response to determining, according to the analysis result, that the motor controller to be tested does not need to use an inverter to assist in realizing the function to be tested, the second simulation form of the motor controller to be tested is determined as the target simulation form.

5. The vehicle motor controller testing method according to claim 2, characterized in that: The vehicle motor controller testing method further includes: Acquire a target test sequence, wherein the target test sequence is used to test the function to be tested; The target test sequence is executed to generate a target test signal.

6. The vehicle motor controller testing method according to claim 5, characterized in that: The motor controller to be tested is tested based on the target simulation test environment, and the test result obtained includes: Generate simulation operating condition parameters based on the target simulation test environment and the target test signal; Transmitting the simulated operating condition parameters to the motor controller to be tested, and receiving a control signal output by the motor controller to be tested in response to the simulated operating condition parameters; The function to be tested is evaluated according to the control signal to obtain the test result.

7. A vehicle motor controller test device, characterized in that: include: An acquisition module is used to obtain the test requirements of the motor controller to be tested; A determination module, used to determine a target simulation form of the motor controller to be tested according to the test requirements; A construction module, used to construct a target simulation test environment according to the target simulation form; The test module is used to test the motor controller to be tested based on the target simulation test environment to obtain a test result, wherein the test result is used to evaluate the performance of the motor controller to be tested.

8. The vehicle motor controller test device according to claim 7, characterized in that: The determination module is also used to: parse the test requirements to determine the function to be tested of the motor controller to be tested; analyze the function to be tested to obtain an analysis result, wherein the analysis result is used to determine whether the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested; and determine the target simulation form from candidate simulation forms based on the analysis result.

9. The vehicle motor controller test device according to claim 8, characterized in that: The candidate simulation forms include a first simulation form and a second simulation form, the first simulation form is a simulation model of a motor controller integrated with an inverter, and the second simulation form is a simulation model of a motor control board with the inverter removed.

10. The vehicle motor controller testing device according to claim 8, characterized in that: The determination module is further used for: in response to determining according to the analysis result that the motor controller to be tested needs to use an inverter to assist in realizing the function to be tested, determining the first simulation form of the motor controller to be tested as the target simulation form; In response to determining, according to the analysis result, that the motor controller to be tested does not need to use an inverter to assist in realizing the function to be tested, the second simulation form of the motor controller to be tested is determined as the target simulation form.

11. The vehicle motor controller testing device according to claim 8, characterized in that: The vehicle motor controller test device further includes: a generation module for acquiring a target test sequence, wherein the target test sequence is used to test the function to be tested; and executing the target test sequence to generate a target test signal.

12. The vehicle motor controller testing device according to claim 11, characterized in that: The 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 to be tested, and receive a control signal output by the motor controller to be tested in response to the simulation operating condition parameters; The function to be tested is evaluated according to the control signal to obtain the test result.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the vehicle motor controller testing method according to any one of claims 1 to 6 is implemented.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the computer-readable storage medium is located is controlled to execute the vehicle motor controller testing method according to any one of claims 1 to 6.

15. A vehicle, characterized in that: The vehicle-mounted memory comprises a vehicle-mounted memory and a vehicle-mounted processor, wherein the vehicle-mounted memory stores a computer program, and the vehicle-mounted processor is configured to run the computer program to execute the vehicle motor controller testing method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Simulation method and device for testing function of motor controller and simulation equipment for testing function of motor controller

    CN108490916A

  • Method for controlling hardware loop test system of motor controller of pure electric bus

    CN110673582A

  • Motor controller automatic test system

    CN110727259A

  • Rail vehicle control unit simulation test method and system

    CN111026071A

  • Simulation test method, system and device of inverter and processor

    CN116502583A

Cited By

  • Vehicle performance test method and device, storage medium and vehicle

    CN121325814A