Smart Home thing joint control system and method
Technical field
The present invention relates to Smart Home technical field, specifically a kind of Smart Home thing joint control system and method.
Background technology
The M-Smart Smart Home solution of the company of current U.S. is: can simply to household electrical appliances energising or power-off by the MJZS-01 intelligence wifi socket of U.S., smart mobile phone carries out Long-distance Control by gateway to each intelligent wifi socket, thus reaches the control object to family's electrical nodes.
But there is following shortcoming in M-Smart Smart Home solution at present:
1, can only be energized or power operation to household electrical appliances simply, the control of household electrical appliances concrete function cannot be carried out, thus allow Smart Home become an empty verbiage;
2, Smart Home Single Point of Faliure rate is high;
3, networking scale is very limited;
4, thing thing cannot be carried out interconnected, also cannot carry out complex control;
5, node does not possess the intelligence worked alone;
6, extra peripheral hardware is needed.
Summary of the invention
The object of the invention is for current Problems existing, a kind of Smart Home thing joint control system and method is provided.
The technical solution adopted in the present invention is:
Smart Home thing connection control system, comprises
Mobile control terminal, user is directly issued in real time by mobile control terminal and timer command controls an electrical nodes, visual rule editor that mobile control terminal is built-in, user comes editing rule storehouse by it and downloads to each electrical nodes of home network.
Family's electrical nodes, described electrical nodes built-in intelligence chip, the built-in inference machine of described intelligent chip, historical events table, rule base and services set;
Wireless connections between described mobile control terminal and family's electrical nodes;
Wherein,
Described inference machine is the parts of knowledge-based inference, maintenance history event table, rule base and services set;
Described historical events table receives the event of other household electrical appliances node broadcasts for storing certain electrical nodes;
Described services set is the action of the instruction that can accept of each electrical nodes and triggering.
As preferably, described mobile control terminal is smart mobile phone or intelligent watch or panel computer.
As preferably, between described mobile control terminal and family's electrical nodes, adopt 6LoWPAN protocol communication transmission rule library information.
A kind of Smart Home thing connection control method, comprises the steps:
A, user by mobile terminal visual rule editor Establishing process rule base and download to each electrical nodes;
B, user send instruction to certain electrical nodes by mobile control terminal, control the action of family's electrical nodes;
C, will peripherad this event of household electrical appliances node broadcasts when certain electrical nodes receives the instruction generation action sent in step b time, other family's electrical nodes will will be stored in oneself historical events table, at this moment, each rule that inference machine in each family's electrical nodes will scan historical events table Sum fanction storehouse is compared, and will trigger household electrical appliances action when the match is successful.
Further, in described step b, the transmission instruction of mobile control terminal comprises Three models:
The first is real-time command pattern, and directly send instruction to family's electrical nodes, family's electrical nodes receives instruction, performs the action of directives prescribe immediately;
The second is clocked flip pattern, specifies certain electrical equipment after sometime, perform the action of directives prescribe again;
The third is rule base pattern, and according to the conditional relationship that rule base provides, node can trigger different actions in different situation.Rule base configures by visual rule editor, and is configured to family's electrical nodes by mobile control terminal.
Further, the priority of described real-time command pattern and clocked flip pattern is higher than rule base pattern.
The invention has the beneficial effects as follows,
A kind of Smart Home thing joint control system and method disclosed by the invention,
1, download in each family's electrical nodes in home furnishings intelligent network by the visual rule editor Establishing process rule base of mobile control terminal; Family's electrical nodes built-in intelligence chip, intelligent chip is built-in with inference machine, whenever receiving new event, inference machine can go to mate self rule base by traversal history event table, household electrical appliances action will be triggered when the match is successful, the namely services set of household electrical appliances, inference mechanism imparts each household electrical appliances and triggers the intelligent characteristic of behavior according to sight, and household electrical appliances are departed from internet and manual control still can work cleverly;
2, each electrical nodes can dynamically update self rule base;
3, adopt 6lowpan agreement, make network size maximum reach 2 64 powers;
4, provide extremely shirtsleeve operation to experience, on smart machine, only just need can be completed whole system environment arranged and uses by more dilatory graphic elements.
Below in conjunction with accompanying drawing, the present invention is described in further detail.
Accompanying drawing explanation
Fig. 1 is Smart Home thing joint control system module structural representation 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, below in conjunction with drawings and Examples, the present invention is further detailed explanation.Following examples only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
As shown in Figure 1, Smart Home thing connection control system, comprises
Mobile control terminal 1, terminal can provide in real time and timer command controls; Also there is visual rule editor in terminal, be configured to by rule editor Establishing process rule base and by wireless network in each family's electrical nodes in home furnishings intelligent network;
Family's electrical nodes 2, family's electrical nodes built-in intelligence chip, the built-in inference machine of intelligent chip, services set, rule base and historical events table;
Wireless connections between mobile control terminal and family's electrical nodes;
Wherein,
Inference machine is the parts of knowledge-based inference, maintenance history event table, rule base and services set;
Historical events table is for storing whole system event;
Services set is the action of the instruction that can accept of each electrical nodes and triggering;
As preferably, mobile control terminal is smart mobile phone or intelligent watch or panel computer, provides visual graphic operation mode.
As preferably, between mobile control terminal and family's electrical nodes, adopt 6LoWPAN protocol communication transmission rule library information.
A kind of Smart Home thing connection control method, comprises the steps:
A, user by mobile terminal visual rule editor Establishing process rule base and download to each electrical nodes;
B, user send instruction to certain electrical nodes by mobile control terminal, control the duty of family's electrical nodes;
C, will peripherad this event of household electrical appliances node broadcasts when certain electrical nodes receives the instruction generation action sent in step b time, other family's electrical nodes will will be stored in oneself historical events table, at this moment, each rule that inference machine in each family's electrical nodes will scan historical events table Sum fanction storehouse is compared, household electrical appliances action will be triggered, namely the services set of household electrical appliances when the match is successful.
Further, in step b, the transmission instruction of mobile control terminal comprises Three models:
The first is real-time command pattern, and directly send instruction to family's electrical nodes, family's electrical nodes receives instruction, and control apparatus is work at once;
The second is clocked flip pattern, specifies certain electrical equipment starting working sometime;
The third is rule base pattern, and according to the conditional relationship that rule base provides, node can trigger different actions in different situation.Rule base configures by the visual rule editor in mobile control terminal and issues.
Further, the priority of real-time command pattern and clocked flip pattern is higher than rule base pattern.
Principle of work of the present invention is,
By visual rule editor Establishing process rule base, user is without the need to understanding programming, and only between the icon intending materialization, need can set up workflow rules storehouse by line, the rule base of generation can download to an electrical nodes, also can be uploaded to rule base platform of increasing income;
Rule base Open Source Platform provides the network center that a member shares rule base, user can upload, store, newly-built, edit and share rule base.
Mobile control terminal comprises smart mobile phone, intelligent watch, panel computer etc., user can the rule base of a key configuration home network each electrical nodes, the intelligent automatic control in timing controlled, in real time control and rule-based storehouse is provided, the priority of real-time command and clocked flip, higher than intelligent automatic control, can be used in conjunction with each other with rule base.
Family's electrical nodes built-in intelligence chip, the built-in inference machine of intelligent chip, inference machine manages historical events table, rule base and services set in each electrical nodes; Whenever receiving new event, inference machine can go to mate self rule base by traversal history event table, will trigger household electrical appliances action when the match is successful.
Specific embodiments of the invention are, user is by visual rule editor Establishing process rule base, the content of the rule of rule base is the conditional event connected with logical expression, such as: setting rule is water heater temperature arrival 40 degree, then starting of air conditioner regulate the room temperature 25 degree; Or water heater temperature arrives 40 degree, the end and electric cooker is cooked, then starting of air conditioner regulate the room temperature 25 degree;
When water heater receives the instruction of mobile control terminal, carry out water heater and be heated to 40 degree, this family's electrical nodes of water heater receives this instruction, simultaneously water heater is heated to 40 degree of these events and will be broadcast in other family's electrical nodes, historical events table in other family's electrical nodes will store this event, each rule that simultaneously inference machine will scan historical events table Sum fanction storehouse is compared, the rule of the rule base setting at this moment in this family's electrical nodes of air-conditioning is that water heater temperature arrives 40 degree, then starting of air conditioner regulate the room temperature 25 degree, inference machine is after the match is successful, will Trigger services collection, namely trigger starting of air conditioner and regulate the room temperature 25 degree,
Or water heater temperature arrives 40 degree, the end and electric cooker is cooked, this event is stored in the historical events table of air-conditioning man electrical nodes, each rule that inference machine will scan historical events table Sum fanction storehouse is compared, the rule of the rule base setting at this moment in this family's electrical nodes of air-conditioning is that water heater temperature arrives 40 degree, the end and electric cooker is cooked, then starting of air conditioner regulate the room temperature 25 degree, inference machine is after the match is successful, will Trigger services collection, namely trigger starting of air conditioner and regulate the room temperature 25 degree.
Be noted that, the above embodiment is unrestricted to the explanation of technical solution of the present invention, the equivalent replacement of art those of ordinary skill or other amendments made according to prior art, as long as do not exceed thinking and the scope of technical solution of the present invention, all should be included within interest field of the presently claimed invention.