Disclosure of Invention
The invention mainly aims to provide a water heater, and aims to provide a water heater with unified water supply speed and energy efficiency ratio.
In order to achieve the above object, the present invention provides a control method for a water heater, comprising the following steps:
acquiring a current distance between a designated mobile terminal and a preset position;
and when the current distance between the appointed mobile terminal and the preset position is less than or equal to the preset distance, the water heater is started.
Preferably, the step of obtaining the current distance between the designated mobile terminal and the preset position specifically includes:
establishing connection with a server;
and acquiring a current distance between the appointed mobile terminal and the preset position from the server, wherein the current distance is generated by the server through calculation according to the fixed position information and the moving position information of the appointed mobile terminal.
Preferably, the step of turning on the water heater when the current distance between the designated mobile terminal and the preset position is less than or equal to the preset distance specifically includes:
when the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance, counting the water consumption times of each water consumption time period of each day in the previous period, and when the water consumption times of the water consumption time period are smaller than the preset times, the time period is an irregular time period;
when the current time period is an irregular time period, sending a confirmation request to a specified mobile terminal;
and when receiving the confirmation information sent by the mobile terminal, turning on the heater.
Preferably, the step of obtaining the current distance between the designated mobile terminal and the preset position includes:
counting the water consumption times of each water consumption time period of each day in the previous period, wherein when the water consumption times of the water consumption time period are more than or equal to the preset times, the time period is a regular time period;
and when the current time period is a regular time period, acquiring the current distance between the appointed mobile terminal and the preset position.
Preferably, when the current time period is a regular time period, the step of obtaining the current distance between the designated mobile terminal and the preset position includes:
when the current time period is the regular time period, counting the respective average water consumption of all regular time periods, and when the average water consumption is more than or equal to a first preset water consumption, the regular time period corresponding to the average water consumption is a high-temperature time period;
and when the current time period is the high-temperature time period, acquiring the current distance between the appointed mobile terminal and the preset position.
Preferably, the step of turning on the water heater when the current distance between the designated mobile terminal and the preset position is less than or equal to the preset distance includes:
when the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance, sending water demand information to the appointed mobile terminal; the water demand information comprises a water temperature parameter and a water duration parameter;
receiving feedback information of a designated mobile terminal, and adjusting heating parameters of the water heater according to the feedback information;
and heating according to the adjusted heating parameters.
The invention further proposes a water heater comprising:
the acquisition module is used for acquiring the current distance between the appointed mobile terminal and a preset position;
and the starting module is used for starting the water heater when the current distance between the appointed mobile terminal and the preset position is less than or equal to the preset distance.
Preferably, a connection unit for establishing a connection with the server
And the second acquisition unit is used for acquiring the current distance between the appointed mobile terminal and the preset position from the server, acquiring the fixed position information of the preset position and the moving position information of the appointed mobile terminal by the server, and calculating and generating the current distance according to the fixed position information and the moving position information.
Preferably, the opening module includes:
the second counting unit is used for counting the water consumption times of each water consumption time period every day in the previous period when the current distance between the appointed mobile terminal and the water heater is smaller than or equal to the preset distance, and the time period is an irregular time period when the water consumption times of the water consumption time period are smaller than the preset times;
the request unit is used for sending a confirmation request to the appointed mobile terminal when the current time period is an irregular time period;
and the first heating unit is used for turning on the heater when receiving the confirmation information sent by the mobile terminal.
Preferably, the obtaining module includes:
the first statistic unit is used for counting the water consumption times of each water consumption time period of each day in the previous period, and when the water consumption times of the water consumption time periods are larger than or equal to the preset times, the time periods are regular time periods;
the first obtaining unit is used for obtaining the current distance between the appointed mobile terminal and the preset position when the current time quantum is a regular time quantum.
Preferably, the first acquiring unit includes:
the statistical subunit is used for calculating the average water consumption of all regular time periods, and when the average water consumption is greater than or equal to a first preset water consumption, the regular time period corresponding to the average water consumption is a high-temperature time period;
and the obtaining subunit is used for obtaining the current distance between the appointed mobile terminal and the preset position when the current time period is the high-temperature time period.
Preferably, the opening module includes:
the sending unit is used for sending water demand information to the appointed mobile terminal when the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance; the water demand information comprises a water temperature parameter and a water duration parameter;
the receiving unit is used for receiving the feedback information of the appointed mobile terminal and adjusting the heating parameters of the water heater according to the feedback information;
and the second heating unit is used for heating according to the adjusted heating parameters.
In the invention, firstly, the water heater detects the corresponding appointed mobile terminal and obtains the current distance between the appointed mobile terminal and the water heater; when the current distance between the appointed mobile terminal and the water heater is smaller than or equal to the preset distance, starting the water heater; according to the technical scheme, the water heater starts to heat at the first time when a user goes home or goes home, so that energy waste caused by circular heating of the water heater is avoided, and hot water can be provided for the user in time.
Detailed Description
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 of 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.
It should be noted that all the directional indicators (such as up, down, left, right, front, and rear … …) in the embodiment of the present invention are only used to explain the relative position relationship between the components, the movement situation, etc. in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indicator is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in the present invention are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1 to 5, the water heater controlled by the present invention is exemplified by an electric water heater, which includes an inner container 200 for storing water, a heating device 300 for heating water, a casing 100 disposed outside the inner container 200 for protecting the inner container 200 and the insulation water, a water temperature detecting device for detecting a water temperature, and a display panel 500 for displaying the water temperature. The temperature detection device 400 is used for detecting the temperature of water in the water heater liner 200; the temperature detecting device 400 may be a temperature sensing probe or any other temperature sensor capable of detecting the temperature of water. The result of the water temperature detection can be the result of the latest detection or the average value of a plurality of detections in unit time. For example, the temperature detection device 400 may use the last detected temperature as the detected temperature, or may detect the last detected temperature for 5 times within 2 seconds, and then use the detection result of the 5 times as the detection value. It is worth to be noted that the technical scheme of the invention is suitable for water storage type water heaters, including electric heating water storage type, combustion heating water storage type and water storage type water heaters which use other energy sources for heating.
The following control method of a water heater proposed according to the above structure of the water heater includes the steps of:
s10: acquiring a current distance between a designated mobile terminal and a preset position;
in this embodiment, the preset location may be set according to a requirement of a user, so that there are many preset locations, for example, the preset location is set at home, or in a cell, or at an airport, or at a station, and the location of the water heater is taken as an example of the preset location.
The water heater and the designated mobile terminal are connected with the server through a wireless network. And the server calculates the distance between the water heater and the appointed mobile terminal according to the current positions of the water heater and the appointed mobile terminal. The water heater is internally provided with the wireless communication module, and the water heater and the wireless network are relatively fixed, so that the wireless communication module is directly connected into the wireless network as an example, in other embodiments, the connection between the wireless communication module and the wireless network can be set with a plurality of conditions or can be directly controlled by a user through an instruction. Similarly, the mode of the mobile terminal accessing the wireless network can be designated and can be always accessed to the wireless network or can be directly controlled by the user through an instruction. The designated mobile terminal can be an electronic product carried by a user, such as a mobile phone, a smart watch, a bracelet and the like.
And calculating the distance between the specified mobile terminal and the water heater, and specifically, the server can firstly acquire the specific positions of the water heater and the specified mobile terminal through a GPS positioning system. Of course, in some embodiments, the server may store the acquired location information of the water heater for the next direct call, in which case, in order to ensure the accurate location of the water heater, the location of the water heater in the server needs to be updated periodically. The server stores identification information of the water heater and the designated mobile terminal, so that the water heater and the designated mobile terminal can be in one-to-one correspondence. After the specific positions of the designated mobile terminal and the corresponding water heater are obtained, the distance between the designated mobile terminal and the water heater can be obtained through coordinate calculation. That is, the water heater obtains the current distance from the server, and the current distance is obtained by the server from the fixed position information of the water heater and the mobile position information of the specified mobile terminal, and is calculated and generated according to the fixed position information and the mobile position information. After the server acquires the coordinates of the water heater and the specified movement, the linear distance between the water heater and the specified movement can be calculated, or a route corresponding to a vehicle is planned according to the positions of the water heater and the specified movement, and then the distance corresponding to the route is calculated, wherein the vehicle can be an airplane, a high-speed rail, a self-driving vehicle and the like. Of course, it can be understood that, when planning a route, a corresponding map is required, and the map may be prestored in a designated mobile terminal or a water heater, or may be obtained from the internet. The map information can be updated in a timed and networking mode.
The method for matching the water heater and the designated mobile terminal in the server can also be characterized in that the water heater stores the MAC address or other characteristic information of the designated mobile terminal, the water heater detects the characteristic information of the mobile terminal in the server through a wireless network, and then the acquired characteristic information is matched with the stored characteristic information of the designated mobile terminal. And the water heater acquires the position information of the specified mobile terminal only when the specified characteristic information is detected. And when the matching of the acquired feature information and the stored feature information of the specified mobile terminal fails, discarding the current matching object, and detecting and matching.
Because the designated mobile terminal is carried by the user, when the user goes out of work or goes on a business trip, the distance between the designated mobile terminal and the water heater is gradually increased along with the real-time update of the position of the designated mobile terminal in the server. When the user goes off work or goes home, the distance between the designated mobile terminal and the water heater is gradually reduced along with the real-time update of the position of the designated mobile terminal in the server.
Of course, in some embodiments, the designated mobile terminal and the water heater may be connected in a single direction, and the distance between the designated mobile terminal and the water heater is calculated by the micro server, and the micro server may be disposed in the designated mobile terminal or the water heater, at this time, the location information of the designated mobile terminal or the water heater does not need to be provided to a third party, which is beneficial to preventing the user location information from leaking and improving the efficiency of location calculation.
S20: and when the current distance between the appointed mobile terminal and the preset position is less than or equal to the preset distance, the water heater is started.
And when the current distance between the appointed mobile terminal and the water heater is smaller than or equal to the preset distance, the water heater is started to provide hot water for the user. That is, when the current distance between the designated mobile terminal and the water heater is less than or equal to the preset distance, it is considered that the user is on the way to go home or has gone home, and at this time, the water heater needs to be turned on to provide hot water for the user. When the distance between the designated mobile terminal and the water heater is larger than the second preset distance, the user is considered to be on a business trip or on the way to work, and the water heater can be turned off at the moment. And when the distance between the designated mobile terminal and the water heater is between the preset distance and a second preset distance, the water heater keeps the current working state, wherein the preset distance is smaller than the second preset distance.
In the embodiment, firstly, the water heater detects the corresponding appointed mobile terminal, and obtains the current distance between the appointed mobile terminal and the water heater; when the current distance between the appointed mobile terminal and the water heater is smaller than or equal to the preset distance, starting the water heater; according to the technical scheme, the water heater starts to heat at the first time when a user goes home or goes home, so that energy waste caused by circular heating of the water heater is avoided, and hot water can be provided for the user in time.
In order to turn on the water heater more accurately, the step of obtaining the current distance between the designated mobile terminal and the water heater comprises the following steps:
s11: counting the water consumption times of each water consumption time period of each day in the previous period, wherein when the water consumption times of the water consumption time period are more than or equal to the preset times, the time period is a regular time period;
in this embodiment, the cycle is exemplified by 21 days, and each day is divided into six time periods, which are respectively 3: 00-7: 00, 7: 00-11: 00, 11: 00-15: 00, 15: 00-19: 00, 19: 00-23: 00, 23: 00-3: 00. During each period, the number of times the user uses water, and the amount of water used per time, is recorded. The total number of water usage times in a water usage period is, the total number of water usage times in the water usage period in 21 days of a cycle, and the number of water usage times per day in each period may be different, for example, 7 on monday to friday: the average water consumption frequency of 00-11: 00 is 0.5, and the water consumption frequency of saturday and sunday is 7: the average water consumption frequency of 00-11: 00 is 3.5. The preset number is 11, for example, and may be set according to the requirement of the user in some embodiments. That is, when the user uses water for a certain period of time of 21 days for 11 times or more, the period is set as a regular period, and the water consumption is controlled to be increased by the period 19: 00-23: 00 as an example. When the user uses water less than 11 times in a certain period of 21 days, the period is set as an irregular period, and the period is set as a period of 11: 00-15: 00 as an example. The water consumption time period is divided into regular time periods and irregular time periods through statistics of the total water consumption times in the water consumption time period.
Of course, before statistics, the heating control needs to be periodically set, each period time length and water use time period are divided, and the water use condition of the user in each water use time period, namely the water use times, the water use frequency, the water use temperature and the water use amount, is recorded. This process, for the learning process of the water heater, in the first cycle, the water usage parameter not set by the user is installed with preset parameters for operation, for example, the heating time is preset to 19: 00-23: 00 and 7: 00-11: 00, presetting a sleep time period as 23: 00-3: 00, and the like. The second overtime period is set according to the water consumption condition of the first period of the user, and the third period is adjusted according to the water consumption conditions of the first period and the second period.
S12: and when the current time period is a regular time period, acquiring the current distance between the appointed mobile terminal and the preset position.
When the current time period is a regular time period, the frequency of water consumption by the user is high, and at this time, although the user is not at home, the possibility that the user needs to use hot water is high. In the embodiment, in order to improve the opening accuracy, the water heater does not directly obtain the distance between the water heater and the designated mobile terminal, but the water use habit in the current time period is judged according to the water use rule, and when the water use frequency in the current time period is more, the distance is obtained, so that the probability of mistakenly opening the water heater is reduced, and the opening accuracy of the water heater is improved.
In order to improve the heating accuracy, when the current time period is a regular time period, the step of obtaining the current distance between the designated mobile terminal and the preset position includes:
when the current time period is the regular time period, counting the respective average water consumption of all regular time periods, and when the average water consumption is more than or equal to a first preset water consumption, the regular time period corresponding to the average water consumption is a high-temperature time period; and when the current time period is the high-temperature time period, acquiring the current distance between the appointed mobile terminal and the water heater.
In the embodiment, in the regular time periods, the water consumption of each time of water consumption in all the regular time periods is counted, the total water consumption in each regular time period is calculated, and the average water consumption of each day of water consumption in each time period in the period is obtained by dividing the total water consumption by the total days of water consumption. For example, 19 per day for 21 days was calculated: 00-23: 00 water consumption, and then adding the water consumption in 21 time periods in the period to obtain a time period 19: and (3) dividing the total water consumption in the period of 00-23: 00 by the cycle days of 21 days to obtain the average water consumption of each day in the time period. And comparing the average water consumption with the first preset water consumption, wherein when the average water consumption is more than or equal to the first preset water consumption, the time period corresponding to the average water consumption is a high-temperature time period. The first preset water usage is for example 20L, i.e. when the time period 19: when the average water consumption of 00-23: 00 is more than or equal to 20L, the time period is 19: and the high-temperature time period is 00-23: 00. Correspondingly, when the average water consumption is less than the first preset water consumption, the time period corresponding to the average water consumption is a low-temperature time period. The first preset water usage is for example 20L, i.e. when time period 7: when the average water consumption of 00-11: 00 is less than 20L, the time period is 7: and the low-temperature time period is 00-11: 00.
In the embodiment, the designated mobile terminal is detected in the high-temperature time period, so that the possibility that the user needs to use water is further improved, and the condition of mistaken heating of the water heater is greatly reduced.
In order to improve the accuracy of turning on the water heater, the step of turning on the water heater when the current distance between the designated mobile terminal and the preset position is less than or equal to the preset distance specifically comprises:
when the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance, counting the water consumption times of each water consumption time period of each day in the previous period, and when the water consumption times of the water consumption time period are smaller than the preset times, the time period is an irregular time period;
in this embodiment, the cycle is exemplified by 21 days, and each day is divided into six time periods, which are respectively 3: 00-7: 00, 7: 00-11: 00, 11: 00-15: 00, 15: 00-19: 00, 19: 00-23: 00, 23: 00-3: 00. During each period, the number of times the user uses water, and the amount of water used per time, is recorded. The total number of water usage times in a water usage period is, the total number of water usage times in the water usage period in 21 days of a cycle, and the number of water usage times per day in each period may be different, for example, 7 on monday to friday: the average water consumption frequency of 00-11: 00 is 0.5, and the water consumption frequency of saturday and sunday is 7: the average water consumption frequency of 00-11: 00 is 3.5. The preset number is 11, for example, and may be set according to the requirement of the user in some embodiments. That is, when the user uses water for a certain period of time of 21 days for 11 times or more, the period is set as a regular period, and the water consumption is controlled to be increased by the period 19: 00-23: 00 as an example. When the user uses water less than 11 times in a certain period of 21 days, the period is set as an irregular period, and the period is set as a period of 11: 00-15: 00 as an example. The water consumption time period is divided into regular time periods and irregular time periods through statistics of the total water consumption times in the water consumption time period.
Of course, before statistics, the heating control needs to be periodically set, each period time length and water use time period are divided, and the water use condition of the user in each water use time period, namely the water use times, the water use frequency, the water use temperature and the water use amount, is recorded. This process, for the learning process of the water heater, in the first cycle, the water usage parameter not set by the user is installed with preset parameters for operation, for example, the heating time is preset to 19: 00-23: 00 and 7: 00-11: 00, presetting a sleep time period as 23: 00-3: 00, and the like. The second overtime period is set according to the water consumption condition of the first period of the user, and the third period is adjusted according to the water consumption conditions of the first period and the second period.
When the current time period is an irregular time period, sending a confirmation request to a specified mobile terminal; and when receiving the confirmation information sent by the mobile terminal, starting the water heater. Of course, in some embodiments, if the current time period is a regular time period, even a high temperature time period, the water heater may directly heat the specified mobile terminal without sending a confirmation request to the specified mobile terminal. Of course, consultation can also be performed according to actual needs.
When the current time period is an irregular time period, the frequency of water consumption by the user is low, and at this time, the user does not necessarily need to use hot water although the user is at home. In order to improve the heating accuracy, the water heater sends the preset request message to the specified mobile terminal through a wireless network, and of course, in other embodiments, the water heater may also be sent to the specified mobile terminal through a communication network (e.g., mobile, internet, telecommunication, etc.). And the appointed mobile terminal replies to the water heater according to the instruction of the user. When the user needs to use hot water, the confirmation can be selected on the display interface of the designated mobile terminal, and when the user does not need to use the hot water, the cancellation or no indication can be selected on the display interface of the designated mobile terminal. And when the water heater receives the confirmation information sent by the appointed mobile terminal, the water heater starts heating and heats the water to the preset temperature. When the water heater receives the negative information or does not receive the information sent by the appointed mobile terminal, the water heater keeps the existing state and does not start heating.
In this embodiment, when the current distance between the designated mobile terminal and the preset position is less than or equal to the preset distance, the designated mobile terminal is consulted instead of being directly heated, and confirmation of the user is waited to avoid heating by mistake.
In order to enable the water heater to be heated accurately according to the requirement of a user, the step of turning on the water heater when the current distance between the designated mobile terminal and the preset position is less than or equal to the preset distance comprises the following steps:
when the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance, sending water demand information to the appointed mobile terminal; the water demand information comprises a water temperature parameter and a water duration parameter; receiving feedback information of a designated mobile terminal, and adjusting heating parameters of the water heater according to the feedback information; and heating according to the adjusted heating parameters.
When the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance, namely the water heater meets the requirement of opening the adjusting piece, the water consumption demand information is firstly sent to the mobile terminal, and the user sends feedback information through the mobile terminal. The feedback information includes parameters of water usage required by the user, such as a time period of water usage, a water temperature of the water usage required, a water amount of the water usage required, and the like. After the water heater receives the feedback information, heating setting is carried out according to the relevant water use parameters, so that the water heater meets the water use requirement of a user and simultaneously reduces the heating of redundant hot water as much as possible.
Of course, it can be understood that this embodiment may be combined with the above embodiments, and the time for sending the water demand information is when the water heater meets the start condition. The water heater can heat according to the preset heating mode, adjusts after receiving the feedback information, and can heat after waiting for the feedback information.
The present invention further provides a water heater comprising:
an obtaining module 10, configured to obtain a current distance between a specified mobile terminal and a preset position;
in this embodiment, the water heater and the designated mobile terminal are both connected to the server through a wireless network. And the server calculates the distance between the water heater and the appointed mobile terminal according to the current positions of the water heater and the appointed mobile terminal. The water heater is internally provided with the wireless communication module, and the water heater and the wireless network are relatively fixed, so that the wireless communication module is directly connected into the wireless network as an example, in other embodiments, the connection between the wireless communication module and the wireless network can be set with a plurality of conditions or can be directly controlled by a user through an instruction. Similarly, the mode of the mobile terminal accessing the wireless network can be designated and can be always accessed to the wireless network or can be directly controlled by the user through an instruction. The designated mobile terminal can be an electronic product carried by a user, such as a mobile phone, a smart watch, a bracelet and the like.
And calculating the distance between the specified mobile terminal and the water heater, and specifically, the server can firstly acquire the specific positions of the water heater and the specified mobile terminal through a GPS positioning system. Of course, in some embodiments, the server may store the acquired location information of the water heater for the next direct call, in which case, in order to ensure the accurate location of the water heater, the location of the water heater in the server needs to be updated periodically. The server stores identification information of the water heater and the designated mobile terminal, so that the water heater and the designated mobile terminal can be in one-to-one correspondence. After the specific positions of the designated mobile terminal and the corresponding water heater are obtained, the distance between the designated mobile terminal and the water heater can be obtained through coordinate calculation. Namely, the acquisition module includes: and the second acquisition unit is used for acquiring the current distance from the server, acquiring the fixed position information of the water heater and the mobile position information of the specified mobile terminal from the server, and calculating and generating the current distance according to the fixed position information and the mobile position information.
The method for matching the water heater and the designated mobile terminal in the server can also be characterized in that the water heater stores the MAC address or other characteristic information of the designated mobile terminal, the water heater detects the characteristic information of the mobile terminal in the server through a wireless network, and then the acquired characteristic information is matched with the stored characteristic information of the designated mobile terminal. And the water heater acquires the position information of the specified mobile terminal only when the specified characteristic information is detected. And when the matching of the acquired feature information and the stored feature information of the specified mobile terminal fails, discarding the current matching object, and detecting and matching.
Because the designated mobile terminal is carried by the user, when the user goes out of work or goes on a business trip, the distance between the designated mobile terminal and the water heater is gradually increased along with the real-time update of the position of the designated mobile terminal in the server. When the user goes off work or goes home, the distance between the designated mobile terminal and the water heater is gradually reduced along with the real-time update of the position of the designated mobile terminal in the server.
Of course, in some embodiments, the designated mobile terminal and the water heater may be connected in a single direction, and the distance between the designated mobile terminal and the water heater is calculated by the micro server, and the micro server may be disposed in the designated mobile terminal or the water heater, at this time, the location information of the designated mobile terminal or the water heater does not need to be provided to a third party, which is beneficial to preventing the leakage of the location information of the user and improving the efficiency of the location calculation.
And the starting module 20 is used for starting the water heater when the current distance between the appointed mobile terminal and the preset position is less than or equal to the preset distance.
And when the current distance between the appointed mobile terminal and the water heater is smaller than or equal to the preset distance, the water heater is started to provide hot water for the user. That is, when the current distance between the designated mobile terminal and the water heater is less than or equal to the preset distance, it is considered that the user is on the way to go home or has gone home, and at this time, the water heater needs to be turned on to provide hot water for the user. When the distance between the designated mobile terminal and the water heater is larger than the second preset distance, the user is considered to be on a business trip or on the way to work, and the water heater can be turned off at the moment. And when the distance between the designated mobile terminal and the water heater is between the preset distance and a second preset distance, the water heater keeps the current working state, wherein the preset distance is smaller than the second preset distance.
In the embodiment, firstly, the water heater detects the corresponding appointed mobile terminal, and obtains the current distance between the appointed mobile terminal and the water heater; when the current distance between the appointed mobile terminal and the water heater is smaller than or equal to the preset distance, starting the water heater; according to the technical scheme, the water heater starts to heat at the first time when a user goes home or goes home, so that energy waste caused by circular heating of the water heater is avoided, and hot water can be provided for the user in time.
For more accurate start-up of the water heater, the acquisition module comprises:
the first statistic unit 11 is configured to count the water consumption times of each water consumption time period of each day in the previous period, and when the water consumption times of the water consumption time period is greater than or equal to a preset time, the time period is a regular time period;
in this embodiment, the cycle is exemplified by 21 days, and each day is divided into six time periods, which are respectively 3: 00-7: 00, 7: 00-11: 00, 11: 00-15: 00, 15: 00-19: 00, 19: 00-23: 00, 23: 00-3: 00. During each period, the number of times the user uses water, and the amount of water used per time, is recorded. The total number of water usage times in a water usage period is, the total number of water usage times in the water usage period in 21 days of a cycle, and the number of water usage times per day in each period may be different, for example, 7 on monday to friday: the average water consumption frequency of 00-11: 00 is 0.5, and the water consumption frequency of saturday and sunday is 7: the average water consumption frequency of 00-11: 00 is 3.5. The preset number is 11, for example, and may be set according to the requirement of the user in some embodiments. That is, when the user uses water for a certain period of time of 21 days for 11 times or more, the period is set as a regular period, and the water consumption is controlled to be increased by the period 19: 00-23: 00 as an example. When the user uses water less than 11 times in a certain period of 21 days, the period is set as an irregular period, and the period is set as a period of 11: 00-15: 00 as an example. The water consumption time period is divided into regular time periods and irregular time periods through statistics of the total water consumption times in the water consumption time period.
Of course, before statistics, the heating control needs to be periodically set, each period time length and water use time period are divided, and the water use condition of the user in each water use time period, namely the water use times, the water use frequency, the water use temperature and the water use amount, is recorded. This process, for the learning process of the water heater, in the first cycle, the water usage parameter not set by the user is installed with preset parameters for operation, for example, the heating time is preset to 19: 00-23: 00 and 7: 00-11: 00, presetting a sleep time period as 23: 00-3: 00, and the like. The second overtime period is set according to the water consumption condition of the first period of the user, and the third period is adjusted according to the water consumption conditions of the first period and the second period.
The first obtaining unit 12 is configured to obtain a current distance between the specified mobile terminal and the preset position when the current time period is a regular time period.
When the current time period is a regular time period, the frequency of water consumption by the user is high, and at this time, although the user is not at home, the possibility that the user needs to use hot water is high. In the embodiment, in order to improve the opening accuracy, the water heater does not directly obtain the distance between the water heater and the designated mobile terminal, but the water use habit in the current time period is judged according to the water use rule, and when the water use frequency in the current time period is more, the distance is obtained, so that the probability of mistakenly opening the water heater is reduced, and the opening accuracy of the water heater is improved.
In order to improve the accuracy of heating, the first acquisition unit includes:
the statistical subunit is used for calculating the average water consumption of all regular time periods, and when the average water consumption is greater than or equal to a first preset water consumption, the regular time period corresponding to the average water consumption is a high-temperature time period; and the obtaining subunit is used for obtaining the current distance between the appointed mobile terminal and the preset position when the current time period is the high-temperature time period.
In the embodiment, in the regular time periods, the water consumption of each time of water consumption in all the regular time periods is counted, the total water consumption in each regular time period is calculated, and the average water consumption of each day of water consumption in each time period in the period is obtained by dividing the total water consumption by the total days of water consumption. For example, 19 per day for 21 days was calculated: 00-23: 00 water consumption, and then adding the water consumption in 21 time periods in the period to obtain a time period 19: and (3) dividing the total water consumption in the period of 00-23: 00 by the cycle days of 21 days to obtain the average water consumption of each day in the time period. And comparing the average water consumption with the first preset water consumption, wherein when the average water consumption is more than or equal to the first preset water consumption, the time period corresponding to the average water consumption is a high-temperature time period. The first preset water usage is for example 20L, i.e. when the time period 19: when the average water consumption of 00-23: 00 is more than or equal to 20L, the time period is 19: and the high-temperature time period is 00-23: 00. Correspondingly, when the average water consumption is less than the first preset water consumption, the time period corresponding to the average water consumption is a low-temperature time period. The first preset water usage is for example 20L, i.e. when time period 7: when the average water consumption of 00-11: 00 is less than 20L, the time period is 7: and the low-temperature time period is 00-11: 00.
In the embodiment, the designated mobile terminal is detected in the high-temperature time period, so that the possibility that the user needs to use water is further improved, and the condition of mistaken heating of the water heater is greatly reduced.
In order to improve the accuracy of turning on the water heater, the turning-on module includes:
the second counting unit is used for counting the water consumption times of each water consumption time period of each day in the previous period when the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance, and the time period is an irregular time period when the water consumption times of the water consumption time period are smaller than the preset times;
in this embodiment, the cycle is exemplified by 21 days, and each day is divided into six time periods, which are respectively 3: 00-7: 00, 7: 00-11: 00, 11: 00-15: 00, 15: 00-19: 00, 19: 00-23: 00, 23: 00-3: 00. During each period, the number of times the user uses water, and the amount of water used per time, is recorded. The total number of water usage times in a water usage period is, the total number of water usage times in the water usage period in 21 days of a cycle, and the number of water usage times per day in each period may be different, for example, 7 on monday to friday: the average water consumption frequency of 00-11: 00 is 0.5, and the water consumption frequency of saturday and sunday is 7: the average water consumption frequency of 00-11: 00 is 3.5. The preset number is 11, for example, and may be set according to the requirement of the user in some embodiments. That is, when the user uses water for a certain period of time of 21 days for 11 times or more, the period is set as a regular period, and the water consumption is controlled to be increased by the period 19: 00-23: 00 as an example. When the user uses water less than 11 times in a certain period of 21 days, the period is set as an irregular period, and the period is set as a period of 11: 00-15: 00 as an example. The water consumption time period is divided into regular time periods and irregular time periods through statistics of the total water consumption times in the water consumption time period.
Of course, before statistics, the heating control needs to be periodically set, each period time length and water use time period are divided, and the water use condition of the user in each water use time period, namely the water use times, the water use frequency, the water use temperature and the water use amount, is recorded. This process, for the learning process of the water heater, in the first cycle, the water usage parameter not set by the user is installed with preset parameters for operation, for example, the heating time is preset to 19: 00-23: 00 and 7: 00-11: 00, presetting a sleep time period as 23: 00-3: 00, and the like. The second overtime period is set according to the water consumption condition of the first period of the user, and the third period is adjusted according to the water consumption conditions of the first period and the second period.
The request unit is used for sending a confirmation request to the appointed mobile terminal when the current time period is an irregular time period; and the first heating unit is used for turning on the electric heater when receiving the confirmation information sent by the mobile terminal.
Of course, in some embodiments, if the current time period is a regular time period, even a high temperature time period, the water heater may directly heat the specified mobile terminal without sending a confirmation request to the specified mobile terminal. Of course, consultation can also be performed according to actual needs.
When the current time period is an irregular time period, the frequency of water consumption by the user is low, and at this time, the user does not necessarily need to use hot water although the user is at home. In order to improve the heating accuracy, the water heater sends the preset request message to the specified mobile terminal through a wireless network, and of course, in other embodiments, the water heater may also be sent to the specified mobile terminal through a communication network (e.g., mobile, internet, telecommunication, etc.). And the appointed mobile terminal replies to the water heater according to the instruction of the user. When the user needs to use hot water, the confirmation can be selected on the display interface of the designated mobile terminal, and when the user does not need to use the hot water, the cancellation or no indication can be selected on the display interface of the designated mobile terminal. And when the water heater receives the confirmation information sent by the appointed mobile terminal, the water heater starts heating and heats the water to the preset temperature. When the water heater receives the negative information or does not receive the information sent by the appointed mobile terminal, the water heater keeps the existing state and does not start heating.
In this embodiment, when the current distance between the designated mobile terminal and the water heater is less than or equal to the preset distance, the designated mobile terminal is consulted instead of being directly heated, and confirmation of the user is waited to avoid heating by mistake.
In order to make the water heater heat according to the demand of the user accurately, the opening module comprises:
the sending unit is used for sending water demand information to the appointed mobile terminal when the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance; the water demand information comprises a water temperature parameter and a water duration parameter; the receiving unit is used for receiving the feedback information of the appointed mobile terminal and adjusting the heating parameters of the water heater according to the feedback information; and the second heating unit is used for heating according to the adjusted heating parameters.
When the current distance between the appointed mobile terminal and the preset position is smaller than or equal to the preset distance, namely the water heater meets the requirement of opening the adjusting piece, the water consumption demand information is firstly sent to the mobile terminal, and the user sends feedback information through the mobile terminal. The feedback information includes parameters of water usage required by the user, such as a time period of water usage, a water temperature of the water usage required, a water amount of the water usage required, and the like. After the water heater receives the feedback information, heating setting is carried out according to the relevant water use parameters, so that the water heater meets the water use requirement of a user and simultaneously reduces the heating of redundant hot water as much as possible.
Of course, it can be understood that this embodiment may be combined with the above embodiments, and the time for sending the water demand information is when the water heater meets the start condition. The water heater can heat according to the preset heating mode, adjusts after receiving the feedback information, and can heat after waiting for the feedback information.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.