Power-on and power-off pressure testing method and system
By using an automated testing method for the power-on and power-off stress testing system, and employing a simulation model to model the power-on and power-off process of the motor controller, the problem of low efficiency in manual testing in existing technologies is solved, and efficient and low-cost motor controller testing is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SAIC GM WULING AUTOMOBILE CO LTD
- Filing Date
- 2025-12-31
- Publication Date
- 2026-05-12
AI Technical Summary
The current voltage stress test of motor controllers relies on manual operation, which results in high workload, low efficiency, inability to detect software defects in advance, long vehicle verification cycle and high cost, and inability to conduct large-scale testing.
A power-on/off stress testing system is adopted, including a host computer system, simulation hardware and the motor controller under test. Automated testing is carried out through simulation models. The power control model, current detection model and CAN bus simulation model are used to simulate the power-on and power-off process of the motor controller to realize hard reset and soft reset tests.
It improves the automation level of motor controller power-on and power-off testing, reduces manual operation, shortens the testing cycle, reduces costs, and enables early detection of software defects.
Smart Images

Figure CN122018482A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent vehicles, and in particular to a method and system for testing the pressure of upper and lower voltages. Background Technology
[0002] With the development of new energy vehicles, their market share is increasing. As a core component of new energy vehicles, the correctness of the motor controller's control logic determines the safety of the electric drive system. As motor controllers develop towards higher integration and higher power, software control logic defects can easily lead to problems such as lost power-on / off messages during power-on and power-off processes. Therefore, during the development of the vehicle's electronic control system, it is necessary to conduct power-on / off stress tests on the motor controller to ensure its stable operation during these processes.
[0003] Current pressure tests for motor controller power-on and power-off are mainly based on manually performing continuous power-on and power-off operations on the entire vehicle to verify the reliability of the motor controller software. However, the following problems exist in the specific implementation process: 1) Testing can only be carried out after the prototype vehicle is manufactured, making it impossible to move the testing forward and discover software defects in advance; 2) Testing relies on repetitive manual operations, which is labor-intensive and inefficient, resulting in long vehicle verification cycles, high labor and material costs, inability to conduct large-scale testing, and insufficient testing and verification. Summary of the Invention
[0004] This application provides a method and system for testing the power-on and power-off forces of motor controllers, which helps to improve the testing performance of motor controllers when they are powered on and off.
[0005] In a first aspect, embodiments of this application provide a method for testing voltage up and down pressure, applied to a voltage up and down pressure testing system. The voltage up and down pressure testing system includes a host computer system, simulation hardware, and a motor controller under test. The host computer system includes a simulation model, comprising: the simulation hardware determining the physical parameters of the motor controller under test, and sending corresponding physical signals to the simulation model based on the physical parameters; the simulation model performing voltage up and down pressure tests on the motor controller under test based on the physical signals.
[0006] In one possible implementation, the physical parameters include the output voltage of the programmable power supply, the operating current of the motor controller under test, and the response message of the motor controller under test.
[0007] In one possible implementation, the simulation model includes a power control model, a current detection model, and a controller area network (CAN) bus simulation model. The power control model controls the power supply to the motor under test (MUT) controller and detects the programmable power supply voltage. The current detection model detects the operating current of the MUT controller. The CAN bus simulation model sends wake-up messages to the MUT controller, receives response messages from the MUT controller, and counts the wake-up messages and response messages.
[0008] In one possible implementation, the simulation model is the power control model, and the method further includes: the power control model outputting a power switch control signal and a voltage control signal to the simulation hardware; in response to the received power switch control signal, the simulation hardware performs switching control on the motor controller under test to determine the output voltage of the programmable power supply.
[0009] In one possible implementation, the power switch control signal includes a first power switch control signal or a second power switch control signal. The first power switch control signal is used to control the motor controller under test using a first switch, and the second power switch control signal is used to control the motor controller under test using a second switch.
[0010] In one possible implementation, the voltage stress test includes a hard reset test or a soft reset test.
[0011] In one possible implementation, when the voltage stress test is a hard reset test, the simulation model performs the voltage stress test on the motor controller under test based on the physical signal, including: the simulation model determines whether the motor controller under test sends messages normally when the motor controller under test is powered on; if it is determined that the motor controller under test sends messages normally, the simulation model determines whether the operating current of the motor controller under test is less than the static current threshold; if it is determined that the operating current of the motor controller under test is less than the static current threshold, when the number of cycles of the voltage stress test reaches a preset number, the simulation model determines whether the total number of wake-up messages is equal to the total number of response messages; if the total number of wake-up messages is equal to the total number of response messages, the simulation model determines that the voltage stress test has passed.
[0012] In one possible implementation, when the voltage stress test is a soft reset test, the simulation model performs the voltage stress test on the motor controller under test based on the physical signal, including: the simulation model determines whether the motor controller under test sends messages normally when the motor controller under test is powered on; if it is determined that the motor controller under test sends messages normally, when the number of cycles of the voltage stress test reaches a preset number, the simulation model determines whether the total number of wake-up messages is equal to the total number of response messages; if the total number of wake-up messages is equal to the total number of response messages, the simulation model determines that the voltage stress test has passed.
[0013] In one possible implementation, the simulation hardware includes at least a digital output board, an analog acquisition board, a CAN simulation board, a programmable power supply, and a power switching board.
[0014] Secondly, embodiments of this application provide an upper and lower voltage pressure testing device, including one or more functional modules, which are used to perform the upper and lower voltage pressure testing method as described in the first aspect.
[0015] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, wherein the memory is used to store a computer program; and the processor is used to run the computer program to implement the voltage and pressure testing method as described in the first aspect.
[0016] Fourthly, embodiments of this application provide a voltage and load testing system, comprising: a host computer system, simulation hardware, and a controller for the motor under test. The host computer system includes a simulation model, wherein... The simulation hardware is used to determine the physical parameters of the motor controller under test and send corresponding physical signals to the simulation model based on the physical parameters. The simulation model is used to perform upper and lower voltage stress tests on the motor controller under test based on the physical signals.
[0017] Fifthly, embodiments of this application provide a readable storage medium storing a program that, when run on an electronic device, causes the electronic device to implement the voltage and pressure testing method as described in the first aspect.
[0018] In a sixth aspect, embodiments of this application provide a program that, when run on the processor of an electronic device, causes the electronic device to perform the voltage pressure testing method as described in the first aspect.
[0019] In one possible design, the program in the sixth aspect may be stored wholly or partially on a storage medium packaged with the processor, or it may be stored wholly or partially on a memory not packaged with the processor. Attached Figure Description
[0020] Figure 1 This is a system architecture diagram for the upper and lower voltage stress test provided in an embodiment of this application; Figure 2 A schematic flowchart of an embodiment of the voltage and pressure testing method provided in this application; Figure 3 A schematic flowchart of another embodiment of the voltage and pressure testing method provided in this application; Figure 4 This is a schematic diagram of the upper and lower voltage pressure testing device provided in the embodiments of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0021] In this embodiment of the application, unless otherwise stated, the character " / " indicates that the preceding and following objects are in an OR relationship. For example, A / B can represent A or B. "AND / OR" describes the relationship between the associated objects, indicating that three relationships can exist. For example, A AND / OR B can represent: A existing alone, A and B existing simultaneously, and B existing alone.
[0022] It should be noted that the terms "first" and "second" used in the embodiments of this application are used only for distinguishing descriptive purposes and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated, nor should they be construed as indicating or implying order.
[0023] In the embodiments of this application, "at least one" means one or more, and "more than one" means two or more. Furthermore, "at least one of the following" or similar expressions refer to any combination of these items, which may include any combination of a single item or a plurality of items. For example, at least one of A, B, or C can represent: A, B, C, A and B, A and C, B and C, or A, B, and C. Each of A, B, and C can be an element itself or a set containing one or more elements.
[0024] In this application, terms such as "exemplary," "in some embodiments," and "in another embodiment" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the term "exemplary" is intended to present the concept in a concrete manner.
[0025] In the embodiments of this application, the terms "of," "corresponding (relevant)," and "corresponding" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction, their meanings are consistent. Similarly, in the embodiments of this application, "communication" and "transmission" may sometimes be used interchangeably. It should be noted that, without emphasizing the distinction, their meanings are consistent. For example, transmission can include sending and / or receiving, and can be a noun or a verb.
[0026] In the embodiments of this application, the term "equal to" can be used in conjunction with "greater than" to apply to technical solutions employing the condition of "greater than", and can also be used in conjunction with "less than" to apply to technical solutions employing the condition of "less than". It should be noted that when "equal to" is used with "greater than", it cannot be used with "less than"; and when "equal to" is used with "less than", it cannot be used with "greater than".
[0027] With the development of new energy vehicles, their market share is increasing. As a core component of new energy vehicles, the correctness of the motor controller's control logic determines the safety of the electric drive system. As motor controllers develop towards higher integration and higher power, software control logic defects can easily lead to problems such as lost power-on / off messages during power-on and power-off processes. Therefore, during the development of the vehicle's electronic control system, it is necessary to conduct power-on / off stress tests on the motor controller to ensure its stable operation during these processes.
[0028] Current pressure tests for motor controller power-on and power-off are mainly based on manually performing continuous power-on and power-off operations on the entire vehicle to verify the reliability of the motor controller software. However, the following problems exist in the specific implementation process: 1) Testing can only be carried out after the prototype vehicle is manufactured, making it impossible to move the testing forward and discover software defects in advance; 2) Testing relies on repetitive manual operations, which is labor-intensive and inefficient, resulting in long vehicle verification cycles, high labor and material costs, inability to conduct large-scale testing, and insufficient testing and verification.
[0029] To address the aforementioned issues, this application provides a method for testing the power-on and power-off forces of motor controllers, which helps to improve the testing performance of motor controllers during power-on and power-off.
[0030] Figure 1 This is an architecture diagram of the upper and lower voltage pressure testing system provided in the embodiments of this application.
[0031] refer to Figure 1 The upper and lower voltage stress testing system can include a host computer system, simulation hardware, and a controller for the motor under test.
[0032] The host computer system includes a parameter setting unit, a detection unit, and a simulation model.
[0033] The parameter setting unit can be used to set power control parameters.
[0034] The detection unit can be used to detect power control parameters, motor controller operating current, and Controller Area Network (CAN) bus signals.
[0035] The simulation model can be modeled using Simulink, and it can include a power control model, a current sensing model, and a CAN bus simulation model.
[0036] Simulation hardware may include digital output boards, analog acquisition boards, CAN simulation boards, programmable power supplies, and power switching boards.
[0037] The power supply control model primarily performs active control of the power supply to the motor under test (MAD) controller and detection of the programmable power supply output voltage. The motor controller power supply voltage and K15 / K30 switch settings are configured through the parameter setting and detection interface. These settings are then transmitted to the power supply control model's input via signal mapping. The model converts the motor controller power supply voltage setting into a control signal according to the programmable power supply control signal protocol, outputting a CAN signal via the CAN simulation board. This CAN signal controls the programmable power supply to output the set voltage, which can be set between 0 and 36V. The model also converts the K15 / K30 switch settings into switching signals via a digital output board, controlling the power switching board to switch the power supply to the MAD controller's K15 / K30. An analog acquisition board collects the voltage signal from the programmable power supply output and transmits it back to the power supply control model. The model calculates the actual voltage based on the resolution settings of the acquisition board's channels and transmits it to the parameter setting and monitoring interface for real-time display via signal mapping.
[0038] The current detection model primarily detects the actual operating current of the motor controller under test (MDT). Based on the specific vehicle model and MDT MDT static current threshold, the model sets the static current threshold and transmits it to the parameter setting and detection interface for display via signal mapping. An analog signal acquisition board collects the current signal from the MDT MDT's power supply circuit and sends it back to the power control model. The model calculates the actual operating current of the MDT MDT based on the resolution set in the board's acquisition channel and transmits it to the parameter setting and detection interface for real-time display via signal mapping.
[0039] The CAN bus simulation model primarily handles the transmission of wake-up messages from the motor controller under test (MDT), the detection and wake-up of response messages, and the counting of response messages. Based on the specific vehicle model and the wake-up and response message IDs of the MDT, corresponding message ID parameters are set within the model, and these ID parameters are transmitted to the parameter setting and detection interface for display via signal mapping. The CAN bus simulation model simulates each signal according to the structure and value requirements of the MDT wake-up message signals. These signals are converted into CAN bus signals via the CAN simulation board and transmitted to the MDT. Wake-up messages are sent using a signal triggering method; when the trigger signal changes from 0 to 1, a wake-up message frame is sent. The trigger signal transition is implemented through an automated simulation script and transmitted to the CAN bus simulation model via an API interface. Simultaneously, a wake-up message transmission counter is set within the model; the counter increments by one when the trigger signal completes a transition from 0 to 1. The CAN simulation board collects the response messages sent by the MDT and sends them back to the CAN bus simulation model. For each received response message frame, the corresponding response message counter increments by one. The model transmits the values of the wake-up message counter and response message counter to the parameter setting and detection interface for real-time display through signal mapping.
[0040] Based on the motor controller software logic, either a hard reset or a software reset can be used to test whether the motor controller can be successfully woken up under frequent power-on / off scenarios. Based on the motor controller power-on / off stress testing system built above, an automated test script can be constructed using a modular approach.
[0041] For example, firstly, script code can be written for each test step based on the hard reset or software reset test steps, and then encapsulated into a single-function module. Each module completes a specific test function or action, such as setting the voltage of the programmable power supply, powering on and off the controller, etc. These modules can be reused when designing automated test scripts for different tests. Then, by building blocks, the above modules are called in sequence to quickly build automated test scripts that meet various test requirements.
[0042] For hard reset testing of the motor controller, firstly, the hard reset wake-up message counter and hard reset response message counter can be cleared. Then, the output voltage of the programmable power supply can be set according to the operating voltage of the specific motor controller under test. Next, the power supply to motor controller KL15 and KL30 can be turned on. Then, the messages sent by the motor controller are continuously monitored until a message sent by the motor controller is received for 5 consecutive seconds. If the motor controller is sending messages normally, it is determined that the motor controller is sending messages normally. Otherwise, check the status of the controller sample and the wiring status, and power on the motor controller again. Then, the power supply to motor controller KL15 is disconnected, and the message sending status of the motor controller is continuously monitored until no message is received from the motor controller for 5 consecutive seconds. If no message is received from the motor controller, it is determined that the motor controller is not sending messages normally. The device stops sending messages; then, it detects the operating current of the motor controller until the operating current is lower than the static current threshold; then, it sends a hard reset wake-up message, and the hardware wake-up message counter is incremented by one; then, it detects the hard reset response message sent by the motor controller. If a hard reset response message is received, the hard reset response message counter is incremented by one; then, it determines whether the set number of pressure test cycles has been reached. If not, it repeats all operations after "connecting power to motor controllers KL15 and KL30" until the number of test cycles is reached. Finally, it determines whether the value of the hard reset wake-up message counter and the value of the hard reset response message counter are equal. If they are equal, the test passes; otherwise, the test fails.
[0043] Now passed Figure 2 The above-described hard reset test process for the motor controller is illustrated by example.
[0044] Figure 2 A flowchart illustrating an embodiment of the voltage and pressure testing method provided in this application includes the following steps: Step 201: Clear the hard reset wake-up message counter and the hard reset response message counter.
[0045] Step 202: Set the output voltage of the programmable power supply according to the operating voltage of the motor controller under test.
[0046] Step 203: Turn on the switch of the motor controller under test to supply power to the motor controller under test.
[0047] Specifically, the switch in the embodiments of this application may be KL15 or KL30, or the switch in the embodiments of this application may be other types of switches, and the embodiments of this application do not make any special limitations on this.
[0048] Step 204: Detect the status of the messages sent by the motor controller under test.
[0049] Step 205: Determine whether the motor controller under test is sending messages normally.
[0050] Specifically, one way to determine whether the motor controller under test is sending messages normally is to check whether a message sent by the motor controller under test is received within a preset time period.
[0051] For example, the preset duration can be 5 seconds, or it can be other values. This application embodiment does not impose any special limitations on this.
[0052] If a message is received from the motor controller under test within the preset time period, it can be determined that the motor controller under test can send messages normally, and step 207 is executed.
[0053] If no message is received from the motor controller under test within the preset time period, it can be determined that the motor controller under test cannot send messages normally, and step 206 is executed.
[0054] Step 206: Check the status and wiring of the motor controller under test.
[0055] Understandably, after checking the status and wiring of the motor controller under test, step 203 can be performed to power it back on.
[0056] Step 207: Disconnect the switch of the motor controller under test to de-energize the motor controller under test.
[0057] Step 208: Detect the status of the messages sent by the motor controller under test.
[0058] Step 209: Determine whether the controller of the motor under test has stopped sending messages.
[0059] Specifically, one way to determine whether the motor controller under test has stopped sending messages is to check whether no messages are received from the motor controller under test within a preset time period.
[0060] For example, the preset duration can be 5 seconds, or it can be other values. This application embodiment does not impose any special limitations on this.
[0061] If a message is received from the motor controller under test within the preset time period, it can be determined that the motor controller under test has not stopped sending messages, and step 208 is executed.
[0062] If no message is received from the motor controller under test within the preset time period, it can be determined that the motor controller under test has stopped sending messages, and step 210 is executed.
[0063] Step 210: Detect the operating current of the motor controller under test.
[0064] Step 211: Determine whether the operating current of the motor controller under test has dropped to the static current.
[0065] Specifically, one way to determine whether the operating current of the motor controller under test has dropped to the static current is to determine whether the operating current of the motor controller under test is less than the static current threshold.
[0066] If it is determined whether the operating current of the motor controller under test is less than the static current threshold, it can be determined that the operating current of the motor controller under test has dropped to the static current, and step 212 is executed.
[0067] If it is determined whether the operating current of the motor controller under test is greater than or equal to the static current threshold, it can be determined that the operating current of the motor controller under test has not dropped to the static current, and step 211 is executed.
[0068] Step 212: The controller of the motor under test sends a hard reset wake-up message.
[0069] Understandably, after the motor controller under test sends a hard reset wake-up message, the hard reset wake-up message counter increments by one.
[0070] Step 213: Determine whether the motor controller under test sends a hard reset response message.
[0071] If it is determined that the motor controller under test has sent a hard reset response message, proceed to step 214.
[0072] If it is determined that the motor controller under test has not sent a hard reset response message, proceed to step 215.
[0073] Step 214: Increment the hard reset response message counter.
[0074] Step 215: Determine whether the number of cycles of the upper and lower voltage pressure test has reached the preset threshold.
[0075] If it is determined that the number of cycles for the voltage and load pressure test has not reached the preset threshold, proceed to step 203, which means that the power-on test can be repeated until the number of cycles is reached.
[0076] If it is determined that the number of cycles of the upper and lower voltage pressure test has reached the preset threshold, proceed to step 216.
[0077] Step 216: Determine whether the hard reset wake-up message counter value and the hard reset response message counter value are equal.
[0078] If they are equal, proceed to step 217.
[0079] If they are not equal, proceed to step 218.
[0080] Step 217: Confirm that the upper and lower voltage pressure tests have passed.
[0081] Step 218: Determine that the upper and lower voltage pressure tests have failed.
[0082] For the hard reset test of the motor controller, firstly, the soft reset wake-up message counter and soft reset response message counter can be cleared, and then the output voltage of the programmable power supply can be set according to the specific operating voltage of the motor controller under test. Next, the power supply of motor controller KL15 and KL30 can be turned on. Then, the messages sent by the motor controller are continuously monitored until a message sent by the motor controller is received for 5 consecutive seconds. If the motor controller is sending messages normally, it is determined that the motor controller is sending messages normally. Otherwise, check the status of the controller sample and the wiring status, and power on the motor controller again. Then, simulate the messages required for normal operation of the motor controller. Then, send the soft reset wake-up message, and at the same time, increment the software wake-up message counter by one. Then, monitor the soft reset response message sent by the motor controller. If a soft reset response message is received, increment the soft reset response message counter by one. Then, determine whether the set number of pressure test cycles has been reached. If not, repeat all operations after "sending soft reset wake-up message" until the number of test cycles is reached. Finally, determine whether the value of the soft reset wake-up message counter and the value of the soft reset response message counter are equal. If they are equal, the test passes; otherwise, the test fails.
[0083] Now passed Figure 3 The above-described hard reset test process for the motor controller is illustrated by example.
[0084] Figure 3 A flowchart illustrating another embodiment of the voltage and pressure testing method provided in this application includes the following steps: Step 301: Clear the soft reset wake-up message counter and the soft reset response message counter.
[0085] Step 302: Set the output voltage of the programmable power supply according to the operating voltage of the motor controller under test.
[0086] Step 303: Turn on the switch of the motor controller under test to supply power to the motor controller under test.
[0087] Specifically, the switch in the embodiments of this application may be KL15 or KL30, or the switch in the embodiments of this application may be other types of switches, and the embodiments of this application do not make any special limitations on this.
[0088] Step 304: Detect the status of the messages sent by the motor controller under test.
[0089] Step 305: Determine whether the motor controller under test is sending messages normally.
[0090] Specifically, one way to determine whether the motor controller under test is sending messages normally is to check whether a message sent by the motor controller under test is received within a preset time period.
[0091] For example, the preset duration can be 5 seconds, or it can be other values. This application embodiment does not impose any special limitations on this.
[0092] If a message is received from the motor controller under test within the preset time period, it can be determined that the motor controller under test can send messages normally, and step 307 is executed.
[0093] If no message is received from the motor controller under test within the preset time period, it can be determined that the motor controller under test cannot send messages normally, and step 306 is executed.
[0094] Step 306: Check the status and wiring of the motor controller under test.
[0095] Understandably, after checking the status and wiring of the motor controller under test, step 303 can be performed to power it back on.
[0096] Step 307: Simulate the messages required for the normal operation of the motor controller under test.
[0097] Step 308: The controller of the motor under test sends a soft reset wake-up message.
[0098] Understandably, after sending a soft reset wake-up message, the soft reset wake-up message counter is incremented by one.
[0099] Step 309: Determine whether the motor controller under test sends a soft reset response message.
[0100] If the motor controller under test has sent a soft reset response message, proceed to step 310.
[0101] If the motor controller under test does not send a soft reset response message, proceed to step 311.
[0102] Step 310: Increment the soft reset response message counter.
[0103] Step 311: Determine whether the number of cycles of the upper and lower voltage pressure test has reached the preset threshold.
[0104] If it is determined that the number of cycles for the voltage and load pressure test has not reached the preset threshold, proceed to step 308, which means that the power-on test can be repeated until the number of cycles is reached.
[0105] If it is determined that the number of cycles of the upper and lower voltage pressure test has reached the preset threshold, proceed to step 312.
[0106] Step 312: Determine whether the soft reset wake-up message counter value and the soft reset response message counter value are equal.
[0107] If they are equal, step 313 can be executed.
[0108] If they are not equal, proceed to step 314.
[0109] Step 313: Confirm that the upper and lower voltage pressure tests have passed.
[0110] Step 314: Determine that the upper and lower voltage pressure tests have failed.
[0111] Figure 4 This is a schematic diagram of the upper and lower voltage pressure testing device provided in the embodiments of this application, as shown below. Figure 4 As shown, the aforementioned voltage and pressure testing device 40 is applied to a voltage and pressure testing system, which includes a host computer system, simulation hardware, and a motor controller under test. The host computer system includes a simulation model. The aforementioned voltage and pressure testing device 40 may include: a determination module 41 and a testing module 42; wherein, The determination module 41 is used to determine the physical parameters of the motor controller under test and send corresponding physical signals to the simulation model according to the physical parameters; Test module 42 is used for the simulation model to perform upper and lower voltage stress tests on the motor controller under test based on the physical signals.
[0112] In one possible implementation, the physical parameters include the output voltage of the programmable power supply, the operating current of the motor controller under test, and the response message of the motor controller under test.
[0113] In one possible implementation, the simulation model includes a power control model, a current sensing model, and a controller area network (CAN) bus simulation model; wherein, The power control model is used to control the power supply to the motor controller under test and to detect the voltage of the programmable power supply. The current detection model is used to detect the operating current of the motor controller under test. The CAN bus simulation model is used to send wake-up messages to the motor controller under test, receive response messages sent by the motor controller under test, and count the wake-up messages and the response messages.
[0114] In one possible implementation, the simulation model is the power control model, and the determining module 41 is further used to output power switch control signals and voltage control signals from the power control model to the simulation hardware. In response to the received power switch control signal, the simulation hardware performs switch control on the motor controller under test to determine the output voltage of the programmable power supply.
[0115] In one possible implementation, the power switch control signal includes a first power switch control signal or a second power switch control signal. The first power switch control signal is used to control the motor controller under test using a first switch, and the second power switch control signal is used to control the motor controller under test using a second switch.
[0116] In one possible implementation, the voltage stress test includes a hard reset test or a soft reset test.
[0117] In one possible implementation, when the voltage stress test is the hard reset test, the test module 42 is specifically used by the simulation model to determine whether the motor controller under test sends messages normally when the motor controller under test is powered on. If it is determined that the motor controller under test is sending messages normally, the simulation model determines whether the operating current of the motor controller under test is less than the static current threshold. If it is determined that the operating current of the motor controller under test is less than the static current threshold, after the number of cycles of the upper and lower voltage stress test reaches the preset number, the simulation model determines whether the total number of wake-up messages is equal to the total number of response messages. If the total number of wake-up messages is equal to the total number of response messages, the simulation model determines that the voltage stress test has passed.
[0118] In one possible implementation, when the voltage stress test is the soft reset test, the test module 42 is specifically used by the simulation model to determine whether the motor controller under test sends messages normally when the motor controller under test is powered on. If it is determined that the motor controller under test is sending messages normally, when the number of cycles of the upper and lower voltage stress test reaches the preset number, the simulation model determines whether the total number of wake-up messages is equal to the total number of response messages; If the total number of wake-up messages is equal to the total number of response messages, the simulation model determines that the voltage stress test has passed.
[0119] In one possible implementation, the simulation hardware includes at least a digital output board, an analog acquisition board, a CAN simulation board, a programmable power supply, and a power switching board.
[0120] Figure 4 The voltage and pressure testing device 40 provided in the illustrated embodiment can be used to execute the technical solution of the method embodiment shown in this application. Its implementation principle and technical effect can be further referred to the relevant description in the method embodiment.
[0121] It should be understood that the division of the various modules in the above-described voltage and pressure testing device 40 is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing element calls; they can be fully implemented in hardware; or some modules can be implemented in software via processing element calls, while others are implemented in hardware. For example, the detection module can be a separate processing element, or it can be integrated into a chip in the terminal device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. During implementation, each step of the above method or each of the above modules can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.
[0122] For example, these modules can be one or more integrated circuits configured to implement the above methods, such as one or more application-specific integrated circuits (ASICs), one or more digital signal processors (DSPs), or one or more field-programmable gate arrays (FPGAs). Alternatively, these modules can be integrated together as a system-on-a-chip (SOC).
[0123] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 500 may include: at least one processor; and at least one memory communicatively connected to the processor. The memory stores program instructions executable by the processor. The processor in the electronic device 500 can execute the actions performed in the voltage and pressure testing method provided in this embodiment by calling the program instructions.
[0124] like Figure 5 As shown, the electronic device 500 is presented in the form of a general-purpose computing device. The components of the electronic device 500 may include, but are not limited to: one or more processors 510, memory 520, communication bus 540 connecting different system components (including memory 520 and processor 510), and communication interface 530.
[0125] The communication bus 540 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) buses, Micro Channel Architecture (MAC) buses, Enhanced ISA buses, Video Electronics Standards Association (VESA) local buses, and Peripheral Component Interconnect (PCI) buses.
[0126] Electronic devices 500 typically include a variety of computer system readable media. These media can be any available media that can be accessed by an end device, including volatile and non-volatile media, removable and non-removable media.
[0127] Memory 520 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The terminal device may further include other removable / non-removable, volatile / non-volatile computer system storage media. Although Figure 5 As not shown, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk") and an optical disc drive for reading and writing to a removable non-volatile optical disc (e.g., a compact disc read-only memory (CD-ROM), a digital video disc read-only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 540 via one or more data media interfaces. The memory 520 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of this application.
[0128] A program / utility having a set (at least one) of program modules can be stored in memory 520. Such program modules include—but are not limited to—an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. The program modules typically perform the functions and / or methods described in the embodiments of this application.
[0129] Electronic device 500 can also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), and with one or more devices that enable a user to interact with the terminal device, and / or with any device that enables the terminal device to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through communication interface 530. Furthermore, electronic device 500 can also communicate through a network adapter (… Figure 5 (Not shown) communicates with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN), and / or public networks, such as the Internet). The aforementioned network adapter can communicate with other modules of the terminal device via the communication bus 540. It should be understood that, although... Figure 5 As not shown, other hardware and / or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, Redundant Arrays of Independent Drives (RAID) systems, tape drives, and data backup storage systems.
[0130] The processor 510 executes various functional applications and data processing by running programs stored in the memory 520, such as implementing the methods provided in the embodiments of this application.
[0131] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 500. In other embodiments of this application, the electronic device 500 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0132] In the above embodiments, the processor may include, for example, a CPU, DSP, microcontroller, or digital signal processor, and may also include a GPU, embedded neural network processing unit (NPU), and image signal processor (ISP). The processor may also include necessary hardware accelerators or logic processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program in this application. Furthermore, the processor may have the function of operating one or more software programs, which may be stored in a storage medium.
[0133] This application also provides a readable storage medium storing a program that, when run on a system, causes the system to execute the method provided in the embodiments shown in this application.
[0134] This application also provides a program product, which includes a program that, when run on a system, causes the system to execute the method provided in the embodiments shown in this application.
[0135] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent the existence of A alone, A and B simultaneously, or B alone. A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of singular or plural items. For example, at least one of a, b, and c can represent: a, b, c, a and b, a and c, b and c, or a and b and c, where a, b, and c can be single or multiple.
[0136] Those skilled in the art will recognize that the units and algorithm steps described in the embodiments disclosed herein can be implemented using electronic hardware, computer software, or a combination of electronic hardware and software. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0137] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0138] In the several embodiments provided in this application, any function, if implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of 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.
[0139] The above description is merely a specific embodiment of this application. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the protection scope of this application. The protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A method for testing the pressure of upper and lower voltage, characterized in that, An application is made in an up-and-down voltage pressure testing system, the up-and-down voltage pressure testing system comprising a host computer system, simulation hardware, and a controller for the motor under test, wherein the host computer system includes a simulation model, and the method comprises: The simulation hardware determines the physical parameters of the motor controller under test and sends corresponding physical signals to the simulation model based on the physical parameters. The simulation model performs upper and lower voltage stress tests on the motor controller under test based on the physical signals.
2. The method according to claim 1, characterized in that, The physical parameters include the output voltage of the programmable power supply, the operating current of the motor controller under test, and the response message of the motor controller under test.
3. The method according to claim 2, characterized in that, The simulation model includes a power control model, a current detection model, and a controller area network (CAN) bus simulation model; among which... The power control model is used to control the power supply to the motor controller under test and to detect the voltage of the programmable power supply. The current detection model is used to detect the operating current of the motor controller under test. The CAN bus simulation model is used to send wake-up messages to the motor controller under test, receive response messages sent by the motor controller under test, and count the wake-up messages and the response messages.
4. The method according to claim 3, characterized in that, The simulation model is the power supply control model, and the method further includes: The power control model outputs power switch control signals and voltage control signals to the simulation hardware. In response to the received power switch control signal, the simulation hardware performs switching control on the motor controller under test to determine the output voltage of the programmable power supply.
5. The method according to claim 1, characterized in that, The power switch control signal includes a first power switch control signal or a second power switch control signal. The first power switch control signal is used to control the motor controller under test by using a first switch, and the second power switch control signal is used to control the motor controller under test by using a second switch.
6. The method according to claim 1, characterized in that, The voltage stress test includes a hard reset test or a soft reset test.
7. The method according to claim 6, characterized in that, When the voltage stress test is a hard reset test, the simulation model performs voltage stress tests on the motor controller under test based on the physical signals, including: The simulation model determines whether the motor controller under test (MTB) sends messages normally when the TTB is powered on. If it is determined that the motor controller under test is sending messages normally, the simulation model determines whether the operating current of the motor controller under test is less than the static current threshold. If it is determined that the operating current of the motor controller under test is less than the static current threshold, after the number of cycles of the upper and lower voltage stress test reaches the preset number, the simulation model determines whether the total number of wake-up messages is equal to the total number of response messages. If the total number of wake-up messages is equal to the total number of response messages, the simulation model determines that the voltage stress test has passed.
8. The method according to claim 6, characterized in that, When the voltage stress test is a soft reset test, the simulation model performs voltage stress tests on the motor controller under test based on the physical signals, including: The simulation model determines whether the motor controller under test (MTB) sends messages normally when the TTB is powered on. If it is determined that the motor controller under test is sending messages normally, when the number of cycles of the upper and lower voltage stress test reaches the preset number, the simulation model determines whether the total number of wake-up messages is equal to the total number of response messages; If the total number of wake-up messages is equal to the total number of response messages, the simulation model determines that the voltage stress test has passed.
9. The method according to any one of claims 1-8, characterized in that, The simulation hardware includes at least a digital output board, an analog acquisition board, a CAN simulation board, a programmable power supply, and a power switching board.
10. A voltage pressure testing system, characterized in that, The system includes: a host computer system, simulation hardware, and a motor controller under test. The host computer system includes a simulation model, wherein... The simulation hardware is used to determine the physical parameters of the motor controller under test and send corresponding physical signals to the simulation model based on the physical parameters. The simulation model is used to perform upper and lower voltage stress tests on the motor controller under test based on the physical signals.