Smart home Internet of Things control system and method
Technical field
The present invention relates to Smart Home technical field, specifically a kind of smart home Internet of Things control system and method.
Background technology
The M-Smart smart home solutions of beautiful company are at present:Can by beautiful MJZS-01 intelligence wifi sockets
To be simply powered or power off to household electrical appliances, smart mobile phone carries out remote control by gateway to each intelligence wifi sockets, from
And reach the control purpose to family's electrical nodes.
But M-Smart smart home solutions have the following disadvantages at present:
1st, it can only be simply powered to household electrical appliances or power operation, the control of household electrical appliances concrete function can not be carried out, from
And smart home is allowed to become an empty verbiage;
2nd, smart home Single Point of Faliure rate is high;
3rd, networking scale is very limited;
4th, thing thing interconnection can not be carried out, can not also carry out complex control;
5th, node does not possess the intelligence of autonomous working;
6th, extra peripheral hardware is needed.
The content of the invention
The problem of the purpose of the present invention is for presently, there are, there is provided a kind of smart home Internet of Things control system and method.
The technical solution adopted in the present invention is:
Smart home Internet of Things control system, including
Mobile control terminal, user directly issue real-time and timer command to control household electrical appliances section by mobile control terminal
Point, rule base can be edited and download to home network by it by having moved built in control terminal visualization rule editor, user
Each family's electrical nodes of network.
Family's electrical nodes, described electrical nodes built-in intelligence chip, inference machine built in the intelligent chip, historical events table,
Rule base and services set;
Wireless connection between the mobile control terminal and family's electrical nodes;
Wherein,
The inference machine be knowledge-based inference component, maintenance history event table, rule base and services set;
The historical events table is used to store the event that some electrical nodes receives other household electrical appliances node broadcasts;
The services set is the acceptable instruction of each family's electrical nodes and the action of triggering.
As preference, the mobile control terminal is smart mobile phone or intelligent watch or tablet computer.
As preference, 6LoWPAN protocol communication transmission rules are used between the mobile control terminal and family's electrical nodes
Storehouse information.
A kind of smart home Internet of Things control method, includes the following steps:
A, user by the visualization rule editor Establishing process rule base of mobile terminal and can download to each household electrical appliances
Node;
B, user can send instructions to some electrical nodes, the action of control man electrical nodes by mobile control terminal;
C, when some electrical nodes receives will peripherad household electrical appliances when the instruction that is sent in step b acts
This event of node broadcasts, other family's electrical nodes will will be stored into the historical events table of oneself, at this moment, each household electrical appliances section
Inference machine in point will scan historical events table and each rule of rule base is compared, will triggering when successful match
Household electrical appliances act.
Further, the transmission instruction of mobile control terminal includes Three models in the step b:
The first is real-time command pattern, directly transmits instruction and gives family's electrical nodes, family's electrical nodes receive instruction, hold immediately
Action as defined in row instruction;
Second is clocked flip pattern, specifies the action as defined in execute instruction again after sometime of certain electric appliance;
The third is rule base pattern, the conditional relationship provided according to rule base, and node can trigger not in different situations
Same action.Rule base can be configured by visual rule editor, and be allocated to household electrical appliances section by mobile control terminal
Point.
Further, the priority of the real-time command pattern and clocked flip pattern is higher than rule base pattern.
The invention has the advantages that
A kind of smart home Internet of Things control system and method disclosed by the invention,
1st, by moving the visualization rule editor Establishing process rule base of control terminal and downloading to home furnishings intelligent net
In each electrical nodes in network;Family's electrical nodes built-in intelligence chip, intelligent chip is built-in with inference machine, new whenever receiving
During event, inference machine meeting traversal history event table goes to match itself rule base, acts triggering household electrical appliances when successful match, also
It is the services set of household electrical appliances, inference mechanism imparts the intelligent characteristic that each household electrical appliances trigger behavior according to scene so that household electrical appliances depart from
Internet and manual control still can work cleverly;
2nd, each electrical nodes can dynamically update itself rule base;
3rd, using 6lowpan agreements so that maximum reachable 2 64 powers of network size;
The 4th, extremely simple operating experience is provided, only need to can be complete by drawing some graphic elements on smart machine
Paired whole system environment is configured and uses.
The present invention is described in further detail below in conjunction with the accompanying drawings.
Brief description of the drawings
Fig. 1 is smart home Internet of Things control system modular structure schematic diagram of the present invention;
In figure, 1, mobile control terminal 2, family's electrical nodes.
Embodiment
In order to deepen the understanding of the present invention, make further details of theory to the present invention with reference to the accompanying drawings and examples
It is bright.The following examples are only intended to illustrate the technical solution of the present invention more clearly, and the guarantor of the present invention cannot be limited with this
Protect scope.
As shown in Figure 1, smart home Internet of Things control system, including
Mobile control terminal 1, terminal can provide to be controlled with timer command in real time;Also there is visual rule editing in terminal
Device, each household electrical appliances section that can be configured to by rule editor Establishing process rule base and by wireless network in home furnishings intelligent network
Point in;
Family's electrical nodes 2, family's electrical nodes built-in intelligence chip, inference machine, services set, rule base and history built in intelligent chip
Event table;
Wireless connection between mobile control terminal and family's electrical nodes;
Wherein,
Inference machine be knowledge-based inference component, maintenance history event table, rule base and services set;
Historical events table is used for the event for storing whole system generation;
Services set is the acceptable instruction of each family's electrical nodes and the action of triggering;
As preference, mobile control terminal is smart mobile phone or intelligent watch or tablet computer, there is provided visual figure
Shape mode of operation.
As preference, believed between mobile control terminal and family's electrical nodes using 6LoWPAN protocol communication transmission rules storehouse
Breath.
A kind of smart home Internet of Things control method, includes the following steps:
A, user by the visualization rule editor Establishing process rule base of mobile terminal and can download to each household electrical appliances
Node;
B, user can send instructions to some electrical nodes, the work shape of control man electrical nodes by mobile control terminal
State;
C, when some electrical nodes receives will peripherad household electrical appliances when the instruction that is sent in step b acts
This event of node broadcasts, other family's electrical nodes will will be stored into the historical events table of oneself, at this moment, each household electrical appliances section
Inference machine in point will scan historical events table and each rule of rule base is compared, will triggering when successful match
Household electrical appliances act, that is, the services set of household electrical appliances.
Further, the transmission instruction of mobile control terminal includes Three models in step b:
The first is real-time command pattern, directly transmits instruction and gives family's electrical nodes, family's electrical nodes receive instruction, control electricity
Device works at once;
Second is clocked flip pattern, specifies certain electric appliance sometime starting to work;
The third is rule base pattern, the conditional relationship provided according to rule base, and node can trigger not in different situations
Same action.Rule base can be configured and issued by the visual rule editor in mobile control terminal.
Further, the priority of real-time command pattern and clocked flip pattern is higher than rule base pattern.
The present invention operation principle be,
By visualizing rule editor Establishing process rule base, user need not understand programming, need to only intend the figure of materialization
Line can establish workflow rules storehouse between mark, and the rule base of generation can download to an electrical nodes, can also be uploaded to out
Source rule storehouse platform;
Rule base Open Source Platform provides the network center that a member shares rule base, and user can upload, store, newly
Build, edit and share rule base.
Mobile control terminal includes smart mobile phone, intelligent watch, tablet computer etc., and user can configure home network with a key
The rule base of each family electrical nodes, there is provided timing controlled, the in real time intelligent automatic control in control and rule-based storehouse, real-time command
It is higher than intelligent automatic control with the priority of clocked flip, can be used in conjunction with each other with rule base.
Family's electrical nodes built-in intelligence chip, inference machine built in intelligent chip, going through in each family's electrical nodes of inference machine management
History event table, rule base and services set;Whenever new event is received, inference machine meeting traversal history event table goes to match itself
Rule base, will triggering household electrical appliances action when successful match.
The present invention specific embodiment be, user by visualizing rule editor Establishing process rule base, rule base
The content of rule is the conditional event connected with logical expression, such as:Setting rule reaches 40 degree for water heater temperature, then empty
Adjust and start and adjust room temperature to 25 degree;Or water heater temperature reaches 40 degree, and electric cooker is cooked end, then starting of air conditioner is simultaneously
Room temperature is adjusted to 25 degree;
When water heater receives the instruction of mobile control terminal, progress water heater is heated to 40 degree, this household electrical appliances of water heater
Node receives this instruction, while water heater is heated to 40 degree of this events and will be broadcast in other family's electrical nodes, its
Historical events table in his family's electrical nodes will store this event, while inference machine will scan historical events table and rule base
Each rule be compared, at this moment in this family's electrical nodes of air-conditioning rule base setting rule be water heater temperature reach
40 degree, then starting of air conditioner and room temperature is adjusted to 25 degree, after inference machine successful match, will trigger services set, that is, trigger air-conditioning
Start and adjust room temperature to 25 degree;
Or water heater temperature reaches 40 degree, and electric cooker is cooked end, when the historical events table of air-conditioning man electrical nodes
In store this event, inference machine will scan historical events table and each rule of rule base is compared, this space-time
It is that water heater temperature reaches 40 degree to adjust the rule that the rule base in this family's electrical nodes is set, and electric cooker is cooked end, then
Starting of air conditioner simultaneously adjusts room temperature to 25 degree, after inference machine successful match, will trigger services set, that is, triggers starting of air conditioner and adjust
Room temperature is saved to 25 degree.
It is noted that embodiment described above is to the illustrative and not limiting of technical solution of the present invention, affiliated technology neck
The equivalent substitution of domain those of ordinary skill or other modifications made according to the prior art, as long as not exceeding the technology of the present invention side
The thinking and scope of case, should be included within interest field of the presently claimed invention.