CN115143638A - Water heater control method and electronic equipment - Google Patents

Water heater control method and electronic equipment Download PDF

Info

Publication number
CN115143638A
CN115143638A CN202110348248.7A CN202110348248A CN115143638A CN 115143638 A CN115143638 A CN 115143638A CN 202110348248 A CN202110348248 A CN 202110348248A CN 115143638 A CN115143638 A CN 115143638A
Authority
CN
China
Prior art keywords
distance
water heater
preset
control
state
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.)
Granted
Application number
CN202110348248.7A
Other languages
Chinese (zh)
Other versions
CN115143638B (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.)
Haier Smart Home Co Ltd
Qingdao Economic and Technological Development Zone Haier Water Heater Co Ltd
Original Assignee
Haier Smart Home Co Ltd
Qingdao Economic and Technological Development Zone Haier Water Heater 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 Haier Smart Home Co Ltd, Qingdao Economic and Technological Development Zone Haier Water Heater Co Ltd filed Critical Haier Smart Home Co Ltd
Priority to CN202110348248.7A priority Critical patent/CN115143638B/en
Publication of CN115143638A publication Critical patent/CN115143638A/en
Application granted granted Critical
Publication of CN115143638B publication Critical patent/CN115143638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24HFLUID HEATERS, e.g. WATER OR AIR HEATERS, HAVING HEAT-GENERATING MEANS, e.g. HEAT PUMPS, IN GENERAL
    • F24H9/00Details
    • F24H9/20Arrangement or mounting of control or safety devices
    • F24H9/2007Arrangement or mounting of control or safety devices for water heaters
    • F24H9/2035Arrangement or mounting of control or safety devices for water heaters using fluid fuel
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E10/00Energy generation through renewable energy sources
    • Y02E10/40Solar thermal energy, e.g. solar towers

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Thermal Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the invention provides a water heater control method and electronic equipment, wherein the method comprises the following steps: acquiring the position information of a user side and the position information of the water heater; determining the distance between the user side and the water heater according to the position information of the user side and the position information of the water heater; and controlling the water heater to execute corresponding zero-cold-water mode control operation according to the distance between the user side and the water heater, realizing automatic control of the zero-cold-water mode, avoiding manual control of a user, and improving the control efficiency of the zero-cold-water mode.

Description

Water heater control method and electronic equipment
Technical Field
The invention belongs to the technical field of smart homes, and particularly relates to a water heater control method and electronic equipment.
Background
With the development of technology, the types of gas water heaters are increasing, and among them, a gas water heater with a zero-cold water function is popular among consumers because it can realize that hot water can be used as soon as possible.
At present, in the process of using the gas water heater, the zero cold water function of the gas water heater needs to be controlled, namely, the zero cold water function of the gas water heater is turned on or off. When the zero cold water function of the hot gas water heater is controlled, the control is generally performed manually by a user, namely, the zero cold water function of the gas water heater is started when the user needs to use hot water, and the zero cold water function is closed when the user does not need to use hot water.
However, since the user is required to manually control the zero-cold-water function of the gas water heater, the control efficiency is low, and the user experience is low.
Disclosure of Invention
The method aims to solve the problems in the prior art, namely the problem of low control efficiency in the prior art is solved. The invention provides a water heater control method and electronic equipment.
In a first aspect, the present invention provides a water heater control method, including:
acquiring the position information of a user side and the position information of the water heater;
determining the distance between the user side and the water heater according to the position information of the user side and the position information of the water heater;
and controlling the water heater to execute corresponding zero cold water mode control operation according to the distance between the user side and the water heater.
In one possible design, the controlling the water heater to perform the corresponding zero cold water mode control operation according to the distance between the user terminal and the water heater includes:
determining a distance change state according to the distance between the user side and the water heater;
generating a zero cold water mode control instruction according to the distance change state;
and sending the zero cold water mode control instruction to a water heater so that the water heater executes corresponding zero cold water mode control operation according to the zero cold water mode control instruction.
In one possible design, the generating a zero-cold-water-mode control command according to the distance change state includes:
if the distance change state is a gradually increasing state, generating a zero cold water mode closing instruction;
if the distance change state is a gradually reduced state, generating a zero cold water mode starting instruction;
and if the distance change is in a state of gradually decreasing and then gradually increasing, generating a zero cold water mode closing instruction.
In one possible design, the determining the distance change state according to the distance between the user terminal and the water heater includes:
if the distance between the user side and the water heater continuously increases within a first preset time and is continuously greater than a preset closing distance value, determining that the distance change state is a gradually increasing state;
if the distance between the user side and the water heater continuously decreases within a second preset time and is continuously smaller than a preset starting distance value, determining that the distance change state is a gradually decreasing state;
and if the distance between the user side and the water heater is continuously increased after being continuously reduced, and the increased distance is greater than the preset closing distance value, determining that the distance change state is a state of gradually reducing first and then gradually increasing.
In one possible design, the method further includes:
acquiring manual control information corresponding to a user side and control distance time information corresponding to the manual control information;
updating preset information according to the manual control information and the control distance and time information; wherein the preset information comprises one or more of: the method comprises the steps of presetting a closing distance value, a starting distance value, first preset time and second preset time.
In one possible design, the manual control information includes manual control instructions including a close instruction; the control distance time information comprises an operation distance, a manual control distance state and corresponding distance change time, wherein the manual control distance state comprises a gradually increasing state;
the updating preset information according to the manual control information and the control distance and time information comprises:
acquiring first target distance duration and a first target operating distance, wherein the manual control distance states corresponding to the first target distance duration and the first target operating distance are gradually increasing states, and the corresponding manual control commands are closing commands;
and updating the first preset time according to the first target distance duration time, and updating the preset closing distance value according to the first target operating distance.
In one possible design, the manual control command includes a turn-on command; the manually controlled distance state comprises a taper state;
the updating preset information according to the manual control information and the control distance and time information comprises:
acquiring second target distance duration and a second target operating distance, wherein the manual control distance states corresponding to the second target distance duration and the second target operating distance are gradually reduced states, and the corresponding manual control instructions are opening instructions;
and updating the second preset time according to the second target distance duration time, and updating the preset starting distance value according to the second target operating distance.
In a second aspect, the present invention provides a water heater control device comprising:
the information acquisition module is used for acquiring the position information of a user side and acquiring the position information of the water heater;
the processing module is used for determining the distance between the user side and the water heater according to the position information of the user side and the position information of the water heater;
the processing module is further used for controlling the water heater to execute corresponding zero cold water mode control operation according to the distance between the user side and the water heater.
In one possible design, the processing module is further to:
determining a distance change state according to the distance between the user side and the water heater;
generating a zero cold water mode control instruction according to the distance change state;
and sending the zero cold water mode control instruction to a water heater so that the water heater executes corresponding zero cold water mode control operation according to the zero cold water mode control instruction.
In one possible design, the processing module is further to:
if the distance change state is a gradually increasing state, generating a zero cold water mode closing instruction;
if the distance change state is a gradually reduced state, generating a zero cold water mode starting instruction;
and if the distance change is in a state of gradually decreasing and then gradually increasing, generating a zero cold water mode closing instruction.
In one possible design, the processing module is further to:
if the distance between the user side and the water heater is continuously increased within a first preset time and is continuously greater than a preset closing distance value, determining that the distance change state is a gradually increasing state;
if the distance between the user side and the water heater is continuously reduced within a second preset time and is continuously smaller than a preset starting distance value, determining that the distance change state is a gradually reduced state;
and if the distance between the user side and the water heater is continuously increased after being continuously reduced, and the increased distance is greater than the preset closing distance value, determining that the distance change state is a state of gradually reducing first and then gradually increasing.
In one possible design, the processing module is further to:
acquiring manual control information corresponding to a user side and control distance and time information corresponding to the manual control information;
updating preset information according to the manual control information and the control distance and time information; wherein the preset information comprises one or more of: the method comprises the steps of presetting a closing distance value, a starting distance value, first preset time and second preset time.
In one possible design, the manual control information includes manual control instructions including a close instruction; the control distance time information comprises an operation distance, a manual control distance state and distance change time corresponding to the manual control distance state, wherein the manual control distance state comprises a gradually increasing state;
the processing module is further configured to:
acquiring first target distance duration and a first target operating distance, wherein the manual control distance states corresponding to the first target distance duration and the first target operating distance are gradually increasing states, and the corresponding manual control commands are closing commands;
and updating the first preset time according to the first target distance duration time, and updating the preset closing distance value according to the first target operating distance.
In one possible design, the manual control command includes a turn-on command; the manually controlled distance state comprises a gradual decrease state;
the processing module is further configured to:
acquiring second target distance duration and a second target operating distance, wherein the manual control distance states corresponding to the second target distance duration and the second target operating distance are gradually reduced states, and the corresponding manual control instructions are opening instructions;
and updating the second preset time according to the duration time of the second target distance, and updating the preset starting distance value according to the second target operating distance.
In a third aspect, the present invention provides an electronic device comprising: at least one processor and memory;
the memory stores computer execution instructions;
the at least one processor executes computer-executable instructions stored by the memory to cause the at least one processor to perform the water heater control method as set forth in the first aspect above and in various possible designs of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement a water heater control method as set forth in the first aspect and various possible designs of the first aspect.
In a fifth aspect, the present invention provides a computer program product comprising a computer program which, when executed by a processor, implements a water heater control method as set forth in the first aspect above and in various possible designs of the first aspect.
The technical personnel in the field can understand that the invention provides a water heater control method and electronic equipment, after the position information of a user end is obtained, the obtained position information of the user end and the position information of a water heater are used for determining the distance between the user end and the water heater, so that whether a user corresponding to the user end is far away from the water heater is judged by using the distance, namely whether the user needs to use the water heater is determined, the water heater is controlled according to the use requirement of the user to execute the zero-cold-water-mode control operation required by the user, the automatic control of the zero-cold-water mode is realized, the manual control of the user is not needed, the control efficiency of the zero-cold-water mode is improved, the zero-cold-water mode of the gas water heater is controlled according to the use requirement of the user, the control accuracy of the zero-cold-water mode is ensured, the use satisfaction degree of the user is improved, and the user experience is high.
Drawings
Preferred embodiments of a water heater control method and an electronic device of the present invention are described below with reference to the accompanying drawings. The attached drawings are as follows:
fig. 1 is a schematic view of a water heater control method according to an embodiment of the present invention;
FIG. 2 is a first flowchart illustrating a control method of a water heater according to an embodiment of the present invention;
fig. 3 is a second schematic flow chart of a water heater control method according to an embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a water heater control device provided by an embodiment of the invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances, such that the embodiments of the invention described herein are capable of being practiced, for example, in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In the prior art, when controlling a gas water heater, a user can manually control the gas water heater remotely or in a close range, that is, when the user needs to use hot water, the user inputs a corresponding opening instruction on the water heater through the user side or directly to open a zero-cold-water function of the gas water heater, and when the user does not need to use hot water, the user side or directly inputs a corresponding closing instruction on the water heater to close the zero-cold-water function. However, as the user needs to manually operate the gas water heater at the user end or on the water heater to control the on or off of the zero cold water function of the gas water heater, the control steps are complicated, the control efficiency is low, and the user experience is low.
Therefore, in view of the above problems, the technical idea of the present invention is to determine whether a user is far away from or close to a water heater based on a change in distance between the user terminal and the water heater. When the user is determined to be far away from the water heater, indicating that the user is far away from the home and the user may not need to use hot water, the zero cold water mode of the water heater is turned off; when confirming that the user is close to the water heater, it indicates that the user is close to the home, and it may need to use hot water, then opens the zero cold water mode of water heater, realizes the automatic intelligent control of the zero cold water mode of water heater, need not the manual work of user and operates, reduces the loaded down with trivial details nature of control, improves the control efficiency of zero cold water mode, avoids the waste of the energy when guaranteeing user's water demand, and user experience is high.
The following describes a preferred technical solution of the water heater control method and the electronic device according to the present invention with reference to the above drawings.
Fig. 1 is a scene schematic diagram of a water heater control method according to an embodiment of the present invention, and as shown in fig. 1, an electronic device 101 acquires location information reported by a user terminal 102, generates a zero cold water mode control instruction according to the location information of the user terminal, and sends the zero cold water mode control instruction to a water heater 103, so that the water heater 103 opens or closes a zero cold water mode according to the zero cold water mode control instruction.
Optionally, the electronic device 101 includes a server, a computer, or a terminal device with data processing capability. The user terminal 102 includes mobile terminals such as a mobile phone, a tablet computer, and a wearable device.
Optionally, the water heater 103 includes a zero-cold-water mode, that is, the water heater has a zero-cold-water function, and specifically, the water heater 103 may be a gas water heater having a zero-cold-water function.
Fig. 2 is a schematic flow chart of a water heater control method according to an embodiment of the present invention, where an execution main body of the embodiment may be the electronic device in the embodiment shown in fig. 1. The present embodiment is not particularly limited herein. As shown in fig. 2, the method includes:
s201, acquiring the position information of the user side and acquiring the position information of the water heater.
S202, determining the distance between the user side and the water heater according to the position information of the user side and the position information of the water heater.
In this embodiment, the electronic device acquires the location information of the user terminal in real time or periodically, that is, the user terminal may detect the current location information of itself in real time or at intervals of a preset transmission time, and transmit the current location information of itself to the electronic device after acquiring the current location information of itself.
The preset sending time can be reasonably set according to actual conditions, and is not set here.
In this embodiment, after the electronic device acquires the location information of the user side each time, the distance between the user side and the water heater is determined according to the location information of the user side and the location information of the water heater, that is, after the user side uploads the location information to the electronic device for one time, the electronic device determines the current distance between the user side and the water heater according to the location information of the user side and the location information of the water heater received this time.
Optionally, the location information includes longitude and latitude. For example, the location information of the user side includes latitude and longitude of the location of the user side; also for example, the location information of the water heater includes the latitude and longitude of the location of the water heater.
In addition, optionally, when the user starts the automatic control mode, that is, after the user obtains the automatic control instruction input by the user, it indicates that the water heater needs to be automatically controlled, the user sends the position information of the user to the electronic device in real time or periodically, so that the electronic device determines how to control the water heater by using the received position information.
In addition, optionally, when it is determined that the user terminal is not within the preset range of the water heater, the electronic device indicates that the user is not indoors, and the water heater may be automatically controlled, and the electronic device acquires the current location information of the user terminal in real time or periodically, so as to determine how to control the water heater by using the received location information.
Further, when determining whether the user side is within the preset range of the water heater, the determination may be performed according to the location information of the user side, or may be performed in other manners, for example, the determination may be performed by a human body sensor, and herein, the determination is not limited.
It can be understood that the electronic device obtains the location information of the user side, that is, the user side collects the location information and sends the location information to the electronic device, is authorized by the user, that is, the user agrees that the user side sends the location information to the electronic device.
And S203, controlling the water heater to execute corresponding zero cold water mode control operation according to the distance between the user side and the water heater.
In this embodiment, since the user side continuously sends its own location information to the electronic device, a plurality of distances can be obtained. After a plurality of distances between a user side and the water heater are determined, how the user wants to operate the water heater is predicted according to the change of the distances, namely, the operation to be executed by the water heater is determined, the water heater is controlled to execute corresponding zero cold water mode control operation, so that the zero cold water mode of the water heater is turned on or turned off, and the zero cold water mode of the water heater is automatically and accurately controlled.
In the embodiment, the water heater is automatically controlled to execute the corresponding zero-cold-water-mode control operation according to the distance change between the user side and the water heater, so that the zero-cold-water mode is automatically and accurately opened or closed, the use requirements of users are met, and the use satisfaction of the users is improved.
According to the description, after the position information of the user side is obtained, the distance between the user side and the water heater is determined by using the obtained position information of the user side and the position information of the water heater, so that whether a user corresponding to the user side is far away from the water heater or not is judged by using the distance, namely whether the user needs to use the water heater or not is determined, the water heater is controlled to execute zero-cold-water-mode control operation required by the user according to the use requirement of the user, automatic control of a zero-cold-water mode is achieved, manual control of the user is not needed, control efficiency of the zero-cold-water-mode is improved, the zero-cold-water-mode of the gas water heater is controlled according to the use requirement of the user, control accuracy of the zero-cold-water-mode is guaranteed, accordingly use satisfaction of the user is improved, and user experience is high.
Fig. 3 is a schematic flow chart of a water heater control method according to an embodiment of the present invention, and in this embodiment, on the basis of the embodiment of fig. 2, when determining how to control the water heater according to the distance between the user side and the water heater, the determination is actually performed according to a change situation of the distance, and this process will be described in detail with reference to an embodiment. As shown in fig. 3, the method includes:
s301, acquiring the position information of the user side and acquiring the position information of the water heater.
S302, determining the distance between the user side and the water heater according to the position information of the user side and the position information of the water heater.
In this embodiment, after obtaining the location information of the user terminal, the distance between the user terminal and the water heater may be determined by using the location information of the user terminal and the location information of the water heater, and specifically, the distance may be determined by using a Haversine (Haversine) formula, that is, by using the location information of the user terminal and the location information of the water heater
Figure BDA0003001423410000091
Calculating the distance between the user terminal and the water heater, wherein d is the distance between the user terminal and the water heater, R is a predetermined earth radius (for example, 6371 km), Φ 1 is the longitude of the user terminal, Φ 2 is the latitude of the water heater, and Δ λ is the difference between the longitude of the user terminal and the longitude of the water heater.
It should be noted that, when calculating the distance between the user end and the water heater, other distance calculation formulas may also be used for calculation, and here, no limitation is imposed on the distance.
And S303, determining a distance change state according to the distance between the user side and the water heater.
In this embodiment, since the user side continuously sends its location information to the electronic device, after the electronic device receives the location information of the user side each time, the distance between the user side and the water heater is calculated by using the received location information of the user side, so that the electronic device obtains the distances between the plurality of user sides and the water heater, so that the electronic device determines the distance change condition between the user side and the water heater by using the distances between the plurality of user sides and the water heater, that is, determines the distance change state.
In this embodiment, optionally, if the distance between the user end and the water heater continuously increases within the first preset time and continuously exceeds the preset closing distance value, it is determined that the distance change state is the gradually increasing state. And if the distance between the user side and the water heater is continuously reduced within the second preset time and is continuously smaller than the preset starting distance value, determining that the distance change state is a gradually reduced state. And if the distance between the user side and the water heater is continuously increased after being continuously reduced, and the increased distance is greater than a preset closing distance value, determining that the distance change state is a state of gradually reducing first and then gradually increasing.
Specifically, the distances between all the user terminals and the water heater, which are calculated within the first preset time, are obtained, and when the distances between the user terminals and the water heater are continuously increased and the distances calculated within the first preset time are always larger than a preset closing distance value, it is indicated that the distances between the user terminals and the water heater are continuously increased, and it is determined that the user terminals are continuously away from the water heater, so that the distance change condition between the user terminals and the water heater can be determined, that is, the distance change state is a gradually increasing state.
When the distance between the user side and the water heater corresponding to the next moment is greater than the distance between the user side and the water heater corresponding to the previous moment, the distance between the user side and the water heater is continuously increased, and when the distance between the user side and the water heater corresponding to each moment in the first preset time is greater than the preset closing distance value, the distance calculated in the first preset time is always greater than the preset closing distance value. For example, the first preset time is 5 minutes, the distances calculated in the first preset time are 1010 meters, 1020 meters, 1025 meters and 1035 meters in sequence, the preset closing distance value is 1000 meters, and since the distances corresponding to the next moment are all greater than the distances corresponding to the previous moment and are all greater than 1000 meters, the distance change state is determined to be the gradually increasing state.
Specifically, the distances between all the user terminals and the water heater, which are calculated within the second preset time, are obtained, and when the distances between the user terminals and the water heater are continuously decreased and the distances calculated within the second preset time are always smaller than the preset opening distance value, it is determined that the user terminals are continuously close to the water heater, that is, the distances between the user terminals and the water heater are continuously decreased, that is, the distance change condition between the user terminals and the water heater is determined, that is, the distance change state is a gradually decreasing state.
When the distance between the user side and the water heater corresponding to the current moment is smaller than the distance between the user side and the water heater corresponding to the previous moment, the distance between the user side and the water heater is continuously reduced, and when the distance between the user side and the water heater corresponding to each moment in the second preset time is smaller than the preset opening distance value, the distance calculated in the second preset time is always smaller than the preset opening distance value.
Specifically, when the calculated distance in the third preset time is first decreased and then increased, it indicates that the distance between the user side and the water heater is first decreased and then increased, and the user may approach the home and then leave the home, and after the distance is increased, the existing distance is greater than the preset closing distance value, that is, the distance exceeds the preset closing distance value, which indicates that the user is far away from the home, and then the distance change state is determined to be a state of gradually decreasing and then gradually increasing.
Optionally, when it is determined whether the distance is increased after being decreased, the distance between the user side and the water heater calculated within the third preset time may be obtained, the minimum distance value and the corresponding time within the third preset time may be searched, and the target distance and the corresponding time within the third preset time may be searched, where the target distance is a distance greater than the preset closing distance value. And when the time corresponding to the minimum distance value is earlier than the time corresponding to the target distance and the distance calculated at the time before the minimum distance value is obtained is continuously reduced, determining that the distance is reduced first and then increased.
And S304, generating a zero cold water mode control instruction according to the distance change state.
In this embodiment, it is determined whether a user corresponding to the user side is far away from the home (i.e., a water heater) or close to the home (i.e., a water heater) according to a distance change condition between the user side and the water heater, so as to predict how the user wants to operate the water heater, and further generate a desired zero-cold-water mode control instruction, so as to control the water heater to perform a desired zero-cold-water mode control operation by using the zero-cold-water mode control instruction, thereby implementing accurate control of the zero-cold-water mode.
In this embodiment, optionally, the implementation manner of S304 is as follows:
and if the distance change state is a gradually increasing state, generating a zero cold water mode closing instruction. And if the distance change state is a gradually reduced state, generating a zero cold water mode starting instruction. And if the distance changes to a state of gradually decreasing and then gradually increasing, generating a zero cold water mode closing instruction.
Specifically, when the distance change state is a gradually increasing state, it indicates that the distance between the user side and the water heater is gradually increasing and is always greater than a preset closing distance value, it is determined that the user is far away from home, the user does not need to use hot water, the zero cold water mode of the water heater can be closed, and a zero cold water mode closing instruction is generated.
When the distance change state is a gradual decrease state, it indicates that the distance between the user side and the water heater is gradually decreased and is always smaller than a preset opening distance value, it is determined that the user is close to home and may need to use hot water, a zero cold water mode of the water heater needs to be opened to heat water, and a zero cold water mode opening instruction is generated.
When the distance change state is a state of gradually decreasing and then gradually increasing, which indicates that the distance between the user side and the water heater is decreased and then increased, and when the distance between the user side and the water heater is increased, the distance between the user side and the water heater is larger than a preset closing distance value, it is determined that the user is close to home first, but the distance between the user and the water heater is gradually increased because other reasons (for example, forgetting that something is in a company) need to go to other places, and the user does not need to use hot water temporarily, and can close the zero-cold-water mode, namely, a zero-cold-water mode closing instruction is generated.
It should be emphasized that, when the change of the distance between the user end and the water heater is other change, for example, the distance is increased and then decreased, the distance can be determined according to the above principle of determining the distance change state. Correspondingly, the zero cold water mode control instruction can be generated according to other change conditions, namely the distance change state, and the reason for generating the zero cold water mode control instruction according to the distance change state is also adopted, namely when the user side is determined to be far away from the water heater, the user is indicated to be far away from the home, the water heater is not needed to be used, and the zero cold water mode closing instruction is generated; and when the user terminal is close to the water heater, which indicates that the user is close to the home and needs to use the water heater, generating a zero cold water mode starting instruction.
The first preset time, the second preset time, the third preset time, the preset opening distance value and the preset closing distance value can be set according to actual conditions, and are not limited.
S305, sending the zero cold water mode control instruction to the water heater so that the water heater executes corresponding zero cold water mode control operation according to the zero cold water mode control instruction.
In this embodiment, after the zero cold water mode control instruction is generated, the zero cold water mode control instruction is sent to the water heater, and after the water heater receives the zero cold water mode control instruction sent by the electronic device, the water heater responds to the zero cold water mode control instruction to execute a corresponding zero cold water mode control operation.
Specifically, when the zero cold water mode control instruction is a zero cold water mode starting instruction, the zero cold water mode is started, that is, the zero cold water function is started, so that the water heater heats water. And when the zero cold water mode control instruction is a zero cold water mode closing instruction, closing the zero cold water mode, namely closing the zero cold water function.
In any embodiment, in order to improve the accuracy of control, part of the parameters, that is, the preset information, may also be modified according to the actual habits of the user, and then the manual control information corresponding to the user side and the control distance and time information corresponding to the manual control information are obtained. And updating the preset information according to the manual control information and the control distance and time information. Wherein the preset information comprises one or more of: the method comprises the steps of presetting a closing distance value, a starting distance value, first preset time and second preset time.
Specifically, the manual control information is a control instruction input by a user when the user remotely and manually controls the zero cold water mode of the water heater, and the manual control instruction comprises a manual control instruction. Specifically, the manual control command includes a closing command and/or an opening command. When the manual control instruction is a closing instruction, the user is indicated to remotely close the zero cold water mode of the water heater, and when the manual control instruction is an opening instruction, the user is indicated to remotely open the zero cold water mode of the water heater.
The control distance time information represents the distance change situation between the user end and the water heater and the relevant time situation when the user inputs the control instruction, and the control distance time information comprises the operation distance, the manual control distance state and the corresponding distance change time.
And the operation distance represents the distance between the user side and the water heater when the user inputs the control command. The manual control distance state represents the change of the distance between the user terminal and the water heater within a time range when the user inputs a control command. The distance change time represents a time period from when the user inputs a control instruction, from when the distance is greater than a certain distance value or less than a certain distance value.
Specifically, the manual control distance state includes a gradually increasing state and/or a gradually decreasing state.
Further, optionally, updating the preset information according to the manual control information and the control distance and time information includes:
and acquiring the duration time of the first target distance and the first target operating distance, wherein the manual control distance states corresponding to the duration time of the first target distance and the first target operating distance are gradually increased states, and the corresponding manual control commands are closing commands. And acquiring the duration time of the second target distance and the second target operating distance, wherein the manual control distance states corresponding to the duration time of the second target distance and the second target operating distance are gradually reduced states, and the corresponding manual control instructions are opening instructions. And updating the first preset time according to the duration time of the first target distance, and updating a preset closing distance value according to the first target operating distance. And updating the second preset time according to the duration time of the second target distance, and updating the preset starting distance value according to the second target operating distance.
Specifically, when the manual control distance state is a gradually increasing state, it indicates that the distance between the user side and the water heater is gradually increased from small to large, that is, gradually increased, and if the user inputs a closing instruction, which indicates that the user remotely and manually closes the zero-cold-water mode of the water heater, the distance when the user inputs the closing instruction, that is, the operation distance is recorded and determined as the first target distance. And recording the time duration from the time when the time is larger than the first preset distance value to the time when the user inputs a closing instruction, and determining the time duration as the first target distance duration. For example, if the distance calculated at time T1 is greater than the first preset distance value, and the time when the user inputs the close command is time T2, the duration of the first target distance is T2-T1.
And determining the closing input distance according to all the first target distances, and updating the preset closing distance value by using the closing input distance, namely determining the closing input distance as the preset closing distance value. And determining the increasing duration according to all the first target distance durations, and updating the first preset time by using the increasing duration, namely using the increasing duration as the first preset time.
Alternatively, when the closing input distance is determined according to all the first target distances, a mode of all the first target distances may be determined as the closing input distance, or the mode may be determined in another manner, for example, an average value of all the first target distances is used as the closing input distance.
Alternatively, when determining the increase duration according to all the first target distance durations, the mode of all the increase durations may be determined as the first preset time, but of course, the determination may be performed in other manners, for example, the average value of all the increase durations is used as the first preset time.
In addition, the first preset distance value may be a preset closing distance value before updating, or may be another set value, which is not limited in the present application.
Specifically, when the manual control distance state is a gradually decreasing state, it indicates that the distance between the user side and the water heater is gradually decreased from large to small, that is, gradually decreased, and if the user inputs an opening instruction, which indicates that the user remotely and manually opens the zero-cold-water mode of the water heater, the distance when the user inputs the opening instruction, that is, the operation distance is recorded, and the operation distance is determined as the second target distance. And recording the duration from the time when the duration is less than the first preset distance value to the time when the user inputs the opening instruction, and determining the duration as the duration of the second target distance.
And determining the starting input distance according to all the second target distances, and updating the preset starting distance value by using the starting input distance, namely determining the starting input distance as the preset starting distance value. And determining the reduction duration according to all the second target distance durations, and updating the second preset time by using the reduction duration, namely using the reduction duration as the second preset time.
Alternatively, when the on input distance is determined according to all the second target distances, a mode of all the second target distances may be determined as the on input distance, or the mode may be determined in another manner, for example, an average value of all the second target distances is used as the on input distance.
Alternatively, when determining the decreasing duration according to all the second target distance durations, the mode in all the decreasing durations may be determined as the second preset time, or may be determined in other manners, for example, an average value of all the decreasing durations is used as the second preset time.
In the embodiment, according to the related information of the remote manual control water heater of the user, namely, according to the actual use habit of the user, part of the preset information is updated, so that when the zero cold water mode of the water heater is automatically controlled by using the updated preset information, the use habit of the user is better met, the control accuracy is improved, the use requirement of the user is met, and the use satisfaction of the user is improved.
In the embodiment, whether the user is far away from home or close to home is determined according to the distance change condition between the user side and the water heater, namely the distance change state, so as to predict the use intention of the user, namely whether the water heater needs to be used, and when the situation that the user needs to use the water heater is predicted, the water heater is controlled to execute the zero-cold-water opening operation, so that the user can use hot water immediately after going home. When the fact that the user does not need to use the water heater is predicted, the water heater is controlled to execute zero cold water closing operation, waste of energy is reduced, automatic accurate control of a zero cold water mode of the water heater is achieved, and user experience is high.
Fig. 4 is a schematic structural diagram of a water heater control device according to an embodiment of the present invention, and as shown in fig. 4, the water heater control device 40 may include: an information acquisition module 401 and a processing module 402.
The information obtaining module 401 is configured to obtain location information of the user side, and obtain location information of the water heater.
And the processing module 402 is configured to determine a distance between the user terminal and the water heater according to the location information of the user terminal and the location information of the water heater.
The processing module 402 is further configured to control the water heater to execute a corresponding zero-cold-water mode control operation according to a distance between the user terminal and the water heater.
In another embodiment of the present invention, on the basis of the embodiment shown in fig. 4, the processing module 402 is further configured to:
and determining the distance change state according to the distance between the user side and the water heater.
And generating a zero cold water mode control instruction according to the distance change state.
And sending the zero cold water mode control instruction to the water heater so that the water heater executes corresponding zero cold water mode control operation according to the zero cold water mode control instruction.
In this embodiment, optionally, the processing module 402 is further configured to:
and if the distance change state is a gradually increasing state, generating a zero cold water mode closing instruction.
And if the distance change state is a gradually reduced state, generating a zero cold water mode starting instruction.
And if the distance changes to a state of gradually decreasing and then gradually increasing, generating a zero cold water mode closing instruction.
In this embodiment, optionally, the processing module 402 is further configured to:
if the distance between the user side and the water heater is continuously increased within the first preset time and is continuously greater than the preset closing distance value, determining that the distance change state is a gradually increasing state.
And if the distance between the user side and the water heater is continuously reduced within the second preset time and is continuously smaller than the preset starting distance value, determining that the distance change state is a gradually reduced state.
And if the distance between the user side and the water heater is continuously increased after being continuously reduced, and the increased distance is greater than a preset closing distance value, determining that the distance change state is a state of gradually reducing first and then gradually increasing.
In any embodiment, optionally, the processing module 402 is further configured to:
and acquiring manual control information corresponding to the user side and control distance and time information corresponding to the manual control information.
And updating the preset information according to the manual control information and the control distance and time information. Wherein the preset information comprises one or more of: the method comprises the steps of presetting a closing distance value, a starting distance value, first preset time and second preset time.
Further, optionally, the manual control information includes a manual control command, and the manual control command includes a closing command. The control distance time information comprises an operation distance, a manual control distance state and distance change time corresponding to the manual control distance state, and the manual control distance state comprises a gradually increasing state.
The processing module 402 is further configured to:
and acquiring the duration time of the first target distance and the first target operating distance, wherein the manual control distance states corresponding to the duration time of the first target distance and the first target operating distance are gradually increased states, and the corresponding manual control commands are closing commands.
And updating the first preset time according to the duration time of the first target distance, and updating a preset closing distance value according to the first target operating distance.
Further, optionally, the manual control command comprises a turn-on command. The manually controlled distance state includes a gradual decrease state.
The processing module 402 is further configured to:
and acquiring the duration time of the second target distance and the second target operating distance, wherein the manual control distance states corresponding to the duration time of the second target distance and the second target operating distance are gradually reduced states, and the corresponding manual control instructions are opening instructions.
And updating the second preset time according to the duration time of the second target distance, and updating the preset starting distance value according to the second target operating distance.
For detailed functional description of each module in this embodiment, reference is made to the description of the embodiment of the method, and the detailed description is not provided herein.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device 50 provided in the present embodiment includes: at least one processor 501 and memory 502. The electronic device 50 further comprises a communication component 503. The processor 501, the memory 502, and the communication unit 503 are connected by a bus 504.
In particular implementations, the at least one processor 501 executes computer-executable instructions stored by the memory 502 to cause the at least one processor 501 to perform the water heater control method as performed by the blockchain node above.
For a specific implementation process of the processor 501, reference may be made to the above method embodiments, which implement the similar principle and technical effect, and this embodiment is not described herein again.
In the embodiment shown in fig. 5, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of hardware and software modules.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
Another embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the method for controlling a water heater in the above method embodiments is implemented.
The embodiment of the present invention further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method for controlling a water heater as described above is implemented.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (10)

1. A method of controlling a water heater, comprising:
acquiring position information of a user side and acquiring position information of the water heater;
determining the distance between the user side and the water heater according to the position information of the user side and the position information of the water heater;
and controlling the water heater to execute corresponding zero cold water mode control operation according to the distance between the user side and the water heater.
2. The method of claim 1, wherein the controlling the water heater to perform the corresponding zero cold water mode control operation according to the distance between the user terminal and the water heater comprises:
determining a distance change state according to the distance between the user side and the water heater;
generating a zero cold water mode control instruction according to the distance change state;
and sending the zero cold water mode control instruction to a water heater so that the water heater executes corresponding zero cold water mode control operation according to the zero cold water mode control instruction.
3. The method of claim 2, wherein generating a zero chilled water mode control command based on the distance change status comprises:
if the distance change state is a gradually increasing state, generating a zero cold water mode closing instruction;
if the distance change state is a gradually reduced state, generating a zero cold water mode starting instruction;
and if the distance change is in a state of gradually decreasing and then gradually increasing, generating a zero cold water mode closing instruction.
4. The method of claim 2, wherein determining the distance change status according to the distance between the user terminal and the water heater comprises:
if the distance between the user side and the water heater is continuously increased within a first preset time and is continuously greater than a preset closing distance value, determining that the distance change state is a gradually increasing state;
if the distance between the user side and the water heater is continuously reduced within a second preset time and is continuously smaller than a preset starting distance value, determining that the distance change state is a gradually reduced state;
if the distance between the user side and the water heater continuously increases after continuously decreasing, and the increased distance is larger than the preset closing distance value, determining that the distance change state is a state of gradually decreasing first and then gradually increasing.
5. The method according to any one of claims 1 to 4, further comprising:
acquiring manual control information corresponding to a user side and control distance time information corresponding to the manual control information;
updating preset information according to the manual control information and the control distance and time information; wherein the preset information comprises one or more of: the method comprises the steps of presetting a closing distance value, a starting distance value, first preset time and second preset time.
6. The method of claim 5, wherein the manual control information comprises manual control instructions, the manual control instructions comprising shutdown instructions; the control distance time information comprises an operation distance, a manual control distance state and distance change time corresponding to the manual control distance state, wherein the manual control distance state comprises a gradually increasing state;
the updating preset information according to the manual control information and the control distance and time information comprises:
acquiring first target distance duration and a first target operating distance, wherein the manual control distance states corresponding to the first target distance duration and the first target operating distance are gradually increasing states, and the corresponding manual control commands are closing commands;
and updating the first preset time according to the first target distance duration time, and updating the preset closing distance value according to the first target operating distance.
7. The method of claim 6, wherein the manual control command comprises a turn-on command; the manually controlled distance state comprises a gradual decrease state;
the updating preset information according to the manual control information and the control distance and time information comprises:
acquiring second target distance duration and a second target operating distance, wherein the manual control distance states corresponding to the second target distance duration and the second target operating distance are gradually reduced states, and the corresponding manual control instructions are opening instructions;
and updating the second preset time according to the second target distance duration time, and updating the preset starting distance value according to the second target operating distance.
8. An electronic device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing computer-executable instructions stored by the memory cause the at least one processor to perform the water heater control method of any one of claims 1 to 7.
9. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, implement a water heater control method as claimed in any one of claims 1 to 7.
10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the water heater control method of any one of claims 1 to 7.
CN202110348248.7A 2021-03-31 2021-03-31 Water heater control method and electronic equipment Active CN115143638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110348248.7A CN115143638B (en) 2021-03-31 2021-03-31 Water heater control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110348248.7A CN115143638B (en) 2021-03-31 2021-03-31 Water heater control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN115143638A true CN115143638A (en) 2022-10-04
CN115143638B CN115143638B (en) 2023-12-12

Family

ID=83404180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110348248.7A Active CN115143638B (en) 2021-03-31 2021-03-31 Water heater control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN115143638B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116625014A (en) * 2023-07-25 2023-08-22 杭州老板电器股份有限公司 Control method and control system for zero cold water function of water heater

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253299A1 (en) * 2013-03-08 2014-09-11 Grand Mate Co., Ltd. Controlling system which controls gas appliance via remote control and the gas appliance of the controlling system
CN108286807A (en) * 2017-01-09 2018-07-17 芜湖美的厨卫电器制造有限公司 Water heater and its control method
WO2018192258A1 (en) * 2017-04-19 2018-10-25 格力电器(武汉)有限公司 Water heater control method and device, water heater, and control system
CN109708317A (en) * 2017-10-26 2019-05-03 芜湖美的厨卫电器制造有限公司 Control system, method and the server of water heater
CN111238048A (en) * 2019-10-18 2020-06-05 华帝股份有限公司 Control method of water heater

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140253299A1 (en) * 2013-03-08 2014-09-11 Grand Mate Co., Ltd. Controlling system which controls gas appliance via remote control and the gas appliance of the controlling system
CN108286807A (en) * 2017-01-09 2018-07-17 芜湖美的厨卫电器制造有限公司 Water heater and its control method
WO2018192258A1 (en) * 2017-04-19 2018-10-25 格力电器(武汉)有限公司 Water heater control method and device, water heater, and control system
CN109708317A (en) * 2017-10-26 2019-05-03 芜湖美的厨卫电器制造有限公司 Control system, method and the server of water heater
CN111238048A (en) * 2019-10-18 2020-06-05 华帝股份有限公司 Control method of water heater

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116625014A (en) * 2023-07-25 2023-08-22 杭州老板电器股份有限公司 Control method and control system for zero cold water function of water heater

Also Published As

Publication number Publication date
CN115143638B (en) 2023-12-12

Similar Documents

Publication Publication Date Title
US10393398B2 (en) System and method for optimizing use of plug-in air conditioners and portable heaters
RU2651943C2 (en) Method and device for controlling intelligent devices
CN109547308A (en) A kind of control method of smart home, device, storage medium and server
CN115143638A (en) Water heater control method and electronic equipment
CN113310182A (en) Control method of temperature adjusting equipment and electronic equipment
CN110579076B (en) Intelligent refrigerator reminding method and device, medium, control equipment and refrigerator
CN117433058A (en) Thermal energy management method, device, equipment and medium for heat supply equipment
CN110529982B (en) Air conditioner control method and device, air conditioner partner and air conditioner
CN104075412A (en) Control method and control system of air-conditioner
CN115143644A (en) Water heater control method and electronic equipment
CN110701737B (en) Air conditioner temperature compensation setting method, computer device and computer readable storage medium
CN114963552A (en) Water heater starting control method and device, electronic equipment and storage medium
CN113701353A (en) Water heater control method, electronic device, water heater and readable storage medium
CN114963288B (en) Heating furnace control method, device, equipment and storage medium
CN112032973A (en) Heat accumulation instruction issuing control method
JP2021042877A (en) Server, control system and control program
CN114963556B (en) Water heater control method, device, equipment and storage medium
CN112015100B (en) Intelligent switch authority adjusting method and device, intelligent switch and storage medium
CN114484882B (en) Method and device for regulating and controlling zero cold water function, storage medium and electronic equipment
CN112859950B (en) Temperature control device control method, system, control device and readable storage medium
CN115183316B (en) Control method, device and equipment of heating equipment and storage medium
CN112781247B (en) Heating information prompting method and server
CN114035514B (en) Intelligent device starting method, mobile terminal and computer readable storage medium
CN108156324B (en) Mobile terminal, WIFI automatic closing method thereof and storage medium
CN113359521B (en) Household appliance control method and device and household appliance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant