Detailed Description
In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be described in further detail with reference to the attached drawings, the described embodiments should not be considered as limiting the present application, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, so as to enable the embodiments of the application described herein to be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
The following describes embodiments of a control method, a control device, and an apparatus with reference to a network architecture diagram shown in fig. 1A.
As shown in fig. 1A, the network architecture includes a home device 101, aserver 102, and a terminal 103. Communication connections are established between the home appliance 101 and theserver 102, and between the terminal 103 and theserver 102. And the terminal 103 is installed with an Application (App) capable of controlling the home appliance. The user can add the identification of the controlled household appliance through the App, wherein the identification of the household appliance is convenient for the user to select a control object, such as a washing machine, an electric cooker or an air conditioner and the like; different keys on each household appliance are further included on the display interface of the App, so that a user can select corresponding control operation based on own requirements, for example, the user needs to wash clothes currently, a washing machine can be selected from the identification of the household appliances in the App first, then the washing machine is selected to "i want to wash clothes", a washing request is generated and sent to theserver 102, and the washing request is received by theserver 102, so that the washing machine is controlled to start washing clothes.
Based on the network architecture, in the embodiment of the application, when a user requests to control a household appliance through a terminal, a server can firstly judge whether the terminal has the authority to control the household appliance, when the condition that the terminal does not have the authority to control the household appliance is determined, the server can send indication information to the terminal, so that the user can operate the household appliance through the indication information, further, the server can judge whether the operation of the user is correct or not by judging whether the operation information sent by the household appliance is matched with the indication information, when the condition that the operation information sent by the household appliance is matched with the indication information is determined, the server can grant the authority to the terminal to control the household appliance, and the terminal controls the household appliance according to the request.
The following describes embodiments of a control method, a control device, and an apparatus with reference to a network architecture diagram shown in fig. 1A.
An embodiment of the present application provides a control method, and fig. 1B is a flowchart illustrating an implementation of the control method provided in the embodiment of the present application, where as shown in fig. 1B, the method includes:
step S101: and receiving a first request sent by the terminal and used for controlling the first household appliance.
Here, step S101 may be implemented by a server, and in the embodiment of the present application, the server may refer to one server, or may be a server cluster, a cloud computing center, and the like, which are formed by a plurality of servers, and is not limited herein. The terminal may be a mobile terminal with wireless communication capability, such as a smart phone, a tablet computer, a notebook computer, or the like, or may be a desktop computer, or the like with computing function, which is not convenient for movement, and is not limited herein.
When the configuration of the internet of things between the first household appliance and the terminal is completed, the user can send a first request for controlling the first household appliance to the server through the terminal, so that the purpose of controlling the first household appliance is achieved through the terminal; for example, when the user has a request for washing clothes, a "i want to wash clothes" button may be clicked on the terminal to generate a request for controlling the washing machine, and the request for controlling the washing machine may be sent to the server.
Step S102: and determining whether the terminal has the control authority of the first household appliance or not based on the first request.
Here, step S102 may be implemented by a server. When the server receives a first request for controlling the first household appliance sent by the terminal, the traditional method is that the server directly controls the first household appliance based on the request when receiving the request for controlling the first household appliance.
However, in order to solve the problem of mismatching the home appliances of other users during distribution, in this embodiment, when the server receives the first request for controlling the first home appliance, it first determines whether the terminal sending the first request has the control authority of the first home appliance. Wherein, the control authority refers to the authority for controlling the first household appliance; the control authority may be a control authority of different durations, for example, a long-term control authority, or a timing control authority, where the timing may be a year or a quarter, or a half month or a week, and the like, and is not limited herein. Therefore, the method and the device can lay a foundation for checking whether the first household appliance is mismatched or not, and can improve the accuracy and pertinence of controlling the first household appliance.
It should be noted that, the first request sent by the terminal carries an identifier of the first household electrical appliance, an identifier of the terminal, and a control instruction for controlling the first household electrical appliance; wherein, the control instruction can be an instruction similar to 'I want to wash clothes' or 'I want to cook' and the like.
Step S103: and determining that the terminal does not have the control authority, and sending first indication information for acquiring the control authority to the terminal.
Here, step S103 may be implemented by a server. The terminal does not have a control right, the terminal does not acquire the control right of the first household appliance newly accessed to the internet of things corresponding to the terminal, or the remaining time of the control right of the terminal is less than the working time of the first household appliance for executing one-time request, which is similar to washing clothes or cooking, and the limitation is not made here.
When the server determines that the terminal does not have the control authority, first indication information for acquiring the control authority is sent to the terminal, and the first indication information at least comprises an operation step for acquiring the control authority and is used for indicating a user to operate the first household appliance according to the operation step so as to generate first operation information.
When the server determines that the terminal has the control right, the server can directly control the first household appliance device based on the first request, and can further determine whether the remaining time of the control right is less than the working time of the first household appliance device for executing one request and is similar to the working time of washing clothes or cooking; and when determining that the remaining duration is less than the working duration, the server also sends first indication information for acquiring the control authority to the terminal.
Step S104: and determining that the acquired first operation information sent by the first household appliance is matched with the first indication information, granting the terminal control authority to control the first household appliance, and controlling the first household appliance according to the first request.
Here, step S104 may be implemented by a server. The method comprises the steps that after a server sends first indication information for obtaining control authority to a terminal, first operation information sent by first household electrical appliance equipment is obtained; the first operation information at least represents the corresponding operation executed by the user on the first household appliance based on the first indication information received by the terminal.
The server matches the first operation information with the first indication information after receiving the first operation information sent by the first household appliance, if the matching is successful, the server grants the control authority of the terminal for controlling the first household appliance, and controls the first household appliance to execute control operation similar to washing clothes or cooking based on the first request.
The method and the device have the advantages that the problem that the household appliances of other users are mismatched when the network is distributed and the problem that adverse effects are brought to other users are avoided by determining whether the terminal has the control authority or not before the terminal controls the household appliances is avoided; and when the server determines that the terminal does not have the control authority, determining whether to grant the control authority for controlling the first household appliance to the terminal according to the matching relation between the first indication information for sending and acquiring the control authority and the first operation information sent by the first household appliance, so that the accuracy and pertinence of controlling the household appliance by the terminal can be effectively improved, and the personal experience and satisfaction of a user can be effectively improved.
In some embodiments, after step S103, the following steps may also be performed:
step 21: and judging whether the first operation information sent by the first household appliance is received within a preset time length.
Here, if the first operation information is received within the preset time period, go to step 22; if the first operation information is not received within the preset time period, go to step 27.
The first operation information at least represents corresponding operation executed by a user on the first household appliance based on first indication information received by the terminal, and the first indication information at least comprises an operation step of acquiring control authority so as to indicate the user to operate the first household appliance according to the operation step, so that the first household appliance generates the first operation information based on the operation step of the user.
Step 22: and judging whether the first operation information is matched with the first indication information.
Here, the determining whether the first operation information matches the first indication information may be determining whether the first operation information is consistent with the first indication information, that is, determining whether the operation step in the first operation information is consistent with the operation step in the first indication information, and when it is determined that the operation step in the first operation information is consistent with the operation step in the first indication information, it indicates that the first operation information matches the first indication information, and then the process proceeds to step S103; otherwise, when it is determined that the operation step in the first operation information is not consistent with the operation step in the first indication information, it indicates that the first operation information is not consistent with the first indication information, and then the process proceeds to step 23.
Step 23: the operation times of the first household appliance are obtained.
Here, when the operation frequency of the first home appliance is obtained, the frequency of sending the first operation information by the first home appliance may be obtained, so as to determine whether to return notification information of failure in obtaining the control right to the terminal or to remind the terminal that the obtained first operation information is incorrect.
Step 24: and judging whether the operation times are less than or equal to a preset time threshold value or not.
Here, when it is determined that the number of operations is less than or equal to the number threshold, step 25 is entered; otherwise, it is determined that if the number of operations is greater than the number threshold, step 27 is entered.
Here, the server stores a preset number threshold, and the number threshold can ensure that the server can remind the terminal itself to obtain the operation information sent by the first household electrical appliance again when the currently obtained accumulated operation number is not greater than the number threshold, so as to improve the validity and the certainty of obtaining the control authority.
Step 25: and sending reminding information of the error first operation information acquired by the terminal to the terminal so as to remind a user corresponding to the terminal that the first operation information acquired by the user corresponding to the terminal is error, and reminding the user corresponding to the terminal that the first household appliance can be operated again according to the first indication information.
Here, the server may send the first indication information to the terminal again directly in addition to sending the first operation information error reminding information obtained by the server to the terminal, so as to inform the terminal that the first operation information corresponding to the user is incorrect, and instruct the user corresponding to the terminal to operate the first home appliance again according to the first indication information, thereby effectively improving the success rate of obtaining the control right by the terminal.
Step 26: and acquiring second operation information sent by the first household appliance equipment, and judging whether the second operation information is matched with the first indication information.
When the operation times are determined to be not more than the preset time threshold, the server can remind the terminal that the first operation information acquired by the terminal is wrong, and can acquire the operation information sent by the first household appliance again, and at the moment, a user corresponding to the terminal can operate the first household appliance again according to the first indication information and acquire second operation information sent by the first household appliance again; the second operation information at least represents the corresponding operation executed again on the first household appliance by the user based on the first indication information received by the terminal.
The server receives the second operation information within the preset time, and matches the second operation information with the first indication information again, that is, whether the operation step in the second operation information is consistent with the operation step in the first indication information is judged, if the operation step in the second operation information is consistent with the operation step in the first indication information, it indicates that the second operation information is matched with the first indication information, and at this time, it may also indicate that the terminal acquires the control authority of the first household appliance.
Step 27: and at least returning first notification information of failure in acquiring the control authority to the terminal.
The first notification information may also carry an identifier of the first home appliance.
Here, if the first operation information sent by the first home appliance is not acquired within the preset time length, the first notification information that the acquisition of the control authority fails and the identifier of the first home appliance that the terminal requests to control may also be returned to the terminal.
The server feeds back first notification information of failure in acquiring the control authority to the terminal, so that the purpose is to inform the terminal that the control authority of the first household appliance is failed to acquire, a first request for acquiring the control authority of the first household appliance cannot be sent to the server any more, meanwhile, the terminal is reminded of checking whether the configuration of the internet of things corresponding to the terminal is correct or not, and if the configuration of the internet of things is wrong (for example, the household appliances mismatched to other users) naturally, the control authority cannot be acquired, so that the accuracy and pertinence of the terminal in acquiring the control authority of the household appliances are enhanced, and the satisfaction degree of the user is increased.
When the server determines that the terminal does not have the control authority of the first household appliance and sends first indication information for acquiring the control authority to the terminal, the server can determine whether the server can acquire second operation information of the first household appliance again or not by executing the steps 21 to 27, and can grant notification information for successfully acquiring the control authority based on the matching relation between the second operation information and the first indication relation, so that the flexibility and the reliability for acquiring the control authority are increased, and when the server determines that the terminal cannot successfully acquire the control authority, the server can timely feed back the first notification information to the terminal to prevent the terminal from continuously sending a first request for acquiring the control authority, and simultaneously feed back the identification of the first household appliance to the terminal so that a user can check whether the configuration of the internet of things corresponding to the terminal is accurate or not, for example, the household appliances of other users are accessed in the internet of things, therefore, the pertinence and the effectiveness of the terminal for acquiring the control authority are enhanced.
In some embodiments, referring to fig. 2, after step S102, the following steps may also be performed:
step 31: and determining that the terminal has the control authority, and acquiring the remaining duration of the control authority.
Here, when the server determines that the terminal has the control authority of the first household appliance through detection, the server does not directly control the first household appliance based on the first request, but acquires the remaining duration of the control authority, so that a foundation is laid for subsequently determining whether to send first indication information for acquiring the control authority to the terminal.
Step 32: based on the first request, the working duration of the first household appliance is determined.
The working duration of the first home device is a duration required for executing the control command in the first request.
Here, when the first request is "i'm wash clothes" or "i'm cook rice", the operation time period of the first home appliance may be an operation time period for performing one wash clothes or cook rice.
Step 33: and determining that the remaining duration of the control authority is less than the working duration, and sending first indication information for acquiring the control authority to the terminal.
Step 34: and determining that the residual time of the control authority is greater than or equal to the working time, granting the control authority of the terminal to control the first household appliance, and controlling the first household appliance according to the first request.
When the server determines that the terminal has the control right of the first household appliance, the server executes the steps 31 to 34 to ensure whether the control right of the terminal can ensure that the first household appliance performs the normal working time similar to washing clothes or cooking once, and when the control right of the terminal is determined that the control right of the terminal cannot ensure that the first household appliance performs the normal working time similar to washing clothes or cooking once, the server sends first indication information for acquiring the control right to the terminal, so that the situation that the first household appliance suddenly works during the process of controlling the first household appliance to perform the washing clothes or cooking is avoided, and the terminal can more effectively and reliably control the first household appliance.
In some embodiments, referring to fig. 3, step S103 may be implemented by:
step S1031: and determining that the terminal does not have the control authority, and sending third notification information for selecting the authority duration to the terminal.
When the server determines that the terminal does not have the control right, third notification information is automatically sent to the terminal; wherein, the third notification information at least includes control authority of various different authority durations, such as: and controlling the authority duration of the first household appliance, the authority duration of a half month or a week for a long time, which is not limited herein.
Step S1032: and receiving selection information sent by the terminal, wherein the selection information at least comprises the authority duration selected by the terminal based on the third notification information.
Here, the selection information sent by the terminal may be the authority duration selected by the user according to the actual situation and the need, or the terminal may automatically and randomly select one authority duration, which is not limited herein.
Step S1033: and sending the first indication information corresponding to the authority duration selected by the terminal to the terminal.
The server acquires the authority duration carried in the selection information after receiving the selection information sent by the terminal, and sends the corresponding first indication information to the terminal according to the authority duration, so that the terminal operates according to the first indication information to acquire the control authority corresponding to the authority duration.
When the server determines that the terminal does not have the control authority of the first household appliance, the server can ensure that the terminal can select the authority duration of the control authority by executing the steps S1031 to S1033, and also ensure that the first indication information sent to the terminal by the server is specific to the authority duration selected by the terminal, so that the flexibility and pertinence of the terminal for obtaining the control authority are enhanced, and the satisfaction degree of a user can be improved.
In some embodiments, the server may receive a first request sent by the terminal for controlling the first home appliance, and may also receive a second request sent by the terminal for controlling another home appliance, where the another home appliance may also be one or more of a washing machine, a microwave oven, and a water heater, which is not limited herein.
When it is determined that the second household appliance newly joins the internet of things corresponding to the terminal and the terminal does not send a second request for acquiring the control authority of the second household appliance to the server, the following operations may be performed at this time:
sending second indication information to the terminal to indicate the terminal to acquire the control authority of the second household appliance; the second household appliance may also be one or more of a washing machine, an electric cooker, an air conditioner, and other household appliances, which are not limited herein.
The second indication information at least comprises an identifier of the second household appliance.
For the second household appliance newly added to the internet of things corresponding to the terminal, the second indication information is sent to the terminal to inform the terminal that the control authority of the second household appliance can be obtained firstly, the second household appliance can be directly controlled when needing to be controlled later, and the control authority is not obtained when needing to be controlled.
In some embodiments, the server may instruct the terminal to perform an operation of acquiring a control right when receiving a first request for controlling the first home appliance, which is sent by the terminal; and when the configuration of the internet of things between the terminal and each household appliance is finished and a request for controlling at least one household appliance sent by the terminal is not received, each control authority of the terminal is actively detected, so that the user can know the residual time of the control authority of each household appliance accessed to the internet of things in real time, and the user can further control each household appliance in real time through the terminal.
When the configuration of the internet of things between the terminal and each household appliance is completed and a request for controlling at least one household appliance sent by the terminal is not received, the following operations can be executed:
step 51: and acquiring the residual duration of each control authority possessed by the terminal.
Step 52: and determining that the remaining time length is less than a preset time length threshold value, and sending second notification information of the impending expiration of the control authority to the terminal.
The second notification information may at least include remaining time lengths corresponding to the control authorities to be expired and identifiers of the home appliance devices corresponding to the remaining time lengths. In another possible implementation manner, the second notification information may further include at least a remaining duration corresponding to each control authority and an identifier of the home appliance device corresponding to the remaining duration.
When the server detects that the configuration of the internet of things between the terminal and each household appliance is completed, even if a request for controlling the household appliance sent by the terminal is not received, the server can feed back the identification of the household appliance with the control authority to be expired to the terminal through the relationship between the automatically acquired residual duration of each control authority and the preset duration threshold, so that the continuity of the control authority acquired by the terminal is ensured, and the condition that the user experience is influenced due to the fact that the residual duration of the control authority is too low can be effectively avoided.
The embodiment of the application provides a control method, which is applied to a scene shown in fig. 1A. Fig. 4 is a schematic flow chart of still another implementation of the control method provided in the embodiment of the present application, and as shown in fig. 4, the method includes:
step S601: the terminal sends a first request for controlling the first household appliance to the server.
Step S602: the server receives a first request sent by the terminal and determines whether the terminal has the control authority of the first household appliance.
Here, when the server determines that the terminal does not have the control right, it proceeds to step S603; otherwise, when the server determines that the terminal has the control right, the process proceeds to step S613.
Here, the server may also actively acquire the remaining duration of each control authority that the terminal has when determining that the configuration of the internet of things between the terminal and each home appliance is completed and a request for controlling at least one home appliance is not sent to the server.
And when the server determines that the remaining time is less than the preset time threshold, sending second notification information to the terminal, wherein the control authority is about to expire, and the second notification information at least comprises the remaining time corresponding to each control authority and the identifier of the first household appliance corresponding to the remaining time.
In some embodiments, the second notification information may also include at least a remaining duration corresponding to each control authority to be expired and an identifier of the home appliance corresponding to the remaining duration.
Step S603: and the server sends third notification information for selecting the permission duration to the terminal.
The third notification information at least includes an authority duration for long-term control of the first household appliance, an authority duration for a half month or a week, which is not limited herein.
Here, the server stores a plurality of authority durations, and when the server determines that the terminal does not have the control authority, the server may carry each authority duration stored by itself in the third notification message and send the third notification message to the terminal.
Step S604: the terminal receives the third notification information, determines selection information based on a user operation, and transmits the selection information to the server.
Here, after receiving the third notification message, the terminal displays at least a messageprompt box 501 as shown in fig. 5, where themessage dialog box 501 includes various permission durations, such as a long duration, a year, a quarter, a month, two weeks, and so on, each permission duration corresponds to a selection control, and the user can select different permission durations through the selection controls.
In this embodiment, the selection information at least includes the authority duration selected by the terminal based on the third notification information.
Step S605: the server receives selection information sent by the terminal, and determines first indication information corresponding to the permission duration selected by the terminal based on the selection information.
Step S606: the server sends the first indication information corresponding to the authority duration selected by the terminal to the terminal, and then the step S607 is executed.
The server correspondingly sends first indication information for acquiring the authority duration based on the authority duration selected by the terminal, wherein the first indication information is used for indicating a user corresponding to the terminal to execute corresponding operation on the first household appliance.
After receiving the first indication information, the terminal displays an interface as shown in fig. 6A or fig. 6B on the display screen. Because different authority durations correspond to different first indication information, it is assumed that when the user selects a long-term authority duration, the first indication information shown as 601 in fig. 6A may be displayed, that is, the user is instructed to perform start-up, wool selection, shut-down, restart, single dehydration selection, and start-up operations on the first home appliance; when the user selects the one-month right duration, first indication information, as shown in 611 in fig. 6B, may be displayed, that is, indicating that the user performs the long press temperature operation on the first home device.
Step S607: the user executes corresponding operation on the first household appliance based on the first notification information received by the terminal, so that the first household appliance generates first operation information based on the operation of the user, and the first operation information is sent to the server.
Step S608: the server judges whether first operation information sent by the first household appliance is received within a preset time length.
Here, when it is determined that the server receives the first operation information sent by the first home appliance within the preset duration, the step proceeds to step S609; otherwise, when it is determined that the server does not receive the first operation information sent by the first home appliance within the preset time duration, the process proceeds to step S616.
Step S609: the server judges whether the first operation information is matched with the first indication information.
Here, when the server determines that the first operation information does not match the first indication information, the process proceeds to step S610; otherwise, when the server determines that the first operation information matches the first indication information, the process proceeds to step S612.
Step S610: the server obtains the operation times of the first household appliance and judges whether the operation times exceed a preset time threshold value.
Here, when the server determines that the operation number exceeds the preset number threshold, the process proceeds to step S616; otherwise, when the server determines that the operation frequency does not exceed the preset frequency threshold, the process proceeds to step S611.
Step S611: the server sends the reminding information of the error first operation information to the terminal so as to remind the user corresponding to the terminal that the error first operation information is obtained, and the user corresponding to the terminal can operate the first household appliance based on the first indication information again so as to obtain the control authority.
Here, the server may send the first indication information to the terminal again directly, in addition to sending the reminding information that the first operation information obtained by the server itself is wrong to the terminal, and also aims to inform the terminal that the first operation information corresponding to the user is wrong, and instruct the user corresponding to the terminal to operate the first household appliance again according to the first indication information, and at this time, the user corresponding to the terminal may operate the first household appliance again according to the first indication information, thereby effectively improving the success rate of obtaining the control right by the terminal.
In some embodiments, after step S611, the process may proceed to step S608, where the server determines whether the first operation information sent by the first home device is received within the preset time period again, and then performs the following steps.
Step S612: the server controls the first home device based on the first request.
Here, the server grants the control right of the terminal to control the first home appliance only when determining that the first operation information matches the first indication information or that the second operation information matches the first indication information, and the terminal also obtains the control right of the first home appliance, and at this time, the server sends feedback information that the control right is successfully obtained to the terminal, where the feedback information may befeedback information 701 for controlling the first home appliance for a long time as shown in fig. 7A, orfeedback information 711 for controlling the first home appliance for two weeks as shown in fig. 7B, which is not limited herein.
Step S613: the server determines the remaining duration of the control authority.
Step S614: the server determines the working duration of the first household appliance based on the first request, and judges whether the remaining duration of the control authority is less than the working duration.
Here, it is determined that the remaining duration of the control authority is less than the working duration, the process proceeds to step S615; otherwise, if it is determined that the remaining duration of the control authority is not less than the working duration, go to step 612.
Step S615: the server sends the first indication information corresponding to the authority duration selected by the terminal to the terminal, and then the step S607 is executed.
Step S616: and the server returns first notification information of failure in acquiring the control authority to the terminal.
Here, when the configuration of the internet of things between the terminal and each of the home devices is completed and a request for controlling at least one home device sent by the terminal is not received, the processes of step 51 to step 52 in the foregoing embodiment may be performed, and details are not described here.
For a second household appliance in the internet of things corresponding to the new access terminal, the server can send second indication information to the terminal under the condition that the terminal does not send a request to the server so as to indicate the terminal to acquire the control authority of the second household appliance; the second indication information at least comprises an identifier of the second household appliance.
The method and the device have the advantages that the problem that the household appliances of other users are mismatched when the network is distributed and the problem that adverse effects are brought to other users are avoided by determining whether the terminal has the control authority or not before the terminal controls the household appliances is avoided; when the terminal has the control right, the right duration is selected according to the notification information fed back by the server, and when the terminal does not have the control right, the server can determine whether to control the first household appliance based on the first request according to the matching relation between the first indication information sent by the server and the first operation information sent by the first household appliance, so that the accuracy and pertinence of the terminal in controlling the household appliance can be effectively improved, and the personal experience and satisfaction of a user can be effectively improved. And when determining that the household electrical appliance is the second household electrical appliance in the internet of things corresponding to the newly added terminal, the terminal can be timely reminded of acquiring the control authority of the second household electrical appliance, so that the control authority acquired by the terminal is more diversified, and the applicability and the universality are stronger.
Based on the inventive concept of the foregoing embodiments, this embodiment provides a control device, fig. 8 is a schematic diagram of the control device provided in the embodiment of the present application, and as shown in fig. 8, the device 800 at least includes: a receiving module 801, a determining module 802, a sending module 803, and a control module 804, wherein:
a receiving module 801, configured to receive a first request sent by a terminal and used to control a first home appliance.
A determining module 802, configured to determine whether the terminal has a control authority of the first home device based on the first request.
A sending module 803, configured to determine that the terminal does not have the control authority, and send, to the terminal, first indication information for obtaining the control authority.
The control module 804 is configured to determine that the acquired first operation information sent by the first home appliance is matched with the first indication information, grant a control authority for the terminal to control the first home appliance, and control the first home appliance according to the first request.
In one possible implementation, the apparatus 800 further includes: and the acquisition module is used for determining that the first operation information acquired within the preset time length is not matched with the first indication information, and acquiring the operation times of the first household appliance.
Here, the number of operations of acquiring the first home device may be, when implemented, the number of times the first home device transmits the first operation information.
The sending module 803 is further configured to: and determining that the operation times are less than or equal to a preset time threshold, and sending reminding information for acquiring the control authority to the terminal.
The acquisition module is further configured to: re-acquiring second operation information sent by the first household appliance; the determining module 802 is further configured to determine whether the second operation information matches the first indication information.
In one possible implementation, the apparatus 800 further includes: and the returning module is used for determining that the first operation information sent by the first household appliance is not acquired within a preset time length or the operation times are greater than a time threshold value, and at least returning first notification information of failure in acquiring the control authority to the terminal.
In one possible implementation, the determining module 802 is further configured to: determining that the terminal has a control authority, and determining the remaining duration of the control authority; based on the first request, the working duration of the first household appliance is determined.
A sending module 803, further configured to: and determining that the remaining duration of the control authority is less than the working duration, and sending first indication information for acquiring the control authority to the terminal.
In a possible implementation manner, the obtaining module is further configured to: and acquiring the residual duration of each control authority possessed by the terminal.
A sending module 803, further configured to: and determining that the remaining time length is less than a preset time length threshold value, and sending second notification information of the impending expiration of the control authority to the terminal. .
In a possible implementation manner, the sending module 803 may further be configured to: determining that the terminal does not have the control authority, and sending third notification information for selecting the authority duration to the terminal; receiving selection information sent by the terminal, wherein the selection information at least comprises the authority duration selected by the terminal based on the third notification information; and sending the first indication information corresponding to the authority duration selected by the terminal to the terminal.
In a possible implementation manner, the sending module 803 may further be configured to: and determining that the second household appliance newly joins in the Internet of things corresponding to the terminal, and sending second indication information to the terminal to indicate the terminal to acquire the control authority of the second household appliance.
The second indication information at least comprises an identifier of the second household appliance.
In practical applications, the receiving module 801, the determining module 802, the sending module 803, and the control module 804 may be implemented by a processor located on a control device, specifically, a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Example four
Based on the inventive concept of the foregoing embodiment, the present embodiment provides a control apparatus, as shown in fig. 9, thecontrol apparatus 900 at least including:memory 901,communication bus 902, andprocessor 903, wherein:
amemory 901 for storing a control program.
Acommunication bus 902 for carrying out communication connections between theprocessor 903 and thememory 901.
Aprocessor 903 for executing the control program stored in thememory 901 to implement the steps of the control method as described in any one of the previous embodiments.
Correspondingly, the present embodiment further provides a computer storage medium, which stores a control program, and the control program realizes the steps of the control method according to any one of the foregoing embodiments when executed by a processor.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.