Method and system based on washing machine electric control automatic test and readable medium

By establishing an automated test model for electronic control of washing machines, the automated test of upper computers and electronic control systems is realized, and the problems of low efficiency and insufficient accuracy of manual testing of electrical control of washing machines in the existing technology are solved, efficient and accurate test results are achieved, and cost is reduced.

CN120103814APending Publication Date: 2025-06-06SICHUAN HONGMEI INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510149897.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-11
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The manual testing of existing washing machines is inefficient in electronic control, cumbersome in processes, low fault tolerance, and unsecure results, which cannot meet the growing testing needs.

Method used

Using the method based on the automatic testing of the washing machine's electrical control, an automated test model is established by sorting out the main water inlet logic and control parameters of each washing stage of the washing machine, realizing the communication connection between the upper computer and the electronic control system, triggering the test command with one click, automatically determining the operating parameters, and generating a test report.

Benefits of technology

It has achieved improvements in testing efficiency, accuracy guarantee, cost optimization, and supports multi-protocol adaptation and abnormal scenario simulation, covering logical conflict detection in stages such as dehydration and rinsing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120103814A_ABST
    Figure CN120103814A_ABST
Patent Text Reader

Abstract

The invention discloses a washing machine electric control-based automatic test method, which comprises the following steps of S1, carding main water inlet logic and control parameters of each washing stage of a washing machine according to washing machine electric control protocol specifications, and establishing an automatic test model; s2, establishing communication connection with an electric control system of the washing machine through an upper computer, triggering a test instruction by one key, and sending program parameters to the electric control system; s3, the electric control system executes a complete washing program according to the received instruction, and reports operation parameters to the upper computer after the program is completed; and S4, the upper computer automatically judges the reported operation parameters based on the automatic test model, and generates a test report containing a test result and an abnormal mark.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automatic testing of electronic controls for washing machines, and in particular to a method, a system and a readable medium based on automatic testing of electronic controls for washing machines. Background Art

[0002] With the increase in production capacity of Meiling's washing machine business line and the upgrade of the company's strategy, the demand for washing machine electronic control testing has also increased dramatically. Based on the current manual testing of washing machine electronic control, there are problems such as low efficiency, cumbersome work flow, low fault tolerance and the inability to ensure the correctness of the results. Therefore, the demand for automated testing of washing machine electronic control has also emerged.

[0003] Patent No. CN202411255708.1 discloses an intelligent washing machine control system and control method, but this patent is only aimed at the operation of the actual washing program and has no intersection with the automatic testing method of the washing machine electronic control of this patent.

[0004] It is not difficult to see in the process of smart home that all industries are increasing speed and improving efficiency, and fully combining automated testing methods to improve the testing efficiency and accuracy of enterprises. In the current washing machine electronic control testing industry, there is no practical application of washing machine electronic control automated testing methods.

[0005] The current test method of artificial simulation of washing machine electronic control is that washing is a continuous washing process, which lasts for a long time. Therefore, the amount of data generated by the electronic control end is large (an average of 2k+ electronic control data logs). Therefore, the manual comparison test will have the following problems:

[0006] 1. Large amount of data and time-consuming.

[0007] 2. The test results may be biased.

[0008] 3. Testers execute the control specifications one by one, which requires high professionalism and experience of testers. Summary of the invention

[0009] The object of the present invention is to provide a method, system and readable medium based on automatic testing of electronic control of a washing machine, in order to solve the technical problems existing in the background technology.

[0010] In order to achieve the above object, the present invention adopts the following technical solutions:

[0011] A method for automatic testing of washing machine electronic control comprises the following steps:

[0012] S1. According to the electronic control protocol specification of the washing machine, sort out the main water inlet logic and control parameters of each washing stage of the washing machine, and establish an automated test model;

[0013] S2. Establish a communication connection with the washing machine electronic control system through the host computer, trigger the test command with one key, and send program parameters to the electronic control system;

[0014] S3. The electronic control system executes the complete washing program according to the received instructions, and reports the operating parameters to the host computer after the program is completed;

[0015] S4. The host computer automatically determines the reported operating parameters based on the automated test model and generates a test report including test results and abnormal marks.

[0016] The automated test model in step S1 includes the generation of the following configuration files:

[0017] Automated test cases, designed based on protocol rules for different program stages of the washing machine;

[0018] Program parameter configuration, defining the execution logic of each washing stage;

[0019] Control parameter configuration, including water level meter, water flow meter and anomaly detection threshold;

[0020] Communication protocol configuration standardizes the data exchange format between the host computer and the electronic control system.

[0021] The automatic determination in step S4 includes:

[0022] Compare the logical consistency between the operating parameters reported by the electronic control and the protocol specifications;

[0023] Check whether the main water inlet timing, water level reaching standard status, and motor action conform to preset rules;

[0024] If a parameter abnormality is detected, the abnormal location and specific cause will be marked in the test report.

[0025] The host computer supports importing external electronic control data tables for testing, including:

[0026] Select the electronic control data corresponding to a specific washing mode;

[0027] Trigger data import and test process with one click through interface interaction;

[0028] Generates a test report showing the global compliance of the main inlet logic.

[0029] The test report includes the following contents:

[0030] Determination results of each time sequence in the main water inlet stage;

[0031] The location line number and detailed description of the abnormal parameter;

[0032] Compliance analysis of water replenishment operations, motor start and stop, and water level detection.

[0033] This embodiment also provides a washing machine electronic control automatic testing system, including:

[0034] Protocol parsing module, used to parse the washing machine electronic control protocol specification and generate an automated test model;

[0035] Communication control module, which enables the host computer and the electronic control system to issue commands and receive parameters;

[0036] A data determination module performs logic verification on the electronic control reported parameters based on the model;

[0037] The report generation module outputs a visual report containing test results and exception details.

[0038] In some embodiments, the system further comprises an abnormality simulation module for:

[0039] Manually modify the parameters in the electronic control data table to simulate abnormal scenarios;

[0040] After triggering the abnormal test, verify the host computer's ability to detect abnormal logic;

[0041] Clearly mark the modification location and expected reasons for failure in the test report.

[0042] In some embodiments, the communication control module supports the following functions:

[0043] Connect with the electronic control system through serial port or wireless communication protocol;

[0044] Real-time monitoring of the execution status of the electronic control program;

[0045] Automatically capture a complete log of operating parameters after a wash cycle is completed.

[0046] This embodiment also provides a computer-readable storage medium storing a computer program, wherein the computer program implements the steps of any one of the methods when executed by a processor.

[0047] The beneficial effects that may be brought about by the method for automatic testing of washing machine electronic control disclosed in this application include but are not limited to:

[0048] Improved efficiency: One-click testing can complete data determination within 2 seconds, shortening the test cycle.

[0049] Accuracy guarantee: Automated verification eliminates human oversight and accurately locates abnormal parameters.

[0050] Cost optimization: reduce manual repetitive operations and reduce the risk of subsequent maintenance.

[0051] Strong scalability: supports multi-protocol adaptation and abnormal scenario simulation, covering logical conflict detection in stages such as dehydration and rinsing. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A water level frequency diagram according to an embodiment of the present invention;

[0053] Figure 2 It is a frequency diagram of water level of each program in one embodiment of the present invention;

[0054] Figure 3 A water flow diagram of an embodiment of the present invention;

[0055] Figure 4 It is a water flow data diagram of each program of an embodiment of the present invention;

[0056] Figure 5 This is an electric control data table diagram of an embodiment of the present invention;

[0057] Figure 6 This is an example diagram of a washing machine electronic control automation test model according to an embodiment of the present invention;

[0058] Figure 7 This is an interactive diagram of a PC client system interface for an automatic test of electronic control of a washing machine according to an embodiment of the present invention;

[0059] Figure 8 This is an automated test report diagram of an embodiment of the present invention;

[0060] Fig. 9 This is a flowchart of the automatic determination of the host computer according to an embodiment of the present invention;

[0061] Fig.10 This is a diagram of a washing machine electronic control automation test framework according to an embodiment of the present invention. DETAILED DESCRIPTION

[0062] In order to make the purpose, technical solution and advantages of the present application more clear, the present application is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

[0063] On the contrary, the present application covers any substitution, modification, equivalent method and scheme made on the essence and scope of the present application as defined by the claims. Further, in order to make the public have a better understanding of the present application, some specific details are described in detail in the detailed description of the present application below. Those skilled in the art can fully understand the present application without the description of these details.

[0064] A method for automatic testing of washing machine electronic control involved in the embodiment of the present application is described in detail below. It should be noted that the following embodiments are only used to explain the present application and do not constitute a limitation on the present application.

[0065] like Figure 1-10 As shown, a method based on automatic testing of washing machine electronic control comprises the following steps:

[0066] A method, system and readable medium based on automatic testing of washing machine electronic control, with the specific steps as follows:

[0067] First of all, it is necessary to sort out the electronic control protocol specifications of the washing machine that need to be automatically tested. For example, the washing stage of the washing machine includes water inlet, washing, drainage, dehydration (pre-dehydration, high dehydration), rinsing, shaking and other conventional washing machine stages, as well as the logic of water level meter, water flow meter, etc. The following will take how the host computer determines whether the main water inlet logic in the electronic control parameter table data complies with the protocol as an example to explain the logic of automatic judgment.

[0068] 1. Check the electronic control specification of the washing machine and sort out the requirements for the mixed washing-main water inlet of the washing machine:

[0069] A. Mixed program logic table: wash water inlet, wash, drain, pre-spin, high-speed spin, rinse water inlet, rinse, drain, pre-spin, high-speed spin, shake.

[0070] B. Water inlet control:

[0071] 1) Washing water inlet: The main water inlet is turned on, and the main water inlet is turned on for 15 seconds, turned off for 10 seconds, turned on for 15 seconds, and turned off for 10 seconds. After that, the main water inlet is kept on for a long time. At the same time, the motor stops working. After the water inlet reaches the set water level, wash for 1 minute according to the set water flow. Replenish water in time within 1 minute. After 1 minute, the motor reverses at the speed (80RPM) for 60 seconds, and then checks the water level after being stationary for 6 seconds. If the water level does not reach the set water level, the main water inlet is turned on for replenishment. The motor stops working during replenishment. After replenishment reaches the set water level, the water inlet stops. After replenishment is completed, the motor runs at the set washing water flow and detects the water level. If the water level does not reach the set water level, the main water inlet is turned on for replenishment. The motor stops working during replenishment. After replenishment reaches the set water level, the water inlet stops. After replenishment is completed, the motor runs at the set washing water flow;

[0072] 2) Rinse water inlet: The main water inlet is turned on and the motor stops at the same time. After the water inlet reaches the set water level, the motor runs forward and reverse with 9# water flow. After 45 seconds, wait for 6 seconds to check the water level. If the water level does not reach the set water level, the main water inlet is turned on to replenish water. The motor stops when replenishing water. After the water is replenished to the set water level, the water inlet stops and the motor runs according to the set rinse water flow.

[0073] 3) During the last rinse, turn on the softener water inlet first; the softener water inlet timing: 15 seconds ON - 15 seconds OFF - 15 seconds ON - 15 seconds OFF - 15 seconds ON - 3 seconds OFF - 8 seconds ON - 3 seconds OFF; while the softener is ON, the main water inlet (detergent box) is OFF, and while the softener is OFF, the main water inlet is ON; then continue to let water in to the set water level in the same way as the main water inlet and softener are let in simultaneously, and the motor stops.

[0074] C. Washing control:

[0075] 1) After reaching the set water level, the machine will work with the set water flow. For the water flow number and the washing water flow of each program, please refer to the water flow table;

[0076] 2) During the whole washing process, the water level is detected in real time; if the water level is lower than the set water level by 200hz during the washing process, the motor stops running, the main water inlet is opened, and the water is replenished to the set water level before the washing process continues. When replenishing water, the time is paused. The heating tube is not affected by the replenishment of water, unless the water level is lower than the drainage level and the heating tube needs to be turned off.

[0077] D. Water level table: (Note: only part of the sample is taken, focus on the mixed mode), see Figure 1 and Figure 2 ;

[0078] E. Water flow table: see Figure 3 ;

[0079] See the water flow table for each program. Figure 4 ;

[0080] The automated test model is sorted out according to the contents of the above-mentioned hybrid mode main water inlet related protocols. The basic files include: automated test cases, program parameter configuration, control parameter configuration, and communication protocol configuration.

[0081] In order to verify the accuracy of the host computer's automatic judgment, the function of automatically judging the importable data is opened. Open the host computer client and select the operation mode of the electric control data, such as the operation of the mixed mode. After the electric control data is imported into the host computer interface, select the mixed mode for the test case. Click one-click test. You can run the global logic of the main water inlet of the imported electric control data to see if it meets the requirements.

[0082] The host computer automatically determines the imported data use cases and generates a test report document in about 2 seconds. The test report contains the overall test results of the main water inlet test items. If the test fails, the location and cause of the abnormal data will be displayed.

[0083] Verify the robustness of the host computer in detail according to the above-mentioned electronic control protocol. It is also necessary to verify the detection capability of the system in the event of data anomalies in a targeted manner. The parameters of the main water inlet in the electronic control data table can be manually modified to parameters that do not comply with the protocol, and then the host computer is tested with one key. The expected result of the exported test report is that the test fails, and the failure reason and the abnormal parameter location are marked. For example: in mixed mode, the protocol for the second half of the last rinse water inlet is "the main water inlet and softener water inlet are continued to enter the set water level at the same time, and the motor stops moving." This protocol description locates rows 1134-1172 of the electronic control parameter table. The main water inlet parameter in this interval is 1 (representing water inlet), and any row of parameters can be modified to 0 (representing no water inlet). Save the data table and import it into the host computer for a one-key test. The test report exports that the test fails and marks the failed location.

[0084] It is not difficult to see from the above test examples that this method can be used to fully verify whether the logic of the main water inlet in different washing stages complies with the electronic control protocol specifications, thereby verifying the host computer's ability to detect abnormal logic. The following examples show some abnormalities that do not comply with the electronic control protocol (not fully listed, here are just examples for illustration):

[0085] 1) During the washing water inlet stage, the water inlet stops before reaching the target water level. Expected result: The test fails. It is detected that the water inlet stops before reaching the target water level.

[0086] 2) Rinse and replenishment phase: After the main rinsing water inlet phase, if the detected water level before formal washing does not meet the target water level, a water replenishment operation will occur. During the water replenishment phase, water inlet will be stopped if the target water level is not reached. Expected result: Test failed. Water inlet was stopped if the target water level was not reached.

[0087] 3) Dehydration stage: The main water inlet is open. Expected result: The test fails. The main water inlet is open during the dehydration stage.

[0088] 4) Shake-off stage: Main water inlet opens. Expected result: Test fails. Main water inlet opens during shake-off stage.

[0089] 8. After the accuracy and robustness of the host computer software are verified. In the process of mass production, it is completely possible to realize that the host computer issues instructions to the electronic control execution program, and after the electronic control completes the washing program, all parameters of the electronic control operation are automatically reported to the host computer software, and the host computer software automatically judges the test data. It is no longer necessary to manually import electronic control data to verify the robustness and accuracy of the host computer software for abnormal logic.

[0090] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method based on automatic testing of washing machine electronic control, characterized in that: The following steps are involved: S1. According to the electronic control protocol specification of the washing machine, sort out the main water inlet logic and control parameters of each washing stage of the washing machine, and establish an automated test model; S2. Establish a communication connection with the washing machine electronic control system through the host computer, trigger the test command with one key, and send program parameters to the electronic control system; S3. The electronic control system executes the complete washing program according to the received instructions, and reports the operating parameters to the host computer after the program is completed; S4. The host computer automatically determines the reported operating parameters based on the automated test model and generates a test report including test results and abnormal marks.

2. A method based on automatic testing of washing machine electronic control according to claim 1, characterized in that: The automated test model in step S1 includes the generation of the following configuration files: Automated test cases, designed based on protocol rules for different program stages of the washing machine; Program parameter configuration, defining the execution logic of each washing stage; Control parameter configuration, including water level meter, water flow meter and anomaly detection threshold; Communication protocol configuration standardizes the data exchange format between the host computer and the electronic control system.

3. The method for automatic testing of washing machine electronic control according to claim 1, characterized in that: The automatic determination in step S4 includes: Compare the logical consistency between the operating parameters reported by the electronic control and the protocol specifications; Check whether the main water inlet timing, water level reaching standard status, and motor action conform to preset rules; If a parameter abnormality is detected, the abnormal location and specific cause will be marked in the test report.

4. A method based on automatic testing of washing machine electronic control according to claim 1, characterized in that: The host computer supports importing external electronic control data tables for testing, including: Select the electronic control data corresponding to a specific washing mode; Trigger data import and test process with one click through interface interaction; Generates a test report showing the global compliance of the main inlet logic.

5. The method for automatic testing of washing machine electronic control according to claim 1, characterized in that: The test report includes the following contents: Determination results of each time sequence in the main water inlet stage; The location line number and detailed description of the abnormal parameter; Compliance analysis of water replenishment operations, motor start and stop, and water level detection.

6. A washing machine electronic control automatic testing system, characterized in that: include: Protocol parsing module, used to parse the washing machine electronic control protocol specification and generate an automated test model; Communication control module, which enables the host computer and the electronic control system to issue commands and receive parameters; A data determination module performs logic verification on the electronic control reported parameters based on the model; The report generation module outputs a visual report containing test results and exception details.

7. The system according to claim 6, characterized in that The system also includes an abnormality simulation module, which is used to: Manually modify the parameters in the electronic control data table to simulate abnormal scenarios; After triggering the abnormal test, verify the host computer's ability to detect abnormal logic; Clearly mark the modification location and expected reasons for failure in the test report.

8. The system according to claim 6, characterized in that The communication control module supports the following functions: Connect with the electronic control system through serial port or wireless communication protocol; Real-time monitoring of the execution status of the electronic control program; Automatically capture a complete log of operating parameters after a wash cycle is completed.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Intelligent washing machine control system and control method

    CN119041153A