Equipment regulation and control method and device, computer equipment and storage medium
By receiving user instructions and generating regulatory instructions, the problems of cumbersome operation of smart home devices and poor correlation between devices are solved, and unified control of equipment and improvement of user experience is achieved.
Patent Information
- Application Number
- CN202311630538.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
During the use of smart home devices, users need to adjust the adjustable parameters of each device separately. The operation is cumbersome and there is a lack of scheduling correlation between different devices of the same type, resulting in poor user experience.
A device control method is provided, by receiving user instructions, determining a target device set, and generating control instructions based on the target value, and sending them to the target device to adjust the parameter value. The method includes receiving user instructions, determining a target device set, and generating and sending regulatory instructions.
It realizes unified equipment regulation, improves the convenience of equipment regulation and the correlation between parameter regulation between different equipment, improves user experience, and supports customized control strategies.
Smart Images

Figure CN120065764A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of device regulation, and particularly to a device regulation method, apparatus, computer device, and storage medium. Background Art
[0002] Currently, there are many smart home devices and solutions available for consumers to choose from. Smart homes can be connected to a home network via the Internet, enabling users to control adjustable parameters of smart home devices through devices such as smartphones, tablets, or computers, such as light brightness, light color temperature, temperature, volume, and so on. In the future, smart homes will continue to develop, and more devices and systems will be made intelligent, making home life more intelligent, convenient, and comfortable. During the use of smart home devices, it usually involves the user's unified adjustment requirements for different devices. For example, at night, the user may hope that the lights throughout the house can be dimmed to help with sleep, and when engaging in activities, the user may hope that the lights throughout the house can be brightened to clearly see objects.
[0003] In the related art, the adjustable parameters of each device need to be adjusted separately by the user, which is cumbersome to operate, and there is a lack of scheduling relevance between different devices of the same type, resulting in a poor user experience. Summary of the Invention
[0004] To overcome the problems existing in the related art, the present disclosure provides a device regulation method, apparatus, computer device, and storage medium.
[0005] In a first aspect of the present disclosure, a device regulation method is provided, the method including:
[0006] Receiving a user instruction, the user instruction being used to indicate a target value of at least one parameter type;
[0007] For each parameter type in the at least one parameter type, determining a target device set corresponding to each parameter type, generating a regulation instruction corresponding to each device in the target device set according to the target value of each parameter type, and sending each regulation instruction to the corresponding device, so that the device adjusts the parameter value of the at least one parameter type according to the corresponding regulation instruction.
[0008] Optionally, the user instruction is further used to indicate a controlled device set;
[0009] The determining, for each parameter type in the at least one parameter type, a target device set corresponding to each parameter type includes:
[0010] For each parameter type in the at least one parameter type, within the controlled device set, determining a target device set corresponding to each parameter type.
[0011] Optionally, the method further includes:
[0012] For each parameter type in the at least one parameter type, determining a parameter conversion relationship corresponding to each parameter type;
[0013] The generating a control instruction corresponding to each device in the target device set according to the target value of each parameter type includes:
[0014] Determining a control value of the device according to the target value of each parameter type and the parameter conversion relationship of each parameter type, and generating a control instruction corresponding to the device according to the control value.
[0015] Optionally, the at least one parameter type includes a first type, and the parameter conversion relationship corresponding to the first type includes:
[0016] Determining a relative change amount of the target value according to the target value and a current parameter value of a reference range of the target value;
[0017] Determining a control value of a first device according to a first difference, a second difference, and the relative change amount, where the first difference represents a difference between an upper limit of a first range and a current parameter value of the first device, the second difference represents a difference between an upper limit of the reference range and a current parameter value of the reference range, the first range is an adjustable range of a corresponding parameter type of the first device, and the first device is a device corresponding to the first type.
[0018] Optionally, the determining a control value of the first device according to the first difference, the second difference, and the relative change amount includes:
[0019] Determining a product of a ratio of the first difference to the second difference and the relative change amount as the control value of the first device.
[0020] Optionally, the parameter type indicated by the user instruction includes a second type, and the parameter conversion relationship corresponding to the second type includes:
[0021] Determining a parameter value indicated by a corresponding proportional position in a first range as a control value of a second device according to a proportional position of the target value within a reference range of the target value, where the first range is an adjustable range of a corresponding parameter type of the second device, and the second device is a device corresponding to the second type.
[0022] Optionally, the parameter type indicated by the user instruction includes a third type, and the parameter conversion relationship corresponding to the third type includes:
[0023] When the target value does not exceed the first range, determine the adjustment value of the third device as the target value, where the first range is the adjustable range of the corresponding parameter type of the third device;
[0024] When the target value exceeds the first range, determine the adjustment value of the third device as the value in the first range that is closest to the target value, where the third device is the device corresponding to the third type.
[0025] Optionally, the parameter type indicated by the user instruction includes a fourth type, and the parameter conversion relationship corresponding to the fourth type includes:
[0026] Determine the target value as the adjustment value of the fourth device, where the fourth device is the device corresponding to the fourth type.
[0027] Optionally, the at least one parameter type includes at least one of the following:
[0028] The first type, the second type, the third type, the fourth type;
[0029] Among them, the first type includes the brightness of the light;
[0030] The second type includes the wind speed;
[0031] The third type includes the color temperature;
[0032] The fourth type includes at least one of the following:
[0033] Temperature, humidity, component position.
[0034] Optionally, the method further includes:
[0035] Present a master control interface, where the master control interface includes controls corresponding to the at least one parameter type, the controls are used to adjust the parameter values of the corresponding parameter types, and the controls have reference ranges of the corresponding parameter types;
[0036] The receiving the user instruction includes:
[0037] Receive a user instruction input by the user based on the master control interface.
[0038] Optionally, the presenting the master control interface includes:
[0039] Generate at least one control according to at least one preset parameter type, and present a master control page based on the at least one control;
[0040] And / or, generate at least one control according to the adjustable parameter types of at least one device, and present a master control page based on the at least one control.
[0041] Optionally, the method further includes:
[0042] Presenting a schematic message for presenting a correspondence between a parameter value and a schematic effect for some or all of the parameter types corresponding to the controls included in the master control interface.
[0043] A second aspect of the present disclosure provides a device control apparatus, the apparatus including:
[0044] A target value determination module, configured to receive a user instruction for indicating a target value of at least one parameter type;
[0045] A control module, configured to, for each parameter type in the at least one parameter type, determine a target device set corresponding to each parameter type, generate a control instruction corresponding to each device in the target device set according to the target value of each parameter type, and send each control instruction to the corresponding device, so that the device adjusts the parameter value of the at least one parameter type according to the corresponding control instruction.
[0046] Optionally, the user instruction is further used to indicate a set of controlled devices;
[0047] When determining the target device set corresponding to each parameter type in the at least one parameter type, the control module is configured to:
[0048] For each parameter type in the at least one parameter type, determine a target device set corresponding to each parameter type within the set of controlled devices.
[0049] Optionally, the method further includes:
[0050] A conversion relationship determination module, configured to determine a parameter conversion relationship corresponding to each parameter type in the at least one parameter type;
[0051] When generating a control instruction corresponding to each device in the target device set according to the target value of each parameter type, the control module is configured to:
[0052] Determine a control value of the device according to the target value of each parameter type and the parameter conversion relationship of each parameter type, and generate a control instruction corresponding to the device according to the control value.
[0053] Optionally, the at least one parameter type includes a first type, and the parameter conversion relationship corresponding to the first type includes:
[0054] Determine the relative change amount of the target value according to the target value and the current parameter value of the reference range of the target value;
[0055] Determine the regulation value of the first device according to the first difference, the second difference and the relative change amount, wherein the first difference represents the difference between the upper limit of the first range and the current parameter value of the first device, the second difference represents the difference between the upper limit of the reference range and the current parameter value of the reference range, the first range is the adjustable range of the corresponding parameter type of the first device, and the first device is the device corresponding to the first type.
[0056] Optionally, the determining the regulation value of the first device according to the first difference, the second difference and the relative change amount includes:
[0057] Determine that the product of the ratio of the first difference to the second difference and the relative change amount is the regulation value of the first device.
[0058] Optionally, the parameter type indicated by the user instruction includes a second type, and the parameter conversion relationship corresponding to the second type includes:
[0059] According to the proportional position of the target value within the reference range of the target value, determine that the parameter value indicated by the corresponding proportional position within the first range is the regulation value of the second device, wherein the first range is the adjustable range of the corresponding parameter type of the second device, and the second device is the device corresponding to the second type.
[0060] Optionally, the parameter type indicated by the user instruction includes a third type, and the parameter conversion relationship corresponding to the third type includes:
[0061] When the target value does not exceed the first range, determine that the regulation value of the third device is the target value, and the first range is the adjustable range of the corresponding parameter type of the third device;
[0062] When the target value exceeds the first range, determine that the regulation value of the third device is the value closest to the target value within the first range, and the third device is the device corresponding to the third type.
[0063] Optionally, the parameter type indicated by the user instruction includes a fourth type, and the parameter conversion relationship corresponding to the fourth type includes:
[0064] Determine that the target value is the regulation value of the fourth device, and the fourth device is the device corresponding to the fourth type.
[0065] Optionally, the at least one parameter type includes at least one of the following:
[0066] The first type, the second type, the third type, the fourth type;
[0067] Wherein, the first type includes the light brightness;
[0068] The second type includes the wind speed;
[0069] The third type includes the color temperature;
[0070] The fourth type includes at least one of the following:
[0071] Temperature, humidity, component position.
[0072] Optionally, the method further includes:
[0073] A master control interface presenting module, configured to present a master control interface, the master control interface including controls corresponding to the at least one parameter type, the controls being used to adjust the parameter values of the corresponding parameter types, and the controls having a reference range of the corresponding parameter types;
[0074] When the receiving target value determining module receives a user instruction, it is configured to:
[0075] Receive a user instruction input by the user based on the master control interface.
[0076] Optionally, when the master control interface presenting module presents the master control interface, it is configured to perform the following steps:
[0077] Generate at least one control according to at least one preset parameter type, and present a master control page based on the at least one control;
[0078] And / or, generate at least one control according to the adjustable parameter types of at least one device, and present a master control page based on the at least one control.
[0079] Optionally, the method further includes:
[0080] A schematic message presenting module, configured to present a schematic message, the schematic message being used to present the correspondence between the parameter values and the schematic effects for some or all of the parameter types corresponding to the controls included in the master control interface.
[0081] A third aspect of the present disclosure provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
[0082] A fourth aspect of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the method described in the first aspect is implemented.
[0083] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0084] In the embodiments of the present disclosure, a user instruction for indicating a target value of at least one parameter type is received, a target device set corresponding to the at least one parameter type is determined, and a regulation instruction generated according to the target value of the at least one parameter type is sent to the devices in the target device set, so that the devices adjust the parameter values of the at least one parameter type according to the regulation instruction. The device regulation method provided by the present disclosure can widely achieve unified regulation of devices, improve the convenience of device regulation and the relevance of parameter regulation between different devices, enhance the user experience, and can, based on the above device regulation solution, configure a customized regulation strategy for the user to further enhance the user experience.
[0085] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] The accompanying drawings herein are incorporated into the specification and constitute a part of the present disclosure, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.
[0087] Figure 1 is a flowchart of a device regulation method shown in some exemplary embodiments.
[0088] Figure 2 is a flowchart of another device regulation method shown in some exemplary embodiments.
[0089] Figure 3 is a flowchart of yet another device regulation method shown in some exemplary embodiments.
[0090] Figure 4 is a schematic diagram of a master control interface shown in some exemplary embodiments.
[0091] Figure 5 is a flowchart of yet another device regulation method shown in some exemplary embodiments.
[0092] Figure 6 is a schematic diagram of a schematic message shown in some exemplary embodiments.
[0093] Figure 7 is a block diagram of a device regulation method shown in some exemplary embodiments.
[0094] Figure 8 is a hardware structure diagram of a computer device shown in some exemplary embodiments. DETAILED DESCRIPTION
[0095] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0096] The terms used in the present disclosure are for the purpose of describing particular embodiments only and are not intended to limit the present disclosure. The singular forms "a", "the", and "said" used in the present disclosure and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0097] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to a determination".
[0098] Currently, there are many smart home devices and solutions available for consumers to choose from. Smart homes can be connected to a home network via the Internet, enabling users to control adjustable parameters of smart home devices through devices such as smartphones, tablets, or computers, such as light brightness, light color temperature, temperature, volume, and so on. In the future, smart homes will continue to develop, and more devices and systems will be made intelligent, making home life more intelligent, convenient, and comfortable. During the use of smart home devices, it usually involves the user's unified adjustment requirements for different devices. For example, at night, the user may hope that the lights throughout the house can be dimmed to help with sleep, and when engaging in activities, the user may hope that the lights throughout the house can be brightened to clearly see objects.
[0099] In the related art, the adjustable parameters of each device need to be adjusted separately by the user. For the user, they need to first find the device group where the device is located (such as a home, a room, etc.), then find the controlled device that needs to be adjusted in the device group, and in the control interface of the controlled device, adjust the parameters that need to be adjusted. The operation is cumbersome, and there is a lack of scheduling relevance between different devices of the same type, resulting in a poor user experience.
[0100] In view of this, the present disclosure provides a device control method, apparatus, computer equipment and storage medium.
[0101] The device control method provided by the present disclosure can be run at the operating system level or at the application level. For the convenience of description, the present disclosure may use "master control device" to refer to the operating subject of the device control method, and use "smart home device" to refer to the device that can receive the control of the device control method, but these words should not limit the application scope of the present disclosure. The embodiments of the present disclosure are described in detail below.
[0102] The first aspect of the present disclosure provides a device control method. Figure 1 , which comprises the following steps:
[0103] Step S101: receiving a user instruction, where the user instruction is used to indicate a target value of at least one parameter type.
[0104] Specifically, the user instruction can be input by the user through voice, or it can be input by the user based on the control presented on the device; the former can issue user instructions by voice when the user is inconvenient to directly operate the master control device, which has a wider application scenario and is more friendly to the visually impaired; and the latter will be described in detail in other embodiments of the present disclosure. The target value can be an absolute parameter or a proportional parameter (such as a percentage). In addition, the target value can have a preset reference range (such as 1%-100%, where each 1% is a gear), so that the user can indicate the target value of at least one parameter type by directly entering a proportional parameter (such as 80%).
[0105] Step S102, for each parameter type in the at least one parameter type, determine the target device set corresponding to each parameter type, and generate a control instruction corresponding to each device in the target device set according to the target value of each parameter type, and send each control instruction to the corresponding device so that the device adjusts the parameter value of the at least one parameter type according to the corresponding control instruction.
[0106] Among them, the set of target devices corresponding to the at least one parameter type may be a preset total device set (for example, all smart home devices in a family or a room, or smart home devices registered with the same device manufacturer account, or smart home devices associated with the carrier based on which the user enters a user instruction, where the carrier may be a control presented by a master control device), and is a set composed of devices having adjustable parameters corresponding to the at least one parameter type; in addition, the user instruction may further indicate a set of controlled devices, then for each parameter type in the at least one parameter type, determining the set of target devices corresponding to each parameter type may include, for each parameter type in the at least one parameter type, determining the set of target devices corresponding to each parameter type within the set of controlled devices. Specifically, the set of controlled devices may be directly specified by the user (for example, smart home devices with a specified location information in a certain room, or a user-defined device group), or may be implied when the user enters a user instruction based on a certain control or context. For example, if the user enters a user instruction based on the bedroom interface presented by the master control device, it may be considered that the set of controlled devices indicated by the current user instruction is all smart home devices with the location information of "bedroom".
[0107] It should be understood that when the at least one parameter type includes multiple parameter types, the set of target devices (or the set of controlled devices and the set of target devices) may be determined respectively according to each parameter type in the multiple parameter types, and the method steps provided in the present disclosure may be repeatedly executed for each parameter type in the at least one parameter type.
[0108] The regulation instruction is generated according to the target value of the at least one parameter type. For example, the target value and the parameter type corresponding to the target value may be used as the regulation instruction and sent to the corresponding device, or after the target value is converted according to a preset function, a regulation instruction is generated based on the regulation value generated after the conversion of the target value and the parameter type corresponding to the regulation value, and the regulation instruction is sent to the corresponding device. Preferably, in step S102, a corresponding regulation instruction may be generated according to each device in the set of target devices, and each regulation instruction is sent to the corresponding device.
[0109] In the embodiments of the present disclosure, the master control device receives a user instruction for indicating the target values of at least one parameter type, determines the target device set corresponding to the at least one parameter type, and sends the regulation instruction generated according to the target values of the at least one parameter type to the devices in the target device set, so that the devices adjust the parameter values of the at least one parameter type according to the regulation instruction. The device regulation method provided by the present disclosure can widely achieve unified regulation of devices, improve the convenience of device regulation and the relevance of parameter regulation between different devices, enhance the user experience, and can configure customized regulation strategies for users based on the above device regulation scheme, further enhancing the user experience.
[0110] In some embodiments of the present disclosure, refer to Figure 2 , the method further includes:
[0111] Step S201, determine the parameter conversion relationship corresponding to the at least one parameter type according to the at least one parameter type;
[0112] The generating the regulation instruction corresponding to each device in the target device set according to the target value of each parameter type includes:
[0113] Determine the regulation value of the device according to the target value of each parameter type and the parameter conversion relationship of each parameter type, and generate the regulation instruction corresponding to the device according to the regulation value.
[0114] In other words, different parameter types can have different parameter conversion relationships. For example, the brightness value of a light can be represented in the form of a percentage, while the air conditioner temperature is usually represented in the form of an absolute value. The embodiments of the present disclosure can convert the target value input by the user into a regulation value applicable to the corresponding type of device based on the parameter conversion relationship corresponding to at least one parameter type, and generate a regulation instruction based on the regulation value, thereby further enhancing the user experience and the accuracy of device regulation. In addition, when the target device set includes multiple devices, preferably, the regulation value and regulation instruction corresponding to each device in the target device set can be determined respectively based on the corresponding parameter conversion relationship, and each regulation instruction can be sent to the corresponding device respectively, so that the corresponding device regulates the corresponding parameter of the device according to the regulation instruction.
[0115] Specifically, the present disclosure also provides exemplary parameter type classification methods and corresponding parameter conversion relationships. Next, four exemplary parameter types and corresponding parameter conversion relationships will be described respectively.
[0116] Parameter conversion relationship corresponding to the first type:
[0117] Determine the relative change amount of the target value according to the target value and the current parameter value of the reference range of the target value; determine the regulation value of the first device according to the first difference, the second difference and the relative change amount, wherein the first difference represents the difference between the upper limit of the first range and the current parameter value of the first device, the second difference represents the difference between the upper limit of the reference range and the current parameter value of the reference range, the first range is the adjustable range corresponding to the parameter type of the first device, and the first device is the device corresponding to the first type.
[0118] The reference range is the value range of the target value indicated by the user instruction. Optionally, the reference range can be presented to the user so that the user can input a user instruction based on the reference range and ensure that the target value does not exceed the reference range. Preferably, the first type can be a parameter type used to express "degree" (such as the working intensity of a device), such as light brightness, etc. These parameters usually have a preset parameter range (such as 0% to 100%), and the two endpoints (i.e., the lower limit and the upper limit) of the parameter range have different meanings, that is, the lower limit usually represents that the device stops operating completely, and the upper limit usually represents that the device works at the maximum power; if the state of the device is regarded as only two states of "off" and "on", then the lower limit of the parameter range represents the "off" state, and the upper limit of the parameter range and the part of the parameter range other than the two endpoints represent the "on" state. Therefore, in the above conversion relationship, the upper limits of the first range and the reference range are taken as the calculation parameters of the first difference and the second difference, so as to ensure that when the user adjusts the parameter of the first type to the upper limit, the regulation value can be determined as the upper limit of the first range of each device. For example, when the user adjusts the light to the highest brightness, all the lights in the target device set are adjusted to the highest brightness.
[0119] The specific calculation formula of the regulation value of the first device can be set according to the actual situation. Exemplarily, the third difference can be obtained by subtracting the second difference from the first difference, and the product of the third difference and the preset coefficient can be accumulated to the relative change amount to obtain the regulation value.
[0120] Exemplarily again, the determining the regulation value of the first device according to the first difference, the second difference and the relative change amount includes:
[0121] Determine the product of the ratio of the first difference to the second difference and the relative change amount as the regulation value of the first device.
[0122] That is, taking the upper limit of the first range as L max1 and the upper limit of the reference range as L max and the current parameter value of the first device as L 1If the current parameter value of the reference range is L and the relative change is ΔL, for example, the adjustment value ΔL of the first device can be calculated by the following formula 1 .
[0123]
[0124] Among them, other equivalent calculation formulas can be obtained by transforming the above formula. For example, the adjustment value can be determined according to the proportion of the relative change within the second difference, and the change amount represented by the corresponding proportion of the first difference is used as the adjustment value. In addition, in the above description, the adjustment value represents a relative quantity (for example, increasing the brightness of lamp A by 5%). In actual application, the adjustment value representing the relative quantity can also be added to the current parameter value of the first device to obtain an adjustment value representing an absolute quantity, or based on other further processing methods, an adjustment value suitable for the specific adjustment strategy of the first device (such as the voltage, power, etc. corresponding to the adjustment value) can be obtained. The present disclosure does not limit this, and at the same time, this principle also applies to other embodiments of the present disclosure. In addition, according to the different actual meanings of the parameters, the "upper limit" in the above parameter conversion relationship can also be the "lower limit". In different actual scenarios, different parameters and parameter conversion relationships set based on the above ideas do not affect the present disclosure from achieving its original technical effects.
[0125] It should be noted that in actual application, different treatments can be made for the cases where the target value is greater than 0 and equal to 0 to avoid the situation of division by zero. For example, when the user adjusts the brightness value of the lamp to 0%, a turn-off command is directly issued to the lamps in the target device set. When the user adjusts the brightness value of the lamp to other values except 0%, the corresponding adjustment value is calculated, and an adjustment command is generated according to the adjustment value. Another example is that the lower limit of the reference range can be set to 1% or other non-zero values, so that the user will not set the parameter to zero when adjusting the first parameter. For the relevant reasons, please refer to the foregoing relevant content and will not be elaborated here.
[0126] Parameter conversion relationship corresponding to the second type:
[0127] According to the proportional position of the target value within the reference range of the target value, the parameter value indicated by the corresponding proportional position within the first range is determined as the adjustment value of the second device, where the first range is the adjustable range of the corresponding parameter type of the second device, and the second device is the device corresponding to the second type.
[0128] Preferably, the second type may include parameter types with different gear division granularities for different devices, such as the wind speed gears of devices like fans and air conditioners, and the volume gears of different audio devices. The proportional position is the proportion of the position of the target value within the reference range to the reference range. This proportion can be a percentage or other parameters representing proportions. Preferably, the reference range corresponding to the target value can cover the parameter gears of the device with the smallest adjustment granularity among the devices with the same adjustable parameter in the target device set. For example, taking the case where the user issues a control instruction containing the target value of the fan wind speed (i.e., the at least one parameter type includes the fan wind speed), first, in the total device set (or the controlled device set or other device sets), determine the smart home devices that can adjust the fan wind speed as the target device set; if the target device set (or the total device set, controlled device set, etc. described in the present disclosure) contains two fans, Fan A has 5 wind speed gears and Fan B has 3 wind speed gears, then the parameter range of the target value can be from 1 to 5, where each integer represents a gear; when the target value is the 2nd gear, the proportion of the 2nd gear in the parameter range is 40%, then it can be determined that the control value of the gear of Fan A is the 2nd gear, and the control value of Device B is
[0129] the gear (the floor function here can also be the ceiling function or the adjacent gear obtained by other calculation methods).
[0130] The parameter conversion relationship corresponding to the third type:
[0131] In the case where the target value does not exceed the first range, determine the control value of the third device as the target value, where the first range is the adjustable range of the corresponding parameter type of the third device;
[0132] In the case where the target value exceeds the first range, determine the control value of the third device as the value in the first range that is closest to the target value, where the third device is the device corresponding to the third type.
[0133] The third type may include parameter types that represent absolute physical quantities but have inconsistent adjustable ranges, such as the color temperature of a light. The color temperature is usually characterized by thermodynamic temperature, and the adjustable ranges of the color temperature parameters of each lamp in the target device set may not be the same. Preferably, the reference range of the target value can cover the adjustable ranges of the color temperature parameters of all devices in a total device set (preferably, the total device set covers the target device set), and then the control value is determined based on the above parameter conversion method. For example, if the user inputs a user instruction indicating the target value of the color temperature, and the target device set includes two lamps, lamp A and lamp B, in a room, the adjustable range of the color temperature of lamp A is 2500K to 3500K, and the adjustable range of the color temperature of lamp B is 3000K to 4000K, then the reference range of the target value can be set to 2500K to 4000K. If the target value is 3200K, then the control values of the color temperatures of lamp A and lamp B can both be determined to be 3200K. If the target value is 3800K, then the control value of the color temperature of lamp A can be determined to be 3500K, and the control value of the color temperature of lamp B can be determined to be 3800K.
[0134] The parameter conversion relationship corresponding to the fourth type:
[0135] Determine the target value as the control value of the fourth device, where the fourth device is the device corresponding to the fourth type.
[0136] The fourth type may include parameter types that represent absolute physical quantities, such as temperature parameters like the temperature of an air conditioner or a heater, humidity parameters like the humidity of an air conditioner or a humidifier, and component position parameters like the position of a curtain or a movable socket. These parameter types usually have unity throughout the house (or the whole room) (for example, the temperature setting in a room usually remains the same, and the opening and closing position of the curtain in a room usually remains the same), and the target value can be directly used as the control value of the fourth device.
[0137] The above embodiments provide various exemplary parameter type divisions and corresponding parameter conversion relationships, which are adapted to devices of various parameter types, providing a unified adjustment and scheduling scheme for the whole-house smart home devices, improving the usability and universality of the device control method, and further enhancing the user experience. It should be understood that in the actual application process, the type division and parameter conversion relationships of different parameter types and different smart home devices can be set according to the actual situation or determined in response to user instructions. For example, if the performance or temperature adjustable range of the whole-house air conditioners is not the same, then according to the actual situation, the parameter conversion relationship of the first type, the second type, or the third type can be used to calculate the temperature parameters of the air conditioners. The present disclosure does not limit this.
[0138] In some embodiments of the present disclosure, please refer to Figure 3, the method further includes:
[0139] Step S301, presenting a master control interface, the master control interface including controls corresponding to the at least one parameter type, the controls being used to adjust the parameter values of the corresponding parameter types, and the controls having a reference range of the corresponding parameter type;
[0140] Please refer to Figure 4 , the master control page 400 includes controls corresponding to the adjustable parameters of the smart home devices in three rooms, namely the living room, the master bedroom, and the secondary bedroom, which are respectively the control 401 corresponding to the fan speed, the control 402 corresponding to the air conditioner temperature, the control 403 corresponding to the light brightness, and the control 404 corresponding to the light color temperature. Among them, the controls can be presented in the form of a slider (also called a Slider) (i.e., Figure 4 the form of the controls shown in), or can be presented in the form of a selection menu (such as a drop-down menu), a text input box, etc., and the present disclosure does not limit this. Preferably, the controls have a reference range of the corresponding parameter type, which can be a default or conventional reference range (such as the 0% to 100% light brightness reference range corresponding to the control 403), or can be determined according to the adjustable parameter range of the devices in a device set (for example, if the device set includes two lights with adjustable color temperature ranges of 2500K to 3500K and 3000K to 4000K, then the reference range of the controls corresponding to the color temperature ranges of the two lights can be set to 2500K to 4000K, so that the reference range covers the adjustable range of the corresponding parameters of the smart home devices in the device set), and is presented to the user (for example, marked on both sides of the control, this method is not shown in Figure 4 ). In addition, the master control interface can also include the current parameter value of the reference range (such as the current parameter value "20%" represented by the slider position of the control 403), so as to provide a more intuitive reference for the user.
[0141] After presenting the master control interface, the user can input a user instruction based on the master control interface (that is, the receiving of the user instruction includes receiving the user instruction input by the user based on the master control interface). For example, the user adjusts the total light brightness of the smart home devices in the master bedroom from 20% to 30% by dragging the slider on the control 403.
[0142] Based on the above embodiments, the master control device can present a friendly interaction interface (master control interface) for the user, and enable the user to input a user instruction based on the interaction interface, realizing the unified control of the same type of devices, with convenient, intuitive, and highly usable operations, further improving the user experience. In addition, the above embodiments can be combined with other embodiments in the present disclosure, so as to meet the user's requirement of controlling one or more smart home devices through a single master control instruction through a friendly and intuitive interaction interface.
[0143] In some embodiments of the present disclosure, the presentation of the overall control interface includes:
[0144] Generating at least one control based on at least one preset parameter type, and presenting an overall control page based on the at least one control;
[0145] And / or, generating at least one control based on the adjustable parameter types of at least one device, and presenting an overall control page based on the at least one control.
[0146] Wherein, at least the at least one device may be the aforementioned overall device set, controlled device set, target device set or other device sets. The above embodiments give the specific generation method of the overall control interface, enabling users to more conveniently input user instructions through the pre-presented overall control interface, improving the user experience.
[0147] In some embodiments of the present disclosure, please refer to Figure 5 ., the method further includes:
[0148] Step S501, presenting a schematic message for presenting the correspondence between parameter values and schematic effects for some or all of the parameter types corresponding to the controls included in the overall control interface.
[0149] Please refer to Figure 6 The shown schematic diagram. Among them, the schematic message 600 is the schematic message corresponding to the light brightness, where the left side is darker and the right side is brighter, showing the correspondence between the parameter values at different brightness percentages and the schematic effects of the light brightness. Other parameter types such as light color temperature and light color can also present the correspondence between different parameter values and schematic effects. Preferably, the parameter values presented by the schematic message can cover the reference range of the target value indicated by the user instruction. The specific presentation effect of the schematic message can be presented in the form of a parameter bar (such as the schematic message 600), or presented in the form of animation, audio, etc. In this embodiment, by presenting the schematic message, the target sense and intuitiveness when the user inputs a user instruction are improved, further improving the user experience.
[0150] Corresponding to the embodiments of the foregoing method, the present disclosure also provides embodiments of a device and a terminal to which the device is applied.
[0151] The second aspect of the present disclosure provides a device control device. Please refer to Figure 7 ., the device includes:
[0152] A target value determination module 701, configured to receive a user instruction for indicating a target value of at least one parameter type;
[0153] A regulation module 702, for each parameter type among the at least one parameter type, determines a target device set corresponding to each parameter type, generates a regulation instruction corresponding to each device in the target device set according to the target value of each parameter type, and sends each regulation instruction to the corresponding device, so that the device adjusts the parameter value of the at least one parameter type according to the corresponding regulation instruction.
[0154] Optionally, the user instruction is further used to indicate a set of controlled devices;
[0155] When the regulation module 702 is used to determine, for each parameter type among the at least one parameter type, a target device set corresponding to each parameter type, it is used for:
[0156] For each parameter type among the at least one parameter type, within the set of controlled devices, determine a target device set corresponding to each parameter type.
[0157] Optionally, the method further includes:
[0158] A conversion relationship determination module, for each parameter type among the at least one parameter type, determines a parameter conversion relationship corresponding to each parameter type;
[0159] When the regulation module 702 is used to generate a regulation instruction corresponding to each device in the target device set according to the target value of each parameter type, it is used for:
[0160] According to the target value of each parameter type and the parameter conversion relationship of each parameter type, determine the regulation value of the device, and generate a regulation instruction corresponding to the device according to the regulation value.
[0161] Optionally, the at least one parameter type includes a first type, and the parameter conversion relationship corresponding to the first type includes:
[0162] Determine the relative change amount of the target value according to the target value and the current parameter value of the reference range of the target value;
[0163] Determine the regulation value of the first device according to a first difference, a second difference and the relative change amount, where the first difference represents the difference between the upper limit of a first range and the current parameter value of the first device, the second difference represents the difference between the upper limit of the reference range and the current parameter value of the reference range, the first range is the adjustable range of the corresponding parameter type of the first device, and the first device is the device corresponding to the first type.
[0164] Optionally, determining the adjustment value of the first device according to the first difference, the second difference, and the relative change amount includes:
[0165] Determining the product of the ratio of the first difference to the second difference and the relative change amount as the adjustment value of the first device.
[0166] Optionally, the parameter type indicated by the user instruction includes a second type, and the parameter conversion relationship corresponding to the second type includes:
[0167] According to the proportional position of the target value within the reference range of the target value, determining the parameter value indicated by the corresponding proportional position within a first range as the adjustment value of the second device, where the first range is the adjustable range of the corresponding parameter type of the second device, and the second device is the device corresponding to the second type.
[0168] Optionally, the parameter type indicated by the user instruction includes a third type, and the parameter conversion relationship corresponding to the third type includes:
[0169] When the target value does not exceed a first range, determining the adjustment value of the third device as the target value, where the first range is the adjustable range of the corresponding parameter type of the third device;
[0170] When the target value exceeds the first range, determining the adjustment value of the third device as the value in the first range that is closest to the target value, where the third device is the device corresponding to the third type.
[0171] Optionally, the parameter type indicated by the user instruction includes a fourth type, and the parameter conversion relationship corresponding to the fourth type includes:
[0172] Determining the target value as the adjustment value of the fourth device, where the fourth device is the device corresponding to the fourth type.
[0173] Optionally, the at least one parameter type includes at least one of the following:
[0174] First type, second type, third type, fourth type;
[0175] Among them, the first type includes light brightness;
[0176] The second type includes wind speed;
[0177] The third type includes color temperature;
[0178] The fourth type includes at least one of the following:
[0179] Temperature, humidity, component position.
[0180] Optionally, the method further includes:
[0181] A master control interface presentation module, configured to present a master control interface, where the master control interface includes controls corresponding to the at least one parameter type, the controls are used to adjust the parameter values of the corresponding parameter types, and the controls have a reference range of the corresponding parameter types;
[0182] When the receiving target value determination module 701 is used for receiving a user instruction, it is configured to:
[0183] Receive a user instruction input by the user based on the master control interface.
[0184] Optionally, when the master control interface presentation module is used for presenting the master control interface, it is configured to perform the following steps:
[0185] Generate at least one control according to at least one preset parameter type, and present a master control page based on the at least one control;
[0186] And / or, generate at least one control according to the adjustable parameter types of at least one device, and present a master control page based on the at least one control.
[0187] Optionally, the method further includes:
[0188] A schematic message presentation module, configured to present a schematic message, where the schematic message is used to present the corresponding relationship between parameter values and schematic effects for some or all of the parameter types corresponding to the controls included in the master control interface.
[0189] The implementation processes of the functions and roles of each module in the above device are specifically described in detail in the implementation processes of the corresponding steps in the above method, and will not be elaborated here.
[0190] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiments described above are only illustrative. The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place, or may be distributed to multiple network modules. Some or all of the modules can be selected according to actual needs to achieve the purpose of the present disclosure solution. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0191] In a third aspect, the embodiments of the device for device control provided by the present disclosure can be applied to a computer device. Please refer to the appendix Figure 8, which exemplarily shows a hardware schematic diagram of a computer device. For example, device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0192] Device 800 may include one or more of the following components: processing component 801, memory 802, power component 803, multimedia component 804, audio component 805, input / output (I / O) interface 806, sensor component 807, and communication component 808.
[0193] The processing component 801 generally controls the overall operation of the device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 801 may include one or more processors 809 to execute instructions to complete all or part of the steps of the above methods. In addition, the processing component 801 may include one or more modules to facilitate the interaction between the processing component 801 and other components. For example, the processing component 801 may include a multimedia module to facilitate the interaction between the multimedia component 804 and the processing component 801.
[0194] The memory 802 is configured to store various types of data to support the operation of the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 802 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0195] The power component 803 provides power to various components of the device 800. The power component 803 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0196] The multimedia component 804 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 804 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0197] The audio component 805 is configured to output and / or input audio signals. For example, the audio component 805 includes a microphone (MIC) that is configured to receive external audio signals when the device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 802 or transmitted via the communication component 808. In some embodiments, the audio component 805 further includes a speaker for outputting audio signals.
[0198] The I / O interface 806 provides an interface between the processing component 801 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0199] The sensor component 807 includes one or more sensors for providing a status assessment of various aspects of the device 800. For example, the sensor component 807 can detect the on / off state of the device 800, the relative positioning of components, such as the display and keypad of the device 800. The sensor component 807 can also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor component 807 can also include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 807 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 807 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0200] The communication component 808 is configured to facilitate communication between the device 800 and other devices in a wired or wireless manner. The device 800 can access a communication standard-based wireless network, such as WiFi, 2G or 3G, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 808 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 808 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0201] In an exemplary embodiment, the device 800 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the device control method of the above computer device.
[0202] Fourthly, in an exemplary embodiment of the present disclosure, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 802 including instructions, and the above instructions can be executed by a processor 809 of the device 800 to complete the device control method of the above computer device. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0203] The above describes specific embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired result. Additionally, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown to achieve the desired result. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0204] Those skilled in the art will readily conceive of other embodiments of the present disclosure after considering the specification and practicing the invention herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not claimed in the present disclosure. The specification and embodiments are only to be considered exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0205] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
[0206] The above are only the preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present disclosure shall be included within the scope of protection of the present disclosure.
Claims
1. A device control method, characterized in that, the method includes: receiving a user instruction for indicating a target value of at least one parameter type; for each parameter type in the at least one parameter type, determining a target device set corresponding to each parameter type, generating a control instruction corresponding to each device in the target device set according to the target value of each parameter type, and sending each control instruction to the corresponding device, so that the device adjusts the parameter value of the at least one parameter type according to the corresponding control instruction.
2. The device control method according to claim 1, characterized in that, the user instruction is further used to indicate a controlled device set; the determining, for each parameter type in the at least one parameter type, a target device set corresponding to each parameter type includes: for each parameter type in the at least one parameter type, determining a target device set corresponding to each parameter type within the controlled device set.
3. The device control method according to claim 1, characterized in that, the method further includes: for each parameter type in the at least one parameter type, determining a parameter conversion relationship corresponding to each parameter type; the generating, according to the target value of each parameter type, a control instruction corresponding to each device in the target device set includes: determining a control value of the device according to the target value of each parameter type and the parameter conversion relationship of each parameter type, and generating a control instruction corresponding to the device according to the control value.
4. The device control method according to claim 3, characterized in that, the at least one parameter type includes a first type, and the parameter conversion relationship corresponding to the first type includes: determining a relative change amount of the target value according to the target value and a current parameter value of a reference range of the target value; determining a control value of a first device according to a first difference, a second difference and the relative change amount, wherein the first difference represents a difference between an upper limit of a first range and a current parameter value of the first device, the second difference represents a difference between an upper limit of the reference range and a current parameter value of the reference range, the first range is an adjustable range of a corresponding parameter type of the first device, and the first device is a device corresponding to the first type.
5. The device control method according to claim 4, characterized in that, the determining, according to the first difference, the second difference and the relative change amount, the control value of the first device includes: determining a product of a ratio of the first difference to the second difference and the relative change amount as the control value of the first device.
6. The device control method according to claim 3, characterized in that, the parameter type indicated by the user instruction includes a second type, and the parameter conversion relationship corresponding to the second type includes: Determine that the parameter value indicated by the corresponding proportional position within the first range is the regulation value of the second device according to the proportional position of the target value within the reference range of the target value, where the first range is the adjustable range of the corresponding parameter type of the second device, and the second device is the device corresponding to the second type.
7. The device regulation method according to claim 3, characterized in that the parameter types indicated by the user instruction include a third type, and the parameter conversion relationship corresponding to the third type includes: When the target value does not exceed the first range, determine that the regulation value of the third device is the target value, where the first range is the adjustable range of the corresponding parameter type of the third device; When the target value exceeds the first range, determine that the regulation value of the third device is the value closest to the target value within the first range, and the third device is the device corresponding to the third type.
8. The device regulation method according to claim 3, characterized in that the parameter types indicated by the user instruction include a fourth type, and the parameter conversion relationship corresponding to the fourth type includes: Determine that the target value is the regulation value of the fourth device, and the fourth device is the device corresponding to the fourth type.
9. The device regulation method according to any one of claims 1 to 8, characterized in that the at least one parameter type includes at least one of the following: a first type, a second type, a third type, a fourth type; wherein, the first type includes light brightness; the second type includes wind speed; the third type includes color temperature; the fourth type includes at least one of the following: temperature, humidity, component position.
10. The device regulation method according to claim 1, characterized in that the method further includes: Present a master control interface, the master control interface includes controls corresponding to the at least one parameter type, the controls are used to regulate the parameter values of the corresponding parameter types, and the controls have a reference range of the corresponding parameter types; The receiving the user instruction includes: Receiving a user instruction input by the user based on the master control interface.
11. The device regulation method according to claim 10, characterized in that the presenting the master control interface includes: Generating at least one control according to at least one preset parameter type, and presenting a master control page based on the at least one control; and / or, generating at least one control according to the adjustable parameter types of at least one device, and presenting a master control page based on the at least one control.
12. The device regulation method according to claim 10, characterized in that the method further includes: Presenting a schematic message, the schematic message is used to present the corresponding relationship between the parameter value and the schematic effect for some or all of the parameter types corresponding to the controls included in the master control interface.
13. A device regulation device, characterized in that the device includes: A target value determination module, configured to receive a user instruction, where the user instruction is used to indicate the target value of at least one parameter type; A regulation module, for each parameter type in the at least one parameter type, to determine a target device set corresponding to each parameter type, generate a regulation instruction corresponding to each device in the target device set according to a target value of each parameter type, and send each regulation instruction to a corresponding device, so that the device adjusts a parameter value of the at least one parameter type according to the corresponding regulation instruction.
14. A computer device, characterized in that it includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 12 is implemented.
15. A computer-readable storage medium, on which a computer program is stored, characterized in that when the program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.