Test system for electric control system of household appliance
By combining signal simulation and acquisition modules, automated testing of the water purifier's electrical control system was achieved, solving the problem of existing testing methods relying on manual labor and environmental factors, improving the automation and repeatability of testing, and enhancing the coverage of operating conditions.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FOSHAN SHUNDE MIDEA WASHING APPLIANCES MANUFACTURING CO LTD
- Filing Date
- 2026-05-19
- Publication Date
- 2026-06-19
AI Technical Summary
Existing testing methods for water purifier electrical control systems rely on manual labor and physical environments, resulting in insufficient coverage of boundary and abnormal operating conditions, and making it difficult to accurately verify the timing logic of multi-load outputs.
The signal simulation module simulates the signals required by the control module of the home appliance under test. The acquisition module collects the output signals and feeds them back to the test processing module for comparison. Anomalies are judged by the reference signal template to realize automated testing.
It improves the automation and repeatability of testing the electrical control system of water purifiers, enhances the coverage of operating conditions, and reduces dependence on actual water circuits and heating/cooling environments.
Smart Images

Figure CN122239684A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electrical control testing technology, and in particular to testing systems for household appliance electrical control systems. Background Technology
[0002] Currently, the electronic control system of water purifier products typically includes: a main control board; a power drive circuit (driving the heating element, compressor, water pump, etc.); various sensor interfaces (such as temperature sensors, water level probes, flow meters, TDS (Total Dissolved Solids) probes, etc.); and actuator interfaces (such as water pumps, heating components, solenoid valves, etc.).
[0003] The main problems in the existing testing process are as follows: 1. Testing methods rely on manual labor and physical environment; 2. Insufficient coverage of boundary conditions and abnormal conditions; 3. Difficulty in accurately verifying the timing logic of multi-load output. Summary of the Invention
[0004] The testing system for home appliance control systems provided in this application can improve the automation, repeatability, and operating condition coverage of home appliance control module testing, and reduce the dependence on actual water circuits and heating / cooling environments.
[0005] In a first aspect, this application provides a testing system for a home appliance control system. The testing system includes: a test processing module; a signal simulation module connected to the test processing module for connecting the home appliance control module under test, the signal simulation module being configured to provide a target simulation signal corresponding to the signal simulation curve parameters sent by the test processing module, so that the home appliance control system in the home appliance control module under test can be tested according to the target simulation signal simulating a scenario; and an acquisition module connected to the test processing module for connecting each load output terminal of the home appliance control module under test, the acquisition module being configured to: acquire the output signals of each load output terminal during the scenario test and feed the output signals back to the test processing module; the test processing module being configured to: compare the output signals with a reference signal template, determine whether the home appliance control module under test is abnormal based on the comparison result, and adjust the signal simulation curve parameters according to the output signals; wherein, the reference signal template is formed by the test processing module after conducting multiple tests on the target home appliance control module during historical testing, wherein the target home appliance control module has the same function as the home appliance control module under test, and the target home appliance control module is a qualified home appliance control module.
[0006] In some embodiments, the output signal is a voltage signal, the reference signal template is a reference voltage signal template, and the test processing module is further configured to: obtain a voltage waveform based on the voltage signal, and compare the voltage waveform with the reference voltage waveform in the reference voltage signal template.
[0007] In some embodiments, the test processing module is further configured to: align the voltage waveform and the reference voltage waveform on the time axis; acquire a first start time, a first voltage duration, and a first average voltage in the time-aligned voltage waveform, and acquire a second start time, a second voltage duration, and a second average voltage in the time-aligned reference voltage waveform; the start time is the initial moment when the voltage in the voltage waveform is higher than a threshold voltage, the voltage duration is the duration during which the voltage in the voltage waveform remains higher than the threshold voltage, the average voltage is the average voltage of all voltages in the voltage waveform; obtain the start time deviation based on the first start time and the second start time; obtain the duration deviation based on the first voltage duration and the second voltage duration; obtain the average voltage deviation based on the first average voltage and the second average voltage; and obtain a comparison result based on the start time deviation, the duration deviation, and the average voltage deviation.
[0008] In some embodiments, the test processing module is further configured to: determine that the tested home appliance control module is normal when the comparison results at all load output terminals are qualified; and determine that the tested home appliance control module is abnormal when the comparison results at any load output terminal are unqualified.
[0009] In some embodiments, the test processing module is configured to: perform multiple tests on the target home appliance control module during the historical test process, obtain the historical output signals of each load output terminal in the multiple tests, and obtain the reference signal template of the corresponding load output terminal based on the historical output signals.
[0010] In some embodiments, the historical output signal is a historical voltage signal, and the test processing module is configured to: perform mean processing on multiple historical voltage signals at the same time point to obtain a historical mean voltage signal, and use the historical mean voltage signal as the voltage signal at the corresponding time in the reference signal template; or, perform median filtering on multiple historical voltage signals at the same time point to obtain a median voltage signal, and use the median voltage signal as the voltage signal at the corresponding time in the reference signal template.
[0011] In some embodiments, the scenarios include: initial water filling scenario, continuous heating scenario, water shortage scenario, power-on flushing scenario, recirculation scenario, water production timeout scenario, freezing scenario, cooling scenario, and water production protection scenario; the test processing module is configured to send corresponding signal simulation curve parameters according to the current test scenario among the initial water filling scenario, continuous heating scenario, water shortage scenario, power-on flushing scenario, recirculation scenario, water production timeout scenario, freezing scenario, cooling scenario, and water production protection scenario.
[0012] In some embodiments, the signal simulation curve parameters corresponding to the initial water filling scenario are: after power-on, the water pump turns on and the flow rate gradually increases from 0 to the rated value, and the water level linearly rises from the first position to the second position, and the water pump shuts off after reaching the second position, involving sensor parameters and switch signals; the signal simulation curve parameters corresponding to the continuous heating scenario are: after the heating switch is turned on, it is detected that the temperature of the hot tank is lower than the heating start point, heating is turned on, the temperature rises according to the set value at a preset slope to the first set temperature, at the same time, the heating tube is detected to be closed and maintained for a first preset time, and then the temperature decreases according to the set slope to the heat preservation point, and the heating tube is turned on again for heating, involving sensor parameters and switch signals during the temperature rise at the preset slope; the signal simulation curve parameters corresponding to the water shortage scenario are: when the water tank is full of water, a waterproofing operation is performed, and the water outlet valve is opened. The system calculates the flow rate, stops water output when the flow rate reaches the minimum water shortage level, and turns on the water pump. If there is no increase in flow rate after the second preset time, it enters a water shortage state. The sensor parameters and switch signals involved in the process are as follows: The signal simulation curve parameters for the power-on flushing scenario are: after power-on, the system remains stationary for the third preset time, then opens the booster pump inlet valve for the third preset time, and then closes it for the fourth preset time. The signal simulation curve parameters for the return flow scenario are: after the system accumulates water production for the fifth preset time or remains in standby mode after water production for the sixth preset time, then turns on the booster pump, opens the inlet valve, opens the return valve for the seventh preset time, and then closes it. The signal simulation curve parameters for the water production timeout scenario are: after the continuous water production time exceeds the eighth preset time, all loads are turned off to stop water production.
[0013] In some embodiments, the signal simulation curve parameters corresponding to the icing scenario are as follows: In the ice-making state, if the evaporator's temperature drop is greater than or equal to the first preset temperature and the required time is less than the ninth preset duration, an ice-removal anomaly is determined, and the system enters the active ice-melting state. After waiting for the corresponding ice-melting time in the current environment, the system recovers. If the active ice-melting fails to recover after more than n consecutive attempts, the system enters the natural ice-melting state. If the waiting standby time is greater than the tenth preset duration, the system exits. If the system enters the icing fault state after more than n consecutive attempts, the sensor parameters and switch signals involved in the process of shutting down the refrigeration and ice-making related loads are closed. The signal simulation curve parameters corresponding to the refrigeration scenario are as follows: When the refrigeration function is turned on, the temperature is lower than the second preset temperature, refrigeration is completed, the refrigeration-related loads are turned off, and the temperature is lowered after the eleventh preset duration. When the temperature is greater than the third preset temperature, the cooling-related loads are turned on, and the inlet water temperature is detected after the twelfth preset time. If the inlet water temperature is less than or equal to the fourth preset temperature, the cooling loads are forcibly turned off. If the inlet water temperature is greater than or equal to the fifth preset temperature, the normal cooling logic is restored. The sensor parameters and switch signals involved in the process are as follows: the fifth preset temperature is greater than the fourth preset temperature; the third preset temperature is greater than the second preset temperature; the signal simulation curve parameters corresponding to the water production protection scenario are as follows: when no water is produced, the high-pressure switch is turned on to start water production, continuous water production triggers protection, all loads are turned off, and the high-pressure switch is automatically disconnected before the water production time reaches the protection time, without entering the protection process.
[0014] In some embodiments, the test processing module is configured to: determine the current test stage of the scenario test based on the output signal, and adjust the signal simulation curve parameters according to the current test stage.
[0015] The beneficial effects of the embodiments of this application are as follows: Unlike the prior art, the test system for the home appliance control system provided in this application uses a signal simulation module to simulate the signals required by the control module of the home appliance under test, thereby reducing the dependence on the actual water circuit and heating / cooling environment. In addition, the acquisition module collects the output signals of each load output terminal of the control module of the home appliance under test during the scenario test and feeds the output signals back to the test processing module. The test processing module compares the output signals with the reference signal template and determines whether the control module of the home appliance under test is abnormal based on the comparison results. The signal simulation curve parameters are adjusted according to the output signals to realize automated testing of the home appliance control module, which can improve the automation, repeatability and operating condition coverage of the testing of the home appliance control module. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein: Figure 1 This is a schematic diagram of the structure of an embodiment of the test system for the home appliance electronic control system provided in this application. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are only for explaining this application and not for limiting it. Furthermore, it should be noted that, for ease of description, only the parts related to this application are shown in the accompanying drawings, not all structures. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0018] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0019] Currently, the electronic control system of water purifier products typically includes: a main control board; a power drive circuit (driving the heating element, compressor, water pump, etc.); various sensor interfaces (such as temperature sensors, water level probes, flow meters, TDS probes, etc.); and actuator interfaces (such as water pumps, heating components, solenoid valves, etc.).
[0020] The following problems mainly exist in the existing testing process: 1. Testing methods rely on manual intervention and physical environments. Testers typically simulate load output states by manually wiring, manually operating switches, plugging and unplugging sensors, or building simple analog circuits, relying on real water circuits and heating / cooling devices to simulate the working process. This method is costly to set up and time-consuming; different testers may use different setup methods, resulting in poor repeatability; and for complex operating processes, it is difficult to precisely control the changes in various parameters.
[0021] 2. Insufficient coverage of boundary and abnormal operating conditions. During the quality evaluation phase, it is crucial to examine the product's performance under various boundary and abnormal operating conditions, such as: high and low temperature conditions; water shortage; abnormal flow rate; abnormal water quality (sudden or excessive TDS); and the risk of dry burning. Traditional methods relying on physical environments or temporary circuit setups have poor controllability and repeatability for signals such as temperature, water level, flow rate, and TDS, making it difficult to systematically cover all boundary conditions, resulting in insufficient comprehensiveness and representativeness of the test results.
[0022] 3. The timing logic of multi-load output is difficult to verify accurately. Under different operating conditions, the water purifier control board will drive multiple actuators simultaneously. For example, before the compressor starts, a certain solenoid valve needs to be opened and held for a certain period of time; the heating component can only start after the water level, flow rate, temperature and other signals meet certain conditions; there are interlocks or priorities between multiple water pumps and valves.
[0023] Existing methods such as manually observing indicator lights and using multimeters can only roughly determine the on / off state, making it difficult to accurately collect the timing characteristics and duration waveforms of multi-channel outputs, and making it impossible to establish a unified benchmark template for batch comparison.
[0024] Based on this, the testing system for the home appliance control system provided in this application utilizes a signal simulation module to simulate the signals required by the control module of the home appliance under test, thereby reducing reliance on actual water circuits and heating / cooling environments. It also utilizes a data acquisition module to collect output signals from each load output terminal of the control module under test during scenario testing and feeds these output signals back to the test processing module. The test processing module compares the output signals with a reference signal template, determines whether the control module under test is abnormal based on the comparison results, and adjusts the signal simulation curve parameters according to the output signals. This achieves automated testing of the home appliance control module, improving the automation level, repeatability, and operating condition coverage of the testing. See any of the following embodiments for specific technical solutions.
[0025] See Figure 1 , Figure 1 This is a schematic diagram of an embodiment of the test system for the home appliance electronic control system provided in this application. The test system 100 includes: a test processing module 10, a signal simulation module 20, and a data acquisition module 30.
[0026] In some embodiments, the test processing module 10 may be a device with logic processing capabilities, such as a host computer or a terminal device. For example, the test processing module 10 may be a device such as a personal computer.
[0027] In some embodiments, the test processing module 10 is connected to each load output terminal of the appliance control module 200 under test via the acquisition module 30. In some embodiments, the load of the appliance control module 200 under test can be a relay, drive transistor, solenoid valve, water pump, compressor, etc. That is, the appliance control module 200 under test and these loads can constitute a corresponding home appliance. For example, the home appliance can be a water dispenser, water purifier, etc. In other words, the appliance control module 200 under test can be a water purifier, water dispenser, or other home appliance with drinking water functions.
[0028] In some embodiments, the test processing module 10 can synchronously acquire data from multiple load channels to generate waveforms of voltage changes over time for each channel. On the prototype that passes the first test, the multi-channel voltage waveforms are recorded and stored as a reference template. In subsequent tests, the test processing module 10 compares the real-time acquired multi-channel voltage waveforms with the reference template (reference signal template) and makes judgments based on deviations in timing, duration, voltage amplitude, etc., automatically determining whether the multi-load output logic is correct.
[0029] The signal simulation module 20 is connected to the test processing module 10 and is used to connect to the home appliance control module 200 under test. The signal simulation module 20 is configured to provide the home appliance control module 200 under test with a target simulation signal corresponding to the signal simulation curve parameters sent by the test processing module 10, so that the home appliance control system in the home appliance control module 200 under test can be tested according to the target simulation signal simulation scenario.
[0030] In some embodiments, the test processing module 10 can establish unified simulation model parameters for various sensors such as flow rate, temperature, water level, TDS, and switching signals, including range, response time, and nonlinear relationships. The test processing module 10 controls the signal simulation module 20 according to a preset "scenario curve," allowing for one-click recall of typical operating scenarios, such as initial water filling, continuous heating, water shortage, and overflow. It supports coordinated changes in multiple sensor signals and, through scripts or parameter configuration, enables automatic playback of complex operating condition sequences. The test processing module 10 performs closed-loop adjustment of the sensor simulation signals (target simulation signals) based on the real-time status output by the appliance control module 200 under test, achieving near-real-world automated testing.
[0031] In some embodiments, the signal simulation module 20 may include a flow simulation submodule, a temperature simulation submodule, a water level simulation submodule, a TDS simulation submodule, and a switch quantity simulation submodule, etc.; each submodule is connected to the corresponding sensor interface of the home appliance control module 200 under test through a digital-to-analog converter, a resistor network, a current source, a relay matrix, etc.; the test processing module 10 sends control parameters to the signal simulation module 20 to dynamically generate a simulation signal (target simulation signal).
[0032] In some embodiments, the appliance control module 200 under test may have several load output interfaces and sensor and digital input interfaces. The load output interfaces include the output terminals of relays or power drive tubes that drive heating elements, compressors, water pumps, solenoid valves, etc. The sensor and digital input interfaces include temperature sensor interfaces, water level probe interfaces, flow meter interfaces, TDS probe interfaces, and several digital input interfaces.
[0033] The acquisition module 30 is connected to the test processing module 10 and is used to connect to each load output terminal of the appliance control module 200 under test. The acquisition module 30 is configured to acquire the output signals of each load output terminal during the scenario test and feed the output signals back to the test processing module 10.
[0034] In some embodiments, the acquisition module 30 may include a multi-channel voltage acquisition circuit. The multi-channel voltage acquisition circuit is connected one-to-one with each load output terminal of the appliance control module 200 under test. Each voltage acquisition circuit can detect the voltage or logic level signal of the corresponding load output terminal and feed it back to the test processing module 10 through an analog-to-digital converter or a digital acquisition circuit. It supports the simultaneous acquisition of 18 output signals, and the sampling frequency is configurable.
[0035] In some embodiments, the test processing module 10 is configured to: compare the output signal with a reference signal template, determine whether the tested home appliance control module 200 is abnormal based on the comparison result, and adjust the signal simulation curve parameters based on the output signal; wherein, the reference signal template is formed by the test processing module 10 after performing multiple tests on the target home appliance control module during historical testing, wherein the target home appliance control module has the same function as the tested home appliance control module 200, and the target home appliance control module is a qualified home appliance control module.
[0036] In some embodiments, test management software may run in the test processing module 10. This test management software is used to: configure test items and typical operating scenarios; issue sensor simulation curve parameters (signal simulation curve parameters); receive and store voltage waveform data fed back by the acquisition module 30; generate a benchmark template and perform comparative analysis; and provide a graphical interface for displaying multi-channel output waveforms, sensor curves, and load start-up timing records.
[0037] In some embodiments, a communication module can be provided between the test processing module 10, the signal simulation module 20, and the acquisition module 30. This communication module is used to enable communication between the test processing module 10 and the signal simulation module 20 and acquisition module 30. The communication module can use interfaces such as RS485, Ethernet, serial port, or CAN.
[0038] In some embodiments, the output signal is a voltage signal, the reference signal template is a reference voltage signal template, and the test processing module 10 is further configured to: obtain a voltage waveform based on the voltage signal, and compare the voltage waveform with the reference voltage waveform in the reference voltage signal template.
[0039] In some embodiments, the test processing module 10 is further configured to: align the voltage waveform and the reference voltage waveform on the time axis; acquire a first start time, a first voltage duration, and a first average voltage in the time-aligned voltage waveform, and acquire a second start time, a second voltage duration, and a second average voltage in the time-aligned reference voltage waveform; the start time is the initial moment when the voltage in the voltage waveform is higher than a threshold voltage, the voltage duration is the duration during which the voltage in the voltage waveform remains higher than the threshold voltage, the average voltage is the average voltage of all voltages in the voltage waveform; obtain the start time deviation based on the first start time and the second start time; obtain the duration deviation based on the first voltage duration and the second voltage duration; obtain the average voltage deviation based on the first average voltage and the second average voltage; and obtain a comparison result based on the start time deviation, the duration deviation, and the average voltage deviation.
[0040] In some embodiments, corresponding time deviation thresholds, duration deviation thresholds, and average voltage deviation thresholds can be set. Since the initial time deviation, duration deviation, and average voltage deviation may be negative, a first comparison result is obtained by comparing the absolute value of the initial time deviation with the time deviation threshold. A second comparison result is obtained by comparing the absolute value of the duration deviation with the duration deviation threshold. A third comparison result is obtained by comparing the absolute value of the average voltage deviation with the average voltage deviation threshold. The test processing module 10 integrates all comparison results to determine whether the tested home appliance control module 200 is abnormal.
[0041] In some embodiments, since the appliance control module 200 under test has multiple load output terminals, each load output terminal can generate a corresponding voltage signal under the test scenario. That is, each load output terminal can correspond to a different reference voltage waveform (reference signal template) according to different test scenarios. When the test processing module 10 performs comparison, it can retrieve the corresponding reference voltage waveform (reference signal template) from the memory according to the type of load output terminal and the test scenario to compare it with the current voltage waveform.
[0042] In some embodiments, the test processing module 10 is further configured to: determine that the tested appliance control module 200 is normal when the comparison results at all load output terminals are qualified; and determine that the tested appliance control module 200 is abnormal when the comparison result at any load output terminal is unqualified. When the tested appliance control module 200 is determined to be abnormal, the test processing module 10 can be used to locate the abnormality and display the corresponding abnormal load output terminal on the corresponding display module to facilitate subsequent maintenance and adjustment.
[0043] In one application scenario, the testing process of the home appliance control module by the test processing module 10, signal simulation module 20, and acquisition module 30 is as follows: The program starts and configures the loads connected to each channel and the sensor switching quantities.
[0044] The system determines the status of various sensors and synchronously acquires the load's on / off status. Each channel acquires voltage through the acquisition module 30 and uploads it to the test processing module 10 for processing and recording to form a load timing sequence and voltage waveform diagram. Parameters in the voltage waveform diagram include the on and off times, duration, and voltage amplitude. The test processing module 10 can perform waveform statistics and filtering on a specific functional module in the tested appliance control module 200 through multiple tests to obtain a typical "reference waveform (reference signal template)," which serves as the reference waveform diagram for that functional module. It also determines whether the waveform can be stored, and if so, stores it. When testing home appliance control modules of the same model or with the same solution, the test processing module 10 drives the signal simulation module 20 with the same test script to excite the test home appliance control module 200 under operating conditions. The acquisition module 30 synchronously acquires the output voltage of each load channel to form a test waveform. The test processing module 10 compares the test waveform with the reference waveform, including at least the deviation of the start time of each channel's action after the time axis is aligned, the deviation of the action duration, and the stability of the voltage amplitude or logic level. Based on the pre-set tolerance threshold, it judges whether each output channel is qualified and finally gives the conclusion of the whole board passing or failing. In the above way, complex logic such as "whether the corresponding solenoid valve is opened in advance and held for at least T1 seconds before the compressor starts" can be automatically judged without the need for testers to manually observe each channel.
[0045] In some embodiments, the test processing module 10 is configured to: perform multiple tests on the target home appliance control module during the historical test process, obtain the historical output signals of each load output terminal in the multiple tests, and obtain the reference signal template of the corresponding load output terminal based on the historical output signals.
[0046] In some embodiments, the historical output signal is a historical voltage signal, and the test processing module 10 is configured to: perform average processing on multiple historical voltage signals at the same time point to obtain a historical average voltage signal, and use the historical average voltage signal as the voltage signal at the corresponding time in the reference signal template.
[0047] In some embodiments, the historical output signal is a historical voltage signal, and the test processing module 10 is configured to: perform median filtering on multiple historical voltage signals at the same time point to obtain the median voltage signal, and use the median voltage signal as the voltage signal at the corresponding time in the reference signal template.
[0048] In some embodiments, the reference waveform is formed in the following manner: Assuming the same functional module is tested N times, and the voltage value of the i-th channel at time t is collected in each test... , where k = 1, 2, ..., N.
[0049] A reference waveform can be obtained by averaging, for example, by calculating the average of multiple test voltage values to generate a reference waveform, thus eliminating random noise. The specific formula is as follows: .
[0050] The reference waveform can be obtained by median filtering: sort the N voltage values at each time point t, and take the median as the reference value, which has better robustness to impulse noise.
[0051] .
[0052] Moving average filtering (optional): used to generate the above reference waveform Then, the time series can be further smoothed.
[0053] .
[0054] Where M is the half-width of the window and Δt is the sampling time interval.
[0055] Furthermore, the test waveform is compared with the benchmark template as follows: Let the voltage sequence of the i-th channel in the test waveform be... The corresponding baseline template is The comparison time window is T.
[0056] Deviation calculation after time axis alignment: Calculate the start time deviation: t_start is the moment when the voltage exceeds the threshold and is determined to be "on".
[0057] Calculate duration deviation: T_duration is the duration for which the voltage remains above the voltage threshold.
[0058] Calculate the average deviation of voltage amplitude: .
[0059] Formula for determining pass / fail: Set a tolerance threshold for each deviation item ( , , ).
[0060] The conditions for determining that the i-th channel is qualified must be met simultaneously: ; This represents the time deviation threshold corresponding to the i-th channel.
[0061] ; This represents the duration deviation threshold corresponding to the i-th channel.
[0062] . This represents the average voltage deviation threshold corresponding to the i-th channel.
[0063] In some embodiments, the conclusion of whether the entire board (the appliance control module under test 200) passes or fails the test is as follows: The condition for the entire board to pass the test is that all monitored load output channels (i = 1 to M) are deemed qualified. Board_Pass = (Channel_1_Pass) AND (Channel_2_Pass) AND ... AND (Channel_M_Pass). Otherwise, the entire board fails the test.
[0064] In some embodiments, the simulation model parameters are defined as follows: For each type of sensor, a unified data structure is used for modeling, such as range parameters, response time parameters, and nonlinear relationships. Range parameters include: minimum value, maximum value, and unit; response time parameters include: rise time constant and fall time constant; nonlinear relationships can be described by looking up tables or functions (such as polynomials or exponential curves) to describe the relationship between the sensor output and the physical quantity. For example, for a hot-tank NTC, the maximum value is 120℃, the minimum value is 0℃, the rise time constant (slope) is 5℃ / minute, and the fall time constant (slope) is 1℃ / minute. For example, a hot-tank NTC with a maximum of 120℃, a minimum of 0℃, and a rise time constant of 30℃ / second; default fault values include, for example, a dry-burning fault is heating to 104℃. The test processing module 10 defines a set of scenario scripts or curve tables for each typical operating condition.
[0065] In some embodiments, the test processing module 10 can test the appliance control module 200 under test in the following scenarios: initial water filling scenario, continuous heating scenario, water shortage scenario, power-on flushing scenario, backflow scenario, water production timeout scenario, freezing scenario, cooling scenario, and water production protection scenario. The test processing module 10 is configured to send the corresponding signal simulation curve parameters to the signal simulation module 20 according to the current test scenario among the initial water filling scenario, continuous heating scenario, water shortage scenario, power-on flushing scenario, backflow scenario, water production timeout scenario, freezing scenario, cooling scenario, and water production protection scenario, so that the signal simulation module 20 performs corresponding signal simulation, obtains the target simulated signal, and sends it to the appliance control module 200 under test.
[0066] In some embodiments, the signal simulation curve parameters corresponding to the initial water filling scenario are: sensor parameters and switch signals involved in the process of the water pump turning on after power-on, the flow rate gradually increasing from 0 to the rated value, the water level linearly rising from a first position to a second position, and the water pump turning off after reaching the second position. For example, in the initial water filling scenario of a water purifier: after power-on, the water pump turns on, the flow rate gradually increases from 0 to the rated value of 2L, the water level linearly rises from a low position to a high position, and the water pump turns off after reaching the high position.
[0067] In some embodiments, the signal simulation curve parameters corresponding to the continuous heating scenario are as follows: After the heating switch is turned on, if the temperature of the hot tank is detected to be lower than the heating start point, heating is started. The temperature rises according to the set value at a preset slope to the first set temperature. At the same time, the heating element is detected to be turned off and held for a first preset time. Then, the temperature decreases according to the set slope to the heat preservation point, and the heating element is turned on again for heating. The sensor parameters and switch signals involved in the process of the temperature rising according to the preset slope are as follows: Continuous heating scenario: For example, if the water dispenser heating switch is turned on and the temperature of the hot tank is detected to be lower than the heating start point of 77°C, heating is started. The temperature rises according to the set value at a certain slope to the set temperature of 93°C. At the same time, the heating element is detected to be turned off and held for a certain time. Then, the temperature decreases according to the set slope to the heat preservation point of 77°C, and the heating element is turned on again for heating. The temperature rises according to a certain slope, and this continuous heating-heat preservation-cooling-heating cycle is repeated.
[0068] In some embodiments, the signal simulation curve parameters corresponding to the water shortage scenario are as follows: When the water tank is full and waterproofing is performed, the outlet valve is opened, the flow rate is calculated, and when the flow rate reaches the minimum water shortage level, water discharge stops. After the water pump is turned on, if there is no increase in flow rate after a second preset time, the water shortage state is entered. The sensor parameters and switch signals involved in this process are as follows: Water shortage scenario: When the water tank is full (2L) and waterproofing is performed, the outlet valve is opened, the flow rate is calculated, and when the flow rate reaches the minimum water shortage level, water discharge stops. After the water pump is turned on, if there is no increase in flow rate after a certain period, the water shortage state is entered.
[0069] In some embodiments, the signal simulation curve parameters corresponding to the power-on flushing scenario are: sensor parameters and switching signals involved in the process of remaining still for a third preset time after power-on, opening the booster pump inlet valve for a fourth preset time after the third preset time, and then closing it. Power-on flushing scenario: remaining still for 5 seconds after power-on, opening the booster pump inlet valve for 20 seconds after 5 seconds, and then closing it.
[0070] In some embodiments, the signal simulation curve parameters corresponding to the recirculation scenario are: sensor parameters and switching signals involved in the process of accumulating water production for a fifth preset time or waiting for a sixth preset time after water production, turning on the booster pump, opening the inlet valve, opening the recirculation valve for a seventh preset time, and then turning it off. Recirculation scenario: Accumulating water production for 10 minutes or waiting for 24 hours after water production, turning on the booster pump, opening the inlet valve, opening the recirculation valve for 90 seconds, and then turning it off.
[0071] In some embodiments, the signal simulation curve parameters corresponding to the water production timeout scenario are: sensor parameters and switch signals involved in the process of shutting down all loads and stopping water production when the continuous water production time exceeds the eighth preset duration. Water production timeout scenario: continuous water production time exceeds 5 minutes, and water production is stopped when all loads are shut down.
[0072] In some embodiments, the signal simulation curve parameters corresponding to the icing scenario are as follows: In the ice-making state, if the evaporator's temperature drop is greater than or equal to the first preset temperature, and the required time is less than the ninth preset duration, an ice-removal anomaly is determined, and the system enters the active ice-melting state. It waits for the corresponding ice-melting time in the current environment before resuming. If active ice-melting fails more than n times consecutively, the system enters the natural ice-melting state. It exits when the waiting time is greater than the tenth preset duration. If the system enters the icing fault state more than n times consecutively, the sensor parameters and switch signals involved in the process of shutting down the refrigeration and ice-making related loads are considered. For example, in the icing scenario: In the ice-making state, if the evaporator temperature ΔT (the temperature drop value from 0℃) ≥ Y, and the required time is ≤ T, an ice-melting anomaly is recorded. The system enters the active ice-melting state, waits for the corresponding ice-melting time in the current environment before resuming. If active ice-melting fails more than 3 times consecutively, the system enters the natural ice-melting state, waits for the waiting time to be greater than n * 90 min (n is the number of failures) before exiting. If the system enters the icing fault state more than three times consecutively, the refrigeration and ice-making related loads (compressor, fan, circulating pump, ice-melting valve, etc.) are shut down. In some embodiments, several different scenarios can be set: for example, after two consecutive attempts, if the third main fusion is successful, the subsequent natural thawing logic should not be entered; if the second or third natural thawing occurs, the state should be set to success and the normal logic should be returned; multiple combinations of settings can be made.
[0073] In some embodiments, the signal simulation curve parameters corresponding to the cooling scenario are as follows: The cooling function is turned on; cooling is completed when the temperature is below the second preset temperature; cooling-related loads are turned off; after waiting for an eleventh preset time, the temperature is above the third preset temperature; cooling-related loads are turned on; and after a twelfth preset time, the inlet water temperature is detected. If the inlet water temperature is less than or equal to the fourth preset temperature, the cooling load is forcibly turned off; if the inlet water temperature is greater than or equal to the fifth preset temperature, the normal cooling logic is restored. The sensor parameters and switch signals involved in this process are as follows: The fifth preset temperature is greater than the fourth preset temperature; the third preset temperature is greater than the second preset temperature. Cooling scenario: The cooling function is turned on; the simulated NTC chilled water temperature is ≤5℃ (this temperature is set according to the model); cooling is completed; cooling-related loads are turned off; after waiting for a certain time, the simulated chilled water NTC temperature is greater than 10℃ (according to the model definition); cooling-related loads are turned on. Simultaneously, the inlet water temperature is detected every 30 minutes. If the inlet water temperature is less than or equal to 10℃ (according to the model definition), the software will forcibly turn off the cooling load; if the inlet water temperature is greater than or equal to 12℃, the normal cooling logic is restored.
[0074] In some embodiments, the signal simulation curve parameters corresponding to the water production protection scenario are: sensor parameters and switch signals involved in starting water production by opening the high-pressure switch when no water is produced, triggering protection during continuous water production, shutting down all loads, and automatically disconnecting the high-pressure switch before the protection time is reached, without entering the protection phase. Water production protection scenario: Simulating starting water production by opening the high-pressure switch when no water is produced, triggering protection during continuous water production (e.g., 5 minutes), and shutting down all loads. (Additionally, setting some conditions where the high-pressure switch automatically disconnects before the protection time (boundary time) is reached, without entering the protection phase).
[0075] The signal simulation module 20 calculates the target output value at each sampling moment based on the scene curve and the parameters of each sensor model. Through calculation, it outputs the corresponding voltage, frequency, or switching signal (target simulation signal) to the sensor and switching interface of the appliance control module 200 under test. For example, a flow sensor can simulate a flow meter by outputting a pulse signal at a preset frequency; a temperature sensor can simulate the output characteristics of a thermistor by using a variable resistor or voltage; a water level probe can simulate the on / off state of different probes by using a switch matrix; and a TDS probe can simulate water quality changes by changing the equivalent voltage signal.
[0076] In some embodiments, the test processing module 10 is configured to: determine the current test stage of the scenario test based on the output signal, and adjust the signal simulation curve parameters according to the current test stage.
[0077] In the embodiments provided in this application, the test processing module 10 adjusts the sensor simulation signal in real time according to the output signal to achieve closed-loop testing: the test processing module 10 detects the status / signal output of each load output terminal of the tested home appliance control module 200 in real time (such as water pump on, heating on, solenoid valve on, etc.), and the test processing module 10 determines the current operating condition stage based on the status / signal; closed-loop logic: when the water pump is detected to be on, the test processing module 10 sends a command to the flow simulation submodule to make the flow signal rise from 0 to the rated flow value within a certain period of time; when the heating component is detected to be on, the test processing module 10 sends a command to the temperature simulation submodule to make the temperature signal rise slowly according to the preset thermal inertia model; when the water inlet solenoid valve is detected to be closed, the test processing module 10 controls the water level simulation signal to stop rising or slowly fall; if the tested home appliance control module 20 closes the relevant actuator (load), the test processing module 10 can control the corresponding sensor signal to fall back according to the set model; through the above closed-loop logic, the test process does not require a real water circuit and heating system, and can approximately restore the actual machine's operating state, thereby completing complex operating condition tests in a laboratory environment.
[0078] The technical solution provided in this application can enhance the verification capability of multi-load output logic. For example, through multi-channel synchronous voltage acquisition and timing characteristic analysis, it can not only determine whether the output is "present / absent", but also accurately analyze: the on / off time of each load channel; the sequence and time interval of each channel's actions; and the duration of each state. Furthermore, based on the comparison of a reference signal template, it can quickly detect control logic anomalies and hardware faults. It also allows for the use of a unified multi-sensor model and scenario-based testing. For instance, by uniformly modeling sensors such as flow rate, temperature, water level, and TDS, different sensors only need to be configured with parameters in a unified format to be scheduled by the test processing module 10; testers can quickly generate complex test sequences by selecting typical operating conditions such as "initial water filling," "continuous heating," "water shortage state," and "overflow" on the test processing module 10; and scenario scripts can be reused between different test items, reducing test development costs. Furthermore, the closed-loop simulation more closely approximates real-world operation. For instance, this application adjusts the sensor simulation signals in real-time based on the control board output, creating a closed-loop testing process: for example, after the control board turns on the water pump, the simulated flow signal gradually increases; after the control board activates the heating component, the simulated temperature signal changes according to the set thermal inertia curve; and after the actuator is turned off, the relevant sensor signals gradually decrease. Therefore, the test results are closer to actual operating conditions and do not require complete reliance on the actual water circuit and heating / cooling system.
[0079] The test processing module 10 can perform visualized waveform detection and templated comparison of the multi-load output of the water purifier control board; and can perform unified modeling, scenario simulation and closed-loop control of multiple types of sensor inputs. This application significantly improves the automation, repeatability and operating condition coverage of the test, and reduces the dependence on the actual water circuit and heating / cooling environment.
[0080] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed.
[0081] If the integrated units in the other embodiments described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processing circuit component (processor) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0082] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A testing system for a home appliance electronic control system, characterized in that, The testing system includes: Test processing module; A signal simulation module, connected to the test processing module, is used to connect to the home appliance control module under test. The signal simulation module is configured to provide a target simulation signal corresponding to the signal simulation curve parameters sent by the test processing module to the home appliance control module under test, so that the home appliance control system in the home appliance control module under test is tested according to the target simulation signal simulation scenario. The acquisition module, connected to the test processing module, is used to connect to each load output terminal of the home appliance control module under test. The acquisition module is configured to: acquire the output signal of each load output terminal during the scenario test and feed the output signal back to the test processing module. The test processing module is configured to: compare the output signal with a reference signal template, determine whether the tested home appliance control module is abnormal based on the comparison result, and adjust the signal simulation curve parameters based on the output signal; wherein, the reference signal template is formed by the test processing module after conducting multiple tests on the target home appliance control module during historical testing, wherein the target home appliance control module has the same function as the tested home appliance control module, and the target home appliance control module is a qualified home appliance control module.
2. The testing system according to claim 1, characterized in that, The output signal is a voltage signal, the reference signal template is a reference voltage signal template, and the test processing module is further configured to: obtain a voltage waveform based on the voltage signal, and compare the voltage waveform with the reference voltage waveform in the reference voltage signal template.
3. The testing system according to claim 2, characterized in that, The test processing module is also configured to: The voltage waveform and the reference voltage waveform are aligned on the time axis. The first start time, the first voltage duration, and the first average voltage in the voltage waveform after time axis alignment are obtained, and the second start time, the second voltage duration, and the second average voltage in the reference voltage waveform after time axis alignment are obtained; the start time is the initial time when the voltage in the voltage waveform is higher than the threshold voltage, and the voltage duration is the duration during which the voltage in the voltage waveform remains higher than the threshold voltage; The starting time deviation is obtained based on the first starting time and the second starting time; The duration deviation is obtained based on the duration of the first voltage and the duration of the second voltage; The average voltage deviation is obtained based on the first average voltage and the second average voltage; The comparison result is obtained based on the starting time deviation, the duration deviation, and the average voltage deviation.
4. The testing system according to claim 2, characterized in that, The test processing module is also configured to: If the comparison results at all the load output terminals are qualified, the tested home appliance control module is determined to be normal. If the comparison result at any of the load output terminals is unqualified, the tested home appliance control module is determined to be abnormal.
5. The testing system according to claim 1, characterized in that, The test processing module is configured to: perform multiple tests on the target home appliance control module during the historical test process, obtain the historical output signals of each load output terminal in the multiple tests, and obtain the reference signal template corresponding to the load output terminal based on the historical output signals.
6. The testing system according to claim 5, characterized in that, The historical output signal is a historical voltage signal, and the test processing module is configured as follows: The historical voltage signals at the same time point are averaged to obtain a historical average voltage signal, and the historical average voltage signal is used as the voltage signal at the corresponding time in the reference signal template. Alternatively, median filtering can be applied to multiple historical voltage signals at the same time point to obtain a median voltage signal, and the median voltage signal can be used as the voltage signal at the corresponding time in the reference signal template.
7. The testing system according to any one of claims 1-6, characterized in that, The scenarios include: initial water filling scenario, continuous heating scenario, water shortage scenario, power-on flushing scenario, recirculation scenario, water production timeout scenario, freezing scenario, cooling scenario, and water production protection scenario; the test processing module is configured to send the corresponding signal simulation curve parameters according to the current test scenario among the initial water filling scenario, continuous heating scenario, water shortage scenario, power-on flushing scenario, recirculation scenario, water production timeout scenario, freezing scenario, cooling scenario, and water production protection scenario.
8. The testing system according to claim 7, characterized in that, The signal simulation curve parameters corresponding to the first water filling scenario are: after power-on, the water pump turns on and the flow rate gradually increases from 0 to the rated value, and the water level rises linearly from the first position to the second position. The sensor parameters and switch signals involved in the process of the water pump turning off after reaching the second position are as follows: The signal simulation curve parameters corresponding to the continuous heating scenario are as follows: after the heating switch is turned on, it is detected that the temperature of the hot tank is lower than the heating start point, heating is started, the temperature starts to rise to the first set temperature according to the set value and the preset slope. At the same time, it is detected that the heating tube is turned off and is maintained for the first preset time. Then, the temperature is reduced to the heat preservation point according to the set slope, and the heating tube is turned on again for heating. The sensor parameters and switch signals involved in the process of the temperature rising according to the preset slope are as follows: The signal simulation curve parameters corresponding to the water shortage state scenario are as follows: when the water tank is full, a waterproofing operation is performed, the water outlet valve is opened, the flow rate is calculated, and when the flow rate reaches the minimum water shortage level, the water outlet stops and the water pump is turned on. If there is no increase in flow rate after a second preset time, the water shortage state is entered. The sensor parameters and switch signals involved in the process are as follows: The signal simulation curve parameters corresponding to the power-on flushing scenario are: sensor parameters and switching signals involved in the process of remaining still for a third preset time after power-on, opening the booster pump inlet valve for a fourth preset time after the third preset time, and then closing it. The parameters of the signal simulation curve corresponding to the reflux scenario are: the sensor parameters and switching signals involved in the process of accumulating water production for the fifth preset time or the standby time after water production for the sixth preset time, and then closing the booster pump, the inlet valve, and the reflux valve after the seventh preset time. The parameters of the simulated signal curve corresponding to the water production timeout scenario are: sensor parameters and switch signals involved in the process of shutting down all loads and stopping water production when the continuous water production time exceeds the eighth preset duration.
9. The testing system according to claim 7, characterized in that, The signal simulation curve parameters corresponding to the icing scenario are as follows: In the ice-making state, if the temperature drop of the evaporator is greater than or equal to the first preset temperature and the required time is less than the ninth preset duration, then an ice-removal anomaly is determined, and the active ice-melting state is entered. After waiting for the ice-melting time corresponding to the current environment, the state will recover. If the active ice-melting fails to recover after more than n consecutive attempts, the state will enter the natural ice-melting state. If the waiting standby time is greater than the tenth preset duration, the state will exit. If the icing fault occurs after more than n consecutive attempts, the sensor parameters and switch signals involved in the process of shutting down the refrigeration and ice-making related loads will be closed. The signal simulation curve parameters corresponding to the cooling scenario are as follows: Cooling is completed when the temperature is below the second preset temperature; cooling-related loads are turned off; after waiting for an eleventh preset time, the temperature exceeds the third preset temperature; cooling-related loads are turned on; and after a twelfth preset time, the inlet water temperature is detected. If the inlet water temperature is less than or equal to the fourth preset temperature, the cooling load is forcibly turned off; if the inlet water temperature is greater than or equal to the fifth preset temperature, the normal cooling logic is restored. The sensor parameters and switch signals involved in this process are as follows: the fifth preset temperature is greater than the fourth preset temperature; the third preset temperature is greater than the second preset temperature. The signal simulation curve parameters corresponding to the water production protection scenario are: sensor parameters and switch signals involved in starting water production by opening the high-pressure switch when no water is produced, triggering protection during continuous water production, shutting off all loads, and automatically disconnecting the high-pressure switch before the protection time is reached, without entering the protection process.
10. The testing system according to any one of claims 1-6, characterized in that, The test processing module is configured to: determine the current test stage of the scenario test based on the output signal, and adjust the parameters of the signal simulation curve according to the current test stage.