CN111676650A - Water level determination method and device and computer storage medium - Google Patents

Water level determination method and device and computer storage medium Download PDF

Info

Publication number
CN111676650A
CN111676650A CN202010388222.0A CN202010388222A CN111676650A CN 111676650 A CN111676650 A CN 111676650A CN 202010388222 A CN202010388222 A CN 202010388222A CN 111676650 A CN111676650 A CN 111676650A
Authority
CN
China
Prior art keywords
value
target
water level
difference
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010388222.0A
Other languages
Chinese (zh)
Inventor
吴浩
李宗涛
林成嘉
王昊天
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Little Swan Electric Co Ltd
Original Assignee
Wuxi Little Swan Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Little Swan Electric Co Ltd filed Critical Wuxi Little Swan Electric Co Ltd
Priority to CN202010388222.0A priority Critical patent/CN111676650A/en
Publication of CN111676650A publication Critical patent/CN111676650A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F33/00Control of operations performed in washing machines or washer-dryers 
    • D06F33/30Control of washing machines characterised by the purpose or target of the control 
    • D06F33/32Control of operational steps, e.g. optimisation or improvement of operational steps depending on the condition of the laundry
    • D06F33/34Control of operational steps, e.g. optimisation or improvement of operational steps depending on the condition of the laundry of water filling
    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F33/00Control of operations performed in washing machines or washer-dryers 
    • D06F33/30Control of washing machines characterised by the purpose or target of the control 
    • D06F33/46Control of the energy or water consumption
    • DTEXTILES; PAPER
    • D06TREATMENT OF TEXTILES OR THE LIKE; LAUNDERING; FLEXIBLE MATERIALS NOT OTHERWISE PROVIDED FOR
    • D06FLAUNDERING, DRYING, IRONING, PRESSING OR FOLDING TEXTILE ARTICLES
    • D06F2103/00Parameters monitored or detected for the control of domestic laundry washing machines, washer-dryers or laundry dryers
    • D06F2103/02Characteristics of laundry or load
    • D06F2103/04Quantity, e.g. weight or variation of weight

Landscapes

  • Engineering & Computer Science (AREA)
  • Textile Engineering (AREA)
  • Control Of Washing Machine And Dryer (AREA)

Abstract

The embodiment of the invention discloses a water level determination method, a water level determination device and a computer storage medium. The method comprises the following steps: determining a first value and a second value; the first value is determined based on a selection instruction; the second value is determined based on the target object; comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the device.

Description

Water level determination method and device and computer storage medium
Technical Field
The invention relates to a household appliance control technology, in particular to a water level determination method, a water level determination device and a computer storage medium.
Background
The appearance of intelligent household appliances brings great convenience to the daily life of people. For example, a washing machine, a user can wash the clothes only by selecting a corresponding washing mode, a washing water level and the like, but the user is difficult to determine the specific water level required during selection, and if the water level is too low, the problem exists in washing; if the water level is too high, there is a problem of wasting water.
Disclosure of Invention
In order to solve the existing technical problem, embodiments of the present invention provide a water level determining method, apparatus, and computer storage medium.
In order to achieve the above purpose, the technical solution of the embodiment of the present invention is realized as follows:
the embodiment of the invention provides a water level determination method, which comprises the following steps:
determining a first value and a second value; the first value is determined based on a selection instruction; the second value is determined based on the target object;
comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the device.
In the foregoing solution, the determining the first value includes:
receiving a selection instruction;
and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
In the foregoing solution, determining the second value includes:
detecting information of a target object;
and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
In the above solution, the target object includes: an article to be washed;
the information of the detection target object comprises: detecting the weight of the articles to be washed;
correspondingly, the querying a preset object information and water level corresponding relation according to the information of the target object to determine the water level corresponding to the target object includes:
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
In the foregoing solution, the comparing the first value and the second value, and determining a target value according to a comparison result includes:
selecting the second value as a target value in response to the second value being greater than the first value and a difference between the second value and the first value exceeding a preset threshold;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In the foregoing solution, the comparing the first value and the second value, and determining a target value according to a comparison result includes:
selecting the second value as a target value in response to the second value being less than the first value and a difference between the second value and the first value exceeding a predetermined difference;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
In the foregoing solution, the comparing the first value and the second value, and determining a target value according to a comparison result includes:
adjusting the first numerical value to obtain a first final numerical value as a target numerical value corresponding to the second numerical value being larger than the first numerical value and the difference between the second numerical value and the first numerical value exceeding a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In the foregoing solution, the comparing the first value and the second value, and determining a target value according to a comparison result includes:
adjusting the first value to obtain a second final value as a target value corresponding to the second value being smaller than the first value and the difference between the second value and the first value exceeding a preset difference; the second final value is between the first value and the second value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
An embodiment of the present invention further provides a water level determining apparatus, including: the device comprises a first processing module and a second processing module; wherein the content of the first and second substances,
the first processing module is used for determining a first numerical value and a second numerical value; the first value is determined based on a selection instruction; the second value is determined based on the target object;
the second processing module is used for comparing the first numerical value with the second numerical value and determining a target numerical value according to a comparison result; the target value represents a value for controlling the water level of the device.
In the above scheme, the first processing module is configured to receive a selection instruction;
and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
In the above scheme, the first processing module is configured to detect information of a target object;
and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
In the above solution, the target object includes: an article to be washed;
the first processing module is specifically used for detecting the weight of the articles to be washed;
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
In the foregoing solution, the second processing module is configured to select the second value as a target value in response to that the second value is greater than the first value and a difference between the second value and the first value exceeds a preset threshold;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In the foregoing solution, the second processing module is configured to select the second value as a target value in response to that the second value is smaller than the first value and a difference between the second value and the first value exceeds a preset difference;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
In the foregoing scheme, the second processing module is configured to adjust the first value to obtain a first final value as a target value, where the second value is greater than the first value and a difference between the second value and the first value exceeds a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In the foregoing scheme, the second processing module is configured to adjust the first value to obtain a second final value as a target value, in response to that the second value is smaller than the first value and a difference between the second value and the first value exceeds a preset difference; the second final value is between the first value and the second value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
An embodiment of the present invention further provides a water level determining apparatus, including: a processor and a memory for storing a computer program capable of running on the processor; wherein the content of the first and second substances,
the processor is configured to execute the steps of any one of the above water level determination methods when running the computer program.
Embodiments of the present invention also provide a computer storage medium having computer instructions stored thereon, where the computer instructions, when executed by a processor, implement the steps of any of the above water level determination methods.
The embodiment of the invention provides a water level determination method, a water level determination device and a computer storage medium, wherein the method comprises the following steps: determining a first value and a second value; the first value is determined based on a selection instruction; the second value is determined based on the target object; comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the device. By adopting the technical scheme of the embodiment of the invention, the water level can be selected according to the user selection and the condition of the target object (namely the object to be washed), the condition of wasting water is avoided, the clothes are prevented from being damaged when the water amount is too small, and the user experience is improved.
Drawings
Fig. 1 is a schematic flow chart of a water level determination method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating another water level determination method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a water level determination method according to another embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a water level determining apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural view of another water level determining apparatus according to an embodiment of the present invention.
Detailed Description
In various embodiments of the present invention, a first value and a second value are determined; the first value is determined based on a selection instruction; the second value is determined based on the target object; comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the device.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a water level determination method according to an embodiment of the present invention; as shown in fig. 1, the method includes:
step 101, determining a first numerical value and a second numerical value; the first value is determined based on a selection instruction; the second value is determined based on the target object;
102, comparing the first numerical value with the second numerical value, and determining a target numerical value according to a comparison result;
wherein the target value represents a value of the water level of the control device;
the method may be applied to the apparatus, in particular a cleaning apparatus, such as a washing machine;
that is, the target value may be a water level value corresponding to a required amount of water when the washing machine washes.
In one embodiment, the first value is a value corresponding to a water level set by a user; specifically, the user may select the water level through a human-machine interface of the washing machine (including operation keys provided by the washing machine);
the determining a first value comprises:
receiving a selection instruction;
and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
Specifically, a user clicks an operation key related to the water level in a human-computer interaction interface, the washing machine receives a selection instruction, the water level corresponding to the corresponding operation key is determined according to the selection instruction, and a first numerical value is determined based on the water level corresponding to the determined selection instruction.
In one embodiment, determining the second value comprises:
detecting information of a target object;
and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
Here, the target object includes: an article to be washed; for example, washing machines such as clothes, quilts, bed sheets, etc. can clean objects;
the information of the detection target object comprises: detecting the weight of the articles to be washed;
correspondingly, the querying a preset object information and water level corresponding relation according to the information of the target object to determine the water level corresponding to the target object includes:
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
Here, the washing machine is provided with a target object weighing function, for example, the washing machine is provided with a weight sensor by which the weight of the target object can be detected after the target object is put into the washing machine.
The preset object information and water level corresponding relation comprises: the corresponding relation between the weight of the object and the water level; for example, the following correspondence is set:
0-1KG (kilogram) of objects, wherein water level (also called gear, different gears correspond to different water level values) A is needed;
1KG-3KG object needs water level B;
3KG-5KG object needs water level C;
5KG and above, the water level D is needed.
In one embodiment, the comparing the first value and the second value and determining the target value according to the comparison result includes:
selecting the second numerical value as a target numerical value under the condition that the second numerical value is larger than the first numerical value and the difference value between the second numerical value and the first numerical value exceeds a preset threshold value;
and selecting the first value as a target value when the second value is larger than the first value and the difference between the second value and the first value is not more than a preset threshold value or when the second value is smaller than or equal to the first value.
Here, the preset threshold is preset by a developer.
The preset threshold may be 2, considering that too little water level may affect the normal operation of the machine during the washing process and may also cause damage to the target object.
That is, when the second value (i.e., the gear selected according to the weight of the target object) is greater than the first value (i.e., the gear determined according to the user's selection (selection instruction)) by 2 steps, the second value is selected as the target value.
The method provided by the embodiment of the invention is specifically executed before the washing program is operated; that is, it is specifically performed before water is injected into the washing machine; after the user puts in the clothes and selects the mode (including water level selection), the first numerical value and the second numerical value can be determined, the target numerical value is determined by the scheme provided by the embodiment of the invention, and the washing operation is executed according to the target numerical value (the execution of the washing operation comprises the step of injecting the target numerical value to represent the water level).
In another embodiment, in order to avoid the problem that too low water level may affect the normal operation of the machine during the washing process and may also cause damage to the target object; the comparing the first value and the second value and determining a target value according to the comparison result includes:
adjusting the first numerical value to obtain a first final numerical value as a target numerical value corresponding to the second numerical value being larger than the first numerical value and the difference between the second numerical value and the first numerical value exceeding a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
The above-mentioned adjusting the first value to obtain the first final value as the target value may adopt any one of the following manners, for example: taking the average value of the first numerical value and the second numerical value as a target numerical value; or taking any value as a target value; or respectively setting weights for the first numerical value selected by the user and the second numerical value determined according to the target object, respectively performing weighting processing on the first numerical value and the second numerical value based on the weights, and then averaging. Of course, other methods may be used, and are not limited herein.
The value-taking scheme can better consider the user requirements and improve the user experience.
In practical application, the water level selected by a user is considered to be far higher than the water level required by the washing target object, so that waste is caused;
in one embodiment, the comparing the first value and the second value and determining the target value according to the comparison result includes:
selecting the second value as a target value corresponding to the condition that the second value is smaller than the first value and the difference value between the first value and the second value exceeds a preset difference value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
Here, the preset difference value is preset by a developer.
The preset difference value may be 3 here, considering that the water level is excessively high to cause waste and the user may require more water for washing.
In order to avoid the problem that the water level selected by a user is far more than the water level required by the washing target object, the waste is caused; in another embodiment, the comparing the first value and the second value and determining the target value according to the comparison result includes:
adjusting the first numerical value to obtain a second final numerical value as a target numerical value corresponding to the second numerical value being smaller than the first numerical value and the difference between the second numerical value and the first numerical value exceeding a preset difference, wherein the second final numerical value is located between the first numerical value and the second numerical value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
The above-mentioned adjusting the first value to obtain the second final value as the target value may adopt any one of the following manners, for example: taking the average value of the first numerical value and the second numerical value as a target numerical value; or taking any value as a target value; or respectively setting weights for the first numerical value selected by the user and the second numerical value determined according to the target object, respectively performing weighting processing on the first numerical value and the second numerical value based on the weights, and then averaging. Of course, other methods may be used, and are not limited herein.
The value-taking scheme can better consider the user requirements and improve the user experience.
It should be noted that, the washing machine may adopt one of the above-mentioned schemes provided for avoiding the problem that too low water level may affect the normal operation of the machine during the washing process and may also damage the target object and the schemes provided for avoiding the problem that the water level selected by the user is much higher than the water level required for washing the target object and may cause waste, and then selects any of the above-mentioned schemes as required;
the washing machine may also adopt two schemes at the same time, that is, the problems of too low water level and too high water level can be avoided at the same time, and the comparing the first value and the second value determines a target value according to the comparison result, including:
selecting the second numerical value as a target numerical value or adjusting the first numerical value to obtain a third final numerical value as a target numerical value corresponding to the second numerical value being larger than the first numerical value and the difference between the second numerical value and the first numerical value exceeding a preset threshold, wherein the third final numerical value is located between the first numerical value and the second numerical value;
selecting the second value as a target value or adjusting the first value to obtain a fourth final value as the target value corresponding to the second value being smaller than the first value and the difference between the second value and the first value exceeding a preset difference; the fourth final value is between the first value and the second value;
and selecting the first value as a target value corresponding to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold value, or corresponding to the second value being less than the first value and the difference between the second value and the first value not exceeding a preset difference value.
Here, as for the method for adjusting the first value to obtain the third final value or the fourth final value, reference may be made to the above-mentioned method for the first final value and the second final value, and details are not repeated here.
In actual application, the user can have special requirements in selecting the water level, so that a prompt function is provided; specifically, after the target value is determined, a prompt message is sent to remind the user, and the user selects whether to wash according to the target value representation water level.
Specifically, the method further comprises:
after determining the target value according to the comparison result, sending a prompt message;
determining a feedback message, and determining a final result based on the feedback message;
when washing is performed based on a target value corresponding to the feedback message representation, washing operation is performed according to the target value;
and when the washing is not performed according to the target value corresponding to the representation of the feedback message, modifying the target value to set the water level for the user, namely a first value, and executing the washing operation based on the first value.
The prompt message is presented through a human-computer interaction interface of the washing machine, and can be in a voice form or a character form, and the human-computer interaction interface is provided with feedback operation keys aiming at the prompt message, including yes or no; the user can select the key, and the washing machine determines the final water level according to the result of the key pressing of the user and washes.
In the embodiment of the invention, the washing machine is also provided with a function selection for prompting or not, for example, a function switch key is arranged for a user to select whether to start the prompting function or not (specifically, whether to start the function of judging whether to perform washing according to a target numerical value again or not by the user). Specifically, in one embodiment, the human-computer interaction interface of the washing machine is provided with an on-off key, a user selects the on-off key, and the washing machine determines a selection result for the on-off key, so that the washing machine can determine whether to start the prompt function. In another embodiment, a terminal (specifically, a corresponding application) in communication with the washing machine may provide an on/off key, and accordingly, the user selects the on/off key, and the terminal determines a selection result (carrying an identifier of the corresponding washing machine) for the on/off key and sends the selection result to the washing machine, so that the washing machine may determine whether to turn on the prompt function.
The method of the embodiment of the invention comprises the steps of determining a first numerical value and a second numerical value; the first value is determined based on a selection instruction; the second value is determined based on the target object; comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the equipment; therefore, after the water level is set by the user, the water level is adjusted according to the weight of the target object (namely, the object to be washed), namely, the water level can be selected according to the user selection and the condition of the target object (namely, the object to be washed), the normal operation of the machine is prevented from being influenced by more clothes and less water, the clothes are prevented from being damaged when the water amount is too small, and the user experience is improved. In addition, waste caused by excessive water quantity selection can be avoided.
FIG. 2 is a schematic flow chart illustrating another water level determination method according to an embodiment of the present invention; as shown in fig. 2, the method includes:
step 201, determining a water level Lx set by a user;
specifically, the washing machine is provided with a human-computer interaction interface, a user clicks a key related to the water level in the human-computer interaction interface, the washing machine receives a selection instruction, the selection instruction corresponds to the water level corresponding to the corresponding key, and the water level Lx set by the user is determined based on the determined water level corresponding to the selection instruction.
Step 202, determining a fuzzy weighing water level Ly;
specifically, the washing machine is provided with a target object weighing function, and the washing machine is provided with a weight sensor by which the weight of a target object (i.e., an article to be washed) can be detected after the target object is put into the washing machine.
And inquiring preset object information and water level corresponding relation according to the weight of the object to be washed, and determining the water level corresponding to the target object with corresponding weight, namely determining the fuzzy weighing water level Ly.
The specific steps have already been described in the method shown in fig. 1, and are not described herein again.
Step 203, comparing the water level Lx set by the user with the fuzzy weighing water level Ly; when Ly-Lx is determined to be larger than 2, entering step 204; otherwise, go to step 205;
204, selecting a fuzzy weighing water level Ly as a target water level; entering step 206;
step 205, selecting a water level Lx set by a user as a target water level; entering step 206;
step 206, operating the program according to the target water level;
and step 207, ending the operation.
FIG. 3 is a schematic flow chart illustrating a water level determination method according to another embodiment of the present invention; as shown in fig. 3, when the user selects the water level by himself, that is, after the user-set water level Lx is determined and before the washing program of the washing machine is started, the user-set water level Lx and the fuzzy weighing water level Ly are compared, and if the deviation exceeds 2 steps (that is, Ly-Lx is greater than 2), the operation is performed according to the fuzzy weighing water level Ly; in this way, the target water level (i.e. the final operation water level is determined) can be selected according to the specific conditions of the user selection and the target object (i.e. the object to be washed), so that the condition that the normal operation of the machine is influenced by more clothes and less water is prevented, and the damage to the clothes caused by too less water is avoided, thereby improving the user experience.
Fig. 4 is a schematic structural diagram of a water level determining apparatus according to an embodiment of the present invention; as shown in fig. 4, the apparatus includes: the device comprises a first processing module and a second processing module; wherein the content of the first and second substances,
the first processing module is used for determining a first numerical value and a second numerical value; the first value is determined based on a selection instruction; the second value is determined based on the target object;
the second processing module is used for comparing the first numerical value with the second numerical value and determining a target numerical value according to a comparison result; the target value represents a value for controlling the water level of the device.
Specifically, the first processing module is configured to receive a selection instruction;
and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
Specifically, the first processing module is configured to detect information of a target object;
and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
Specifically, the target object includes: an article to be washed;
the first processing module is specifically used for detecting the weight of the articles to be washed;
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
Specifically, the second processing module is configured to select the second numerical value as a target numerical value in response to that the second numerical value is greater than the first numerical value and a difference between the second numerical value and the first numerical value exceeds a preset threshold;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
Specifically, the second processing module is configured to select the second numerical value as a target numerical value in response to the second numerical value being smaller than the first numerical value and a difference between the second numerical value and the first numerical value exceeding a preset difference;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
Specifically, the second processing module is configured to adjust the first value to obtain a first final value as a target value, where the second value is greater than the first value and a difference between the second value and the first value exceeds a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
Specifically, the second processing module is configured to adjust the first value to obtain a second final value as a target value, in response to that the second value is smaller than the first value and a difference between the second value and the first value exceeds a preset difference; the second final value is between the first value and the second value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
It should be noted that: in the above embodiment, when the water level determining apparatus implements the corresponding water level determining method, only the division of the program modules is taken as an example, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the server is divided into different program modules to complete all or part of the above-described processing. In addition, the apparatus provided by the above embodiment and the embodiment of the corresponding method belong to the same concept, and the specific implementation process thereof is described in the method embodiment, which is not described herein again.
FIG. 5 is a schematic structural diagram of another water level determining apparatus according to an embodiment of the present invention; as shown in fig. 5, the apparatus 50 is applied to a server, and includes: a processor 501 and a memory 502 for storing computer programs executable on the processor; wherein, the processor 501 is configured to execute, when running the computer program, the following steps: determining a first value and a second value; the first value is determined based on a selection instruction; the second value is determined based on the target object; comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the device.
In an embodiment, the processor 501 is further configured to execute, when running the computer program, the following: receiving a selection instruction; and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
In an embodiment, the processor 501 is further configured to execute, when running the computer program, the following: detecting information of a target object; and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
The target object includes: an article to be washed; in an embodiment, the processor 501 is further configured to execute, when running the computer program, the following: detecting the weight of the articles to be washed;
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
In an embodiment, the processor 501 is further configured to execute, when running the computer program, the following: selecting the second value as a target value in response to the second value being greater than the first value and a difference between the second value and the first value exceeding a preset threshold;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In an embodiment, the processor 501 is further configured to execute, when running the computer program, the following: selecting the second value as a target value in response to the second value being less than the first value and a difference between the second value and the first value exceeding a predetermined difference;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
In an embodiment, the processor 501 is further configured to execute, when running the computer program, the following: adjusting the first numerical value to obtain a first final numerical value as a target numerical value corresponding to the second numerical value being larger than the first numerical value and the difference between the second numerical value and the first numerical value exceeding a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In an embodiment, the processor 501 is further configured to execute, when running the computer program, the following: adjusting the first value to obtain a second final value as a target value corresponding to the second value being smaller than the first value and the difference between the second value and the first value exceeding a preset difference; the second final value is between the first value and the second value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
It should be noted that: the water level determining apparatus and the water level determining method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
In practical applications, the apparatus 50 may further include: at least one network interface 503. The various components in the device 50 are coupled together by a bus system 504. It is understood that the bus system 504 is used to enable communications among the components. The bus system 504 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 504 in fig. 5. The number of the processors 501 may be at least one. The network interface 503 is used for communication between the apparatus 50 and other devices in a wired or wireless manner.
The memory 502 in embodiments of the present invention is used to store various types of data to support the operation of the device 50.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general purpose Processor, a DiGital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 501 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 502, and the processor 501 reads the information in the memory 502 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the apparatus 50 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field-Programmable Gate arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs: determining a first value and a second value; the first value is determined based on a selection instruction; the second value is determined based on the target object; comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the device.
In one embodiment, the computer program, when executed by the processor, performs: receiving a selection instruction; and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
In one embodiment, the computer program, when executed by the processor, performs: detecting information of a target object; and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
The target object includes: an article to be washed; in one embodiment, the computer program, when executed by the processor, performs: detecting the weight of the articles to be washed;
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
In one embodiment, the computer program, when executed by the processor, performs: selecting the second value as a target value in response to the second value being greater than the first value and a difference between the second value and the first value exceeding a preset threshold;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In one embodiment, the computer program, when executed by the processor, performs: selecting the second value as a target value in response to the second value being less than the first value and a difference between the second value and the first value exceeding a predetermined difference;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
In one embodiment, the computer program, when executed by the processor, performs: adjusting the first numerical value to obtain a first final numerical value as a target numerical value corresponding to the second numerical value being larger than the first numerical value and the difference between the second numerical value and the first numerical value exceeding a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
In one embodiment, the computer program, when executed by the processor, performs: adjusting the first value to obtain a second final value as a target value corresponding to the second value being smaller than the first value and the difference between the second value and the first value exceeding a preset difference; the second final value is between the first value and the second value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (18)

1. A water level determination method, characterized in that the method comprises:
determining a first value and a second value; the first value is determined based on a selection instruction; the second value is determined based on the target object;
comparing the first value with the second value, and determining a target value according to a comparison result; the target value represents a value for controlling the water level of the device.
2. The method of claim 1, wherein determining the first value comprises:
receiving a selection instruction;
and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
3. The method of claim 1, wherein determining the second value comprises:
detecting information of a target object;
and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
4. The method of claim 3, wherein the target object comprises: an article to be washed;
the information of the detection target object comprises: detecting the weight of the articles to be washed;
correspondingly, the querying a preset object information and water level corresponding relation according to the information of the target object to determine the water level corresponding to the target object includes:
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
5. The method of any one of claims 1 to 4, wherein said comparing said first value with said second value and determining a target value based on the comparison comprises:
selecting the second value as a target value in response to the second value being greater than the first value and a difference between the second value and the first value exceeding a preset threshold;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
6. The method of any one of claims 1 to 4, wherein said comparing said first value with said second value and determining a target value based on the comparison comprises:
selecting the second value as a target value in response to the second value being less than the first value and a difference between the second value and the first value exceeding a predetermined difference;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
7. The method of any one of claims 1 to 4, wherein said comparing said first value with said second value and determining a target value based on the comparison comprises:
adjusting the first numerical value to obtain a first final numerical value as a target numerical value corresponding to the second numerical value being larger than the first numerical value and the difference between the second numerical value and the first numerical value exceeding a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
8. The method of any one of claims 1 to 4, wherein said comparing said first value with said second value and determining a target value based on the comparison comprises:
adjusting the first value to obtain a second final value as a target value corresponding to the second value being smaller than the first value and the difference between the second value and the first value exceeding a preset difference; the second final value is between the first value and the second value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
9. A water level determination apparatus, characterized in that the apparatus comprises: the device comprises a first processing module and a second processing module; wherein the content of the first and second substances,
the first processing module is used for determining a first numerical value and a second numerical value; the first value is determined based on a selection instruction; the second value is determined based on the target object;
the second processing module is used for comparing the first numerical value with the second numerical value and determining a target numerical value according to a comparison result; the target value represents a value for controlling the water level of the device.
10. The apparatus of claim 9, wherein the first processing module is configured to receive a selection instruction;
and determining the water level corresponding to the selection instruction according to the selection instruction, and determining a first numerical value based on the determined water level corresponding to the selection instruction.
11. The apparatus of claim 9, wherein the first processing module is configured to detect information of a target object;
and inquiring preset object information and water level corresponding relation according to the information of the target object, and determining the water level corresponding to the target object as the second numerical value.
12. The apparatus of claim 11, wherein the target object comprises: an article to be washed;
the first processing module is specifically used for detecting the weight of the articles to be washed;
and inquiring the preset object information and water level corresponding relation according to the weight of the articles to be washed, and determining the water level corresponding to the articles to be washed with the corresponding weight.
13. The apparatus according to any one of claims 9 to 12, wherein the second processing module is configured to select the second value as the target value in response to the second value being greater than the first value and a difference between the second value and the first value exceeding a predetermined threshold;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
14. The apparatus according to any one of claims 9 to 12, wherein the second processing module is configured to select the second value as the target value in response to the second value being smaller than the first value and a difference between the second value and the first value exceeding a predetermined difference;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
15. The apparatus according to any one of claims 9 to 12, wherein the second processing module is configured to adjust the first value to obtain a first final value as a target value, in response to the second value being greater than the first value and a difference between the second value and the first value exceeding a preset threshold; the first final value is between the first value and the second value;
and selecting the first value as a target value in response to the second value being greater than the first value and the difference between the second value and the first value not exceeding a preset threshold, or in response to the second value being less than or equal to the first value.
16. The apparatus according to any one of claims 9 to 12, wherein the second processing module is configured to adjust the first value to obtain a second final value as the target value, in response to the second value being smaller than the first value and a difference between the second value and the first value exceeding a preset difference; the second final value is between the first value and the second value;
selecting the first value as a target value in response to the second value being less than the first value and a difference between the second value and the first value not exceeding a predetermined difference, or in response to the second value being greater than or equal to the first value.
17. A water level determination apparatus, characterized in that the apparatus comprises: a processor and a memory for storing a computer program capable of running on the processor; wherein the content of the first and second substances,
the processor is adapted to perform the steps of the method of any one of claims 1 to 8 when running the computer program.
18. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
CN202010388222.0A 2020-05-09 2020-05-09 Water level determination method and device and computer storage medium Pending CN111676650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010388222.0A CN111676650A (en) 2020-05-09 2020-05-09 Water level determination method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010388222.0A CN111676650A (en) 2020-05-09 2020-05-09 Water level determination method and device and computer storage medium

Publications (1)

Publication Number Publication Date
CN111676650A true CN111676650A (en) 2020-09-18

Family

ID=72451851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010388222.0A Pending CN111676650A (en) 2020-05-09 2020-05-09 Water level determination method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN111676650A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103850086A (en) * 2012-11-29 2014-06-11 苏州三星电子有限公司 Washing machine water level correction control method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103850086A (en) * 2012-11-29 2014-06-11 苏州三星电子有限公司 Washing machine water level correction control method and system

Similar Documents

Publication Publication Date Title
CN105155207B (en) Monitoring method, washing machine and the washing machine of washing machine
CN108930124B (en) Control method of washing machine and washing machine
CN108018671B (en) Dewatering control method and control device for washing machine
CN108937804A (en) Water discharge control method, dish-washing machine and computer readable storage medium
CN106930039B (en) Method for adding detergent in midway of washing machine and washing machine
CN111676650A (en) Water level determination method and device and computer storage medium
CN105491242A (en) Mobile communication terminal and control method and device thereof
CN106896747A (en) Household electric appliance control method, device and mobile terminal
CN107957689B (en) Control method and electric pressure cooker
CN113930935B (en) Washing process treatment method and device and electronic equipment
CN114882882A (en) Voice instruction execution method and device, household appliance and storage medium
CN111679869B (en) Startup mode control method and device, terminal, household appliance and storage medium
CN113914066A (en) Water inlet fault detection method and device, clothes treatment equipment and storage medium
CN111663293B (en) Clothes processing device, control method, device, equipment and storage medium thereof
CN111329421A (en) Dish washing machine and control method thereof
CN118345594A (en) Laundry treating apparatus, control method, device and medium thereof
CN113774624B (en) Dehydration control method, device and computer storage medium
CN112411123A (en) Rinsing control method and device and washing equipment
CN114318760B (en) Control method, water-carrying household appliance and storage medium
CN111364201A (en) Clothes processing device, control method and control system thereof, and storage medium
CN114606707A (en) Method and device for determining washing parameters, clothes processing equipment and storage medium
CN113445256B (en) Detergent delivery method for washing equipment
CN114002959A (en) Electrical equipment control method and device and electrical equipment
CN112899979A (en) Laundry detergent control method and device for washing machine, washing machine and storage medium
CN111676654B (en) Control method of household appliance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200918