Embodiment 1
The invention provides the embodiment of the method for the control method of a kind of intelligent domestic system, it should be noted that attached
Step shown in the flow chart of figure can perform in the computer system of such as one group of computer executable instructions, and,
Although showing logical order in flow charts, but in some cases, can perform with the order being different from herein
Shown or described step.
The embodiment of the method that the embodiment of the present invention one is provided can be in mobile terminal, terminal or similar fortune
Calculate in device and perform.As a example by running on mobile terminals, Fig. 4 is that a kind of of the embodiment of the present invention runs Smart Home
The hardware block diagram of the mobile terminal of the control method of system.As shown in Figure 4, mobile terminal 1 can include one
Or multiple (only illustrating one in figure) processor 402 (processor 402 can include but not limited to microprocessor (MCU)
Or the processing means of PLD (FPGA) etc.), for storing the memorizer 404 of data and for leading to
The transmitting device 406 of telecommunication function.It will appreciated by the skilled person that the structure shown in Fig. 4 is only signal,
The structure of above-mentioned mobile terminal is not caused restriction by it.Such as, mobile terminal 1 may also include than shown in Fig. 4 more more
Many or less assembly, or there is the configuration different from shown in Fig. 1.
Memorizer 404 can be used for storing software program and the module of application software, such as the intelligence in the embodiment of the present invention
Control instruction/module that the control method of house system is corresponding, processor 402 is stored in memorizer 404 by operation
Interior software program and module, thus perform the application of various function and data process, i.e. realize above-mentioned intelligent family
Occupy the control method of system.Memorizer 404 can include high speed random access memory, may also include nonvolatile memory,
Such as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances,
Memorizer 404 can farther include the memorizer remotely located relative to processor 402, and these remote memories are permissible
It is connected to mobile terminal 1 by network.The example of above-mentioned network includes but not limited to the Internet, intranet, office
Territory net, mobile radio communication and combinations thereof.
Transmitting device 406 is for receiving via a network or sending data.Above-mentioned network instantiation can include
The wireless network that the communication providers of mobile terminal 1 provides.In an example, transmitting device 406 includes a net
Network adapter (Network Interface Controller, referred to as NIC), they can be by base station and other networks
Equipment is connected thus can carry out communication with the Internet.In an example, transmitting device 406 can be radio frequency (Radio
Frequency, referred to as RF) module, it is for wirelessly carrying out communication with the Internet.
Under above-mentioned running environment, this application provides the control method of intelligent domestic system as shown in Figure 5.Fig. 5
It it is the flow chart of the control method of intelligent domestic system according to embodiments of the present invention.As it is shown in figure 5, the method is permissible
Including following process step:
Step S502: obtaining combination control command stream, wherein, combination control command stream is by multiple according to preset algorithm
Control command node editor form, smart machines different in the most corresponding intelligent domestic system of each control command node,
And there is multiple adjacent control command node at least one the control command node in combination control command stream;
In the most corresponding intelligent domestic system of each control command node in S502 in the application above-mentioned steps one
Type order, such as: signal light control order (is used for controlling light open and close or brighten for controlling light
With dimmed), curtain control command (draw the curtain together for control or open curtain), room temperature control command (be used for controlling
Floor heating processed opens and closes or is used for controlling temperature and heightens and turn down);Above-mentioned smart machine can include but not limited to
At least one lower: signal light control equipment, curtain control equipment, room temperature controls equipment.
Step S504: the part or all of smart machine in intelligent domestic system is controlled according to combination control command stream
System.
In S504 in the application above-mentioned steps, owing to the control command provided in intelligent domestic system is varied,
And user the most generally have only to use wherein sub-fraction control command to control part smart machine.When
So, owing to the manufacturer of intelligent domestic system is numerous, some manufacturer is for cost-effective consideration or technical research
Level is restricted, and it is only provided that the smart machine using function the most single, and therefore, user is likely to once
Need in using to use whole control command that whole smart machines are controlled operation.Such as: if the user while winter
Come home from work to typically require afterwards and perform following operation: the conventional electric light turning on indoor illuminates → pull on indoor to provide
Curtain with protection privacy → unlatchings floor heating to improve indoor temperature, to this end, user in order to avoid execution repetitive operation, can
To edit combination control instruction in advance, i.e. signal light control order → curtain control command → room temperature control command.After,
Every day only need to sequentially perform aforesaid operations.Certainly, if user family being additionally provided with anti-theft monitoring system to prevent
In Jia nobody time personal property stolen, then after user opens the door, performing also editor while signal light control order has peace
Full control command, at this point it is possible to make a choice between, both can first close burglary-resisting system and turn on electric light again,
Can also first turn on electric light and turn off burglary-resisting system.
Based on foregoing description, by using the control method of the intelligent domestic system provided in above-described embodiment one, right
Existing combination control mode and its use scene to be extended, be no longer limited to provided in correlation technique is complete
Portion's control command all uses serially, but uses same control command at part control command node
Node is connected with multiple postorder control command nodes via communication path and according to preset algorithm (such as: depth-first time
Go through algorithm or breadth first traversal algorithm) and supporting rule (such as: priority scheduling pattern) determine multiple postorder
The execution order of control command node.Thus, solve the single process in correlation technique and combine the execution side of control command
Formula is single, lack the problem of motility, and then realizes combination control more convenient and diversified to intelligent domestic system
Mode.
The above embodiments of the present application one provide scheme in, in step S504 realize according to combination control command stream pair
Partly or entirely smart machine is controlled including following operation:
Step S1: resolve combination control command stream, obtain the editor that multiple control command node is arranged according to preset algorithm
Mode, wherein, edit mode is to choose initial control command node from multiple control command nodes, and along initial
The communication path of control command node seeks each accessibility control command node successively, all can arrive until searching
The control command node reached, to determine the topological sorting relation of multiple control command node;
For the control command of the multiple serials execution employed in presently relevant technology, the above-mentioned enforcement of the application
Technical scheme provided in example one more can be designed according to preset algorithm and control based on the combination of " tree " shape structure
The edit mode of order.I.e. the part or all of control command node in edit mode is not as employed in correlation technique
Serial single direction pattern, but have one and enter limit and have at least two and go out limit to connect multiple adjacent control
Command node, finally determines the ordering relation of each control command node in " tree " shape structure.Such as: correlation technique
In often use the edit mode that control command 1, control command 2, control command 3, control command 4 perform successively,
I.e. control command 1 only one of which goes out limit connection control command 2, and control command 2 only one of which goes out limit connection control command 3,
Control command 3 only one of which goes out limit connection control command 4, and it is more like a branch of " tree " shape structure.Only
It is further continued for performing next control command in the case of previous control command runs succeeded.And use the application above-mentioned
Edit mode provided in embodiment 1, control command 1 can have two go out limit be respectively communicated with control command 2 and control
Order 3 processed, and control command 2 only one of which goes out limit connection control command 4, it is " tree " shape structure.Thus, logical
Cross and combination control command stream is resolved the edit mode that just can get above-mentioned multiple control command node.
In the scheme that the above embodiments of the present application one provide, the multiple control command nodes realized in step S1 are according to presetting
The edit mode that algorithm is arranged can include one below:
Mode one, multiple control command node arrange edit mode according to depth-first traversal algorithm, wherein, and multiple controls
Part or all of control command node in command node processed is previously provided with priority, and priority is used for determining with same
The priority execution order of the multiple adjacent control command node that individual control command node path communicates;
In multiple control command nodes of " tree " the shape structure composition given user, original state is all of control
Command node is not all accessed, and therefore, it can therefrom choose a control command node as initial point to remaining not
The control command node accessed conducts interviews.If the control command node that current accessed is crossed is communicated with two by going out limit
Or more adjacent control command nodes, now, in the case of not setting special decision condition, can be according to
Above-mentioned two or more adjacent control command node editor's order or to enter the priority of queue in the process of implementation suitable
Sequence determines preferential which control command node of execution.
In the scheme that the above embodiments of the present application one provide, further, in the intelligence supporting that priority arranges and judges
In house system, each control command node all can arrange the priority of correspondence.Priority can be according to the actual requirements
It is configured and can be adjusted in real time, such as: can be in advance by the part or all of control in intelligent housing system
Order is set to 10 grades (Lev1-Lev10), and Lev1 is limit priority order, and Lev10 is lowest priority
Order, the priority of Lev1-Lev10 reduces successively.If being additionally provided with anti-theft monitoring system based in above-mentioned user family
The example that during to prevent in family nobody, personal property is stolen, then after user opens the door, perform the same of signal light control order
Time also edited safety control command, now, if not presetting signal light control order and safety control command
Priority, then the terminal for controlling can in conjunction with the order of the command queue received (such as: signal light control is ordered
Make and enter queue prior to safety control command), then just can first turn on electric light and turn off burglary-resisting system.But, if
The priority presetting signal light control order and safety control command (is assumed to preset the excellent of signal light control order
First level be the priority of Lev1 and safety control command be Lev2, and the priority of Lev1 is higher than Lev2),
If then perform occur that signal light control order and safety control command need the sequencing of both Predicated execution simultaneously,
Just can first turn on electric light turn off burglary-resisting system according to both priority set in advance.
During it should be noted that do not pre-set priority if there is a control command, intelligent domestic system will
A default priority can be given for it.Such as: intelligent domestic system receives control command 1, control command 2, control
System order 3 and control command 4, if can have two to go out limit according to above-mentioned control command 1 be respectively communicated with control life
Make 2 and control command 3, and control command 2 only one of which goes out the topological connection relation of limit connection control command 4, that
Assume that the priority that control command 2 is allocated in advance is Lev2, and control command 3 is not preassigned preferentially
Level, herein, intelligent domestic system can be then the priority (such as: Lev3) that control command 3 distributes an acquiescence,
And then owing to the priority of control command 2 is higher than the priority of control command 3, so needing to first carry out control command 2
Perform control command 3 again.
Fig. 6 is to be supported control command stream based on priority the most on the subscriber terminal
Editing process flow chart.As shown in Figure 6, in the control command stream through editor, first branch point (is i.e. ordered
Order stream starting point) control command a and control command x Liang Ge branch can be divided into, after it is all properly termed as starting point
Sequence order (can certainly optionally one of them, as starting point, and have from control command a and control command x
Preamble order), and the priority of control command a and control command x is both configured to Lev1.Control command a and control
The preamble order of system order x is " initial order ", and " initial order " does not exist preamble order.Now, by
Priority in control command a and control command x is Lev1, therefore, it can arbitrarily select one of them to be held
OK, it is assumed that select to perform control command a place branch, process is the most specifically performed as follows: if control command a
Run succeeded, then need to continue executing with second branch point, otherwise, stopping is continued executing with current branch.Second
At branch point, the priority of control command b is set to Lev1, and the priority of control command d is set to Lev2, and
Control command b and control command d are the postorder order of control command a, i.e. control command b and control command d
Preamble order is control command a.Now, it is higher than the excellent of control command d due to priority Lev1 of control command b
First level Lev2, then need preferentially to perform control command b place branch, if control command b runs succeeded, the most permissible
Continue executing with control command c, perform postorder order the most successively, until the control command in whole branch is all held
Row complete, or, when going to specific control command and unsuccessful so that stop perform.Perform the most again to control life
Make d place branch, if control command d runs succeeded, then can continue executing with the 3rd branch point, otherwise, stop
Only perform current branch.At the second branch point, the priority of control command e is set to Lev1, control command f
Priority is set to Lev2, control command f and control command e and is the postorder order of control command d, control command
The preamble order of f and control command e is control command d.Now, high due to priority Lev1 of control command e
In priority Lev2 of control command f, then need preferentially to perform control command e place branch, if control command e
Run succeeded, then can continue executing with subsequent commands, until the order in whole branch is all finished, or,
When going to specific control command and unsuccessful so that stop perform.Perform control command f place branch the most again,
If control command f runs succeeded, then can continue executing with subsequent commands, until the control command in whole branch is complete
Portion is finished, or, when going to specific control command and unsuccessful so that stop perform.When control command a
After place branch is all finished, perform the branch at control command x place the most again, until the control in whole branch
System order be all finished, or, when going to specific control command and unsuccessful so that stop perform.So far,
The control command stream edited on the subscriber terminal is all finished.
Mode two, multiple control command node arrange edit mode according to breadth first traversal algorithm, wherein, and multiple controls
Part or all of control command node in command node processed is previously provided with priority, priority be used for determining be positioned at
The difference of one level adjoins the priority execution order of control command node.
In multiple control command nodes of " tree " the shape structure composition given user, original state is all of control
Command node is not all accessed, and therefore, it can therefrom choose a control command node as initial point to remaining not
The control command node accessed conducts interviews.Control life is defined along going out limit outward expansion by path by starting point
Make the hierarchical relationship between node, by the path between starting point can be using starting point as ground floor i.e.
The child node of 1 is as the second layer, then using child node that the path between starting point is 2 as third layer, with
This analogizes, and wherein, control command node place level can add 1 by path and obtain.
If the control command node that current accessed is crossed (assuming to be positioned at n-th layer) is communicated with two or more by going out limit
Many adjacent control command nodes (being positioned at (n+1)th layer), now, in the case of not setting special decision condition,
Can be according to above-mentioned two or more adjacent control command node editor's order being positioned at (n+1)th layer or in execution
During enter the sequencing of queue determines preferential to perform which control command node.
In the scheme that the above embodiments of the present application one provide, further, equally supporting priority to arrange and sentencing
In fixed intelligent domestic system, the priority of correspondence is set for each control command node.Priority equally basis
Actual demand is configured and can be adjusted in real time, such as: can in advance by the part in intelligent housing system or
All control command is set to 10 grades (Lev1-Lev10), and Lev1 is limit priority order, and Lev10 is
Low priority order, the priority of Lev1-Lev10 reduces successively.Such as: intelligent domestic system receives and comes from user
The control command 1 of terminal, control command 2, control command 3, control command 4 and control command 5, wherein, control
System order 1 is control command 2, the father node of control command 3, and control command 2 is control command 4, control command 5
Father node.At this point it is possible to using control command 1 as ground floor, then control command 2, control command 3 due to
And the path between control command 1 is 1, then as the second layer, and control command 4, control command 5 due to
Path between control command 1 is 2, then as third layer.The priority assuming control command 1 is Lev1,
The priority of control command 2 is Lev3, and the priority of control command 3 is Lev2, and the priority of control command 4 is
Lev3, the priority of control command 5 is Lev2, then according to the priority of above-mentioned configuration, control command 1, control
The execution order of order 2, control command 3, control command 4 and control command 5 is followed successively by: control command 1, control
Order 3 processed, control command 2, control command 5 and control command 4.
In a preferred embodiment, specific to above-mentioned Fig. 6, if using breadth first traversal algorithm to edit, then
In the control command stream through editor, control command a and control command x can be set to the first level, and
The priority of control command a and control command x is both configured to Lev1.Now, due to control command a and control command
The priority of x is Lev1, therefore, it can arbitrarily select one of them to be performed, it is assumed that select to perform control
System order a, then then need to continue executing with control command x after having performed control command a.When being positioned at the first level
After control command a and control command x are performed both by, then continue executing with the second level.In the second level, control
The priority of order b is set to Lev1, and the priority of control command d is set to Lev2, now, due to control command
Priority Lev1 of b higher than priority Lev2 of control command d, then needs preferentially to perform control command b, the most again
Perform control command d.If control command d is finished, then can continue executing with third layer level.In third layer level
In, the priority of control command e is set to Lev1, and the priority of control command f is set to Lev2, and owing to controlling
Order c does not pre-set priority, then needing by intelligent domestic system is that control command c distributes a priority
(priority being assumed to be the distribution of control command c is Lev3), now, owing to priority Lev1 of control command e is high
In priority Lev2 of control command f, and priority Lev2 of control command f is higher than the preferential of control command c
Level Lev3, then need preferentially to perform control command e, then perform control command f, finally performs control command c, until
Subsequent control order is all finished.
It should be noted that what above-mentioned multiple control command node was mentioned in editing according to depth-first traversal algorithm
Depth-first traversal algorithm and above-mentioned multiple control command node are mentioned in editing according to breadth first traversal algorithm
Breadth first traversal algorithm be only two optimization algorithms of the preset algorithm provided in the embodiment of the present invention, it is not
Constituting the improper restriction to the present invention, the embodiment of the present invention can also use next of other kinds of graph traversal algorithm completely
Join different applicable scenes.
Step S2: obtained the control command node of successful execution in multiple control command node by edit mode,
And according to the mutual execution sequencing of control command node each in the control command node of successful execution to portion
Divide or all smart machine is controlled.
Due to the above-mentioned steps by mentioning in the embodiment of the present application one, the edit mode of multiple control command nodes and
Execution sequence is the clearest and the most definite.Therefore, it can the edit mode mutual according to each control command and execution sequence
Sequentially control correspondingly smart machine.Such as: it has been determined that signal light control order, curtain control command, room temperature control
The edit mode that system is ordered, safety control command is mutual is as follows: signal light control order is the initial control of a branch
Command node, is sequentially connected with curtain control command, room temperature control command;And safety control command is another branch
Initial control command node.It addition, according to priority result of determination, each control command execution sequence is as follows: safety
Control command → signal light control order → curtain control command → room temperature control command, therefore, specifically controls behaviour in execution
During work, first close burglary-resisting system, open indoor electric lamps again, then pull on indoor curtain, finally open floor heating and supply
Heat.
The above embodiments of the present application one provide scheme in, in step S2 one of which realize according to edit mode pair
Partly or entirely smart machine is controlled may comprise steps of:
Step S21: judge whether pending control according to the edit mode obtained by depth-first traversal algorithm
Command node processed;If it is, continue executing with step S22;If it is not, then continue executing with step S23;
During being preferable to carry out, judge whether to treat according to the edit mode obtained by depth-first traversal algorithm
The control command node performed can specifically include following operation: determines that multiple control command node is excellent according to the degree of depth
First ergodic algorithm carries out layout, obtains edit mode;Judge whether edit mode exists as root node pending
Control command node, or, if exist from root node along communication path and the control command being currently finished
The pending control command node that node is adjacent.
Such as: combination control command stream is made up of control command 1, control command 2, control command 3 and control command 4,
Wherein, control command 1 is root node, control command 2 and the leaf node that control command 3 is control command 1, control
System order 4 is again the leaf node of control command 2.During concrete execution, need to judge the most pending position
Put and be at the root node of control command 1, be in control command 2, control command 3 or control command 4
At leaf node.When performing first, it is positioned at the root node of control command 1, the most just can perform the control of root node
Order 1;If right and wrong perform first, then can perform above-mentioned control command 2 successively according to above-mentioned edit mode, control
Order 3 and control command 4.
Step S22: choose the highest control command node of priority from pending control command node and perform,
Return step S21;
Step S23: judge whether the control command node being currently finished exists the preamble control command of previously execution
Node;If it is, return step S21;If it is not, then terminate.
In a preferred embodiment, in the system that the above-mentioned control command conductance through editor is entered intelligent home control system
After end, the system end of intelligent home control system uses extreme saturation algorithm based on priority to perform this control command
Stream.The process that the system end scheduling of intelligent home control system performs command stream is as follows:
Fig. 7 is the execution process flow diagram flow chart of based on Fig. 6 according to the preferred embodiment of the invention control command stream.Such as figure
Shown in 7, the system end of intelligent home control system is when performing starting point, and it finds and perform is " initiation command ",
Not there is " preamble order " in this order.First, performing " initiation command " is an initialized process, then obtains
Take postorder control command a and control command x, so select priority the highest be not carried out order, due to control command a
Identical with control command x priority, therefore, it can randomly choose in execution control command a and control command x any
Article one, control command.It is assumed herein that prioritizing selection control command a, i.e. perform the flow process 1 in Fig. 7;When control command a
After execution, i.e. start to perform the postorder order of control command a (according to performing result situation), get control command
B and control command d.Owing to priority Lev1 of control command b is higher than priority Lev2 of control command d, therefore,
Control command b selecting priority higher starts to perform, and i.e. performs the flow process 1.1 in Fig. 7.Order b to be controlled and
After the postorder order c of its control command b is finished, another postorder then starting to perform control command a controls
Order d and postorder control command thereof, i.e. perform the flow process 1.2 in Fig. 7;After control command d runs succeeded, by
In priority Lev1 of control command e higher than priority Lev2 of control command f, therefore, again can be according to priority
First carry out flow process 1.2.1 in Fig. 7, perform flow process 1.2.2 in Fig. 6 the most again.In control command a and control
After the postorder order of order a is all finished, just start to perform another postorder control command of " initiation command "
X, i.e. performs the flow process 2 in Fig. 7.
The above embodiments of the present application one provide scheme in, in step S2 another realize according to edit mode by
Secondary it is controlled may comprise steps of to part or all of smart machine:
Step S24: judge whether current level exists according to the edit mode obtained by breadth first traversal algorithm and treat
The control command node performed;If it is, continue executing with step S25;If it is not, then continue executing with step S26;
During being preferable to carry out, judge institute according to the described edit mode obtained by described breadth first traversal algorithm
State current level whether to there is described pending control command node and can specifically include following operation: determine described many
Individual control command node carries out layout according to described breadth first traversal algorithm, obtains described edit mode;Judge
Whether described edit mode exists the described pending control command node as root node, or, if exist from
Described root node sets out described pending control command joint between the brotgher of node of same level along communication path
Point.
Such as: combination control command stream is made up of control command 1, control command 2, control command 3 and control command 4,
Wherein, control command 1 is for root node and is positioned at the first level, and control command 2 and control command 3 are control command 1
Leaf node and belong to the brotgher of node of the second level, control command 4 is again leaf node and the position of control command 2
In third layer level.During concrete execution, need to judge the root joint that the most pending position is in control command 1
At Dian, it is at the leaf node of control command 2, control command 3 or control command 4.When performing first,
It is positioned at the root node of control command 1, the most just can perform the control command 1 of root node;If right and wrong perform first,
Then can perform above-mentioned control command 2, control command 3 and control command 4 successively according to above-mentioned edit mode.
Step S25: choose the highest control command node of priority from pending control command node and perform,
Return step S24;
Step S26: judge whether the control command node being currently finished exists the postorder control command of next level
Node;If it is, return step S24;If it is not, then terminate.
In a preferred embodiment, in the system that the above-mentioned control command conductance through editor is entered intelligent home control system
After end, the system end of intelligent home control system uses breadth traversal algorithm based on priority to perform this control command
Stream.The process that the system end scheduling of intelligent home control system performs command stream is as follows:
The system end of intelligent home control system is when performing starting point, and it finds and perform is " initiation command ".First
First, performing " initiation command " is an initialized process, then obtain be positioned at the first level control command a and
Control command x, so select priority the highest be not carried out order, owing to control command a and control command x are preferential
Level is identical, therefore, it can randomly choose any one order in execution control command a and control command x.False herein
If prioritizing selection control command a, after order a performs, i.e. start to perform to control life (according to performing result situation)
Make x, and after having performed control command x, determine and be positioned at control command a of the first level and control command x is whole
It is finished.It follows that get control command b and control command d being positioned at the second level.Due to control command b
Priority Lev1 higher than priority Lev2 of control command d, therefore, select control command b that priority is higher
Start to perform, and after order b to be controlled is finished, then start to perform control command d;When control command d is held
After going successfully, determine and be positioned at control command b of the second level and control command d is all finished.It follows that obtain
Fetch bit is in control command c, control command e and control command f of third layer level.And owing to control command c is the most pre-
First arrange priority, then needing by intelligent domestic system is that control command c one priority of distribution (is assumed to be control life
The priority making c distribute is Lev3), now, owing to priority Lev1 of control command e is higher than control command f
Priority Lev2, and priority Lev2 of control command f is higher than priority Lev3 of control command c, then need
Preferentially perform control command e according to priority order from high to low, then perform control command f, finally perform to control life
Make c, until subsequent control order is all finished.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore it is all expressed as one it be
The combination of actions of row, but those skilled in the art should know, the present invention not limiting by described sequence of movement
System, because according to the present invention, some step can use other orders or carry out simultaneously.Secondly, art technology
Personnel also should know, embodiment described in this description belongs to preferred embodiment, involved action and module
Not necessarily necessary to the present invention.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive according to above-mentioned enforcement
The method of example can add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but
In the case of Hen Duo, the former is more preferably embodiment.Based on such understanding, technical scheme substantially or
Saying that the part contributing prior art can embody with the form of software product, this computer software product is deposited
Storage is in a storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal
Equipment (can be mobile phone, computer, server, or the network equipment etc.) performs described in each embodiment of the present invention
Method.
Embodiment 2
According to embodiments of the present invention, a kind of device embodiment for implementing said method embodiment is additionally provided.Fig. 8
It it is the schematic diagram controlling device of intelligent domestic system according to embodiments of the present invention.
As shown in Figure 8, the control device of this intelligent domestic system may include that acquisition module 10, control module 20.
Wherein, acquisition module 10, it is used for obtaining combination control command stream, wherein, combination control command stream is according in advance
Imputation method is formed by multiple control command node editors, in the most corresponding intelligent domestic system of each control command node not
There is multiple adjacent control life at least one the control command node in same smart machine, and combination control command stream
Make node;Control module 20, for according to combining control command stream to the part or all of intelligence in intelligent domestic system
Equipment is controlled.
It follows that the device embodiment that the application provides, this device can apply to intelligent domestic system end, permissible
By receiving combination control command stream from client, this combination control command stream can be edited at user terminal, so
After again combination control command conductance is entered intelligent domestic system end.By to existing combination control mode and its use
Scene is extended, and is no longer limited to the side that the whole control commands provided in correlation technique all use serial to perform
Formula, but use same control command node via communication path and multiple postorder controls at part control command node
Command node processed be connected and according to preset algorithm (such as: depth-first traversal algorithm or breadth first traversal algorithm) and
Its supporting rule (such as: priority scheduling pattern) determines the execution order of multiple postorder control command node.Thus,
Solve in correlation technique single process combination control command executive mode single, lack motility problem, and then
Realize combination control mode more convenient and diversified to intelligent domestic system.
Herein it should be noted that the acquisition module 10 that provides of the above embodiments of the present application and control module 20 with implement
The method step S502 provided in example one has identical application scenarios to step S504, but is not limited to what method provided
Example.And above-mentioned modules can operate in mobile terminal 1 as a part for hardware.
Preferably, as it is shown in figure 9, control module 20 may include that acquiring unit 200 and control unit 202.
Wherein, acquiring unit 200, it is used for resolving combination control command stream, obtains multiple control command node according in advance
The edit mode that imputation method is arranged, wherein, edit mode is for choose initial control command from multiple control command nodes
Node, and seek each accessibility control command node successively, directly along the communication path of initial control command node
To searching whole accessibility control command node, to determine the topological sorting relation of multiple control command node;Control
Unit 202 processed, is saved for being obtained the control command of successful execution in multiple control command node by edit mode
Point, and according to the mutual execution sequencing of control command node each in the control command node of successful execution
Part or all of smart machine is controlled.
Herein it should be noted that the acquiring unit 200 of the above embodiments of the present application offer and control unit 202 are with real
The method step S1 that executing provides in example one has identical application scenarios to step S2, but is not limited to showing of method offer
Example.And above-mentioned unit can operate in mobile terminal 1 as a part for hardware.
Preferably, above-mentioned multiple control command node arranges edit mode according to preset algorithm and can include one below:
Mode one, multiple control command nodes are arranged edit mode according to depth-first traversal algorithm, wherein, multiple
Part or all of control command node in control command node is previously provided with priority, and priority is used for determining with same
The priority execution order of the multiple adjacent control command node that one control command node path communicates;
Mode two, multiple control command nodes are arranged edit mode according to breadth first traversal algorithm, wherein, multiple
Part or all of control command node in control command node is previously provided with priority, and priority is used for determining and is positioned at
The difference of same level adjoins the priority execution order of control command node.
Herein it should be noted that the first acquisition subelement and second that the above embodiments of the present application provide obtains subelement
With mode one and the mode two of the acquisition edit mode provided in embodiment one, there is identical application scenarios, but be not limited to
The example that method provides.And above-mentioned unit can operate in mobile terminal 1 as a part for hardware.
Preferably, control unit 202 may include that the first judgment sub-unit, first choose subelement and second judge
Subelement.
Wherein, the first judgment sub-unit (not shown), for according to the volume obtained by depth-first traversal algorithm
The mode of collecting judges whether pending control command node;First chooses subelement (not shown), is used for
When first judgment sub-unit is output as being, choose, from pending control command node, the control command that priority is the highest
Node also performs, and then execution result is fed back to the first judgment sub-unit;Second judgment sub-unit (not shown),
For when the first judgment sub-unit is output as no, whether the control command node continuing to judge currently to be finished exists
The preamble control command node previously performed, and when self output result is for being, feeds back this output result and sentence to first
Disconnected subelement, otherwise, stops performing.
During being preferable to carry out, the first judgment sub-unit (not shown), it is used for determining multiple control command node
Carry out layout to obtain edit mode according to depth-first traversal algorithm, and judge whether edit mode exists conduct
The pending control command node of root node, or, if exist from root node along communication path with currently hold
The pending control command node that complete control command node of going is adjacent.
Herein it should be noted that the above embodiments of the present application provide the first judgment sub-unit, first choose subelement
To step S23, there is identical application scenarios with the method step S21 of offer in embodiment one with the second judgment sub-unit,
But it is not limited to the example that method provides.And above-mentioned unit can operate in mobile terminal as a part for hardware
In 1.
Preferably, control unit 202 may include that the 3rd judgment sub-unit, second chooses subelement and the 4th judgement
Subelement.
Wherein, the 3rd judgment sub-unit (not shown), for according to the volume obtained by breadth first traversal algorithm
The mode of collecting judges whether current level exists pending control command node;Second chooses subelement (not shown),
For when the 3rd judgment sub-unit is output as being, choose, from pending control command node, the control that priority is the highest
Command node processed also performs, and then execution result is fed back to the 3rd judgment sub-unit;4th judgment sub-unit is (in figure
Not shown), for when the 3rd judgment sub-unit is output as no, continue the control command node judging currently to be finished
Whether there is the postorder control command node of next level, and when self output result is for being, feed back this output result
To the 3rd judgment sub-unit, otherwise, stop performing.
During being preferable to carry out, the 3rd judgment sub-unit, it is used for determining that multiple control command node is according to range
First traversal algorithm carries out layout to obtain edit mode, and judge edit mode whether exist as root node wait hold
The control command node of row, or, if there is the brother's joint being positioned at same level from root node along communication path
Control command node pending between point.
Herein it should be noted that the above embodiments of the present application provide the 3rd judgment sub-unit, second choose subelement
To step S26, there is identical application scenarios with the method step S24 of offer in embodiment one with the 4th judgment sub-unit,
But it is not limited to the example that method provides.And above-mentioned unit can operate in mobile terminal as a part for hardware
In 1.
As a preferred embodiment of the present invention, Figure 10 is according to the preferred embodiment of the invention in intelligent domestic system
Cooperated by user terminal and system end and realize the schematic diagram of control process.As shown in Figure 10, this Smart Home system
System may include that user terminal and system end and multiple execution execution unit customizable, extendible (each execution
Parts correspondence one smart machine), wherein, user terminal may include that commard editor module, system end may include that
Order imports module and (can be used to the combination control command stream realizing above-mentioned memorizer 404 to receiving from user terminal
Carry out the function stored), dispatching control module (can be used to realize above-mentioned processor 402 and transmitting device 406 basis
The function that part or all of smart machine in intelligent domestic system is controlled by combination control command stream).This intelligence man
The system that occupies by introducing the mechanism that depth-first traversal and command prioritization judge, to existing combination control mode with
And use scene to be extended, to support more complicated use scene.Pass through extreme saturation, it is possible to achieve multithread
Journey compound traversal, completes more convenient and diversified combination and controls.Commard editor module on the subscriber terminal is permissible
Editor control command stream, such as: initial order is for closing intelligent door and window order, and postorder order is the unlatching of high priority
Other of the order of Indoor Temperature Ore-controlling Role, the order regulating indoor light of medium priority and low priority perform order.
Then, import module by the order on system end and the above-mentioned order control stream through editor is directed into system end.?
After, dispatching control module performing the above-mentioned order through editor and control stream, it can be according to closing intelligent door and window order
Execution result judge whether to need to continue executing with postorder order.If performing failure, then stop continuing executing with;If
Run succeeded, first go to travel through the order of temperature control system in the opening chamber of high priority, to perform temperature control in opening chamber
System and subsequent commands, travel through the order of the regulation indoor light of medium priority the most again, to perform to adjust indoor lamp
Light and subsequent commands, other traveling through low priority the most again perform order.
Furthermore, it is necessary to explanation, in order to more simplify the operation of user, can set at intelligent domestic system end
Put intervalometer, in order to periodically carry out multi-mode operation set in advance.Such as: assume user 18:00 the most at night
Coming home from work in left and right, then just can be by arranging intervalometer, and agreement 18:00 intelligent domestic system every night is automatic
Perform user's combination set in advance control command stream, automatically turn on indoor light, close burglary-resisting system, pull on indoor
Curtain and unlatching floor heating regulate the room temperature.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not has in certain embodiment
The part described in detail, may refer to the associated description of other embodiments.
In several embodiments provided herein, it should be understood that disclosed mobile terminal, can be passed through other
Mode realize.Wherein, device embodiment described above is only schematically, the division of the most described unit,
Being only a kind of logic function to divide, actual can have other dividing mode, the most multiple unit or assembly when realizing
Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not performs.Another point, institute
The coupling each other shown or discuss or direct-coupling or communication connection can be by some interfaces, unit or mould
The INDIRECT COUPLING of block or communication connection, can be being electrical or other form.
The described unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or can also be distributed to
On multiple NEs.Some or all of unit therein can be selected according to the actual needs to realize the present embodiment
The purpose of scheme.
It addition, each functional unit in each embodiment of the present 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 two or more unit are integrated in a unit.Above-mentioned integrated
Unit both can realize to use the form of hardware, it would however also be possible to employ the form of SFU software functional unit realizes.
If described integrated unit realizes and as independent production marketing or use using the form of SFU software functional unit
Time, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme
Completely or partially can producing with software of the part that the most in other words prior art contributed or this technical scheme
The form of product embodies, and this computer software product is stored in a storage medium, including some instructions in order to make
Obtain a computer equipment (can be personal computer, server or the network equipment etc.) and perform each enforcement of the present invention
All or part of step of method described in example.And aforesaid storage medium includes: USB flash disk, read only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic
The various medium that can store program code such as dish or CD.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improve and profit
Decorations also should be regarded as protection scope of the present invention.