HIL bench test method of automobile water valve, controller, medium and program product
By generating an active test model and adjusting parameters, a water valve control test sequence is built to simulate water valve pathways under different operating conditions, monitor and evaluate HIL output parameters, solve the problem of precise control in the HIL bench test method for five-way water valves, and realize the precise testing and performance evaluation of multi-way water valves.
Patent Information
- Application Number
- CN202511802571.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-02
- Publication Date
- 2026-01-23
AI Technical Summary
The existing HIL bench test method for five-way water valves cannot cover all operating conditions, cannot achieve precise control testing, and has a large signal delay.
Generate an active test model, adjust the model parameters, build a water valve control test sequence using host computer test sequence software, simulate water valve passages under different working conditions, monitor the working parameters of multi-way water valves under different states, and collect HIL output parameters for performance evaluation.
It enables precise control testing of multi-way water valves under different operating conditions, improving the accuracy and efficiency of testing and accurately evaluating the performance level of the water valves.
Smart Images

Figure CN121386729A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicles, in particular to a HIL bench test method for a water valve of an automobile, a controller, a medium and a program product. BACKGROUND
[0002] In the related art, the cooling, heating and water circulation of a new energy automobile are all realized by a multi-way water valve. By controlling the valve body of a single multi-way water valve, switching between different water flow channels can be realized.
[0003] The current HIL bench test method for a five-way water valve is as follows: the enable signal and the valve body angle position control signal on the simulation bus are taken as inputs, the XCP signal in the main control module is monitored, and the water valve state signal fed back to the water valve on the bus is taken as output. This test method can only test the basic functions of the five-way water valve and cannot cover all working conditions, is not suitable for precise control testing, and has large signal delay. SUMMARY
[0004] The present application aims to at least solve one of the technical problems existing in the prior art. To this end, the present application provides a HIL bench test method for a water valve of an automobile, a controller, a medium and a program product, which aims to realize precise testing of the control process of a multi-way water valve under different working conditions.
[0005] In a first aspect, the embodiments of the present application provide a HIL bench test method for a water valve of an automobile, comprising: generating an active test model for testing a multi-way water valve, and adjusting model parameters of the active test model; executing a water valve control test sequence based on the active test model to simulate water valve passages under multiple working conditions; obtaining HIL output parameters of the active test model after the execution of the water valve control test sequence is completed, and determining a performance level of the multi-way water valve according to the HIL output parameters.
[0006] According to some embodiments of the present application, the active test model is provided with a functional parameter adjustment area; and the adjusting the model parameters of the active test model comprises: adjusting the model parameters of the active test model according to target adjustment parameters input in the functional parameter adjustment area.
[0007] According to some embodiments of the present application, the adjusting the model parameters of the active test model according to the target adjustment parameters input in the functional parameter adjustment area comprises one of the following: In a case where the functional parameter adjustment region comprises a PWM adjustment region, the target PWM frequency and / or the target PWM duty cycle of the active test model are adjusted in response to the target PWM frequency and / or the target PWM duty cycle set in the PWM adjustment region, so that the target PWM frequency and / or the target PWM duty cycle of the active test model are within a target control range; In a case where the functional parameter adjustment region comprises a current adjustment region, the actual current of the active test model is adjusted in response to the target current range set in the current adjustment region, so that the actual current of the active test model is kept within a target control range by automatically increasing or decreasing the current.
[0008] According to some embodiments of the present application, the method further comprises: The water valve control test sequence is built by the host computer test sequence software, and the corresponding parameters of the flag bit in the active test model are changed to simulate the enable signals and valve body control signals of the multi-way water valve in different working conditions as input signals on the bus.
[0009] According to some embodiments of the present application, during the execution of the water valve control test sequence, the method further comprises: The working parameters of the multi-way water valve in multiple functional states are monitored, wherein the functional states include a battery thermal management functional state, a heater thermal management functional state, a self-learning state, or a fault injection state, and the working parameters include total pulse number variation, pulse number variation rate, or current parameters.
[0010] According to some embodiments of the present application, the method of obtaining the HIL output parameters of the active test model after the execution of the water valve control test sequence and determining the performance level of the multi-way water valve according to the HIL output parameters comprises: The HIL output current parameters of the active test model in each test stage of the water valve control test sequence are collected; For each test stage, the HIL output current parameters and the preset current parameters are compared to obtain the performance level of the multi-way water valve.
[0011] According to some embodiments of the present application, the method of comparing the HIL output current parameters and the preset current parameters for each test stage to obtain the performance level of the multi-way water valve comprises: All dimensions of the HIL output current parameters are obtained; For each test stage, all dimensions of the HIL output current parameters are compared with the corresponding preset current parameters to obtain the performance level of the multi-way water valve.
[0012] In a second aspect, an embodiment of the present application provides a controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to perform the HIL bench test method of the automobile water valve of the first aspect.
[0013] In a second aspect, an embodiment of the present application provides a computer readable storage medium, storing computer executable instructions for performing the HIL bench test method of the automobile water valve of the first aspect.
[0014] In a third aspect, an embodiment of the present application provides a computer program product, comprising computer program or computer instructions, characterized in that the computer program or the computer instructions are stored in a computer readable storage medium, and a processor of a computer device reads the computer program or the computer instructions from the computer readable storage medium, and the processor executes the computer program or the computer instructions, so that the computer device performs the HIL bench test method of the automobile water valve of the first aspect.
[0015] According to the technical scheme of the embodiment of the present application, at least the following beneficial effects are achieved: the HIL bench test method of the automobile water valve of the embodiment of the present application comprises: generating an active test model for testing a multi-way water valve, adjusting model parameters of the active test model; executing a water valve control test sequence based on the active test model to simulate water valve passages under multiple working conditions; obtaining HIL output parameters of the active test model after the water valve control test sequence is executed, and determining a performance level of the multi-way water valve according to the HIL output parameters. Therefore, the embodiment of the present application can test the performance of the multi-way water valve under different working conditions by the water valve control test sequence using the adjusted active test model, and can realize accurate testing of the control process of the multi-way water valve under different working conditions.
[0016] Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will become apparent to those skilled in the art upon examination of the following description and drawings. BRIEF DESCRIPTION OF DRAWINGS
[0017] The accompanying drawings are included to provide a further understanding of the technical scheme of the application, and constitute a part of the specification, and are used together with the embodiments of the application to explain the technical scheme of the application, and do not constitute a limitation on the technical scheme of the application.
[0018] Figure 1 is a relationship diagram of the motor rotation angle and the pulse number provided by an embodiment of the present application; Figure 2 is a relationship diagram of the pulse number and each angle interval provided by an embodiment of the present application; Figure 3 is a flowchart of a HIL bench test method of an automotive water valve provided by an embodiment of the present application; Figure 4 is a flowchart of adjusting model parameters of a model of active testing provided by an embodiment of the present application; Figure 5 is a flowchart of building a test sequence and simulating input signals provided by an embodiment of the present application; Figure 6 is a flowchart of a sub-step of step S330 in Figure 3 Figure 7 is a flowchart of a sub-step of step S620 in Figure 6 Figure 8 is a flowchart of a HIL bench test method of an automotive water valve provided by an embodiment of the present application; Figure 9 is a schematic diagram of a controller for performing a HIL bench test method of an automotive water valve provided by an embodiment of the present application. DETAILED DESCRIPTION
[0019] Embodiments of the present application are described in detail below with reference to the accompanying drawings, in which the same or similar elements or elements having the same or similar functions are denoted by the same reference numerals throughout the drawings. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and cannot be understood as a limitation of the present application.
[0020] In the description of the present application, it should be understood that the orientation description, such as the orientation or position relationship indicated by up, down, front, back, left, right, etc. is based on the orientation or position relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, and therefore cannot be understood as a limitation of the present application. The device or element indicated is not required to have a particular orientation, to be constructed and operated in a particular orientation, and therefore cannot be understood as a limitation of the present application.
[0021] In the description of the present application, the meaning of several is one or more, the meaning of multiple is two or more, greater than, less than, more than, etc. are understood as not including the number, above, below, etc. are understood as including the number. If it is described as first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features or the order of indicated technical features.
[0022] In the description of the present application, unless otherwise explicitly limited, the words such as setting, installing, connecting, etc. should be broadly understood, and the person skilled in the art can reasonably determine the specific meaning of the above words in the present application in combination with the specific content of the technical solution.
[0023] In some situations, cooling, heating, and water circulation in new energy vehicles all rely on multi-way water valves. By controlling the valve body of a single multi-way water valve, switching between different water flow channels can be achieved.
[0024] The current HIL bench test method for five-way water valves uses the enable signal and valve body angle position control signal on the analog bus as inputs, monitors the XCP signal in the main control module, and outputs the water valve status signal fed back to the bus. This test method can only test the basic functions of the five-way water valve, cannot cover all operating conditions, is not suitable for precise control testing, and has a large signal delay.
[0025] Based on the above, this application proposes a HIL bench test method, controller, medium, and program product for automotive water valves, aiming to achieve accurate testing of the control process of multi-way water valves under different operating conditions.
[0026] The various embodiments of the HIL bench test method for automotive water valves of this application will be further described below with reference to the accompanying drawings.
[0027] For multi-way water valves, such as five-way water valves, the valve body is moved to different positions by a motor to change the flow direction of the coolant and thus achieve different system cycle switching. The PWM signal is fed back by a Hall sensor to calculate the current position of the valve body.
[0028] like Figure 1 As shown, Figure 1 This is a graph showing the relationship between the motor rotation angle and the number of pulses provided in one embodiment of this application; the correspondence between the valve body operating angle and the Hall sensor pulses is as follows: the relationship between motor rotation and Hall sensor feedback is that the motor rotates once and feeds back two pulses.
[0029] In addition, such as Figure 2 As shown, Figure 2 This is a diagram showing the relationship between the number of pulses and various angle intervals provided in one embodiment of this application. Specifically, the actual limit of the five-way water valve is from c° to d°. When the water valve rotates forward, it hits the limit at c°. At this time, the valve body hits the limit and does not move, but the motor continues to rotate, and the number of pulses continues to increase. This process generates the starting overshoot pulse N1. Similarly, the water valve hits the limit at d° and generates the ending overshoot pulse N2. Therefore, the limit interval pulse Ne = the actual received total pulse Na - the starting overshoot pulse N1 - the ending overshoot pulse N2; that is, Ne = Na - (N1 + N2).
[0030] Based on the above control principles, and taking the multi-way water valve as the control target, a test method for HIL bench testing is proposed: like Figure 3 As shown, Figure 3is a flowchart of a HIL bench test method of an automobile water valve provided by an embodiment of the present application. The HIL bench test method of the automobile water valve includes but is not limited to step S310, step S320 and step S330.
[0031] Step S310, generating an active test model for testing the multi-way water valve, adjusting model parameters of the active test model; Step S320, executing a water valve control test sequence based on the active test model to simulate water valve passages under multiple working conditions; Step S330, obtaining HIL output parameters of the active test model after the water valve control test sequence is executed, and determining a performance level of the multi-way water valve according to the HIL output parameters.
[0032] Specifically, first, an active test model suitable for function verification of the multi-way water valve is constructed. The model can be flexibly configured by the upper computer test software. Engineers can accurately adjust core model parameters such as PWM frequency, duty cycle, closed-loop control target current range, and current error threshold according to the motor characteristics, control requirements, and test targets of the multi-way water valve. At the same time, the real water valve hardware and the virtual simulation environment, such as the new energy automobile thermal management system virtual model containing the battery cooling loop and the warm air water valve loop, are bound to ensure that the model can realize accurate driving and working condition simulation of the water valve. Then, based on the configured active test model, a water valve control test sequence covering multiple actual running scenarios is built in the upper computer software, including battery water valve passage switching, warm air water valve passage conduction, self-learning calibration under normal working conditions, and extreme working condition and fault injection scenarios. By modifying the model flag parameter, simulating the bus enable signal and the valve body angle control signal as input, the test sequence is triggered to automatically execute, and the key running data of the water valve under each working condition is monitored in real time, such as motor current, valve core rotation total pulse number, pulse change rate, and passage flow. Finally, after the water valve control test sequence is executed, the system automatically collects the HIL full-quantity parameters output by the active test model, such as current time sequence data, pulse characteristic data, and working condition response delay in each test stage. Through the upper computer software, these parameters are comprehensively analyzed, and the preset qualified standard is compared to determine whether the function logic, control accuracy, extreme working condition adaptability, and fault tolerance capability of the multi-way water valve meet the standards, and finally determine the overall performance level.
[0033] In an embodiment, the active test model is provided with a function parameter adjustment area. Regarding the adjustment of the model parameters of the active test model in step S310, the model parameters of the active test model are adjusted according to the target adjustment parameters input in the function parameter adjustment area.
[0034] As shown in Figure 4 , the function parameter adjustment area is provided with a plurality of function parameter adjustment interfaces, and each function parameter adjustment interface is configured to adjust a corresponding function parameter of the active test model. Figure 4is a flowchart of adjusting model parameters of the active test model provided by an embodiment of the present application. The flowchart includes but is not limited to step S410 or step S420.
[0035] Step S410, in the case that the functional parameter adjustment region includes a PWM adjustment region, in response to the target PWM frequency and / or target PWM duty cycle set in the PWM adjustment region, so that the target PWM frequency and / or target PWM duty cycle of the active test model is within the target control range; Step S420, in the case that the functional parameter adjustment region includes a current adjustment region, in response to the target current range set in the current adjustment region, so that the actual current of the active test model is kept within the target control range by automatically increasing or decreasing the command current.
[0036] Specifically, when the functional parameter adjustment region of the host computer HIL test software contains a PWM adjustment module, the test personnel first manually input the target PWM frequency and / or target PWM duty cycle in the visual operation interface of the adjustment region according to the motor rated parameters, driving requirements and test scene requirements of the multi-way water valve to be tested; the system responds to the setting operation in real time, synchronizes the input target parameters to the PWM drive control unit of the active test model, and at the same time, through the parameter verification logic built-in the model, combines the preset target control range to verify the compliance of the set parameters, if the parameters are within the allowed range, the parameters take effect directly, if the parameters exceed the range, the parameters are prompted and automatically corrected to the nearest compliant value, finally ensuring that the frequency and / or duty cycle of the PWM drive signal output by the active test model is within the preset target control range, providing a stable and reliable signal basis for the accurate driving and subsequent working condition test of the multi-way water valve.
[0037] In addition, when the functional parameter adjustment region of the host computer HIL test software contains a current adjustment module, the test personnel first set the target current range in the current adjustment region according to the motor rated current, load demand under different working conditions and control accuracy requirements of the multi-way water valve to be tested; the system responds to the setting operation in real time, synchronizes the target current range parameters to the closed-loop current control unit of the active test model, and the model starts the current adaptive adjustment logic immediately: during the execution process of the water valve control test sequence, the actual working current of the multi-way water valve motor is collected in real time through the current sensor, and is compared with the set target current range in real time, if the actual current is lower than the lower limit of the range, the active test model automatically increases the command current output, adjusts the PWM duty cycle to increase the drive voltage to increase the motor current; if the actual current is higher than the upper limit of the range, the model automatically reduces the command current, reduces the PWM duty cycle to limit the current rise; the whole adjustment process is dynamically cycled until the actual current is stably maintained within the preset target control range, ensuring that the motor operates under safe load, and at the same time, ensuring the water valve control accuracy and working condition adaptability.
[0038] As Figure 5 shown, Figure 5 is a flowchart provided by an embodiment of the present application for building a test sequence and simulating an input signal. The flowchart includes but is not limited to step S510 and step S520.
[0039] Step S510, building a water valve control test sequence through the host computer test sequence software, and changing the corresponding parameters of the flag bit in the active test model; Step S520, simulating the enable signals and valve body control signals of the multi-way water valve in different working conditions on the bus as input signals.
[0040] Specifically, the test personnel builds a water valve control test sequence suitable for the function verification of the multi-way water valve through the editing interface of the host computer test sequence software: the sequence construction can be completed by dragging the working condition modules, such as the battery water valve passage, the heater water valve passage, self-learning calibration, motor stall fault, etc., setting the execution order and duration of each working condition; then the active test model configured is called in the sequence editing panel, the flag bit parameters of the corresponding working conditions in the model are adjusted through the parameter modification function, for example, the "battery water valve mode" flag bit is set to 0x01, the "heater water valve mode" flag bit is set to 0x02, and the "motor stall fault" flag bit is set to 0x03, to realize the accurate triggering of different test scenarios; at the same time, the software simulates the signal interaction logic of the real communication bus of the new energy vehicle through the bus simulation function, generates the corresponding enable signals and valve body control signals according to the requirements of each working condition, and real-time issues these simulated signals as input signals to the bus interface of the multi-way water valve, to drive the water valve to perform corresponding actions under each preset working condition, laying a foundation for subsequent performance parameter collection and verification.
[0041] In an embodiment, during the execution of the water valve control test sequence, the method further includes monitoring the working parameters of the multi-way water valve in multiple functional states, wherein the functional states include a battery thermal management functional state, a heater thermal management functional state, a self-learning state, or a fault injection state, and the working parameters include total pulse number change, pulse number change rate, or current parameter.
[0042] Specifically, during the execution of the built water valve control test sequence based on the host computer HIL test system, the system synchronously starts the multi-dimensional real-time monitoring mechanism, and the whole-process data acquisition is performed for the running conditions of the multi-way water valve in different functional states: when the test sequence triggers the battery thermal management functional state, the total pulse number change, pulse number change rate and real-time current parameters of the motor during the rotation of the valve core in the process of switching the water valve to the battery cooling / heat preservation passage are monitored; when the sequence switches to the warm air thermal management functional state, the above-mentioned core working parameters when the water valve is turned on the warm air circuit are monitored, and the action accuracy and current stability in the cabin heating / defrosting scene are verified; after the self-learning state is triggered, the calibration change of the total pulse number, the dynamic fluctuation of the pulse change rate and the abnormal characteristics of the current parameters in the process of the water valve finding the mechanical limit are tracked; when the fault injection state is executed, whether the total pulse number is stagnant, whether the pulse change rate is suddenly reduced to 0, and whether the current parameters have abnormal performances such as sudden rise / sudden drop are continuously recorded, and through the comprehensive monitoring of the total pulse number change, the pulse number change rate and the current parameters in each functional state, complete data support is provided for the subsequent performance evaluation of the water valve.
[0043] As shown in Figure 6 , Figure 6 is Figure 3 a sub-step flow chart of one embodiment of step S330. Regarding step S330 described above, it includes but is not limited to step S610 and step S620.
[0044] Step S610, collect the HIL output current parameters of the active test model in each test stage of the water valve control test sequence; Step S620, for each test stage, compare the HIL output current parameters with the preset current parameters to obtain the performance level of the multi-way water valve.
[0045] Specifically, during the whole process of the water valve control test sequence executed by the host computer HIL test system, the system collects the HIL current parameters output by the active test model in real time at a preset high sampling rate, covering the full timing current data of each test phase such as the battery thermal management function starting phase, the warm air thermal management function action phase, the self-learning calibration phase, the fault injection phase, etc., including the starting peak current, the action phase average current, the stable phase holding current, the fluctuation amplitude, the rise / fall time, etc. Key indicators; for each test phase, the host computer software automatically calls the preset current parameters, compares and analyzes the collected HIL output current parameters with the preset current parameters of the corresponding phase: if the starting peak current output by the HIL in a certain phase is within the preset threshold, the deviation of the action phase average current from the preset value does not exceed the allowed range, and the current fluctuation amplitude meets the requirements, it is determined that the performance of this phase meets the standard; if the peak current exceeds the threshold, the fluctuation amplitude is too large or the response time is too long, etc. Marked as performance anomaly; by comprehensively summarizing the comparison results of the current parameters of all test phases, the control precision, the running stability, the extreme condition adaptability and the fault tolerance ability of the multi-way water valve under various working conditions are finally determined, and whether its overall performance level meets the design specification is clear.
[0046] As Figure 7 shown, Figure 7 is Figure 6 a sub-step flowchart of one embodiment of step S620. Regarding step S620 described above, it includes but is not limited to step S710 and step S720.
[0047] Step S710, acquire all dimensions of HIL output current parameters; Step S720, for each test phase, compare all dimensions of HIL output current parameters with the corresponding preset current parameters respectively, and obtain the performance level of the multi-way water valve.
[0048] Specifically, in the whole process of the water valve control test sequence executed by the host computer HIL test system, the system collects all dimensional HIL output current parameters output by the active test model in real time at a high sampling rate, covering peak current, valley current, average current, current fluctuation amplitude, current rise time, current fall time, duty cycle-current correlation data, temperature-current linkage data, and other multi-dimensional characteristics; for each test stage such as battery thermal management function, warm air thermal management function, self-learning, and fault injection, the host computer software automatically calls the corresponding preset current parameters of each dimension, and accurately compares each item of collected dimensional HIL output current parameters with the preset current parameters of the corresponding stage: if the HIL output current parameters of all dimensions in a certain stage meet the preset standard, it is determined that the performance of this stage meets the standard; if any dimensional parameter exceeds the preset range, it is marked as a performance anomaly of the corresponding dimension; by comprehensively analyzing the comparison results of the dimensional parameters of all test stages, the control accuracy, running stability, extreme environment adaptability, and fault tolerance capability of the multi-way water valve under various working conditions are comprehensively evaluated, and finally it is determined whether the overall performance level meets the design specification.
[0049] Based on the various embodiments of the HIL bench test method of the automobile water valve of the above embodiments, the overall embodiments of the HIL bench test method of the automobile water valve of the present application are proposed as follows.
[0050] As shown in Figure 8 , the Figure 8 is the overall flowchart of the HIL bench test method of the automobile water valve provided by an embodiment of the present application.
[0051] In an embodiment, the present embodiment realizes the verification of the function logic of the five-way water valve by controlling the PWM frequency, collecting the current size, monitoring the pulse number change and change rate, and the specific steps are as follows: Step S810, adjust the active test model parameters: The active test model of the present embodiment based on the preset PWM duty cycle size can realize the adjustment of the voltage size and the motor rotation rate by changing the parameters.
[0052] In addition, it can realize the control of the PWM frequency size in the target control range by adjusting the active model parameters, the target current output by the closed-loop adjustment controller, and the automatic addition and subtraction of the command current by the controller.
[0053] Step S820, execute the water valve control test sequence, and simulate the water valve passage under different working conditions: The host computer test sequence software realizes automatic sequence building, model parameter modification, and evaluation index building.
[0054] In the automatic test sequence built in the host computer test sequence software, the parameters corresponding to the flag bits in the calling model are changed, and the enable and valve body control signals of the five-way water valve under different working conditions on the bus are simulated as inputs.
[0055] Monitor key signals such as total pulse count change, pulse count change rate, and current of the water valve under various states including battery-operated water valve, heating air water valve, self-learning, and fault injection.
[0056] Step S830: Collect and verify whether the output current of HIL meets the requirements. The current output by HIL is collected, and the current at each stage of the active test is compared and judged.
[0057] The larger the duty cycle of the active control model, the higher the voltage, and the relatively larger the current value collected.
[0058] Different motors have their own suitable frequencies. If the frequency is too low, the valve body movement will be unstable. If the frequency is too high, the motor will not be able to respond. Therefore, the control current of each stage needs to be compared and judged based on the changes in all currents.
[0059] Based on the HIL bench test method for automotive water valves described above, various embodiments of the controller, computer-readable storage medium, and computer program product of this application are presented below.
[0060] like Figure 9 As shown, Figure 9 This is a schematic diagram of a controller for performing a HIL bench test method for automotive water valves according to an embodiment of this application. The controller 100 implemented in this application includes: a processor 110, a memory 120, and a computer program stored in the memory 120 and executable on the processor 110, wherein... Figure 9 The example uses a processor 110 and a memory 120.
[0061] Processor 110 and memory 120 can be connected via a bus or other means. Figure 9 Taking the example of a connection between China and Israel via a bus.
[0062] Memory 120, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 120 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 120 may optionally include remotely located memories 120 relative to processor 110, which can be connected to controller 100 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0063] Those skilled in the art will understand that Figure 9 The device structure shown does not constitute a limitation on the controller 100 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0064] exist Figure 9 In the controller 100 shown, the processor 110 can be used to call the control program stored in the memory 120, thereby implementing the HIL bench test method for the automotive water valve described above. Specifically, the non-transitory software program and instructions required to implement the HIL bench test method for the automotive water valve in the above embodiment are stored in the memory 120. When executed by the processor 110, the HIL bench test method for the automotive water valve in the above embodiment is executed.
[0065] It is worth noting that, since the controller 100 of this application embodiment is capable of executing the HIL bench test method for automotive water valves of any of the above embodiments, the specific implementation method and technical effects of the controller 100 of this application embodiment can be referred to the specific implementation method and technical effects of the HIL bench test method for automotive water valves of any of the above embodiments.
[0066] Furthermore, one embodiment of this application provides a computer-readable storage medium storing computer-executable instructions for performing the HIL bench test method for an automotive water valve described above. Exemplarily, the above-described method is executed... Figures 3 to 8 The methods and steps in the text.
[0067] It is worth noting that, since the computer-readable storage medium of this application embodiment is capable of executing the HIL bench test method for automotive water valves of any of the above embodiments, the specific implementation and technical effects of the computer-readable storage medium of this application embodiment can be referred to the specific implementation and technical effects of the HIL bench test method for automotive water valves of any of the above embodiments.
[0068] Furthermore, one embodiment of this application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the HIL bench test method for automotive water valves described above. Exemplarily, the above-described method is performed... Figures 3 to 8 The methods and steps in the text.
[0069] It is worth noting that since the computer program product of the embodiment of the present application can execute the HIL bench test method of the automobile water valve of any one of the above-mentioned embodiments, the specific implementation and technical effects of the computer program product of the embodiment of the present application can refer to the specific implementation and technical effects of the HIL bench test method of the automobile water valve of any one of the above-mentioned embodiments.
[0070] Those of ordinary skill in the art will understand that all or some of the steps in the above-disclosed methods and systems can be implemented as software, firmware, hardware, or suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on computer-readable media, which can include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage, or other magnetic storage devices, or any other medium that can be used to store the desired information and that can be accessed by a computer. Furthermore, it is common knowledge to those of ordinary skill in the art that communication media typically include computer readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transport mechanisms, and can include any information delivery medium.
[0071] It should be understood that in the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" is used to describe the association relationship of the associated objects, which means that there can be three relationships, for example, "A and / or B" can mean that there are three cases of only A, only B, and A and B at the same time, where A and B can be singular or plural. The character " / " generally represents that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions means any combination of these items, including any combination of single or multiple items. For example, at least one of a, b, or c can mean 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.
[0072] In several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method can be implemented in other manners. For example, the apparatus embodiments described above are merely schematic. For example, the division of the units is only a logical function division. For another example, there can be another division manner for the actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections between the units can be indirect couplings or communication connections through some interfaces, apparatuses or units, and can be in electrical, mechanical or other forms.
[0073] It should also be understood that the various embodiments provided by the embodiments of the present application can be combined in any manner to achieve different technical effects.
[0074] The above is a specific description of the preferred embodiments of the present application, but the present application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or replacements without departing from the spirit of the present application, and these equivalent modifications or replacements are included in the scope defined by the claims of the present application.
Claims
1. A HIL bench test method for automotive water valve, characterized in that, The method comprises: generating an active test model for testing a multi-way water valve, adjusting model parameters of the active test model; performing a water valve control test sequence based on the active test model to simulate water valve passages under multiple working conditions; obtaining HIL output parameters of the active test model after the water valve control test sequence is completed, and determining a performance level of the multi-way water valve according to the HIL output parameters.
2. The HIL bench test method of automotive water valve according to claim 1, characterized in that, The active test model is provided with a functional parameter adjustment area; the adjusting of the model parameters of the active test model comprises: in response to target adjustment parameters input in the functional parameter adjustment area, adjusting the model parameters of the active test model according to the target adjustment parameters.
3. The HIL bench test method of automotive water valve according to claim 2, characterized in that, The adjusting of the model parameters of the active test model according to the target adjustment parameters in response to the target adjustment parameters input in the functional parameter adjustment area comprises one of the following: in the case where the functional parameter adjustment area comprises a PWM adjustment area, in response to a target PWM frequency and / or a target PWM duty cycle set in the PWM adjustment area, so that the target PWM frequency and / or the target PWM duty cycle of the active test model are within a target control range; in the case where the functional parameter adjustment area comprises a current adjustment area, in response to a target current range set in the current adjustment area, so that an actual current of the active test model is kept within a target control range by automatically adding or subtracting the command current.
4. The HIL bench test method of automotive water valve according to claim 1, characterized in that, The method further comprises: building a water valve control test sequence by a host computer test sequence software, changing a corresponding parameter of a flag bit in the active test model, and simulating an enable signal and a valve body control signal of the multi-way water valve under different working conditions on a bus as input signals.
5. The HIL bench test method of automotive water valve according to claim 4, characterized in that, In the process of performing the water valve control test sequence, the method further comprises: monitoring working parameters of the multi-way water valve under multiple functional states, wherein the functional states include a battery thermal management functional state, a heater thermal management functional state, a self-learning state or a fault injection state, and the working parameters include total pulse number variation, pulse number variation rate or current parameter.
6. The HIL bench test method of automotive water valve according to claim 1, characterized in that, The obtaining of the HIL output parameters of the active test model after the water valve control test sequence is completed, and the determining of the performance level of the multi-way water valve according to the HIL output parameters comprise: collecting HIL output current parameters of the active test model in each test stage in the water valve control test sequence; for each test stage, comparing the HIL output current parameters with preset current parameters to obtain the performance level of the multi-way water valve.
7. The HIL bench test method of an automotive water valve according to claim 6, characterized in that, The comparing of the HIL output current parameters with preset current parameters to obtain the performance level of the multi-way water valve for each test stage comprises: obtaining the HIL output current parameters in all dimensions; for each test stage, comparing the HIL output current parameters in all dimensions with corresponding preset current parameters to obtain the performance level of the multi-way water valve.
8. A controller characterized by: The method comprises: The memory, the processor and the computer program stored on the memory and capable of running on the processor, the processor executes the computer program to perform the HIL bench test method of the automobile water valve according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer executable instructions are stored in the computer readable storage medium, and the processor of the computer device reads the computer executable instructions from the computer readable storage medium, and executes the computer executable instructions, so that the computer device performs the HIL bench test method of the automobile water valve according to any one of claims 1 to 7.
10. A computer program product comprising computer programs or computer instructions, characterized in that, The computer program or the computer instructions are stored in the computer readable storage medium, and the processor of the computer device reads the computer program or the computer instructions from the computer readable storage medium, and executes the computer program or the computer instructions, so that the computer device performs the HIL bench test method of the automobile water valve according to any one of claims 1 to 7.
