Washing machine, upper computer equipment and washing machine test system
By introducing a first controller and host computer device into the washing machine, and utilizing the communication serial port and instrumentation program, the problem of low testing efficiency of the washing machine was solved, enabling rapid modification and real-time query of parameter items, thereby improving testing efficiency and accuracy.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HISENSE(SHANDONG)REFRIGERATOR CO LTD
- Filing Date
- 2024-11-18
- Publication Date
- 2026-05-19
AI Technical Summary
In existing technologies, washing machine testing is inefficient because software engineers need to recompile and deploy the program when modifying preset parameters, which makes the process cumbersome.
By introducing a first controller and a host computer device into the washing machine, test control commands are received using the first communication serial port, the program name and target parameter values are parsed, and the parameter items are modified without recompiling the program through instrumentation. The test query results are then displayed in conjunction with the host computer device.
It improves the efficiency and accuracy of washing machine testing, reduces the workload of testing personnel, and enables rapid modification and real-time query of parameters.
Smart Images

Figure CN122062918A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of washing machine testing technology, and in particular to a washing machine, a host computer device, and a washing machine testing system. Background Technology
[0002] A washing machine is a household appliance used to wash and spin-dry clothes. As people's demands for comfort in life increase, washing machines are becoming increasingly multifunctional. To fulfill these functions, washing machine manufacturers need to test the operating procedures of their machines.
[0003] The washing machine operates according to preset parameters set in the embedded software. When performing performance debugging or third-party testing, these preset parameters need to be modified. This usually requires software engineers to modify the software, generate a new program, and recompile and deploy it to the washing machine, resulting in slow testing efficiency. Summary of the Invention
[0004] To address the aforementioned technical problems, embodiments of this application provide a washing machine, a host computer device, and a washing machine testing system.
[0005] The purpose of this application may be to improve the testing efficiency of washing machines.
[0006] The problems addressed in this application are not limited to those mentioned above, and other unmentioned problems can be clearly understood by those skilled in the art from the following description.
[0007] According to one aspect of the embodiments of this application, an embodiment of this application provides a washing machine, including: a cabinet; a washing tub disposed in the cabinet; the washing tub being used to hold clothes; a motor being used to provide rotational power to the washing tub; a first communication serial port being used to connect to a host computer device; the host computer device being used to test the washing machine; and a first controller being electrically connected to the motor and the first communication serial port, the first controller being configured to perform the following steps: controlling the first communication serial port to receive test control instructions sent by the host computer device; parsing the test control instructions to obtain the program name of the program to be tested and to obtain the target parameter value corresponding to the parameter item to be replaced; during the running of the program to be tested corresponding to the program name, when the parameter item to be replaced is executed, replacing the original value of the parameter item to be replaced with the target parameter value, so that the program to be tested controls the washing machine to work according to the target parameter value.
[0008] In the above embodiment, the washing machine parses the test control commands sent by the host computer to obtain the program name of the program to be tested and the target parameter value corresponding to the parameter to be replaced. Then, it runs the program to be tested corresponding to the program name. During the execution of the program to be tested, when the parameter to be replaced is executed, the original value of the parameter to be replaced is replaced with the target parameter value, so that the program to be tested controls the washing machine to operate according to the target parameter value. Thus, in scenarios where the operation of the washing machine is being tested, when it is necessary to modify the parameters of the program to be tested, the tester only needs to send the program name of the program to be tested and the target parameter value corresponding to the parameter to be modified through the host computer to modify the parameters in the program to be tested deployed on the washing machine. This eliminates the need to recompile and deploy a new program, improving the efficiency of washing machine testing.
[0009] In one embodiment of this application, based on the aforementioned scheme, the test program is equipped with a instrumentation program; by running the instrumentation program, the parameter item to be replaced is replaced from its original value to the target parameter value.
[0010] In the above embodiments, the instrumentation program can accurately replace the parameter item to be replaced with the target parameter value without affecting the original program logic. This allows the parameter item to be modified without recompiling the entire program to be tested, thereby improving the efficiency of washing machine testing.
[0011] In one embodiment of this application, based on the foregoing scheme, after running the test program corresponding to the program name, the method further includes: controlling the first communication serial port to receive the test query instruction sent by the host computer device; obtaining the query parameters corresponding to the test query instruction; and feeding back the query parameters to the host computer device so that the host computer device displays the query parameters.
[0012] In the above embodiment, the control first communication serial port receives the test query command sent by the host computer device, and then feeds back the parameters to be queried corresponding to the test query command so that the host computer device can display the parameters to be queried. This allows the tester to view the parameters to be queried through the host computer device, so as to determine the test status of the washing machine. This facilitates the real-time adjustment of the target parameter value for the next test, thereby improving the efficiency and accuracy of the test.
[0013] In one embodiment of this application, based on the foregoing scheme, the method further includes: after the washing machine is powered on again, in response to a preset running instruction, running the test program corresponding to the program name, so that the test program controls the washing machine to work according to the original value.
[0014] In the above embodiments, during the test, the program under test can control the washing machine to work according to the target parameter value. After the test is completed, the value of the parameter item is restored from the target parameter value to the original value, so that the washing machine still works according to the original value of the parameter item. That is, the modification of the value of the parameter item during the test will not affect the normal operation of the washing machine. The tester does not need to rebuild, compile and deploy back to the original program under test after the test is completed, so that the washing machine can run the program under test according to the preset original value, thus improving efficiency.
[0015] According to another aspect of the embodiments of this application, an embodiment of this application provides a host computer device, including: a device housing; a second communication serial port disposed within the device housing; the second communication serial port being used to connect to a washing machine to be tested; and a second controller electrically connected to the second communication serial port, the second controller being configured to perform the following steps: obtaining the program name of the program to be tested and the target parameter value to be replaced in the washing machine; generating a test control instruction based on the program name and the target parameter value; controlling the second communication serial port to send the test control instruction to the washing machine, such that when the washing machine is running the program to be tested corresponding to the program name, when the target parameter item is executed, the target parameter value is replaced with the original value of the target parameter item, so that the program to be tested controls the washing machine to operate according to the target parameter value.
[0016] In the above embodiment, the host computer generates a test control command based on the program name of the program to be tested and the target parameter value to be replaced in the washing machine. Then, it controls the second communication serial port to send this test control command to the washing machine. This ensures that when the washing machine is running the program to be tested, and the parameter to be replaced is executed, the original value of the parameter to be replaced is replaced with the target parameter value, so that the program to be tested controls the washing machine according to the target parameter value. Thus, in scenarios where the washing machine's operation is being tested, when modifying parameters in the program to be tested, the tester only needs to send the program name of the program to be tested and the target parameter value corresponding to the parameter to be modified through the host computer to modify the parameters in the program to be tested, without needing to recompile and deploy a new program, thereby improving the efficiency of washing machine testing.
[0017] In one embodiment of this application, based on the foregoing scheme, after sending the test control command to the washing machine, the method further includes: controlling the second communication serial port to send a preset test query command to the washing machine, so that the washing machine responds with the query data corresponding to the test query command; and displaying the query data responded by the washing machine.
[0018] In the above embodiment, a preset test query command is sent to the washing machine through the second communication serial port, and then the data to be queried fed back by the washing machine is received and displayed, so that the tester can view the parameters to be queried through the host computer device in order to determine the test status of the washing machine.
[0019] In one embodiment of this application, based on the foregoing scheme, displaying the query data fed back by the washing machine includes: analyzing the query data to determine the output format of the query data; the output format includes a table format or a curve format; and displaying the query parameters according to the output format.
[0020] In the above embodiments, by analyzing the data to be queried, it is determined whether the output format of the data to be queried is a table or a curve. The data to be queried can be directly displayed in the form of a curve or a table, so that testers can intuitively determine the test situation from the curve or table.
[0021] In one embodiment of this application, based on the foregoing scheme, the step of analyzing the parameter to be queried and determining the output form of the parameter to be queried includes: if the parameter to be queried changes over time, determining that the output form of the parameter to be queried is the curve form; otherwise, determining that the output form of the parameter to be queried is the table form.
[0022] In the above embodiments, the relationship between the parameter to be queried and time determines whether the parameter to be queried is displayed in the form of a curve or in the form of a table. This achieves a targeted display of the parameter to be queried, which is convenient for testers to summarize and accurately determine the test status of the washing machine.
[0023] According to another aspect of the embodiments of this application, an embodiment of this application provides a washing machine testing system, including: the washing machine described above; and the host computer device described above; the host computer device is used to send a test control instruction including the program name of the program to be tested and obtaining the target parameter value corresponding to the parameter to be replaced to the washing machine, so that when the washing machine is running the program to be tested, when the parameter to be replaced is executed, the parameter to be replaced is replaced from its original value to the target parameter value, so that the program to be tested controls the washing machine to work according to the target parameter value.
[0024] In the above embodiment, the host computer generates a test control command based on the program name of the program to be tested and the target parameter value to be replaced in the washing machine. This command is then sent to the washing machine via a second communication serial port. During the operation of the program to be tested, when the parameter to be replaced is executed, the washing machine replaces the original value with the target parameter value, ensuring that the program to be tested controls the washing machine according to the target parameter value. Thus, in scenarios where the washing machine's operation is being tested, when modifying parameters in the program to be tested, the tester only needs to send the program name and the target parameter value to be modified to the host computer to modify the parameters without needing to recompile and deploy a new program, improving the efficiency of washing machine testing.
[0025] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this application. Attached Figure Description
[0026] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort. In the drawings:
[0027] Figure 1 This is a schematic diagram of the structure of a washing machine shown in an exemplary embodiment of this application;
[0028] Figure 2 This is a schematic diagram illustrating the circuit connection principle of a washing machine, as shown in an exemplary embodiment of this application;
[0029] Figure 3 This is a flowchart illustrating the steps executable by the first controller in a washing machine according to an exemplary embodiment of this application;
[0030] Figure 4 This is a schematic diagram illustrating the structure of a host computer device according to an exemplary embodiment of this application;
[0031] Figure 5 This is a schematic diagram illustrating the circuit connection principle of a host computer device, as shown in an exemplary embodiment of this application.
[0032] Figure 6 This is a flowchart illustrating the steps that the second controller in the host computer device can execute, provided in an exemplary embodiment of this application.
[0033] Figure 7This is a schematic diagram of a washing machine testing system shown in an exemplary embodiment of this application;
[0034] Figure 8 This is a timing diagram illustrating communication between a washing machine and a host computer device in an exemplary embodiment of this application. Detailed Implementation
[0035] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.
[0036] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.
[0037] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and processor devices and microcontroller devices.
[0038] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0039] It should be noted that "multiple" in this article refers to two or more. The "and" characters describe the relationship between related objects, indicating that there can be three relationships. For example, A and B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0040] Currently, the washing machine operates according to preset parameters set in the embedded software. During testing, these preset parameters need to be modified. This typically requires software engineers to modify the software, generate a new program, and then recompile and deploy it to the washing machine, resulting in slow testing efficiency.
[0041] To address the aforementioned technical problems, this application proposes a washing machine.
[0042] Please see Figure 1 and Figure 2 , Figure 1 This is a schematic diagram of the structure of a washing machine provided in an exemplary embodiment of this application. Figure 2 This is a schematic diagram of the circuit connection principle of a washing machine provided in an exemplary embodiment of this application.
[0043] like Figure 1 and Figure 2 As shown, the washing machine 10 may include a housing 11. The housing 11 is the external structure of the washing machine 10, and is generally rectangular in shape with a hollow interior to facilitate the fixing and protection of the internal components of the washing machine.
[0044] It should be noted that the cabinet 11 is usually made of metal, plastic, imitation porcelain material or glass; the cabinet 11 is usually also equipped with a door, which makes it easy for users to put in or take out clothes to be dried.
[0045] The washing machine 10 may include a washing tub 12. The washing tub 12 is disposed within the housing 11. The washing tub 12 is typically made of stainless steel and is used to hold and wash clothes.
[0046] The washing machine 10 may include a motor 13. The motor 13 is used to provide rotational power to the washing tub 12.
[0047] The washing machine 10 may include a first communication serial port 14. The first communication serial port 14 is used to connect to a host computer device. The host computer device is used to test the washing machine 10.
[0048] It should be noted that the first communication serial port 14 can be an RS-232 serial port, RS-422 serial port, RS-485 serial port, USB serial port, or UART (Universal Asynchronous Receiver / Transmitter) serial port. The UART serial port works by transmitting and receiving data frames. The sending end encodes the data to be sent and then sends it out through the UART serial port; the receiving end receives the data, decodes it, and thus obtains the data sent by the sending end.
[0049] like Figure 1 and Figure 2 As shown, the washing machine 10 may include a first controller 15.
[0050] In the washing machine 10, the first controller 15 is electrically connected to the motor 13 and the first communication serial port 14 respectively.
[0051] The first controller 15 can be electrically connected to the host computer device through the first communication serial port 14.
[0052] The first controller 15 can control the speed of the motor 13 to control the speed of the washing tub.
[0053] In an optional embodiment, the first controller may be configured to perform the following steps:
[0054] Control the first communication serial port to receive test control commands sent by the host computer device;
[0055] The test control instructions are parsed to obtain the program name of the program to be tested and the target parameter value corresponding to the parameter item to be replaced.
[0056] During the execution of the test program corresponding to the program name, when the parameter to be replaced is executed, the original value of the parameter to be replaced is replaced with the target parameter value, so that the test program controls the washing machine to work according to the target parameter value.
[0057] In this embodiment, the washing machine parses the test control commands sent by the host computer to obtain the program name of the program to be tested and the target parameter value corresponding to the parameter to be replaced. Then, it runs the program to be tested corresponding to the program name. During the execution of the program to be tested, when the parameter to be replaced is executed, the original value of the parameter to be replaced is replaced with the target parameter value, so that the program to be tested controls the washing machine to operate according to the target parameter value. Thus, in scenarios where the operation of the washing machine is being tested, when it is necessary to modify the parameters of the program to be tested, the tester only needs to send the program name of the program to be tested and the target parameter value corresponding to the parameter to be modified through the host computer to modify the parameters in the program to be tested deployed on the washing machine. This eliminates the need to recompile and deploy a new program, improving the efficiency of washing machine testing.
[0058] It should be noted that the test control command is a control command used to control the operation of the washing machine. The test control command includes the program name of the program to be tested and obtains the target parameter value corresponding to the parameter item to be replaced.
[0059] Furthermore, the test control instructions are parsed to obtain the program name of the program to be tested and the target parameter value corresponding to the parameter item to be replaced, including: parsing the test control instructions to obtain the program name of the program to be tested and the target parameter value corresponding to the parameter item to be replaced.
[0060] It should be noted that the host computer device first needs to obtain the program name of the program to be tested and encode the target parameter values corresponding to the parameters to be replaced, generating test control instructions. After receiving the test control instructions, the washing machine needs to parse them to recover the program name of the program to be tested and obtain the target parameter values corresponding to the parameters to be replaced. Parsing the test control instructions is essentially decoding them. This decoding process is the reverse of the host computer device's encoding of the program name of the program to be tested and the target parameter values corresponding to the parameters to be replaced.
[0061] After resolving the program name of the program to be tested, the first controller is also configured to run the program to be tested corresponding to that program name.
[0062] It should be noted that the parameters to be replaced include: process control parameters and device control parameters. The process control parameters are those used to control the operation of the washing machine. The washing machine's operation includes a washing cycle and / or a drying cycle. When the washing machine's operation includes a washing cycle, the program to be tested is the program used to control the washing of clothes. When the washing machine's operation includes a drying cycle, the program to be tested is the program used to control the drying of clothes. When the washing machine's operation includes both a washing cycle and a drying cycle, the program to be tested is the program used to control whether the washing machine washes clothes first and then dries them.
[0063] When the operating process is a washing process, the process control parameters include parameters used to control the washing machine's washing of clothes, such as washing time, washing start-stop ratio, heating time, heating temperature, and spin-drying time.
[0064] When the operating process is a drying process, the process control parameters include drying temperature, drying time, drying stop parameters, and other parameters used to control the washing machine's drying of clothes.
[0065] When the operating process includes a washing process and a drying process, the process control parameters include washing duration, washing start-stop ratio, heating duration, heating temperature, dehydration duration, drying temperature, drying duration, and drying stop parameters.
[0066] Device control parameters are parameters used to control the components of the washing machine. Examples include parameters for controlling the heating element switch, the water inlet valve switch, and the drain valve switch.
[0067] Furthermore, the test program includes a instrumentation program; the parameter item to be replaced is replaced from its original value to the target parameter value in the following way: run the instrumentation program to replace the parameter item from its original value to the target parameter value.
[0068] In this way, instrumentation programs can accurately replace the parameter items to be replaced with the target parameter values without affecting the original program logic. This allows for the modification of parameter items without recompiling the entire program under test, thereby improving the efficiency of washing machine testing.
[0069] It should be noted that the program under test includes a main function and a sub-function for retrieving the values of parameter items. The values of the parameter items to be replaced are defined within this sub-function. This sub-function includes an instrumentation procedure. If no target parameter value exists for the parameter item to be replaced, the value retrieved by this sub-function is the original value defined within the sub-function, causing the program under test to control the washing machine according to this original value.
[0070] When a target parameter value exists corresponding to a parameter to be replaced, the value of the parameter to be replaced is modified from the original value defined in the sub-function to the target parameter value when the instrumentation program is run. This changes the value of the obtained parameter to be replaced from the original value to the target parameter value, thereby causing the program under test to control the washing machine to work according to the target parameter value.
[0071] Furthermore, after running the test program corresponding to the program name, the process also includes: controlling the first communication serial port to receive the test query command sent by the host computer device; obtaining the query parameters corresponding to the test query command; and feeding back the query parameters to the host computer device so that the host computer device can display the query parameters.
[0072] In this way, the first communication serial port receives the test query command sent by the host computer device, and then feeds back the parameter to be queried corresponding to the test query command, so that the host computer device can display the parameter to be queried. This allows the tester to view the parameter to be queried through the host computer device, so as to determine the test status of the washing machine. This allows the target parameter value for the next test to be adjusted in real time, thereby improving the efficiency and accuracy of the test.
[0073] It should be noted that the host computer device includes a display module for displaying the parameters to be queried. After the test program is run, it controls the washing machine to operate according to the target parameter values to perform the test. To understand the test status of the washing machine, the host computer device sends a test query command to the washing machine, which then responds with the parameters to be queried corresponding to the command. This allows the host computer device to display the parameters for the testers to view.
[0074] Optionally, obtaining the query parameters corresponding to the test query command includes: parsing the test query command and obtaining the query parameters corresponding to the test query command.
[0075] In some optional embodiments, the test query command may include a parameter to be queried that the washing machine needs to provide feedback. For example, if the tester only wants to check the washing machine's spin speed, the host computer sends a test query command including the washing machine's spin speed. The washing machine control's first communication serial port receives the test query command and obtains the parameter to be queried, i.e., the washing machine's spin speed, by parsing the test query command. Then, the washing machine's spin speed is fed back to the host computer via the first communication serial port, so that the host computer can display the parameter to be queried.
[0076] In some alternative embodiments, the test query command can be a preset default query command, which corresponds to a parameter to be queried that needs to be returned by the washing machine. The host computer sends the test query command. The washing machine controls the first communication serial port to receive the test query command and determine the parameter to be queried corresponding to the test query command. Then, it returns the parameter to be queried corresponding to the test query command to the host computer via the first communication serial port, so that the host computer displays the parameter to be queried.
[0077] Furthermore, the first controller is also configured to: after the washing machine is powered on again, in response to a preset operating command, run the test program corresponding to the program name, so that the test program controls the washing machine to work according to the original values.
[0078] In this way, during the test, the program under test can control the washing machine to work according to the target parameter values. After the test is completed, the values of the parameter items are restored from the target parameter values to the original values, so that the washing machine still works according to the original values of the parameter items. That is, the modification of the values of the parameter items during the test will not affect the normal operation of the washing machine. Testers do not need to rebuild, compile and deploy back to the original program under test after the test is completed. The washing machine can run the program under test according to the preset original values, which improves efficiency.
[0079] In some optional embodiments, the target parameter value can be directly deleted after each run of the test program to control the washing machine according to the target parameter value or when the washing machine is powered on.
[0080] For example, the target parameter value is stored in EEPROM (Electrically Erasable Programmable Read-Only Memory) or Flash. Since EEPROM and Flash are non-volatile storage media, their stored contents will not be lost when power is off or restarted. Therefore, it is necessary to manually delete the stored target parameter value in EEPROM or Flash so that each time power is restored, in response to the preset running instructions, the test program corresponding to the program name is run, so that the test program controls the washing machine to work according to the original values.
[0081] In some alternative embodiments, the target parameter value is stored in RAM (Random Access Memory). Since RAM is volatile memory, its stored contents will be lost when power is cut off or restarted. Therefore, the target parameter value can be directly stored in RAM so that each time power is restored, in response to the preset running command, the test program corresponding to the program name is run so that the test program controls the washing machine to work according to the original value.
[0082] For details, please refer to Figure 3 , Figure 3 A flowchart illustrating the steps that can be executed by the first controller in a washing machine according to an embodiment of this application. Figure 3 Some steps in the process can be arbitrarily combined, and / or the order of some operations can be arbitrarily changed.
[0083] like Figure 3 As shown, the first controller can be configured to perform the following steps:
[0084] Step S301: Control the first communication serial port to receive test control commands sent by the host computer device.
[0085] Step S302: Parse the test control command to obtain the program name of the program to be tested and the target parameter value corresponding to the parameter item to be replaced.
[0086] In step S303, during the process of running the test program corresponding to the program name, when the parameter to be replaced is executed, the parameter to be replaced is replaced from its original value to the target parameter value, so that the test program controls the washing machine to work according to the target parameter value.
[0087] Step S304: Control the first communication serial port to receive the test query command sent by the host computer device.
[0088] Step S305: Obtain the parameters to be queried corresponding to the test query command.
[0089] Step S306: The parameters to be queried are fed back to the host computer device so that the host computer device can display the parameters to be queried.
[0090] Step S307: After the washing machine is powered on again, in response to the preset operation command, the test program corresponding to the program name is run so that the test program controls the washing machine to work according to the original value.
[0091] In this embodiment, during testing, the host computer sends the program name of the program to be tested and obtains the target parameter value corresponding to the parameter to be replaced. When the washing machine runs the program to be tested, the program controls the washing machine according to the target parameter value. Then, in response to the test query command sent by the host computer, it returns the parameter to be queried corresponding to the test query command, so that the host computer displays the parameter to be queried. After the washing machine is powered on again, in response to the preset run command, it runs the program to be tested corresponding to the program name, so that the program controls the washing machine according to the original value. In this way, modifying the parameter to be replaced to the target parameter value or restoring it to the original value does not require the tester to recompile and deploy the program, greatly reducing the tester's workload and improving testing efficiency. At the same time, the ability to display the parameter to be queried on the host computer allows the tester to intuitively view the parameter to be queried, facilitating a quick determination of the washing machine's test status.
[0092] This application also proposes a host computer device.
[0093] Please see Figure 4 and Figure 5 , Figure 4 This is a schematic diagram of the structure of a host computer device provided in an exemplary embodiment of this application. Figure 5 This is a schematic diagram of the circuit connection principle of the host computer device provided in an exemplary embodiment of this application.
[0094] like Figure 4 and Figure 5 As shown, the host computer device 40 may include a device housing 41.
[0095] The housing 11 is the external structure of the washing machine 10, and is usually rectangular in shape with a hollow interior to facilitate the fixing and protection of the internal components of the washing machine. It should be noted that the housing 11 is usually made of metal, plastic, imitation porcelain material, or glass.
[0096] The host computer device 40 may include a second communication serial port 42. The second communication serial port 42 is located inside the device housing 41. The second communication serial port 42 is used to connect to the washing machine to be tested.
[0097] It should be noted that the second communication serial port 42 can be an RS-232 serial port, RS-422 serial port, RS-485 serial port, USB serial port, or UART (Universal Asynchronous Receiver / Transmitter) serial port. The UART serial port works by transmitting and receiving data frames. The sending end encodes the data to be sent and then transmits it through the UART serial port; the receiving end receives the data, decodes it, and thus obtains the data sent by the sending end.
[0098] The host computer device 40 may include a display module 43. The display module 43 is used to display the parameters to be queried.
[0099] It should be noted that the display module can display the parameters to be queried in the form of tables or graphs.
[0100] The host computer device 40 may include a second controller 44.
[0101] In the host computer device 40, the second controller 44 is electrically connected to the second communication serial port 42 and the display module 43 respectively.
[0102] The second controller 44 can be electrically connected to the washing machine via the second communication serial port 42.
[0103] The second controller 44 can control the display module 43 to display the parameters to be queried.
[0104] In an optional embodiment, the second controller may be configured to perform the following steps:
[0105] Obtain the program name of the program to be tested and the target parameter value to be replaced for the washing machine;
[0106] Generate test control instructions based on the program name and target parameter values;
[0107] The second communication serial port is controlled to send test control commands to the washing machine. When the washing machine is running the test program corresponding to the program name, it replaces the original value of the parameter to be replaced with the target parameter value when executing the parameter to be replaced, so that the test program controls the washing machine to work according to the target parameter value.
[0108] In this embodiment, a test control command is generated using the program name of the program to be tested and the target parameter value to be replaced in the washing machine. This command is then sent to the washing machine via a second communication serial port. When the washing machine executes the parameter to be replaced during the operation of the program to be tested, it replaces the original value with the target parameter value, ensuring that the program to be tested controls the washing machine according to the target parameter value. Thus, in scenarios where the washing machine's operation is being tested, when modifying parameters in the program to be tested, the tester only needs to send the program name and the target parameter value to be modified to the host computer to modify the parameters without needing to recompile and deploy a new program, improving the efficiency of washing machine testing.
[0109] It should be noted that the host computer device has pre-installed testing software, such as the MAT (Memory Access Tool) application. The program name of the program to be tested and the target parameters to be replaced in the washing machine are selected or set by the tester in the testing software.
[0110] It should be noted that the parameters to be replaced include: process control parameters and device control parameters. The process control parameters are those used to control the operation of the washing machine. The washing machine's operation includes a washing cycle and / or a drying cycle. When the washing machine's operation includes a washing cycle, the program to be tested is the program used to control the washing of clothes. When the washing machine's operation includes a drying cycle, the program to be tested is the program used to control the drying of clothes. When the washing machine's operation includes both a washing cycle and a drying cycle, the program to be tested is the program used to control whether the washing machine washes clothes first and then dries them.
[0111] When the operating process is a washing process, the process control parameters include parameters used to control the washing machine's washing of clothes, such as washing time, washing start-stop ratio, heating time, heating temperature, and spin-drying time.
[0112] When the operating process is a drying process, the process control parameters include drying temperature, drying time, drying stop parameters, and other parameters used to control the washing machine's drying of clothes.
[0113] When the operating process includes a washing process and a drying process, the process control parameters include washing duration, washing start-stop ratio, heating duration, heating temperature, dehydration duration, drying temperature, drying duration, and drying stop parameters.
[0114] Device control parameters are parameters used to control the components of the washing machine. Examples include parameters for controlling the heating element switch, the water inlet valve switch, and the drain valve switch.
[0115] Furthermore, test control instructions are generated based on the program name and target parameter value, including: encoding the program name and target parameter value to obtain test control instructions.
[0116] Furthermore, after sending the test control command to the washing machine, the process also includes: controlling the second communication serial port to send a preset test query command to the washing machine, so that the washing machine can provide feedback on the data to be queried corresponding to the test query command; and displaying the data to be queried provided by the washing machine.
[0117] In this way, a preset test query command is sent to the washing machine through the second communication serial port, and then the data to be queried fed back by the washing machine is received and displayed, so that the tester can view the parameters to be queried through the host computer device in order to determine the test status of the washing machine.
[0118] In some optional embodiments, the test query command may include the parameters to be queried that the washing machine needs to provide feedback. For example, if the tester only wants to view the washing machine's spin speed, the tester can select the washing machine's spin speed as the data to be queried in the test software. In response to this selection operation, the host computer generates a test query command including the washing machine's spin speed, and then sends the test query command to the washing machine via a second communication serial port, causing the washing machine to provide the data to be queried corresponding to the test query command; then, the data provided by the washing machine is displayed.
[0119] In some alternative embodiments, the test query command can be a preset default query command, which corresponds to the parameters to be queried that the washing machine needs to provide feedback on. Testers can select the default query parameters as the parameters to be queried in the test software. The specific content of the default query parameters can be set according to actual conditions and is not limited here. In response to this selection operation, the host computer generates a test query command including the parameters to be queried, and then sends the test query command to the washing machine through the second communication serial port, causing the washing machine to provide the data to be queried corresponding to the test query command; then, the data to be queried provided by the washing machine is displayed.
[0120] Furthermore, the system displays the data to be queried from the washing machine, including: analyzing the data to be queried and determining its output format; the output format may be a table or a graph. The parameters to be queried are then displayed according to the output format.
[0121] In this way, by analyzing the data to be queried, the output format of the data to be queried can be determined as either a table or a curve. The data to be queried can be directly displayed in the form of a curve or a table, allowing testers to intuitively determine the test results from the curve or table.
[0122] Furthermore, the parameters to be queried are analyzed to determine the output format of the parameters, including: if the parameters to be queried change over time, the output format of the parameters to be queried is determined to be a curve; otherwise, the output format of the parameters to be queried is determined to be a table.
[0123] In this way, by determining whether to display the parameters to be queried in the form of a curve or a table based on the relationship between the parameters and time, the parameters to be queried can be displayed in a targeted manner, which makes it easier for testers to summarize and accurately determine the test results of the washing machine.
[0124] It should be noted that the parameters to be queried that change over time include real-time motor speed, real-time heating temperature, and the on / off status of the heating element. Parameters that do not change over time include the set motor speed, set motor-to-off ratio, set heating time, and set drying time.
[0125] It should be noted that when the output of the parameter to be queried is in curve form, the × axis of the curve represents time, and the y axis of the curve represents the parameter to be queried.
[0126] When the output of the parameter to be queried is in tabular form, the parameter to be queried includes two sub-parameter items, namely, the original value of the parameter to be queried and its target parameter value.
[0127] For example, as shown in Table 1, when the parameters to be queried are the set heating time and the set drying time, the set drying time has two sub-parameter items: the original heating time and the target heating time. The parameter value of the original heating time is T1, which is the original value defined in the sub-function of the program under test used to obtain the parameter value. The target heating time is T2, which is the target parameter value after being replaced by the instrumentation program. The set drying time has two sub-parameter items: the original drying time and the target drying time. The parameter value of the original drying time is T3, which is the original value defined in the sub-function of the program under test used to obtain the parameter value. The target drying time is T4, which is the target parameter value after being replaced by the instrumentation program.
[0128]
[0129] Table 1
[0130] For details, please refer to Figure 6 , Figure 6 A flowchart illustrating the steps that can be executed by the second controller in a washing machine according to an embodiment of this application. Figure 6 Some steps in the process can be arbitrarily combined, and / or the order of some operations can be arbitrarily changed.
[0131] like Figure 6 As shown, the second controller can be configured to perform the following steps:
[0132] Step S601: Obtain the program name of the program to be tested and the target parameter value to be replaced for the washing machine.
[0133] Step S602: Generate test control instructions based on the program name and target parameter values.
[0134] Step S603: Control the second communication serial port to send test control instructions to the washing machine, so that when the washing machine is running the test program corresponding to the program name, when the parameter to be replaced is executed, the parameter to be replaced is replaced from its original value to the target parameter value, so that the test program controls the washing machine to work according to the target parameter value.
[0135] Step S604: Control the second communication serial port to send a preset test query command to the washing machine, so that the washing machine can return the data to be queried corresponding to the test query command.
[0136] Step S605: Determine whether the parameter to be queried changes over time. If yes, proceed to step S606; otherwise, proceed to step S607.
[0137] Step S606: Determine that the output format of the parameter to be queried is a curve. Then proceed to step S608.
[0138] Step S607: Determine that the output format of the parameter to be queried is tabular. Then proceed to step S608.
[0139] Step S608: Display the parameters to be queried in the output format.
[0140] In this embodiment, a test control command is generated using the program name of the program to be tested and the target parameter value to be replaced in the washing machine. This command is then sent to the washing machine via a second communication serial port. During the operation of the program to be tested, when the parameter to be replaced is executed, the washing machine replaces the original value with the target parameter value, ensuring the program to be tested controls the washing machine according to the target parameter value. The output format is then determined by observing whether the parameters to be queried change over time, and displayed accordingly. This way, when modifying parameters in the program to be tested, the tester only needs to send the program name and the target parameter value to be modified to the host computer to modify the parameters without recompiling and deploying a new program, thus improving the efficiency of washing machine testing. Furthermore, the host computer can selectively display the parameters to be queried, allowing the tester to visually view these parameters and quickly determine the washing machine's testing status.
[0141] This application proposes a washing machine testing system.
[0142] Please see Figure 7 , Figure 7 This is a schematic diagram of a washing machine testing system provided in an exemplary embodiment of this application.
[0143] The washing machine testing system 71 includes a washing machine 10 and a host computer device 40. The washing machine 10 is electrically connected to the host computer device 40 via a first communication serial port and a second communication serial port.
[0144] The host computer device is used to send a test control instruction, including the program name of the program to be tested and the target parameter value corresponding to the parameter to be replaced, to the washing machine. This is so that when the washing machine executes the parameter to be replaced during the operation of the program to be tested, it replaces the original value of the parameter to be replaced with the target parameter value, so that the program to be tested controls the washing machine to work according to the target parameter value.
[0145] In this embodiment, the host computer generates a test control command based on the program name of the program under test and the target parameter value to be replaced in the washing machine. It then controls the second communication serial port to send this test control command to the washing machine. This ensures that when the washing machine executes the parameter to be replaced during the execution of the program under test, it replaces the original value of the parameter with the target parameter value, so that the program under test controls the washing machine according to the target parameter value. Thus, when modifying parameters in the program under test, the tester only needs to send the program name and the target parameter value to be modified to the host computer to modify the parameters without recompiling and deploying a new program, improving the efficiency of washing machine testing.
[0146] For details, please refer to Figure 8 , Figure 8 A timing diagram showing the communication between a washing machine and a host computer device, provided as an exemplary embodiment of this application.
[0147] Step S801: The host computer device obtains the program name of the program to be tested and the target parameter value to be replaced for the washing machine.
[0148] In step S802, the host computer generates test control instructions based on the program name and target parameter values.
[0149] In step S803, the host computer controls the second communication serial port to send a test control command.
[0150] In step S804, the washing machine controls the first communication serial port to receive the test control command, parses the test control command, obtains the program name of the program to be tested, and obtains the target parameter value corresponding to the parameter item to be replaced.
[0151] In step S805, when the washing machine is running the test program corresponding to the program name, when the parameter to be replaced is executed, the parameter to be replaced is replaced with the target parameter value so that the test program controls the washing machine to work according to the target parameter value.
[0152] In step S806, the host computer controls the second communication serial port to send a preset test query command.
[0153] In step S807, the washing machine controls the first communication serial port to receive the test query command sent by the host computer device and obtain the parameters to be queried corresponding to the test query command.
[0154] Step S808: The washing machine returns the parameters to be queried.
[0155] In step S809, the host computer receives the parameters to be queried and analyzes the data to be queried to determine the output format of the data to be queried; the output format may be a table or a curve.
[0156] In step S810, the host computer displays the parameters to be queried in the output format.
[0157] In step S811, after the washing machine is powered on again, it responds to the preset operation command and runs the test program corresponding to the program name so that the test program controls the washing machine to work according to the original value.
[0158] In this embodiment, the host computer generates a test control command based on the program name of the program to be tested and the target parameter value to be replaced in the washing machine. Then, it controls the second communication serial port to send this test control command to the washing machine. This ensures that during the execution of the program to be tested, when the target parameter is executed, the washing machine replaces the original value of the target parameter with its target parameter value, so that the program to be tested controls the washing machine to operate according to the target parameter value.
[0159] The output format of the parameters returned by the washing machine changes over time, and the display is based on this format. This way, when modifying parameters in the test program, testers only need to send the program name and the target parameter value to be modified to the host computer to modify or restore the parameters without recompiling and deploying a new program, thus improving the efficiency of washing machine testing. Simultaneously, the host computer can selectively display the parameters to be queried, allowing testers to intuitively view these parameters and quickly determine the washing machine's test status. This facilitates real-time adjustments to the target parameter values for the next test, thereby improving testing efficiency and accuracy.
[0160] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.
[0161] It should be understood that the above content is only a preferred exemplary embodiment of this application and is not intended to limit the implementation of this application. Those skilled in the art can easily make corresponding modifications or alterations based on the main concept and spirit of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the claims.
Claims
1. A washing machine, characterized in that, include: Box; A washing tub is located inside the box; the washing tub is used to hold clothes. An electric motor is used to provide rotational power to the washing tub; The first communication serial port is used to connect to the host computer device; A first controller, electrically connected to the motor and the first communication serial port, is configured to perform the following steps: Control the first communication serial port to receive test control commands sent by the host computer device; The test control command is parsed to obtain the program name of the program to be tested and the target parameter value corresponding to the parameter item to be replaced; During the execution of the test program corresponding to the program name, when the parameter to be replaced is executed, the parameter to be replaced is replaced with the target parameter value, so that the test program controls the washing machine to work according to the target parameter value.
2. The washing machine according to claim 1, characterized in that, The test program includes a instrumentation program; by running the instrumentation program, the original value of the parameter to be replaced is replaced with the target parameter value.
3. The washing machine according to claim 1 or 2, characterized in that, After running the test program corresponding to the program name, the process further includes: Control the first communication serial port to receive the test query command sent by the host computer device; Obtain the parameters to be queried corresponding to the test query command; The parameters to be queried are fed back to the host computer device so that the host computer device can display the parameters to be queried.
4. The washing machine according to any one of claims 1 to 2, characterized in that, Also includes: After the washing machine is powered on again, in response to the preset operation command, the test program corresponding to the program name is run so that the test program controls the washing machine to work according to the original value.
5. A host computer device, characterized in that, include: Equipment housing; A second communication serial port is located inside the device housing; the second communication serial port is used to connect to the washing machine to be tested. A second controller, electrically connected to the second communication serial port, is configured to perform the following steps: Obtain the program name of the program to be tested and the target parameter value to be replaced for the washing machine; Generate test control instructions based on the program name and the target parameter value; The second communication serial port is controlled to send the test control command to the washing machine, so that when the washing machine is running the test program corresponding to the program name, when the parameter to be replaced is executed, the parameter to be replaced is replaced from its original value to the target parameter value, so that the test program controls the washing machine to work according to the target parameter value.
6. The host computer device according to claim 5, characterized in that, After sending the test control command to the washing machine, the method further includes: The second communication serial port is controlled to send a preset test query command to the washing machine, so that the washing machine responds with the data to be queried corresponding to the test query command; The data to be queried, returned by the washing machine, is displayed.
7. The host computer device according to claim 6, characterized in that, The process of displaying the query data returned by the washing machine includes: The data to be queried is analyzed to determine the output format of the data; the output format may be a table or a curve. The parameters to be queried are displayed in the output format described above.
8. The host computer device according to claim 6, characterized in that, The step of analyzing the parameters to be queried and determining the output format of the parameters to be queried includes: When the parameter to be queried changes over time, the output form of the parameter to be queried is determined to be the curve form; Otherwise, the output format of the parameter to be queried is determined to be the table format.
9. A washing machine testing system, characterized in that, include: The washing machine as described in any one of claims 1 to 4; as well as The host computer device as described in any one of claims 5 to 8; The host computer device is used to send a test control instruction, including the program name of the program to be tested and the target parameter value corresponding to the parameter to be replaced, to the washing machine, so that when the washing machine executes the parameter to be replaced during the operation of the program to be tested, it replaces the original value of the parameter to be replaced with the target parameter value, so that the program to be tested controls the washing machine to work according to the target parameter value.