The content of the invention
The embodiment of the invention discloses a kind of intelligent home furnishing control method and device, system, intelligence can be avoided
The confusion of energy home equipment control, realizes differentiated control of the user terminal to intelligent home device, improves user
Experience.
The invention provides a kind of intelligent home furnishing control method, including:
Receive the first operational order that first terminal sends;First operational order includes the first terminal
Identification code and operation object identification code, for indicate to the operation object perform first operate;
Described in corresponding relation according to host ID in database and the Permission Levels of each operation object is obtained
The Permission Levels of the first terminal correspondence operation object;
Judge moment T1To moment T0Inside whether receive and respond the second operational order of second terminal transmission, institute
State the second operational order for indicate to the operation object perform second operation;The T0It is current time,
The T1It is the T0Front distance described in T0The moment of preset duration;
When judged result is to be, then the Permission Levels of the first terminal correspondence operation object with
The height of the Permission Levels of the second terminal correspondence operation object for obtaining;
If the Permission Levels of the first terminal correspondence operation object are higher than the second terminal for obtaining
The Permission Levels of the correspondence operation object, then respond first operational order.
Alternatively, if the Permission Levels of the first terminal correspondence operation object are described less than what is obtained
The Permission Levels of the second terminal correspondence operation object, then be not responding to first operational order.
Alternatively, if the Permission Levels of the first terminal correspondence operation object are equal to the described of acquisition
The Permission Levels of the second terminal correspondence operation object,
Then respond first operational order;Or, obtain the first terminal and second terminal difference
To the range information of the operation object, when the distance of the first terminal to the operation object is less than described
Second terminal to the operation object apart from when, respond first operational order.
Alternatively, when judged result is no, then first operational order is responded.
Alternatively, after first operational order for receiving the first terminal transmission, the judgement moment
T1To moment T0Before inside whether receiving and responding the second operational order of second terminal transmission, also include:
Corresponding relation according to host ID in the database and extent of competence obtains the first terminal pair
The extent of competence answered;
Check first operational order whether within the corresponding extent of competence of the first terminal;
When result is checked to be, then judgement moment T is performed1To moment T0Inside whether receive and respond
The second operational order that two terminals send.
Alternatively, whether the extent of competence also includes time authority, check first operational order in institute
State includes within the corresponding extent of competence of first terminal:
Whether current time is checked within the scope of time authority permission, and first operational order
Whether within the corresponding extent of competence of the first terminal;If be all, the judgement moment is performed
T1To moment T0The step of inside whether receiving and respond the second operational order of second terminal transmission.
Present invention also offers a kind of intelligent home control device, including:
Receiving unit, the first operational order for receiving first terminal transmission;The first operational order bag
The identification code of the first terminal and the identification code of operation object are included, for indicating to hold the operation object
Row first is operated;
Acquiring unit, for right with the Permission Levels of each operation object according to host ID in database
Answer the Permission Levels of the first terminal correspondence operation object described in Relation acquisition;
Judging unit, for judging moment T1To moment T0Inside whether receive and respond the of second terminal transmission
Two operational orders, second operational order is used to indicate to perform the operation object the second operation;It is described
T0It is current time, the T1It is the T0Front distance described in T0The moment of preset duration;
Comparing unit, for when judged result is to be, then the first terminal correspondence operation to be right
The height of the Permission Levels of the Permission Levels of the elephant operation object corresponding with the second terminal for obtaining;
Execution unit, if being higher than to obtain for the Permission Levels of the first terminal correspondence operation object
The second terminal correspondence operation object Permission Levels, then respond first operational order.
Alternatively, the execution unit is additionally operable to, if the power of the first terminal correspondence operation object
Limit rank is then not responding to described less than the Permission Levels of the second terminal correspondence operation object for obtaining
First operational order.
Alternatively, the execution unit is specifically for if the first terminal corresponds to the operation object
Permission Levels are equal to the Permission Levels of the second terminal correspondence operation object for obtaining,
Respond first operational order;Or, obtain the first terminal and the second terminal is arrived respectively
The range information of the operation object, when the distance of the first terminal to the operation object is less than described the
Two terminals to the operation object apart from when, respond first operational order.
Alternatively, the execution unit is additionally operable to, and when judged result is no, then responds first operation
Instruction.
Alternatively, the acquiring unit is additionally operable to, and the first operation that the first terminal sends is received described
After instruction, judgement moment T1To moment T0Inside whether receive and respond the second behaviour of second terminal transmission
Before instructing, the corresponding relation according to host ID in the database and extent of competence obtains described the
The corresponding extent of competence of one terminal;
Described device also includes:
Unit is checked, for checking first operational order whether in the corresponding authority model of the first terminal
Within enclosing;
The execution unit is additionally operable to, and when result is checked to be, then performs judgement moment T1To the moment
T0Inside whether receive and respond the second operational order of second terminal transmission.
Alternatively, the extent of competence also include time authority, it is described check unit specifically for:
Whether current time is checked within the scope of time authority permission, and first operational order
Whether within the corresponding extent of competence of the first terminal;The execution unit is additionally operable to, if checking knot
Fruit is all when being, then to perform judgement moment T1To moment T0Inside whether receive and respond second terminal transmission
The second operational order the step of.
Present invention also offers a kind of intelligent home control system, including at least one terminal, at least one behaviour
Make object, server, wherein, the server includes above-mentioned intelligent home control device.
Foregoing invention, server receive first terminal send for indicate to operation object perform first operate
The first operational order, it is corresponding with the Permission Levels of each operation object according to host ID in database
Relation acquisition first terminal to should operation object Permission Levels, then whether receive before judging current time
And respond second terminal transmission for indicate to same operation object perform second operation the second operational order,
When judged result is to be, then compare the Permission Levels of first terminal respective operations object with second for obtaining eventually
Hold the height of the Permission Levels of respective operations object;If the authority level of the first terminal correspondence operation object
It is not higher, then respond the first operational order.The mixed of intelligent home device control can be avoided by the above method
Disorderly, differentiated control of the user terminal to intelligent home device is realized, Consumer's Experience is improved.
In addition, server can also be obtained according to the corresponding relation of host ID in database and extent of competence
The corresponding extent of competence of first terminal, and check the first operational order whether in the corresponding authority model of first terminal
Within enclosing, rights management can also be carried out to each user terminal;And, the extent of competence also includes the time
Authority, further limits the effective storage life of each user terminal, and optimization server in smart home to using
The management of family terminal.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly
Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than
Whole embodiments.
It should be noted that the term for using in embodiments of the present invention be only merely for description specific embodiment
Purpose, and be not intended to be limiting the present invention.Used in the embodiment of the present invention and appended claims
" one kind ", " described " and " being somebody's turn to do " of singulative is also intended to include most forms, unless context is clearly showed that
Other implications.It is also understood that term "and/or" used herein refers to and related comprising one or more
Connection is listed any or all of project and may be combined.
Fig. 1 is referred to, Fig. 1 is a kind of flow chart of the implementation method of intelligent home furnishing control method one of the invention.This
Invent a kind of intelligent home furnishing control method and be applied to server, can be applied to smart home field, the method bag
Include:
Step S101:Receive the first operational order that first terminal sends.
User terminal, such as first terminal, can be by phone, short message, and the mode such as webpage is sent out to server
Certification message is sent, the certification message is used to detect whether this login service device is legal, server authentication first
The correctness of the authentication information of terminal, the correctly then terminal logs in server.It should be noted that terminal can
Led to server with passing through the modes such as phone, short message, webpage by communications protocol prescribed terminal and between server
The specific implementation of letter.Also, it should be noted that the certification message can also include the mark of first terminal
Code, the identification code of all trust terminals that can be prestored in the database of server, server receives the
After the authentication information that one terminal sends, whether the identification code according to first terminal judges the first terminal identification code
It is the identification code of trust terminal, if it is, judge whether authentication information is correct again, when judged result is all
When being, the terminal can be with login service device.Also, it should be noted that the terminal of trust can be divided into super
Level terminal and ordinary terminal, can set hyper terminal has the authority of information in modification database, changes number
Include deleting according to the authority of information in storehouse, add or modification intelligent home device, delete or addition user terminal,
Extent of competence of user terminal etc. is changed, hyper terminal can also be awarded by changing the extent of competence of user terminal
Ordinary terminal is given to change the part or all of authority of information in database.
Specifically, server reception first terminal passes through the first behaviour that the modes such as phone, short message, webpage send
Instruct, first operational order is used to indicate to perform operation object the first operation, for example, the first operation
The instruction closed for first terminal control television set is instructed, then operation object is television set, the first operation is to close
Close television set.First operational order includes the identification code of first terminal and the identification code of operation object, its
In, the identification code of first terminal is used to recognize first terminal, and the identification code of the first terminal can be first whole
No. ID of end, when first terminal is mobile phone, the identification code of first terminal can also be phone number;Operation
The identification code of object is used to recognize the execution object of the first operation, and the identification code of operation object can be intelligent family
Occupy No. ID of equipment, or the address of server;Operation object can be that intelligent home device can also
It is server, such as, operation object can be first terminal control television set for the instruction of intelligent home device
The instruction of closing, operation object can add or delete smart home in database for the instruction of server
Equipment, or add or delete user terminal and change the instruction of the operations such as the extent of competence of user terminal.
Step S102:According to the pass corresponding with the Permission Levels of each operation object of host ID in database
System obtains the Permission Levels of first terminal respective operations object.
Specifically, host ID can be in advance stored in the database of server with each operation object
The corresponding relation of Permission Levels, for example, can set Permission Levels is divided into 5 grades, respectively 1 grade, 2
Level, 3 grades, 4 grades and 5 grades, it is assumed that first terminal correspondence television set Permission Levels be 3 grades, second terminal
The Permission Levels of corresponding television set are 2 grades, then the Permission Levels of first terminal correspondence television set are higher than second
Terminal-pair answers the Permission Levels of television set, and the television set is manipulated when first terminal and second terminal send simultaneously
During control instruction, server response Permission Levels terminal higher, the i.e. manipulation of the first terminal transmission TV
The control instruction of machine.
It should be noted that same terminal-pair answers the Permission Levels of different intelligent home equipment can be with difference, example
Such as, the Permission Levels of first terminal correspondence television set are 3 grades, and the Permission Levels of corresponding refrigerator are 2 grades.
The corresponding relation of terminal and intelligent home device is stored in the database of server.
Also, it should be noted that can also in advance store host ID and authority in the database of server
The corresponding relation of scope, the extent of competence can include operate each operation object authority, step S101 it
Afterwards, can also include:Server is according to host ID in the identification code and database of first terminal and power
The corresponding relation for limiting scope obtains the corresponding extent of competence of first terminal.For example, the extent of competence of first terminal
The authority of each smart lock, intelligent lamp etc. in manipulation Set Top Box, intelligent curtain, intelligent air condition, family,
First terminal can also be set and manipulate the specific authority of each intelligent home device, for example, first terminal can only
Operation Set Top Box watches partial TV programs, can only control the switch of air-conditioning and can not adjust temperature of air-conditioning etc.,
The operation indicated by operational order that can be sent using numeral and/or alpha code user terminal, such as A01
Represent that television set is opened, A02 represents that television set is closed, B01 represents that curtain is opened, it is assumed that first terminal
The corresponding extent of competence of identification code includes:A01, A02, B01, first terminal can be by phone, short messages
Or the mode such as network sends the control instruction comprising A01 to server, the control instruction also carries first
The identification code of terminal, server is according to host ID and authority in the identification code and database of first terminal
Whether the corresponding relation of scope obtains the corresponding extent of competence of first terminal, then check A01 in first terminal pair
Within the extent of competence answered.After server acquisition first terminal corresponding extent of competence, the first operation is checked
Whether instruction is within the corresponding extent of competence of first terminal, if it is, performing step S103;Otherwise,
Authority of the first terminal without the first operation for indicating the operation object, server performs step S106.
Also, it should be noted that extent of competence can also include time authority, the time authority can limit the
The significant response time of one operational order, after step S101, also include:Check current time whether when
Between within the scope of authority allows, and whether the first operational order within the corresponding extent of competence of first terminal;
If being all when being, to perform step S103.For example, first terminal only has between 18 points to 22 points
The authority of television set is opened, when the first operational order that first terminal sends is opened for indication TV machine, such as
Fruit current time between 18 points to 22 points, such as 19 points, the then model that current time is allowed in time authority
Within enclosing, then judge the instruction of the indication TV machine opening that first terminal sends in the corresponding authority of first terminal
Within the scope of, when judged result is all to be, step S103 just then being performed, otherwise server performs step S106.
Also, it should be noted that time authority can have correspondence to close with the identification code of each terminal in database
System, for example, the time authority of all of operational order of first terminal is 15 days to 2015 November in 2015
On November 16, in;Time authority can also have corresponding relation with the operational order of each terminal in database,
For example, the time authority that second terminal opens the operational order of television set is 19 points to 21 points, closing television
The time authority of the operational order of machine is 1 point to 24 points.
Step S103:Judge moment T1To moment T0Inside whether receive and respond the second of second terminal transmission
Operational order.
Specifically, server may be in T of a certain moment before1To current time T0Time period in have responded to
Other-end, such as second terminal, the second operational order of transmission, the second operational order are used to indicate to behaviour
Make object and perform the second operation, wherein, the operation object of the first operational order and the second operational order is identical,
That is the first operational order and the second operational order all identification codes comprising identical operation object.Work as judged result
During to be, step S104 is performed;When judged result is no, illustrate now without user terminal to the operation
Object is controlled, and now server responds the first operational order.
It should be noted that the first operation and the second operation can be able to be with difference, such as the first operational order
Indication TV office closes, and the second operational order can indicate television set to open.T0It is current time, T1For
T0Front distance T0The moment of preset duration, the preset duration is provided as 5 minutes, 8 minutes or 10
Minute etc., the present invention is not restricted.
Also, it should be noted that step S102 can also be performed after step s 103, or step S102
Performed simultaneously with step S103.
Step S104:The Permission Levels for comparing first terminal respective operations object are corresponding with the second terminal for obtaining
The height of the Permission Levels of operation object.
Specifically, when the judged result of step S103 is to be, i.e., in moment T1To moment T0Server
The second operational order of second terminal transmission is received and responds, second operational order includes, second terminal
The identification code of identification code and operation object, for indicating to perform operation object the second operation, wherein, the
The operation object of one operational order and the second operational order is identical, i.e. the first operational order and the second operational order
All include the identification code of identical operation object.Host ID is operated with each in server based on data storehouse
The corresponding relation of the Permission Levels of object obtains the Permission Levels of second terminal respective operations object, then compares the
One terminal-pair answers the height of the Permission Levels of operation object and the Permission Levels of second terminal respective operations object.
For example, when the second operational order for television set is opened, now television set is in open mode, it is assumed that first eventually
It 3 is 2 with the Permission Levels of second terminal respective operations object that the Permission Levels for holding respective operations object are, then the
One terminal-pair answers the Permission Levels of operation object higher than the Permission Levels of second terminal respective operations object.When
One terminal-pair answer the Permission Levels of operation object higher than second terminal respective operations object Permission Levels when, hold
Row step S105;When the Permission Levels of first terminal respective operations object are less than second terminal respective operations object
Permission Levels when, perform step S106;When the Permission Levels of first terminal respective operations object are equal to second
When terminal-pair answers the Permission Levels of operation object, server can be set and perform step S106, it is also possible to set
Server performs step S105, or now obtains the position of first terminal, second terminal and operation object
Information, the positional information calculation according to them goes out them and manipulates the distance between object, could be arranged to, when
First terminal with manipulation object distance less than or equal to second terminal with manipulation object apart from when, server is held
Row step S105, when first terminal is not less than the distance of second terminal and manipulation object with the distance of manipulation object
When, server performs step S106.
Step S105:Respond the first operational order.
Specifically, server responds the first operational order, the operation object for controlling first operational order to indicate
First is performed to operate.
Step S106:It is not responding to the first operational order.
Specifically, server is not responding to the first operational order, at the operation object that first operational order is indicated
In former working condition.
In the present embodiment, server receive first terminal send for indicate to operation object perform first
First operational order of operation, according to host ID in database and the Permission Levels of each operation object
Corresponding relation obtain first terminal to should operation object Permission Levels, then before judging current time whether
Receive and respond second terminal transmission for indicate to same operation object perform second operation second operation
Instruction, when judged result is to be, then compares Permission Levels and the acquisition of first terminal respective operations object
The height of the Permission Levels of second terminal respective operations object;If the authority of first terminal respective operations object
Rank is higher, then respond the first operational order.Can avoid what intelligent home device was controlled by the above method
Confusion, realizes differentiated control of the user terminal to intelligent home device, improves Consumer's Experience.
In addition, server can also be obtained according to the corresponding relation of host ID in database and extent of competence
The corresponding extent of competence of first terminal, and check the first operational order whether in the corresponding authority model of first terminal
Within enclosing, rights management can also be carried out to each user terminal;And, the extent of competence also includes the time
Authority, further limits the effective storage life of each user terminal, and optimization server in smart home to using
The management of family terminal.
Fig. 2 is referred to, Fig. 2 is a kind of flow chart of another implementation method of intelligent home furnishing control method of the invention.
A kind of terminal management method of the present invention is applied to server, can be applied to smart home field, and the method includes:
Step S201:Receive the first operational order that first terminal sends.
Specifically, server reception first terminal passes through the first behaviour that the modes such as phone, short message, webpage send
Instruct, first operational order is used to indicate to perform operation object the first operation, for example, the first operation
The instruction closed for first terminal control television set is instructed, then operation object is television set, the first operation is to close
Close television set.First operational order includes the identification code of first terminal and the identification code of operation object, its
In, the identification code of first terminal is used to recognize first terminal, and the identification code of the first terminal can be first whole
No. ID of end, when first terminal is mobile phone, the identification code of first terminal can also be phone number;Operation
The identification code of object is used to recognize the execution object of the first operation, and the identification code of operation object can be intelligent family
Occupy No. ID of equipment, or the address of server;Operation object can be that intelligent home device can also
It is server, such as, operation object can be first terminal control television set for the instruction of intelligent home device
The instruction of closing, operation object can add or delete smart home in database for the instruction of server
Equipment, or add or delete user terminal and change the instruction of the operations such as the extent of competence of user terminal.
Step S202:Corresponding relation according to host ID in database and extent of competence obtains first terminal
Corresponding extent of competence.
Specifically, can in advance to store host ID in the database of server corresponding with extent of competence
Relation, the extent of competence can include operating the authority of each operation object, and server is according to first terminal
Host ID power corresponding with the corresponding relation acquisition first terminal of extent of competence in identification code and database
Limit scope.For example, the extent of competence of first terminal include manipulation Set Top Box, intelligent curtain, intelligent air condition,
The authority of each smart lock, intelligent lamp etc. in family, can also set first terminal and manipulate each smart home
The specific authority of equipment, for example, first terminal can only operate Set Top Box to watch partial TV programs, can only control
The switch of air-conditioning processed and temperature of air-conditioning etc. can not be adjusted, it is possible to use numeral and/or alpha code user terminal
Operation indicated by the operational order of transmission, such as A01 represent that television set is opened, and A02 represents TV office
Close, B01 represents that curtain is opened, it is assumed that the corresponding extent of competence of identification code of first terminal includes:A01、
A02, B01, first terminal can be sent to server by modes such as phone, short message or networks and include A01
Control instruction, the control instruction also carries the identification code of first terminal, and server is according to first terminal
Host ID power corresponding with the corresponding relation acquisition first terminal of extent of competence in identification code and database
Limit scope, then step S203 is performed, check A01 whether within the corresponding extent of competence of first terminal.
Step S203:Check the first operational order whether within the corresponding extent of competence of first terminal.
Specifically, after server acquisition first terminal corresponding extent of competence, checking that the first operational order is
It is no within the corresponding extent of competence of first terminal, if it is, performing step S204;Otherwise, first eventually
Authority of the end without the first operation for indicating the operation object, server performs step S208.
It should be noted that extent of competence can also include time authority, the time authority can limit first
The significant response time of operational order, step S203 is specially:Check whether current time permits in time authority
Perhaps within the scope of, and whether the first operational order is within the corresponding extent of competence of first terminal;If all
During to be, then step S204 is performed.For example, first terminal only has between 18 points to 22 points opens electricity
Depending on the authority of machine, when the first operational order that first terminal sends is opened for indication TV machine, if currently
Time between 18 points to 22 points, such as 19 points, then current time time authority permission within the scope of,
Judge again first terminal send indication TV machine open instruction within the corresponding extent of competence of first terminal,
When judged result is all to be, step S204 is just then performed, otherwise server performs step S208.
It should be noted that time authority can have corresponding relation with the identification code of each terminal in database,
For example, the time authority of all of operational order of first terminal is 15 days to 2015 11 November in 2015
The moon 16;Time authority can also have corresponding relation with the operational order of each terminal in database, for example,
The time authority that second terminal opens the operational order of television set is 19 points to 21 points, the behaviour of closing television machine
The time authority that work is instructed is 1 point to 24 points.
Step S204:Judge moment T1To moment T0Inside whether receive and respond the second of second terminal transmission
Operational order.
Specifically, server may be in T of a certain moment before1To current time T0Time period in have responded to
Other-end, such as second terminal, the second operational order of transmission, the second operational order are used to indicate to behaviour
Make object and perform the second operation, wherein, the operation object of the first operational order and the second operational order is identical,
That is the first operational order and the second operational order all identification codes comprising identical operation object.Work as judged result
During to be, step 205 or step S206 are performed;When judged result is no, illustrate there is no user's end now
End is controlled to the operation object, and now server responds the first operational order.
It should be noted that the first operation and the second operation can be able to be with difference, such as the first operational order
Indication TV office closes, and the second operational order can indicate television set to open.T0It is current time, T1For
T0Front distance T0The moment of preset duration, the preset duration is provided as 5 minutes, 8 minutes or 10
Minute etc., the present invention is not restricted.
Step S205:According to the pass corresponding with the Permission Levels of each operation object of host ID in database
System obtains the Permission Levels of first terminal respective operations object.
Specifically, host ID can be in advance stored in the database of server with each operation object
The corresponding relation of Permission Levels, for example, can set Permission Levels is divided into 5 grades, respectively 1 grade, 2
Level, 3 grades, 4 grades and 5 grades, it is assumed that first terminal correspondence television set Permission Levels be 3 grades, second terminal
The Permission Levels of corresponding television set are 2 grades, then the Permission Levels of first terminal correspondence television set are higher than second
Terminal-pair answers the Permission Levels of television set, and the television set is manipulated when first terminal and second terminal send simultaneously
During control instruction, server response Permission Levels terminal higher, the i.e. manipulation of the first terminal transmission TV
The control instruction of machine.
It should be noted that same terminal-pair answers the Permission Levels of different intelligent home equipment can be with difference, example
Such as, the Permission Levels of first terminal correspondence television set are 3 grades, and the Permission Levels of corresponding refrigerator are 2 grades.
The corresponding relation of terminal and intelligent home device is stored in the database of server.
Also, it should be noted that step S205 can also be any before step S206 after step S201
Time performs.
Step S206:The Permission Levels for comparing first terminal respective operations object are corresponding with the second terminal for obtaining
The height of the Permission Levels of operation object.
Specifically, when the judged result of step S204 is to be, i.e., in moment T1To moment T0Server
The second operational order of second terminal transmission is received and responds, second operational order includes, second terminal
The identification code of identification code and operation object, for indicating to perform operation object the second operation, wherein, the
The operation object of one operational order and the second operational order is identical, i.e. the first operational order and the second operational order
All include the identification code of identical operation object.Host ID is operated with each in server based on data storehouse
The corresponding relation of the Permission Levels of object obtains the Permission Levels of second terminal respective operations object, then compares the
One terminal-pair answers the height of the Permission Levels of operation object and the Permission Levels of second terminal respective operations object.
For example, when the second operational order for television set is opened, now television set is in open mode, it is assumed that first eventually
It 3 is 2 with the Permission Levels of second terminal respective operations object that the Permission Levels for holding respective operations object are, then the
One terminal-pair answers the Permission Levels of operation object higher than the Permission Levels of second terminal respective operations object.When
One terminal-pair answer the Permission Levels of operation object higher than second terminal respective operations object Permission Levels when, then
Perform step S207;When the Permission Levels of first terminal respective operations object are less than the second terminal correspondence for obtaining
The Permission Levels of operation object, then perform step S208;When the Permission Levels of first terminal respective operations object
Equal to the second terminal respective operations object for obtaining Permission Levels when, perform step S209.
Step S207:Respond the first operational order.
Specifically, server responds the first operational order, the operation object for controlling first operational order to indicate
First is performed to operate.
Step S208:It is not responding to the first operational order.
Specifically, server is not responding to the first operational order, at the operation object that first operational order is indicated
In former working condition.
Step S209:Obtain first terminal and second terminal arrives the range information of operation object respectively, and compare
Whether first terminal is less than the distance with second terminal to operation object to the distance of operation object.
When the Permission Levels of first terminal respective operations object are equal to the authority level of second terminal respective operations object
When other, the positional information of first terminal, second terminal and operation object is obtained, the position letter according to them
Breath calculates them and manipulates the distance between object.When the distance of first terminal to operation object is whole less than second
Hold operation object apart from when, then perform step S207;When first terminal is not small with the distance of manipulation object
In second terminal and manipulation object apart from when, then perform step S208.
In the present embodiment, server receive first terminal send for indicate to operation object perform first
First operational order of operation, the corresponding relation according to host ID in database and extent of competence obtains the
The corresponding extent of competence of one terminal, and check the first operational order whether in the corresponding extent of competence of first terminal
Within, if it is, whether received before judging current time again and respond second terminal transmission for indicating
The second operational order of the second operation is performed to same operation object, when judged result is to be, according to data
Host ID obtains first terminal to that should grasp with the corresponding relation of the Permission Levels of each operation object in storehouse
Make the Permission Levels of object, compare the Permission Levels and the second terminal for obtaining of first terminal respective operations object
The height of the Permission Levels of respective operations object, if the Permission Levels of first terminal respective operations object are higher,
Then respond the first operational order;It is relatively low, then it is not responding to the first operational order;It is equal, then further compare the
Whether one terminal is less than to the distance of operation object and second terminal is to the distance of operation object, works as first terminal
To operation object it is in small distance when, respond the first operational order, otherwise, be not responding to the first operational order.
The confusion of intelligent home device control can be avoided by the above method, realizes that user terminal sets to smart home
Standby differentiated control, improves Consumer's Experience.
And, the extent of competence also includes time authority, further limits effectively using for each user terminal
Time, management of the optimization server to user terminal in smart home.
Fig. 3 is referred to, Fig. 3 is a kind of structural representation of the implementation method of intelligent home control device one of the invention.
A kind of terminal management apparatus of the present invention are applied to server, can be applied to smart home field, the terminal management
Device 30 includes:Receiving unit 301, acquiring unit 302, judging unit 303, comparing unit 304 and
Execution unit 305, wherein,
Receiving unit 301, the first operational order for receiving first terminal transmission;First operational order
The identification code of identification code and operation object including the first terminal, for indicating to the operation object
First is performed to operate;
Acquiring unit 302, for the Permission Levels according to host ID in database and each operation object
Corresponding relation obtains the Permission Levels of the first terminal correspondence operation object;
Judging unit 303, for judging moment T1To moment T0Inside whether receive and respond second terminal transmission
The second operational order, second operational order be used for indicate to the operation object perform second operate;
The T0It is current time, the T1It is the T0Front distance described in T0The moment of preset duration;
Comparing unit 304, for when judged result is to be, then the first terminal to correspond to the operation
The height of the Permission Levels of the Permission Levels of the object operation object corresponding with the second terminal for obtaining;
Execution unit 305, if being higher than to obtain for the Permission Levels of the first terminal correspondence operation object
The Permission Levels of the second terminal correspondence operation object for taking, then respond first operational order.
Alternatively, the execution unit 305 is additionally operable to, if the first terminal correspondence operation object
Permission Levels of the Permission Levels less than the second terminal correspondence operation object for obtaining, then be not responding to
First operational order.
Alternatively, the execution unit 305 is specifically for if the operation of first terminal correspondence is right
The Permission Levels of elephant are equal to the Permission Levels of the second terminal correspondence operation object for obtaining,
Respond first operational order;Or, obtain the first terminal and the second terminal is arrived respectively
The range information of the operation object, when the distance of the first terminal to the operation object is less than described the
Two terminals to the operation object apart from when, respond first operational order.
Alternatively, the execution unit 305 is additionally operable to, and when judged result is no, then responds described first
Operational order.
It should be noted that receiving unit 301, acquiring unit in terminal management apparatus in the embodiment of the present invention
302nd, the function of judging unit 303, comparing unit 304 and execution unit 305 can be according to above method reality
The method applied in example is implemented, and it implements the associated description that process is referred to above method embodiment,
Here is omitted.
Fig. 4 is referred to, Fig. 4 is a kind of structural representation of another implementation method of intelligent home control device of the invention
Figure.A kind of intelligent home control device of the present invention is applied to server, can be applied to smart home field, should
Intelligent home control device 30 also includes:Receiving unit 301, acquiring unit 302, judging unit 303, ratio
Compared with unit 304, execution unit 305 and unit 306 is checked, wherein,
Receiving unit 301, acquiring unit 302, judging unit 303, comparing unit 304 and execution unit
305 function can be found in the associated description in Fig. 3.
Alternatively, acquiring unit 302 is additionally operable to, and the first operation that the first terminal sends is received described
After instruction, judgement moment T1To moment T0Inside whether receive and respond the second behaviour of second terminal transmission
Before instructing, the corresponding relation according to host ID in the database and extent of competence obtains described the
The corresponding extent of competence of one terminal;
The intelligent home control device 30 also includes:
Unit 306 is checked, for checking first operational order whether in the corresponding authority of the first terminal
Within the scope of;
The execution unit 305 is additionally operable to, and when result is checked to be, then performs judgement moment T1Arrive
Moment T0Inside whether receive and respond the second operational order of second terminal transmission.
Alternatively, the extent of competence also include time authority, it is described check unit 306 specifically for:
Whether current time is checked within the scope of time authority permission, and first operational order
Whether within the corresponding extent of competence of the first terminal;The execution unit 305 is additionally operable to, if looked into
When seeing result all to be, then judgement moment T is performed1To moment T0Inside whether receive and respond second terminal
The step of the second operational order for sending.
It should be noted that receiving unit 301 in intelligent home control device in the embodiment of the present invention, obtaining
Unit 302, judging unit 303, comparing unit 304, execution unit 305 and check the work(of unit 306
Be able to can be implemented according to the method in above method embodiment, it implements process and is referred to above-mentioned side
The associated description of method embodiment, here is omitted.
Fig. 5 is referred to, Fig. 5 is a kind of structural representation of the implementation method of intelligent home control system one of the invention.
The intelligent home control system, including at least one terminal 51, at least one operation object 52, server 53,
Wherein, the server 53 includes the intelligent home control device 30 described in Fig. 4 and Fig. 5, and terminal can be
Mobile phone, panel computer etc., operation object can be server 53 or intelligent home device, such as TV, electricity
Refrigerator, washing machine, intelligent curtain, water heater, intelligent lamp etc..
It should be noted that terminal 51, operation object in intelligent home control system in the embodiment of the present invention
52, the function of server 53 can be implemented according to the method in above method embodiment, and it was implemented
Journey is referred to the associated description of above method embodiment, and here is omitted.
In sum, server receive first terminal send for indicate to operation object perform first operate
The first operational order, it is corresponding with the Permission Levels of each operation object according to host ID in database
Relation acquisition first terminal to should operation object Permission Levels, then whether receive before judging current time
And respond second terminal transmission for indicate to same operation object perform second operation the second operational order,
When judged result is to be, then compare the Permission Levels of first terminal respective operations object with second for obtaining eventually
Hold the height of the Permission Levels of respective operations object;If the authority level of the first terminal correspondence operation object
It is not higher, then respond the first operational order.The mixed of intelligent home device control can be avoided by the above method
Disorderly, differentiated control of the user terminal to intelligent home device is realized, Consumer's Experience is improved.
In addition, server can also be obtained according to the corresponding relation of host ID in database and extent of competence
The corresponding extent of competence of first terminal, and check the first operational order whether in the corresponding authority model of first terminal
Within enclosing, rights management can also be carried out to each user terminal;And, the extent of competence also includes the time
Authority, further limits the effective storage life of each user terminal, and optimization server in smart home to using
The management of family terminal.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method,
Computer program be can be by instruct the hardware of correlation to complete, described program can be stored in a calculating
In machine read/write memory medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.
Wherein, described storage medium can for magnetic disc, CD, read-only memory (Read-Only Memory,
) or random access memory (Random Access Memory, RAM) etc. ROM.
Above disclosed is only a kind of preferred embodiment of the invention, can not limit this hair with this certainly
Bright interest field, one of ordinary skill in the art will appreciate that realizing all or part of stream of above-described embodiment
Journey, and the equivalent variations made according to the claims in the present invention, still fall within the covered scope of invention.