Disclosure of Invention
The present invention has been made in view of the above problems, and provides an apparatus adaptive control method, apparatus, and server that solve the above problems.
According to an aspect of the present invention, there is provided a device adaptive control method applied to a server, the method including:
acquiring a call request for a specified service program sent by an intelligent terminal;
inquiring a first working parameter group matched with a specified service program and the value range of each working parameter in the first working parameter group in a pre-established general service logic table;
determining the value of the working parameter in the value range according to the set parameter value rule;
and sending a device control instruction carrying the first working parameter group and the value information of each working parameter in the first working parameter group to the intelligent household appliance capable of executing the specified service program.
Optionally, in the method of the present invention, before determining the value of the working parameter in the value range according to the set parameter value rule, the method further includes:
determining intelligent household electrical appliance equipment capable of executing a specified service program;
and judging whether the intelligent household appliance provides the specified service program or not according to the inquired first working parameter group and the value range of each working parameter in the first working parameter group, and executing the operation of determining the value of each working parameter in the value range of each working parameter according to the set parameter value rule when judging that the intelligent household appliance provides the specified service program.
Optionally, in the method of the present invention, determining whether the intelligent home appliance provides the specified service program according to the queried first working parameter group and the value range of each working parameter in the first working parameter group, includes:
inquiring a second working parameter group matched with the specified service program and the value range of each working parameter in the second working parameter group in a preset function list of the intelligent household electrical appliance;
and judging whether the second working parameter group contains all the working parameters contained in the first working parameter group, detecting whether the value ranges of the same two working parameters in the first working parameter group and the second working parameter group are overlapped when the judgment result is yes, and judging that the intelligent household appliance provides the specified service program when the detection result is yes.
Optionally, in the method of the present invention, when querying the first working parameter group matched with the specified service program and the value range of each working parameter in the first working parameter group in the pre-created general service logic table, the method further includes: inquiring the optimal parameter value of each working parameter in the first working parameter group;
determining the value of the working parameter in the value range according to the set parameter value rule, comprising the following steps:
aiming at each working parameter in the first working parameter group, judging whether the parameter value range of the working parameter in the second working parameter group and the optimal parameter value of the working parameter have intersection;
when intersection exists, selecting the value of the working parameter from the optimal parameter values according to a set rule;
and when no intersection exists, selecting the value of the working parameter within the parameter value range of the working parameter in the second working parameter group by taking the near-optimal parameter value as a selection principle.
Optionally, the method of the present invention further comprises:
and when a service program working parameter updating instruction sent by a working parameter information provider is received, updating the working parameter information of the corresponding service program in the general service logic table.
According to another aspect of the present invention, there is also provided a device adaptive control apparatus, applied to a server, including:
the information acquisition module is used for acquiring a call request for a specified service program sent by the intelligent terminal;
the information query module is used for querying a first working parameter group matched with the specified service program and the value range of each working parameter in the first working parameter group in a pre-established general service logic table;
the information determination module is used for determining the value of the working parameter in the value range according to the set parameter value rule;
and the instruction issuing module is used for sending the equipment control instruction carrying the first working parameter group and the value information of each working parameter in the first working parameter group to the intelligent household appliance capable of executing the specified service program.
Optionally, the apparatus of the present invention further includes: the function matching module is used for determining the intelligent household appliance capable of executing the specified service program, judging whether the intelligent household appliance provides the specified service program or not by utilizing the first working parameter group inquired by the information inquiry module and the value range of each working parameter in the first working parameter group, and triggering the information determining module when the intelligent household appliance is judged to provide the specified service program.
Optionally, in the apparatus of the present invention, the function matching module is specifically configured to query, in a preset function list of the intelligent home appliance, a second working parameter group matched with the specified service program and a value range of each working parameter in the second working parameter group, determine whether the second working parameter group includes all working parameters included in the first working parameter group, detect whether value ranges of two identical working parameters in the first working parameter group and the second working parameter group overlap when the determination result is yes, and determine that the intelligent home appliance provides the specified service program when the determination result is yes.
Optionally, in the apparatus of the present invention, the information query module is further configured to query, in a pre-created general service logic table, an optimal parameter value of each working parameter in the first working parameter group;
the information determining module is specifically configured to, for each working parameter in the first working parameter group, determine whether a parameter value range of the working parameter in the second working parameter group intersects with an optimal parameter value of the working parameter, and select a value of the working parameter from the optimal parameter value according to a set rule when the intersection exists; and when no intersection exists, selecting the value of the working parameter within the parameter value range of the working parameter in the second working parameter group by taking the near-optimal parameter value as a selection principle.
Optionally, the apparatus of the present invention further includes:
and the information updating module is used for updating the working parameter information of the corresponding service program in the general service logic table when receiving a service program working parameter updating instruction sent by the working parameter information provider.
According to a third aspect of the present invention, there is provided a server comprising: a processor, a memory, and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory;
the processor is used for executing the equipment adaptive control program stored in the memory so as to realize the steps of the equipment adaptive control method.
The invention has the following beneficial effects:
the scheme of the invention provides an improved scheme aiming at the existing one-key service program design of the intelligent household appliance. And when a user requests to call the service program, the server side automatically acquires the optimal working parameters adapted to the target intelligent household appliance and issues an appliance control instruction. By introducing the scheme, the parameter value of the one-button service program can be upgraded from the existing complete presetting to the dynamic updating, and the user experience is effectively improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In a first embodiment of the present invention, a device adaptive control method is provided, and specifically, a device adaptive control method based on a universal service logic is provided. In this embodiment, an equipment manufacturer maintains a general service logic table in a server (which may be but is not limited to a cloud platform), where the service logic table includes information such as various service programs and working parameter values that can be provided for each type of intelligent household electrical appliance, and is specifically shown in table one; the service logic table may be updated by the device manufacturer as needed. When a user needs to call a certain service of the intelligent household appliance, the control instruction is sent to the server, and the server determines and issues the working parameters of the intelligent household appliance according to factors such as user requirements, appliance models and the like. The following describes the implementation of the method of this embodiment in detail with reference to fig. 2.
As shown in fig. 1, the device adaptive control method of this embodiment, applied to a server side, includes the following steps:
step S101, acquiring a call request for a specified service program sent by an intelligent terminal;
in the embodiment of the invention, the intelligent terminal is internally loaded with an intelligent household application program or a household appliance control application program. And the intelligent terminal sends a call request for the specified service program to the server through the intelligent household application program or the household appliance control application program.
In the embodiment of the invention, the intelligent terminal carries the identification of the service program in the calling request; and the server side determines the service program specified by the intelligent terminal side according to the identification information of the service program.
Step S102, inquiring a first working parameter group matched with a specified service program and a value range of each working parameter in the first working parameter group in a pre-established general service logic table;
in the embodiment of the invention, a general service logic table is maintained for each type of intelligent household electrical appliance, and identification information of various service programs which can be provided by the type of intelligent household electrical appliance and working parameter value information of the service programs are stored in the general service logic table.
Step S103, determining the value of the working parameter in the value range according to the set parameter value rule;
in a preferred embodiment of the present invention, before performing the step, the following operations are further performed:
(1) determining intelligent household electrical appliance equipment capable of executing a specified service program;
in the embodiment of the invention, in an intelligent home scene, after the intelligent household appliance is online, the intelligent household appliance is directly registered to a server through a home gateway; the server receives a user request sent by the intelligent terminal, and inquires the intelligent household electrical appliance capable of executing the specified service program according to the association of family or user and the like.
(2) And judging whether the intelligent household appliance provides the specified service program or not according to the inquired first working parameter group and the value range of each working parameter in the first working parameter group, and executing the operation of the step S103 when judging that the intelligent household appliance provides the specified service program. In the embodiment, whether the intelligent household electrical appliance can execute the specified service program or not is judged in advance, so that the problem that the intelligent household electrical appliance cannot execute the specified service program and the operation efficiency is influenced is solved.
In an optional embodiment of the present invention, the manner of determining whether the intelligent home appliance provides the designated service program according to the queried first working parameter group and the value range of each working parameter in the first working parameter group includes:
inquiring a second working parameter group matched with the specified service program and the value range of each working parameter in the second working parameter group in a preset function list of the intelligent household electrical appliance;
and judging whether the second working parameter group contains all the working parameters contained in the first working parameter group, detecting whether the value ranges of the same two working parameters in the first working parameter group and the second working parameter group are overlapped when the judgment result is yes, and judging that the intelligent household appliance provides the specified service program when the detection result is yes.
Further, in another optional embodiment of the present invention, in the pre-created general service logic table, when the first operating parameter group matched with the specified service program and the value range of each operating parameter in the first operating parameter group are queried, the optimal parameter value of each operating parameter in the first operating parameter group is also queried and obtained. That is, the general service logic table also stores the optimal values of the service program operating parameters.
In this embodiment, determining the value of the working parameter in the value range according to the set parameter value rule includes:
aiming at each working parameter in the first working parameter group, judging whether the parameter value range of the working parameter in the second working parameter group and the optimal parameter value of the working parameter have intersection;
when intersection exists, selecting the value of the working parameter from the optimal parameter values according to a set rule;
and when no intersection exists, selecting the value of the working parameter within the parameter value range of the working parameter in the second working parameter group by taking the near-optimal parameter value as a selection principle.
It should be noted that the parameter value-taking rule given above is only one specific example of the present invention, and the present invention is not limited to adopt the rule, and those skilled in the art can flexibly set the rule according to requirements. Therefore, any rules for the values of the parameters that can be easily conceived by those skilled in the art are within the scope of the protection idea of the present invention.
And step S104, sending a device control instruction carrying the first working parameter group and the value information of each working parameter in the first working parameter group to the intelligent household appliance capable of executing the specified service program.
Therefore, the method realizes the control of the intelligent household electrical appliance by using the method of the embodiment of the invention.
Further, the method of the embodiment of the present invention further includes: and when a service program working parameter updating instruction sent by a working parameter information provider is received, updating the working parameter information of the corresponding service program in the general service logic table. That is, the generic service logic table may be updated by the device manufacturer as needed.
In summary, the method provided by the embodiment of the invention provides an improved scheme for the existing one-key service program design of the intelligent household appliance. And when a user requests to call the service program, the server side automatically acquires the optimal working parameters adapted to the target intelligent household appliance and issues an appliance control instruction. By introducing the scheme, the parameter value of the one-button service program can be upgraded from the existing complete presetting to the dynamic updating, and the user experience is effectively improved.
In a second embodiment of the present invention, an apparatus adaptive control method is provided. The embodiment describes the adaptive control method of the device provided by the invention in more detail by combining with a specific application example, so as to more clearly illustrate the implementation process of the invention. It should be noted that the present embodiment discloses numerous technical details for explaining the present invention, but is not intended to limit the present invention solely.
Specifically, in the method of the embodiment of the present invention, the related general service logic table is as follows:
the following describes the meaning of each field of the parameter P, taking the service program S as an example:
(1) the value range V is as follows: describing the value range allowed by the working parameter P when the intelligent household electrical appliance executes the program S. If the parameter P of a certain household electrical appliance D takes on the value range VDIf the device is not intersected with the V, the device cannot provide the service S; for example, the washing program a requires that the washing water temperature is not lower than 60 ℃, and if the water temperature of a certain washing machine is only normal temperature, the washing program a cannot be provided. Common representations of ranges of values include:
determining the value: including boolean (Y/N), enumerated (enumerating all possible values), etc.;
interval: by using [ V ]min、Vmax]Is expressed in terms of form; where Vmin and Vmax represent the minimum and maximum values, respectively.
(2) Optimum value O: describing the optimal value of the parameter P when the intelligent household appliance executes the program S; the optimum value may be a determined value(s) or may be [ O ]min,Omax]Interval form of (2). For example, the optimum value of the parameter "washing water temperature" for a certain washing program is 60 ℃, and the optimum value of the temperature for a certain food refrigeration program is 2-5 ℃.
Particularly, when the parameter P of the intelligent household electrical appliance D takes a value range VDNo intersection with the optimum value O, or VDIntersects with O and O is [ O ]min,Omax]The optimal value of the parameter P cannot be directly determined in the form of a set. In contrast, in the embodiment of the present invention, the following approximation rule is adopted to obtain the optimal value of the parameter P:
approximate rule 1: for VDWithout intersection with O, at VDSelecting the value closest to O;
approximate rule 2: for VDIntersect with O but O is a set, at VDIs selected to be the closest (O)min+Omax) A value of/2.
The following explains the device adaptive control method provided by the embodiment of the present invention based on a specific large-cycle application scenario, and a complete flow is shown in fig. 2. In this scenario, the information of the service program S in the generic service logic table is shown in the following table; for the intelligent household electrical appliance D, the value range of the parameter 1 is [0,40], and the value range of the parameter 2 is [0,120 ].
As shown in fig. 2, the device adaptive control method of the present embodiment includes the following steps:
step 1: and the equipment manufacturer creates and maintains a general service logic table of various intelligent household electrical appliances on the cloud platform.
Step 2: and the intelligent household appliance D sends an online notification to the home gateway and registers the online notification to the cloud platform.
And step 3: a user sends a service program calling instruction through an APP of the intelligent terminal, and a one-key service program S is called; the calling instruction includes an identifier of the service program S.
And 4, step 4: and after receiving the call instruction, the cloud platform acquires a function list of the intelligent household appliance D, and determines working parameters and value range information of the service program S in the function list.
And 5: and the cloud platform inquires the working parameters, the working parameter value range and the optimal value range information of the service program S in the general service logic table.
Step 6: aiming at the working parameters 1 and 2 contained in the service program S, the cloud platform respectively compares the value range V with the value range V of the parameter P of the device DDV and V of 2 parametersDAnd all the devices have intersection, and the intelligent household electrical appliance D can provide the service program S.
And 7: and the cloud platform determines the optimal values of the working parameters 1 and 2 of the intelligent household appliance D. For the working parameter 1, the value range [0,40] of the working parameter is not intersected with the optimal value [60,90], and the value 40 closest to [60,90] is taken as the optimal value according to the approximation rule 1; for the working parameter 2, the value range [0,120] of the working parameter has intersection with the optimal value [8,12], and then the value 10 closest to (8+12)/2 is taken as the optimal value according to the approximation rule 2.
And 8: the cloud platform sends a control instruction to the intelligent household electrical appliance D, wherein the control instruction comprises a working parameter 1 and an optimal value 40, and a working parameter 2 and an optimal value 10; the control command reaches the intelligent household appliance D through the gateway relay.
And step 9: and after receiving the control command, the intelligent household appliance D executes corresponding operation.
Step 10: and updating the parameter value range and the optimal value of the service program S on the cloud platform by the equipment manufacturer according to the requirement.
Step 11: and the user sends a calling instruction through the APP of the intelligent terminal and calls the service program S again.
Step 12: and (4) after the cloud platform receives the call instruction, repeating the operation of the step 4-7, and determining the optimal values of the working parameter 1 and the working parameter 2 according to the updated general service logic table.
Step 13: the cloud platform sends a control instruction to the intelligent household electrical appliance D, wherein the control instruction comprises a working parameter 1, a working parameter 2 and an optimal value of the working parameter 2; the control command reaches the intelligent household appliance D through the gateway relay.
Step 14: and after receiving the control command, the intelligent household appliance D executes corresponding operation.
The method provided by the embodiment of the invention provides an improved scheme aiming at the existing one-key service program design of the intelligent household appliance. Maintaining various service programs provided by the intelligent household appliance and information such as parameter value ranges, optimal values and the like contained in the service programs on the cloud platform, and allowing equipment manufacturers to update the service programs; when a user requests to call the service program, the cloud platform automatically acquires and issues the optimal working parameters adaptive to the target household appliance according to the information such as user requirements, household appliance models and the like. By introducing the scheme, the parameter value of the one-button service program can be upgraded from the existing complete presetting to the dynamic updating, and the user experience is effectively improved.
In a third embodiment of the present invention, there is provided a device adaptive control apparatus, applied to a server, as shown in fig. 3, including:
the information acquisition module 310 is configured to acquire a call request for a specified service program sent by the intelligent terminal;
the information query module 320 is configured to query, in a pre-created general service logic table, a first working parameter group matched with the specified service program and a value range of each working parameter in the first working parameter group;
the information determining module 330 is configured to determine a value of the working parameter within a value range according to a set parameter value rule;
the instruction issuing module 340 is configured to send a device control instruction carrying the first working parameter group and the value information of each working parameter in the first working parameter group to the intelligent household appliance capable of executing the specified service program.
Based on the above structural framework, several specific and preferred embodiments under the above structure are given below to refine and optimize the functions of the device of the present invention, so as to make the implementation of the solution of the present invention more convenient and accurate. It is to be noted that the following features may be arbitrarily combined without conflict. The method specifically comprises the following steps:
in an alternative embodiment of the present invention, as shown in fig. 4, the apparatus further comprises:
the function matching module 350 is configured to determine an intelligent home appliance capable of executing a specified service program, determine whether the intelligent home appliance provides the specified service program by using the first working parameter group and the value range of each working parameter in the first working parameter group, which are queried by the information querying module, and trigger the information determining module 340 when it is determined that the intelligent home appliance provides the specified service program.
In an embodiment of the present invention, the function matching module 350 is specifically configured to query, in a preset function list of the intelligent home appliance, a second working parameter group matched with the specified service program and a value range of each working parameter in the second working parameter group, determine whether the second working parameter group includes all the working parameters included in the first working parameter group, detect whether the value ranges of two identical working parameters in the first working parameter group and the second working parameter group are both overlapped when the determination result is yes, and determine that the intelligent home appliance provides the specified service program when the determination result is yes.
In an optional embodiment of the present invention, the information query module 320 is further configured to query, in a pre-created general service logic table, an optimal parameter value of each working parameter in the first working parameter group;
the information determining module 330 is specifically configured to, for each working parameter in the first working parameter group, determine whether a parameter value range of the working parameter in the second working parameter group intersects with an optimal parameter value of the working parameter, and when there is an intersection, select a value of the working parameter from the optimal parameter values according to a set rule; and when no intersection exists, selecting the value of the working parameter within the parameter value range of the working parameter in the second working parameter group by taking the near-optimal parameter value as a selection principle.
In one embodiment of the present invention, as shown in fig. 5, the apparatus further comprises:
and the information updating module 360 is configured to update the working parameter information of the corresponding service program in the general service logic table when receiving a service program working parameter updating instruction sent by the working parameter information provider.
In summary, the device of the embodiment of the invention provides an improved scheme for the existing one-key service program design of the intelligent household appliance. In the scheme, various service programs provided by the intelligent household appliance and information such as a working parameter value range and the like contained in the service programs are maintained, and when a user requests to call the service programs, the optimal working parameters adaptive to the target intelligent household appliance are automatically acquired and an appliance control instruction is issued. By introducing the scheme, the parameter value of the one-button service program can be upgraded from the existing complete presetting to the dynamic updating, and the user experience is effectively improved.
In a fourth embodiment of the present invention, there is provided a server, as shown in fig. 6, including: a processor 610, a memory 620, and a communication bus 630;
the communication bus 630 is used for realizing connection communication between the processor 610 and the memory 620;
the processor 610 is configured to execute the device adaptive control program stored in the memory 620 to implement the steps of the device adaptive control method of the present invention.
Since the adaptive control method for the device according to the present invention has been described in detail in the first embodiment and the second embodiment, the detailed description of the method is not repeated in this embodiment, and the implementation process of the specific method is referred to the first embodiment and the second embodiment.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
In short, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.