Summary of the invention
In view of this, main purpose of the present invention is to provide the event triggering method in a kind of home network, and this method can realize according to current event automatically to one group of equipment executable operations on the home network.
The present invention is the event triggering method in a kind of home network, and incident-pattern chained list of being made up of incident sublist, equipment sublist and state sublist is set, and the relation between each sublist; Pass between described each sublist is: link to the equipment sublist by the incident sublist earlier, link to the state sublist by the equipment sublist again; This method comprises:
Control appliance detects and discerns the current event on the home network in real time, whether the real-time judge current event is present in the incident sublist, if, then find this incident corresponding equipment sublist and state sublist, to the operation of appointment in the executing state sublist in order of each equipment in the equipment sublist according to the information parameter in the current event; Otherwise returning this step continues to judge.
Wherein, whether described control appliance real-time judge current event is present in the incident sublist and is:
Judge whether the information parameter in the current event is identical with the information parameter of an incident in the incident sublist, if identical, then current event is present in the incident sublist, otherwise current event is not present in the incident sublist.
Wherein: above-mentioned described current event is the current time, and described information parameter comprises the time at least.
Wherein: above-mentioned described current event is the fingerprint triggering signal, and described information parameter comprises fingerprint image at least.
Wherein, this method further is included in and dynamically generates described incident-pattern chained list on the control appliance.
Wherein, described dynamic generation incident-pattern chained list specifically comprises for existing incident-pattern chained list is edited:
C1, existing incident-pattern chained list is written into control appliance;
C2, the incident sublist in incident-pattern chained list is made amendment, comprise the information parameter of revising the incident that sets;
C3, the equipment sublist in incident-pattern chained list is made amendment, comprise the equipment in the increase and decrease equipment sublist, adjust the equipment sequence in the equipment sublist;
C4, the state sublist in incident-pattern chained list is made amendment;
C5, preserve edited incident-pattern chained list.
Wherein, described dynamic generation incident-pattern chained list specifically comprises for creating new incident-pattern chained list:
The pointer of D1, establishment incident-pattern chained list;
D2, set up the incident sublist, in the incident sublist, fill in the information parameter of predefined incident, and on each predefined incident the pointer of setting incident-pattern chained list;
D3, set up separately equipment sublist respectively by predefined incident in the incident sublist, the pointer of predefined incident is pointed to separately equipment sublist respectively, with in the equipment sublist, fill in equipment in order, and be each equipment setting pointer separately;
D4, for setting up the state sublist respectively in each equipment sublist, the state content of this equipment in the pointed state sublist of each equipment in the equipment sublist is filled in the predefined operating state of each equipment respectively in the state sublist;
D5, the new incident-pattern chained list of preservation.
Wherein, this method further comprises: judge whether the content of setting in described incident-pattern chained list is wrong, if having, and update event-pattern chained list then, otherwise, do not do operation.
Wherein, this method further comprises: after the operation of stipulating in the equipment executing state sublist in the described equipment sublist, the current operation status of Returning equipment is to control appliance, control appliance judges whether the mode of operation of stipulating in current operation status that each equipment returns and the equipment sublist is identical, if inequality, then recording equipment error message; Otherwise, do not do operation.
The present invention can realize that whether current event on the real-time judge home network is for preestablishing one of trigger event, if, then according to the content that preestablishes to this current incident, to one group of equipment executable operations on the home network, this method each equipment on the home network that makes is able to interconnected, collaborative work, and can make the automaticity of home network be improved according to current event automatically to the equipment executable operations on the home network.In addition, the user can set up and edit the incident among the present invention-pattern chained list as required, makes triggering mode more flexible, thereby increases the flexibility that the user uses home network.
Embodiment
The present invention is the event triggering method on a kind of home network, and this method is to preestablish under the situation of incident in current event, then to one group of equipment executable operations on the home network of current event correspondence.
Describe the present invention below in conjunction with accompanying drawing.
Among the present invention, the repetitive operation that distinct device is carried out according to rule is defined, and is specially: order and the parameter collaborative work according to the rules of a plurality of household equipments on the home network is set at a kind of pattern, and this kind pattern is called environmental pattern.At different aspects, environmental pattern specifically can comprise event schema, safe mode, temporal mode and the model of personality etc.In embodiments of the present invention, the definition of environmental pattern is embodied in incident-pattern chained list, and this link form comprises three sublists, is respectively incident sublist, equipment sublist and state sublist.The information parameter of user's trigger event of definition environment pattern in the incident sublist, this information parameter can comprise the content of the effectual time that trigger event takes place, for trigger event is the situation of current time, and the definition content of its information parameter comprises time and cycle at least; When the definition environment pattern is triggered in the equipment sublist, the equipment that this pattern started and the boot sequence of these equipment; The mode of operation of each starting device in the definition environment pattern in the state sublist, wherein, mode of operation is meant the content relevant with operation of equipment of the entry condition that comprises this equipment, operating state, stop condition, and for example: the mode of operation that state sublist hollow is transferred is target temperature and regulation time of implementation for temperature is set.More than each sublist link by pointer.This link form can data structure by different way define, Fig. 1 is a kind of data structure implementation of definition this incident-pattern chained list, wherein, i is the number of predefined trigger event, n is the equipment number that incident i is triggered, in Fig. 1, n is the equipment number that incident 1 is triggered.Shown in Figure 1 is a kind of implementation of incident-pattern chained list among the present invention only, and the implementation of incident-pattern chained list is not limited thereto.
Referring to shown in Figure 2, in home network, there is a control appliance, be used for the incident-pattern chained list of storage environment pattern, and according to each equipment executable operations on the comprehensive coordination of the content in the incident-pattern chained list home network, wherein, m is the equipment number on the home network, control appliance specifically can be taken on by gateway, home server or remote controller, and as shown in Figure 3, the basic composition of control appliance specifically comprises:
The current event receiving element: control appliance is by the current event on this unit reception home network; Memory cell: the executive program and the incident-pattern chained list that are used for preserving control appliance; Panel unit: be used for manually-operated hand-control panel and control appliance status indicator lamp; Reminding unit: be used for the part of under abnormal conditions, reporting to the police; Communication unit: the signaling interface part of remote controller and control appliance; Network adaptation unit: the part that the signal of control appliance and home network is complementary; Control unit: be connected with the above each unit, be used for coordinating the work of each household equipment unit.
Triggering for environmental pattern can be divided into two classes, is specially automatic triggering and passive triggering, below in conjunction with accompanying drawing above-mentioned triggering mode is described:
One, trigger environmental pattern automatically:
Referring to shown in Figure 4, be to be example the current time with automatic trigger event, the automatic trigger process of environmental pattern comprises:
Step 401~402: control appliance reads the current time T in the timing unit, and from memory cell, read all predefined incidents of incident-pattern chained list, to obtain all predefined time collection Ti be example to read in the present embodiment, and wherein, i is the number that preestablishes the time;
Step 403: judge whether current time T is present among the Ti, comprise that specifically the time content judged in the current time and cycle be whether consistent with among the Ti one or more, if then execution in step 404, otherwise, return step 401 and carry out;
Step 404: control appliance is written into T equipment list pointed and state table to control unit;
Step 405: whether control appliance is online according to this household equipment of the equipment inspection in the equipment list, if then execution in step 406, otherwise, execution in step 409 recording equipment error messages, and finish the environmental pattern trigger process; Device Errors information herein refers to " equipment is not online ";
Step 406: the control unit in the control appliance sends the state fill order according to content loaded in the memory cell to controlled device; Wherein, the content that is written into refers to the content in state table and the equipment list;
Step 407: after controlled device is received the state fill order, executable operations, the state after control appliance feeds back its execution;
Step 408~step 409: this equipment state of setting in incident-pattern chained list in state after control appliance is carried out the equipment of receiving and the memory compares, if both unanimities, then show the automatic trigger process correct execution of environmental pattern, finish this process; If both are inconsistent, then show in the automatic trigger process of environmental pattern wrongly, then execution in step 409 recording equipment error messages finish this process again.
According to above-mentioned trigger process, below enumerate two specific embodiments more again, understand with convenient:
1, birthday pattern:
It is on January 14th, 2003 that control appliance reads the current time, and from memory cell, read each time T i, the temporal information parameter of judging Ti in the trigger event obtain the birthday pattern in current time and the incident-pattern chained list equates, wherein, the information parameter of Ti comprises: the time: January 14, cycle: 1 year; Control appliance should the pairing equipment sublist of birthday pattern Ti and the pairing state sublist of equipment sublist be written into control unit in the control appliance, control unit detects each equipment in the equipment sublist, just clock, courtyard computer, electronics frame, lamp, sound equipment, curtain are all online, according to the order in the equipment sublist, with the above equipment executable operations of the State Control of stipulating in the state sublist, specifically comprise:
Clock: because owner is a veteran, morning, 6:30 woke owner up with " reveille " that gradually rise;
The courtyard computer: morning, 6:40 reminded that be your birthday today, please buy birthday cake;
Digital photo frame: play owner's photo in childhood;
Lamp: 7:30 transfers to the warm tones of dinner party at dusk;
Sound is to the 7:30 music of playing that happy birthday at dusk;
Curtain: 6:40 closes at dusk.
For incident shown in Figure 1-pattern chained list, for realizing the operation of above birthday pattern in the present embodiment, in the incident sublist of described incident-pattern chained list, fill in the information parameter of birthday event in advance, comprise at least in the information parameter that the date is that January 14, cycle are 1 year; In the equipment sublist, then fill in the starting device in the birthday pattern in advance, comprising: clock, entrance hall computer, digital photo frame, lamp, sound equipment and curtain; In the equipment sublist, then according to the mode of operation of desiring to reach behind the above each device start, fill in the mode of operation of each equipment respectively, with the lamp example, its content transfers to the warm tones of dinner party for dusk 7:30 in the state sublist.
More than the environmental pattern of She Dinging automatically performed in the January 14 in every year, need not artificial participation, and was the whole system collaborative work.
2, go into the winter pattern:
The implementation of this pattern and above-mentioned birthday pattern similarity, the effect of triggering is: with 1 year be the cycle, only carry out following operation from November 1 to April 1:
Air-conditioning is lower than at satisfied temperature under 18 degrees centigrade the state and starts, and stops satisfying under 23 degrees centigrade the state;
Humidifier was worked under the state at interval satisfying in 2 hours, reach 40 minutes state of operation after, when room humidity reaches greater than 80% state, stop humidifier work.
Equally, for incident shown in Figure 1-pattern chained list, for going into the operation of winter pattern more than realizing in the present embodiment, need in the incident sublist of this form, to fill in advance into the winter incident, the information parameter of going into the winter incident comprises: the date, to end from November 1 to April 1, and the cycle is 1 year; Comprise air-conditioning and humidifier in the equipment sublist; The mode of operation that then comprises air-conditioning and humidifier in the state sublist is an example with the air-conditioning, and its content in the state sublist is: entry condition is 18 degrees centigrade, and stop condition is 23 degrees centigrade.
In the above-described embodiments, the mode of operation of every kind of pattern trigger event, trigger equipment and equipment separately can be made amendment at any time according to user's different needs, and the user can be according to self needs by upgrading the modification of finishing related content to the incident sublist in incident-pattern chained list, equipment sublist and state sublist.
Two, passive triggering environmental pattern:
Referring to shown in Figure 5, be that fingerprint is an example with passive trigger event, the passive trigger process of environmental pattern comprises:
Step 501~step 502: control appliance judges whether the triggering signal of fingerprint, if do not have, then returnsstep 501; Otherwise, judge whether this triggering signal is effective trigger signals, if then execution instep 503, otherwise, returnstep 501;
Step 503~step 505: whether control appliance comprises the fingerprint trigger event in decision event-pattern chained list in memory cell, if not, then returnstep 501, otherwise, judge whether the finger print information parameter in this fingerprint trigger event is consistent with the fingerprint in the triggering signal, if not, then returnstep 501, otherwise according to section effective time of predefined fingerprint trigger event in incident-pattern chained list, whether the generation of judging this fingerprint signal is in predefined effective time section, if not, then returnstep 501, otherwise, according to the content in incident-pattern chained list the equipment on the home network is operated;
Wherein, above-mentioned specific implementation step and the step 404~step 409 in the above-mentioned automatic triggering environmental pattern of the equipment on the home network being operated according to the content in incident-pattern chained list is similar, difference only is: the content that is written into is fingerprint trigger event corresponding equipment sublist and state sublist, and all the other processes are identical.
In the process of the process of aforesaid automatic triggering environmental pattern and passive triggering environmental pattern, trigger event is not limited to current time and the fingerprint signal lifted, according to actual needs, automatically trigger event can be set to the incident that environmental pattern is triggered automatically of realizing of equipment state incident, ambient condition incident and other; Equally, passive trigger event also can be set to remote controller signal, switching signal and other and can realize incident to the passive triggering of environmental pattern.When trigger event was other trigger event, the relevant parameter that preestablishes this trigger event and this trigger event in incident-pattern chained list got final product, and its process that realizes the environmental pattern triggering is consistent with above-mentioned environmental pattern trigger process.
In above environmental pattern trigger process, control appliance serves as that foundation is synthesized and coordinated control to the household equipment on the network with the content in incident-pattern chained list, and for incident-pattern chained list, the user can carry out Dynamic Maintenance, referring to shown in Figure 6, the Dynamic Maintenance process comprises:
Step 601: the incident of entering-pattern chained list edit pattern, select edit mode, when the user selected existing table edited, then execution in step 602, and when the user selected to create new sequential-pattern chained list, then execution in step 603;
Step 602: existing incident-pattern chained list is edited;
Step 603: create new incident-pattern chained list;
Referring to shown in Figure 7, step 602 is described edits specifically and comprises existing incident-pattern chained list:
Step 701: control appliance is written into incident-pattern chained list of desire editor;
Step 702: the incident and the information parameter that comprises the incident generating period of revising the incident sublist in this link form;
Step 703~step 705: revise the equipment sequence in the equipment sublist in this link form, just change the boot sequence of included equipment, select edit mode again to the equipment that comprises in the equipment sublist, if edit mode is a sweep equipment, then execution instep 704 is deleted these equipment frames, if edit mode is an increase equipment, then execution instep 705 increases this equipment frame;
Step 706: judge whether the editor to this equipment sublist finishes, if then execution instep 707, otherwise, return execution instep 703;
Step 707: revise the equipment state sublist, specifically comprise the state that is modified in the household equipment in the environmental pattern;
Step 708: judge whether the editor to this state sublist finishes, if then execution instep 709, otherwise, return execution instep 707;
Step 709: need to judge whether the title of change incident-pattern chained list and deposit this table in addition, if then execution instep 710 is changed the filename of this incident-pattern chained lists and deposited chained list with the order of this document name, finishes editing process; Otherwise, finish editing process to existing incident-pattern chained list;
Referring to shown in Figure 8, the new incident-pattern chained list of the described establishment of step 603 specifically comprises:
Step 801: the pointer of creating new incident-pattern chained list;
Step 802: set up the incident sublist in this incident-pattern chained list, in this incident sublist, fill in each incident that environmental pattern takes place, and the information parameter that comprises incident generation parameter in each incident, distribute the pointer of the incident-pattern chained list of new establishment respectively for each incident in the incident sublist, the pointer of each incident has nothing in common with each other;
Step 803: set up each equipment sublist,, the pointer of setting up each incident in the good incident sublist is pointed to the corresponding equipment sublist respectively according to the triggering requirement of predesignating;
Step 804~step 805: select the edit mode to the equipment in the equipment sublist, if sweep equipment, then execution instep 804 is deleted an equipment frame, if increase equipment, then execution instep 805 increases an equipment frame;
Step 806: judge whether the editor to the equipment sublist finishes, if then execution instep 807, otherwise, return execution instep 804 or step 805;
Step 807: the state sublist of setting up each equipment sublist respectively, in the state sublist, fill in the mode of operation of each equipment in this state sublist corresponding equipment sublist, and with the position of operational state separately of the regulation in the pointed state sublist of each equipment in the equipment sublist;
Step 808: whether the editor of judgment device sublist finishes, if then execution instep 809, otherwise returns execution instep 807;
Step 809: determine sequential-pattern chained list lattice file name, preserve sequential-pattern link form, finish to set up the process of new url form then with this document name.
As seen, the present invention carries out preset operation by one group of equipment that current event triggers on the home network, each equipment on the home network that makes is able to interconnected and collaborative work, thereby reduced the repetitive process in the manual operation in a large number, made the user easier, efficient the operation of equipment on the home network.In addition, trigger process of the present invention need not artificial participation, can automatically perform one group of equipment on the home network according to current event, thereby improve the automaticity of home network, and make on the home network operation of equipment coordinate more, accurately.