Simulation test method and device and electronic equipment
Through simulation testing methods, the channel output current of the ripple current simulation board and the target controller is used to simulate the operation of the motor control actuator, which solves the problems of large test site requirements and physical structure damage in traditional testing, and realizes efficient and low-cost functional testing.
Patent Information
- Application Number
- CN202510918717.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-03
- Publication Date
- 2025-09-16
AI Technical Summary
The testing process of traditional body domain controllers needs to be carried out on a real vehicle or test bench, which results in large test site requirements, long testing time, and the risk of damage to the physical structure.
Through the simulation test method, the channel between the ripple current simulation board and the target controller is used to output the target current, simulate the operation of the motor control actuator, and perform functional testing to avoid the direct use of the physical structure.
It reduces the risk of damage to the physical structure, saves test space and testing costs, improves test repeatability and coverage, and enables faster and more comprehensive problem detection.
Smart Images

Figure CN120652957A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of simulation testing technology, and in particular to a simulation testing method, device, and electronic device. Background Art
[0002] The Body Domain Controller (BDC) is one of the core components of the automotive electronic architecture. It is responsible for integrating and managing traditionally distributed body electronic control functions (such as doors, windows, wipers, and seats). The stability of its simulation control system functions must undergo rigorous testing.
[0003] The testing process of traditional body domain controllers is mostly carried out through actual vehicle testing or testing of physical structures on a test bench. This requires a large test site, is time-consuming, and is prone to the risk of damaging the physical structure. Summary of the Invention
[0004] The embodiments of the present application provide a simulation test method, device, and electronic device, which aim to improve the problems existing in existing vehicle domain controllers when performing real vehicle tests or bench tests.
[0005] The present invention provides a simulation test method, including: Outputting a target instruction to a target controller so that the target controller performs a driving operation to obtain first measured data; When the first measured data meets the driving completion condition, controlling the target channel to be opened, the target channel being a channel formed between the ripple current simulation board and the target controller; controlling the ripple current simulation board to output a target current through the target channel, so that the target controller performs a test based on the target current to obtain second measured data; When the second measured data meets the simulation end condition, the target channel is controlled to be closed.
[0006] In this embodiment, when the first measured data collected after the target controller executes the driving operation meets the driving completion conditions, it is determined that the simulation control system and the target controller can work normally to ensure the feasibility of the simulation test operation; when the target channel is opened, the ripple current simulation board is controlled to output target currents of different amplitudes and frequencies to simulate the current output when the motor control actuator is working, so that the target controller completes the corresponding functional test based on the target current. This process does not need to be carried out in the test site, nor does it need to use the physical structure, which greatly reduces the risk of damage to the physical structure, saves the test site, testing costs and testing time, has a high degree of repeatability, wider and more comprehensive test coverage, deeper testing, and can more and faster discover problems in the test process.
[0007] In one embodiment, the first measured data includes a first measured voltage corresponding to a first hard line and a second measured voltage corresponding to a second hard line, wherein the first hard line and the second hard line are two hard lines connecting the ripple current simulation board and the target controller; The driving completion condition includes: the magnitudes of the first measured voltage and the second measured voltage match the target instruction, and the absolute value of the voltage difference between the first measured voltage and the second measured voltage is greater than a first voltage difference threshold.
[0008] In this embodiment, when the target controller performs a driving operation, a first measured voltage corresponding to the first hard wire and a second measured voltage corresponding to the second hard wire are collected. When the magnitudes of the two measured voltages match the target instruction and the absolute value of the voltage difference between the two is large, it is determined that the two hard wires connecting the ripple current simulation board and the target controller can operate normally, and then it is determined that the driving completion conditions are met.
[0009] In one embodiment, controlling the ripple current simulation board to output a target current through the target channel so that the target controller performs a test based on the target current includes: Execute drive simulation test operations; Among them, the driving simulation test operation includes: based on the ripple current amplitude and driving current frequency corresponding to the driving test case, controlling the ripple current simulation board to output the driving ripple current through the target channel, so that the target controller performs a driving function test based on the driving ripple current.
[0010] In this embodiment, based on the ripple current amplitude and driving current frequency corresponding to the driving test case, the driving ripple current of the simulated motor can be simulated and output, so that the target controller can complete the driving function test based on the driving ripple current, making the driving function test process simpler and effectively saving test site, testing cost and testing time.
[0011] In one embodiment, controlling the ripple current simulation board to output a target current through the target channel so that the target controller performs a test based on the target current further includes: performing at least one of an anti-pinch simulation test operation and a stall simulation test operation; The anti-pinch simulation test operation includes: based on the ripple current amplitude and anti-pinch current frequency corresponding to the anti-pinch test case, controlling the ripple current simulation board to output the anti-pinch ripple current through the target channel, so that the target controller performs an anti-pinch function test based on the anti-pinch ripple current; The stall simulation test operation includes: based on the DC current amplitude corresponding to the stall test case, controlling the ripple current simulation board to output the stall DC current through the target channel, so that the target controller performs a stall function test based on the stall DC current.
[0012] In this embodiment, the simulation control system performs at least one of the anti-pinch simulation test operation and the stall simulation test operation during the execution of the driving simulation test operation, so that the target controller can complete the anti-pinch function test and the stall function test during the completion of the driving function test, so as to interleave and execute multiple test functions. The functional testing process is relatively simple, which can effectively save test site, testing cost and testing time.
[0013] In one embodiment, after performing the driving simulation test operation, the simulation control method further includes: Obtaining a first waveform quantity and a second waveform quantity, wherein the first waveform quantity is the quantity of the driving ripple current output by the simulation control system, and the second waveform quantity is the quantity of the driving ripple current collected by the target controller; When the waveform quantity difference is greater than a preset waveform quantity difference, a system update operation is performed, wherein the waveform quantity difference is a difference between the first waveform quantity and the second waveform quantity.
[0014] In this embodiment, the difference in the number of waveforms is determined based on the number of first waveforms and the number of second waveforms. When the difference in the number of waveforms is greater than the preset waveform difference, it can reflect that the time of the simulation control system and the target controller is not synchronized. It is necessary to perform a system update operation within the simulation control system to adjust the parameters of the simulation control system to overcome the problem of time synchronization and ensure its simulation control accuracy.
[0015] In one embodiment, the second measured data includes a third measured voltage corresponding to a first hard wire and a fourth measured voltage corresponding to a second hard wire, wherein the first hard wire and the second hard wire are two hard wires used to connect the target controller and the target controller; The simulation end condition includes: an absolute value of a voltage difference between the third measured voltage and the fourth measured voltage is less than a second voltage difference threshold.
[0016] In this embodiment, after the ripple current simulation board outputs the target current, the third measured voltage corresponding to the first hard line and the fourth measured voltage corresponding to the second hard line are collected. When the absolute value of the voltage difference between the two measured voltages is small, it is determined that the ripple current simulation board does not continue to output the target current, and then it is determined that the simulation end condition is met.
[0017] In one embodiment, the second measured data includes a current output time of the target current; The simulation end condition includes: the current output time is greater than the preset protection time.
[0018] In this embodiment, when the current output time of the target current is greater than the preset protection time, it is determined that the ripple current simulation board continues to output the target current for a long time, which may easily cause the hard wire connecting the ripple current simulation board and the target controller to have a high temperature, affecting its service life, and then it is determined that the simulation end condition is met.
[0019] In one embodiment, the second measured data includes an actuator position determined based on the driving ripple current simulation; The simulation end condition includes: the actuator position reaches the target dead point position.
[0020] In this embodiment, when the actuator position determined based on the driving ripple current simulation reaches the target stop position, it can be determined that the simulated actuator position reaches the stop position required to be reached by the driving test case, and then it is determined that the simulation end condition is met.
[0021] The present invention provides a simulation test device, comprising: a target instruction output module, configured to output a target instruction to a target controller, so as to cause the target controller to perform a driving operation and obtain first measured data; a target channel opening module, configured to control the opening of a target channel when the first measured data satisfies a driving completion condition, the target channel being a channel formed between the ripple current simulation board and the target controller; a target current output module, configured to control the ripple current simulation board to output a target current through the target channel, so that the target controller performs a test based on the target current to obtain second measured data; The target channel closing module controls the target channel to be closed when the second measured data meets the simulation end condition.
[0022] An embodiment of the present application provides an electronic device, including a processor and a memory, wherein Memory for storing computer programs; The processor is used to execute the program stored in the memory to implement the above simulation test method. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 This is a diagram of the architecture of a simulation test system provided in one embodiment of the present application; Figure 2 This is a flowchart of a simulation test method provided by an embodiment of the present application; Figure 3 This is a flowchart of a simulation test method provided in an embodiment of the present application applicable to a vehicle window simulation scenario; Figure 4 is a structural diagram of a simulation test device provided in an embodiment of the present application; Figure 5 This is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] In order to make the technical problems, technical solutions and beneficial effects solved by this application more clearly understood, this application is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0025] An embodiment of the present application provides a simulation control method suitable for use in a simulation control system. The simulation control system is hardwired to a target controller (hereinafter referred to as the ECU). The simulation control system is configured to simulate a physical structure to perform specific operations and output a target current to the target controller via the hardwire, so that the target controller performs a functional test based on the target current. The physical structure herein generally includes a motor and an actuator connected to the motor; an actuator is a device used to perform a specific function and includes, but is not limited to, vehicle windows, doors, trunk lids, seats, and wipers.
[0026] Please refer to Figure 1 The simulation control system includes a signal acquisition enabling module, a ripple current simulation model and a ripple current simulation system, and its overall simulation architecture and simulation logic are relatively simple.
[0027] The signal acquisition enable module includes a drive enable module, an anti-pinch enable module, and a stall enable module. These enable modules perform simulation operations through the IO board and the communication board, and collect ECU drive output signals. When the ECU is driven, they simulate enablement through the external enable interface, causing the actuator to enter the drive state, anti-pinch state, and stall state. For example, when the actuator is a vehicle window, the signal acquisition enable module can simulate the execution of a window raising or lowering command through the IO board and the communication board. It can also simulate enablement through the external enable interface when the ECU is driven, simulating the window entering the drive state, anti-pinch state, and stall state.
[0028] The ripple current simulation models include a drive current simulation model, an anti-pinch current simulation model, and a stall current simulation model. These current simulation models are implemented based on a state machine, and the state machine jumps according to different state enable instructions. Furthermore, ripple currents or DC currents of different amplitudes and frequencies can be set within different state machines, and parameters such as the amplitude and frequency of different currents can be arbitrarily adjusted through the interface.
[0029] The ripple current simulation system includes a ripple current simulation board, which is hard-wired to the current acquisition port of the target controller and can output the corresponding target current to the current acquisition port of the target controller according to the channels and parameters set by the ripple current simulation model.
[0030] Furthermore, the ripple current simulation system further includes a protection circuit, which is disposed between the ripple current simulation board and the current acquisition port of the target controller and is configured to prevent reverse current flow. In this example, the protection circuit includes a diode, which utilizes the unidirectional conduction characteristics of the diode to prevent reverse current flow.
[0031] The embodiment of the present application provides a simulation control method, which is applicable to electronic equipment equipped with a simulation control system. Figure 2 , the simulation control method comprises: S1: Outputting a target instruction to a target controller to enable the target controller to perform a driving operation and obtain first measured data; S2: When the first measured data meets the driving completion condition, controlling the target channel to be opened, the target channel being a channel formed between the ripple current simulation board and the target controller; S3: controlling the ripple current simulation board to output a target current through the target channel, so that the target controller performs a test based on the target current to obtain second measured data; S4: When the second measured data meets the simulation end condition, control the target channel to be closed.
[0032] The target instruction is an instruction for controlling the actuator to perform a specific operation. As an example, the target instruction can be an instruction for the signal acquisition enable module to output a drive for the actuator to perform a specific operation according to a pre-set functional control logic. For example, when the actuator is a vehicle window, the target instruction is a window raising instruction or a window lowering instruction. The window raising instruction is an instruction for the signal acquisition enable module to output a drive for the vehicle window to perform an raising operation according to the functional control logic. The window lowering instruction is an instruction for the signal acquisition enable module to output a drive for the vehicle window to perform a lowering operation according to the functional control logic.
[0033] The first measured data refers to data collected in real time after the target controller performs the driving operation. The driving completion condition is a pre-set condition for evaluating whether the driving operation is completed.
[0034] As an example, in step S1, when performing a simulation test, the simulation control system may output a target instruction to the target controller, so that after receiving the target instruction, the target controller outputs a hard-wired drive signal based on the target instruction to perform a driving operation. In this example, the simulation control system includes a ripple current simulation board, which is connected to the target controller via a hard line. After receiving the target instruction output by the simulation control system, the target controller outputs a hard-wired drive signal matching the target instruction to the hard line, thereby changing the hard line voltage. At this time, corresponding first measured data may be collected, and based on the first measured data, whether the drive completion condition is met may be evaluated.
[0035] As an example, in step S2, when the first measured data satisfies the drive completion condition, the simulation control system may determine that the target controller has completed the drive operation and that normal communication between the simulation control system and the target controller is possible. At this point, the target channel formed between the ripple current simulation board and the target controller may be controlled to open, so that the ripple current simulation board and the target controller can effectively transmit current. The target channel here is a channel for transmitting current between the ripple current simulation board and the target controller, and the target channel transmits current via a hardwire connecting the ripple current simulation board and the target controller.
[0036] In one example, the target instruction also carries a channel identifier. When the first measured data meets the driving completion condition, the simulation control system can control the target channel corresponding to the channel identifier formed between the ripple current simulation board and the target controller to open, so as to use the target channel to transmit the corresponding current to complete the simulation test corresponding to the target channel. The channel identifier here is an identifier used to uniquely identify a specific channel. For example, when the simulation control system needs to simulate the control of the left window, the target instruction it outputs carries the channel identifier corresponding to the left window, so that when the first measured data meets the driving completion condition, the target channel corresponding to the left window can be controlled to open.
[0037] The target current refers to the current output to the target controller during the simulation test. This target current is the current output by the simulated motor, specifically the current output to the target controller when the simulated motor control actuator of the simulation control system is operating. For example, the target current can be determined to be ripple current or DC current based on different test requirements.
[0038] The second measured data is data collected in real time after the ripple current simulation board outputs the target current. The simulation end condition is a pre-set condition for evaluating whether the simulation test process is completed.
[0039] As an example, in step S3, when the target channel is opened, the simulation control system can control the ripple current simulation board to output target currents of different amplitudes and frequencies through the target channel according to the test scheme determined independently by the user, so that the target controller can perform a test based on the target current. Specifically, after the ripple current simulation board outputs the target current through the target channel, the current acquisition port of the target controller can acquire the corresponding target current so as to complete the test of a specific function based on the acquired target current. After controlling the ripple current simulation board to output the target current through the target channel, the simulation control system needs to acquire the second measured data in real time so as to evaluate whether it meets the simulation end condition based on the second measured data.
[0040] As an example, in step S4, when the second measured data meets the simulation end condition, for example, the test plan has been executed, or when the target controller cannot continue the simulation test due to a failure of the simulation control system or other reasons, the simulation control system can control the ripple current simulation board to output 0A current to the target channel so that no current passes through the target channel formed between the ripple current simulation board and the target controller, thereby closing the target channel and ending the simulation test process.
[0041] In this embodiment, when the first measured data collected after the target controller executes the driving operation meets the driving completion conditions, it is determined that the simulation control system and the target controller can work normally to ensure the feasibility of the simulation test operation; when the target channel is opened, the ripple current simulation board is controlled to output target currents of different amplitudes and frequencies to simulate the current output when the motor control actuator is working, so that the target controller completes the corresponding functional test based on the target current. This process does not need to be carried out in the test site, nor does it need to use the physical structure, which greatly reduces the risk of damage to the physical structure, saves the test site, testing costs and testing time, has a high degree of repeatability, wider and more comprehensive test coverage, deeper testing, and can more and faster discover problems in the test process.
[0042] In one embodiment, the first measured data includes a first measured voltage corresponding to a first hard line and a second measured voltage corresponding to a second hard line, wherein the first hard line and the second hard line are two hard lines connecting the ripple current simulation board and the target controller; The driving completion condition includes: the magnitudes of the first measured voltage and the second measured voltage match the target instruction, and the absolute value of the voltage difference between the first measured voltage and the second measured voltage is greater than a first voltage difference threshold.
[0043] The first measured data includes a first measured voltage and a second measured voltage. The first measured voltage is the voltage detected on the first hard wire during the target controller's drive operation and can be represented by U1. The second measured voltage is the voltage detected on the second hard wire during the target controller's drive operation and can be represented by U2. The first hard wire and the second hard wire are two hard wires connecting the ripple current simulation board and the target controller. The two hard wires measure different voltages when the simulated motor rotates forward and reverse.
[0044] As an example, when performing a simulation test, a simulation control system may output a target instruction to a target controller. Upon receiving the target instruction, the target controller may output a hardwire drive signal to the hardwire corresponding to the target instruction, causing the hardwire corresponding to the target instruction to output a high level and the other hardwire to output a low level, resulting in different measured voltages collected by the two hardwires. For example, when the target instruction is an instruction to simulate forward motor rotation, the first measured voltage detected on the first hardwire is a high level, while the second measured voltage detected on the second hardwire is a low level. When the target instruction is an instruction to simulate reverse motor rotation, the first measured voltage detected on the first hardwire is a low level, while the second measured voltage detected on the second hardwire is a high level.
[0045] The first voltage difference threshold is a preset threshold used to evaluate whether the absolute value of the voltage difference between the two hard wires reaches a larger standard, and can be represented by ΔUth1.
[0046] As an example, after the simulation control system obtains the first measured voltage corresponding to the first hard wire and the second measured voltage corresponding to the second hard wire, when it is evaluated and determined that the magnitudes of the first measured voltage and the second measured voltage match the target instruction, and the absolute value of the voltage difference between the first measured voltage and the second measured voltage is greater than the first voltage difference threshold, it can be determined that the target controller outputs different level signals to the two hard wires based on the target instruction, so that the magnitudes of the first measured voltage and the second measured voltage match the target instruction, and the absolute value of the voltage difference between the two reaches a larger standard, it can be determined that the target controller can drive the hard wire normally, and therefore, it is determined that the first measured data meets the driving completion condition.
[0047] For example, when the actuator is a car window, the target command includes a window raising command and a window lowering command. After the simulation control system outputs the window raising command to the target controller, the target controller can output a window raising hard-wire drive signal, driving the first hard-wire to output a high level and the second hard-wire to output a low level. The first measured voltage U1 and the second measured voltage U2 are collected separately. When U1 is greater than U2 and |U1-U2|>△Uth1, that is, U1-U2>△Uth1, it is determined that the drive completion condition is met. The window raising hard-wire drive signal here refers to the target controller driving the port to output a hard-wire signal to drive the car window to rise based on the received window raising command. Accordingly, after the simulation control system outputs a window-raising command to the target controller, the target controller can output a window-lowering hardwire drive signal, driving the first hardwire to output a low level and the second hardwire to output a high level. The first measured voltage, U1, and the second measured voltage, U2, are collected separately. When U1 is less than U2 and |U1-U2|>△Uth1, i.e., U2-U1>△Uth1, the drive completion condition is determined to be met. This allows for a quick and accurate assessment of whether the drive completion condition is met based on the two measured voltages collected by the two hardwires. The window-lowering hardwire drive signal here refers to the hardwire signal that the target controller outputs to drive the window down based on the received window-lowering command.
[0048] In this embodiment, when the target controller performs a driving operation, a first measured voltage corresponding to the first hard wire and a second measured voltage corresponding to the second hard wire are collected. When the magnitudes of the two measured voltages match the target instruction and the absolute value of the voltage difference between the two is large, it is determined that the two hard wires connecting the ripple current simulation board and the target controller can operate normally, and then it is determined that the driving completion conditions are met.
[0049] In one embodiment, step S3, i.e., controlling the ripple current simulation board to output a target current through the target channel so that the target controller performs a test based on the target current, includes: Execute drive simulation test operations; Among them, the driving simulation test operation includes: based on the ripple current amplitude and driving current frequency corresponding to the driving test case, controlling the ripple current simulation board to output the driving ripple current through the target channel, so that the target controller performs a driving function test based on the driving ripple current.
[0050] The drive test case is a pre-set test case used to simulate a motor's driving operation. The drive ripple current is the ripple current output during the simulated motor's driving operation. The ripple current amplitude is the waveform amplitude of the ripple current output by the actual motor to perform a specific function. The drive current frequency is the waveform frequency determined based on the normal output drive ripple current of the actual motor.
[0051] As an example, after the target channel between the control ripple current simulation board and the target controller is opened, the simulation control system can only perform a driving simulation test operation. The driving simulation test operation here includes: based on the ripple current amplitude and driving current frequency corresponding to the driving working condition set in the driving test case, the driving current simulation model outputs a driving current enable output instruction to the ripple current simulation board. The driving current enable output instruction refers to an instruction output by the driving current simulation model for controlling the ripple current simulation board to output the driving ripple current. After receiving the driving current enable output instruction, the ripple current simulation board can output the driving ripple current to the target controller through the target channel, so that the target controller performs a driving function test based on the driving ripple current collected by the target channel.
[0052] For example, when simulating the operation of a motor controlling a vehicle window, the simulation control system can output a drive current enable output instruction through the ripple current simulation board based on the ripple current amplitude and drive current frequency corresponding to the drive test case, so that the ripple current simulation board outputs the drive ripple current through the target channel, so that the target controller performs a drive function test based on the drive ripple current. Specifically, the target controller can collect the drive ripple current output by the simulation control system through the target channel, analyze the collected drive ripple current based on the test solution built into the target controller, and complete the corresponding drive function test.
[0053] In this embodiment, the simulation control system can simulate and output the driving ripple current of the simulated motor based on the ripple current amplitude and driving current frequency corresponding to the driving test case, so that the target controller can complete the driving function test based on the driving ripple current, making the driving function test process simpler and effectively saving test site, testing cost and testing time.
[0054] In one embodiment, step S3, i.e., controlling the ripple current simulation board to output a target current through the target channel so that the target controller performs a test based on the target current, further includes: performing at least one of an anti-pinch simulation test operation and a stall simulation test operation; The anti-pinch simulation test operation includes: based on the ripple current amplitude and anti-pinch current frequency corresponding to the anti-pinch test case, controlling the ripple current simulation board to output the anti-pinch ripple current through the target channel, so that the target controller performs an anti-pinch function test based on the anti-pinch ripple current; The stall simulation test operation includes: based on the DC current amplitude corresponding to the stall test case, controlling the ripple current simulation board to output the stall DC current through the target channel, so that the target controller performs a stall function test based on the stall DC current.
[0055] The anti-pinch test case is a pre-set test case used to simulate a motor's anti-pinch operation. The anti-pinch ripple current is the ripple current output by the simulated motor during anti-pinch operation. The ripple current amplitude is the waveform amplitude of the ripple current output by an actual motor to perform a specific function. The anti-pinch current frequency is the waveform frequency determined based on the actual anti-pinch ripple current output by the motor.
[0056] As an example, the anti-pinch simulation test operation includes: based on the ripple current amplitude and anti-pinch current frequency corresponding to the anti-pinch working condition set in the anti-pinch test case, the anti-pinch current simulation model outputs an anti-pinch current enable output instruction to the ripple current simulation board. The anti-pinch current enable output instruction refers to an instruction output by the anti-pinch current simulation model for controlling the ripple current simulation board to output the anti-pinch ripple current. After receiving the anti-pinch current enable output instruction, the ripple current simulation board can output the anti-pinch ripple current to the target controller through the target channel, so that the target controller performs an anti-pinch function test based on the anti-pinch ripple current collected by the target channel.
[0057] For example, when the simulation control system simulates the operation of the motor controlling the vehicle window, it can output an anti-pinch current enable output instruction to the ripple current simulation board based on the ripple current amplitude and anti-pinch current frequency corresponding to the anti-pinch test case, so that the ripple current simulation board outputs the anti-pinch ripple current through the target channel, so that the target controller performs an anti-pinch function test based on the anti-pinch ripple current. Specifically, the target controller can collect the anti-pinch ripple current output by the simulation control system through the target channel, analyze the collected anti-pinch ripple current based on the test scheme built into the target controller, and complete the corresponding anti-pinch function test.
[0058] The stall test case is a pre-set test case used to simulate a motor stall. The stall DC current is the DC current output during the simulated motor stall. This stall simulation simulates the motor's ability to output torque even at zero speed. When the motor is stalled, the power factor is extremely low, resulting in a high stall current, which can burn out the motor over time. The DC current amplitude is set based on the actual motor's rated current and is generally greater than the rated current.
[0059] As an example, the stall simulation test operation includes: based on the DC current amplitude corresponding to the stall condition set in the stall test case, the stall current simulation model controls the ripple current simulation board to output a stall current enable output instruction to the target controller. The stall current enable output instruction is an instruction output by the stall current simulation model for controlling the ripple current simulation board to output a stall DC current. After receiving the stall current enable output instruction, the ripple current simulation board can output the stall DC current to the target controller through the target channel, so that the target controller performs a stall function test based on the stall DC current collected by the target channel.
[0060] For example, when the simulation control system simulates the operation of the motor controlling the car window, it can output a stall current enable output instruction to the ripple current simulation board based on the DC current amplitude corresponding to the stall current test case. After the ripple current simulation board receives the stall current enable output instruction, it outputs a stall DC current to the target controller through the target channel. The stall DC current is much higher than the rated current of the motor's normal operation, so that the target controller performs a stall function test based on the continuous output of the stall DC current.
[0061] As an example, after the target channel between the control ripple current simulation board and the target controller is opened, the simulation control system can not only execute a driving simulation test operation, but also execute at least one of an anti-pinch simulation test operation and a stall simulation test operation. It can execute the test scheme formed by the driving simulation test operation and the anti-pinch simulation test operation according to a preset execution order, or execute the test scheme formed by the driving simulation test operation and the stall simulation test operation, or execute the test scheme formed by the driving simulation test operation, the anti-pinch simulation test operation and the stall simulation test operation.
[0062] For example, in a pre-set test plan, the window raising operation is simulated first. When the simulated window rises to a specific position, the simulated motor performs at least one of an anti-pinch operation and a stall operation. After that, the window raising operation needs to continue to be simulated. The simulation control system needs to first perform a driving simulation test operation, and then perform at least one of an anti-pinch simulation test operation and a stall simulation test operation after a first time period, and then perform a driving simulation test operation after a second time period.
[0063] In this embodiment, the simulation control system performs at least one of the anti-pinch simulation test operation and the stall simulation test operation during the execution of the driving simulation test operation, so that the target controller can complete the anti-pinch function test and the stall function test during the completion of the driving function test, so as to interleave and execute multiple test functions. The functional testing process is relatively simple, which can effectively save test site, testing cost and testing time.
[0064] In one embodiment, after performing the driving simulation test operation, the simulation control method further includes: Obtaining a first waveform quantity and a second waveform quantity, wherein the first waveform quantity is the quantity of the driving ripple current output by the simulation control system, and the second waveform quantity is the quantity of the driving ripple current collected by the target controller; When the waveform quantity difference is greater than a preset waveform quantity difference, a system update operation is performed, wherein the waveform quantity difference is a difference between the first waveform quantity and the second waveform quantity.
[0065] The preset waveform difference is a preset threshold value used to evaluate whether the difference in the number of waveforms reaches a larger standard.
[0066] As an example, after the simulation control system controls the ripple current simulation board and outputs the driving ripple current through the target channel, the simulation control system calls a built-in first counter to count the number of waveforms of the driving ripple current output by it, and determines it as the first waveform number; accordingly, the target controller needs to collect the driving ripple current transmitted by the target channel in real time, calls a built-in second calculator to calculate the number of waveforms of the driving ripple current collected by it, and determines it as the second waveform number, and feeds the second waveform number back to the simulation control system. The simulation control system can calculate the difference between the first waveform number and the second waveform number, and determine the difference between the two as the waveform number difference. Then, when the waveform number difference is greater than the preset waveform difference, it can be determined that the driving ripple current output by the simulation control system and the driving ripple current collected by the target controller have a large difference in waveform number, which is most likely due to time asynchrony between the first counter and the second calculator. In other words, the time of the simulation control system and the target controller is asynchronized, and it is necessary to perform a system update operation within the simulation control system to adjust the parameters of the simulation control system to overcome the time asynchrony problem and ensure its simulation control accuracy.
[0067] In one embodiment, the second measured data includes a third measured voltage corresponding to a first hard wire and a fourth measured voltage corresponding to a second hard wire, wherein the first hard wire and the second hard wire are two hard wires used to connect the target controller and the target controller; The simulation end condition includes: an absolute value of a voltage difference between the third measured voltage and the fourth measured voltage is less than a second voltage difference threshold.
[0068] The third measured voltage is the voltage detected on the first hard wire after the ripple current simulation board outputs the target current, and can be represented by U3. The second measured voltage is the voltage detected on the second hard wire after the ripple current simulation board outputs the target current, and can be represented by U4. The second voltage difference threshold is a preset threshold used to assess whether the absolute value of the voltage difference between the two hard wires meets a minimum standard, and can be represented by ΔUth2.
[0069] As an example, after the ripple current simulation board outputs the target current, the simulation control system obtains the third measured voltage U3 corresponding to the first hard wire and the fourth measured voltage U4 corresponding to the second hard wire, first determines the absolute value of the voltage difference |U3-U4| between the first measured voltage and the second measured voltage, and then compares the absolute value of the voltage difference |U3-U4| with the second voltage difference threshold △Uth2. When the absolute value of the voltage difference |U3-U4| is less than the second voltage difference threshold △Uth2, that is, when |U3-U4|<△Uth2, it can be determined that the absolute value of the voltage difference between the two hard wires reaches the smaller standard, and it can be determined that the ripple current simulation board does not continue to output the target current. Therefore, it is determined that the simulation end condition is met, so as to control the target channel to be closed and end the simulation test process.
[0070] In this embodiment, after the ripple current simulation board outputs the target current, the third measured voltage corresponding to the first hard line and the fourth measured voltage corresponding to the second hard line are collected. When the absolute value of the voltage difference between the two measured voltages is small, it is determined that the ripple current simulation board does not continue to output the target current, and then it is determined that the simulation end condition is met.
[0071] In one embodiment, the second measured data includes a current output time of the target current; The simulation end condition includes: the current output time is greater than the preset protection time.
[0072] As an example, after controlling the ripple current simulation board to output the target current through the target channel, the simulation control system needs to count the current output time of the target current. Specifically, the current output time is counted from the starting moment when the ripple current simulation board starts to output the target current, and the time difference between the current moment and the starting moment is determined as the current output time of the target current. The simulation control system can compare the determined current output time with the preset protection time. If the current output time is greater than the preset protection time, it is determined that the ripple current simulation board continuously outputs the target current for a long time, which is likely to cause the temperature of the hard wire connecting the ripple current simulation board and the target controller to be high, affecting its service life. Therefore, it is determined that the simulation end condition is met, so as to control the target channel to be closed and end the simulation test process.
[0073] In one embodiment, the second measured data includes an actuator position determined based on the driving ripple current simulation; The simulation end condition includes: the actuator position reaches the target dead point position.
[0074] The actuator position refers to the actuator position calculated by simulating the output drive ripple current. The target stop position refers to the preset stop point position.
[0075] As an example, after executing a drive simulation test operation, the simulation control system controls the ripple current simulation board to output a drive ripple current through the target channel based on the ripple current amplitude and drive current frequency corresponding to the drive test case, so that the target controller performs a drive function test based on the drive ripple current and then determines the actuator position based on the drive ripple current simulation. The simulation control system then evaluates whether the actuator position has reached a preset target stop position. When the actuator position reaches the target stop position, it can be determined that the simulated actuator position has reached the stop position required by the drive test case. Therefore, the simulation termination condition is determined to be met, so that the target channel can be controlled to close, terminating the simulation test process.
[0076] Existing window testing involves either full-vehicle scenario testing or manually constructing a physical window test bench. This not only requires time and effort to coordinate resources, but also covers a limited number of test scenarios and is detrimental to the window motor. This leads to high overall testing costs, long test cycles, and low test efficiency. To address this issue, a window simulation control system can be designed to work with the window controller to perform the corresponding simulation tests.
[0077] Please refer to Figure 3 When the simulation control system is a window simulation control system, the window simulation control system and the window controller (hereinafter referred to as ECU) form a real-time simulation environment system based on ripple current through signal interaction and logical judgment, which specifically includes the following steps: The signal acquisition enabling module outputs a window raising / lowering instruction, so that the ECU outputs hard-line driving signals to the two hard lines according to the window raising / lowering instruction.
[0078] The signal acquisition enabling module acquires first measured data corresponding to the two hard lines, that is, acquires the first measured voltage U1 and the second measured voltage U2.
[0079] The current simulation model performs logical judgment based on the first measured data. When outputting the window raising instruction and detecting that U1-U2>△Uth1, it is determined that the driving completion condition is met and the target channel can be controlled to open; when outputting the window lowering instruction and detecting that U2-U1>△Uth1, it is determined that the driving completion condition is met and the target channel can be controlled to open.
[0080] The drive current simulation model enable port controls the ripple current simulation board to output a drive ripple current at the ripple current amplitude and drive current frequency required for normal window motor operation, thereby enabling the target controller to perform a drive function test based on the drive ripple current. In this example, the drive simulation test can be executed independently or interleaved with at least one of the anti-pinch simulation test and the stall simulation test.
[0081] The anti-pinch current simulation model enable port controls the ripple current simulation board to output the anti-pinch ripple current according to the ripple current amplitude and anti-pinch current frequency of the window motor anti-pinch operation, so that the target controller performs anti-pinch function test based on the anti-pinch ripple current.
[0082] The locked-rotor current simulation model enable port controls the ripple current simulation board to output a locked-rotor DC current according to the DC current amplitude of the motor's locked-rotor operation, so that the target controller performs a locked-rotor function test based on the locked-rotor DC current.
[0083] During the execution of (4)-(6) above, it is necessary to collect second measured data and evaluate whether the simulation end condition is met based on the second measured data. For example, the second measured data includes the third measured voltage U3 corresponding to the first hard line and the fourth measured voltage corresponding to the second hard line. When the absolute value of the voltage difference |U3-U4| is less than the second voltage difference threshold △Uth2, that is, when |U3-U4| < △Uth2, it is determined that the simulation end condition is met, and the ripple current simulation board is controlled to output 0A current to close the target channel. Otherwise, the target current output is maintained.
[0084] During the drive simulation test, the first waveform number of the drive ripple current is recorded and logically calculated in real time. This is used to simulate and calculate the corresponding window position (i.e., actuator position) based on this first waveform number. When the window position reaches the top dead center (TDC) corresponding to a window-raising operation or the bottom dead center (DDC) corresponding to a window-lowering operation, the simulation is terminated, and the ripple current simulation board outputs 0A to close the target channel. Furthermore, the difference between the first waveform number and the second waveform number recorded by the window controller is calculated to determine the waveform difference. If the waveform difference exceeds a preset waveform difference, a system update is performed, which helps improve simulation control accuracy.
[0085] During the anti-pinch simulation test operation, if it is determined according to the second measured data that the window raising / lowering has not stopped, the anti-pinch ripple current is continuously simulated and output; if it is determined according to the second measured data that the window raising / lowering has stopped, the anti-pinch ripple current is stopped and the anti-pinch simulation test operation is ended.
[0086] During the execution of the stall simulation test operation, if it is determined according to the second measured data that the window raising / lowering has not stopped, the stall DC current is continuously simulated and output until the stall fault stops; if it is determined according to the second measured data that the window raising / lowering has stopped, the stall DC current is stopped and the stall simulation test operation is ended.
[0087] The ripple current-based window function simulation solution described above directly outputs ripple currents of varying amplitudes and frequencies, as well as DC currents, through the ripple current simulation board. This simulates the window motor's operating conditions in various test scenarios and allows for parameterized configuration for different window types. This not only reduces the risk of window motor damage and saves testing costs and time, but also enables durability testing, increasing test coverage and depth, and improving test efficiency and quality. In this example, by building a window motor, different target window currents can be output according to different test scenarios, and functional testing of the window control ECU can be automated. This reduces the risk of window motor damage, conserves test space, improves test efficiency and quality, and saves testing costs and time.
[0088] It can be understood that the above-mentioned simulation control system is not only applicable to window simulation control systems, but also to body domain simulation control systems, power domain simulation control systems, chassis domain simulation control systems, thermal management simulation control systems and intelligent driving domain control simulation control systems. It realizes the simulation of vehicle operating environment and various working conditions to the greatest extent through various simulation equipment combined with model algorithms, improves test coverage and test coverage of extreme working conditions, improves test efficiency, saves test costs, and can more quickly respond to the testing needs of rapid iterative changes in the functions of automobile parts caused by the rapid development of the automobile industry.
[0089] The present application also provides a simulation test device 4, please refer to Figure 4 ,include: A target instruction output module 41 is used to output a target instruction to a target controller, so that the target controller performs a driving operation and obtains first measured data; A target channel opening module 42 is configured to control the opening of a target channel when the first measured data satisfies a driving completion condition, the target channel being a channel formed between the ripple current simulation board and the target controller; a target current output module 43, configured to control the ripple current simulation board to output a target current through the target channel, so that the target controller performs a test based on the target current to obtain second measured data; The target channel closing module 44 controls the target channel to be closed when the second measured data meets the simulation end condition.
[0090] The present application also provides an electronic device 50, please refer to Figure 5 , including a memory 51 and a processor 52, wherein the memory 51 is used to store computer programs; the processor 52 is used to execute the programs stored in the memory 910 to implement the simulation test method introduced in any embodiment of the present application.
[0091] In this application, a plurality refers to two or more.
[0092] In this application, unless otherwise expressly defined, the terms "mounted," "connected," and "connected" should be interpreted broadly. For example, they can refer to fixed, detachable, or integral connections; mechanical or electrical connections; direct or indirect connections through an intermediary; and internal communication between two components. A person of ordinary skill in the art will understand the specific meanings of these terms in this application.
[0093] The terms "first," "second," "third," "fourth," etc. (if any) in this application are used to distinguish similar objects and are not necessarily used to describe a particular sequential order.
[0094] The term "and / or" in this application simply describes an association between related objects, indicating that three possible relationships exist. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this application generally indicates that the related objects are in an "or" relationship.
[0095] Unless otherwise specified, all steps of this application may be performed sequentially or randomly. For example, "the method includes steps A and B" means that the method may include steps A and B performed sequentially, or may include steps B and A performed sequentially. For example, "the method may also include step C" means that step C may be added to the method in any order. For example, the method may include steps A, B, and C, or steps A, C, and B, or steps C, A, and B, etc.
[0096] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.
Claims
1. A simulation test method, characterized in that: include: Outputting a target instruction to a target controller so that the target controller performs a driving operation to obtain first measured data; When the first measured data meets the driving completion condition, controlling the target channel to be opened, the target channel being a channel formed between the ripple current simulation board and the target controller; controlling the ripple current simulation board to output a target current through the target channel, so that the target controller performs a test based on the target current to obtain second measured data; When the second measured data meets the simulation end condition, the target channel is controlled to be closed.
2. The method according to claim 1, characterized in that The first measured data includes a first measured voltage corresponding to a first hard line and a second measured voltage corresponding to a second hard line, wherein the first hard line and the second hard line are two hard lines connecting the ripple current simulation board and the target controller; The driving completion condition includes: the magnitudes of the first measured voltage and the second measured voltage match the target instruction, and the absolute value of the voltage difference between the first measured voltage and the second measured voltage is greater than a first voltage difference threshold.
3. The method according to claim 1, characterized in that The controlling the ripple current simulation board to output a target current through the target channel so that the target controller performs a test based on the target current includes: Execute drive simulation test operations; Among them, the driving simulation test operation includes: based on the ripple current amplitude and driving current frequency corresponding to the driving test case, controlling the ripple current simulation board to output the driving ripple current through the target channel, so that the target controller performs a driving function test based on the driving ripple current.
4. The method according to claim 3, characterized in that The controlling the ripple current simulation board to output a target current through the target channel so that the target controller performs a test based on the target current further includes: performing at least one of an anti-pinch simulation test operation and a stall simulation test operation; The anti-pinch simulation test operation includes: based on the ripple current amplitude and anti-pinch current frequency corresponding to the anti-pinch test case, controlling the ripple current simulation board to output the anti-pinch ripple current through the target channel, so that the target controller performs an anti-pinch function test based on the anti-pinch ripple current; The stall simulation test operation includes: based on the DC current amplitude corresponding to the stall test case, controlling the ripple current simulation board to output the stall DC current through the target channel, so that the target controller performs a stall function test based on the stall DC current.
5. The method according to claim 3, characterized in that After the driving simulation test operation is performed, the simulation control method further includes: Obtaining a first waveform quantity and a second waveform quantity, wherein the first waveform quantity is the quantity of the driving ripple current output by the simulation control system, and the second waveform quantity is the quantity of the driving ripple current collected by the target controller; When the waveform quantity difference is greater than a preset waveform quantity difference, a system update operation is performed, wherein the waveform quantity difference is a difference between the first waveform quantity and the second waveform quantity.
6. The method according to claim 1, characterized in that The second measured data includes a third measured voltage corresponding to a first hard wire and a fourth measured voltage corresponding to a second hard wire, wherein the first hard wire and the second hard wire are two hard wires used to connect a target controller and the target controller; The simulation end condition includes: an absolute value of a voltage difference between the third measured voltage and the fourth measured voltage is less than a second voltage difference threshold.
7. The method according to claim 1, characterized in that The second measured data includes a current output time of the target current; The simulation end condition includes: the current output time is greater than the preset protection time.
8. The method according to claim 1, characterized in that The second measured data includes an actuator position determined based on the driving ripple current simulation; The simulation end condition includes: the actuator position reaches the target dead point position.
9. A simulation test device, characterized in that: include: a target instruction output module, configured to output a target instruction to a target controller, so as to cause the target controller to perform a driving operation and obtain first measured data; a target channel opening module, configured to control the opening of a target channel when the first measured data satisfies a driving completion condition, the target channel being a channel formed between the ripple current simulation board and the target controller; a target current output module, configured to control the ripple current simulation board to output a target current through the target channel, so that the target controller performs a test based on the target current to obtain second measured data; The target channel closing module controls the target channel to close when the second measured data meets the simulation end condition.
10. An electronic device, characterized in that: comprising a processor and a memory, wherein, Memory for storing computer programs; A processor is used to execute the program stored in the memory to implement the simulation test method described in any one of claims 1-8.