The method controlled for equipment and device
Technical field
The invention belongs to intelligent appliance field, particularly relate to a kind of method for equipment control and device.
Background technology
The development of Smart Home/household electrical appliances and the rise of cloud computing/service, make user can access cloud service platform by Intelligent mobile equipments such as mobile phones, long-range Smart Home/home appliance to be controlled, greatly simplify the life of people, improve quality of life.In family, each member can carry out control and management to the intelligent appliance/home equipment in family in the intelligent mobile terminal equipment of oneself.Generally, each user can log in the account on Cloud Server, then carries out control and management to intelligent appliance/home equipment.
Prior art as depicted in figs. 1 and 2.The mobile terminal of user runs the application program controlling household electrical appliances, user runs this application program and logs in.Just can enter the control page of household electrical appliances after logging in, user clicks corresponding control knob and controls household electrical appliances.First control command is sent to cloud platform from mobile terminal, is sent on AP (AccessPoint, the WAP)/gateway in subscriber household, then sends to home appliance by AP/ gateway by cloud platform.In like manner, relevant response message or the status message of household electrical appliances feed back in the home wiring control application program of mobile terminal along contrary direction.If user is positioned at outside family, GPRS (general packet radio service technology can be passed through, GeneralPacketRadioService)/3G (G mobile communication, the modes such as 3rd-Generation)/WIFI (wireless local area network technology, WirelessFidelity) access cloud Platform Server.As shown in Figure 1, when adopting WIFI, AP or gateway (AP/ gateway here refers to outside family) is first linked into, through AP or gateway accessing cloud Platform Server.If in user is in, user can directly access cloud Platform Server by the mode of GPRS/3G, as shown in Figure 1; Also can select the AP/ gateway first accessed by modes such as WIFI in family, access cloud service platform by AP/ gateway, as shown in Figure 2.Control command to be got home interior AP/ gateway from mobile terminal, and then to cloud Platform Server, and then get back to family AP/ gateway, finally arrive home appliance.
Prior art only considers that a user controls the scene of household electrical appliances, but often in practical application scene, the account that kinsfolk can log in oneself controls household electrical appliances, and that is prior art does not consider the scene of multi-user.
In multi-user scene, there will be following situation: user A and user B all can control air-conditioning equipment, and air-conditioning is set to 26 degree by user A, but user B feels too cold, and air-conditioning is set to again 28 degree.This time, user A thought that inner temperature of room is too high, temperature was recalled to again.In addition, in some cases, at home, and user B is in unit, therefore needs to coordinate the control of multi-user to household electrical appliances by technological means for possible user A.
Summary of the invention
In view of this, an object of the present invention is to propose a kind of method and apparatus controlled for equipment, pass through the proposed coordination system and solve under multi-user scene the collision problem that produces is controlled to intelligent appliance.There is a basic understanding some aspects in order to the embodiment to disclosure, shown below is simple summary.This summarized section is not extensive overview, neither determine key/critical component or describe the protection domain of these embodiments.Its sole purpose presents some concepts by simple form, in this, as the preamble of following detailed description.
In some optional embodiments, a kind of method controlled for equipment, comprising: receive the operation control message to target device that first terminal is sent; More described first terminal and the current priority enjoying the second terminal of control to described target device; According to the comparative result of the priority of described first terminal and described second terminal, between described first terminal and described second terminal, distribute the control of described target device.
Another object of the present invention proposes a kind of device controlled for equipment.
In some optional embodiments, a kind of device controlled for equipment, is characterized in that, comprising: the first receiver module, for receiving the operation control message of first terminal to target device; First judge module, for more described first terminal and the current priority enjoying the second terminal of control to described target device; Distribution module, for the comparative result of the priority according to described first terminal and described second terminal, distributes the control of described target device between described first terminal and described second terminal.
Technique effect in some optional embodiments comprises: solve the collision problem produced when multi-user controls household electrical appliances, can pass through the scene that the proposed coordination system solves multi-user's home wiring control.
In order to above-mentioned and relevant object, will describe in detail and the feature particularly pointed out in the claims after one or more embodiment comprises.Explanation below and accompanying drawing describe some illustrative aspects in detail, and its instruction is only some modes in the utilizable various mode of principle of each embodiment.Other benefit and novel features become obvious by considering by reference to the accompanying drawings along with detailed description below, and the disclosed embodiments will comprise all these aspects and theirs is equivalent.
figure of description
Fig. 1 is the process flow diagram one of the method for equipment control of prior art;
Fig. 2 is the flowchart 2 of the method for equipment control of prior art;
Fig. 3 is the process flow diagram for the method for equipment control in illustrative embodiment more of the present invention;
Fig. 4 is the process flow diagram for the method for equipment control in embodiments of the invention 1;
Fig. 5 is the process flow diagram for the method for equipment control in embodiments of the invention 2;
Fig. 6 is the structural representation for the device of equipment control in illustrative embodiment more of the present invention;
Fig. 7 is the process flow diagram for the method for equipment control in embodiments of the invention 3.
Embodiment
The following description and drawings illustrate specific embodiment of the invention scheme fully, to enable those skilled in the art to put into practice them.Other embodiments can comprise structure, logic, electric, process and other change.Embodiment only represents possible change.Unless explicitly requested, otherwise independent parts and function are optional, and the order of operation can change.The part of some embodiments and feature can be included in or replace part and the feature of other embodiments.The scope of embodiment of the present invention comprises the gamut of claims, and all obtainable equivalent of claims.In this article, these embodiments of the present invention can be represented with term " invention " individually or always, this is only used to conveniently, and if in fact disclose the invention more than, be not the scope that automatically will limit this application is any single invention or inventive concept.
Term " AP ": the abbreviation of AccessPoint, i.e. access points, is equivalent to the bridge that is connected with gauze and wireless network, and its Main Function each wireless network clients is connected together, then by wireless network clients access network based on ethernet.
As shown in Figure 3, be for the process flow diagram of method that equipment controls in illustrative embodiment more of the present invention.
In some illustrative embodiment, this method being used for equipment control comprises:
Step S301: receive first terminal to the operation control message of target device;
Step S302: compare first terminal and the current priority enjoying the second terminal of control to described target device;
Step S303: according to the comparative result of the priority of first terminal and the second terminal, the control of point described target device of pairing between first terminal and the second terminal.
In some illustrative embodiment, the method solves the scene of multi-user's home wiring control by the priority of comparison terminal.The priority of first terminal and the priority of the second terminal can be determined according to the different attribute of user account.Attribute can be static attribute, as the priority of configured in advance; Also can be dynamic attribute, position etc. as current in terminal, judges the current location of terminal according to GPRS information etc. before comparing this priority, the current location of terminal from target device more close to then priority is higher.
Step S303 can have multiple implementation, illustrates below with specific embodiment.
Embodiment 1
As shown in Figure 4, be for the process flow diagram of method that equipment controls in embodiments of the invention 1.
In some illustrative embodiment, this is used for the method that equipment controls, and comprising:
Step S401: receive the operation control message to target device that first terminal is sent;
Step S403: compare first terminal and the current priority enjoying the second terminal of control to this target device;
Step S404: when first terminal has higher priority, be given to first terminal by the control of target device.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step S406: when the priority of first terminal is equal to or less than the priority of the second terminal, step is through consultation given to first terminal by the control of target device.
In some illustrative embodiment, the step of negotiation comprises:
Step S4061: that sends according to first terminal sends to the operation control message of target device the request transferred the possession of the control of target device to the second terminal;
Step S4062: the response message for confirming to agree to transfer control receiving the second terminal feedback.
In some illustrative embodiment, the method proposes by step S406 the scene that the coordination system solves multi-user's home wiring control.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step S405: when the priority of first terminal is equal to or less than the priority of the second terminal, keeps the second terminal to the control of target device.
In some illustrative embodiment, the method by step S405, under the priority being set in first terminal is equal to or less than the scene of the priority of the second terminal, no longer shifts control.Can notify that the control of first terminal to target device obtains unsuccessfully by step S407 after step S405.
In some illustrative embodiment, when the priority of first terminal is equal to or less than the priority of the second terminal, the request message that first terminal sends is transmitted to the second terminal, as received the response message for confirming not agree to transfer control of the second terminal feedback, then keep the second terminal to the control of target device.Also can omit this step, namely directly keep the second terminal to the control of target device, do not need wait second terminal feedback do not agree to the response message transferred the possession of after determine the control of maintenance second terminal again.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step S407: send response message to first terminal, inform whether first terminal successfully obtains control.
In some illustrative embodiment, by step S407, the method informs whether first terminal obtains the control to target device.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step S408: after being given to first terminal to the control of target device, sends to target device by operation control message, with the control making target device accept first terminal.
In some illustrative embodiment, the method makes first terminal control objectives equipment by step S408.
In some illustrative embodiment, this is used for the method that equipment controls, and after step S401, also comprises:
Step S402: compare first terminal to the operation of target device control with receive that first terminal sends whether identical to the last control of the second terminal to target device before the operation control message of target device; If different, then carry out the priority that step S403 compares two terminals.
In some illustrative embodiment, the method by step S402, before relatively priority, when first terminal is identical with the control of the second terminal to target device, does not need to carry out the step such as follow-up comparison priority, transfer control, saves the time.
Embodiment 2
As shown in Figure 5, be for the flowchart 2 of method that equipment controls in illustrative embodiment more of the present invention.
In some illustrative embodiment, this is used for the method that equipment controls, and comprising:
Step S501: receive the operation control message to target device that first terminal is sent;
Step S502: compare first terminal and the current priority enjoying the second terminal of control to this target device;
Step S503: when first terminal and the second terminal have identical priority, be given to first terminal by the control of target device.
In some illustrative embodiment, the method solves the scene of multi-user's home wiring control by the priority of comparison terminal.Different from the method for embodiment 1, in embodiment 2, when first terminal and the second terminal have identical priority, shift control no longer through consultation, but directly by control right transfer to first terminal.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step 506: when priority lower than the second terminal of the priority of first terminal, step is through consultation given to first terminal by the control of target device.
In some illustrative embodiment, the step S506 of negotiation comprises:
Step S5061: the request message that first terminal sends is transmitted to the second terminal;
Step S5062: the response message for confirming to agree to transfer control receiving the second terminal feedback.
In some illustrative embodiment, the method proposes by step S506 the scene that the coordination system solves multi-user's home wiring control.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step S505: when priority lower than the second terminal of the priority of first terminal, keep the second terminal to the control of target device.
In some illustrative embodiment, the method by step S505, under the scene of the priority being set in first terminal lower than the priority of the second terminal, no longer shifts control.Can notify that the control of first terminal to target device obtains unsuccessfully by step S507 after step S505.
In some illustrative embodiment, can also comprise before maintenance second terminal is to the process of the control of target device: the request message that first terminal sends is transmitted to the second terminal, and receive the response message for confirming not agree to transfer control of the second terminal feedback.Also can omit this step, namely directly keep the second terminal to the control of target device, do not need wait second terminal feedback do not agree to the response message transferred the possession of after determine the control of maintenance second terminal again.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step S507: send response message to first terminal, inform whether first terminal successfully obtains control.
In some illustrative embodiment, by step S507, the method informs whether first terminal obtains the control to target device.
In some illustrative embodiment, this is used for the method that equipment controls, and also comprises:
Step S508: after being given to first terminal to the control of target device, sends to target device by operation control message, with the control making target device accept first terminal.
In some illustrative embodiment, the method makes first terminal control objectives equipment by step S208.
In some illustrative embodiment, this is used for the method that equipment controls, and after step S501, also comprises:
Step S502: compare first terminal to the operation of target device control with receive that first terminal sends whether identical to the last control of the second terminal to target device before the operation control message of target device; If different, then compare the priority of two terminals.
In some illustrative embodiment, the method by step S502, before relatively priority, when first terminal is identical with the control of the second terminal to target device, does not need to carry out the step such as follow-up comparison priority, transfer control, saves the time.
In some illustrative embodiment, the method for embodiment 1 and 2 is also applicable to multiple terminal and sends request situation to the message that the operation of target device controls simultaneously.In this case can judge the priority of each terminal as stated above, the control of target device is distributed to the highest terminal of priority; Also method through consultation control can be distributed to the terminal of consulting rear acquisition control.
As shown in Figure 6, be for the structural representation of device that equipment controls in illustrative embodiment more of the present invention.
In some illustrative embodiment, this is used for the device that equipment controls, and comprising:
First receiver module 601, for receiving the operation control message to target device that first terminal is sent;
First judge module 602, for comparing first terminal and the current priority enjoying the second terminal of control to target device;
Distribution module 603, for the comparative result of the priority according to first terminal and the second terminal, distributes the control of target device between first terminal and the second terminal.
In some illustrative embodiment, this device solves the scene of multi-user's home wiring control by the priority of comparison terminal.The priority of first terminal and the priority of the second terminal can be determined according to the different attribute of user account.Attribute can be static attribute, as the priority of configured in advance; Also can be dynamic attribute, position etc. as current in terminal, judges the current location of terminal according to GPRS information etc. before comparing this priority, the current location of terminal from target device more close to then priority is higher.
When this device is applicable to embodiment 1, distribution module 603 is for having higher priority during when first terminal, be given to first terminal by the control of target device; And for when the priority of first terminal is equal to or less than the priority of the second terminal, hold consultation with the second terminal, according to the control of negotiation result point pairing target device between first terminal and the second terminal; And for when the priority of first terminal is equal to or less than the priority of the second terminal, keep the second terminal to the control of target device.
When this device is applicable to embodiment 2, distribution module 603, for when first terminal and the second terminal have identical priority, is given to first terminal by the control of target device; And for when priority lower than the second terminal of the priority of first terminal, hold consultation with the second terminal, according to the control of negotiation result point pairing target device between first terminal and the second terminal; And for when priority lower than the second terminal of the priority of first terminal, keep the second terminal to the control of target device.
In some illustrative embodiment, distribution module 603 solves the scene of multi-user's home wiring control by proposing the coordination system.
In some illustrative embodiment, distribution module 603 comprises:
First forwarding module 6031, sends to the operation control message of target device the request transferred the possession of the control of target device for what send according to first terminal to the second terminal;
Second receiver module 6032, for receive the second terminal feedback agree to transfer the possession of response message to the control of target device for being confirmed whether.
Response message as the second terminal feedback received represents agrees to that then distribution module 603 is for being given to first terminal by the control of target device by the control right transfer of target device to first terminal; Response message as the second terminal feedback received represents different meaning by the control right transfer of target device to first terminal, then distribution module 603 is for retaining the control of the second terminal to target device.
In some illustrative embodiment, this device also comprises:
Notification module 604, between first terminal and the second terminal, distribute target device control after, whether first terminal is obtained first terminal is informed to the control of target device.
In some illustrative embodiment, this device feeds back the response of the request message that the second terminal sends for first terminal to first terminal by notification module 604, to inform the control of first terminal whether equipment.
In some illustrative embodiment, this device also comprises:
Second forwarding module 605, for by after being given to first terminal to the control of target device, sends to target device by operation control message.
In some illustrative embodiment, this device makes first terminal control objectives equipment by the second forwarding module 605.
In some illustrative embodiment, this device also comprises:
Comparison module 606, for compare first terminal to the operation of target device control with receive that first terminal sends whether identical to the last control of the second terminal to target device before the operation control message of target device; If different, then compare the priority of two terminals.
In some illustrative embodiment, this device by comparison module 606, before relatively priority, when first terminal is identical with the control of the second terminal to target device, does not need to carry out the step such as follow-up comparison priority, transfer control, saves the time.
Embodiment 3
As shown in Figure 7, be for the process flow diagram of method that equipment controls in illustrative embodiment more of the present invention.
In embodiment 3, the device controlled for equipment is cloud Platform Server, and first terminal is terminal A, and the second terminal is terminal B, and equipment is home appliance.
Step S701: start;
Step S702: configuration cloud Platform Server;
Cloud Platform Server supports the registration of multiple user and the control to home appliance, and namely cloud Platform Server can allow to be configured to multi-user mode.Can be to perform the methods of the present invention under multi-user mode.Different user account has different attributes.Attribute can be dynamic attribute, as the priority of configured in advance; Also can be dynamic attribute, position etc. as current in user.Obtain user's present bit and be equipped with various ways, such as: a.GPS; B. user is by the AP/ gateway accessing cloud Platform Server in family, can judge that user is arranged in house.Can there is the user of keeper's identity in numerous user, have and arrange cloud Platform Server support multi-user mode, also can be the ability that each user arranges priority etc.The mode of control terminal access cloud service can be by modes such as GPRS/3G/WIFI.Application scenarios described above, does not limit its necessity.
Step S703: terminal A sends home wiring control order to cloud Platform Server;
Step S704: cloud Platform Server judges that whether these household electrical appliances are by other terminal control; If do not controlled by other-end, then carry out step S505 ~ step S508; If controlled by other-end, then carry out step S709;
In this step, because cloud Platform Server can the action of record controls terminal control household electrical appliances and parameter, therefore judgement can be performed.
If these household electrical appliances are not controlled by other-end, then carry out following steps:
The action of step S705: cloud Platform Server record terminal A control household electrical appliances and correlation parameter;
Step S706: cloud Platform Server is to the control command of household electrical appliances transmitting terminal A;
Step S707: household electrical appliances receive control command and perform;
Step S708: cloud Platform Server returns to terminal A and controls successfully response;
Step S722: terminate.
If these household electrical appliances are controlled by other-end, then carry out following steps:
Step S709: cloud Platform Server judge control command and correlation parameter whether consistent; If consistent, then carry out step S722 and terminate; If inconsistent, then carry out step S710;
This control command and correlation parameter refer to the home appliance kind and model that relate in order, to the operation of home appliance, and the sequence of operation etc. to different home appliance.
Step S710: cloud Platform Server judges the priority of control terminal A and B; If the priority of terminal A is greater than the priority of terminal B, then carry out step S711, if the priority of terminal A is not more than the priority of terminal B, then carry out step S712;
In this step, what mention in the relatively namely step S702 of priority can be the comparison of dynamic attribute, and also can be the comparison of static attribute, for example, the control terminal in family should be higher than the control terminal priority outside family.
If the priority of terminal A is greater than the priority of terminal B, then carry out following steps:
Step S711: cloud platform sends notice to terminal B, informs that household electrical appliances are controlled by control terminal A; Then step S706 ~ S708 is carried out.
If the priority of terminal A is not more than the priority of terminal B, then carry out following steps:
Step S712: cloud platform sends notice to terminal A, informs that household electrical appliances are controlled by terminal B;
Step S713: terminal A sends request to cloud Platform Server, asks to obtain control from terminal A;
From step S713, terminal A sends scene from the request of control to terminal B is described, for the control of acquisition request home appliance.
Step S714: cloud Platform Server forwards this request to terminal B;
Whether step S715: terminal B agree to shift control; If terminal B agrees to, then carry out step S716; If terminal B does not agree to, then carry out step S720;
If terminal B agrees to, then carry out following steps:
Step S716: terminal B confirms to agree to transfer control to cloud Platform Server;
Step S717: cloud Platform Server forwards this approval command to A;
Step S718: terminal A initiates control command again; Or,
Step S718 ': cloud Platform Server directly performs the control request of terminal A;
Step S718 and step S718 ' is two kinds and optionally the control of home appliance will be given to the mode of terminal A, and can be that terminal A initiates request again, also can be that cloud Platform Server directly performs.
Step S719: cloud Platform Server returns to terminal A and controls successfully response;
Step S722: terminate.
If terminal B does not agree to shift control, then carry out following steps:
Step S720: terminal B confirms not agree to cloud Platform Server;
Step S721: cloud Platform Server sends not agree to notify to terminal A;
Step S722: terminate.
Those skilled in the art it is also understood that various illustrative box, module, circuit and the algorithm steps combining embodiment herein and describe all can be embodied as electronic hardware, computer software or its combination.In order to the interchangeability between hardware and software is clearly described, all carry out usually describing around its function to various illustrative parts, frame, module, circuit and step above.Be embodied as hardware as this function or be embodied as software, the design constraint depending on specific application and whole system is applied.Those skilled in the art for each application-specific, can realize described function in the mode of accommodation, but, thisly realize decision-making and should not be construed as and deviate from protection domain of the present disclosure.