CN-122018482-A - Method and system for testing up-down voltage force
Abstract
The application provides an up-down voltage force testing method and system, wherein the method comprises the steps that simulation hardware determines physical parameters of a motor controller to be tested, and corresponding physical signals are sent to a simulation model according to the physical parameters; the simulation model performs up-down voltage force test on the motor controller to be tested based on the physical signals. The method provided by the application is beneficial to improving the test performance of the power on and power off of the motor controller.
Inventors
- WANG DAN
- REN QIANG
- Lan zhibao
- LI RUI
- JIANG MING
- LUO HONGJIN
Assignees
- 上汽通用五菱汽车股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251231
Claims (10)
- 1. The method is characterized by being applied to an upper and lower voltage force test system, wherein the upper and lower voltage force test system comprises an upper computer system, simulation hardware and a motor controller to be tested, the upper computer system comprises a simulation model, and the method comprises the following steps: The simulation hardware determines physical parameters of the motor controller to be tested, and sends corresponding physical signals to the simulation model according to the physical parameters; And the simulation model performs up-down voltage force test on the motor controller to be tested based on the physical signal.
- 2. The method of claim 1, wherein the physical parameters include a programmable power supply output voltage, an operating current of the motor controller to be tested, and a response message of the motor controller to be tested.
- 3. The method of claim 2, wherein the simulation model comprises a power control model, a current detection model, and a controller area network CAN bus simulation model, wherein, The power control model is used for controlling the power supply of the motor controller to be tested and detecting the program-controlled power supply voltage; The current detection model is used for detecting the working current of the motor controller to be detected; The CAN bus simulation model is used for sending a wake-up message to the motor controller to be tested, receiving a response message sent by the motor controller to be tested and counting the wake-up message and the response message.
- 4. A method according to claim 3, wherein the simulation model is the power control model, the method further comprising: The power supply control model outputs a power supply switch control signal and a voltage control signal to the simulation hardware; And responding to the received power switch control signal, the simulation hardware performs switch control on the motor controller to be tested so as to determine the output voltage of the programmable power supply.
- 5. The method of claim 1, wherein the power switch control signal comprises a first power switch control signal for switching the motor controller under test with a first switch or a second power switch control signal for switching the motor controller under test with a second switch.
- 6. The method of claim 1, wherein the up-down voltage force test comprises a hard reset test or a soft reset test.
- 7. The method of claim 6, wherein, in the case where the up-down voltage force test is the hard reset test, the simulating model performing the up-down voltage force test on the motor controller under test based on the physical signal comprises: the simulation model judges whether the motor controller to be tested normally sends a message or not under the condition that the motor controller to be tested supplies power; if the fact that the motor controller to be tested normally sends a message is determined, the simulation model judges whether the working current of the motor controller to be tested is smaller than a static current threshold value or not; If the working current of the motor controller to be tested is determined to be smaller than the static current threshold, after the cycle times of the up-down voltage force test reach the preset times, the simulation model judges whether the total number of wake-up messages is equal to the total number of response messages or not; and if the total number of the awakening messages is equal to the total number of the response messages, the simulation model determines that the up-down voltage force test passes.
- 8. The method of claim 6, wherein, in the case where the up-down voltage force test is the soft reset test, the simulating model performing the up-down voltage force test on the motor controller under test based on the physical signal comprises: the simulation model judges whether the motor controller to be tested normally sends a message or not under the condition that the motor controller to be tested supplies power; if the motor controller to be tested is determined to normally send messages, after the cycle times of the up-down voltage force test reach the preset times, the simulation model judges whether the total number of the awakening messages is equal to the total number of the response messages; and if the total number of the awakening messages is equal to the total number of the response messages, the simulation model determines that the up-down voltage force test passes.
- 9. The method of any of claims 1-8, wherein the emulation hardware comprises at least a digital quantity output board, an analog quantity acquisition board, a CAN emulation board, a programmable power supply, and a power switching board.
- 10. The system is characterized by comprising an upper computer system, simulation hardware and a motor controller to be tested, wherein the upper computer system comprises a simulation model, The simulation hardware is used for determining physical parameters of the motor controller to be tested, and sending corresponding physical signals to the simulation model according to the physical parameters; The simulation model is used for carrying out up-down voltage force test on the motor controller to be tested based on the physical signals.
Description
Method and system for testing up-down voltage force Technical Field The application relates to the field of intelligent automobiles, in particular to an up-down voltage force testing method and system. Background With the development of new energy automobiles, the market share of the new energy automobiles is higher, the motor controller is used as a core component of the new energy automobiles, and the safety of an electric drive system is determined by the accuracy of control logic of the motor controller. Along with the development of the motor controller to high integration and high power, the problems of upper and lower message loss and the like easily occur due to the software control logic defect in the upper and lower power processes of the motor controller, so that the upper and lower voltage force test is required to be performed on the motor controller in the development process of the whole electric control system of the whole automobile, and the stable work in the upper and lower power processes of the motor controller is ensured. The current motor controller up-down voltage force test is mainly based on that the whole vehicle adopts a manual mode to continuously perform up-down power operation so as to verify the reliability of motor controller software, but the following problems exist in the specific implementation process: 1) The test can be carried out after the sample vehicle is manufactured, the test cannot be moved forward, and software defects can be found in advance; 2) The test relies on manual operation repeatedly, and test working strength is big, and is efficient, and then leads to whole car verification cycle length, manpower and material cost are high, can't carry out extensive test, test verification insufficient scheduling problem. Disclosure of Invention The embodiment of the application provides an up-down voltage force testing method and system, which are beneficial to improving the up-down power testing performance of a motor controller. In a first aspect, an embodiment of the present application provides an up-down voltage force testing method, which is applied to an up-down voltage force testing system, where the up-down voltage force testing system includes an upper computer system, simulation hardware and a motor controller to be tested, and the upper computer system includes a simulation model, where the simulation hardware determines physical parameters of the motor controller to be tested, sends corresponding physical signals to the simulation model according to the physical parameters, and the simulation model performs up-down voltage force testing on the motor controller to be tested based on the physical signals. In one possible implementation manner, the physical parameter includes a programmable power supply output voltage, a working current of the motor controller to be tested, and a response message of the motor controller to be tested. In one possible implementation manner, the simulation model comprises a power control model, a current detection model and a controller area network CAN bus simulation model, wherein the power control model is used for controlling power supply of the motor controller to be tested and detecting the program-controlled power supply voltage, the current detection model is used for detecting working current of the motor controller to be tested, and the CAN bus simulation model is used for sending a wake-up message to the motor controller to be tested, receiving a response message sent by the motor controller to be tested and counting the wake-up message and the response message. In one possible implementation manner, the simulation model is the power supply control model, the method further comprises the steps that the power supply control model outputs a power supply switch control signal and a voltage control signal to the simulation hardware, and the simulation hardware performs switch control on the motor controller to be tested to determine the program-controlled power supply output voltage in response to the received power supply switch control signal. In one possible implementation manner, the power switch control signal includes a first power switch control signal or a second power switch control signal, where the first power switch control signal is used to perform switch control on the motor controller to be tested by using a first switch, and the second power switch control signal is used to perform switch control on the motor controller to be tested by using a second switch. In one possible implementation, the up-down voltage force test includes a hard reset test or a soft reset test. In one possible implementation manner, under the condition that the up-down voltage force test is the hard reset test, the simulation model performs the up-down voltage force test on the motor controller to be tested based on the physical signal, wherein the simulation model judges whether the motor controller to be tested normally transmi