Method, system, device and medium for testing motor simulator, motor controller

By designing the main control unit and power control unit of the motor simulator, the output signal of the main controller is simulated, which improves the testing efficiency and voltage level of the motor controller, solves the problems of low testing efficiency and high cost in the existing technology, and realizes more efficient and safer motor controller testing.

CN115562223BActive Publication Date: 2026-06-16SHANGHAI KELIANG INFORMATION ENG

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI KELIANG INFORMATION ENG
Filing Date
2022-09-21
Publication Date
2026-06-16

AI Technical Summary

Technical Problem

Existing technologies for motor controllers suffer from low testing efficiency, high cost, and insufficient voltage levels and testing frequencies, failing to meet the needs of new energy electric vehicles.

Method used

A motor simulator was designed, including a main control unit and a power control unit. The main control model of the main control unit simulates the output signal of the main controller and outputs signals with preset voltage and frequency to test the motor controller, thereby increasing the voltage level and test frequency.

🎯Benefits of technology

It improves the testing efficiency and safety of motor controllers, reduces testing costs, and enables higher voltage levels and testing frequencies to meet the testing needs of new energy electric vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115562223B_ABST
    Figure CN115562223B_ABST
Patent Text Reader

Abstract

The embodiment of the application relates to new energy automobile technology, and discloses a motor simulator, a test method, a system, equipment and a medium of a motor controller. The motor simulator comprises a main control unit and a power control unit. The power control unit comprises a power component control unit. The power component control unit is used for collecting a first signal sent by the motor controller to the motor simulator and sending the first signal to the main control unit. The main control unit comprises a main control model constructed according to a main controller of the motor in advance. The main control model is used for outputting a second control signal according to a preset voltage and the first signal and sending the second control signal to the power control unit. The power component control unit is further used for adjusting the second control signal to obtain a third control signal and outputting the third control signal at a preset frequency. The third control signal is used for testing the motor controller, so that the test frequency and the test efficiency of the motor controller are improved, and the test cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of new energy vehicle technology, and in particular to a test method, system, equipment and medium for a motor simulator and a motor controller. Background Technology

[0002] The power components of a new energy electric vehicle mainly include a motor controller and a permanent magnet synchronous motor. Electric vehicles typically use 530V DC voltage to power the motor controller, which then controls the motor to convert energy into power. The configuration of the vehicle body and motor needs to be determined through power calculations. Generally, a 30KW motor is sufficient to meet the size and load requirements of civilian electric vehicles. Therefore, electric vehicle manufacturers usually use a 30KW motor as standard equipment.

[0003] To ensure that the motor controller does not malfunction after actual vehicle operation, thereby improving the reliability of vehicle driving safety, it is necessary to test the motor controller during the vehicle manufacturing and R&D production process. One testing method is to use a motor test bench to test the motor controller, but this method has low testing efficiency and high bench cost. Another testing method is to use a motor simulator to test the motor controller, but this method has lower voltage levels and testing frequency. Summary of the Invention

[0004] The purpose of this application is to provide a test method, system, device and medium for a motor simulator and a motor controller, which can improve the voltage level, test frequency and test efficiency, and reduce the test cost when testing the motor controller.

[0005] To address the aforementioned technical problems, embodiments of this application provide a motor simulator, comprising: a main control unit and a power control unit, the main control unit and the power control unit being connected; the power control unit includes a power component control unit, which is used to acquire a first signal sent by a motor controller to the motor simulator and send the first signal to the main control unit; the main control unit includes a main control model pre-constructed based on the motor's main controller, the main control model being used to output a second control signal based on a preset voltage and the first signal, and send the second control signal to the power control unit; the power component control unit is further used to adjust the second control signal to obtain a third control signal, and output the third control signal at a preset frequency; wherein, the third control signal is used to test the motor controller.

[0006] An embodiment of this application also provides a testing method for a motor controller, applied to a motor simulator, wherein the motor simulator is the motor simulator described above, and the method includes: acquiring a first signal sent by the motor controller;

[0007] A second control signal is generated based on the preset voltage and the first signal;

[0008] The second control signal is adjusted to obtain a third control signal, and the third control signal is output at a preset frequency; wherein, the third control signal is used to test the motor controller.

[0009] Embodiments of this application also provide a test system for a motor controller, including a motor controller, a motor simulator, and a host computer, wherein the motor controller is connected to the motor simulator, and the motor simulator is connected to the host computer.

[0010] Embodiments of this application also provide an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to perform the above-described test method for a motor controller.

[0011] Embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described test method for the motor controller.

[0012] Compared to existing technologies, the motor simulator in this application includes a main control unit and a power control unit, which are connected. The power control unit includes a power component control unit, which can collect a first signal sent by the motor controller to the motor simulator and send the first signal to the main control unit. The main control unit includes a main control model pre-built based on the motor's main controller. By running the main control model, it can simulate the main controller sending control signals to the power control unit. The power supply voltage of the motor simulator is a preset voltage. Therefore, the main control model can output a second control signal based on the preset voltage and the first signal, and send the second control signal to the power control unit. This allows the power control unit to adjust the second control signal and output a third control signal at a preset frequency. That is, the output voltage supplies power to the device, and the third control signal is the output signal of the motor simulator. Therefore, the third control signal can be used to test the motor controller. Since the power supply voltage of the motor simulator is a preset voltage and the output frequency is preset, the voltage level and test frequency can be increased by setting the preset voltage and output frequency values. Furthermore, this application completes the motor controller test by simulating the output of the main controller through a model, which is more efficient than bench testing and saves the cost of bench testing.

[0013] Furthermore, the number of power component control units is N, where N is an integer greater than 0. The rated power of each power component control unit is preset. The motor simulator also includes drive units connected to the main control unit and the power control units respectively. The drive unit includes N drive circuits, and each drive circuit corresponds to one power component control unit. Different drive circuits correspond to different power component control units. The main control unit is specifically used to send the output second control signal to the target drive circuit in the drive unit. The target drive circuit is used to send the second control signal to the power component control unit corresponding to the target drive circuit. In this application, the output signals of N different power component control units are controlled by N different drive circuits, so that the third control signal output by the power component control unit is controllable in real time. At the same time, the power level of the power control unit can be increased by increasing the number of power component control units.

[0014] In addition, the motor simulator also includes feedback units connected to the main control unit and the power control unit respectively; the feedback unit includes M feedback circuits, where M is an integer greater than N, and each power component control unit corresponds to one feedback circuit, with different power component control units 110 corresponding to different feedback circuits; the power component control unit is specifically used to send the collected first signal to the target feedback circuit corresponding to the power component control unit; the target feedback circuit is used to send the first signal to the main control unit. In this application, signals from the motor controller collected by the power control unit are received through different feedback circuits to achieve individual control of the power component control unit.

[0015] Furthermore, the power component control units are connected via a DC bus; the DC bus is also equipped with a DC bleed resistor, a DC-to-ground bleed resistor, a bleed relay, and an absorption capacitor. This application can achieve AC to DC signal conversion via the DC bus.

[0016] In addition, the ripple current of the DC bus is calculated using the Space Vector Pulse Width Modulation (SVPWM) algorithm. The formula for calculating the ripple current is as follows: Wherein, the I CRMS The ripple current is represented by I. c The current of the power control unit is denoted by t, and the operating time of the motor simulator is denoted by t.

[0017] In addition, the power component control unit includes a three-phase interface through which it acquires the first signal; the power control unit also includes an SFP interface through which it sends the first signal to the main control unit. This application can improve the communication rate between the power component control unit and the motor controller, and between the power control unit and the main control unit. Attached Figure Description

[0018] One or more embodiments are illustrated by way of example with reference to the accompanying drawings, and these illustrative descriptions do not constitute a limitation on the embodiments.

[0019] Figure 1 This is a schematic diagram of the structure of a motor simulator according to an embodiment of this application. Figure 1 ;

[0020] Figure 2 This is a schematic diagram of the structure of a power component control unit according to an embodiment of this application;

[0021] Figure 3 This is a schematic diagram of the structure of a motor simulator according to an embodiment of this application. Figure 2 ;

[0022] Figure 4 This is a flowchart illustrating a test method for a motor controller according to an embodiment of this application.

[0023] Figure 5 This is a schematic diagram of the structure of a test system for a motor controller according to an embodiment of this application;

[0024] Figure 6 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0025] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the various embodiments of this application will be described in detail below with reference to the accompanying drawings. However, those skilled in the art will understand that many technical details have been provided in the various embodiments of this application to help readers better understand this application. However, the technical solutions claimed in this application can be implemented even without these technical details and various changes and modifications based on the following embodiments. The division of the various embodiments below is for the convenience of description and should not constitute any limitation on the specific implementation of this application. The various embodiments can be combined with and referenced by each other without contradiction.

[0026] To facilitate understanding, the motor simulator is explained as follows:

[0027] A motor simulator is a testing device designed to meet the testing needs of motor controllers in vehicle manufacturing and R&D. It simulates the actual operation of a motor based on the performance of the motor controller. The motor simulator can simulate the actual working state of the motor when the motor controller is operating, serving as a substitute test piece for the motor and providing a technical solution for testing motor controllers without a motor. Furthermore, the motor simulator accurately reflects test results and data, thus clarifying the precise requirements of the motor controller during the design and development phase. It can also simulate different control methods under the same working environment according to customer needs, offering high-end controllable and adjustable performance. Therefore, compared to testing motor controllers using a test bench, the method of using a motor simulator solves the problem of testing motor controllers without a motor under load, offering higher testing efficiency and safety, and eliminating the cost of a test bench.

[0028] However, existing motor simulators in related technologies, such as the Scienlab new energy vehicle motor simulator, have a voltage level of 560V and a frequency within 2.5kHz, which are both relatively low. The motor simulator of this application not only possesses the advantages of traditional motor simulators—high testing efficiency, high safety, and low cost—but also allows for higher voltage levels and testing frequencies when testing motor controllers.

[0029] One embodiment of this application relates to a motor simulator. The implementation details of the motor simulator in this embodiment are described in detail below. The following content is only for the convenience of understanding and is not necessary for implementing this solution.

[0030] The structure of the motor simulator in this embodiment is as follows: Figure 1 As shown, it includes a main control unit 10 and a power control unit 11, wherein the main control unit 10 and the power control unit 11 are connected.

[0031] The main control unit 10 in this embodiment includes a main control model 100, which is pre-built based on the motor's main controller. The main control model 100 is used to send control signals to the power control unit 11 to control the operation of the power control unit 11. The power control unit 11 includes a power component control unit 110, which is used to adjust the control signals sent by the main control model 100 and output the adjusted control signals to supply power to the device. Based on the control signals output by the power component control unit 110 and preset test items, the motor controller can be tested. The control signals can be voltage signals or current signals.

[0032] Specifically, the motor controller controls the operation of the motor simulator. Therefore, the motor controller first sends a control signal, i.e., a first signal, to the motor simulator. The power component control unit 110 in the power control unit 11 can collect the first signal sent by the motor controller to the motor simulator, and then send the first signal to the main control unit 10. This causes the main control model 100 in the main control unit 10 to output a second control signal based on a preset voltage and the first signal, and send the second control signal to the power control unit 11. The preset voltage is determined by the power supply connected to the motor simulator in this embodiment, for example, a preset voltage of 900V. The power component control unit 110 can adjust the second control signal to obtain a third control signal, and output the third control signal at a preset frequency, which can be 5kHz. Therefore, the motor controller can be tested based on the third control signal output by the power component control unit 110 and the preset test items.

[0033] In one example, the specific testing can be performed by the host computer. That is, control signals are sent to the host computer simultaneously with the input to the corresponding device. Preset test items are stored in the host computer, enabling it to complete the motor controller test. Alternatively, the motor controller test can be performed by clicking on a component in the simulator; in this case, the preset test items are stored in the motor simulator. These preset test items can be a processed standard control signal output by the motor simulator based on the control signals sent by the motor controller to the simulator under standard conditions. The host computer or the motor simulator itself compares the third control signal with the standard control signal to complete the motor controller test.

[0034] In one example, the structure of the power component control unit 110 is as follows: Figure 2 As shown, the system includes an analog component and a three-phase interface. The analog component is used to acquire the first signal sent by the motor controller to the motor simulator and send the first signal to the main control unit 10. It also adjusts the second control signal sent by the main control unit 10 to obtain a third control signal and outputs the third control signal at a preset frequency. The power component control unit 110 is connected to the motor controller through the three-phase interface. Therefore, the power component control unit 110 can acquire the first signal sent by the motor controller to the motor simulator through the three-phase interface to improve the communication rate between the power component control unit and the motor controller. The power control unit 11 includes an optical module (Small Form Pluggable, SFP interface). The power control unit 11 is connected to the main control unit 10 through the SFP interface. Therefore, the power control unit 11 sends the acquired first signal to the main control unit 10 through the SFP interface to improve the communication rate between the power control unit and the main control unit. The rated power of the power component control unit 110 is preset, for example, the rated power is ≤30KW. The effective range of the phase current and phase voltage measurement values ​​of the power component control unit 110 is also preset, for example, the effective range of the phase current measurement value is -150A to 150A, and the effective range of the phase voltage measurement value is 0 to 1000V.

[0035] It should be noted that the communication interface between the power control unit 11 and the main control unit 10 also includes: an RS-485 interface, a Controller Area Network (CAN) interface, and a Local Area Network (LAN) interface. That is, in this embodiment, the power control unit 11 and the main control unit 10 can also communicate through the above interfaces. The CAN interface includes both CAN 2.0B and CAN-FD interfaces. Additionally, the motor simulation circuit in this embodiment may also include auxiliary circuits, such as a control interface circuit.

[0036] In this embodiment, the motor simulator includes a main control unit and a power control unit, which are connected. The power control unit includes a power component control unit, which can collect a first signal sent by the motor controller to the motor simulator and send the first signal to the main control unit. The main control unit includes a main control model pre-built based on the motor's main controller. By running the main control model, the main controller can simulate sending control signals to the power control unit. The power supply voltage of the motor simulator is a preset voltage. Therefore, the main control model can output a second control signal based on the preset voltage and the first signal, and send the second control signal to the power control unit. This allows the power control unit to adjust the second control signal and output a third control signal at a preset frequency. That is, the output voltage supplies power to the device, and the third control signal is the output signal of the motor simulator. Therefore, the third control signal can be used to test the motor controller. Since the power supply voltage of the motor simulator is a preset voltage and the output frequency is preset, the voltage level and test frequency can be increased by setting the preset voltage and output frequency values. Furthermore, this application uses a model to simulate the output of the main controller to complete the test of the motor controller, which is more efficient than bench testing and saves the cost of bench testing.

[0037] In one embodiment, the number of power component control units 110 is N, where N is an integer greater than two. The motor simulator also includes a drive unit 12 connected to the main control unit 10 and the power control unit 110 respectively. The drive unit 12 includes N drive circuits 120, each drive circuit 120 corresponding to one power component control unit 110. Different drive circuits 120 correspond to different power component control units 110. The structure of the motor simulator in this embodiment is as follows: Figure 3 As shown.

[0038] Specifically, the main control unit 10 is used to send the output second control signal to the target drive circuit 120 in the drive unit 12. The target drive circuit 120 is used to send the second control signal to the power component control unit 110 corresponding to the target drive circuit 120. That is, in this embodiment, by setting the drive unit 12, the main control unit 10 sends the second control signal to the power control unit through the drive unit 12. The drive unit 12 includes N drive circuits 120. Therefore, the main control unit 10 can control the output signals of different power component control units 110 through different drive circuits 120, so that the output third control signal of the power component control unit 110 is controllable in real time. It can be understood that the rated power of each power component control unit 110 is preset. If the rated power of each power component control unit 110 is 30KW and N=3, then the rated power of the power control unit is 30KW. The number of power component control units 110 can be set according to actual needs. Therefore, the power level of the power control unit 11 can be increased by increasing the number of power component control units 110. It should also be noted that the power of the power component control unit 110 can be flexibly set according to actual needs. Therefore, the sampling rate of the first signal and the output frequency of the third control signal of the power component control unit 110 will change accordingly.

[0039] In one example, the motor simulator also includes a feedback unit 13 connected to the main control unit 10 and the power control unit 11, respectively. The power control unit 11 transmits the first signal acquired by the motor controller to the motor simulator to the main control unit 10 through the feedback unit 13. The feedback unit 13 includes M feedback circuits 130, where M is an integer greater than N, and each power component control unit 110 has a corresponding feedback circuit 130. Different feedback circuits 130 correspond to different power component control units 110. The remaining feedback circuits 130 are used to acquire other signals from the motor simulator, see details below. Figure 3 .

[0040] Specifically, the power component control unit 110 is used to send the acquired first signal to the target feedback circuit 130 corresponding to the power component control unit 110, and the target feedback circuit 130 is used to send the first signal to the main control unit 10. That is, in this embodiment, by setting the feedback unit 13, the power control unit 11 sends the acquired first signal to the main control unit 10 through the feedback unit 13, and the feedback unit 13 includes N feedback circuits 130. Therefore, in this embodiment, the first signals sent by different power component control units 110 can be received through different feedback circuits 130 to achieve individual control of different power component control units 110. Each feedback circuit 130 includes a sensor to realize the reception and feedback of the first signal.

[0041] In the specific implementation, the power component control units 110 are connected via a DC bus. If the preset voltage is 900V, the DC bus voltage is 900V. The DC bus also includes a DC bleed resistor, a DC-to-ground bleed resistor, a bleed relay, and an absorption capacitor (not shown in the figure). The ripple current of the DC bus is calculated using the Space Vector Pulse Width Modulation (SVPWM) algorithm. The formula for calculating the ripple current is:

[0042]

[0043] Among them, I CRMS I represents the ripple current. c t represents the total current of the power control unit 11, and t represents the working time of the motor simulator.

[0044] In one example, the motor simulator has 3 power component control units 110, 3 drive circuits 120, and 3 feedback circuits 130. The preset voltage is 900V, the rated power of the power control unit is 30KW, the preset frequency is 5KHZ, the effective range for measuring the phase current value of the power component control unit 110 is -150A to 150A, and the effective range for measuring the phase voltage value is 0 to 1000V. Thus, the voltage level of the motor simulator has been increased from 540V in related technologies to 900V, and the test frequency has been increased from 2.5KHZ to 5KHZ.

[0045] In this embodiment, different feedback circuits receive the first signals sent by different power component control units to achieve individual control of different power component control units. Different drive circuits control the output signals of different power component control units 110, so that the third control signal output by the power component control unit is controllable in real time. That is, the motor simulator can flexibly output control signals as needed. Therefore, this embodiment is highly consistent with the real-time working state of the motor.

[0046] It should be noted that the examples described above in this embodiment are merely illustrative for ease of understanding and do not constitute a limitation on the technical solution of the present invention.

[0047] It is worth mentioning that all modules involved in the above embodiments are logical modules. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. Furthermore, to highlight the innovative aspects of this application, the above embodiments do not include units that are not closely related to solving the technical problems proposed in this application; however, this does not mean that other units are absent from the above embodiments.

[0048] One embodiment of this application relates to a testing method for a motor controller, applied to a motor simulator, wherein the motor simulator is the motor simulator described in any of the above embodiments. The implementation details of the testing method for the motor controller in this embodiment are described in detail below. The following implementation details are provided for ease of understanding only and are not necessary for implementing this solution.

[0049] The specific process of the test method for the motor controller in this embodiment can be as follows: Figure 4 As shown, it includes:

[0050] Step 401: Acquire the first signal sent by the motor controller.

[0051] Step 402: Generate a second control signal based on the preset voltage and the first signal.

[0052] Step 403: Adjust the second control signal to obtain the third control signal, and output the third control signal at a preset frequency; wherein, the third control signal is used to test the motor controller.

[0053] In this embodiment, the motor simulator acquires a first signal sent by the motor controller, generates a second control signal based on a preset voltage and the first signal, adjusts the second control signal to obtain a third control signal, and finally outputs the third control signal at a preset frequency. The third control signal is used to test the motor controller. Since the power supply voltage of the motor simulator is a preset voltage and the output frequency is preset, the voltage level and test frequency can be increased by setting the preset voltage and output frequency values. Furthermore, the test method for the motor controller in this application is more efficient than bench testing and saves the cost of bench testing.

[0054] The steps of the various methods described above are only for clarity. In practice, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process, but without changing the core design of the algorithm and process, are also within the scope of protection of this patent.

[0055] It is not difficult to see that this embodiment is a method embodiment corresponding to the motor simulator embodiment, and this embodiment can be implemented in conjunction with the motor simulator embodiment. The relevant technical details mentioned in the motor simulator embodiment are still valid in this embodiment, and will not be repeated here to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied to the motor simulator embodiment.

[0056] Another embodiment of this application relates to a test system for a motor controller. A schematic diagram of the structure of the test system for the motor controller in this embodiment is shown below. Figure 5 As shown, it includes: a motor controller 501, a motor simulator 502, and a host computer 503, wherein the motor controller 501 is connected to the motor simulator 502, the motor simulator 502 is connected to the host computer 503, and the motor simulator 502 is the motor simulator described in any of the above embodiments.

[0057] Another embodiment of this application relates to an electronic device, such as... Figure 6 As shown, it includes: at least one processor 601; and a memory 602 communicatively connected to the at least one processor 601; wherein the memory 602 stores instructions executable by the at least one processor 601, the instructions being executed by the at least one processor 601 to enable the at least one processor 601 to execute the test method of the motor controller in the above embodiments.

[0058] The memory and processor are connected via a bus, which can include any number of interconnecting buses and bridges, connecting various circuits of one or more processors and memories. The bus can also connect various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and will not be described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over the wireless medium via an antenna, which further receives data and transmits it to the processor.

[0059] The processor manages the bus and general processing, and also provides various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory is used to store data used by the processor during operation.

[0060] Another embodiment of this application relates to a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the method embodiments described above.

[0061] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program instructing related hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0062] Those skilled in the art will understand that the above embodiments are specific embodiments for implementing this application, and in practical applications, various changes can be made to them in form and detail without departing from the spirit and scope of this application.

Claims

1. A motor simulator, characterized in that, include: A main control unit and a power control unit are connected together. The power control unit includes a power component control unit, which is used to acquire a first signal sent by the motor controller to the motor simulator and send the first signal to the main control unit; The main control unit includes a main control model pre-built based on the main controller of the motor. The main control model is used to output a second control signal based on a preset voltage and the first signal, and send the second control signal to the power control unit. The power component control unit is further configured to adjust the second control signal to obtain a third control signal, and output the third control signal at a preset frequency; wherein, the third control signal is used to test the motor controller; wherein. The number of power component control units is N, where N is an integer greater than two. The rated power of each power component control unit is preset. The motor simulator also includes a drive unit that is connected to the main control unit and the power control unit respectively. The drive unit includes N drive circuits, and each drive circuit corresponds to a power component control unit. Different drive circuits correspond to different power component control units. The main control unit is specifically used to send the output second control signal to the target drive circuit in the drive unit; The target drive circuit is used to send the second control signal to the power component control unit corresponding to the target drive circuit.

2. The motor simulator according to claim 1, characterized in that, The motor simulator also includes a feedback unit that is connected to the main control unit and the power control unit respectively; The feedback unit includes M feedback circuits, where M is an integer greater than N, and each power component control unit corresponds to one feedback circuit. Different feedback circuits correspond to different power component control units. The power component control unit is specifically used to send the first signal acquired to the target feedback circuit corresponding to the power component control unit; The target feedback circuit is used to send the first signal to the main control unit.

3. The motor simulator according to claim 2, characterized in that, The power component control units are connected via a DC bus. The DC bus is also equipped with a DC bleed resistor, a DC-to-ground bleed resistor, a bleed relay, and an absorption capacitor.

4. The motor simulator according to claim 3, characterized in that, The ripple current of the DC bus is calculated using the Space Vector Pulse Width Modulation (SVPWM) algorithm. The formula for calculating the ripple current is as follows: Among them, the Represents the ripple current, the The current of the power control unit is denoted by t, and the operating time of the motor simulator is denoted by t.

5. The motor simulator according to any one of claims 1 to 4, characterized in that, The power component control unit includes a three-phase interface, and the power component control unit acquires the first signal through the three-phase interface; The power control unit also includes an SFP interface, through which the power control unit sends the first signal to the main control unit.

6. A test method for a motor controller, characterized in that, Applied to a motor simulator, wherein the motor simulator is any one of claims 1 to 5, the method comprises: Acquire the first signal sent by the motor controller; A second control signal is generated based on the preset voltage and the first signal; The second control signal is adjusted to obtain a third control signal, and the third control signal is output at a preset frequency; wherein, the third control signal is used to test the motor controller.

7. A test system for a motor controller, characterized in that, It includes a motor controller, a motor simulator, and a host computer. The motor controller is connected to the motor simulator, and the motor simulator is connected to the host computer. The motor simulator is the motor simulator according to any one of claims 1 to 5.

8. An electronic device, characterized in that, include: At least one processor; as well as, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the test method for the motor controller as described in claim 6.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the test method for the motor controller as described in claim 6.