Washing machine electric control test method and system based on parameter simulation and data driving

Through serial communication and parameter configuration table, the electronic control operation parameters are simulated, control logic and fault simulation test cases are generated, which solves the problem of flexibility and insufficient coverage of the electronic control test method of washing machines, and achieves efficient test coverage and fault detection.

CN120491608APending Publication Date: 2025-08-15SICHUAN HONGMEI INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510752026.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-06
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, the electronic control testing method of washing machines is not flexible enough, and it is difficult to adapt to the diverse parameter configuration requirements of different models of washing machines. The test case coverage is insufficient, and it is impossible to effectively simulate complex operating conditions, resulting in limited system compatibility and fault detection capabilities.

Method used

Through serial communication, the periodic full state query of the washing machine electronic control system and the host computer software system is realized, the parameter configuration table is imported to simulate the electronic control operation parameters, the control logic and fault simulation test cases are generated, and the results are determined are determined in combination with automated test tools to execute and determine the results, and the test report is generated.

Benefits of technology

It improves the flexibility and coverage of testing, enhances the adaptability to different models and functional modules, improves the testing efficiency and reliability, reduces manual intervention, and ensures the functional reliability and stability of the washing machine control system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120491608A_ABST
    Figure CN120491608A_ABST
Patent Text Reader

Abstract

The invention provides a washing machine electric control test method and system based on parameter simulation and data driving. The method comprises the steps that a washing machine electric control system communicates with an upper computer software system through a serial port; importing the parameter configuration table in the database into an upper computer software system so as to simulate electric control operation parameters through the parameter configuration table to communicate with an electric control system of the washing machine; the parameter configuration table comprises a communication protocol table, a program parameter table and a model table; generating a control logic test case based on the control specification of the washing machine; generating a multi-scene combined fault simulation test case based on the washing machine fault triggering condition; the upper computer software system issues a setting command to the washing machine electric control system based on the control logic test case and / or the fault simulation test case; the washing machine electric control system reports and stores a test result to an upper computer software system; and performing automatic result judgment on the test result to generate a test report, thereby solving the problem that the washing machine electric control test is insufficient in flexibility and coverage rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of washing machine testing, and in particular to a washing machine electronic control testing method and system based on parameter simulation and data drive. Background Art

[0002] Household washing machines integrate a variety of complex functional modules, including diverse wash programs, intelligent control algorithms, and multi-sensor interaction systems. The reliable operation of these functions is crucial to ensuring washing machine performance, user experience, and safety. Failure to fully and effectively test and verify the relevant electronic control systems can lead to serious consequences such as incorrect washing programs, abnormally increased operating noise, water leaks, or circuit failures. Therefore, implementing efficient and comprehensive automated testing of washing machine electronic control systems (ECUs) is critical to ensuring product quality.

[0003] In the related art, there are automated testing methods for washing machine electronic control systems. These methods are usually based on multiple preset fixed washing programs and their corresponding operating parameters, and the system automatically executes these preset programs to complete the test.

[0004] However, the automated testing methods in related technologies have significant shortcomings. On the one hand, their test logic and parameter configuration are rigid, making it difficult to adapt to the diverse parameter configuration requirements of different models of washing machines, and it is also difficult to effectively simulate complex actual operating conditions, resulting in insufficient system flexibility and limited compatibility. On the other hand, this method lacks a data-driven mechanism based on specifications, and is unable to systematically extract the boundaries and constraints of input parameters and conduct in-depth combinatorial test design, resulting in insufficient test case coverage and difficulty in effectively discovering potential defects in edge scenarios. Summary of the Invention

[0005] The present application provides a washing machine electronic control testing method and system based on parameter simulation and data driving to solve the problems of insufficient flexibility and coverage of washing machine electronic control testing.

[0006] In a first aspect, the present application provides a washing machine electronic control testing method based on parameter simulation and data driving, the method comprising:

[0007] The washing machine electronic control system communicates with the host computer software system via a serial port, and the serial port communication is a communication for periodic full status query and status return;

[0008] Importing the parameter configuration table in the database into the host computer software system to simulate the electronic control operating parameters through the parameter configuration table and communicate with the electronic control system of the washing machine; wherein the parameter configuration table includes a communication protocol table, a program parameter table and a machine model table;

[0009] Generate control logic test cases based on the washing machine's control specification;

[0010] Generate fault simulation test cases with multiple scenarios based on the fault trigger conditions of the washing machine;

[0011] The host computer software system issues a setting command to the washing machine electronic control system based on the control logic test case and / or the fault simulation test case to automatically execute the control logic test case and / or the fault simulation test case and generate a test result;

[0012] The washing machine electronic control system reports the test result and saves it to the host computer software system;

[0013] Automatically determine the test results to generate a test report.

[0014] Through periodic serial port communication between the washing machine's electronic control system and the host computer software system, combined with the imported parameter configuration table to simulate the electronic control operating parameters, control logic test cases and fault simulation test cases with multiple scenario combinations can be generated based on the washing machine control specification and fault trigger conditions. The host computer software system automatically executes the test and saves the results. Finally, the result is automatically judged and a test report is generated, thereby improving the flexibility and coverage of the test, improving the test efficiency, and reducing the need for manual intervention to solve the problem of insufficient flexibility and coverage of the washing machine's electronic control test.

[0015] Optionally, the serial port communication adopts the UART protocol to perform full status query and status return at a frequency of once per second.

[0016] Using the UART protocol and executing full status queries and status returns at a frequency of once per second can improve the real-time and stability of communication, while reducing the risk of data delays, making the status synchronization between the washing machine electronic control system and the host computer software system more reliable.

[0017] Optionally, the machine model table includes a weighing configuration table, a dehydration parameter table, a correction times table, a drying control table, a water flow table, a water level table and a fault parameter table.

[0018] The model table integrates a weighing configuration table, a dehydration parameter table, a correction frequency table, a drying control table, a water flow table, a water level table, and a fault parameter table. By centrally managing the parameter configurations of different operating modes of the washing machine, it can improve the coverage of test data and enhance the diversity of test cases, thereby optimizing the adaptability to different models and functional modules and reducing the workload of manual configuration.

[0019] Optionally, the steps of generating control logic test cases based on the control specification of the washing machine include:

[0020] Extract all input parameters, allowable ranges and constraints from the washing machine control specification;

[0021] Performing equivalence class division according to the input parameters, the allowable range of the input parameters, and the constraint conditions to generate a first category of test cases;

[0022] Performing boundary value analysis based on the input parameters, the allowable range of the input parameters, and the constraint conditions to generate a second type of test case;

[0023] Performing parameter combination testing on the first type of test cases and the second type of test cases to obtain parameter combination test cases;

[0024] A time / exception boundary test is performed on the parameter combination test case to obtain a control logic test case.

[0025] When generating control logic test cases based on the washing machine control specification, the input parameters and their allowable ranges and constraints are extracted, and two types of basic test cases are generated using equivalence class partitioning and boundary value analysis. These are then further expanded through parameter combination testing and time / anomaly boundary testing. This can improve the completeness and logical coverage of the test cases, thereby more effectively verifying the functional reliability and stability of the washing machine control system.

[0026] Optionally, the host computer software system issues a setting command to the washing machine electronic control system based on the control logic test case to automatically execute the control logic test case and generate a test result, including:

[0027] The control logic test cases are executed using an automated testing tool, approaching exhaustive testing with a controllable number of control logic test cases and covering all boundary values to ensure that the washing machine control logic meets the control specification requirements.

[0028] By executing control logic test cases through automated testing tools, near-exhaustive testing can be achieved within a reasonable number of test cases, covering all boundary conditions. This helps verify the conformance of the washing machine control logic with the control specification requirements, thereby improving the comprehensiveness and accuracy of the test while reducing possible omissions that may occur in manual testing.

[0029] Optionally, the steps of generating a multi-scenario combination fault simulation test case based on the washing machine fault trigger condition include:

[0030] Based on the failure mode analysis of the washing machine electronic control system, a multi-fault trigger condition model is established. The fault trigger conditions include hardware failure, sensor signal abnormality and control parameter error.

[0031] Adopt fault injection technology to generate test inputs that trigger faults by dynamically modifying control system parameters or simulating abnormal sensor signals;

[0032] Based on the fault trigger model, different fault trigger conditions are automatically combined to construct fault simulation test cases with multiple scenario combinations.

[0033] Based on the failure mode analysis of the washing machine's electronic control system, a multi-fault trigger condition model is established. The control parameters are dynamically modified or abnormal signals are simulated to generate test inputs through fault injection technology. Different fault conditions are automatically combined to construct multi-scenario test cases. This can expand the coverage of fault simulation and enhance the detection capabilities of complex situations such as hardware failures, sensor anomalies, and parameter errors, thereby improving the fault tolerance and reliability verification effect of the washing machine control system.

[0034] Optionally, the step of the host computer software system sending a setting command to the washing machine electronic control system based on the fault simulation test case to automatically execute the fault simulation test case and generate a test result includes:

[0035] The parameters are dynamically adjusted and the fault simulation test cases are executed through the automated testing framework to verify the fault tolerance and recovery capabilities of the washing machine control system under fault scenarios.

[0036] By dynamically adjusting parameters and executing fault simulation test cases through the automated testing framework, the fault tolerance mechanism and recovery function of the washing machine control system under various fault scenarios can be verified, thereby enhancing the detection effect of the system's abnormal handling capabilities and improving the adaptability assessment to complex fault conditions.

[0037] Optionally, the step of automatically determining the test results to generate a test report includes:

[0038] Comparing the test results with preset rules or expected results;

[0039] Identify test results with data anomalies or deviations from the expected range, and mark the corresponding control logic test cases and / or the fault simulation test cases as passed or failed to generate a test report.

[0040] Automatically comparing test results with preset rules or expected results, identifying and marking test cases with data anomalies or deviations from the expected range, can improve the objectivity and consistency of test result judgments, thereby optimizing the traceability of the test process and reducing errors that may be introduced by manual interpretation.

[0041] A second aspect of the present application provides a washing machine electronic control test system based on parameter simulation and data driving, which is applied to the washing machine electronic control test method based on parameter simulation and data driving described in the first aspect, wherein the washing machine electronic control test system comprises: a washing machine electronic control system and a host computer software system;

[0042] The host computer software system includes: a communication module, a parameter configuration module, a control logic test module, a fault test module and a result analysis module;

[0043] The communication module is used to establish periodic full status query and status return communication with the host computer software system through the serial port;

[0044] The parameter configuration module is used to store a parameter configuration table and simulate electronic control operating parameters through the parameter configuration table to communicate with the electronic control system of the washing machine;

[0045] The control logic test module is used to generate a control logic test case based on the control specification of the washing machine, and issue a setting command to the electronic control system of the washing machine based on the control logic test case;

[0046] The fault testing module is used to generate a fault simulation test case with multiple scenarios based on the fault triggering conditions of the washing machine, and to issue a setting command to the electronic control system of the washing machine based on the fault simulation test case;

[0047] The result analysis module is used to receive and save the test results reported by the washing machine electronic control system, and to automatically determine the test results to generate a test report.

[0048] The washing machine electronic control test system realizes periodic state interaction through the communication module, uses the parameter configuration module to store and simulate operating parameters, and uses the control logic test module and the fault test module to generate and execute functional tests and multi-scenario fault tests respectively. Finally, the result analysis module automatically determines the test results and generates a report. It can improve the automation level of the test process and enhance the verification effect of the washing machine control logic and fault handling capabilities. At the same time, it can reduce the need for manual operation, improve test efficiency and reliability, and solve the problems of insufficient flexibility and coverage of washing machine electronic control testing.

[0049] Optionally, the washing machine electronic control system includes an electronic control module and a display panel;

[0050] The display panel is used to receive the electronic control operation parameters or test instructions of the host computer software system and send them to the electronic control module, and report the test results to the host computer software system.

[0051] The washing machine electronic control system receives and forwards the operating parameters or test instructions of the host computer software system to the electronic control module through the display panel, and at the same time feeds back the test results to the host computer software system, which can realize two-way transmission of test instructions and results, optimize the real-time performance of data interaction during the test process, and simplify the communication architecture between systems, thereby improving the overall coordination of the test process.

[0052] As can be seen from the above technical solution, the present application provides a washing machine electronic control testing method and system based on parameter simulation and data driving. The method includes: the washing machine electronic control system communicates with the host computer software system via a serial port, wherein the serial port communication is a periodic full-state query and state return communication; importing a parameter configuration table in a database into the host computer software system to simulate electronic control operating parameters and communicate with the washing machine electronic control system through the parameter configuration table; wherein the parameter configuration table includes a communication protocol table, a program parameter table, and a machine model table; generating control logic test cases based on the washing machine control specification; generating fault simulation test cases with multiple scenario combinations based on the washing machine fault trigger conditions; the host computer software system issues a setting command to the washing machine electronic control system based on the control logic test cases and / or the fault simulation test cases to automatically execute the control logic test cases and / or the fault simulation test cases and generate test results; the washing machine electronic control system reports and saves the test results to the host computer software system; and automatically judging the test results to generate a test report. This solves the problem of insufficient flexibility and coverage of washing machine electronic control testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0054] Figure 1 A flow chart of a washing machine electronic control testing method based on parameter simulation and data driving provided in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of the structure of a washing machine electronic control test system based on parameter simulation and data drive provided in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of the structure of a parameter configuration table in a database in a washing machine electronic control test method based on parameter simulation and data-driven according to an embodiment of the present application;

[0057] Figure 4A schematic diagram of the flow of generating control logic test cases in the washing machine electronic control test method based on parameter simulation and data driving provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] The following embodiments are described in detail, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following embodiments are not intended to represent all possible implementations consistent with the present application. They are merely examples of systems and methods consistent with certain aspects of the present application.

[0059] To solve the problem of insufficient flexibility and coverage of washing machine electronic control test, see Figure 1-Figure 4 Some embodiments of the present application provide a washing machine electronic control testing method based on parameter simulation and data driving, the method comprising:

[0060] S100: The washing machine electronic control system communicates with the host computer software system through the serial port.

[0061] The serial port communication is a communication for periodic full status query and status return.

[0062] In some embodiments, the serial port communication uses the UART protocol to perform full status query and status return at a frequency of once per second.

[0063] It should be understood that UART (Universal Asynchronous Receiver / Transmitter) is a common serial communication protocol used for asynchronous data transmission between devices. The UART protocol queries and returns full status information once per second, helping to balance real-time communication with system load. This makes it suitable for controlling devices such as washing machines, which require moderate real-time performance and stable transmission.

[0064] Using the UART protocol and executing full status queries and status returns at a frequency of once per second can improve the real-time and stability of communication, while reducing the risk of data delays, making the status synchronization between the washing machine electronic control system and the host computer software system more reliable.

[0065] S200: Importing the parameter configuration table in the database into the upper computer software system, so as to simulate the electronic control operating parameters through the parameter configuration table and communicate with the electronic control system of the washing machine.

[0066] It should be understood that the configuration is done by first configuring the model, control logic, control parameters, etc., and then importing the data through the parameter configuration table during testing, so that each model has its own configuration. The parameter configuration table includes a communication protocol table, a program parameter table, and a model table.

[0067] In some embodiments, the machine model table includes a weighing configuration table, a dehydration parameter table, a correction times table, a drying control table, a water flow table, a water level table, and a fault parameter table.

[0068] The model table integrates a weighing configuration table, a dehydration parameter table, a correction frequency table, a drying control table, a water flow table, a water level table, and a fault parameter table. By centrally managing the parameter configurations of different operating modes of the washing machine, it can improve the coverage of test data and enhance the diversity of test cases, thereby optimizing the adaptability to different models and functional modules and reducing the workload of manual configuration.

[0069] S300: Generate control logic test cases based on the control specification of the washing machine.

[0070] In some embodiments, see Figure 4 ,The steps of generating control logic test cases based on the control specification of the washing machine include:

[0071] Extract all input parameters, allowable ranges and constraints from the washing machine control specification;

[0072] Performing equivalence class division according to the input parameters, the allowable range of the input parameters, and the constraint conditions to generate a first category of test cases;

[0073] Performing boundary value analysis based on the input parameters, the allowable range of the input parameters, and the constraint conditions to generate a second type of test case;

[0074] Performing parameter combination testing on the first type of test cases and the second type of test cases to obtain parameter combination test cases;

[0075] A time / exception boundary test is performed on the parameter combination test case to obtain a control logic test case.

[0076] When generating control logic test cases based on the washing machine control specification, the input parameters and their allowable ranges and constraints are extracted, and two types of basic test cases are generated using equivalence class partitioning and boundary value analysis. These are then further expanded through parameter combination testing and time / anomaly boundary testing. This can improve the completeness and logical coverage of the test cases, thereby more effectively verifying the functional reliability and stability of the washing machine control system.

[0077] S400: Generate a fault simulation test case of multiple scenario combinations based on the fault triggering conditions of the washing machine.

[0078] In some embodiments, the step of generating a fault simulation test case of multiple scenario combinations based on the washing machine fault trigger condition includes:

[0079] Based on the failure mode analysis of the washing machine electronic control system, a multi-fault trigger condition model is established. The fault trigger conditions include hardware failure, sensor signal abnormality and control parameter error.

[0080] Adopt fault injection technology to generate test inputs that trigger faults by dynamically modifying control system parameters or simulating abnormal sensor signals;

[0081] Based on the fault trigger model, different fault trigger conditions are automatically combined to construct fault simulation test cases with multiple scenario combinations.

[0082] It should be understood that fault injection techniques, which trigger faults by modifying control system parameters or simulating sensor signals, enable multi-condition fault design. Combining different fault trigger conditions to conduct multi-scenario testing, such as a motor overload in a high-temperature environment or a simultaneous water inlet valve failure at low water levels, requires an automated testing framework that supports dynamic parameter adjustment and automated execution of different test cases.

[0083] Based on the failure mode analysis of the washing machine's electronic control system, a multi-fault trigger condition model is established. The control parameters are dynamically modified or abnormal signals are simulated to generate test inputs through fault injection technology. Different fault conditions are automatically combined to construct multi-scenario test cases. This can expand the coverage of fault simulation and enhance the detection capabilities of complex situations such as hardware failures, sensor anomalies, and parameter errors, thereby improving the fault tolerance and reliability verification effect of the washing machine control system.

[0084] S500: The host computer software system sends a setting command to the washing machine electronic control system based on the control logic test case and / or the fault simulation test case to automatically execute the control logic test case and / or the fault simulation test case and generate a test result.

[0085] In some embodiments, the host computer software system issues a setting command to the washing machine electronic control system based on the control logic test case to automatically execute the control logic test case and generate a test result, including:

[0086] The control logic test cases are executed using an automated testing tool, approaching exhaustive testing with a controllable number of control logic test cases and covering all boundary values to ensure that the washing machine control logic meets the control specification requirements.

[0087] It should be understood that exhaustive testing should be conducted in conjunction with system analysis and structured testing methods while following the washing machine control specifications.

[0088] By executing control logic test cases through automated testing tools, near-exhaustive testing can be achieved within a reasonable number of test cases, covering all boundary conditions. This helps verify the conformance of the washing machine control logic with the control specification requirements, thereby improving the comprehensiveness and accuracy of the test while reducing possible omissions that may occur in manual testing.

[0089] In some embodiments, the host computer software system issues a setting command to the washing machine electronic control system based on the fault simulation test case to automatically execute the fault simulation test case and generate a test result, including:

[0090] The parameters are dynamically adjusted and the fault simulation test cases are executed through the automated testing framework to verify the fault tolerance and recovery capabilities of the washing machine control system under fault scenarios.

[0091] By dynamically adjusting parameters and executing fault simulation test cases through the automated testing framework, the fault tolerance mechanism and recovery function of the washing machine control system under various fault scenarios can be verified, thereby enhancing the detection effect of the system's abnormal handling capabilities and improving the adaptability assessment to complex fault conditions.

[0092] S600: The washing machine electronic control system reports the test result and saves it to the host computer software system.

[0093] It should be understood that the test results include device information, test overview, use case details, and test conclusions.

[0094] S700: Perform automatic result determination on the test result to generate a test report.

[0095] In some embodiments, the step of automatically determining the test results to generate a test report includes:

[0096] Comparing the test results with preset rules or expected results;

[0097] Identify test results with data anomalies or deviations from the expected range, and mark the corresponding control logic test cases and / or the fault simulation test cases as passed or failed to generate a test report.

[0098] It should be understood that the test report includes the result test report and detailed information of the corresponding model in the parameter configuration table.

[0099] Automatically comparing test results with preset rules or expected results, identifying and marking test cases with data anomalies or deviations from the expected range, can improve the objectivity and consistency of test result judgments, thereby optimizing the traceability of the test process and reducing errors that may be introduced by manual interpretation.

[0100] Through periodic serial port communication between the washing machine's electronic control system and the host computer software system, combined with the imported parameter configuration table to simulate the electronic control operating parameters, control logic test cases and fault simulation test cases with multiple scenario combinations can be generated based on the washing machine control specification and fault trigger conditions. The host computer software system automatically executes the test and saves the results. Finally, the result is automatically judged and a test report is generated, thereby improving the flexibility and coverage of the test, improving the test efficiency, and reducing the need for manual intervention to solve the problem of insufficient flexibility and coverage of the washing machine's electronic control test.

[0101] See also Figure 2 Some embodiments of the present application further provide a washing machine electronic control test system based on parameter simulation and data driving, which is applied to the washing machine electronic control test method based on parameter simulation and data driving described in the above embodiments. The washing machine electronic control test system includes: a washing machine electronic control system and a host computer software system;

[0102] The host computer software system includes: a communication module, a parameter configuration module, a control logic test module, a fault test module and a result analysis module;

[0103] The communication module is used to establish periodic full status query and status return communication with the host computer software system through the serial port;

[0104] The parameter configuration module is used to store a parameter configuration table and simulate electronic control operating parameters through the parameter configuration table to communicate with the electronic control system of the washing machine;

[0105] The control logic test module is used to generate a control logic test case based on the control specification of the washing machine, and issue a setting command to the electronic control system of the washing machine based on the control logic test case;

[0106] The fault testing module is used to generate a fault simulation test case with multiple scenarios based on the fault triggering conditions of the washing machine, and to issue a setting command to the electronic control system of the washing machine based on the fault simulation test case;

[0107] The result analysis module is used to receive and save the test results reported by the washing machine electronic control system, and to automatically determine the test results to generate a test report.

[0108] It should be understood that the parameter configuration module has a database internally, and the database has a parameter configuration table. The host computer software system can save the received full status record. The test results include parameter records and electronic control data.

[0109] The washing machine electronic control test system realizes periodic state interaction through the communication module, uses the parameter configuration module to store and simulate operating parameters, and uses the control logic test module and the fault test module to generate and execute functional tests and multi-scenario fault tests respectively. Finally, the result analysis module automatically determines the test results and generates a report. It can improve the automation level of the test process and enhance the verification effect of the washing machine control logic and fault handling capabilities. At the same time, it can reduce the need for manual operation, improve test efficiency and reliability, and solve the problems of insufficient flexibility and coverage of washing machine electronic control testing.

[0110] In some embodiments, the washing machine electronic control system includes an electronic control module and a display panel; the display panel is used to receive the electronic control operating parameters or test instructions of the host computer software system and send them to the electronic control module, and report the test results to the host computer software system.

[0111] It should be understood that the host computer software system simulates a series of operating parameters of the electronic control module through the parameter configuration table, and communicates with the display board according to the different configuration requirements of different models. The display board will execute the electronic control module according to the obtained configuration parameters, and the electronic control module will report the electronic control data to the host computer software system after the execution is completed.

[0112] The washing machine electronic control system receives and forwards the operating parameters or test instructions of the host computer software system to the electronic control module through the display panel, and at the same time feeds back the test results to the host computer software system, which can realize two-way transmission of test instructions and results, optimize the real-time performance of data interaction during the test process, and simplify the communication architecture between systems, thereby improving the overall coordination of the test process.

[0113] As can be seen from the above technical solution, the embodiment of the present application provides a washing machine electronic control testing method and system based on parameter simulation and data driving. The method includes: the washing machine electronic control system communicates with the host computer software system via a serial port, wherein the serial port communication is a periodic full-state query and state return communication; importing a parameter configuration table in a database into the host computer software system to simulate electronic control operating parameters and communicate with the washing machine electronic control system through the parameter configuration table; wherein the parameter configuration table includes a communication protocol table, a program parameter table, and a machine model table; generating control logic test cases based on the control specification of the washing machine; generating fault simulation test cases with multiple scenario combinations based on the fault trigger conditions of the washing machine; the host computer software system issues a setting command to the washing machine electronic control system based on the control logic test case and / or the fault simulation test case to automatically execute the control logic test case and / or the fault simulation test case and generate test results; the washing machine electronic control system reports and saves the test results to the host computer software system; and automatically judging the test results to generate a test report. This solves the problem of insufficient flexibility and coverage of washing machine electronic control testing.

[0114] Similar parts between the embodiments provided in this application can be referenced to each other. The specific implementation methods provided above are only a few examples under the overall concept of this application and do not constitute a limitation on the scope of protection of this application. For those skilled in the art, any other implementation methods expanded based on the scheme of this application without expending creative work shall fall within the scope of protection of this application.

Claims

1. A washing machine electronic control testing method based on parameter simulation and data driving, characterized in that: The method comprises: The washing machine electronic control system communicates with the host computer software system via a serial port, and the serial port communication is a communication for periodic full status query and status return; Importing the parameter configuration table in the database into the host computer software system to simulate the electronic control operating parameters through the parameter configuration table and communicate with the electronic control system of the washing machine; wherein the parameter configuration table includes a communication protocol table, a program parameter table and a machine model table; Generate control logic test cases based on the washing machine's control specification; Generate fault simulation test cases with multiple scenarios based on the fault trigger conditions of the washing machine; The host computer software system issues a setting command to the washing machine electronic control system based on the control logic test case and / or the fault simulation test case to automatically execute the control logic test case and / or the fault simulation test case and generate a test result; The washing machine electronic control system reports the test result and saves it to the host computer software system; Automatically determine the test results to generate a test report.

2. The washing machine electronic control testing method based on parameter simulation and data driving according to claim 1, characterized in that: The serial communication uses the UART protocol, and performs full status query and status return at a frequency of once per second.

3. The washing machine electronic control testing method based on parameter simulation and data driving according to claim 1, characterized in that: The machine model table includes a weighing configuration table, a dehydration parameter table, a correction frequency table, a drying control table, a water flow table, a water level table and a fault parameter table.

4. The washing machine electronic control testing method based on parameter simulation and data driving according to claim 1, characterized in that: The steps to generate control logic test cases based on the control specification of the washing machine include: Extract all input parameters, allowable ranges and constraints from the washing machine control specification; Performing equivalence class division according to the input parameters, the allowable range of the input parameters, and the constraint conditions to generate a first category of test cases; Performing boundary value analysis based on the input parameters, the allowable range of the input parameters, and the constraint conditions to generate a second type of test case; Performing parameter combination testing on the first type of test cases and the second type of test cases to obtain parameter combination test cases; A time / exception boundary test is performed on the parameter combination test case to obtain a control logic test case.

5. The washing machine electronic control testing method based on parameter simulation and data driving according to claim 4, characterized in that: The step of the host computer software system sending a setting command to the washing machine electronic control system based on the control logic test case to automatically execute the control logic test case and generate a test result includes: The control logic test cases are executed using an automated testing tool, approaching exhaustive testing with a controllable number of control logic test cases and covering all boundary values to ensure that the washing machine control logic meets the control specification requirements.

6. The washing machine electronic control testing method based on parameter simulation and data driving according to claim 1, characterized in that: The steps for generating a multi-scenario combination fault simulation test case based on the washing machine fault trigger conditions include: Based on the failure mode analysis of the washing machine electronic control system, a multi-fault trigger condition model is established. The fault trigger conditions include hardware failure, sensor signal abnormality and control parameter error. Adopt fault injection technology to generate test inputs that trigger faults by dynamically modifying control system parameters or simulating abnormal sensor signals; Based on the fault trigger model, different fault trigger conditions are automatically combined to construct fault simulation test cases with multiple scenario combinations.

7. The washing machine electronic control testing method based on parameter simulation and data driving according to claim 6, characterized in that: The step of the host computer software system sending a setting command to the washing machine electronic control system based on the fault simulation test case to automatically execute the fault simulation test case and generate a test result includes: The parameters are dynamically adjusted and the fault simulation test cases are executed through the automated testing framework to verify the fault tolerance and recovery capabilities of the washing machine control system under fault scenarios.

8. The washing machine electronic control testing method based on parameter simulation and data driving according to claim 1, characterized in that: The steps of automatically determining the test results to generate a test report include: Comparing the test results with preset rules or expected results; Identify test results with data anomalies or deviations from the expected range, and mark the corresponding control logic test cases and / or the fault simulation test cases as passed or failed to generate a test report.

9. A washing machine electronic control test system based on parameter simulation and data drive, characterized in that: The washing machine electronic control test method based on parameter simulation and data driving according to any one of claims 1 to 8 is applied, wherein the washing machine electronic control test system comprises: a washing machine electronic control system and a host computer software system; The host computer software system includes: a communication module, a parameter configuration module, a control logic test module, a fault test module and a result analysis module; The communication module is used to establish periodic full status query and status return communication with the host computer software system through the serial port; The parameter configuration module is used to store a parameter configuration table and simulate electronic control operating parameters through the parameter configuration table to communicate with the electronic control system of the washing machine; The control logic test module is used to generate a control logic test case based on the control specification of the washing machine, and issue a setting command to the electronic control system of the washing machine based on the control logic test case; The fault testing module is used to generate a fault simulation test case with multiple scenarios based on the fault triggering conditions of the washing machine, and to issue a setting command to the electronic control system of the washing machine based on the fault simulation test case; The result analysis module is used to receive and save the test results reported by the washing machine electronic control system, and to automatically determine the test results to generate a test report.

10. The washing machine electronic control test system based on parameter simulation and data drive according to claim 9, characterized in that: The washing machine electronic control system includes an electronic control module and a display panel; The display panel is used to receive the electronic control operation parameters or test instructions of the host computer software system and send them to the electronic control module, and report the test results to the host computer software system.