Control logic configuration method and device, electronic equipment and storage medium

CN122945437APending Publication Date: 2026-10-20BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510450699.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-10
Publication Date
2026-10-20

AI Technical Summary

Technical Problem

[0004]然而,相关技术基于设备需求配置的操控配件,通常仅能够用于控制相应的设备,且两者之间必须采用相同的协议,缺乏灵活性

Benefits of technology

[0028]根据本公开的第七方面,提供一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如第一方面或第二方面所述方法的步骤。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0005354059060000011
    Figure HDA0005354059060000011
  • Figure HDA0005354059060000012
    Figure HDA0005354059060000012
  • Figure HDA0005354059060000021
    Figure HDA0005354059060000021
Patent Text Reader

Abstract

This disclosure relates to a control logic configuration method, apparatus, electronic device, and storage medium. The method includes: upon receiving a configuration instruction, determining a control accessory and a controlled device corresponding to the control logic to be configured based on the configuration instruction; obtaining the accessory adjustment range of the control accessory and the device adjustment range of the controlled device, and constructing a mapping relationship between the accessory adjustment amplitude of the control accessory and the device adjustment amplitude of the controlled device based on the accessory adjustment range and the device adjustment range; wherein the mapping relationship is used to determine the device adjustment amplitude of the controlled device based on the accessory adjustment amplitude corresponding to the drive information received from the control accessory, so as to adjust the controlled device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of terminal technology, and in particular to a control logic configuration method and apparatus, electronic device, and storage medium. Background Technology

[0002] With the continuous development of terminal technology, the number of devices with adjustable parameters is constantly increasing. For example, smart desk lamps that can adjust brightness and smart curtains that can control the opening and closing range have emerged.

[0003] To facilitate the adjustment of parameters of such smart devices, they are usually equipped with dedicated control accessories such as knobs, based on their characteristics, so that users can make adjustments.

[0004] However, the control accessories based on the equipment requirements of the related technologies can usually only be used to control the corresponding equipment, and the two must use the same protocol, which lacks flexibility. Summary of the Invention

[0005] This disclosure provides a control logic configuration method and apparatus, electronic device, and storage medium, which can avoid the problem of fixed control relationship between control accessories and controlled equipment, resulting in a lack of flexibility.

[0006] According to a first aspect of this disclosure, a control logic configuration method is provided, comprising:

[0007] Upon receiving a configuration instruction, the control accessory and controlled device corresponding to the control logic to be configured are determined according to the configuration instruction.

[0008] Obtain the adjustment range of the control accessory and the adjustment range of the controlled device, and based on the adjustment range of the accessory and the adjustment range of the device, construct a mapping relationship between the adjustment range of the control accessory and the adjustment range of the controlled device;

[0009] The mapping relationship is used to determine the device adjustment range of the controlled device based on the adjustment range of the accessory corresponding to the driving information when the driving information of the control accessory is received, so as to adjust the controlled device.

[0010] According to a second aspect of this disclosure, a device control method is provided, comprising:

[0011] In response to the drive information reported by the target control accessory being driven, the control logic configured for the target control accessory is obtained, wherein the control logic records the mapping relationship between the accessory adjustment range of the target control accessory and the device adjustment range of the controlled device it controls.

[0012] The adjustment range of the target control accessory is determined based on the drive information, and the device adjustment range corresponding to the drive information is determined based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range.

[0013] According to a third aspect of this disclosure, a control logic configuration apparatus is provided, comprising:

[0014] Upon receiving a configuration instruction, the determining unit determines the control accessory and controlled device corresponding to the control logic to be configured based on the configuration instruction.

[0015] The construction unit obtains the accessory adjustment range of the control accessory and the device adjustment range of the controlled device, and constructs a mapping relationship between the accessory adjustment range of the control accessory and the device adjustment range of the controlled device based on the accessory adjustment range and the device adjustment range.

[0016] The mapping relationship is used to determine the device adjustment range of the controlled device based on the adjustment range of the accessory corresponding to the driving information when the driving information of the control accessory is received, so as to adjust the controlled device.

[0017] According to a fourth aspect of this disclosure, a device control apparatus is provided, comprising:

[0018] The acquisition unit, in response to the drive information reported by the target control accessory being driven, acquires the control logic configured for the target control accessory, wherein the control logic records the mapping relationship between the accessory adjustment range of the target control accessory and the device adjustment range of the controlled device it controls.

[0019] The adjustment unit determines the adjustment range of the target control accessory caused by being driven according to the drive information, and determines the device adjustment range corresponding to the drive information based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range.

[0020] According to a fifth aspect of this disclosure, a smart knob is provided, comprising:

[0021] The knob body is used to be rotated to generate rotation information;

[0022] The processing module is used to acquire and record the rotation information;

[0023] The rotation information is used to determine the device adjustment range corresponding to the rotation information based on a pre-configured mapping relationship between the rotation range of the smart knob and the device adjustment range of the controlled device, so as to adjust the controlled device according to the device adjustment range.

[0024] According to a sixth aspect of this disclosure, an electronic device is provided, comprising:

[0025] processor;

[0026] Memory used to store processor-executable instructions;

[0027] The processor implements the method as described in the first or second aspect by running the executable instructions.

[0028] According to a seventh aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the steps of the method as described in the first or second aspect.

[0029] According to the eighth aspect of this disclosure, a computer program product is provided, comprising a computer program that, when executed by a processor, implements the method as described in the first or second aspect.

[0030] In the technical solution disclosed herein, upon receiving a configuration command, the control accessory and the controlled device corresponding to the control logic to be configured can be determined based on the configuration command. The adjustment range of the control accessory and the adjustment range of the controlled device are then obtained. Based on the obtained adjustment ranges, a mapping relationship is constructed between the adjustment amplitude of the control accessory and the adjustment amplitude of the controlled device. Furthermore, when the control accessory is driven, the adjustment amplitude of the controlled device can be determined based on this mapping relationship and the drive information of the control accessory, thereby adjusting the controlled device.

[0031] It should be understood that this disclosure essentially allows the control relationship between the control accessory and the controlled device to be configured by sending configuration commands. This enables users to configure different control logics according to their own needs, avoiding the problem of fixed and inflexible control relationships between control accessories and devices in related technologies. Furthermore, this disclosure achieves parameter mapping between the control accessory and the controlled device by recording the mapping relationship between the accessory's adjustment range and the device's adjustment range. This mapping can be implemented by a third party distinct from both the control accessory and the controlled device, avoiding the problem in related technologies where the control accessory directly controls the controlled device, leading to protocol-restricted control relationships and the inability to perform cross-protocol control between control accessories and devices using different protocols. Attached Figure Description

[0032] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0033] Figure 1 This is a flowchart illustrating a control logic configuration method according to an exemplary embodiment of this disclosure;

[0034] Figure 2 This is a flowchart illustrating a device control method according to an exemplary embodiment of the present disclosure;

[0035] Figure 3 This is a schematic diagram illustrating an exemplary embodiment of the present disclosure of a smart knob;

[0036] Figure 4 This is a schematic diagram illustrating a device control architecture according to an exemplary embodiment of the present disclosure;

[0037] Figure 5 This is an interaction diagram illustrating a control logic configuration method according to an exemplary embodiment of this disclosure;

[0038] Figure 6 This is an interactive diagram illustrating a device control method according to an exemplary embodiment of this disclosure;

[0039] Figure 7 This is a block diagram illustrating a control logic configuration device according to an exemplary embodiment of the present disclosure;

[0040] Figure 8 This is a block diagram illustrating a device control apparatus according to an exemplary embodiment of the present disclosure;

[0041] Figure 9 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0042] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0043] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0044] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0045] With the advent of the era of intelligent technology, users' control over various devices is no longer limited to simply turning them on and off, but can now make more detailed adjustments. For example, many lighting fixtures now allow users to adjust their brightness.

[0046] In related technologies, such devices are typically equipped with control accessories such as knobs to allow users to operate them. Taking a lamp as an example, a knob can be installed on the lamp so that users can adjust the brightness of the lamp by turning the knob.

[0047] It is not difficult to see that the relevant technology is equivalent to configuring a dedicated control accessory for the device according to its needs. On the one hand, the control relationship between the control accessory and the device is fixed, and the control accessory is only used to control the device and cannot change the device controlled by the control accessory; on the other hand, the communication protocol used by the control accessory and the device must be consistent, otherwise, it is difficult to control the device.

[0048] To address this issue, this disclosure proposes a control logic configuration method to avoid the problem in related technologies where the control relationship between the control accessories and the equipment is fixed, making it impossible to change the equipment controlled by the control accessories and resulting in a lack of flexibility.

[0049] Figure 1 This disclosure illustrates a control logic configuration method as an exemplary embodiment. For example... Figure 1 As shown, the method may include the following steps:

[0050] Step 102: Upon receiving a configuration instruction, determine the control accessory and controlled device corresponding to the control logic to be configured based on the configuration instruction.

[0051] As described above, when configuring control accessories for devices, related technologies typically base the configuration on the device's requirements. One crucial factor to consider when configuring control accessories is whether the communication protocols supported by both devices are compatible. Only when they are compatible can the control accessories be used to control the corresponding device. For example, if a knob only supports Bluetooth communication while a device only supports WiFi, the knob cannot be used to control the device.

[0052] It is not difficult to see that the reason why the control relationship between the control accessories and the equipment in the relevant technologies is fixed and lacks flexibility is, on the one hand, because the relevant technologies are based on the equipment and the control accessories are configured according to the needs of the equipment; on the other hand, the control accessories configured for the equipment directly control the equipment, and the communication between the two is limited by the protocol.

[0053] Therefore, this disclosure no longer configures control accessories based on equipment requirements, but directly configures control logic for control accessories and controlled equipment based on configuration commands initiated by user requirements. During the configuration process, a mapping relationship is constructed between the adjustment range of the control accessory and the adjustment range of the controlled equipment, as indicated by the configuration command, to serve as the control logic for the control accessory and the controlled equipment.

[0054] It should be understood that, since the control relationship between the control accessories and the controlled equipment is configured according to the configuration instructions, the user can change the control relationship between the control accessories and the controlled equipment by initiating the configuration instructions, thus avoiding the problem of fixed and inflexible control relationship between the control accessories and the controlled equipment in related technologies.

[0055] In addition, the control logic configured in this disclosure includes a mapping relationship between the adjustment range of the control accessory and the adjustment range of the controlled device. This allows the control logic, once deployed on any device, to directly convert between the adjustment range of the accessory and the adjustment range of the device based on this mapping relationship, thereby achieving control of the controlled device. Under this premise, only the device needs to have the communication capability with both the control accessory and the controlled device, without requiring direct communication between the control accessory and the controlled device. This avoids the problem in related technologies where the control logic between the control accessory and the controlled device is limited by their communication protocols.

[0056] Before introducing the technical solutions disclosed herein, the terminology used in this disclosure will be introduced first:

[0057] In this disclosure, the term "control accessory" refers to an accessory that can be driven by a user for amplitude adjustment, which can be a continuous control accessory such as a knob or a segmented control accessory such as a lever. The term "controlled device" refers to a device whose at least one parameter can be adjusted, such as a lamp, curtain, or air conditioner. The term "control logic to be configured" refers to the control logic that needs to be configured but has not yet been configured, as indicated by the configuration command. The term "configured control logic" refers to the control logic configured based on the configuration command, including the control relationship between the "control accessory and the controlled device" and the "mapping relationship between the adjustment amplitude of the accessory and the adjustment amplitude of the device." The term "drive information" refers to the information generated when the control accessory is driven.

[0058] In this disclosure, configuration commands can be initiated by the user based on their own terminal. For example, after a user terminal connects to a home network, it can identify the configurable control accessories and controlled devices in the network. Based on this, the user can select the control accessories and controlled devices to initiate a configuration command to configure the control accessory for controlling the controlled device.

[0059] Of course, the examples given here are merely illustrative. How to determine the configurable control accessories and controlled devices can be determined by those skilled in the art based on actual needs. For example, the terminal can display the device and accessory options that the user may possess, provided by the manufacturer, so that the user can select the devices and control accessories they possess. The devices and control accessories selected by the user can then be used as configurable controlled devices and control accessories. When the user needs to configure control logic, they can select from the configurable control accessories and controlled devices. This disclosure does not impose any restrictions on this.

[0060] In addition, configuration commands may not be initiated by the user. For example, the manufacturer may preset automatic configuration logic in the terminal, so that after the user terminal connects to a specific network, it can initiate configuration commands for the control accessories and controlled devices included in the network based on the automatic configuration logic. Another example is that the manufacturer's technicians may pre-customize the control logic according to the user's needs during the equipment manufacturing stage. In this case, the initiator of the configuration command may also be the technician. This disclosure does not impose any restrictions on this.

[0061] In this disclosure, the control accessories can have multiple operating modes. Under this premise, the configuration instructions can also include configuration information for multiple operating modes.

[0062] In one embodiment, when the controlled device in the configuration instruction includes multiple adjustment parameters, at least one adjustment parameter of the controlled device can be specified for each of the various operating modes. Based on this, after receiving the configuration instruction, it can also be determined that the configuration instruction specifies the adjustment parameters of the controlled device for each of the various operating modes, and each operating mode and its corresponding adjustment parameter are recorded in the above mapping relationship. In this case, the mapping relationship can be used to determine the current operating mode of the control accessory based on the drive information received from the control accessory, so as to adjust the adjustment parameter corresponding to the current operating mode.

[0063] For example, suppose the control accessory is a knob with three modes: "press," "normal," and "pull up." The controlled device is a lamp with three adjustable parameters: "brightness," "color temperature," and "beam angle." Then, the configuration command can also include the correspondence between the three operation modes ("press-brightness," "normal-color temperature," and "pull-beam angle") and the adjustable parameters. These three correspondences can be recorded in the aforementioned mapping relationship as part of the configured control logic. Based on this, if any device has this mapping relationship recorded, and if it determines from the drive information that the knob is in the "pressed" state, the user wants to adjust the parameter "brightness." At this point, a control command can be issued to adjust the lamp's brightness.

[0064] In another embodiment, indication information of the operating mode corresponding to the controlled device can be added to the configuration instruction. Under this premise, after receiving the configuration instruction, the operating mode corresponding to the controlled device can also be recorded in the mapping relationship. In this case, the mapping relationship can be used to adjust the controlled device when the drive information from the control accessory indicates that the control accessory is in the operating mode corresponding to the controlled device; conversely, if the drive information indicates that it is not in the operating mode corresponding to the controlled device, no control is performed on the controlled device.

[0065] For example, assuming the control accessory is a knob with three modes: "press," "normal," and "pull," and the controlled device is a lamp, the configuration command could also include an instruction to "configure the press mode as the condition for the knob to control the lamp." Upon receiving the configuration command, this instruction would be recorded in the "knob and lamp" mapping. Based on this, if any device has this mapping recorded, and if it determines from the drive information that the knob is in the "press" state, the device the user wants to adjust is the lamp recorded in the mapping, and can then issue a control command to adjust the lamp.

[0066] Of course, the above examples are merely illustrative. When the control accessories include multiple operating modes, the specific configuration of the operating mode can be determined by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on this.

[0067] In this disclosure, the configuration instruction may also record a "time period for instructing the control accessory indicated in the instruction to control the controlled device indicated in the instruction." Under this premise, upon receiving the aforementioned configuration instruction, the time period can be recorded in the mapping relationship. Based on this, the mapping relationship can be used to adjust the controlled device recorded in the mapping relationship when the drive information received from the control accessory indicates that the current time is within the time period recorded in the mapping relationship.

[0068] For example, assuming the configuration command specifies a knob as the control accessory and "Bedroom Curtain D" as the controlled device, the user can add a time period of "7-8 AM" to the configuration command according to their own usage habits. This indicates that during the "7-8 AM" time period, "Bedroom Curtain D" will be configured as the controlled device of the knob. Under this premise, any device that has recorded this mapping relationship can adjust Bedroom Curtain D when it receives the knob's drive information indicating that the current time is "7-8 AM".

[0069] In this disclosure, the control accessory can also be configured with multiple switches. Under this premise, the configuration instruction can also include the status information of the switch corresponding to the controlled device indicated in the configuration instruction, so that upon receiving the configuration instruction, this status information is also recorded in the mapping relationship. Based on this, when the drive information of the control accessory indicates that "the switch corresponding to the controlled device in the mapping relationship among the control accessories is triggered," the controlled device recorded in the mapping relationship can be adjusted.

[0070] Of course, the above examples are merely illustrative. The components of the control accessories and how to configure such components can be configured by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on this.

[0071] Step 104: Obtain the adjustment range of the control accessory and the adjustment range of the controlled device, and based on the adjustment range of the accessory and the adjustment range of the device, construct a mapping relationship between the adjustment amplitude of the control accessory and the adjustment amplitude of the controlled device; wherein, the mapping relationship is used to determine the adjustment amplitude of the controlled device according to the adjustment amplitude of the accessory corresponding to the driving information when the driving information of the control accessory is received, so as to adjust the controlled device.

[0072] In this disclosure, during the process of configuring the mapping relationship according to the configuration instructions, various methods can be used to construct the mapping relationship between the adjustment range of the accessory and the adjustment range of the equipment.

[0073] In one embodiment, after obtaining the adjustment range of the control accessory as indicated by the configuration command and the adjustment range of the controlled device, the scaling ratio between the adjustment range of the control accessory and the adjustment range of the controlled device can be determined and recorded. Based on this, the scaling ratio can be used to calculate the adjustment range of the controlled device according to the adjustment range of the accessory corresponding to the drive information. In other words, the scaling ratio calculated in this embodiment is used as a "mapping relationship between the adjustment range of the accessory and the adjustment range of the device".

[0074] In another embodiment, after obtaining the adjustment range of the control accessory as indicated by the configuration command and the adjustment range of the controlled device, the mapping relationship between the accessory adjustment range and the device adjustment range can be directly recorded as a mapping relationship between the accessory adjustment amplitude and the device adjustment amplitude. Based on this, upon receiving drive information, the accessory adjustment amplitude of the control accessory can be determined based on the content recorded in the drive information, and the proportion of the accessory adjustment amplitude in the accessory adjustment range can be calculated. The device adjustment amplitude can then be calculated based on this proportion and the device adjustment range, and the controlled device can be adjusted based on the device adjustment amplitude.

[0075] Of course, the above examples are merely illustrative. The specific information recorded as a mapping relationship between the adjustment range of the accessory and the adjustment range of the equipment can be determined by those skilled in the art based on actual needs. For example, based on the adjustment range of the accessory and the adjustment range of the equipment, the correspondence between each scale of the control accessory and each adjustment value of the controlled equipment can be recorded as a mapping relationship between the adjustment range of the accessory and the adjustment range of the equipment. This disclosure does not impose any restrictions on this.

[0076] In this disclosure, when the control accessory has data processing capabilities, it can act as the executing entity for "controlling the controlled device according to the configured control logic." In this case, a communication link can be established between the control accessory indicated by the aforementioned mapping relationship and the controlled device. Based on this, the aforementioned mapping relationship can be sent to the control accessory, so that upon receiving the drive information from the control accessory, the control accessory can determine the device adjustment range of the controlled device according to the accessory adjustment range corresponding to the drive information, and thus adjust the controlled device.

[0077] Of course, this example is merely illustrative. In most cases, the execution entity that controls the controlled device based on the configured control logic is usually independent of the controlled device and the control accessories. As mentioned above, this method can avoid the problem of not being able to configure the control relationship between the two due to the inconsistency in the communication protocols between the control accessories and the controlled device. Which device performs the control operation based on the configured control logic can be determined by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on this.

[0078] In this disclosure, certain configurations can also be made for the control accessories. For example, the configuration command can also include drive information reporting rules set for the control accessories. Under this premise, after receiving the configuration command, the drive information reporting rules can be sent to the control accessories so that the control accessories can report drive information according to the reporting rules when being driven.

[0079] In this disclosure, the reporting rule may include at least one of the following: the reporting frequency of drive information, the reporting mode of drive information, the setting content of each operation mode of the control accessory, the function setting of at least one switch on the control accessory, and the accessory adjustment range calculation rule for calculating the equivalent adjustment range based on the drive speed and drive amplitude.

[0080] The reporting modes for drive information can include continuous reporting and final value reporting. Continuous reporting means that drive information is reported continuously during the user's operation of the accessory, while final value reporting means that drive information is reported only after the user has finished operating the accessory. The settings for each operation mode can be the adjustment parameters or controlled devices corresponding to "press," "normal," and "pull up," as described above. The function setting for at least one switch on the accessory can be the configuration information of the controlled devices corresponding to each switch of the accessory, as described above. The accessory adjustment range calculation rule refers to the rule for calculating the equivalent adjustment range of the accessory based on its drive speed and physical drive range. For example, assuming 2 represents the full speed of the accessory, the speed when the user adjusts the accessory can be represented by any value from "0" to "2." Therefore, the rule can be "equivalent adjustment range = drive speed * drive range." If the user adjusts the accessory at full speed 2, the actual adjustment range can be multiplied by two, and the calculated equivalent adjustment range can be written into the drive information for reporting. Of course, the examples given here are merely illustrative. The specific content that needs to be reported in the driving information can be set by those skilled in the art according to actual needs, and this disclosure does not impose any restrictions on it.

[0081] It is worth noting that when using the continuous reporting mode to report drive information, the action of the control accessory in reporting drive information is related to the current drive stage. For example, if the control accessory is a knob, the entire drive process of the knob can include three drive stages: "normal angle reporting stage," "static waiting stage," and "stop confirmation stage." In the normal angle reporting stage, the knob rotates continuously under user control, constantly reporting the angle generated by the drive. In the static waiting stage, the knob stops rotating, but angles are still reported at the same frequency, for example, for 1 second. If the knob is detected to be rotated again in this stage, it re-enters the "normal angle reporting stage." Conversely, if the knob is not detected to be rotated again in this stage, it enters the "stop confirmation stage." In this stage, even if the knob rotates again, the angle generated by the rotation is no longer reported. Of course, this example is only illustrative. How to report drive information can be set by those skilled in the art according to actual needs, and this disclosure does not limit this.

[0082] It should be stated that the implementing entity of this disclosed technical solution can be any type of electronic device. For example, the electronic device can be a mobile terminal such as a smartphone or tablet computer, or a fixed terminal such as a smart TV or PC (personal computer). It should be understood that any electronic device or other carrier with certain data analysis capabilities for configuring the above mapping relationship, such as the cloud or server cluster, can serve as the implementing entity of this disclosure. The specific carrier used as the implementing entity of this disclosed technical solution can be determined by those skilled in the art based on actual needs, and this disclosure does not impose any restrictions on it.

[0083] It is worth noting that when the execution entity of the above control logic configuration method is the cloud, rapid synchronization can be achieved through the cloud, simplifying the configuration operation in some scenarios. Conversely, when the execution entity of the above control logic configuration method is the local gateway device, rapid configuration of local devices and control accessories can be realized.

[0084] As can be seen from the above technical solution, this disclosure configures the control relationship between the control accessory and the controlled device through configuration commands. Therefore, users can change the control relationship between the control accessory and the controlled device by initiating configuration commands, thus avoiding the problem of fixed control relationship between the control accessory and the controlled device and lack of flexibility in related technologies.

[0085] Furthermore, this disclosure enables the control of the controlled device by configuring a mapping relationship between the adjustment range of the accessory and the adjustment range of the device. This allows the control of the controlled device to be directly achieved based on the mapping relationship when the mapping relationship is deployed on any device that is different from the control accessory and the controlled device, without the need to establish communication between the control accessory and the controlled device. This avoids the problem in related technologies where the control logic between the control accessory and the controlled device is limited by their communication protocols.

[0086] This disclosure also proposes a device control method, which can adjust the controlled device based on the control logic configured by the configuration method described above, according to the driving status of the control accessories.

[0087] It is worth noting that the control method of this device only introduces the technical solution of this disclosure from the perspective of the control end. It is only a different perspective from the configuration method introduced above. Some operation methods, such as how to configure during the configuration stage and what the configuration information includes, have been introduced in the configuration method described above. Please refer to the above description and they will not be repeated in the control method described below.

[0088] It should also be noted that the executing entity of the above configuration method and the executing entity of the control method described below may be the same or different, and may be determined by those skilled in the art according to actual needs. This disclosure does not impose any restrictions on this.

[0089] Figure 2 This is a flowchart illustrating a device control method as an exemplary embodiment of the present disclosure. Figure 2 As shown, the method may include the following steps:

[0090] Step 202: In response to the drive information reported by the target control accessory being driven, obtain the control logic configured for the target control accessory, wherein the control logic records the mapping relationship between the accessory adjustment range of the target control accessory and the device adjustment range of the controlled device it controls.

[0091] In this disclosure, after the configuration is completed through the above configuration method, the configured control logic can be deployed to any execution entity, so that the execution entity can receive the drive information reported when the control accessory is driven, and issue control commands to the corresponding controlled device according to the drive information.

[0092] As described above, the executing entity of the configuration method and the executing entity of the device control method can be the same or different. For example, the executing entity of both can be the smart gateway of the home network, or the executing entity of the configuration method can be the cloud, while the executing entity of the device control method can be the smart gateway. This disclosure does not impose any restrictions on this.

[0093] In this disclosure, the target control accessory refers to a user-driven control accessory. After deploying the control logic configured above to any execution entity, when a user drives a certain control accessory, that control accessory can be identified as the target control accessory currently driven by the user. The target control accessory can report the drive information generated by the drive. Upon receiving the drive information, this disclosure can obtain the control logic configured in the above manner, and control the controlled device according to the mapping relationship recorded in the control logic. For example, the accessory adjustment range generated by the target control accessory being driven can be determined first based on the reported drive information, and then the device adjustment range corresponding to the drive information can be determined based on the accessory adjustment range and the above mapping relationship, and then the controlled device can be adjusted according to the device adjustment range.

[0094] As mentioned above, the target control accessory can have multiple operating modes and can be configured with multiple switches. Correspondingly, the control logic can record settings for these multiple operating modes or settings for these multiple switches. Based on this, in addition to determining the adjustment range of the controlled equipment, operations such as determining the controlled equipment and adjusting parameters can also be performed. The specific operation methods can be referred to the above description and will not be repeated here.

[0095] In this disclosure, the adjustment range of the target control accessory on the target device can be determined in a variety of ways based on the drive information.

[0096] In one embodiment, the drive information reported by the target control accessory may include the accessory adjustment range of the target control accessory. Under this premise, upon receiving the drive information, the device adjustment range of the controlled device can be directly determined based on the accessory adjustment range contained in the drive information and the mapping relationship recorded in the control logic.

[0097] For example, assuming the target control accessory is a knob, the drive information can include the change in scale caused by the knob's rotation. Based on this, and assuming the recorded mapping relationship is the scaling ratio mentioned above, the device change can be calculated directly based on this change in scale and the scaling ratio. For instance, if the controlled device recorded in the mapping relationship is a lamp, and the recorded scaling ratio is 1:2, in this case, if the user rotates the knob by 20 degrees to increase the scale, the lamp can increase its brightness by 40.

[0098] In another embodiment, the drive information reported by the target control accessory may not include the accessory adjustment range, but rather the absolute value of the parameters of the target control accessory after it is driven. In this embodiment, after receiving the drive information, the accessory adjustment range caused by the target control accessory being driven can be calculated based on the absolute value of the parameters of the target control accessory after it is driven and the recorded absolute value of the parameters of the target control accessory when it is not driven. Then, based on the mapping relationship between the accessory adjustment range and the recorded data, the device adjustment range of the controlled device can be determined.

[0099] For example, taking the target control accessory as a knob and the controlled device as a lamp, assuming the drive information contains the scale value after the user rotates the knob, then upon receiving the drive information, the change in the knob's scale can be calculated based on the scale value read from the drive information and the recorded original scale value of the knob. Assuming the above mapping relationship is recorded in a scaling manner, the brightness adjustment value of the lamp can be calculated based on the scaling ratio and the change in scale.

[0100] It should be understood that the user's operation of the target control accessory may be discontinuous. For example, if the target control accessory is a knob, the user may not hold the knob properly, causing the knob to slip and thus perform two rotation operations. In this case, the knob will report two drive information. If the reported information is the adjustment change amount as in the previous embodiment, then if the first drive information is lost, the adjustment range will not match the user's operation. However, in this embodiment, since the reported information is the absolute value of the parameter after drive, and the basis for calculating the adjustment range is the absolute value of the parameter and the absolute value of the parameter when not driven, it is unrelated to the lost drive information. Therefore, even if the first drive information is lost, the adjustment range of the accessory can be accurately calculated, which matches the range of the knob driven by the user.

[0101] Step 204: Determine the adjustment range of the target control accessory caused by being driven according to the drive information, and determine the device adjustment range corresponding to the drive information based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range.

[0102] In this disclosure, the control logic may also record the control conditions for the target control accessory to control the controlled device. Based on this, before adjusting the controlled device recorded in the mapping relationship, condition judgment needs to be performed first. For example, the current state of the target control accessory can be determined based on the drive information. If the current state meets the control conditions, the device adjustment range corresponding to the drive information is determined based on the determined accessory adjustment range and mapping relationship, so as to adjust the controlled device according to the device adjustment range.

[0103] The control conditions recorded in the control logic can be at least one of the switch, time period, and operating mode set for the target control accessory. For example, the control logic can record the switch corresponding to the controlled device included in the mapping relationship. The control condition can be that the switch is activated. Then, only when the switch corresponding to the controlled device is activated, the controlled device is adjusted based on the drive information of the target control accessory. The same applies when other information is recorded in the control logic, as described above, and will not be repeated here.

[0104] As can be seen from the above technical solution, the execution subject of the above equipment control method can adjust the equipment according to the pre-configured control logic. Therefore, when adopting the technical solution of this disclosure, the control relationship between the control accessories and the controlled equipment can be changed by changing the configured control logic, thus avoiding the problem of the fixed control relationship between the control accessories and the controlled equipment in related technologies.

[0105] Furthermore, since this disclosure achieves device control through configuration of control logic, it can control multiple devices by configuring multiple sets of control logic for the same control accessory. For example, for the aforementioned target control accessory, multiple controllable devices can be configured, and corresponding control conditions can be configured for each controllable device. Under this premise, the current state of the target control accessory can be determined based on the drive information reported by the target control accessory, and the controllable device corresponding to the control conditions satisfied by this state can be identified as the target device to be controlled by the target control accessory. Thus, through the technical solution of this disclosure, multiple controlled devices can be controlled by a single control accessory, avoiding the problem in related technologies where a single control accessory can only control a single device.

[0106] To facilitate understanding of the control components in this disclosure, a smart knob is also proposed.

[0107] It is worth noting that the control accessories in this disclosure have been described in detail in the configuration and control methods described above. The following embodiments only take the knob as an example to further explain the control accessories. Most of the related content, such as how to configure the control logic, what kind of structure the control accessories have, and the configurations that can be made for the control accessories, can be referred to the above description and will not be repeated in the following text.

[0108] Figure 3 This is a schematic diagram illustrating a smart knob as an exemplary embodiment of the present disclosure. Figure 3 As shown, the smart knob may include:

[0109] The knob body 31 is used to be rotated to generate rotation information;

[0110] Processing module 32 is used to acquire and record the rotation information;

[0111] The rotation information is used to determine the device adjustment range corresponding to the rotation information based on a pre-configured mapping relationship between the rotation range of the smart knob and the device adjustment range of the controlled device, so as to adjust the controlled device according to the device adjustment range.

[0112] In this disclosure, the knob body 31 of the smart knob can be rotated to generate rotation information, and the processing module 32 of the smart knob can be used to acquire and record the generated rotation information.

[0113] In this disclosure, the rotation information of the smart knob, which is the drive information of the aforementioned control accessory, is used to determine the knob rotation amplitude caused by the rotation. The knob rotation amplitude and the "mapping relationship between the knob rotation amplitude of the smart knob and the device adjustment amplitude of the controlled device contained in the pre-configured control logic" are used to determine the device adjustment amplitude corresponding to the rotation information, so as to adjust the corresponding controlled device according to the device adjustment amplitude.

[0114] In cases where the main body responsible for executing the aforementioned equipment control method, which incorporates the control logic described above, is distinct from the smart knob, the rotation information generated by rotating the knob body 31 can be reported to the execution body of the control method, allowing it to control the corresponding controlled equipment. The reporting of this rotation information can be handled by the processing module 32.

[0115] For example, the entity responsible for executing the above-mentioned device control method can be a gateway device. Based on this, the processing module 32 can report rotation information to the gateway device, which, according to a pre-configured mapping relationship between the rotation amplitude of the smart knob and the device adjustment amplitude of the controlled device, determines the device adjustment amplitude corresponding to the rotation information and adjusts the controlled device according to this adjustment amplitude.

[0116] Of course, if the smart knob has data processing capabilities, it can also control the controlled device itself. In this case, the aforementioned control logic is deployed in the processing module 32 of the smart knob, and the smart knob may also include a communication module 33. Under this premise, the processing module 32 can determine the device adjustment range corresponding to the rotation information based on the pre-configured mapping relationship between the rotation range of the smart knob and the device adjustment range of the controlled device; while the communication module 33 can establish a communication link with the controlled device and send the determined device adjustment range to the controlled device through the communication link, so that the controlled device can adjust according to the device adjustment range.

[0117] As described above, the knob body 31 can include multiple operating modes. Based on this, different adjustment parameters can be configured for different operating modes during the configuration phase. After configuration, the knob body 31 contains multiple operating modes corresponding to various parameters of the controlled device. In this case, the rotation information can also include the current operating mode when the smart knob is rotated, so that the rotation information can be used to determine the target adjustment parameter corresponding to the current operating mode. After determining the target adjustment mode, the adjustment operation for the controlled device can be: adjusting the target adjustment parameter of the controlled device according to the determined device adjustment range.

[0118] In this disclosure, the knob body 31 may also be equipped with multiple buttons to serve as switches on the aforementioned control accessories. As described above, different control devices can be configured for different cases during the configuration phase, so that the multiple buttons on the knob body 31 correspond to different controlled devices. Under this premise, if any button is pressed, it indicates that the smart knob is used to control the controlled device corresponding to that button.

[0119] As described above, when the execution entity of the aforementioned control method differs from the smart knob, the processing module 32 can report rotation information according to preset reporting rules. These reporting rules may include at least one of the following: the reporting frequency of rotation information, the reporting mode of rotation information, the settings for each operation mode of the smart knob, the function setting of at least one button on the smart knob, and a knob rotation amplitude calculation rule for calculating the equivalent rotation amplitude based on rotation speed and rotation amplitude. The specific contents of each reporting rule have been described above and will not be repeated here.

[0120] It is worth noting that when using the continuous reporting mode to report drive information, the intelligent knob's action of reporting rotation information is related to the current drive stage. For example, the entire drive process of the knob can include three drive stages: "normal angle reporting stage," "stationary waiting stage," and "stop confirmation stage." In the normal angle reporting stage, the knob rotates continuously under user control, constantly reporting the angle generated by the drive. In the stationary waiting stage, the knob stops rotating, but angles are still reported at the same frequency, for example, for 1 second. If the knob is detected to be rotated again in this stage, it re-enters the "normal angle reporting stage." Conversely, if the knob is not detected to be rotated again in this stage, it enters the "stop confirmation stage," where even if the knob rotates again, the angle generated by the rotation is no longer reported. Of course, this example is only illustrative. How to report rotation information can be set by those skilled in the art according to actual needs, and this disclosure does not limit this.

[0121] The following section will introduce the above configuration method using the example of "the execution subject of the configuration method is the cloud".

[0122] Figure 4 This is a schematic diagram illustrating a device control architecture as an exemplary embodiment of this disclosure. Figure 4 As shown, in this architecture, in addition to the knob and many home appliances, there are also three execution entities: the cloud 41, the smart gateway 42, and the smartphone 43.

[0123] The smart gateway 42 can transmit information with a range of devices in the network, such as home appliances and knobs. It's worth noting that the devices in this network communicate using two technologies: BLE (Bluetooth Low Energy) and WiFi.

[0124] In this embodiment, before configuring the control logic, the user can download and install the control logic configuration application from the cloud 41 using their smartphone 43. After installation, the application can identify home devices on the network and display them, allowing the user to configure the control logic as needed.

[0125] Figure 5 This is an interaction diagram illustrating a control logic configuration method as an exemplary embodiment of this disclosure. (See diagram below.) Figure 5 As shown, the method may include the following steps:

[0126] Step 501: Smartphone 43 generates configuration information based on user selection.

[0127] In this embodiment, after completing the installation of the control logic configuration application, configurable knobs and home appliances can be displayed in the control logic so that users can control the devices by selection.

[0128] For example, based on Figure 4 The architecture shown allows the application to display two configurable knobs, a "BLE knob" and a "WiFi knob," and four configurable home devices, a "WiFi light," a "WiFi curtain," a "BLE curtain," and a "BLE light." Furthermore, if the knob includes multiple operating modes and multiple buttons, it can also include configuration options for multiple operating modes and multiple buttons. For example, assuming the "BLE knob" includes two buttons, X and Y, buttons X and Y can be configured with corresponding home devices to achieve the effect of controlling two devices with a single knob. Further, the "BLE knob" can also include two operating modes, "press" and "normal," allowing for the setting of corresponding adjustment parameters for each mode.

[0129] For example, if the user selects "BLE knob", "button X", "WiFi light", "press", and "brightness", then configuration information can be generated to represent that "the BLE knob is used to control the WiFi light when button X is pressed, and in the pressed operation mode, it is used to adjust the brightness of the WiFi light".

[0130] Step 502: The smartphone 43 uploads the configuration information to the cloud 41.

[0131] In this embodiment, after the smartphone 43 generates configuration information based on the user's selection information, it can upload the configuration information to the cloud 41, so that the cloud 41 can generate control logic based on the configuration information.

[0132] Step 503: Cloud 41 generates control logic based on configuration information.

[0133] In this embodiment, the cloud 41 can generate the corresponding control logic after receiving the configuration information.

[0134] Following the example above, the generated control logic can consist of multiple sets of mapping relationships. For instance, the configured control logic for the "BLE knob" can be shown in Table 1:

[0135] knob button Home appliances Operating mode Adjust parameters BLE knob X WiFi light Press brightness BLE knob X WiFi light conventional Color temperature BLE knob Y BLE curtains Press Opening degree BLE knob Y BLE curtains conventional high

[0136] Table 1

[0137] In Table 1, the mapping relationship "BLE knob - button X - WiFi light - pressed - brightness" recorded in the first row is the control logic obtained based on the configuration information in the example above. It is used to represent that: when button X is pressed, the BLE knob is used to control the WiFi light, and in the pressed operation mode, it is used to adjust the brightness of the WiFi light. Similarly, the mapping relationship recorded in the second row is used to represent that when button X is pressed, the BLE knob is used to control the WiFi light, and in the normal operation mode, it is used to adjust the color temperature of the WiFi light. The meanings represented by the mapping relationships in the other rows are similar, and will not be repeated here.

[0138] When generating the control logic, it's also necessary to determine the scaling ratio of the adjustment range of the BLE knob and the controlled device. For example, assuming the BLE knob can rotate 360 ​​degrees and the total brightness of the WiFi light is 300 nits, the scaling ratio can be recorded as 300 / 360 = 5 / 6. Similarly, a similar method can be used to determine the scaling ratio when adjusting the color temperature, serving as a mapping relationship for the aforementioned adjustment ranges.

[0139] It is worth noting that the four sets of mapping relationships shown in Table 1 above can be achieved through a single configuration operation or through multiple configuration operations, and this embodiment does not impose any restrictions on this.

[0140] Step 504: The cloud 41 sends the generated control logic to the smart gateway 42.

[0141] Following the example above, the control logic shown in Table 1, obtained through multiple configuration operations, can be sent to the smart gateway 42 for maintenance.

[0142] Step 505: The intelligent gateway 42 maintains the received control logic.

[0143] In this embodiment, after the smart gateway 42 maintains the control logic for each knob, it can control the device based on the maintained control logic.

[0144] It is worth noting that the smartphone 43 can also provide configuration options for the knob in the application. For example, it can be configured with the reporting rules and reporting frequency mentioned above. In this case, the content configured for the knob can also be sent to the corresponding knob, which can then be further executed. Figure 5 The part indicated by the dashed line.

[0145] The following example, using "user-driven BLE knob to control WiFi light," will be used to illustrate the process of "smart gateway 42 adjusting various home devices based on the control logic obtained from the configuration."

[0146] Figure 6 This is an interactive diagram illustrating a device control method as an exemplary embodiment of this disclosure. Figure 6 As shown, the method may include the following steps:

[0147] Step 601: The BLE knob generates rotation information.

[0148] Continuing with the example above, when the user rotates the BLE knob, the BLE knob generates corresponding rotation information. Assume that when the user rotates the BLE knob, button X is pressed, and the knob itself is in a pressed state, with a rotation angle of 30 degrees and a rotation direction of increasing. Then the generated rotation information could be: "Button status: Button X is pressed; Operation mode: Pressed; Rotation angle: 30 degrees; Rotation direction: Increasing."

[0149] Step 602: The BLE knob reports the rotation information to the smart gateway 42.

[0150] Following the example above, after generating the aforementioned rotation information, the BLE knob can report this rotation information to the smart gateway 42 via a communication link built on Bluetooth.

[0151] Step 603: The intelligent gateway 42 queries the control logic based on the rotation information.

[0152] Following the example above, after receiving the rotation information, the smart gateway 42 can look up the control logic shown in Table 1 based on the rotation information to determine how to generate control commands.

[0153] Step 604: The smart gateway 42 determines the controlled device as a WiFi light based on the queried mapping relationship.

[0154] Following the example above, since the rotation information indicates that button X of the BLE knob is in the pressed state, the home appliance to be controlled can be determined to be the WiFi light according to the mapping relationship shown in Table 1.

[0155] Step 605: The intelligent gateway 42 generates control commands based on the rotation information and mapping relationship.

[0156] Following the example above, since the rotation information indicates that the BLE knob is in the pressed mode, the parameter to be adjusted can be determined as brightness according to the mapping relationship shown in Table 1.

[0157] Under this premise, as mentioned earlier, the scaling ratio between the rotation degree of the BLE knob and the brightness of the WiFi light is 5 / 6. Therefore, the brightness adjustment range can be calculated to be 30*5 / 6=25. Accordingly, the generated control command can be "increase the brightness of the WiFi light by 25 nits".

[0158] Step 606: The smart gateway 42 sends control commands to the WiFi light.

[0159] Continuing with the example above, the smart gateway 42 can send control commands to the WiFi light via the WiFi network, so that the WiFi light can increase its brightness by 25 nits.

[0160] Step 607: The WiFi light adjusts its parameters according to the control instructions.

[0161] As can be seen from the above embodiments, if household appliances are directly controlled by a knob, as in related technologies, the BLE knob and the WiFi light, for example, cannot control the WiFi light because they use different communication protocols. However, with the technical solution of this disclosure, even though the BLE knob and the WiFi light use different protocols, the smart gateway 42 records the control logic of both and has both BLE and WiFi communication capabilities. Therefore, the BLE knob in this disclosure can control the WiFi light, avoiding the problem in related technologies where control accessories and devices using different protocols cannot be controlled or adjusted due to communication protocol limitations.

[0162] Figure 7 This is a block diagram illustrating a control logic configuration apparatus according to an exemplary embodiment of this disclosure. (Refer to...) Figure 7 The device includes a determining unit 701 and a constructing unit 702.

[0163] Upon receiving a configuration instruction, the determining unit 701 determines the control accessory and controlled device corresponding to the control logic to be configured based on the configuration instruction.

[0164] The construction unit 702 obtains the accessory adjustment range of the control accessory and the device adjustment range of the controlled device, and constructs a mapping relationship between the accessory adjustment range of the control accessory and the device adjustment range of the controlled device based on the accessory adjustment range and the device adjustment range.

[0165] The mapping relationship is used to determine the device adjustment range of the controlled device based on the adjustment range of the accessory corresponding to the driving information when the driving information of the control accessory is received, so as to adjust the controlled device.

[0166] Optionally, the control accessory includes multiple operating modes; the determining unit 701 is also used for:

[0167] The configuration instructions are determined to be the adjustment parameters of the controlled device specified for each of the various operating modes, and each operating mode and its corresponding adjustment parameters are recorded in the mapping relationship;

[0168] The mapping relationship is used to determine the current operating mode of the control accessory based on the driving information received from the control accessory, so as to adjust the adjustment parameters corresponding to the current operating mode.

[0169] Optionally, the control accessory includes multiple operating modes; the configuration command also includes the operating mode corresponding to the controlled device.

[0170] The construction unit 702 is also used to: record the operation mode corresponding to the controlled device in the mapping relationship;

[0171] The mapping relationship is used to adjust the controlled device when the received drive information of the control accessory indicates that the control accessory is in the operating mode corresponding to the controlled device.

[0172] Optionally, the configuration instructions may further include a time period for indicating the time during which the controlled device is controlled by the control accessory;

[0173] The construction unit 702 is also used to: record the time period in the mapping relationship;

[0174] The mapping relationship is used to adjust the controlled device when the current time indicated by the drive information received from the control accessory is within the time period.

[0175] Optionally, building unit 702 is further used for:

[0176] Based on the adjustment range of the accessory and the adjustment range of the equipment, determine the scaling ratio between the adjustment range of the control accessory and the adjustment range of the controlled equipment, and record the scaling ratio.

[0177] The scaling ratio is used to calculate the device adjustment range of the controlled device based on the accessory adjustment range corresponding to the drive information.

[0178] Optionally, a communication link is established between the control accessory and the controlled device; further comprising:

[0179] The sending unit 703 sends the mapping relationship to the control accessory, so that when the control accessory receives the drive information, it determines the device adjustment range of the controlled device according to the accessory adjustment range corresponding to the drive information, so as to adjust the controlled device.

[0180] Optionally, the configuration instructions also include drive information reporting rules set for the control accessories; the issuing unit 703 is also used for:

[0181] The driving rules are sent to the control accessory so that the control accessory reports driving information according to the driving information reporting rules when it is driven.

[0182] Optionally, the driver information reporting rule includes at least one of the following:

[0183] Drive information reporting frequency;

[0184] The reporting mode of driving information;

[0185] The settings for each operating mode of the control accessory;

[0186] The function setting of at least one switch on the control accessory;

[0187] Component adjustment range calculation rules for calculating the equivalent adjustment range based on drive speed and drive amplitude.

[0188] Figure 8 This is a block diagram illustrating a device control apparatus according to an exemplary embodiment of this disclosure. (Refer to...) Figure 8 The device includes an acquisition unit 801 and an adjustment unit 802.

[0189] The acquisition unit 801, in response to the drive information reported by the target control accessory being driven, acquires the control logic configured for the target control accessory, wherein the control logic records the mapping relationship between the accessory adjustment range of the target control accessory and the device adjustment range of the controlled device it controls.

[0190] The adjustment unit 802 determines the adjustment range of the target control accessory caused by being driven according to the drive information, and determines the device adjustment range corresponding to the drive information based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range.

[0191] Optionally, the control logic also records the control conditions under which the target control accessory controls the controlled device; the adjustment unit 802 is further used for:

[0192] If the current state of the target control accessory is determined to meet the control conditions based on the drive information, the device adjustment range corresponding to the drive information is determined based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range.

[0193] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0194] Accordingly, this disclosure also provides a control logic configuration device, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to implement the control logic configuration method as described in any of the above embodiments, for example, the method may include: upon receiving a configuration instruction, determining, according to the configuration instruction, a control accessory and a controlled device corresponding to the control logic to be configured; obtaining the accessory adjustment range of the control accessory and the device adjustment range of the controlled device, and based on the accessory adjustment range and the device adjustment range, constructing a mapping relationship between the accessory adjustment amplitude of the control accessory and the device adjustment amplitude of the controlled device; wherein, the mapping relationship is used, upon receiving drive information of the control accessory, to determine the device adjustment amplitude of the controlled device according to the accessory adjustment amplitude corresponding to the drive information, so as to adjust the controlled device.

[0195] Accordingly, this disclosure also provides an electronic device, which includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The programs include instructions for implementing the control logic configuration method as described in any of the above embodiments. For example, the method may include: upon receiving a configuration instruction, determining a control accessory and a controlled device corresponding to the control logic to be configured according to the configuration instruction; obtaining the accessory adjustment range of the control accessory and the device adjustment range of the controlled device, and constructing a mapping relationship between the accessory adjustment amplitude of the control accessory and the device adjustment amplitude of the controlled device based on the accessory adjustment range and the device adjustment range; wherein the mapping relationship is used to determine the device adjustment amplitude of the controlled device according to the accessory adjustment amplitude corresponding to the drive information when the drive information of the control accessory is received, so as to adjust the controlled device.

[0196] Accordingly, this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the temperature control method described in any of the above embodiments. For example, the method may include: upon receiving a configuration instruction, determining, according to the configuration instruction, a control accessory and a controlled device corresponding to the control logic to be configured; obtaining the accessory adjustment range of the control accessory and the device adjustment range of the controlled device, and based on the accessory adjustment range and the device adjustment range, constructing a mapping relationship between the accessory adjustment amplitude of the control accessory and the device adjustment amplitude of the controlled device; wherein, the mapping relationship is used, upon receiving drive information from the control accessory, to determine the device adjustment amplitude of the controlled device according to the accessory adjustment amplitude corresponding to the drive information, so as to adjust the controlled device.

[0197] Figure 9 This is a block diagram illustrating an apparatus 900 for implementing a control logic configuration method according to an exemplary embodiment. For example, apparatus 900 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0198] Reference Figure 9 The device 900 may include one or more of the following components: a processing component 902, a memory 904, a power supply component 906, a multimedia component 908, an audio component 910, an input / output (I / O) interface 912, a sensor component 914, and a communication component 916.

[0199] Processing component 902 typically controls the overall operation of device 900, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 902 may include one or more modules to facilitate interaction between processing component 902 and other components. For example, processing component 902 may include a multimedia module to facilitate interaction between multimedia component 908 and processing component 902.

[0200] Memory 904 is configured to store various types of data to support the operation of device 900. Examples of this data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, etc. Memory 904 can 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 storage, flash memory, magnetic disk, or optical disk.

[0201] Power supply component 906 provides power to various components of device 900. Power supply component 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 900.

[0202] Multimedia component 908 includes a screen that provides an output interface between the device 900 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 may be implemented as a touchscreen 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 may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 908 includes a front-facing camera and / or a rear-facing camera. When the device 900 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0203] Audio component 910 is configured to output and / or input audio signals. For example, audio component 910 includes a microphone (MIC) configured to receive external audio signals when device 900 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 904 or transmitted via communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.

[0204] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0205] Sensor assembly 914 includes one or more sensors for providing status assessments of various aspects of device 900. For example, sensor assembly 914 may detect the on / off state of device 900, the relative positioning of components such as the display and keypad of device 900, changes in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, orientation or acceleration / deceleration of device 900, and temperature changes of device 900. Sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 914 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0206] Communication component 916 is configured to facilitate wired or wireless communication between device 900 and other devices. Device 900 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, 4G LTE, 5G NR (New Radio), or combinations thereof. In one exemplary embodiment, communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 916 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0207] In an exemplary embodiment, the apparatus 900 may 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 to perform the methods described above.

[0208] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, which can be executed by a processor 920 of the device 900 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0209] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0210] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

[0211] The above description is merely a preferred embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A control logic configuration method, characterized in that, include: Upon receiving a configuration instruction, the control accessory and controlled device corresponding to the control logic to be configured are determined according to the configuration instruction. Obtain the adjustment range of the control accessory and the adjustment range of the controlled device, and based on the adjustment range of the accessory and the adjustment range of the device, construct a mapping relationship between the adjustment range of the control accessory and the adjustment range of the controlled device; The mapping relationship is used to determine the device adjustment range of the controlled device based on the adjustment range of the accessory corresponding to the driving information when the driving information of the control accessory is received, so as to adjust the controlled device.

2. The method according to claim 1, characterized in that, The control accessories include multiple operating modes; and also include: The configuration instructions are determined to be the adjustment parameters of the controlled device specified for each of the various operating modes, and each operating mode and its corresponding adjustment parameters are recorded in the mapping relationship; The mapping relationship is used to determine the current operating mode of the control accessory based on the driving information received from the control accessory, so as to adjust the adjustment parameters corresponding to the current operating mode.

3. The method according to claim 1, characterized in that, The control accessories include multiple operating modes; the configuration instructions also include the operating mode corresponding to the controlled device. It also includes: recording the operating mode corresponding to the controlled device in the mapping relationship; The mapping relationship is used to adjust the controlled device when the received drive information of the control accessory indicates that the control accessory is in the operating mode corresponding to the controlled device.

4. The method according to claim 1, characterized in that, The configuration instructions also include a time period for indicating the time during which the control accessory controls the controlled device; It also includes: recording the time period in the mapping relationship; The mapping relationship is used to adjust the controlled device when the current time indicated by the drive information received from the control accessory is within the time period.

5. The method according to claim 1, characterized in that, The step of constructing a mapping relationship between the adjustment range of the control accessory and the adjustment range of the controlled equipment based on the adjustment range of the accessory and the adjustment range of the equipment includes: Based on the adjustment range of the accessory and the adjustment range of the equipment, determine the scaling ratio between the adjustment range of the control accessory and the adjustment range of the controlled equipment, and record the scaling ratio. The scaling ratio is used to calculate the device adjustment range of the controlled device based on the accessory adjustment range corresponding to the drive information.

6. The method according to claim 1, characterized in that, A communication link is established between the control accessory and the controlled device; the method further includes: The mapping relationship is sent to the control accessory, so that when the control accessory obtains the drive information of the control accessory, it determines the device adjustment range of the controlled device according to the accessory adjustment range corresponding to the drive information, so as to adjust the controlled device through the communication link.

7. The method according to claim 1, characterized in that, The configuration instructions also include drive information reporting rules set for the control accessories; the method further includes: The drive information reporting rules are sent to the control accessory so that the control accessory sends drive information according to the drive information reporting rules when it is driven.

8. The method according to claim 7, characterized in that, The driver information reporting rule includes at least one of the following: The frequency of driving information reporting; The reporting mode of driving information; The settings for each operating mode of the control accessory; The function setting of at least one switch on the control accessory; Component adjustment range calculation rules for calculating the equivalent adjustment range based on drive speed and drive amplitude.

9. A device control method, characterized in that, include: In response to the drive information reported by the target control accessory being driven, the control logic configured for the target control accessory is obtained, wherein the control logic records the mapping relationship between the accessory adjustment range of the target control accessory and the device adjustment range of the controlled device it controls. The adjustment range of the target control accessory is determined based on the drive information, and the device adjustment range corresponding to the drive information is determined based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range.

10. The method according to claim 9, characterized in that, The control logic also records the control conditions under which the target control accessory controls the controlled device; the step of determining the device adjustment range corresponding to the drive information based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range, includes: If the current state of the target control accessory is determined to meet the control conditions based on the drive information, the device adjustment range corresponding to the drive information is determined based on the determined accessory adjustment range and the mapping relationship, so as to adjust the controlled device according to the device adjustment range.

11. A smart knob, characterized in that, include: The knob body is used to be rotated to generate rotation information; The processing module is used to acquire and record the rotation information; The rotation information is used to determine the device adjustment range corresponding to the rotation information based on a pre-configured mapping relationship between the rotation range of the smart knob and the device adjustment range of the controlled device, so as to adjust the controlled device according to the device adjustment range.

12. The knob according to claim 11, characterized in that, The processing module is further configured to: report the rotation information to a gateway device, so that the gateway device can determine the device adjustment range corresponding to the rotation information based on a pre-configured mapping relationship between the rotation range of the smart knob and the device adjustment range of the controlled device of the smart knob, and adjust the controlled device according to the device adjustment range; or, The processing module is further configured to: determine the device adjustment range corresponding to the rotation information based on a pre-configured mapping relationship between the rotation range of the smart knob and the device adjustment range of the controlled device of the smart knob; The smart knob further includes a communication module, which establishes a communication link with the controlled device and sends the device adjustment range to the controlled device through the communication link so that the controlled device can adjust according to the device adjustment range.

13. The knob according to claim 11, characterized in that, The knob body includes multiple operating modes corresponding to various adjustment parameters of the controlled device; The rotation information includes the current operating mode when the smart knob is rotated; the rotation information is also used to determine the target adjustment parameter corresponding to the current operating mode; adjusting the controlled device according to the device adjustment range includes: adjusting the target adjustment parameter of the controlled device according to the device adjustment range.

14. The knob according to claim 11, characterized in that, Also includes: Multiple buttons are mounted on the knob body; each of the multiple buttons corresponds to a different controlled device; wherein, when any button is pressed, it indicates that the smart knob is used to control the controlled device corresponding to that button; The rotation information also includes the status information of the pressed button, which is used to identify the controlled device corresponding to the pressed button as the device currently controlled by the knob.

15. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor implements the method as described in any one of claims 1-10 by executing the executable instructions.

16. A computer-readable storage medium storing computer instructions thereon, characterized in that, When executed by the processor, this instruction implements the steps of the method as described in any one of claims 1-10.

17. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1-10.