Method, device, equipment and medium for restoring washing cycle data

By storing device address and status variable data in the status cache library and the washing cycle library, and using the device address as an index, the change process of status variables can be quickly restored in combination with the target washing cycle. This solves the problems of low query efficiency and slow response speed in the existing technology, and realizes fast and accurate restoration of the washing process.

CN118621515BActive Publication Date: 2025-11-21QINGDAO HAIER WASHING MASCH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310218806.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-08
Publication Date
2025-11-21
Estimated Expiration
2043-03-08

AI Technical Summary

Technical Problem

Existing technologies suffer from low query efficiency, complex judgment logic, and slow user response speed when parsing time-series compressed data in IoT washing scenarios.

Method used

By storing device address and status variable data in the status cache library and the washing cycle library, and using the device address as an index, the change process of status variables can be quickly reconstructed in combination with the target washing cycle. Inverted index technology is used to improve query efficiency.

Benefits of technology

It enables the rapid and accurate reconstruction of complete information about the washing process, improving the response speed and query efficiency of the user terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118621515B_ABST
    Figure CN118621515B_ABST
Patent Text Reader

Abstract

The application relates to a washing cycle data restoring method, device, equipment and medium. The method comprises the following steps: obtaining a device address of a clothes processing device, a target washing cycle and a state variable, wherein the state variable comprises at least one of an electricity consumption, a water consumption, a washing time length or a rotating speed; judging whether there is a target change value corresponding to the state variable under the target washing cycle in a state cache library based on the target washing cycle and the state variable; if yes, obtaining the target change value of the state variable in the target washing cycle from the state cache library; if not, obtaining an actual change value of the state variable under the target washing cycle from a washing cycle library according to the device address, wherein the actual change value comprises continuous state values when the state variable changes; and determining the target change value of the state variable according to the target washing cycle and the actual change value, wherein the target change value comprises the actual change value and the continuous state values when the state variable does not change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of smart home appliances, and specifically relates to a method, apparatus, equipment and medium for restoring washing cycle data. Background Technology

[0002] To effectively alleviate the pressure of storing washing cycle data reported by clothing processing equipment such as washing machines and dryers, the real-time washing IoT data is usually compressed and filtered by dynamic change sensing. That is, only the values ​​when the state variables change are stored, thereby eliminating the repeated and redundant values ​​of each state variable. This reduces storage space without affecting the subsequent washing cycle analysis and application.

[0003] Currently, when restoring time-series compressed data and periodic analysis results for IoT washing scenarios, the main method is to perform a reverse full table scan of the database and analyze the process of changes in a certain state quantity within the current period and the relationship between the data before and after based on program logic.

[0004] However, this method has low query efficiency, complex judgment logic, and slow client-side response speed. Summary of the Invention

[0005] In order to solve the above-mentioned problems in the prior art, that is, to facilitate users to select appropriate programs and parameters for clothing processing when there are many types of processing programs and program function parameters, this application provides a method, apparatus, device and medium for restoring washing cycle data.

[0006] Firstly, this application provides a method for restoring washing cycle data, including:

[0007] Obtain the device address, target washing cycle, and status variables of the clothing processing equipment, wherein the status variables include at least one of power consumption, water consumption, washing duration, or spin speed;

[0008] Based on the target washing cycle and the state variable, determine whether there is a target change value corresponding to the state variable under the target washing cycle in the state cache library;

[0009] If so, the target change value of the state variable within the target washing cycle is obtained from the state cache library;

[0010] If not, the actual change value of the state variable under the target washing cycle is obtained from the washing cycle library according to the device address. The actual change value includes the continuous state value when the state variable changes.

[0011] The target change value of the state variable is determined based on the target washing cycle and the actual change value, wherein the target change value includes the actual change value and the continuous state value when the state variable does not change.

[0012] In one possible implementation, determining the target change value of the state variable based on the target washing cycle and the actual change value includes:

[0013] Obtain the minimum and maximum values ​​from the actual changes;

[0014] Determine whether there is an intermediate value between the minimum and the maximum value among the actual changes;

[0015] If it does not exist, then the target change value of the state variable is determined based on the target washing cycle, minimum value, and maximum value;

[0016] If it exists, the target change value of the state variable is determined based on the target washing cycle, minimum value, intermediate value, and maximum value.

[0017] In one possible implementation, determining the target change value of the state variable based on the target washing cycle, minimum value, intermediate value, and maximum value includes:

[0018] For a first value and a second value that are adjacent in time, obtain the time required for the transition from the first value to the second value, wherein the first value is a minimum value, an intermediate value, or a maximum value, and the second value is a minimum value, an intermediate value, or a maximum value;

[0019] Based on the stage time, the first value, and the second value, determine the change value of the state variable within the stage time;

[0020] The target change value of the state variable within the target washing cycle is determined based on the change value of the state variable within each stage time period corresponding to the minimum value and the maximum value.

[0021] In one possible implementation, if the minimum value is equal to the maximum value, the method further includes:

[0022] The minimum or maximum value is taken as the target change value of the state variable within the target washing cycle.

[0023] In one possible implementation, before obtaining the device address of the laundry handling device, the target washing cycle, and the status variables, the method further includes:

[0024] Receive and parse the actual washing cycle reported by the clothing processing device to obtain the device address, status variables, and continuous status values ​​of the status variables under the actual washing cycle;

[0025] Determine whether the actual washing cycle is the current cycle;

[0026] If so, the actual washing cycle is stored in the state cache library;

[0027] If not, the continuous state values ​​when the state variable changes are taken as the actual change values, and the actual washing cycle, state variable and actual change values ​​are stored in the washing cycle library according to the device address. In the washing cycle library, each device address has its own independent storage space.

[0028] In one possible implementation, if the state variable exhibits a pattern of change, the method further includes:

[0029] The actual washing cycle, status variables, actual change values, and change patterns are categorized and stored in the washing cycle library according to the device address.

[0030] In one possible implementation, after determining the target change value of the state variable based on the target washing cycle and the actual change value, the method further includes:

[0031] The target washing cycle, status variables, and target change values ​​are sent to the user terminal.

[0032] Secondly, this application provides a device for restoring washing cycle data, comprising:

[0033] The acquisition module is used to acquire the device address, target washing cycle and status variables of the clothing processing equipment, wherein the status variables include at least one of power consumption, water consumption, washing duration or spin speed;

[0034] The first processing module is used to determine, based on the target washing cycle and the state variable, whether there is a target change value corresponding to the state variable under the target washing cycle in the state cache library; if there is, the target change value of the state variable in the target washing cycle is obtained from the state cache library; if not, the actual change value of the state variable under the target washing cycle is obtained from the washing cycle library according to the device address, wherein the actual change value includes the continuous state value when the state variable changes.

[0035] The second processing module is used to determine the target change value of the state variable based on the target washing cycle and the actual change value, wherein the target change value includes the actual change value and the continuous state value when the state variable does not change.

[0036] Thirdly, this application provides a device for restoring washing cycle data, comprising: at least one processor and a memory;

[0037] The memory stores instructions that the computer executes;

[0038] At least one processor executes computer execution instructions stored in memory, causing at least one processor to perform the method for restoring washing cycle data as described above.

[0039] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the washing cycle data restoration method described above.

[0040] This application provides a method, apparatus, device, and medium for restoring washing cycle data. The control method includes: acquiring the device address, target washing cycle, and state variables of a garment processing device, wherein the state variables include at least one of power consumption, water consumption, washing duration, or rotation speed; based on the target washing cycle and the state variables, determining whether a target change value corresponding to the state variable under the target washing cycle exists in a state cache library; if so, retrieving the target change value of the state variable within the target washing cycle from the state cache library; if not, retrieving the actual change value of the state variable under the target washing cycle from the washing cycle library based on the device address, wherein the actual change value includes continuous state values ​​when the state variable changes; and determining the target change value of the state variable based on the target washing cycle and the actual change value, wherein the target change value includes the actual change value and continuous state values ​​when the state variable does not change.

[0041] In the above method, the state variables to be restored, the device address, and the target washing cycle are first obtained. If the current cycle in the state cache is the target washing cycle, the continuous state values ​​of the corresponding state variables are directly output from the state cache. If not, the actual change values ​​of the state variables under the target washing cycle are filtered from the washing cycle library using the device address as the filtering condition. That is, the continuous state values ​​when the state variables change. Finally, combined with the washing cycle, the continuous state values ​​when the state variables do not change are determined, thereby restoring the target change values ​​of the state variables within the target washing cycle and obtaining accurate and detailed complete information on the washing process. Attached Figure Description

[0042] 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.

[0043] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;

[0044] Figure 2 A flowchart of a method for restoring washing cycle data provided in this application embodiment. Figure 1 ;

[0045] Figure 3 A flowchart of a method for restoring washing cycle data provided in this application embodiment. Figure 2 ;

[0046] Figure 4 This is a schematic diagram of a device for restoring washing cycle data according to an embodiment of the present invention;

[0047] Figure 5 This is a hardware schematic diagram of a washing cycle data restoration device provided in an embodiment of the present invention.

[0048] The accompanying drawings have illustrated specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to specific embodiments. Detailed Implementation

[0049] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0050] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein.

[0051] In this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0052] Washing cycle data is crucial for tasks such as locating after-sales service issues and tracking quality. However, the large volume of data reported by garment processing equipment puts significant pressure on storage. Therefore, a dynamic change sensing method is used to compress and filter the data, ensuring that the values ​​of each state quantity in the washing cycle data are only stored when they change, thereby eliminating some duplicate and redundant data.

[0053] However, when parsing and restoring time-series compressed data in the current washing IoT scenario, a full database table scan and program logic analysis are required to analyze the change process of a certain state quantity within the current period. This results in low query efficiency, complex judgment logic, and slow response speed on the user end.

[0054] Therefore, this application proposes a method for restoring washing cycle data. When it is necessary to restore state variable data and the current cycle in the state cache library is not the target washing cycle, this application combines the washing cycle library to restore the state variable change process data that has been compressed and filtered out in the target washing cycle, and outputs detailed and accurate complete information on the washing process.

[0055] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other. The same or similar concepts or processes may not be described again in some embodiments.

[0056] Figure 1 This is a schematic diagram of a scenario provided for an embodiment of this application. For example... Figure 1 As shown, in order to better illustrate the application scenario of the embodiments of this application, the scenario includes a clothing processing device 101, a server 102 and a user terminal 103, and the execution subject in the application scenario is the server 102.

[0057] The garment processing device 101 is a device used for processing garments, including processes such as washing, drying, softening, and conditioning. During the garment processing, the garment processing device 101 will actively report the device address, washing cycle, and continuous status values ​​of status variables to the server 102. This reporting can be done in real time or by reporting multiple washing cycles within a certain period of time.

[0058] Server 102 receives the device address, washing cycle, status variables, and continuous status values ​​of the status variables reported by the garment processing device 101. When the washing cycle is the current cycle, it stores the washing cycle, status variables, and continuous status values ​​in a status cache. When the washing cycle is not the current cycle, it uses a dynamic change-aware method to compress and filter the continuous status values ​​of the status variables and stores them in the washing cycle database according to the device address. When it is necessary to reconstruct the complete original data for the target washing cycle, it reconstructs the change process of the status variables within the target washing cycle based on the stored information and outputs all continuous status values ​​of the status variables.

[0059] User terminal 103 can receive the target washing cycle, status variables, and target change values ​​output by server 102, allowing users to obtain detailed and accurate complete information about the washing process. For example, a mobile phone is a type of user terminal 103.

[0060] In summary, server 102 obtains the continuous state values ​​of the state variables within the target washing cycle by clearly defining the state variables to be restored, the device address, and the target washing cycle, and by combining the state cache library or the washing cycle library, thereby restoring detailed and accurate complete information about the washing process.

[0061] The following is combined Figure 2 The method for restoring washing cycle data of this application is illustrated with specific embodiments.

[0062] Figure 2 A flowchart of a method for restoring washing cycle data provided in this application embodiment. Figure 1 .like Figure 2 As shown, the method includes:

[0063] S201. Obtain the device address, target washing cycle, and status variables of the clothing processing equipment, wherein the status variables include at least one of power consumption, water consumption, washing duration, or rotation speed.

[0064] In this step, the state variable can be at least one of the power consumption, water consumption, washing time or rotation speed listed in the embodiments of this application, or it can be set according to actual needs.

[0065] In the specific implementation process, the first step is to build a state cache library and a washing cycle library, including: receiving and parsing the actual washing cycle reported by the clothing processing device, obtaining the device address, state variables, and continuous state values ​​of the state variables under the actual washing cycle; and determining whether the actual washing cycle is the current cycle.

[0066] If so, the actual washing cycle will be stored in the state cache library;

[0067] If not, the continuous state values ​​when the state variables change are taken as the actual change values, and the actual washing cycle, state variables and actual change values ​​are stored in the washing cycle library according to the device address. In the washing cycle library, each device address has its own independent storage space.

[0068] Of course, if the state variables change in a pattern, the pattern can be stored together with the actual washing cycle, state variables, and actual change values ​​in the washing cycle library to facilitate the quick reconstruction of the washing process data.

[0069] S202. Based on the target washing cycle and state variables, determine whether there are target change values ​​corresponding to the state variables under the target washing cycle in the state cache library.

[0070] In the above scheme, the state cache library typically stores process data for the current washing cycle, so that users can query the continuous state values ​​of state variables during the most recent washing process.

[0071] S203. If so, retrieve the target change value of the state variable within the target washing cycle from the state cache library.

[0072] In this step, if the current cycle in the state cache is the target washing cycle to be restored, the process data of the state variables can be obtained directly from the state cache. Otherwise, it is necessary to query the washing cycle database.

[0073] S204. If not, retrieve the actual change value of the state variable under the target washing cycle from the washing cycle library according to the device address. The actual change value includes the continuous state value when the state variable changes.

[0074] In the above scheme, to facilitate the retrieval of process data corresponding to the garment processing equipment, the washing cycle database has a dedicated storage space for each equipment address. Therefore, during a query, the washing process information of the corresponding garment processing equipment can be directly obtained by using the equipment address as the index, and the actual change value after compression and filtering can be obtained by using the target washing cycle as the filtering condition.

[0075] As mentioned above, in existing technologies, restoring state variable data first requires a full table scan and program logic analysis of the database. This is because the database typically uses state variables as indexes to search for the device address to be restored and the state variable data under the target washing cycle within a massive amount of state variable data. In short, it's from A to B, where A represents the state variable and B represents the device address. However, in this embodiment, it's from B to A, using an inverted index. That is, the washing cycle database uses the device address as an index, with each device address having its own independent storage space. First, the independent storage space corresponding to the device address is found from the massive amount of independent storage spaces. Then, the process data that meets the time conditions is filtered out using the target washing cycle, thereby quickly obtaining the device address to be restored and the state variable data under the target washing cycle.

[0076] S205. Determine the target change value of the state variable based on the target washing cycle and the actual change value, wherein the target change value includes the actual change value and the continuous state value when the state variable does not change.

[0077] In this step, the actual change value is the continuous state value when the state variable changes. By combining it with the target washing cycle, the data before the state variable was compressed and filtered can be restored, that is, the continuous state value when the state variable did not change.

[0078] In this embodiment of the application, when it is necessary to restore the state variable change data during the washing process, the state variable to be restored, the target washing cycle, and the device address are first obtained. Then, it is determined whether the current cycle corresponding to the process data in the state cache library is the target washing cycle. If it is the target washing cycle, the continuous state values ​​when the state variable changes and when it does not change can be directly obtained from the state cache library. If it is not the target washing cycle, the process data corresponding to the device address is found in the washing cycle library, and the continuous state values ​​when the state variable changes are obtained by using the target washing cycle as the filtering condition. Finally, the complete continuous state values ​​of the state variable can be restored based on the actual change values ​​and the target washing cycle.

[0079] The following is combined Figure 3 The specific embodiments illustrate the process by which the target change value of the state variable is determined based on the target washing cycle and the actual change value in the washing cycle data restoration method of this application.

[0080] Figure 3 A flowchart of a method for restoring washing cycle data provided in this application embodiment. Figure 2 .like Figure 3 As shown, the method includes:

[0081] S301. Obtain the minimum and maximum values ​​among the actual changes.

[0082] In the above scheme, the actual change value is the continuous state value when the state variable changes. Therefore, there will be a minimum value when the device is first started and a maximum value when the device is about to stop. This means that there is at least one or two actual change values.

[0083] S302. Determine whether the minimum value is equal to the maximum value.

[0084] In this step, there may be at least one or two instances of actual change in value. In such cases, further processing is required depending on the specific circumstances.

[0085] S303. If so, the minimum or maximum value shall be taken as the target change value of the state variable within the target washing cycle.

[0086] In the above scheme, the minimum value and the maximum value are equal, that is, there is only one actual change value. This indicates that the state variable does not change when the equipment starts up and stops. Therefore, the state variable remains constant within the target washing cycle, and the maximum or minimum value is the target change value.

[0087] S304. If not, determine whether there is an intermediate value between the minimum and maximum values ​​in the actual change values.

[0088] In this step, the minimum value and the maximum value are not equal, meaning there are at least two actual changes. At this point, it is necessary to further determine whether there is an intermediate value. If there is an intermediate value, the actual changes are more than two; if there is no intermediate value, the actual changes are only two.

[0089] S305. If it does not exist, then determine the target change value of the state variable based on the target washing cycle, minimum value, and maximum value.

[0090] In the above scheme, there is no intermediate value, which means that the state variable only changed twice within the target washing cycle. One change was the minimum value, and the other change was the maximum value. Since there are corresponding data records for the minimum and maximum values, the changes of the state variable throughout the entire washing process can be reconstructed by combining the target washing cycle.

[0091] S306. If it exists, for the first value and the second value that are adjacent in time, obtain the time required for the stage from the first value to the second value, where the first value is the minimum value, the middle value or the maximum value, and the second value is the minimum value, the middle value or the maximum value.

[0092] In this step, there may be one, two or more intermediate values. In this case, it is necessary to process them in stages. However, in any stage, it is necessary to clarify the stage time required for two adjacent first and second values. The multiple stage times are pieced together to form the target washing cycle.

[0093] S307. Based on the stage time, the first value, and the second value, determine the change value of the state variable within the stage time.

[0094] In the above scheme, the data processing method is the same as in step S305. The first value can be regarded as the minimum value, the second value can be regarded as the maximum value, and the stage time can be regarded as the target washing cycle. Then the changes of the state variables within this small stage can be obtained. Step S305 has a detailed derivation process, which will not be elaborated here.

[0095] S308. Determine the target change value of the state variable within the target washing cycle based on the change value of the state variable within each stage time corresponding to the minimum and maximum values.

[0096] In this step, the target washing cycle is formed by piecing together the time periods of multiple stages. Then, the value of the change of the state variable within the multiple stages is the target change value of the state variable within the target washing cycle.

[0097] In this embodiment, the actual change value is the value when the state variable changes. By judging the relationship between the minimum and maximum values ​​in the actual change value, it can be further determined whether there is an intermediate value between the minimum and maximum values ​​of the state variable. If there is no intermediate value, the complete process data of the state variable is determined directly based on the minimum value, the maximum value and the target washing cycle. If there is an intermediate value, the target washing cycle is divided into multiple stages, and the change value of the state variable is obtained in each stage, so that the target change value of the state variable can be further clarified.

[0098] In summary, the method for restoring washing cycle data provided in this application first obtains the state variable to be restored, the device address, and the target washing cycle. If the current cycle in the state cache is the target washing cycle, the continuous state values ​​of the corresponding state variable are directly output from the state cache. If not, the actual change values ​​of the state variable under the target washing cycle are filtered from the washing cycle library using the device address as a filtering condition. That is, the continuous state values ​​when the state variable changes. Finally, combined with the washing cycle, the continuous state values ​​when the state variable does not change are determined, thereby restoring the target change values ​​of the state variable within the target washing cycle and obtaining accurate and detailed complete information about the washing process.

[0099] Figure 4This is a schematic diagram of a device for restoring washing cycle data provided in an embodiment of the present invention, as shown below. Figure 4 As shown, the device for restoring washing cycle data may include various functional modules for implementing the aforementioned method for restoring washing cycle data, and any functional module may be implemented by software / or hardware.

[0100] For example, the device for restoring the washing cycle data may include: an acquisition module 401, a first processing module 402, and a second processing module 403.

[0101] The acquisition module is used to acquire the device address, target washing cycle and status variables of the clothing processing equipment. The status variables include at least one of power consumption, water consumption, washing duration or spin speed.

[0102] The first processing module is used to determine whether there is a target change value corresponding to the state variable under the target washing cycle in the state cache library based on the target washing cycle and the state variable; if there is, the target change value of the state variable in the target washing cycle is obtained from the state cache library; if not, the actual change value of the state variable under the target washing cycle is obtained from the washing cycle library according to the device address. The actual change value includes the continuous state value when the state variable changes.

[0103] The second processing module is used to determine the target change value of the state variable based on the target washing cycle and the actual change value. The target change value includes the actual change value and the continuous state value when the state variable does not change.

[0104] Optionally, the second processing module can also be used to obtain the minimum and maximum values ​​among the actual change values; determine whether the minimum value is equal to the maximum value; if so, use the minimum or maximum value as the target change value of the state variable within the target washing cycle; if not, determine whether there is an intermediate value between the minimum and maximum values ​​among the actual change values; if not, determine the target change value of the state variable based on the target washing cycle, the minimum value, and the maximum value; if so, determine the target change value of the state variable based on the target washing cycle, the minimum value, the intermediate value, and the maximum value.

[0105] Optionally, the second processing module can also be specifically used to: obtain the stage time required from the first value to the second value for the first value and the second value that are adjacent in time, wherein the first value is the minimum value, the middle value or the maximum value, and the second value is the minimum value, the middle value or the maximum value; determine the change value of the state variable within the stage time according to the stage time, the first value and the second value; and determine the target change value of the state variable within the target washing cycle according to the change value within each stage time corresponding to the minimum value and the maximum value.

[0106] The device for restoring washing cycle data is used to execute the technical solution provided in the aforementioned method embodiment for restoring washing cycle data. Its implementation principle and technical effects are similar to those in the aforementioned method embodiment, and will not be repeated here.

[0107] This application also provides a device for restoring washing cycle data, including: at least one processor and a memory;

[0108] The memory stores instructions that the computer executes;

[0109] At least one processor executes computer execution instructions stored in memory, causing at least one processor to execute a method for restoring washing cycle data.

[0110] Figure 5 This is a hardware schematic diagram of a device for restoring washing cycle data provided in an embodiment of the present invention. Figure 5 As shown, the washing cycle data restoration device 50 provided in this embodiment includes at least one processor 501 and a memory 502. The device 50 also includes a communication component 503. The processor 501, memory 502, and communication component 503 are connected via a bus 504.

[0111] In the specific implementation process, at least one processor 501 executes computer execution instructions stored in memory 502, causing at least one processor 501 to execute the above-mentioned method for restoring washing cycle data.

[0112] The specific implementation process of processor 501 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.

[0113] In the above Figure 5 In the illustrated embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.

[0114] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.

[0115] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0116] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the washing cycle data restoration method described above.

[0117] The aforementioned computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0118] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0119] The division of units described herein is merely a logical functional division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0120] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0121] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0122] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0123] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0124] The technical solutions of this application have been described above with reference to the preferred embodiments shown in the accompanying drawings. However, it is readily understood by those skilled in the art that the scope of protection of this application is obviously not limited to these specific embodiments. The above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A method for restoring washing cycle data, characterized in that, include: Receive and parse the actual washing cycle reported by the clothing processing device to obtain the device address, status variables, and continuous status values ​​of the status variables under the actual washing cycle; determine whether the actual washing cycle is the current cycle; If so, the actual washing cycle is stored in the state cache library; If not, the continuous state values ​​when the state variable changes are taken as the actual change values, and the actual washing cycle, the state variable and the actual change values ​​are stored in the washing cycle library according to the device address. In the washing cycle library, each device address has its own independent storage space. Obtain the device address, target washing cycle, and status variables of the garment processing equipment, wherein the status variables include at least one of power consumption, water consumption, washing duration, or spin speed; Based on the target washing cycle and the state variable, determine whether the state cache library contains the target change value corresponding to the state variable under the target washing cycle; If so, the target change value of the state variable within the target washing cycle is obtained from the state cache library; If not, the actual change value of the state variable under the target washing cycle is obtained from the washing cycle library according to the device address. The actual change value includes the continuous state value when the state variable changes. The target change value of the state variable is determined based on the target washing cycle and the actual change value, wherein the target change value includes the actual change value and the continuous state value when the state variable does not change.

2. The method according to claim 1, characterized in that, Determining the target change value of the state variable based on the target washing cycle and the actual change value includes: Obtain the minimum and maximum values ​​from the actual changes; Determine whether there is an intermediate value between the minimum and the maximum value among the actual changes; If it does not exist, then the target change value of the state variable is determined based on the target washing cycle, minimum value, and maximum value; If it exists, the target change value of the state variable is determined based on the target washing cycle, minimum value, intermediate value, and maximum value.

3. The method according to claim 2, characterized in that, Determining the target change value of the state variable based on the target washing cycle, minimum value, median value, and maximum value includes: For a first value and a second value that are adjacent in time, obtain the time required for the transition from the first value to the second value, wherein the first value is a minimum value, an intermediate value, or a maximum value, and the second value is a minimum value, an intermediate value, or a maximum value; Based on the stage time, the first value, and the second value, determine the change value of the state variable within the stage time; The target change value of the state variable within the target washing cycle is determined based on the change value of the state variable within each stage time period corresponding to the minimum value and the maximum value.

4. The method according to claim 2, characterized in that, If the minimum value is equal to the maximum value, the method further includes: The minimum or maximum value is taken as the target change value of the state variable within the target washing cycle.

5. The method according to claim 1, characterized in that, If the state variable exhibits a pattern of change, the method further includes: The actual washing cycle, status variables, actual change values, and change patterns are categorized and stored in the washing cycle library according to the device address.

6. The method according to any one of claims 1 to 5, characterized in that, After determining the target change value of the state variable based on the target washing cycle and the actual change value, the method further includes: The target washing cycle, status variables, and target change values ​​are sent to the user terminal.

7. A device for restoring washing cycle data, characterized in that, include: The acquisition module is used to receive and parse the actual washing cycle reported by the clothing processing device, obtain the device address, status variables, and continuous status values ​​of the status variables under the actual washing cycle; and determine whether the actual washing cycle is the current cycle. If so, the actual washing cycle is stored in the state cache library; If not, the continuous state values ​​when the state variables change are taken as the actual change values, and the actual washing cycle, the state variables, and the actual change values ​​are stored in the washing cycle library according to the device address. In the washing cycle library, each device address has an independent storage space corresponding to each device. The device address, target washing cycle, and state variables of the clothing processing equipment are obtained, wherein the state variables include at least one of power consumption, water consumption, washing time, or spin speed. The first processing module is used to determine, based on the target washing cycle and the state variable, whether there is a target change value corresponding to the state variable under the target washing cycle in the state cache library; if there is, the target change value of the state variable in the target washing cycle is obtained from the state cache library; if not, the actual change value of the state variable under the target washing cycle is obtained from the washing cycle library according to the device address, wherein the actual change value includes the continuous state value when the state variable changes. The second processing module is used to determine the target change value of the state variable based on the target washing cycle and the actual change value, wherein the target change value includes the actual change value and the continuous state value when the state variable does not change.

8. A device for restoring washing cycle data, characterized in that, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method for restoring washing cycle data as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps of the method for restoring washing cycle data as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Washing control method and system

    CN115110244A

  • Washing program recommendation method and device, equipment and storage medium

    CN115584611A