Content of the invention
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, there is provided a kind of control of intelligent water heater
Method and system processed, need user regularly to realize shifting to an earlier date for intelligent water heater manually to solve existing intelligent water heater control method
Open, it is impossible to which the use habit according to user automatically controls the problem of intelligent water heater switch.
In order to solve above-mentioned technical problem, the technical solution adopted in the present invention is as follows:
A kind of control method of intelligent water heater, which includes:
The use data of intelligent water heater the previous day are gathered daily, and by the use data storage in database;
Use data in the database are analyzed, to obtain the use habit information of user;
Corresponding control plan is generated according to the use habit information to be controlled the intelligent water heater.
The control method of the intelligent water heater, wherein, the use data in the database are analyzed, with
The use habit information for obtaining user is specifically included:
The current use number of days of the intelligent water heater is obtained, the use number of days and the first predetermined threshold value are compared;
When the use number of days is less than the first predetermined threshold value, the use data in the database are entered in units of natural day
Row analysis, to obtain the use habit information of user.
The control method of the intelligent water heater, wherein, the use data in the database are analyzed, with
The use habit information for obtaining user also includes:
When the use number of days is more than the first predetermined threshold value, the use number of days and the second predetermined threshold value are compared;
If the use number of days is less than the second predetermined threshold value, use data in database are carried out in units of naturally all point
Analysis, to obtain the use habit information of user.
The control method of the intelligent water heater, wherein, the use data in the database are analyzed, with
The use habit information for obtaining user also includes:
If the use number of days is more than the second predetermined threshold value, the use of predetermined number before obtaining current time in the database
Data;
The use data that chooses are analyzed in units of week naturally, to obtain the use habit information of user.
The control method of the intelligent water heater, wherein, the use data be access times, each use water information and
Use time.
A kind of control system of intelligent water heater, which includes:
Acquisition module, for gathering the use data of intelligent water heater the previous day daily, and by the use data storage in number
According to storehouse;
Analysis module, for being analyzed to the use data in the database, to obtain the use habit information of user;
Generation module, controls to the intelligent water heater for generating corresponding control plan according to the use habit information
System.
The control system of the intelligent water heater, wherein, the analysis module is specifically included:
First comparing unit, current for obtaining the intelligent water heater use number of days will be pre- with first for the use number of days
If threshold value is compared;
First processing units, for when the use number of days is less than the first predetermined threshold value, to the number in units of natural day
It is analyzed according to the use data in storehouse, to obtain the use habit information of user.
The control system of the intelligent water heater, wherein, the analysis module also includes:
Second comparing unit, for when the use number of days be more than the first predetermined threshold value when, will be pre- with second for the use number of days
If threshold value is compared;
Second processing unit, if being less than the second predetermined threshold value for the use number of days, to database in units of week naturally
Interior use data are analyzed, to obtain the use habit information of user.
The control system of the intelligent water heater, wherein, the analysis module also includes:
Acquiring unit, if being more than the second predetermined threshold value for the use number of days, before obtaining current time in the database
The use data of predetermined number;
3rd processing unit, for being analyzed to the use data that chooses in units of week naturally, to obtain the use of user
Habits information.
The control method of the intelligent water heater, wherein, the use data be access times, each use water information and
Use time.
Beneficial effect:Compared with prior art, the invention provides a kind of control method of intelligent water heater and system, institute
The method of stating includes:The use data of intelligent water heater the previous day are gathered daily, and by the use data storage in database;Right
Use data in the database are analyzed, to obtain the use habit information of user;According to the use habit information
Generate corresponding control plan to be controlled the intelligent water heater.The present invention gathers making for intelligent water heater the previous day daily
With data, and user's use habit is determined according to the use data of collection, control instruction plan target is generated according to use habit,
Achieve unlatching/closing that intelligent water heater is automatically controlled according to user's use habit, bring convenience to the use of user.
Specific embodiment
The present invention provides a kind of control method of intelligent water heater and system, for make the purpose of the present invention, technical scheme and
Effect is clearer, clear and definite, and the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.It should be appreciated that herein
Described specific embodiment only in order to explain the present invention, is not intended to limit the present invention.
In the present invention, using the suffix for representing such as " module ", " part " or " unit " of element only for favourable
In the explanation of the present invention, itself does not have specific meaning.Therefore, module ", " part " or " unit " mixedly can make
With.
Terminal device can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated
Determine terminal.However, it will be understood by those skilled in the art that, in addition to being used in particular for moving the element of purpose, according to this
The construction of bright embodiment can also apply to the terminal of fixed type.
Below in conjunction with the accompanying drawings, by the description to embodiment, content of the invention is described further.
Fig. 1, the flow chart of the preferred embodiment of the control method of the intelligent water heater that Fig. 1 is provided is refer to for the present invention.
Methods described includes:
The use data of S100, daily collection intelligent water heater the previous day, and by the use data storage in database.
Specifically, the use data of described daily collection intelligent water heater the previous day refer to daily when set in advance
Between gather intelligent water heater the previous day use data.And daily collection intelligent water heater the previous day using the time of data be
Fixed, for example, daily 0 point, 6:00 AM etc..Described the previous day can be nature day, or this acquisition time with
The time interval of last collection.In the present embodiment, described the previous day refers to nature day.For example, Intelligent hot is currently gathered
The time of hydrophone is No. 24, then the previous day refers to No. 23.
Exemplary, the use data include the access times of daily intelligent water heater, each with water information and make
Use the time.The use data can be intelligent water heater recording and sending to server.In actual applications, the intelligence
The devices such as cooling-water temperature sensor and timer can be built-in with water heater, so as to the intelligent water heater can pass through built-in device
The use time of record intelligent water heater, water consumption etc. use data.And there is communicator in intelligent water heater, can be by having
Line or wireless mode are communicated with server, in the set time by the use data is activation for recording to server, so that service
Device obtains the use data of intelligent water heater.It is of course also possible to be that server connects intelligent water heater in the daily set time,
And obtain the use data of the previous day.
Further, after the use data of intelligent water heater are collected, by the use data storage in presetting database
Interior.In the database, the use data and its use date associated storage can obtain which according to use date corresponding
Use data.In actual applications, the use data in the database are stored according to the sequencing of use date,
I.e. the early data storage of use date is before the data in use date evening.
S200, the use data in the database are analyzed, to obtain the use habit information of user.
Specifically, the use data in the database are analyzed and refer to data place storage
Data are analyzed.For example, when the databases store up one using data, one use data are carried out point
Analysis;When the databases store up two using data, described two use data are analyzed respectively.In practical application
In, described pair is analyzed using data and can adopt the existing analysis methods such as cluster analysis, is not just described in detail one by one here.
In the present embodiment, it is access times to daily intelligent water heater that the use data in database are analyzed, per
Secondary is analyzed with water information and use time, to obtain user's use habit information, it is, user is daily using intelligence
The custom of water heater, it is how many for example what time to begin to use intelligent water heater, water temperature daily, and use time is how many etc..
In the present embodiment, as shown in Fig. 2 the use data in the database are analyzed, to obtain use
The use habit information at family is specifically included:
The current use number of days of S201, acquisition intelligent water heater, the use number of days and the first predetermined threshold value are compared.
Specifically, the use number of days is referred between the time that current time and intelligent water heater are used first every other day
Number.Use time refers to the time that intelligent water heater is registered to server to the intelligent water heater first.That is, at this
In embodiment, the use number of days is the time for being registered to server with intelligent water heater to start to calculate as starting point.This be by
In only when intelligent water heater is registered to server, and after can communicating between server, server can just gather intelligence
The use data of energy water heater, and the use data are analyzed to determine operational plan.So as to, in actual applications,
One can also be included before step S100 to register and connection procedure, which can specifically include:
Intelligent water heater sends registration request to server, wherein, device identification of the registration request comprising intelligent water heater;
Server receives the registration request, and is connected with intelligent water heater foundation according to device identification, with timing acquiring intelligence
The use data of water heater.
Further, after the use number of days of intelligent water heater is got, the use number of days and the first predetermined threshold value are entered
Row compares to judge the unit of the use data analysis.First predetermined threshold value is for system default or according to user situation
And set.In the present embodiment, first predetermined threshold value is 21 days.That is, will be compared with 21 using number of days, with
Determine the unit using data analysis.
S202, when the use number of days be less than the first predetermined threshold value when, to the use in database in units of natural day
Data are analyzed, to obtain the use habit information of user.
Specifically, when the use number of days is less than the first predetermined threshold value, illustrate that the time that intelligent water heater is used is also short,
At this time the use data in database are analyzed in units of natural day, to obtain the use habit information of user.?
That is, daily data in database are analyzed respectively, according to the use habit information that analysis result obtains user.Example
Such as, be switched on user's use habit analytic function when facility registration is to server, use habit is set as i.e. hot, second day
Use data according to user yesterday carry out data analysis, obtain the use habit of user, at the 3rd day, to before user two
It uses data are analyzed, and obtain the use habit of user, by that analogy until the 21st day.
S203, when the use number of days be more than the first predetermined threshold value when, the use number of days and the second predetermined threshold value are entered
Row compares.
Specifically, when the use number of days is more than the first predetermined threshold value(21 days)When, will be pre- with second for the use number of days
If threshold value is compared, the use data in the database of user's use habit information are obtained to determine.Second threshold
It is worth for set in advance, which can be system default, or be set according to user's service condition.In the present embodiment,
Second predetermined threshold value is 147 days.
If the S204 use number of days is less than the second predetermined threshold value, to the use in database in units of week naturally
Data are analyzed, to obtain the use habit information of user.
Specifically, when the use number of days is less than the second predetermined threshold value(147 days)When, it is unit to database with week naturally
Interior use data are analyzed.The server is analyzed process according to naturally all to the use data in database.
Server uses data by recording early stage, is analyzed process according to specific week period, and analysis Monday to Sunday is daily
Service condition, and according to probability size calculate user custom.In actual applications, it is possible to use the group by of database and
Weekday functions carry out analytic statistics equipment weekly and use data, and obtain last user according to service condition weekly and make
Use situation.For example, in the Monday in a certain week, user is early 8 points, and late 8 points are had and recorded using intelligent water heater.And made in user
With in intelligent water heater 5 weeks, the only week in this week 8 points of useful water service conditions early in the morning, then probability is 1/5=20%.Evening 8 Monday
The usage record of point has holding in 5 weeks for having used always, then probability is 5/5=1.When user's use habit is analyzed, can be with
Pre-set a probability threshold value, such as 20%, then on Monday early 8 points of probability with water are equal to 20% to user, then 8 points early in the morning of week
The custom of bathing is then considered incidental time, is not belonging to the custom of user, and 8 points of evening Monday is greater than 20% with water probability, clothes
The use habit of the custom for user of 8 points of bathings of evening Monday then thought by business device.
Further, the use habit of the user is determined using integral point, that is to say, that for user is within a hour
Have repeatedly with water, server according to custom determination is carried out on schedule, such as in evening 8:05,8:15,8:30,8:50 useful water,
According to integral point data processing, result above is then 8 points does the recommendation of user's custom.
In the present embodiment, the use data of intelligent water heater the previous day, and the use day according to server are gathered daily
Several to being analyzed using data.During analysis, the use number of days according to intelligent water heater is different, and analysis is divided into two
Stage, first stage are 1-21 days, and second stage is 22-147 days.In each stage using making to different cycles respectively
It is analyzed with data, to obtain user's use habit information of different cycles.When the use number of days belongs to the first stage,
According to the daily use habit information of the use data acquisition, when the use number of days belongs to second stage, according to described
Using data acquisition use habit information weekly.This can also more accurately obtain the use habit of user, be follow-up
The formulation of operational plan provides excellent basis.
In another embodiment of the present invention, as shown in figure 3, the use data in the database are carried out point
Analysis, can also be included with obtaining the use habit information of user:
If the S205 use number of days is more than the second predetermined threshold value, predetermined number before obtaining current time in the database
Use data;
S206, by naturally week in units of to choose use data be analyzed, to obtain the use habit information of user.
Specifically, when the use overabundance of data of databases storage, only to being analyzed using data compared with new portion, and
For relatively long before use data, then can ignore.Herein, predetermined number is set in advance, and which can be system default
, or according to user's service condition set, in the present embodiment, predetermined number can be the second predetermined threshold value, i.e., 147
Individual, the use data of the predetermined number are 147 dates corresponding use data before current time.And say, work as use
Number of days is more than the second predetermined threshold value, obtains the second predetermined threshold value in database before current time according to use date and uses day
Phase, and its corresponding use data is obtained according to the use date.
In the variant embodiment of the present embodiment, as server is only in intelligent water heater the second predetermined threshold value number of days
It is analyzed using data.When using number of days more than the second predetermined threshold value when, to the data before the second predetermined threshold value we not
Do data analysis.That is, use data of the analysis in the second nearest predetermined threshold value day of current time, to obtain use
The use habit information at family.Accordingly, making for intelligent water heater can be obtained while intelligent water heater is gathered using data
With number of days, and will be compared with the second predetermined threshold value using number of days, when Second Threshold is more than using number of days, then using current
The use time of collection is covered according to use date with data storage.The data of databases storage can be so reduced, is saved
The memory space of server.
S300, corresponding control plan is generated according to the use habit information intelligent water heater is controlled.
Specifically, after the use habit information of user is got, server generates phase according to the use habit information
The control plan that answers, and intelligent water heater is controlled using the control plan.In actual applications, server can draw
Certain time uses intelligent water heater to equipment daily, and what the heating mode for using every time is, each heating-up temperature and power are many
Few, the control instruction of these data composition intelligent water heater equipment is saved in database by server, and uses quartz framework
Dynamic generates control plan.The process that the use quartz framework dynamic generates control plan is specific as follows:
Job is created using the JobBuilder.newJob of quartz
The execution time of CronExpression is set
Trigger CronTrigger is created, and job is associated with CronExpression
ScheduleJob makes job come into force.
A kind of control method of intelligent water heater and system is present embodiments provided, methods described includes:Intelligence is gathered daily
The use data of energy water heater the previous day, and by the use data storage in database;To the use number in the database
According to being analyzed, to obtain the use habit information of user;Corresponding control plan pair is generated according to the use habit information
The intelligent water heater is controlled.The use data of collection intelligent water heater the previous day daily of the invention, and according to collection
User's use habit is determined using data, control instruction plan target is generated according to use habit, it is achieved that used according to user
Custom automatically controls the unlatching/closing of intelligent water heater, brings convenience to the use of user.
Present invention also offers a kind of control system of intelligent water heater, as shown in figure 4, which includes:
Acquisition module 100, for daily gather intelligent water heater the previous day use data, and by the use data storage in
Database;
Analysis module 200, for being analyzed to the use data in the database, is believed with obtaining the use habit of user
Breath;
Generation module 300, controls to intelligent water heater for generating corresponding control plan according to the use habit information
System.
The control system of the intelligent water heater, wherein, the analysis module is specifically included:
First comparing unit, current for the obtaining intelligent water heater use number of days, by the use number of days and the first default threshold
Value is compared;
First processing units, for when the use number of days is less than the first predetermined threshold value, to database in units of natural day
Interior use data are analyzed, to obtain the use habit information of energy intelligent water heater.
The control system of the intelligent water heater, wherein, the analysis module also includes:
Second comparing unit, for when the use number of days be more than the first predetermined threshold value when, will be pre- with second for the use number of days
If threshold value is compared;
Second processing unit, if being less than the second predetermined threshold value for the use number of days, to database in units of week naturally
Interior use data are analyzed, to obtain the use habit information of energy intelligent water heater.
The control system of the intelligent water heater, wherein, the analysis module also includes:
Acquiring unit, if being more than the second predetermined threshold value for the use number of days, before obtaining current time in the database
Second predetermined threshold value uses data;
3rd processing unit, for being analyzed to the use data that chooses in units of week naturally, to obtain energy intelligent hot water
The use habit information of device.
The control method of the intelligent water heater, wherein, the use data be access times, each use water information and
Use time.
It should be noted that information exchange between each module/unit of the system of smart machine secure accessing, executing
The contents such as journey, due to being based on same design with the inventive method embodiment, the technique effect which brings is implemented with the inventive method
Example is identical, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
In embodiment provided by the present invention, it should be understood that disclosed system and method, can pass through other
Mode is realized.For example, device embodiment described above is only that schematically for example, the division of the module is only
A kind of division of logic function, can have when actually realizing other dividing mode, for example multiple units or component can in conjunction with or
Person is desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
Connect, can be electrical, mechanical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit
The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit that is realized in the form of SFU software functional unit, can be stored in an embodied on computer readable and deposit
In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, is used so that a computer including some instructions
Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) execute the present invention each
The part steps of embodiment methods described.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. various
Can be with the medium of store program codes.
Finally it should be noted that:Above example only in order to technical scheme to be described, rather than a limitation;Although
With reference to the foregoing embodiments the present invention has been described in detail, it will be understood by those within the art that:Which still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.