Liquid discharge control method, drinking water apparatus, and storage medium
AssigneeBeijing Xiaomi Mobile Software Co., Ltd.
InventorKe Zeng
Life of this patent
Estimating the term…
Abstract
A liquid discharge control method includes acquiring a cup height of a cup in response to detecting that a cup is placed in a preset position, controlling a liquid outlet to open for liquid discharge in response to receiving a liquid discharge instruction; acquiring a real-time liquid level height in the cup during the liquid discharge, and controlling the liquid outlet to open or close based on the cup height and the real-time liquid level height.
Claims7
A liquid discharge control method, comprising:
- acquiring a cup height of a cup in response to detecting that a cup is placed in a preset position;
- controlling a liquid outlet to open for liquid discharge in response to receiving a liquid discharge instruction;
- acquiring a real-time liquid level height in the cup during the liquid discharge;
- and
- controlling the liquid outlet to open or close based on the cup height and the real-time liquid level height,
- wherein the controlling the liquid outlet to open or close based on the cup height and the real-time liquid level height comprises:
- determining a target liquid level height of the cup based on the cup height;
- controlling the liquid outlet to remain open to continue the liquid discharge in response to that the real-time liquid level height does not reach the target liquid level height;
- or
- controlling the liquid outlet to close to stop the liquid discharge in response to that the real-time liquid level height reaches the target liquid level height;
- wherein the determining the target liquid level height of the cup based on the cup height comprises:
- acquiring a pre-stored cup-full liquid level height ratio, wherein the cup-full liquid level height ratio is configured for indicating a ratio of a liquid level height when the cup is full to the cup height;
- determining the target liquid level height based on the cup height and the cup-full liquid level height ratio;
- the liquid discharge control method further comprising:
- generating prompt message for inputting the cup-full liquid level height ratio;
- and
- storing the cup-full liquid level height ratio in response to receiving a currently input cup-full liquid level height ratio based on the prompt message, and
- after the cup-full liquid level height ratio is stored, reading the cup-full liquid level height ratio to determine the target liquid level height.
A drinking water apparatus, comprising a body, wherein the body comprises a liquid circulation pipeline and a liquid outlet communicated with the liquid circulation pipeline, and the body further comprises a height detection module, a liquid level detection module, a liquid discharge control component, a processor and a memory for storing computer programs;
- wherein the height detection module is configured to detect a cup height of a cup, the liquid level detection module is configured to detect a liquid level height in the cup, and the liquid discharge control component is configured to control the liquid outlet to open or close;
- and
- wherein when executing the computer programs, the processor is configured to:
- acquire the cup height of the cup in response to detecting that the cup is placed in a preset position;
- control the liquid outlet to open for liquid discharge in response to receiving a liquid discharge instruction;
- acquire a real-time liquid level height in the cup during the liquid discharge;
- and
- control the liquid outlet to open or close based on the cup height and the real-time liquid level height;
- wherein for controlling the liquid outlet to open or close based on the cup height and the real-time liquid level height, the processor is further configured to:
- determine a target liquid level height of the cup based on the cup height;
- control the liquid outlet to remain open to continue the liquid discharge in response to that the real-time liquid level height does not reach the target liquid level height;
- or
- control the liquid outlet to close to stop the liquid discharge in response to that the real-time liquid level height reaches the target liquid level height;
- wherein for determining the target liquid level height of the cup based on the cup height, the processor is further configured to:
- acquire a pre-stored cup-full liquid level height ratio, wherein the cup-full liquid level height ratio is configured for indicating a ratio of a liquid level height when the cup is full to the cup height;
- and
- determine the target liquid level height based on the cup height and the cup-full liquid level height ratio;
- and
- the processor is further configured to:
- generate prompt message for inputting the cup-full liquid level height ratio;
- and
- store the cup-full liquid level height ratio in response to receiving a currently input cup-full liquid level height ratio based on the prompt message, and
- after the cup-full liquid level height ratio is stored, read the cup-full liquid level height ratio to determine the target liquid level height.
A computer-readable storage medium, storing computer programs thereon, wherein when executed by a processor, the computer programs are configured to:
- acquire a cup height of a cup in response to detecting that the cup is placed in a preset position;
- control a liquid outlet to open for liquid discharge in response to receiving a liquid discharge instruction;
- acquire a real-time liquid level height in the cup during the liquid discharge;
- and
- control the liquid outlet to open or close based on the cup height and the real-time liquid level height;
- wherein for controlling the liquid outlet to open or close based on the cup height and the real-time liquid level height, the computer programs are further configured to:
- determine a target liquid level height of the cup based on the cup height;
- control the liquid outlet to remain open to continue the liquid discharge in response to that the real-time liquid level height does not reach the target liquid level height;
- or
- control the liquid outlet to close to stop the liquid discharge in response to that the real-time liquid level height reaches the target liquid level height;
- wherein for determining the target liquid level height of the cup based on the cup height, the computer programs are further configured to:
- acquire a pre-stored cup-full liquid level height ratio, wherein the cup-full liquid level height ratio is configured for indicating a ratio of a liquid level height when the cup is full to the cup height;
- and
- determine the target liquid level height based on the cup height and the cup-full liquid level height ratio;
- and
- the computer programs are further configured to:
- generate prompt message for inputting the cup-full liquid level height ratio;
- and
- store the cup-full liquid level height ratio in response to receiving a currently input cup-full liquid level height ratio based on the prompt message;
- and
- after the cup-full liquid level height ratio is stored, read the cup-full liquid level height ratio to determine the target liquid level height.
Dependencies are inferred from the claim text.