CN108345226B - Method and device for controlling water output from a water dispenser - Google Patents

Method and device for controlling water output from a water dispenser Download PDF

Info

Publication number
CN108345226B
CN108345226B CN201810041631.6A CN201810041631A CN108345226B CN 108345226 B CN108345226 B CN 108345226B CN 201810041631 A CN201810041631 A CN 201810041631A CN 108345226 B CN108345226 B CN 108345226B
Authority
CN
China
Prior art keywords
water
state
water dispenser
waiting
time
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.)
Active
Application number
CN201810041631.6A
Other languages
Chinese (zh)
Other versions
CN108345226A (en
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.)
Haikou Meilan Qinxuan Technology Service Center
Original Assignee
Guangzhou Multi Water Environmental Protection Technology 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 Guangzhou Multi Water Environmental Protection Technology Co Ltd filed Critical Guangzhou Multi Water Environmental Protection Technology Co Ltd
Priority to CN201810041631.6A priority Critical patent/CN108345226B/en
Publication of CN108345226A publication Critical patent/CN108345226A/en
Application granted granted Critical
Publication of CN108345226B publication Critical patent/CN108345226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47JKITCHEN EQUIPMENT; COFFEE MILLS; SPICE MILLS; APPARATUS FOR MAKING BEVERAGES
    • A47J31/00Apparatus for making beverages
    • A47J31/44Parts or details or accessories of beverage-making apparatus

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Food Science & Technology (AREA)
  • Devices For Dispensing Beverages (AREA)

Abstract

The invention discloses a water outlet control method of a water dispenser, which comprises the following steps: detecting whether a starting instruction sent by a server is received or not in a starting waiting state; when a starting instruction sent by a server is received, switching the current state of the water dispenser into an operation waiting state, and setting the waiting time as a first time threshold; in an operation waiting state, detecting whether a water outlet control signal input by a user is received within the waiting time; when the water outlet control signal input by the user is not received within the waiting time, switching the current state of the water dispenser into a starting waiting state; and when a water outlet instruction input by a user is received within the waiting time, switching the current state of the water dispenser into a working state, and controlling the water dispenser to output drinking water. The invention can avoid a single user from occupying the water dispenser for a long time, improve the service efficiency of the water dispenser and enable the water dispenser to serve more users. Meanwhile, the invention also provides a water outlet control device of the water dispenser.

Description

一种饮水机出水控制方法及装置Method and device for controlling water output from a water dispenser

技术领域technical field

本发明涉及饮水机技术领域,具体涉及一种饮水机出水控制方法及装置。The invention relates to the technical field of water dispensers, in particular to a water outlet control method and device of a water dispenser.

背景技术Background technique

随着国民经济高速发展,人们生活质量的要求也随之提高。现有的大部分饮水机,一般都安装在家里、单位或学校等固定场所,为特定人群所使用,无法满足人们在户外环境获取可饮用水源的要求,户外型饮水机应运而生。With the rapid development of the national economy, the requirements for people's quality of life have also increased. Most of the existing drinking fountains are generally installed in fixed places such as homes, units or schools, and are used by specific groups of people. They cannot meet the requirements of people to obtain drinking water sources in the outdoor environment. Outdoor drinking fountains came into being.

由于这种户外型饮水机服务的人口众多,当某一个人长时间占用一户外型饮水机时,其他人将无法使用该饮水机,不能有效发挥户外型饮水机的作用,无法拓宽户外型饮水机的服务范围。Due to the large population served by this outdoor water dispenser, when a person occupies an outdoor water dispenser for a long time, other people will not be able to use the water dispenser, cannot effectively play the role of the outdoor water dispenser, and cannot expand the outdoor water dispenser. range of service.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题是,提供一种饮水机出水控制方法及装置,能在用户在一段时间内未输入操作信号时,将饮水机的当前状态切换至开启等待状态,以避免单个用户长时间占用饮水机,提高饮水机的服务效率,使饮水机能服务更多的用户,为拓宽饮水机的服务范围提供保障。The technical problem to be solved by the present invention is to provide a water outlet control method and device of a water dispenser, which can switch the current state of the water dispenser to the on-waiting state when the user does not input an operation signal for a period of time, so as to avoid the long-term operation of a single user. Time to occupy the water dispenser, improve the service efficiency of the water dispenser, enable the water dispenser to serve more users, and provide a guarantee for broadening the service scope of the water dispenser.

为了解决上述技术问题,本发明一方面提供了一种饮水机出水控制方法,包括:In order to solve the above-mentioned technical problems, one aspect of the present invention provides a water outlet control method of a water dispenser, comprising:

在开启等待状态下,检测是否接收到服务器发送的开启指令;In the open waiting state, detect whether an open command sent by the server is received;

在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;When receiving the opening instruction sent by the server, the current state of the water dispenser is switched to the operation waiting state, and the waiting time is set as the first time threshold;

在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;In the operation waiting state, detect whether the water outlet control signal input by the user is received within the waiting time;

在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;When the water outlet control signal input by the user is not received within the waiting time, the current state of the water dispenser is switched to the open waiting state;

在所述等待时间内接收到用户输入的出水指令时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水。When receiving the water outlet instruction input by the user within the waiting time, the current state of the water dispenser is switched to the working state, and the water dispenser is controlled to output drinking water.

在一种可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:

在工作状态下,判断最近一次切换至开启等待状态时到当前时刻饮水机的出水总量是否达到水量阈值;In the working state, determine whether the total amount of water output from the water dispenser reaches the water volume threshold when the last switch to the open waiting state to the current moment;

在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量达到水量阈值时,将饮水机的当前状态切换为开启等待状态,并控制饮水机停止输出饮用水。When the total water output of the water dispenser reaches the water volume threshold at the time of the last switch to the open waiting state to the current moment, the current state of the water dispenser is switched to the open waiting state, and the water dispenser is controlled to stop outputting drinking water.

在一种可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:

在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量未达到水量阈值时,检测是否接收到用户输入的停止出水控制信号;When the total water output of the water dispenser does not reach the water volume threshold at the time of the latest switch to the open waiting state to the current moment, it is detected whether the control signal for stopping water output input by the user is received;

在接收到用户输入的停止出水控制信号时,将饮水机的当前工作状态切换为操作等待状态,设定等待时间为第二时间阈值。When receiving the stop water control signal input by the user, the current working state of the water dispenser is switched to the operation waiting state, and the waiting time is set as the second time threshold.

在一种可选的实施方式中,所述第二时间阈值小于所述第一时间阈值。In an optional implementation manner, the second time threshold is smaller than the first time threshold.

为了实现相同的目的,本发明另一方面提供了一种饮水机出水控制装置,包括:In order to achieve the same purpose, another aspect of the present invention provides a water outlet control device for a water dispenser, comprising:

第一检测模块,用于在开启等待状态下,检测是否接收到服务器发送的开启指令;a first detection module, configured to detect whether an opening instruction sent by the server is received in an opening waiting state;

第一状态切换模块,用于在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;The first state switching module is used to switch the current state of the water dispenser to the operation waiting state when receiving the opening instruction sent by the server, and set the waiting time as the first time threshold;

第二检测模块,用于在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;The second detection module is used to detect whether the water outlet control signal input by the user is received within the waiting time in the operation waiting state;

第二状态切换模块,用于在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;The second state switching module is used to switch the current state of the water dispenser to the open waiting state when the water outlet control signal input by the user is not received within the waiting time;

第三状态切换模块,用于在所述等待时间内接收到用户输入的出水指令时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水。The third state switching module is configured to switch the current state of the water dispenser to the working state and control the water dispenser to output drinking water when receiving the water outlet instruction input by the user within the waiting time.

在一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:

第三检测模块:用于在工作状态下,判断最近一次切换至开启等待状态时到当前时刻饮水机的出水总量是否达到水量阈值;The third detection module is used to judge whether the total amount of water output from the water dispenser has reached the water volume threshold when the latest switch to the open waiting state to the current moment in the working state;

第四状态切换模块,用于在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量达到水量阈值时,将饮水机的当前状态切换为开启等待状态,并控制饮水机停止输出饮用水。The fourth state switching module is used to switch the current state of the water dispenser to the on-waiting state and control the water dispenser to stop outputting drinking water when the total water output of the water dispenser at the current moment reaches the water volume threshold when the last time it is switched to the on-waiting state water.

在一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:

第四检测模块,用于在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量未达到水量阈值时,检测是否接收到用户输入的停止出水控制信号;The fourth detection module is used to detect whether a stop water control signal input by a user is received when the total amount of water output from the water dispenser does not reach the water volume threshold when it is switched to the open waiting state last time to the current moment;

第五状态切换模块,用于在接收到用户输入的停止出水控制信号时,将饮水机的当前工作状态切换为操作等待状态,设定等待时间为第二时间阈值。The fifth state switching module is used to switch the current working state of the water dispenser to the operation waiting state when receiving the stop water control signal input by the user, and set the waiting time as the second time threshold.

在一种可选的实施方式中,所述第二时间阈值小于所述第一时间阈值。In an optional implementation manner, the second time threshold is smaller than the first time threshold.

相比于现有技术,本发明的有益效果在于:本发明提供一种饮水机出水控制方法及装置,其中方法包括:在开启等待状态下,检测是否接收到服务器发送的开启指令;在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;在所述等待时间内接收到用户输入的出水指令时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水。当用户需要使用饮水机时,通过服务器发送开启指令,使饮水机的当前状态切换为操作等待状态,等待用户输入操作控制信号;若用户在第一时间阈值内输入操作控制信号,将控制饮水机输出饮用水;若用户在第一时间阈值内未输入操作控制信号时,饮水机的当前状态将切换为开启等待状态;在开启等待状态下,任何用户都能通过服务器发送开启指令,避免单个用户长时间占用饮水机,提高饮水机的服务效率,使饮水机能服务更多的用户,为拓宽饮水机的服务范围提供保障。Compared with the prior art, the beneficial effect of the present invention is that: the present invention provides a water outlet control method and device of a water dispenser, wherein the method includes: in a state of waiting for opening, detecting whether an opening instruction sent by a server is received; When the opening command sent by the server, the current state of the water dispenser is switched to the operation waiting state, and the waiting time is set as the first time threshold; in the operation waiting state, it is detected whether the water outlet control input by the user is received within the waiting time. signal; when the water outlet control signal input by the user is not received within the waiting time, the current state of the water dispenser is switched to the open waiting state; when the water outlet command input by the user is received within the waiting time, the water dispenser The current state is switched to the working state, and the water dispenser is controlled to output drinking water. When the user needs to use the water dispenser, the server sends an opening instruction to switch the current state of the water dispenser to the operation waiting state, waiting for the user to input the operation control signal; if the user inputs the operation control signal within the first time threshold, the water dispenser will be controlled Output drinking water; if the user does not input an operation control signal within the first time threshold, the current state of the water dispenser will be switched to the open waiting state; in the open waiting state, any user can send an opening command through the server to avoid a single user Occupy the water dispenser for a long time, improve the service efficiency of the water dispenser, enable the water dispenser to serve more users, and provide a guarantee for broadening the service scope of the water dispenser.

附图说明Description of drawings

为了更清楚地说明本发明的技术方案,下面将对实施方式中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施方式,对于本领域普通技术人员来说,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the present invention more clearly, the following will briefly introduce the accompanying drawings used in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention, which are common in the art. For technical personnel, other drawings can also be obtained from these drawings without creative labor.

图1是本发明实施例提供的一种饮水机出水控制方法的流程示意图;1 is a schematic flowchart of a method for controlling the water output of a water dispenser according to an embodiment of the present invention;

图2是本发明实施例提供的一种饮水机出水控制装置的流程示意图。FIG. 2 is a schematic flowchart of a water outlet control device of a water dispenser according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

请参阅图1,其是本发明实施例提供的一种饮水机出水控制方法的流程示意图。本发明实施例提供了一种饮水机出水控制方法,包括:Please refer to FIG. 1 , which is a schematic flowchart of a method for controlling water output from a water dispenser according to an embodiment of the present invention. The embodiment of the present invention provides a water outlet control method of a water dispenser, including:

S1、在开启等待状态下,检测是否接收到服务器发送的开启指令;S1. In the open waiting state, detect whether an open command sent by the server is received;

S2、在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;S2. When receiving the opening instruction sent by the server, switch the current state of the water dispenser to the operation waiting state, and set the waiting time as the first time threshold;

S3、在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;S3, in the operation waiting state, detect whether the water outlet control signal input by the user is received within the waiting time;

S4、在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;S4, when the water outlet control signal input by the user is not received within the waiting time, switch the current state of the water dispenser to the open waiting state;

S5、在所述等待时间内接收到用户输入的出水指令时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水。S5. When receiving the water outlet instruction input by the user within the waiting time, switch the current state of the water dispenser to the working state, and control the water dispenser to output drinking water.

在本实施例中,当用户需要使用饮水机饮用饮用水时,用户通过登录服务器,通过服务器发送开启指令,使饮水机的当前状态切换为操作等待状态;在操作等待状态下,用户可输入出水控制信号以控制饮水机输出饮用水;当在操作状态下时,若用户在第一时间阈值内未输入出水控制信号,则判定为不需要为用户提供饮用水,因而将饮水机的当前状态切换为开启等待状态,以使其他用户能通过服务器发送开启指令,以从饮水机中获取饮用水。因此,用户只需要在通过服务器发送开启指令后的第一时间阈值内输入出水控制信号,即能从饮水机中获取到饮用水;而当用户在通过服务器发送开启指令后的第一时间阈值内未输入出水控制信号,则无法完成本次取水操作,无法获取到饮用水,饮水机的当前状态也将切换回开启等待状态,以使其他用户能通过服务器发送开启指令以获取饮用水。In this embodiment, when the user needs to use the water dispenser to drink drinking water, the user logs in to the server and sends an opening instruction through the server to switch the current state of the water dispenser to the operation waiting state; in the operation waiting state, the user can input the water outlet Control signal to control the drinking water dispenser to output drinking water; when in the operating state, if the user does not input the water outlet control signal within the first time threshold, it is determined that drinking water is not required for the user, so the current state of the water dispenser is switched. To turn on the waiting state, so that other users can send turn-on commands through the server to obtain drinking water from the water dispenser. Therefore, the user only needs to input the water outlet control signal within the first time threshold after sending the opening instruction through the server, that is, drinking water can be obtained from the water dispenser; and when the user sends the opening instruction through the server within the first time threshold If the water outlet control signal is not input, the water intake operation cannot be completed, and the drinking water cannot be obtained. The current state of the water dispenser will also be switched back to the open waiting state, so that other users can send the opening command through the server to obtain drinking water.

应当理解的是,用户通过登录服务器的方法可以但不限于通过移动终端扫描饮水机上的二维码以登录服务器的方法;用户输入出水控制信号的方法可以但不限于通过按压或触摸饮水机上的开关以输入出水控制信号的方法。It should be understood that the method of logging in to the server by the user can be, but not limited to, the method of scanning the QR code on the water dispenser through the mobile terminal to log in to the server; the method of inputting the water outlet control signal by the user can be, but not limited to, by pressing or touching the switch on the water dispenser. The method of inputting the water outlet control signal.

需要说明的是,所述饮用水包括开水与温开水,用户可以通过登录服务器选择输出饮用水类型,饮水机根据用户输入的饮用水类型信息输出对应类型的饮用水。It should be noted that the drinking water includes boiled water and warm boiled water, the user can select the output drinking water type by logging into the server, and the water dispenser outputs the corresponding type of drinking water according to the drinking water type information input by the user.

在一种可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:

S6、在工作状态下,判断最近一次切换至开启等待状态时到当前时刻饮水机的出水总量是否达到水量阈值;S6. In the working state, determine whether the total amount of water output from the water dispenser reaches the water volume threshold when the latest switch to the open waiting state to the current moment;

S7、在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量达到水量阈值时,将饮水机的当前状态切换为开启等待状态,并控制饮水机停止输出饮用水。S7. When the total water output of the water dispenser reaches the water volume threshold at the current moment when it is switched to the on-waiting state last time, the current state of the water dispenser is switched to the on-waiting state, and the water dispenser is controlled to stop outputting drinking water.

在本实施例中,限定用户单次使用输出的总水量,设定为水量阈值,当用户单次使用饮水机输出饮用水总量达到水量阈值时,饮水机不再输出饮用水,并将饮水机的当前状态切换为开启等待状态,以使其他用户能通过服务器发送开启指令以获取饮用水。In this embodiment, the total amount of water output by the user in a single use is limited and set as the water amount threshold. When the total amount of drinking water output by the user for a single use of the water dispenser reaches the water amount threshold, the water dispenser will no longer output drinking water, and will drink water. The current state of the machine is switched to the on-waiting state, so that other users can send on commands through the server to obtain drinking water.

在一种可选的实施方式中,所述方法还包括:In an optional embodiment, the method further includes:

S8、在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量未达到水量阈值时,检测是否接收到用户输入的停止出水控制信号;S8. Detect whether a stop water control signal input by the user is received when the total water output of the water dispenser does not reach the water volume threshold at the current moment when it is switched to the open waiting state last time;

S9、在接收到用户输入的停止出水控制信号时,将饮水机的当前工作状态切换为操作等待状态,设定等待时间为第二时间阈值。S9. When receiving the stop water control signal input by the user, switch the current working state of the water dispenser to the operation waiting state, and set the waiting time as the second time threshold.

本实施例为用户提供中断服务,在饮水机的出水总量未达到水量阈值时,若用户需要暂停输出饮用水,则可输入停止出水控制信号以使饮水机暂停输出饮用水,此时,饮水机的当前工作状态切换为操作等待状态,设定等待时间为第二时间阈值,同样地,若用户在第二时间阈值内输入出水控制信号,则饮水机的当前状态切换为工作状态,并继续输出饮用水,直到饮水机的出水总量未达到水量阈值时,饮水机的当前状态切换为开启等待状态,并停止输出饮用水;若用户在第二时间阈值内未输入出水控制信号,则判定不再需要为用户提供饮用水,则饮水机的当前状态切换为开启等待状态。可见,本实施例为用户提供了中断服务,使用户能分次享用饮用水,更加人性化,同时又限定中断服务的时间阈值,避免单个用户长时间占用饮水机。This embodiment provides an interruption service for the user. When the total water output of the water dispenser does not reach the water volume threshold, if the user needs to suspend the output of drinking water, the user can input a stop water output control signal to make the water dispenser suspend the output of drinking water. At this time, the drinking water The current working state of the water dispenser is switched to the operation waiting state, and the waiting time is set as the second time threshold. Similarly, if the user inputs the water outlet control signal within the second time threshold, the current state of the water dispenser is switched to the working state, and continues Output drinking water until the total water output of the water dispenser does not reach the water volume threshold, the current state of the water dispenser switches to the open waiting state, and stops outputting drinking water; if the user does not input the water output control signal within the second time threshold, it is determined that It is no longer necessary to provide drinking water to the user, and the current state of the water dispenser is switched to an on-waiting state. It can be seen that this embodiment provides an interruption service for the user, so that the user can enjoy drinking water in stages, which is more user-friendly, and at the same time limits the time threshold for interruption of the service, so as to prevent a single user from occupying the water dispenser for a long time.

应当理解的是,用户输入停止出水控制信号的方法可以但不限于通过按压或触摸饮水机上的开关以输入停止出水控制信号的方法。It should be understood that, the method for the user to input the stop water control signal may be, but not limited to, the method for inputting the stop water control signal by pressing or touching a switch on the water dispenser.

在一种可选的实施方式中,所述第二时间阈值小于所述第一时间阈值。发明人根据生活经验,发现用户在获取饮用水的过程中,中断时间较短,因而将所述第二时间阈值设置为小于所述第一时间阈值,缩短下一用户等候时间。In an optional implementation manner, the second time threshold is smaller than the first time threshold. Based on life experience, the inventor finds that the interruption time for users to obtain drinking water is short, so the second time threshold is set to be smaller than the first time threshold to shorten the waiting time for the next user.

相比于现有技术,本发明实施例的有益效果在于:本发明提供一种饮水机出水控制方法,包括:在开启等待状态下,检测是否接收到服务器发送的开启指令;在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;在所述等待时间内接收到用户输入的出水指令时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水。当用户需要使用饮水机时,通过服务器发送开启指令,使饮水机的当前状态切换为操作等待状态,等待用户输入操作控制信号;若用户在第一时间阈值内输入操作控制信号,将控制饮水机输出饮用水;若用户在第一时间阈值内未输入操作控制信号时,饮水机的当前状态将切换为开启等待状态;在开启等待状态下,任何用户都能通过服务器发送开启指令,避免单个用户长时间占用饮水机,提高饮水机的服务效率,使饮水机能服务更多的用户,为拓宽饮水机的服务范围提供保障。Compared with the prior art, the beneficial effect of the embodiment of the present invention is that: the present invention provides a water outlet control method of a water dispenser, which includes: in an open waiting state, detecting whether an open instruction sent by the server is received; When the opening command is given, the current state of the water dispenser is switched to the operation waiting state, and the waiting time is set as the first time threshold; in the operation waiting state, it is detected whether the water outlet control signal input by the user is received within the waiting time; When the water outlet control signal input by the user is not received within the waiting time, the current state of the water dispenser is switched to the open waiting state; when the water outlet command input by the user is received within the waiting time, the current state of the water dispenser is changed. Switch to the working state and control the drinking water dispenser to output drinking water. When the user needs to use the water dispenser, the server sends an opening instruction to switch the current state of the water dispenser to the operation waiting state, waiting for the user to input the operation control signal; if the user inputs the operation control signal within the first time threshold, the water dispenser will be controlled Output drinking water; if the user does not input an operation control signal within the first time threshold, the current state of the water dispenser will be switched to the open waiting state; in the open waiting state, any user can send an opening command through the server to avoid a single user Occupy the water dispenser for a long time, improve the service efficiency of the water dispenser, enable the water dispenser to serve more users, and provide a guarantee for broadening the service scope of the water dispenser.

为了实现相同的目的,本发明另一方面提供了一种饮水机出水控制装置。请参阅图2,其是本发明实施例提供的一种饮水机出水控制装置的结构示意图。所述装置包括:In order to achieve the same purpose, another aspect of the present invention provides a water outlet control device for a water dispenser. Please refer to FIG. 2 , which is a schematic structural diagram of a water outlet control device of a water dispenser provided by an embodiment of the present invention. The device includes:

第一检测模块1,用于在开启等待状态下,检测是否接收到服务器发送的开启指令;The first detection module 1 is used to detect whether an opening instruction sent by the server is received in the opening waiting state;

第一状态切换模块2,用于在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;The first state switching module 2 is used to switch the current state of the water dispenser to the operation waiting state when receiving the opening instruction sent by the server, and set the waiting time as the first time threshold;

第二检测模块3,用于在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;The second detection module 3 is used to detect whether the water outlet control signal input by the user is received within the waiting time in the operation waiting state;

第二状态切换模块4,用于在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;The second state switching module 4 is used to switch the current state of the water dispenser to the open waiting state when the water outlet control signal input by the user is not received within the waiting time;

第三状态切换模块5,用于在所述等待时间内接收到用户输入的出水指令时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水。The third state switching module 5 is configured to switch the current state of the water dispenser to the working state and control the water dispenser to output drinking water when receiving the water outlet instruction input by the user within the waiting time.

在一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:

第三检测模块6:用于在工作状态下,判断最近一次切换至开启等待状态时到当前时刻饮水机的出水总量是否达到水量阈值;The third detection module 6: is used to judge whether the total amount of water output from the water dispenser reaches the water volume threshold when the latest switch to the open waiting state to the current moment in the working state;

第四状态切换模块7,用于在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量达到水量阈值时,将饮水机的当前状态切换为开启等待状态,并控制饮水机停止输出饮用水。The fourth state switching module 7 is used to switch the current state of the water dispenser to the on-waiting state and control the water dispenser to stop output when the total water output of the water dispenser at the current moment reaches the water volume threshold when the last time it is switched to the on-waiting state drinking water.

在一种可选的实施方式中,所述装置还包括:In an optional embodiment, the device further includes:

第四检测模块8,用于在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量未达到水量阈值时,检测是否接收到用户输入的停止出水控制信号;The fourth detection module 8 is used to detect whether a stop water control signal input by a user is received when the total water output of the water dispenser does not reach the water volume threshold at the current moment when it is switched to the open waiting state last time;

第五状态切换模块9,用于在接收到用户输入的停止出水控制信号时,将饮水机的当前工作状态切换为操作等待状态,设定等待时间为第二时间阈值。The fifth state switching module 9 is used to switch the current working state of the water dispenser to the operation waiting state when receiving the stop water output control signal input by the user, and set the waiting time as the second time threshold.

在一种可选的实施方式中,所述第二时间阈值小于所述第一时间阈值。In an optional implementation manner, the second time threshold is smaller than the first time threshold.

需要说明的是,本发明实施例提供的一种饮水机出水控制装置用于上述饮水机出水控制方法中,其工作原理和有益效果一一对应于上述饮水机出水控制方法,因而不再赘述。It should be noted that the water dispenser water control device provided by the embodiment of the present invention is used in the above water dispenser water outlet control method, and its working principle and beneficial effects correspond to the above water dispenser water outlet control method one by one, and thus will not be repeated.

以上所揭露的仅为本发明的较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。What is disclosed above is only the preferred embodiment of the present invention, and of course, it cannot limit the scope of the right of the present invention. Those of ordinary skill in the art can understand the whole or part of the process of realizing the above embodiment, and follow the claims of the present invention. The equivalent changes made still belong to the scope covered by the invention.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. During execution, the processes of the embodiments of the above-mentioned methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.

Claims (2)

1.一种饮水机出水控制方法,其特征在于,包括:1. a water dispenser control method, is characterized in that, comprises: 在开启等待状态下,检测是否接收到服务器发送的开启指令;In the open waiting state, detect whether an open command sent by the server is received; 在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;When receiving the opening instruction sent by the server, the current state of the water dispenser is switched to the operation waiting state, and the waiting time is set as the first time threshold; 在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;In the operation waiting state, detect whether the water outlet control signal input by the user is received within the waiting time; 在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;When the water outlet control signal input by the user is not received within the waiting time, the current state of the water dispenser is switched to the open waiting state; 在所述等待时间内接收到用户输入的出水控制信号时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水,具体的:When the water outlet control signal input by the user is received within the waiting time, the current state of the water dispenser is switched to the working state, and the water dispenser is controlled to output drinking water, specifically: 在工作状态下,判断最近一次切换至开启等待状态时到当前时刻饮水机的出水总量是否达到水量阈值;In the working state, determine whether the total amount of water output from the water dispenser reaches the water volume threshold when it is switched to the open waiting state last time to the current moment; 在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量达到水量阈值时,将饮水机的当前状态切换为开启等待状态,并控制饮水机停止输出饮用水;When the total water output of the water dispenser reaches the water volume threshold at the time of the last switch to the open waiting state to the current moment, the current state of the water dispenser is switched to the open waiting state, and the water dispenser is controlled to stop outputting drinking water; 在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量未达到水量阈值时,检测是否接收到用户输入的停止出水控制信号;When the total water output of the water dispenser does not reach the water volume threshold at the time of the latest switch to the open waiting state to the current moment, it is detected whether the control signal for stopping water output input by the user is received; 在接收到用户输入的停止出水控制信号时,将饮水机的当前工作状态切换为操作等待状态,设定等待时间为第二时间阈值;所述第二时间阈值小于所述第一时间阈值。When receiving the stop water control signal input by the user, the current working state of the water dispenser is switched to the operation waiting state, and the waiting time is set as a second time threshold; the second time threshold is smaller than the first time threshold. 2.一种饮水机出水控制装置,其特征在于,包括:2. A water outlet control device of a water dispenser, characterized in that, comprising: 第一检测模块,用于在开启等待状态下,检测是否接收到服务器发送的开启指令;a first detection module, configured to detect whether an opening instruction sent by the server is received in an opening waiting state; 第一状态切换模块,用于在接收到服务器发送的开启指令时,将饮水机的当前状态切换为操作等待状态,并设定等待时间为第一时间阈值;The first state switching module is used to switch the current state of the water dispenser to the operation waiting state when receiving the opening instruction sent by the server, and set the waiting time as the first time threshold; 第二检测模块,用于在操作等待状态下,检测所述等待时间内是否接收到用户输入的出水控制信号;The second detection module is used to detect whether the water outlet control signal input by the user is received within the waiting time in the operation waiting state; 第二状态切换模块,用于在所述等待时间内未接收到用户输入的出水控制信号时,将饮水机的当前状态切换为开启等待状态;The second state switching module is used to switch the current state of the water dispenser to the open waiting state when the water outlet control signal input by the user is not received within the waiting time; 第三状态切换模块,用于在所述等待时间内接收到用户输入的出水控制信号时,将饮水机的当前状态切换为工作状态,并控制饮水机输出饮用水;a third state switching module, configured to switch the current state of the water dispenser to a working state when receiving the water outlet control signal input by the user within the waiting time, and control the water dispenser to output drinking water; 第三检测模块:用于在工作状态下,判断最近一次切换至开启等待状态时到当前时刻饮水机的出水总量是否达到水量阈值;The third detection module is used to judge whether the total amount of water output from the water dispenser has reached the water volume threshold when the latest switch to the open waiting state to the current moment in the working state; 第四状态切换模块,用于在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量达到水量阈值时,将饮水机的当前状态切换为开启等待状态,并控制饮水机停止输出饮用水;The fourth state switching module is used to switch the current state of the water dispenser to the on-waiting state and control the water dispenser to stop outputting drinking water when the total water output of the water dispenser at the current moment reaches the water volume threshold when the last time it is switched to the on-waiting state water; 第四检测模块,用于在最近一次切换至开启等待状态时到当前时刻饮水机的出水总量未达到水量阈值时,检测是否接收到用户输入的停止出水控制信号;The fourth detection module is used to detect whether a stop water control signal input by a user is received when the total amount of water output from the water dispenser does not reach the water volume threshold when it is switched to the open waiting state last time to the current moment; 第五状态切换模块,用于在接收到用户输入的停止出水控制信号时,将饮水机的当前工作状态切换为操作等待状态,设定等待时间为第二时间阈值;所述第二时间阈值小于所述第一时间阈值。The fifth state switching module is used to switch the current working state of the water dispenser to the operation waiting state when receiving the stop water control signal input by the user, and set the waiting time as a second time threshold; the second time threshold is less than the first time threshold.
CN201810041631.6A 2018-01-16 2018-01-16 Method and device for controlling water output from a water dispenser Active CN108345226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810041631.6A CN108345226B (en) 2018-01-16 2018-01-16 Method and device for controlling water output from a water dispenser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810041631.6A CN108345226B (en) 2018-01-16 2018-01-16 Method and device for controlling water output from a water dispenser

Publications (2)

Publication Number Publication Date
CN108345226A CN108345226A (en) 2018-07-31
CN108345226B true CN108345226B (en) 2020-02-28

Family

ID=62960438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810041631.6A Active CN108345226B (en) 2018-01-16 2018-01-16 Method and device for controlling water output from a water dispenser

Country Status (1)

Country Link
CN (1) CN108345226B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205103938U (en) * 2015-10-14 2016-03-23 相汇网络科技(杭州)有限公司 Self -service water dispenser system
CN107395717A (en) * 2017-07-20 2017-11-24 成都安恒信息技术有限公司 A kind of method that free time time-out applied to O&M auditing system disconnects automatically
CN107468069A (en) * 2017-09-26 2017-12-15 京东方科技集团股份有限公司 Intelligent drinking device and its control method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016085521A (en) * 2014-10-23 2016-05-19 株式会社コスモライフ Water server with signage and customer management device
CN106580110A (en) * 2016-12-30 2017-04-26 北京水兵壹号科技有限公司 Method and device for controlling water dispenser
CN107103694A (en) * 2017-03-17 2017-08-29 崔俊新 Water dispenser management method and device based on internet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205103938U (en) * 2015-10-14 2016-03-23 相汇网络科技(杭州)有限公司 Self -service water dispenser system
CN107395717A (en) * 2017-07-20 2017-11-24 成都安恒信息技术有限公司 A kind of method that free time time-out applied to O&M auditing system disconnects automatically
CN107468069A (en) * 2017-09-26 2017-12-15 京东方科技集团股份有限公司 Intelligent drinking device and its control method

Also Published As

Publication number Publication date
CN108345226A (en) 2018-07-31

Similar Documents

Publication Publication Date Title
CN104536666B (en) It is a kind of to be switched fast application program and its method and device at interface
US10142402B2 (en) Methods and apparatuses for sending prompt message to close a movable article
EP3242170A1 (en) Prompt information sending method and device
CN104750520B (en) A software installation method and terminal
CN111754997B (en) Control device and operation method thereof, and voice interaction device and operation method thereof
CN103513912B (en) A kind of interface switching method and device
CN104950716B (en) A kind of apparatus control method and device
WO2015131669A1 (en) Application control method, apparatus, terminal and computer storage medium
CN111654852B (en) Data card switching method, device, terminal and storage medium
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
US12057960B2 (en) Method for notifying a message of a smart home based on a smart screen apparatus and smart screen
CN111916077B (en) Voice control method and equipment
CN106161108B (en) Parameter processing method and device for intelligent equipment and intelligent equipment
CN108345226B (en) Method and device for controlling water output from a water dispenser
CN105788565A (en) Method and device for adjusting brightness
CN105187609A (en) Terminal application control method, and terminal device and system
KR101969744B1 (en) Electronic device control method and system, and related device
CN115202607A (en) A sound mode switching method, apparatus, device and computer readable medium
CN114995166A (en) Method, device and electronic device for room scene switching
WO2018000632A1 (en) Target information processing method, apparatus and electronic device
CN112583696A (en) Method and equipment for processing group session message
WO2017020665A1 (en) Wallpaper switching method and apparatus
CN108124064A (en) The key response method and mobile terminal of a kind of mobile terminal
CN106909261B (en) Equipment state information processing method and device
WO2018010363A1 (en) Screen display control method and mobile terminal

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250530

Address after: Room 207-04, 2nd Floor, Longxing Mansion, No. 26 West Second Street, Daying Mountain, Meilan District, Haikou City, Hainan Province, China 570100

Patentee after: Haikou Meilan Qinxuan Technology Service Center

Country or region after: China

Address before: 510000 Guangdong Province Guangzhou City Nansha District Fengze East Road 106.NO (Building 1, Room X1301-I2824, Self-compiled)

Patentee before: GUANGZHOU DUOHESHUI ENVIRONMENTAL PROTECTION TECHNOLOGY Co.,Ltd.

Country or region before: China