Summary of the invention
The present invention be based on above-mentioned technical problem at least one, it is proposed that the control program of a kind of new water dispenser, it is possible to be prevented effectively from hot water in water dispenser and scald child, improve water dispenser safety in use and intelligent.
In view of this, according to the first aspect of the invention, it is proposed that the control method of a kind of water dispenser, described water dispenser at least includes hot water valve, the control method of described water dispenser, including: detect the distance between described water dispenser and user, and determine the type of described user; In the distance detected between described user and described water dispenser less than or equal to the first predetermined value, and when determining described user for first kind user, controlling that described hot water valve is in can opening; In the distance detected between described user and described water dispenser less than or equal to the first predetermined value, and when determining described user for Equations of The Second Kind user, control described hot water valve and be in the lock state.
In this technical scheme, by in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is first kind user, controlling that the hot water valve of water dispenser is in can opening so that first kind user (such as adult and the people etc. that can take care of oneself) can normally use hot water; And pass through in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is Equations of The Second Kind user, control hot water valve to be in the lock state, the problem that can avoid the hot water valve of Equations of The Second Kind user (such as child and non compos mentis user etc.) false triggering water dispenser and scald accident occurs, achieve under ensureing the premise that first kind user normally uses water dispenser, be prevented effectively from the technique effect that Equations of The Second Kind user is burned.
Wherein, hot water valve be in can opening time, user can open hot water valve; When hot water valve is in the lock state, user cannot open hot water valve, and namely water dispenser cannot flow out hot water.
In technique scheme, preferably, in the distance detected between described user and described water dispenser less than or equal to the first predetermined value, and after determining the step that described user is first kind user, and be in before the step of opening, also can include controlling described hot water valve:
Judge whether the distance between described user and described water dispenser is gradually shortened; When the distance judged between described user and described water dispenser is gradually shortened, perform to control described hot water valve is in can the step of opening; When the distance judged between described user and described water dispenser becomes remote gradually, control described hot water valve and be in described lock-out state.
In this technical scheme, in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine that user is after first kind user, by judging whether the distance between user and water dispenser is gradually shortened, it may be determined that first kind user fetches water the need of to water dispenser place. Specifically, when the distance between user and water dispenser is gradually shortened, illustrate that user needs water intaking, then can control that hot water valve is in can opening; And when the distance determined between user and water dispenser becomes remote gradually, hot water valve can be controlled be in the lock state, avoid user need not fetch water, but just controlling in entering the trigger range (namely the distance between user and water dispenser is less than or equal to the scope of the first predetermined value) of hot water valve that hot water valve is in can opening and the problem that causes false triggering hot water valve.
In any of the above-described technical scheme, it is preferable that also include: when the distance detected between all users being associated with described water dispenser and described water dispenser is more than or equal to the second predetermined value, control described water dispenser and close refrigeration and/or heating function; And
When the distance between any user and described water dispenser in described all users being detected is less than or equal to three predetermined values, controls described water dispenser and open refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and the water dispenser being associated with water dispenser is more than or equal to the second predetermined value, control water dispenser and close refrigeration and/or heating function, make when user need not use water dispenser (as being away from home), can temporary close refrigeration and/or heating function, reduce the power consumption of water dispenser; And by when the distance detected between any user and water dispenser is less than or equal to three predetermined values, control water dispenser and open refrigeration and/or heating function, make when user is likely to need to use water dispenser (as going home), refrigeration and/or heating function can be automatically turned on, to guarantee that user normally uses water dispenser.
In any of the above-described technical scheme, preferably, after the distance detected between all users being associated with described water dispenser and the described water dispenser step more than or equal to the second predetermined value, and also included before controlling the step of described water dispenser closedown refrigeration and/or heating function: whether the distance judged between described all users and described water dispenser is gradually increased to the 4th predetermined value, if so, then perform to control described water dispenser and close the step of refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and water dispenser is more than or equal to the second predetermined value, and the distance between all users and water dispenser is when being gradually increased to four predetermined values, control water dispenser and close refrigeration and/or heating function, make it possible to whether user confirms away from water dispenser, avoiding user when being in water dispenser activity in the scope of the second predetermined value, false triggering water dispenser closes refrigeration and/or heating function.
In any of the above-described technical scheme, preferably, after the distance between any user and described water dispenser in described all users the being detected step less than or equal to the 3rd predetermined value, and also included before controlling the step of described water dispenser unlatching refrigeration and/or heating function: judge whether the distance between described all users and described water dispenser is gradually shortened to the 5th predetermined value, if so, then perform to control described water dispenser and open the step of refrigeration and/or heating function.
In this technical scheme, by in the distance detected between any user and water dispenser less than or equal to the 3rd predetermined value, and and water dispenser between distance when being gradually shortened to five predetermined values, control water dispenser and open refrigeration and/or heating function, make it possible to whether user is walked close to water dispenser confirm, avoiding user when being in water dispenser activity in the scope of the 3rd predetermined value, false triggering water dispenser opens refrigeration and/or heating function.
In any of the above-described technical scheme, preferably, detect the distance between described water dispenser and user, and determine that the step of the type of described user specifically includes: by the distance detecting described water dispenser and between the mobile terminal that described user wears, it is determined that the distance between described water dispenser and described user; And by the corresponding relation between mark and the user type of the mobile terminal of pre-stored, it is determined that the type of described user.
Specifically, it is possible to the mobile terminal (such as wearable device etc.) user worn in advance carries out pairing and is connected with water dispenser, and then the distance between user and water dispenser can be determined by the distance between detection mobile terminal and water dispenser. Simultaneously, it is possible to the corresponding relation between mark and the user type of pre-stored mobile terminal, and then determine the type of user according to mobile terminal.
According to the second aspect of the invention, it is also proposed that the control device of a kind of water dispenser, described water dispenser at least includes hot water valve, the control device of described water dispenser, including: detection unit, for detecting the distance between described water dispenser and user; Determine unit, for determining the type of described user; First control unit, for detecting that at described detection unit distance between described user and described water dispenser is less than or equal to the first predetermined value, and described determine unit determine described user for the first kind user time, controlling that described hot water valve is in can opening, and for detecting that the distance between described user and described water dispenser is less than or equal to the first predetermined value at described detection unit, and described determine unit determine described user for Equations of The Second Kind user time, control described hot water valve and be in the lock state.
In this technical scheme, by in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is first kind user, controlling that the hot water valve of water dispenser is in can opening so that first kind user (such as adult and the people etc. that can take care of oneself) can normally use hot water; And pass through in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is Equations of The Second Kind user, control hot water valve to be in the lock state, the problem that can avoid the hot water valve of Equations of The Second Kind user (such as child and non compos mentis user etc.) false triggering water dispenser and scald accident occurs, achieve under ensureing the premise that first kind user normally uses water dispenser, be prevented effectively from the technique effect that Equations of The Second Kind user is burned.
Wherein, hot water valve be in can opening time, user can open hot water valve; When hot water valve is in the lock state, user cannot open hot water valve, and namely water dispenser cannot flow out hot water.
In technique scheme, preferably, also include: the first judging unit, for detecting that at described detection unit distance between described user and described water dispenser is less than or equal to the first predetermined value, and described determine unit determine described user for the first kind user time, it is judged that whether the distance between described user and described water dispenser is gradually shortened; Described first control unit specifically for, when described first judging unit judges that the distance between described user and described water dispenser is gradually shortened, perform to control described hot water valve is in can the operation of opening, and for when described first judging unit judges that the distance between described user and described water dispenser becomes remote gradually, controlling described hot water valve and be in described lock-out state.
In this technical scheme, in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine that user is after first kind user, by judging whether the distance between user and water dispenser is gradually shortened, it may be determined that first kind user fetches water the need of to water dispenser place. Specifically, when the distance between user and water dispenser is gradually shortened, illustrate that user needs water intaking, then can control that hot water valve is in can opening; And when the distance determined between user and water dispenser becomes remote gradually, hot water valve can be controlled be in the lock state, avoid user need not fetch water, but just controlling in entering the trigger range (namely the distance between user and water dispenser is less than or equal to the scope of the first predetermined value) of hot water valve that hot water valve is in can opening and the problem that causes false triggering hot water valve.
In any of the above-described technical scheme, preferably, also include: the second control unit, during for detecting that at described detection unit distance between all users being associated with described water dispenser and described water dispenser is more than or equal to the second predetermined value, control described water dispenser and close refrigeration and/or heating function, and for when described detection unit detects the distance between any user in described all users and described water dispenser less than or equal to three predetermined values, controlling described water dispenser and open refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and the water dispenser being associated with water dispenser is more than or equal to the second predetermined value, control water dispenser and close refrigeration and/or heating function, make when user need not use water dispenser (as being away from home), can temporary close refrigeration and/or heating function, reduce the power consumption of water dispenser; By when the distance detected between any user and water dispenser is less than or equal to three predetermined values, control water dispenser and open refrigeration and/or heating function, make when user is likely to need to use water dispenser (as going home), refrigeration and/or heating function can be automatically turned on, to guarantee that user normally uses water dispenser.
In any of the above-described technical scheme, preferably, also include: the second judging unit, during for detecting that at described detection unit distance between all users being associated with described water dispenser and described water dispenser is more than or equal to the second predetermined value, it is judged that whether the distance between described all users and described water dispenser is gradually increased to the 4th predetermined value; 3rd judging unit, during for detecting that at described detection unit distance between any user and the described water dispenser in described all users is less than or equal to three predetermined values, it is judged that whether the distance between described all users and described water dispenser is gradually shortened to the 5th predetermined value; Described second control unit specifically for, when described second judging unit judges that the distance between described all users and described water dispenser is gradually increased to described four predetermined value, perform to control described water dispenser and close the operation of refrigeration and/or heating function, and for when described 3rd judging unit judges that the distance between described all users and described water dispenser is gradually shortened to five predetermined values, performing to control described water dispenser and open the operation of refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and water dispenser is more than or equal to the second predetermined value, and the distance between all users and water dispenser is when being gradually increased to four predetermined values, control water dispenser and close refrigeration and/or heating function, make it possible to whether user confirms away from water dispenser, avoiding user when being in water dispenser activity in the scope of the second predetermined value, false triggering water dispenser closes refrigeration and/or heating function; By in the distance detected between any user and water dispenser less than or equal to the 3rd predetermined value, and and water dispenser between distance when being gradually shortened to five predetermined values, control water dispenser and open refrigeration and/or heating function, make it possible to whether user is walked close to water dispenser confirm, avoiding user when being in water dispenser activity in the scope of the 3rd predetermined value, false triggering water dispenser opens refrigeration and/or heating function.
In any of the above-described technical scheme, it is preferable that described detection unit specifically for, by the distance detecting described water dispenser and between the mobile terminal that described user wears, it is determined that the distance between described water dispenser and described user; Described determine unit specifically for, by the corresponding relation between the mark of the mobile terminal of pre-stored and user type, it is determined that the type of described user.
Specifically, it is possible to the mobile terminal (such as wearable device etc.) user worn in advance carries out pairing and is connected with water dispenser, and then the distance between user and water dispenser can be determined by the distance between detection mobile terminal and water dispenser. Simultaneously, it is possible to the corresponding relation between mark and the user type of pre-stored mobile terminal, and then determine the type of user according to mobile terminal.
In actual use, the manufacturer of water dispenser or user can arrange the first predetermined value in such scheme, the second predetermined value, the 3rd predetermined value, the 4th predetermined value and the 5th predetermined value flexibly according to practical situation.
By above technical scheme, it is possible to be prevented effectively from the hot water in water dispenser and scald child, improve water dispenser safety in use; And can when user need not use water dispenser, the refrigeration of temporary close water dispenser and/or heating function, reduce the power consumption of water dispenser.
Detailed description of the invention
In order to be more clearly understood that the above-mentioned purpose of the present invention, feature and advantage, below in conjunction with the drawings and specific embodiments, the present invention is further described in detail. It should be noted that when not conflicting, embodiments herein and the feature in embodiment can be mutually combined.
Elaborate a lot of detail in the following description so that fully understanding the present invention; but; the present invention can also adopt other to be different from other modes described here to implement, and therefore, protection scope of the present invention is by the restriction of following public specific embodiment.
Fig. 1 illustrates the schematic flow diagram of the control method of water dispenser according to first embodiment of the invention.
Water dispenser in the present invention at least includes hot water valve. As it is shown in figure 1, the control method of water dispenser according to first embodiment of the invention, including:
Step 102, detects the distance between described water dispenser and user, and determines the type of described user;
Step 104, in the distance detected between described user and described water dispenser less than or equal to the first predetermined value, and when determining described user for first kind user, controlling that described hot water valve is in can opening;
Step 106, in the distance detected between described user and described water dispenser less than or equal to the first predetermined value, and when determining described user for Equations of The Second Kind user, controls described hot water valve and is in the lock state.
In this technical scheme, by in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is first kind user, controlling that the hot water valve of water dispenser is in can opening so that first kind user (such as adult and the people etc. that can take care of oneself) can normally use hot water; And pass through in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is Equations of The Second Kind user, control hot water valve to be in the lock state, the problem that can avoid the hot water valve of Equations of The Second Kind user (such as child and non compos mentis user etc.) false triggering water dispenser and scald accident occurs, achieve under ensureing the premise that first kind user normally uses water dispenser, be prevented effectively from the technique effect that Equations of The Second Kind user is burned.
In technique scheme, preferably, in the distance detected between described user and described water dispenser less than or equal to the first predetermined value, and after determining the step that described user is first kind user, and be in before the step of opening, also can include controlling described hot water valve:
Judge whether the distance between described user and described water dispenser is gradually shortened; When the distance judged between described user and described water dispenser is gradually shortened, perform to control described hot water valve is in can the step of opening; When the distance judged between described user and described water dispenser becomes remote gradually, control described hot water valve and be in described lock-out state.
In this technical scheme, in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine that user is after first kind user, by judging whether the distance between user and water dispenser is gradually shortened, it may be determined that first kind user fetches water the need of to water dispenser place. Specifically, when the distance between user and water dispenser is gradually shortened, illustrate that user needs water intaking, then can control that hot water valve is in can opening; And when the distance determined between user and water dispenser becomes remote gradually, hot water valve can be controlled be in the lock state, avoid user need not fetch water, but just controlling in entering the trigger range (namely the distance between user and water dispenser is less than or equal to the scope of the first predetermined value) of hot water valve that hot water valve is in can opening and the problem that causes false triggering hot water valve.
In any of the above-described technical scheme, it is preferable that also include: when the distance detected between all users being associated with described water dispenser and described water dispenser is more than or equal to the second predetermined value, control described water dispenser and close refrigeration and/or heating function; And
When the distance between any user and described water dispenser in described all users being detected is less than or equal to three predetermined values, controls described water dispenser and open refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and the water dispenser being associated with water dispenser is more than or equal to the second predetermined value, control water dispenser and close refrigeration and/or heating function, make when user need not use water dispenser (as being away from home), can temporary close refrigeration and/or heating function, reduce the power consumption of water dispenser; By when the distance detected between any user and water dispenser is less than or equal to three predetermined values, control water dispenser and open refrigeration and/or heating function, make when user is likely to need to use water dispenser (as going home), refrigeration and/or heating function can be automatically turned on, to guarantee that user normally uses water dispenser.
In any of the above-described technical scheme, preferably, after the distance detected between all users being associated with described water dispenser and the described water dispenser step more than or equal to the second predetermined value, and also included before controlling the step of described water dispenser closedown refrigeration and/or heating function: whether the distance judged between described all users and described water dispenser is gradually increased to the 4th predetermined value, if so, then perform to control described water dispenser and close the step of refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and water dispenser is more than or equal to the second predetermined value, and the distance between all users and water dispenser is when being gradually increased to four predetermined values, control water dispenser and close refrigeration and/or heating function, make it possible to whether user confirms away from water dispenser, avoiding user when being in water dispenser activity in the scope of the second predetermined value, false triggering water dispenser closes refrigeration and/or heating function.
In any of the above-described technical scheme, preferably, after the distance between any user and described water dispenser in described all users the being detected step less than or equal to the 3rd predetermined value, and also included before controlling the step of described water dispenser unlatching refrigeration and/or heating function: judge whether the distance between described all users and described water dispenser is gradually shortened to the 5th predetermined value, if so, then perform to control described water dispenser and open the step of refrigeration and/or heating function.
In this technical scheme, by in the distance detected between any user and water dispenser less than or equal to the 3rd predetermined value, and and water dispenser between distance when being gradually shortened to five predetermined values, control water dispenser and open refrigeration and/or heating function, make it possible to whether user is walked close to water dispenser confirm, avoiding user when being in water dispenser activity in the scope of the 3rd predetermined value, false triggering water dispenser opens refrigeration and/or heating function.
In any of the above-described technical scheme, preferably, detect the distance between described water dispenser and user, and determine that the step of the type of described user specifically includes: by the distance detecting described water dispenser and between the mobile terminal that described user wears, it is determined that the distance between described water dispenser and described user; And by the corresponding relation between mark and the user type of the mobile terminal of pre-stored, it is determined that the type of described user.
Specifically, it is possible to the mobile terminal (such as wearable device etc.) user worn in advance carries out pairing and is connected with water dispenser, and then the distance between user and water dispenser can be determined by the distance between detection mobile terminal and water dispenser. Simultaneously, it is possible to the corresponding relation between mark and the user type of pre-stored mobile terminal, and then determine the type of user according to mobile terminal.
Fig. 2 illustrates the schematic block diagram controlling device of water dispenser according to an embodiment of the invention.
Water dispenser in the present invention at least includes hot water valve. As in figure 2 it is shown, the control device 200 of water dispenser according to an embodiment of the invention, including: detection unit 202, determine unit 204 and the first control unit 206.
Wherein, detect unit 202, for detecting the distance between described water dispenser and user; Determine unit 204, for determining the type of described user; First control unit 206, for detecting that at described detection unit 202 distance between described user and described water dispenser is less than or equal to the first predetermined value, and described determine unit 204 determine described user for the first kind user time, controlling that described hot water valve is in can opening, and for detecting that the distance between described user and described water dispenser is less than or equal to the first predetermined value at described detection unit 202, and described determine unit 204 determine described user for Equations of The Second Kind user time, control described hot water valve and be in the lock state.
In this technical scheme, by in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is first kind user, controlling that the hot water valve of water dispenser is in can opening so that first kind user (such as adult and the people etc. that can take care of oneself) can normally use hot water; And pass through in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine when user is Equations of The Second Kind user, control hot water valve to be in the lock state, the problem that can avoid the hot water valve of Equations of The Second Kind user (such as child and non compos mentis user etc.) false triggering water dispenser and scald accident occurs, achieve under ensureing the premise that first kind user normally uses water dispenser, be prevented effectively from the technique effect that Equations of The Second Kind user is burned.
In technique scheme, preferably, also include: the first judging unit 208, for detecting that at described detection unit 202 distance between described user and described water dispenser is less than or equal to the first predetermined value, and described determine unit 204 determine described user for the first kind user time, it is judged that whether the distance between described user and described water dispenser is gradually shortened; Described first control unit 206 specifically for, when described first judging unit 208 judges that the distance between described user and described water dispenser is gradually shortened, perform to control described hot water valve is in can the operation of opening, and for when described first judging unit 208 judges that the distance between described user and described water dispenser becomes remote gradually, controlling described hot water valve and be in described lock-out state.
In this technical scheme, in the distance detected between user and water dispenser less than or equal to the first predetermined value, and determine that user is after first kind user, by judging whether the distance between user and water dispenser is gradually shortened, it may be determined that first kind user fetches water the need of to water dispenser place. Specifically, when the distance between user and water dispenser is gradually shortened, illustrate that user needs water intaking, then can control that hot water valve is in can opening; And when the distance determined between user and water dispenser becomes remote gradually, hot water valve can be controlled be in the lock state, avoid user need not fetch water, but just controlling in entering the trigger range (namely the distance between user and water dispenser is less than or equal to the scope of the first predetermined value) of hot water valve that hot water valve is in can opening and the problem that causes false triggering hot water valve.
In any of the above-described technical scheme, preferably, also include: the second control unit 210, during for detecting that at described detection unit 202 distance between all users being associated with described water dispenser and described water dispenser is more than or equal to the second predetermined value, control described water dispenser and close refrigeration and/or heating function, and for when described detection unit 202 detects the distance between any user in described all users and described water dispenser less than or equal to three predetermined values, controlling described water dispenser and open refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and the water dispenser being associated with water dispenser is more than or equal to the second predetermined value, control water dispenser and close refrigeration and/or heating function, make when user need not use water dispenser (as being away from home), can temporary close refrigeration and/or heating function, reduce the power consumption of water dispenser; By when the distance detected between any user and water dispenser is less than or equal to three predetermined values, control water dispenser and open refrigeration and/or heating function, make when user is likely to need to use water dispenser (as going home), refrigeration and/or heating function can be automatically turned on, to guarantee that user normally uses water dispenser.
In any of the above-described technical scheme, preferably, also include: the second judging unit 212, during for detecting that at described detection unit 202 distance between all users being associated with described water dispenser and described water dispenser is more than or equal to the second predetermined value, it is judged that whether the distance between described all users and described water dispenser is gradually increased to the 4th predetermined value; 3rd judging unit 214, during for detecting that at described detection unit 202 distance between any user and the described water dispenser in described all users is less than or equal to three predetermined values, it is judged that whether the distance between described all users and described water dispenser is gradually shortened to the 5th predetermined value; Described second control unit 212 specifically for, when described second judging unit 210 judges that the distance between described all users and described water dispenser is gradually increased to described four predetermined value, perform to control described water dispenser and close the operation of refrigeration and/or heating function, and for when described 3rd judging unit 214 judges that the distance between described all users and described water dispenser is gradually shortened to five predetermined values, performing to control described water dispenser and open the operation of refrigeration and/or heating function.
In this technical scheme, by when the distance detected between all users and water dispenser is more than or equal to the second predetermined value, and the distance between all users and water dispenser is when being gradually increased to four predetermined values, control water dispenser and close refrigeration and/or heating function, make it possible to whether user confirms away from water dispenser, avoiding user when being in water dispenser activity in the scope of the second predetermined value, false triggering water dispenser closes refrigeration and/or heating function; By in the distance detected between any user and water dispenser less than or equal to the 3rd predetermined value, and and water dispenser between distance when being gradually shortened to five predetermined values, control water dispenser and open refrigeration and/or heating function, make it possible to whether user is walked close to water dispenser confirm, avoiding user when being in water dispenser activity in the scope of the 3rd predetermined value, false triggering water dispenser opens refrigeration and/or heating function.
In any of the above-described technical scheme, it is preferable that described detection unit 202 specifically for, by the distance detecting described water dispenser and between the mobile terminal that described user wears, it is determined that the distance between described water dispenser and described user; Described determine unit 204 specifically for, by the corresponding relation between the mark of the mobile terminal of pre-stored and user type, it is determined that the type of described user.
Specifically, it is possible to the mobile terminal (such as wearable device etc.) user worn in advance carries out pairing and is connected with water dispenser, and then the distance between user and water dispenser can be determined by the distance between detection mobile terminal and water dispenser. Simultaneously, it is possible to the corresponding relation between mark and the user type of pre-stored mobile terminal, and then determine the type of user according to mobile terminal.
Technical scheme is described in detail below in conjunction with Fig. 3 to Fig. 6.
As shown in Figure 3, in one embodiment of the invention, water dispenser 302 has access in wireless network (such as Wi-Fi network), wearable device 304 also is able to be linked in wireless network (as passed through mobile communications network), and then realizes the pairing connection between water dispenser 302 and wearable device 304.
After water dispenser 302 and wearable device 304 access network, user can arrange the attribute of the user of each wearable correspondence in advance, wherein every corresponding wearable device of user.
Specifically, select arranging in interface of water dispenser 302: increase user search wearable device finds equipment P1 and P1 is arranged to first user of water dispenser 302, and selects to be adult or child. Repeat said process, complete the interpolation of other kinsfolks.
Secondly, preset value L, Smin, Smax and Cmin are set.
After the setup, water dispenser 302 can realize automatically controlling hot water valve and heating and cooling function. Specifically:
When distance between user and water dispenser 302 is less than preset value L (such as 50 centimetres), the identity of the information automatic decision user of the wearable device that water dispenser 302 is worn according to user; When distance is increasingly nearer, and user for adult time, control hot water valve be in can opening, otherwise control hot water valve and be in the lock state.
When user goes to work, goes to school or go out to withdraw from a room, water dispenser 302 detect and distance between related user exceed pre-set threshold value Smin (such as 0.5 km) and in increasing trend to pre-set threshold value Smax (such as 1 km) time, then automatically trigger functions such as stopping heating and cooling, to reduce power consumption.
When user is next, classes are over or goes out to go home, water dispenser 302 detection to the distance between some user less than pre-set threshold value Smax (such as 1 km) and the trend that tapers off to pre-set threshold value Smin (such as 0.5 km), then automatically enable heating and cooling function.
Water dispenser 302 can also pass through network and obtain Weather information in real time, when temperature is lower than preset value Cmin, stops refrigerating function.
Said process is as shown in Figures 4 to 6.
As shown in Figure 4, the control method according to the water dispenser of the second of the present invention embodiment, including:
Step 402, the distance between water dispenser investigation and the user P1 wearing wearable device.
Step 404, it is judged that distance, whether less than L, if so, then performs step 406; Otherwise, step 402 is returned.
Step 406, water dispenser judges the identity of user P1.
Step 408, it is judged that whether user P1 is adult and sets up apart from reducing, if so, then performs step 410; Otherwise, step 412 is performed.
Step 410, control hot water valve is in can opening.
Step 412, controls hot water valve and is in the lock state.
As it is shown in figure 5, the control method of the water dispenser according to the 3rd embodiment of the present invention, including:
Step 502, the distance between water dispenser investigation and all user Pn wearing wearable device.
Step 504, it is judged that whether the distance between water dispenser and all user Pn wearing wearable device both is greater than or equal to Smin, if so, then performs step 506; Otherwise, step 502 is returned.
Step 506, the distance between water dispenser investigation and all user Pn wearing wearable device.
Step 508, it is judged that whether the distance between water dispenser and all user Pn wearing wearable device both is greater than or equal to Smax, if so, then performs step 510; Otherwise, terminate.
Step 510, stops refrigeration heating function.
As shown in Figure 6, the control method according to the water dispenser of the 4th of the present invention the embodiment, including:
Step 602, the distance between water dispenser investigation and all user Pn wearing wearable device.
Step 604, it is judged that whether the distance between water dispenser and all user Pn wearing wearable device is both less than or equal to Smax, if so, then performs step 606; Otherwise, step 602 is returned.
Step 606, the distance between water dispenser investigation and all user Pn wearing wearable device.
Step 608, it is judged that whether the distance between water dispenser and all user Pn wearing wearable device is both less than or equal to Smin, if so, then performs step 610; Otherwise, terminate.
Step 610, opens refrigeration heating function.
The technical scheme of the above embodiment of the present invention is possible not only to prevent because user does not note, causes the problem that the hot water of water dispenser scalds child; Can also automatic decision user whether all go out, to determine whether to close water dispenser refrigeration heating function, energy-saving and emission-reduction simultaneously; And also user whether can be had to go home by automatic decision, automatically enable the heating and cooling function of water dispenser in advance, to guarantee that user can normally use after going home.
Describing technical scheme in detail above in association with accompanying drawing, the present invention proposes the control program of a kind of new water dispenser, it is possible to is prevented effectively from the hot water in water dispenser and scalds child, improves water dispenser safety in use; And can when user need not use water dispenser, the refrigeration of temporary close water dispenser and/or heating function, reduce the power consumption of water dispenser.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations. All within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention.