WO2023280028A1 - Linkage control method for internet-of-things device, and terminal, gateway device and system - Google Patents

Linkage control method for internet-of-things device, and terminal, gateway device and system Download PDF

Info

Publication number
WO2023280028A1
WO2023280028A1 PCT/CN2022/102181 CN2022102181W WO2023280028A1 WO 2023280028 A1 WO2023280028 A1 WO 2023280028A1 CN 2022102181 W CN2022102181 W CN 2022102181W WO 2023280028 A1 WO2023280028 A1 WO 2023280028A1
Authority
WO
WIPO (PCT)
Prior art keywords
linkage
trigger
sequence
rules
rule
Prior art date
Application number
PCT/CN2022/102181
Other languages
French (fr)
Chinese (zh)
Inventor
周荣辉
Original Assignee
杭州萤石软件有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 杭州萤石软件有限公司 filed Critical 杭州萤石软件有限公司
Publication of WO2023280028A1 publication Critical patent/WO2023280028A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Definitions

  • the present application relates to the field of Internet of Things device control, and in particular, relates to a method for linkage control of Internet of Things devices, a terminal, a gateway device, and a system.
  • the core of the linkage control of the Internet of Things devices is to diversify the control methods by configuring the combination of multiple trigger conditions and the combination of each trigger condition and trigger target.
  • it is usually judged by adding conditional constraints based on external data, so that linkage control is performed based on the judgment result.
  • linkage control is performed in the smart home system.
  • One configuration of the linkage rules is: when the infrared sensor reaches the set temperature, the trigger lights are turned off, and if it is in the daytime, the curtains are triggered to open. If it is detected that the indoor temperature reaches the set temperature threshold, it will trigger to turn on the air conditioner.
  • daytime and indoor temperature are environmental constraints.
  • the present application provides a method for controlling the linkage of IoT devices, so as to improve the intelligence of the linkage of IoT devices.
  • the present application provides a linkage control method for an Internet of Things device, the method comprising:
  • each linkage rule includes a trigger condition and a trigger target
  • the trigger condition in any linkage rule is at least formed by the execution status of the trigger target in another linkage rule
  • the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order, The execution status of the trigger target returned from each controlled device is received, and when the execution status acquired in sequence matches the trigger sequence, linkage control is performed according to the control logic.
  • the trigger conditions in any of the linkage rules are at least associated through the execution status of the trigger target in another linkage rule, including:
  • the trigger condition in the linkage rule at least includes, based on the state that the trigger target is executed in other linkage rules except the linkage rule; and/or,
  • the state set based on the execution of the trigger target in the linkage rule is used as the trigger condition in other linkage rules except the linkage rule; wherein, for the trigger target with process control, the state is the current progress in process control, The progress includes an intermediate result in process control, or a final result in process control. For a trigger target without process control, the status is the execution result of the trigger target.
  • performing linkage control according to the control logic includes:
  • the first sequence is a sequence composed of previous execution states that match the trigger sequence
  • the second sequence is the trigger sequence from the first element, it is determined that the execution status obtained in turn matches the trigger sequence, and the trigger target is controlled according to the linkage when the current trigger condition is met, and the current first sequence is updated to the second sequence, otherwise, it is determined that the execution status acquired sequentially does not match the trigger sequence, and the trigger linkage is stopped.
  • association relationship is a chain series relationship
  • the trigger conditions in any of the linkage rules are at least associated through the execution status of the trigger target in another linkage rule, including:
  • any linkage rule i it includes a trigger condition i and a trigger target i, the trigger condition i at least includes, based on the state set when the trigger target i-1 in the linkage rule i-1 is executed, the trigger target i is executed
  • the execution setting state is taken as one of the trigger conditions i+1 in the linkage rule i+1, where i is a natural number;
  • the control is performed according to the trigger target linked when the trigger condition is met, including:
  • the gateway When the gateway acquires that the first trigger condition is met at the first moment, it executes the first trigger target linked to the first trigger condition; when the gateway acquires the second trigger condition is met at the second moment, it executes the second The second trigger target linked to the trigger condition; and so on, when the gateway acquires that the i-th trigger condition is satisfied at the i-th moment, it executes the i-th trigger target linked to the i-th trigger condition, wherein each moment is in the time dimension increase sequentially;
  • the sequence formed by the first trigger condition, the second trigger condition... and the i-th trigger condition matches the trigger sequence.
  • the generating control logic according to the association relationship between linkage rules includes:
  • any linkage rule determines the state of the trigger target contained in it being executed, and according to each trigger condition and the trigger target contained in each trigger condition is executed. The chronological order in which states occur, arrange each trigger condition in sequence into a trigger sequence.
  • the two or more linkage rules are an ordered sequence of linkage rules
  • the generation of control logic according to the association relationship between the linkage rules includes:
  • the trigger condition is composed of a trigger sequence according to the linkage rule sequence; the method also includes: when the execution status obtained in sequence does not match the trigger sequence, prohibiting linkage control according to the control logic, querying other linkage rules, if the query is successful, Execute according to the successfully queried linkage rules, otherwise, exit the current linkage control.
  • the present application provides a method for configuring linkage rules of IoT devices, the method comprising:
  • each linkage rule includes a trigger condition and a trigger target
  • the trigger condition in any linkage rule is at least associated with the execution status of the trigger target in another linkage rule, so that all If there is a direct or indirect relationship among the linkage rules mentioned above, the configured linkage rules are sent to the gateway.
  • the method further includes:
  • each linkage rule sort each linkage rule according to the order in which the trigger conditions occur, so that the configured linkage rules have a sequence, obtain the linkage rule sequence, and send the linkage rule sequence to the gateway; or, according to each As for the trigger conditions in the linkage rules, each linkage rule is sorted according to the sequence in which the trigger conditions occur, and each linkage rule is sent to the gateway in sequence.
  • the present application also provides a linkage control method for IoT devices, which is applied to the gateway side, and the method includes:
  • the set of linkage rules includes at least two linkage rules, the at least two linkage rules include header linkage rules and subsequent linkage rules, and each linkage rule includes trigger conditions and The trigger target, the trigger condition in any subsequent linkage rule is at least associated with the execution status of the trigger target in another linkage rule, and there is a direct or indirect relationship between the linkage rules; according to the association relationship between the linkage rules , generating control logic, the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in sequence; receiving the execution status of the trigger target returned from each controlled device; when the sequentially obtained execution status and trigger sequence When matching, carry out linkage control according to the control logic.
  • the present application also provides a method for configuring linkage rules of Internet of Things devices, which is characterized in that it is applied to the terminal side, and the method includes: configuring at least two linkage rules to obtain a linkage rule set, wherein the at least two Each linkage rule includes head linkage rules and subsequent linkage rules.
  • Each linkage rule includes a trigger condition and a trigger target.
  • the trigger condition in any subsequent linkage rule is at least associated with the execution status of the trigger target in another linkage rule.
  • the present application also provides a gateway device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the steps of any linkage control method for the Internet of Things device are realized.
  • the present application further provides a terminal, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the steps of any one of the IoT device configuration methods are implemented.
  • the present application further provides an Internet of Things system, including a terminal for configuring and/or controlling an Internet of Things device, a gateway for linkage and/or group control of an Internet of Things device, and an Internet of Things device, wherein the terminal It is used to realize the steps of any one of the linkage control methods of the Internet of Things devices; the gateway is used to realize the steps of any of the configuration methods of the Internet of Things devices.
  • an Internet of Things system including a terminal for configuring and/or controlling an Internet of Things device, a gateway for linkage and/or group control of an Internet of Things device, and an Internet of Things device, wherein the terminal It is used to realize the steps of any one of the linkage control methods of the Internet of Things devices; the gateway is used to realize the steps of any of the configuration methods of the Internet of Things devices.
  • the IoT system further includes a cloud platform for providing IoT services, the cloud platform is connected to the gateway through the network, transmits configuration signaling and control signaling, and saves the gateway network parameters , and IoT device status.
  • the linkage control method of the Internet of Things device is based on each linkage rule that has a direct or indirect association relationship, and generates control logic including a trigger sequence composed of trigger conditions in each linkage rule in order, so that it can be based on the control logic from each
  • the execution status of the trigger target returned by the control device, and linkage control is carried out according to the control logic, which improves the flexibility of linkage configuration and effectively solves multi-level scene linkage in complex scenarios; using the trigger conditions in any linkage rule at least through another linkage rule
  • the association formed by the execution state of the trigger target makes the execution state of the trigger target play a connecting role in the linkage control process, and also makes full use of the state information in the IoT system, improving the intelligence of the IoT device. It is conducive to enriching the business in the Internet of Things system.
  • Fig. 1 is a schematic flow diagram of realizing the linkage scene of turning off the light in the living room and opening the curtains.
  • FIG. 2 is a schematic flowchart of a method for linkage control of IoT devices in the present application.
  • FIG. 3 is a schematic flowchart of a method for configuring linkage of IoT devices according to the present application.
  • FIG. 4 is a schematic flow diagram of linkage control using the current execution state of the linkage rule as one of the constraint conditions of the next linkage rule.
  • FIG. 5 is a schematic diagram of a smart home system.
  • Fig. 6 is a schematic diagram of a linkage control flow in a scene where the curtains are opened when the lighting is turned off.
  • FIG. 7 is a schematic flowchart of linkage control according to the execution schedule and execution result of the trigger target.
  • FIG. 8 is a schematic diagram of a gateway used to implement linkage control in this application.
  • FIG. 9 is a schematic diagram of a terminal used to implement linkage rule configuration in this application.
  • FIG. 10 is another schematic diagram of a terminal or a gateway
  • FIG. 11 is a schematic diagram of the execution logic of linkage rules in this application.
  • linkage control mostly uses a combination of relatively independent trigger conditions to establish control logic and generate linkage rules, and there is usually no relationship between the trigger conditions and the trigger targets of different linkage rules. This results in no inherent association between linkage rules.
  • FIG. 1 is a schematic flow diagram of realizing the linkage scene of turning off the living room lights and opening the curtains.
  • the user configures the linkage rules through the application terminal, and the linkage rules are sent to the gateway; when the door magnetism and infrared sensors are triggered, the door magnetism and infrared sensors report trigger events to the gateway respectively, and the gateway generates control logic according to the configured linkage rules.
  • the first IoT device used for lighting control is controlled to turn off the lights
  • the second IoT device used for curtain control is controlled to open the curtains.
  • the existing association usually adopts a delay control method. For example, after the gateway controls the first IoT device used for lighting control to turn off the light, start timing. When the set delay time is reached, Control the second IoT device for curtain control to open the curtain. This delay control method reduces the reliability of linkage control.
  • the present application provides a linkage control method for IoT devices.
  • the user configures linkage rules, where there is an association between linkage rules, that is, a linkage rule
  • the current execution status is used as one of the constraints of another linkage rule.
  • the control logic is generated based on the linkage rules configured by the user terminal, and the corresponding linkage control is performed according to the control logic.
  • the trigger sequence formed by sequence combination. That is, the trigger sequence is formed by the orderly combination of the trigger conditions and the states set in the process control of the trigger target.
  • the trigger sequence composed of the trigger condition and the set state in the process control of the trigger target does not match the trigger sequence, at this time, the corresponding control is carried out according to the trigger target linked to the trigger condition itself, and the execution of the trigger target is prohibited.
  • the control logic formed by the trigger sequence After the process control of the trigger target is triggered by means other than non-linkage rules, other rules in the trigger sequence of the control logic will not be started.
  • the trigger sequence of the control logic includes: linkage rule 1, when the infrared sensor reaches the set temperature, trigger to turn off the room lights; linkage rule 2, open the curtains after the room lights are turned off; linkage rule 3, play music when the curtains are opened to 50%.
  • This application combines the trigger conditions themselves and the state of the process control of the trigger target in an orderly manner to form a trigger sequence, so that the gateway device controls the IoT devices linked by each trigger condition according to the trigger sequence, so that the trigger conditions can pass through the process
  • the state in the control is associated, which also makes the state in the process control play a link between the previous and the next, forming a multi-link linkage to achieve an effect similar to that of the Duomi brand, which is conducive to the formation of complex control logic and improves the intelligence of the linkage control of IoT devices .
  • FIG. 2 is a schematic flowchart of a method for linkage control of Internet of Things devices of the present application.
  • the linkage control method includes, on the gateway side:
  • Step 201 receiving more than two linkage rules configured from the terminal, wherein each linkage rule includes a trigger condition and a trigger target, and in the linkage rule set composed of linkage rules, the trigger condition in any linkage rule is at least passed by The execution status of the trigger target in a linkage rule is associated, so that there is a direct or indirect association relationship among the linkage rules.
  • control logic is generated according to the association relationship between linkage rules, and the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in sequence.
  • Step 203 receiving the execution status of the trigger target returned from each controlled device.
  • Step 204 if the execution status obtained in turn matches the trigger sequence, perform linkage control according to the control logic; otherwise, stop triggering linkage, query the remaining linkage rules in the linkage rule set, and execute the query if the query is successful Successful linkage rules, if the query is unsuccessful, exit.
  • FIG. 3 is a schematic flowchart of a method for configuring linkage of IoT devices according to the present application.
  • the method includes, on the terminal side:
  • Step 301 configuring more than two linkage rules, wherein each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least associated with the execution status of the trigger target in another linkage rule, so that the There is a direct or indirect relationship between each linkage rule.
  • the configuration of the above linkage rules can be guided by the user through the application program running on the terminal.
  • Step 302 sending the configured linkage rules to the gateway.
  • the embodiment of the present application also provides a method for linkage control of IoT devices, which is applied to the gateway side, and the method includes:
  • Step 1 receiving a set of linkage rules configured from the terminal, wherein the set of linkage rules includes at least two linkage rules, the at least two linkage rules include head linkage rules and subsequent linkage rules, and each linkage rule includes The trigger condition and the trigger target, the trigger condition in any subsequent linkage rule is at least associated through the execution status of the trigger target in another linkage rule, and there is a direct or indirect relationship between the linkage rules.
  • the head linkage rule is a linkage rule that does not depend on other linkage rules to be triggered in each linkage rule, for example, the linkage rule that is executed first in the execution logic of each linkage rule; the subsequent linkage rules are all linkage rules except the head linkage rule. Other linkage rules.
  • the execution of subsequent linkage rules needs to be triggered based on other linkage rules.
  • the execution status of the trigger target in linkage rule A is associated with the trigger condition in linkage rule B
  • the execution status of the trigger targets in linkage rule B and linkage rule D is associated with the trigger condition in linkage rule C.
  • Linkage rule A and linkage rule D do not rely on other linkage rules to be triggered, so linkage rule A and linkage rule D are head linkage rules; while linkage rule B is triggered by linkage rule A, linkage rule C depends on linkage rule B and linkage rule D Triggered, so linkage rule B and linkage rule C are subsequent linkage rules.
  • the trigger condition in the subsequent linkage rule includes: based on the state that the trigger target in at least one linkage rule other than the subsequent linkage rule is executed; Among them, for the trigger target with process control, the set state is the progress in process control, the progress includes: the intermediate result in process control, or the final result in process control; for the trigger target without process control , the set state is the execution result of the trigger target.
  • Step 2 Generate control logic according to the association relationship between the linkage rules, and the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order.
  • Step 3 receiving the execution status of the trigger target returned from each controlled device.
  • Step 4 when the sequentially acquired execution states match the trigger sequence, perform linkage control according to the control logic.
  • the embodiment of the present application also provides a method for configuring linkage rules of IoT devices, which is applied to the terminal side, and the method includes:
  • Step 1 configure at least two linkage rules to obtain a linkage rule set, wherein the at least two linkage rules include head linkage rules and subsequent linkage rules, each linkage rule includes trigger conditions and trigger targets, and any subsequent linkage rules
  • the trigger conditions in a rule are at least associated through the execution status of the trigger target in another linkage rule, and there is a direct or indirect association relationship between the linkage rules.
  • Step 2 Send the configured linkage rules to the gateway.
  • FIG. 4 is a schematic flowchart of linkage control using the current execution state of the linkage rule as one of the constraint conditions of the next linkage rule.
  • the user configures several linkage rules, among which:
  • Linkage rule 1 includes trigger condition 1 and trigger target 1;
  • the linkage rule 2 includes a trigger condition 2 and a trigger target 2, and the trigger condition 2 includes at least the state 1 set based on the trigger target 1;
  • the linkage rule 3 includes a trigger condition 3 and a trigger target 3, and the trigger condition 3 at least includes a state 2 set based on the trigger target 2;
  • the linkage rule i includes a trigger condition i and a trigger target i, and the trigger condition i includes at least the state i-1 set based on the trigger target i-1; the set state in which the trigger target i is executed is used as the linkage rule i One of the trigger conditions i+1 in +1.
  • i is a natural number.
  • the status can be the progress in process control, the progress includes, the intermediate result in the process control of the trigger target, or the final result in the process control of the trigger target;
  • the state is the final result of the trigger target being executed.
  • the user uses the executed state of the linkage rule as the trigger condition of the next linkage rule, thereby realizing the nesting of the trigger conditions among the linkage rules.
  • the gateway On the network side (gateway side), after the gateway receives the configuration linkage rules from the user terminal, it generates control logic according to the configuration linkage rules. . According to the trigger sequence in the control logic, when the trigger conditions in the trigger sequence are met sequentially, the gateway will sequentially execute the trigger targets linked to the trigger conditions, that is, the state set when the previous trigger target is detected to be executed , execute this trigger target.
  • control logic generated by the above-mentioned linkage rule 1 to linkage rule i is: a trigger sequence composed of trigger condition 1, trigger condition 2, . . . trigger condition i.
  • the gateway When the gateway obtains the trigger condition 1 at time 1, it executes the trigger target 1 associated with the trigger condition 1;
  • the gateway When the gateway obtains the trigger condition 2 at time 2, that is, when the gateway obtains the state 1 set based on the trigger target 1 at time 2, it executes the trigger target 2 linked by the trigger condition 2,
  • the gateway acquires the trigger condition i at time i, that is, when the gateway acquires the state i-1 set based on the trigger target i-1 at time i, the trigger target i linked to the trigger condition i is executed.
  • time 1, time 2 ... time i increase sequentially in the time dimension, and the sequence composed of the first trigger condition, the second trigger condition ... and the i-th trigger condition in turn matches the trigger sequence.
  • the trigger conditions sequentially obtained by the gateway do not match the trigger sequence, it is determined that execution is prohibited according to the control logic formed by the trigger sequence, and the linked trigger target is executed according to the trigger condition.
  • the gateway when the gateway acquires trigger condition 1 at time 1, it executes the trigger target 1 associated with trigger condition 1; when the gateway acquires trigger condition 3 at time 2, since trigger condition 2 does not exist, trigger condition 1 and trigger If the sequence formed by condition 3 is not a continuous subsequence starting from the first element in the trigger sequence, it is determined that trigger condition 1 and trigger condition 3 do not meet the trigger sequence, so it is forbidden to follow the control logic formed by the trigger sequence, but respectively according to Trigger condition 1 executes its linked trigger target, and trigger condition 3 executes its linked trigger target.
  • determining that the sequentially formed sequence matches the trigger sequence may be to compose the current first sequence and the received current execution state of the trigger target to form a second sequence, wherein the first sequence is the previous sequence matching the trigger sequence. If the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the execution states obtained in sequence match the trigger sequence; otherwise, it is determined that all the sequentially obtained The execution state described above does not match the trigger sequence.
  • association between rules may not be limited to a chain connection, but may be a complex association, just like various data structures in a computer, and specific association situations may be designed according to application requirements.
  • the linkage control in some application scenarios in the smart home system is taken as an example for description below. It should be understood that the present application is not limited to the linkage control of the smart home system, and is also applicable to the linkage control of the IoT devices in the IoT system.
  • FIG. 5 is a schematic diagram of a smart home system.
  • the smart home system includes terminals, cloud service platforms, gateways, and controlled devices, among which,
  • the terminal uploads configuration and/or control signaling to the cloud service platform, and the signaling is forwarded to the gateway through the cloud service platform for transmission to the gateway.
  • the terminal is a smart phone running an application program that can be used to configure linkage rules.
  • the cloud service platform can carry various IoT services, and is the distribution and transmission center of configuration signaling and control signaling, and saves gateway network parameters, status of controlled devices, etc.
  • the gateway forms a control logic based on the functions such as linkage and group control delivered by the cloud service platform. According to the control logic, the gateway parses the signaling into actions and distributes them to each controlled device; The status reported by the control device.
  • the controlled device includes routing nodes and device nodes.
  • the execution subject of the action executes the linked action according to the signaling issued by the gateway, and reports the execution result and device status to the gateway.
  • infrared sensors, switch panels (routing nodes), and door magnetic sensors are all controlled devices.
  • FIG. 6 is a schematic diagram of a linkage control flow in a scene where the curtains are opened when the lighting is turned off.
  • step 601 configure the following linkage rules:
  • Linkage rule 1 The infrared sensor triggers to turn off the lighting at the set temperature.
  • the trigger condition 1 is that the infrared sensor is at the set temperature, and the trigger target 1 is to turn off the lighting;
  • Linkage rule 2 When the lighting is turned off, trigger to open the curtains, wherein the trigger condition 2 is that the lighting is turned off, that is, the execution result of linkage rule 1; the trigger target 2 is to open the curtains.
  • each linkage rule is configured sequentially according to the associated order of the trigger conditions, so that the configured linkage rules have a sequence, or, according to the trigger conditions in each linkage rule, and the trigger conditions and other linkage rules According to the relationship between the triggering targets, each linkage rule is sorted in turn, so that the configured linkage rules have a sequence, so that an orderly linkage rule sequence can be obtained.
  • Step 602 the terminal sends the configured linkage rule 1 and linkage rule 2 to the gateway, so that the gateway generates control logic according to the configured linkage rule 1 and linkage rule 2, the control logic is a trigger sequence composed of trigger condition 1 and trigger condition 2, and save.
  • the configured linkage rules are sequentially sent to the gateway according to the sequence of the configured linkage rules, or an ordered sequence of linkage rules is sent to the gateway.
  • Step 603 receiving a prompt of configuration success or failure returned from the gateway.
  • step 604 receiving each linkage rule configured from the terminal, and generating a trigger sequence for each trigger condition as the control logic according to the trigger conditions in each linkage rule and the relationship between the trigger condition and the trigger target in other linkage rules ,
  • the trigger conditions in each linkage rule may be sequentially extracted according to the sequence of each linkage rule, and the trigger sequence may be generated in sequence.
  • Step 605 the gateway receives the infrared sensor trigger event reported by the controlled device at time 1, and forms the trigger event into the current first sequence, that is, the first element in the first sequence; since the current first sequence is the first element in the trigger sequence elements, determine that the execution status matches the trigger sequence, and control the light-on panel to perform the operation of turning off the light according to the trigger target linked when the trigger condition 1 is met;
  • Step 606 the gateway receives the feedback of the operation of turning off the lights returned by the light-on panel at time 2, and forms the second sequence with the feedback and the current first sequence (that is, the first sequence formed in step 605), because the second sequence is the trigger sequence
  • the continuous subsequence starting from the first element determines that the execution state matches the trigger sequence, controls the opening of the smart curtains according to the trigger target linked when the current trigger condition 2 is met, and updates the first sequence to the current second sequence.
  • time 2 is the next time of time 1.
  • Step 607 the smart curtain reports the execution result and status to the gateway
  • Step 608 the gateway forwards the execution result and status from the smart curtain to the terminal.
  • the execution result of trigger target 1 in linkage rule 1 is used as trigger condition 2 in linkage rule 2.
  • the chain connection of the trigger conditions in linkage rule 1 and linkage rule 2 realizes linkage rule 1 and Linkage rule 2 is associated with the execution result of linkage rule 1.
  • FIG. 7 is a schematic flow chart of linkage control according to the execution schedule and execution result of the trigger target.
  • Step 701 configure the following linkage rules:
  • Linkage rule 1 The infrared sensor triggers to turn off the room light at the set temperature, where the trigger condition 1 is that the infrared sensor is at the set temperature, and the trigger target 1 is to turn off the room light;
  • Linkage rule 2 According to the execution result of turning off the lights, trigger to open the curtains; among them, the trigger condition 2 is to turn off the lights, the trigger condition is the execution result of the trigger target 1, and the trigger target 2 is to open the curtains;
  • Linkage rule 3 When the curtains are opened by 50%, the window pusher is triggered to open the window; among them, the trigger condition 3 is that the curtains are opened by 50%, the trigger condition is the execution progress of the trigger target 2, and the trigger target 3 is the window pusher to open the window;
  • Linkage rule 4 when the curtains are opened by 20%, the voice playback is triggered; among them, the trigger condition 4 is that the curtains are opened by 20%, the trigger condition is the execution progress of the trigger target 2, and the trigger target 4 is voice playback; the voice includes music, natural language etc.
  • each linkage rule is configured sequentially according to the associated order of the trigger conditions, so that the configured linkage rules have a sequence, or, according to the trigger conditions in each linkage rule, and the trigger conditions and other linkage rules According to the relationship between the triggering targets, each linkage rule is sorted according to the time sequence of the occurrence of the trigger condition, so that the configured linkage rules have a sequence, and an orderly linkage rule sequence is obtained.
  • trigger condition 3 and trigger condition 4 are both related to the opening progress of the curtains. According to the opening progress, trigger condition 4 occurs earlier than trigger condition 3, so the sequence of linkage rules formed by the terminal is: linkage rules 1. Linkage rules 2. Linkage rules 4. Linkage rules 3.
  • Step 702 the terminal sends the configured linkage rules to the gateway, so that the gateway generates control logic according to the configured linkage rules, the control logic is a trigger sequence composed of trigger condition 1, trigger condition 2, trigger condition 3, and trigger condition 4, and saves .
  • Step 703 receiving a prompt of configuration success or failure returned from the gateway.
  • step 704 receiving each linkage rule configured from the terminal, and generating a trigger sequence for each trigger condition as the control logic according to the trigger conditions in each linkage rule and the relationship between the trigger condition and the trigger target in other linkage rules .
  • the trigger conditions in each linkage rule may be sequentially extracted according to the sequence of each linkage rule, and the trigger sequence may be generated in sequence.
  • the trigger sequence is: trigger condition 1, trigger condition 2, trigger condition 4, and trigger condition 3.
  • Step 705 the gateway receives the infrared sensor trigger event reported by the controlled device at time 1, and forms the trigger event into the current first sequence, that is, the first element in the first sequence; since the current first sequence is the first element in the trigger sequence elements, determine that the execution status matches the trigger sequence, before, according to the trigger target linked when the trigger condition 1 is met, control the light panel to perform the operation of turning off the light;
  • Step 706 the gateway receives the feedback of the operation of turning off the light returned by the light panel at time 2, and forms a second sequence with the feedback and the current first sequence (that is, the first sequence formed in step 605), and the second sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), since the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the execution state matches the trigger sequence, and when the current trigger condition 2 is met
  • the linked trigger target controls the opening of the smart curtains and updates the first sequence to the current second sequence.
  • Step 707 the gateway receives the current opening progress returned by the smart curtain in real time at time 3. For example, when the opening progress of the smart curtain is 10%, the opening progress 1 is returned, and when the opening progress of the smart curtain is 20%, the opening progress 2 is returned. When the opening progress of the curtain is 50%, it returns to opening progress 3, wherein the progress in the process control fed back by the smart curtain can be set according to the advance progress step.
  • Step 708 the gateway forms a second sequence based on the received current opening progress and the current first sequence
  • the opening progress and the current first sequence form a second sequence, and the sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), trigger condition 3 (Open progress 1), since the sequence is not a continuous subsequence starting from the first element in the trigger sequence, it is determined that the second sequence does not match the trigger sequence, and there is no executable trigger target at this time, and the trigger linkage is stopped.
  • trigger condition 1 infrared sensor trigger event
  • trigger condition 2 light off
  • trigger condition 3 Open progress 1
  • the opening progress and the current first sequence form a second sequence.
  • the sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), trigger condition 4 (open Progress 2), since the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the second sequence matches the trigger sequence, and the music is triggered to play according to the trigger target linked when the trigger condition 4 is met, and update the first sequence to the current second sequence,
  • the opening progress is combined with the current first sequence to form a second sequence.
  • the sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), trigger condition 4 (open Progress 2), trigger condition 3 (open progress 1), since the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the second sequence matches the trigger sequence, and when trigger condition 3 is met
  • the linked trigger target will trigger the window pusher to open the window.
  • step 709 the gateway continues to receive the progress in the process control fed back by the smart curtain, and receives the progress in the process control fed back by the window pusher.
  • This embodiment realizes the application scene linkage control of infrared triggering, light off, curtain opening after light off, music playing when the curtain is open to 20%, and window opening when the curtain is open to 50%, which is beneficial to improve user experience.
  • the execution result of trigger target 1 in linkage rule 1 is used as trigger condition 2 in linkage rule 2
  • an execution degree of the trigger target in linkage rule 2 is used as trigger condition 3 in linkage rule 3
  • linkage rule 2 Another execution level of the triggering target in linkage rule 4 is the trigger condition 4 in linkage rule 4.
  • linkage rule 1 and linkage rule 2 trigger conditions are chained in series, and linkage rule 3 and linkage rule 4 are parallel to linkage rule 2.
  • Linkage rule 3 and linkage rule 4 form a chain connection through progress, forming complex linkage control and improving the intelligence of linkage control.
  • FIG. 8 is a schematic diagram of a gateway used to implement linkage control in this application.
  • the gateway includes,
  • the first communication module is used for information interaction with the terminal, including receiving more than two linkage rules configured by the terminal, sending information such as configuration results, linkage results, and the status of IoT devices to the terminal, wherein each linkage A rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least associated through the execution status of the trigger target in another linkage rule, so that there is a direct or indirect relationship between the linkage rules,
  • the linkage control module is used to generate control logic according to the association relationship between the linkage rules, the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order, and receives the execution of the trigger target returned from each controlled device state, when the sequentially obtained execution state matches the trigger sequence, linkage control is performed according to the control logic.
  • FIG. 9 is a schematic diagram of a terminal used to implement linkage rule configuration in this application.
  • the terminal includes:
  • the configuration module is used to configure more than two linkage rules based on user input operations, wherein each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule at least passes the trigger target in another linkage rule
  • the execution status forms an association, so that there is a direct or indirect association between the various linkage rules
  • the second communication module is used for information interaction with the gateway, including sending the configured linkage rules to the gateway, and receiving configuration results, linkage results, status of IoT devices and other information from the gateway.
  • FIG. 10 is another schematic diagram of a terminal or a gateway.
  • the terminal or the gateway includes a memory and a processor respectively, and a computer program is stored in the memory of the terminal, and when the computer program is executed by the processor of the terminal, the steps of any one of the linked configuration methods of the Internet of Things device are implemented.
  • the computer program is stored in the memory, and when the computer program is executed by the processor in the gateway, the steps of any linkage control method for the Internet of Things devices are realized.
  • the memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory.
  • RAM Random Access Memory
  • NVM non-Volatile Memory
  • the memory may also be at least one storage device located far away from the aforementioned processor.
  • the above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • CPU Central Processing Unit
  • NP Network Processor
  • DSP Digital Signal Processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the linkage control method for the Internet of Things device are realized.
  • the description is relatively simple, and for the related parts, please refer to the part of the description of the embodiment of the method.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

A linkage control method for an Internet-of-Things device, and a terminal, a gateway device and a system. The method comprises: at a gateway side, receiving two or more linkage rules which are configured by a terminal, wherein each linkage rule comprises a trigger condition and a trigger target, and the trigger condition in any linkage rule is associated at least by means of an execution state of the trigger target in another linkage rule, such that there is a direct or indirect association relationship between the linkage rules (201); generating control logic according to the association relationship between the linkage rules, wherein the control logic comprises a trigger sequence which is sequentially formed by the trigger conditions in the linkage rules (202); receiving execution states of trigger targets that are returned by controlled devices (203); and when the sequentially acquired execution states match the trigger sequence, performing linkage control according to the control logic (204). By means of the present method, the flexibility of linkage configuration is improved, thereby effectively solving linkage in complex scenarios and multi-level scenarios.

Description

物联网设备的联动控制方法、终端、网关设备及***Linkage control method, terminal, gateway device, and system for Internet of Things devices
本申请要求于2021年07月08日提交中国专利局、申请号为202110771700.0发明名称为“物联网设备的联动控制方法、终端、网关设备、及***”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110771700.0 submitted to the China Patent Office on July 08, 2021. Incorporated in this application by reference.
技术领域technical field
本申请涉及物联网设备控制领域,特别地,涉及一种物联网设备的联动控制方法、终端、网关设备、及***。The present application relates to the field of Internet of Things device control, and in particular, relates to a method for linkage control of Internet of Things devices, a terminal, a gateway device, and a system.
背景技术Background technique
物联网中,物联网设备的联动控制的核心在于,通过配置多个触发条件的组合、每个触发条件与触发目标的复合来使得控制方式的多样化。在复杂环境下,通常根据外界数据来增加条件约束进行判断,从而基于判断结果进行联动控制。作为一个例子,在智能家居***中,执行灯光、窗帘、空调的联动控制,其联动规则的一种配置为:当红外传感器达到设定温度,触发灯光关闭,若在白天,则触发打开窗帘,若检测到室内温度达到设定温度阈值,则触发打开空调。其中,白天、室内温度为环境约束。In the Internet of Things, the core of the linkage control of the Internet of Things devices is to diversify the control methods by configuring the combination of multiple trigger conditions and the combination of each trigger condition and trigger target. In a complex environment, it is usually judged by adding conditional constraints based on external data, so that linkage control is performed based on the judgment result. As an example, in the smart home system, the linkage control of lights, curtains, and air conditioners is performed. One configuration of the linkage rules is: when the infrared sensor reaches the set temperature, the trigger lights are turned off, and if it is in the daytime, the curtains are triggered to open. If it is detected that the indoor temperature reaches the set temperature threshold, it will trigger to turn on the air conditioner. Among them, daytime and indoor temperature are environmental constraints.
现有的联动控制方法通常以起始条件为基础,不适应复杂环境下的联动控制,既不利于物联网业务的发展,也难以提高物联网设备联动控制的智能化。Existing linkage control methods are usually based on initial conditions and are not suitable for linkage control in complex environments, which is not conducive to the development of Internet of Things services, and it is difficult to improve the intelligence of linkage control of IoT devices.
发明内容Contents of the invention
本申请提供了一种物联网设备的联动控制方法,以提高物联网设备联动的智能化。The present application provides a method for controlling the linkage of IoT devices, so as to improve the intelligence of the linkage of IoT devices.
本申请提供的一种物联网设备的联动控制方法,该方法包括:The present application provides a linkage control method for an Internet of Things device, the method comprising:
在网关侧,接收来自终端所配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列,接收来自各个被控设备返回的触发目标的执行状态,当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。On the gateway side, receive more than two linkage rules configured from the terminal, where each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least formed by the execution status of the trigger target in another linkage rule Associating, so that there is a direct or indirect association relationship between the various linkage rules, and generating control logic according to the association relationship between the linkage rules, the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order, The execution status of the trigger target returned from each controlled device is received, and when the execution status acquired in sequence matches the trigger sequence, linkage control is performed according to the control logic.
在一种可能的实施方式中,所述任一联动规则中的触发条件至少通过另一联动规则中 触发目标的执行状态形成关联,包括:In a possible implementation manner, the trigger conditions in any of the linkage rules are at least associated through the execution status of the trigger target in another linkage rule, including:
对于任一联动规则,该联动规则中的触发条件至少包括,基于除该联动规则之外的其他联动规则中触发目标被执行所设定的状态;和/或,For any linkage rule, the trigger condition in the linkage rule at least includes, based on the state that the trigger target is executed in other linkage rules except the linkage rule; and/or,
基于该联动规则中触发目标被执行所设定的状态作为除该联动规则之外的其他联动规则中的触发条件;其中,对于具有过程控制的触发目标,所述状态为过程控制中当前进度,该进度包括,过程控制中的中间结果,或者,过程控制中的最终结果,对于不具有过程控制的触发目标,所述状态为触发目标的执行结果。The state set based on the execution of the trigger target in the linkage rule is used as the trigger condition in other linkage rules except the linkage rule; wherein, for the trigger target with process control, the state is the current progress in process control, The progress includes an intermediate result in process control, or a final result in process control. For a trigger target without process control, the status is the execution result of the trigger target.
在一种可能的实施方式中,所述当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制包括:In a possible implementation manner, when the sequentially acquired execution states match the trigger sequence, performing linkage control according to the control logic includes:
将当前第一序列与接收到的触发目标的当前执行状态组成第二序列,其中,第一序列为历次与触发序列相匹配的执行状态组成的序列,若第二序列为触发序列中从首个元素开始的连续子序列,则判定依次获取到的所述执行状态与触发序列相匹配,按照当前触发条件被满足时所联动的触发目标进行控制,并将当前第一序列更新为所述第二序列,否则,判定依次获取到的所述执行状态与触发序列不相匹配,停止触发联动。Combining the current first sequence and the received current execution state of the trigger target to form the second sequence, wherein the first sequence is a sequence composed of previous execution states that match the trigger sequence, if the second sequence is the trigger sequence from the first element, it is determined that the execution status obtained in turn matches the trigger sequence, and the trigger target is controlled according to the linkage when the current trigger condition is met, and the current first sequence is updated to the second sequence, otherwise, it is determined that the execution status acquired sequentially does not match the trigger sequence, and the trigger linkage is stopped.
在一种可能的实施方式中,所述关联关系为链式串联关系,In a possible implementation manner, the association relationship is a chain series relationship,
所述任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:The trigger conditions in any of the linkage rules are at least associated through the execution status of the trigger target in another linkage rule, including:
对于任一联动规则i,包括触发条件i和触发目标i,所述触发条件i至少包括,基于联动规则i-1中触发目标i-1被执行所设定的状态,所述触发目标i被执行的设定状态作为联动规则i+1中的触发条件i+1之一,其中,i为自然数;For any linkage rule i, it includes a trigger condition i and a trigger target i, the trigger condition i at least includes, based on the state set when the trigger target i-1 in the linkage rule i-1 is executed, the trigger target i is executed The execution setting state is taken as one of the trigger conditions i+1 in the linkage rule i+1, where i is a natural number;
所述当依次获取到的所述执行状态与触发序列相匹配时,按照触发条件被满足时所联动的触发目标进行控制,包括:When the sequentially obtained execution status matches the trigger sequence, the control is performed according to the trigger target linked when the trigger condition is met, including:
当网关在第一时刻获取到第一触发条件被满足时,则执行第一触发条件所联动的第一触发目标;当网关在第二时刻获取到第二触发条件被满足时,则执行第二触发条件所联动的第二触发目标;依次类推,当网关在第i时刻获取到第i触发条件被满足时,则执行第i触发条件所联动的第i触发目标,其中,各时刻在时间维度上依次增加;When the gateway acquires that the first trigger condition is met at the first moment, it executes the first trigger target linked to the first trigger condition; when the gateway acquires the second trigger condition is met at the second moment, it executes the second The second trigger target linked to the trigger condition; and so on, when the gateway acquires that the i-th trigger condition is satisfied at the i-th moment, it executes the i-th trigger target linked to the i-th trigger condition, wherein each moment is in the time dimension increase sequentially;
所述第一触发条件、第二触发条件….以及第i触发条件依次组成的序列与触发序列相匹配。The sequence formed by the first trigger condition, the second trigger condition... and the i-th trigger condition matches the trigger sequence.
在一种可能的实施方式中,所述根据联动规则之间的关联关系,生成控制逻辑,包括:In a possible implementation manner, the generating control logic according to the association relationship between linkage rules includes:
对于任一联动规则,根据该联动规则中的触发条件,确定其所包含的触发目标被执行所设定的状态,按照各个触发条件、以及各个触发条件所包含的触发目标被执行所设定的状态发生的时间先后顺序,将各个触发条件按序排列成触发序列。For any linkage rule, according to the trigger conditions in the linkage rule, determine the state of the trigger target contained in it being executed, and according to each trigger condition and the trigger target contained in each trigger condition is executed. The chronological order in which states occur, arrange each trigger condition in sequence into a trigger sequence.
在一种可能的实施方式中,所述两个以上联动规则为存在先后次序的有序联动规则序列,所述根据联动规则之间的关联关系,生成控制逻辑,包括:将各个联动规则中的触发条件,按照联动规则序列,组成触发序列;该方法还包括:当依次获取到的执行状态与触发序列不相匹配时,则禁止按照控制逻辑进行联动控制,查询其余联动规则,如果查询成功,则按照所查询成功的联动规则执行,否则,退出当前联动控制。In a possible implementation manner, the two or more linkage rules are an ordered sequence of linkage rules, and the generation of control logic according to the association relationship between the linkage rules includes: The trigger condition is composed of a trigger sequence according to the linkage rule sequence; the method also includes: when the execution status obtained in sequence does not match the trigger sequence, prohibiting linkage control according to the control logic, querying other linkage rules, if the query is successful, Execute according to the successfully queried linkage rules, otherwise, exit the current linkage control.
本申请提供一种物联网设备的联动规则的配置方法,该方法包括:The present application provides a method for configuring linkage rules of IoT devices, the method comprising:
在终端侧,配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,将配置的联动规则发送至网关。On the terminal side, configure more than two linkage rules, where each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least associated with the execution status of the trigger target in another linkage rule, so that all If there is a direct or indirect relationship among the linkage rules mentioned above, the configured linkage rules are sent to the gateway.
在一种可能的实施方式中,该方法进一步包括:In a possible implementation manner, the method further includes:
根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,使得所配置的联动规则存在先后次序,得到联动规则序列,将联动规则序列发送给网关;或者,根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,并按照先后次序依次发送各个联动规则给网关。According to the trigger conditions in each linkage rule, sort each linkage rule according to the order in which the trigger conditions occur, so that the configured linkage rules have a sequence, obtain the linkage rule sequence, and send the linkage rule sequence to the gateway; or, according to each As for the trigger conditions in the linkage rules, each linkage rule is sorted according to the sequence in which the trigger conditions occur, and each linkage rule is sent to the gateway in sequence.
本申请还提供了一种物联网设备的联动控制方法,应用于网关侧,所述方法包括:The present application also provides a linkage control method for IoT devices, which is applied to the gateway side, and the method includes:
接收来自终端所配置的联动规则集合,其中,所述联动规则集合中包括至少两个联动规则,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列;接收来自各个被控设备返回的触发目标的执行状态;当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。Receive a set of linkage rules configured from the terminal, wherein the set of linkage rules includes at least two linkage rules, the at least two linkage rules include header linkage rules and subsequent linkage rules, and each linkage rule includes trigger conditions and The trigger target, the trigger condition in any subsequent linkage rule is at least associated with the execution status of the trigger target in another linkage rule, and there is a direct or indirect relationship between the linkage rules; according to the association relationship between the linkage rules , generating control logic, the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in sequence; receiving the execution status of the trigger target returned from each controlled device; when the sequentially obtained execution status and trigger sequence When matching, carry out linkage control according to the control logic.
本申请还提供了一种物联网设备的联动规则的配置方法,其特征在于,应用于终端侧,所述方法包括:配置的至少两个联动规则,得到联动规则集合,其中,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;将配置的联动规则发送至网关。The present application also provides a method for configuring linkage rules of Internet of Things devices, which is characterized in that it is applied to the terminal side, and the method includes: configuring at least two linkage rules to obtain a linkage rule set, wherein the at least two Each linkage rule includes head linkage rules and subsequent linkage rules. Each linkage rule includes a trigger condition and a trigger target. The trigger condition in any subsequent linkage rule is at least associated with the execution status of the trigger target in another linkage rule. There is a direct or indirect relationship between the above linkage rules; send the configured linkage rules to the gateway.
本申请还提供一种网关设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现任一所述物联网设备的联动控制方法的步骤。The present application also provides a gateway device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the steps of any linkage control method for the Internet of Things device are realized.
本申请又提供一种终端,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现任一所述物联网设备配置方法的步骤。The present application further provides a terminal, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the steps of any one of the IoT device configuration methods are implemented.
本申请再提供一种物联网***,包括用于配置和/或控制物联网设备的终端,用于联动和/或群控物联网设备的网关,以及物联网设备,其特征在于,所述终端用于实现任一所述物联网设备的联动控制方法的步骤;所述网关用于实现任一所述物联网设备配置方法的步骤。The present application further provides an Internet of Things system, including a terminal for configuring and/or controlling an Internet of Things device, a gateway for linkage and/or group control of an Internet of Things device, and an Internet of Things device, wherein the terminal It is used to realize the steps of any one of the linkage control methods of the Internet of Things devices; the gateway is used to realize the steps of any of the configuration methods of the Internet of Things devices.
在一种可能的实施方式中,所述物联网***还包括用于提供物联业务的云平台,所述云平台通过网络与网关连接,传输配置信令和控制信令,并保存网关网络参数、以及物联网设备状态。In a possible implementation manner, the IoT system further includes a cloud platform for providing IoT services, the cloud platform is connected to the gateway through the network, transmits configuration signaling and control signaling, and saves the gateway network parameters , and IoT device status.
本申请提供的物联网设备的联动控制方法,基于各个存在直接或间接的关联关系的联动规则,生成包括由各联动规则中触发条件按序组成的触发序列的控制逻辑,从而可以基于来自各个被控设备返回的触发目标的执行状态,按照控制逻辑进行联动控制,提高了联动配置的灵活性,有效解决复杂场景多级场景联动;利用任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态所形成的关联,使得触发目标的执行状态在联动控制过程中发挥着承上启下的作用,也使得物联网***中的状态信息得以充分的利用,提高了物联网设备的智能化,有利于丰富物联网***中的业务。The linkage control method of the Internet of Things device provided by the present application is based on each linkage rule that has a direct or indirect association relationship, and generates control logic including a trigger sequence composed of trigger conditions in each linkage rule in order, so that it can be based on the control logic from each The execution status of the trigger target returned by the control device, and linkage control is carried out according to the control logic, which improves the flexibility of linkage configuration and effectively solves multi-level scene linkage in complex scenarios; using the trigger conditions in any linkage rule at least through another linkage rule The association formed by the execution state of the trigger target makes the execution state of the trigger target play a connecting role in the linkage control process, and also makes full use of the state information in the IoT system, improving the intelligence of the IoT device. It is conducive to enriching the business in the Internet of Things system.
附图说明Description of drawings
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application and the prior art, the following briefly introduces the accompanying drawings required in the embodiments and the prior art. Obviously, the accompanying drawings in the following description are only the present invention. For some embodiments of the application, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为实现关闭客厅灯光、打开窗帘的联动场景的一种流程示意图。Fig. 1 is a schematic flow diagram of realizing the linkage scene of turning off the light in the living room and opening the curtains.
图2为本申请物联网设备联动控制方法的一种流程示意图。FIG. 2 is a schematic flowchart of a method for linkage control of IoT devices in the present application.
图3为本申请物联网设备联动配置方法的一种流程示意图。FIG. 3 is a schematic flowchart of a method for configuring linkage of IoT devices according to the present application.
图4为利用本联动规则的当前执行状态作为下一联动规则约束条件之一的联动控制的一种流程示意图。FIG. 4 is a schematic flow diagram of linkage control using the current execution state of the linkage rule as one of the constraint conditions of the next linkage rule.
图5为智能家居***的一种示意图。FIG. 5 is a schematic diagram of a smart home system.
图6为照明灯光关闭时打开窗帘的场景下的一种联动控制流程示意图。Fig. 6 is a schematic diagram of a linkage control flow in a scene where the curtains are opened when the lighting is turned off.
图7为按照触发目标执行进度、以及执行结果来进行联动控制的一种流程示意图。FIG. 7 is a schematic flowchart of linkage control according to the execution schedule and execution result of the trigger target.
图8为本申请用于实现联动控制的一种网关的示意图。FIG. 8 is a schematic diagram of a gateway used to implement linkage control in this application.
图9为本申请用于实现联动规则配置的一种终端的示意图。FIG. 9 is a schematic diagram of a terminal used to implement linkage rule configuration in this application.
图10为终端或网关的另一种示意图;FIG. 10 is another schematic diagram of a terminal or a gateway;
图11为本申请中联动规则执行逻辑的一种示意图。FIG. 11 is a schematic diagram of the execution logic of linkage rules in this application.
具体实施方式detailed description
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and examples. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.
申请人研究发现,现有的联动控制,多以相对独立的触发条件的组合来建立控制逻辑、生成联动规则,而不同的联动规则之间的触发条件与触发目标之间通常不存在关联,由此导致联动规则之间不存在内在的关联。The applicant found that the existing linkage control mostly uses a combination of relatively independent trigger conditions to establish control logic and generate linkage rules, and there is usually no relationship between the trigger conditions and the trigger targets of different linkage rules. This results in no inherent association between linkage rules.
以智能家居为例,例如,在关闭客厅灯光、打开窗帘的联动场景下,配置的联动规则通常是:红外传感器到达设定温度下时触发关闭房间灯光(联动规则1),以及门磁被触碰时触发打开窗帘(联动规则2)。参见图1所示,图1为实现关闭客厅灯光、打开窗帘的联动场景的一种流程示意图。用户通过应用终端配置好联动规则,该联动规则被发送给网关;当门磁和红外传感器被触发时,门磁和红外传感器分别向网关上报触发事件,网关根据配置的联动规则,生成控制逻辑,以控制用于灯光控制的第一物联网设备关闭灯光,控制用于窗帘控制的第二物联设备打开窗帘。在上述两个联动规则中触发条件之间没有关联,例如,联动规则1中的红外传感器达到设定温度(触发条件1)和联动规则2中的门磁被触碰(触发条件2)之间相对独立;两个联动规则中触发目标之间也没有关联,例如,联动规则1中的关闭房间灯光(触发目标1)与联动规则2中的打开窗帘(触发目标2)之间相对独立;两个联动规则之间的触发条件与触发目标没有关联,例如,联动规则2中的门磁被触碰(触发条件2)与联动规则1中关闭灯光(触发目标1)没有关联。这样,触发条件1和触发条件2两者之间没有关联,触发目标1和触发目标2两者之间没有关联, 触发条件与触发目标之间没有关联。Taking smart home as an example, for example, in the linkage scenario of turning off the lights in the living room and opening the curtains, the configured linkage rules are usually: when the infrared sensor reaches the set temperature, the room lights are turned off (linkage rule 1), and the door sensor is triggered. When touched, the curtain will be opened (linkage rule 2). Referring to FIG. 1 , FIG. 1 is a schematic flow diagram of realizing the linkage scene of turning off the living room lights and opening the curtains. The user configures the linkage rules through the application terminal, and the linkage rules are sent to the gateway; when the door magnetism and infrared sensors are triggered, the door magnetism and infrared sensors report trigger events to the gateway respectively, and the gateway generates control logic according to the configured linkage rules. The first IoT device used for lighting control is controlled to turn off the lights, and the second IoT device used for curtain control is controlled to open the curtains. There is no relationship between the trigger conditions in the above two linkage rules, for example, between the infrared sensor in linkage rule 1 reaching the set temperature (trigger condition 1) and the door sensor in linkage rule 2 being touched (trigger condition 2) Relatively independent; there is no connection between the trigger targets in the two linkage rules, for example, the room lights off (trigger target 1) in linkage rule 1 and the curtain opening (trigger target 2) in linkage rule 2 are relatively independent; the two The trigger conditions between two linkage rules are not related to the trigger target. For example, the door contact in linkage rule 2 is touched (trigger condition 2) is not related to the light off in linkage rule 1 (trigger target 1). In this way, there is no relationship between the trigger condition 1 and the trigger condition 2, there is no relationship between the trigger target 1 and the trigger target 2, and there is no relationship between the trigger condition and the trigger target.
即使联动规则之间存在关联,所存在的关联通常采用延时控制方式,例如,网关控制用于灯光控制的第一物联网设备关闭灯光后,启动计时,当到达设定的延时时间时,控制用于窗帘控制的第二物联设备打开窗帘。这种延时控制方式使得联动控制的可靠性降低。Even if there is an association between linkage rules, the existing association usually adopts a delay control method. For example, after the gateway controls the first IoT device used for lighting control to turn off the light, start timing. When the set delay time is reached, Control the second IoT device for curtain control to open the curtain. This delay control method reduces the reliability of linkage control.
有鉴于此,为了解决上述问题中的至少一项,本申请提供的物联网设备的联动控制方法,在终端侧,用户配置联动规则,其中,联动规则之间存在关联,即,一联动规则的当前执行状态作为另一联动规则的约束条件之一。在网关侧,基于来自用户终端配置的联动规则,生成控制逻辑,根据控制逻辑进行相应的联动控制,其中,控制逻辑至少包含有,触发条件、以及触发目标的过程控制中设定的状态进行有序组合所形成的触发序列。即触发序列是由触发条件、触发目标的过程控制中设定的状态有序组合所形成的。In view of this, in order to solve at least one of the above problems, the present application provides a linkage control method for IoT devices. On the terminal side, the user configures linkage rules, where there is an association between linkage rules, that is, a linkage rule The current execution status is used as one of the constraints of another linkage rule. On the gateway side, the control logic is generated based on the linkage rules configured by the user terminal, and the corresponding linkage control is performed according to the control logic. The trigger sequence formed by sequence combination. That is, the trigger sequence is formed by the orderly combination of the trigger conditions and the states set in the process control of the trigger target.
进一步地,当由触发条件、以及触发目标的过程控制中的设定状态组成的触发序列与触发序列不匹配时,这时,则按照触发条件本身所联动的触发目标进行相应控制,禁止执行该触发序列所形成的控制逻辑。在通过非联动规则之外的其他方式触发了触发目标的过程控制后,并不会启动控制逻辑的触发序列中的其他规则。例如,控制逻辑的触发序列包括:联动规则1,红外传感器到达设定温度下时触发关闭房间灯光;联动规则2房间灯光关闭后打开窗帘;联动规则3,窗帘打开到50%时播放音乐。在用户手动触发打开窗帘的情况下,即使窗帘打开到50%,也不会触发播放音乐。具体的,可以记录已执行的联动规则的顺序,在检测到窗帘打开到50%时,判断之前是否按顺序执行了联动规则1及联动规则2,如果是则执行联动规则3,否则认为是非联动规则之外的其他方式触发了触发目标的过程控制,因此不执行联动规则3。Further, when the trigger sequence composed of the trigger condition and the set state in the process control of the trigger target does not match the trigger sequence, at this time, the corresponding control is carried out according to the trigger target linked to the trigger condition itself, and the execution of the trigger target is prohibited. The control logic formed by the trigger sequence. After the process control of the trigger target is triggered by means other than non-linkage rules, other rules in the trigger sequence of the control logic will not be started. For example, the trigger sequence of the control logic includes: linkage rule 1, when the infrared sensor reaches the set temperature, trigger to turn off the room lights; linkage rule 2, open the curtains after the room lights are turned off; linkage rule 3, play music when the curtains are opened to 50%. In the case that the user manually triggers to open the curtain, even if the curtain is opened to 50%, it will not trigger to play music. Specifically, it is possible to record the order of the linkage rules that have been executed, and when it is detected that the curtain is opened to 50%, it is judged whether linkage rule 1 and linkage rule 2 have been executed in order before, and if so, then linkage rule 3 is executed; otherwise, it is considered non-linkage The process control of the trigger target is triggered by other means than the rules, so linkage rule 3 is not executed.
本申请将触发条件本身、触发目标的过程控制中的状态进行有序组合而形成触发序列,使得网关设备按照触发序列控制各个触发条件所联动的物联网设备,这样,使得触发条件之间通过过程控制中的状态形成关联,也使得过程控制中的状态起着承上启下的作用,形成多环节联动,达到类似于多米牌的效果,有利于形成复杂的控制逻辑,提高物联网设备联动控制的智能化。This application combines the trigger conditions themselves and the state of the process control of the trigger target in an orderly manner to form a trigger sequence, so that the gateway device controls the IoT devices linked by each trigger condition according to the trigger sequence, so that the trigger conditions can pass through the process The state in the control is associated, which also makes the state in the process control play a link between the previous and the next, forming a multi-link linkage to achieve an effect similar to that of the Duomi brand, which is conducive to the formation of complex control logic and improves the intelligence of the linkage control of IoT devices .
参见图2所示,图2为本申请物联网设备联动控制方法的一种流程示意图。该联动控制方法包括,在网关侧:Referring to FIG. 2 , FIG. 2 is a schematic flowchart of a method for linkage control of Internet of Things devices of the present application. The linkage control method includes, on the gateway side:
步骤201,接收来自终端所配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,在由联动规则组成的联动规则集合中,任一联动规则中的触发条件至少 通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系。 Step 201, receiving more than two linkage rules configured from the terminal, wherein each linkage rule includes a trigger condition and a trigger target, and in the linkage rule set composed of linkage rules, the trigger condition in any linkage rule is at least passed by The execution status of the trigger target in a linkage rule is associated, so that there is a direct or indirect association relationship among the linkage rules.
步骤202,根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列。In step 202, control logic is generated according to the association relationship between linkage rules, and the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in sequence.
步骤203,接收来自各个被控设备返回的触发目标的执行状态。 Step 203, receiving the execution status of the trigger target returned from each controlled device.
步骤204,若依次获取到的执行状态与触发序列相匹配,则按照所述控制逻辑进行联动控制,否则,停止触发联动,查询联动规则集合中的其余联动规则,如果查询成功,则执行所查询成功的联动规则,如果查询不成功,则退出。 Step 204, if the execution status obtained in turn matches the trigger sequence, perform linkage control according to the control logic; otherwise, stop triggering linkage, query the remaining linkage rules in the linkage rule set, and execute the query if the query is successful Successful linkage rules, if the query is unsuccessful, exit.
参见图3所示,图3为本申请物联网设备联动配置方法的一种流程示意图。该方法包括,在终端侧:Referring to FIG. 3 , FIG. 3 is a schematic flowchart of a method for configuring linkage of IoT devices according to the present application. The method includes, on the terminal side:
步骤301,配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系。 Step 301, configuring more than two linkage rules, wherein each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least associated with the execution status of the trigger target in another linkage rule, so that the There is a direct or indirect relationship between each linkage rule.
上述联动规则的配置可以通过运行于终端上的应用程序引导用户进行。The configuration of the above linkage rules can be guided by the user through the application program running on the terminal.
步骤302,将配置的联动规则发送至网关。 Step 302, sending the configured linkage rules to the gateway.
本申请实施例还提供了一种物联网设备联动控制方法,应用于网关侧,所述方法包括:The embodiment of the present application also provides a method for linkage control of IoT devices, which is applied to the gateway side, and the method includes:
步骤一,接收来自终端所配置的联动规则集合,其中,所述联动规则集合中包括至少两个联动规则,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系。Step 1, receiving a set of linkage rules configured from the terminal, wherein the set of linkage rules includes at least two linkage rules, the at least two linkage rules include head linkage rules and subsequent linkage rules, and each linkage rule includes The trigger condition and the trigger target, the trigger condition in any subsequent linkage rule is at least associated through the execution status of the trigger target in another linkage rule, and there is a direct or indirect relationship between the linkage rules.
头部联动规则为各联动规则中不依赖其他联动规则触发的联动规则,例如各联动规则的执行逻辑中第一执行的联动规则;后续联动规则为各联动规则中,除头部联动规则外的其他联动规则。后续联动规则的执行需要基于其他联动规则的触发。一个例子中,如图11所示,联动规则A中触发目标的执行状态关联联动规则B中的触发条件,联动规则B及联动规则D中触发目标的执行状态关联联动规则C中的触发条件。联动规则A与联动规则D不依赖其他联动规则触发,因此为联动规则A与联动规则D均头部联动规则;而联动规则B依赖联动规则A触发,联动规则C依赖联动规则B及联动规则D触发,因此联动规则B及联动规则C为后续联动规则。The head linkage rule is a linkage rule that does not depend on other linkage rules to be triggered in each linkage rule, for example, the linkage rule that is executed first in the execution logic of each linkage rule; the subsequent linkage rules are all linkage rules except the head linkage rule. Other linkage rules. The execution of subsequent linkage rules needs to be triggered based on other linkage rules. In one example, as shown in FIG. 11 , the execution status of the trigger target in linkage rule A is associated with the trigger condition in linkage rule B, and the execution status of the trigger targets in linkage rule B and linkage rule D is associated with the trigger condition in linkage rule C. Linkage rule A and linkage rule D do not rely on other linkage rules to be triggered, so linkage rule A and linkage rule D are head linkage rules; while linkage rule B is triggered by linkage rule A, linkage rule C depends on linkage rule B and linkage rule D Triggered, so linkage rule B and linkage rule C are subsequent linkage rules.
在一种可能的实施方式中,对于任一后续联动规则,该后续联动规则中的触发条件包括:基于除该后续联动规则之外的至少一个联动规则中触发目标被执行所设定的状态;其 中,对于具有过程控制的触发目标,所设定的状态为过程控制中的进度,该进度包括:过程控制中的中间结果,或者,过程控制中的最终结果;对于不具有过程控制的触发目标,所设定的状态为触发目标的执行结果。In a possible implementation manner, for any subsequent linkage rule, the trigger condition in the subsequent linkage rule includes: based on the state that the trigger target in at least one linkage rule other than the subsequent linkage rule is executed; Among them, for the trigger target with process control, the set state is the progress in process control, the progress includes: the intermediate result in process control, or the final result in process control; for the trigger target without process control , the set state is the execution result of the trigger target.
步骤二,根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列。Step 2: Generate control logic according to the association relationship between the linkage rules, and the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order.
步骤三,接收来自各个被控设备返回的触发目标的执行状态。Step 3, receiving the execution status of the trigger target returned from each controlled device.
步骤四,当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。Step 4, when the sequentially acquired execution states match the trigger sequence, perform linkage control according to the control logic.
本申请实施例还提供了一种物联网设备的联动规则的配置方法,应用于终端侧,所述方法包括:The embodiment of the present application also provides a method for configuring linkage rules of IoT devices, which is applied to the terminal side, and the method includes:
步骤一,配置的至少两个联动规则,得到联动规则集合,其中,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系。Step 1, configure at least two linkage rules to obtain a linkage rule set, wherein the at least two linkage rules include head linkage rules and subsequent linkage rules, each linkage rule includes trigger conditions and trigger targets, and any subsequent linkage rules The trigger conditions in a rule are at least associated through the execution status of the trigger target in another linkage rule, and there is a direct or indirect association relationship between the linkage rules.
步骤二,将配置的联动规则发送至网关。Step 2: Send the configured linkage rules to the gateway.
作为一个例子,以下说明规则之间以链式串联配置以及其联动控制。参见图4所示,图4为利用本联动规则的当前执行状态作为下一联动规则约束条件之一的联动控制的一种流程示意图。As an example, the following describes the configuration of rules in series and their linkage control. Referring to FIG. 4 , FIG. 4 is a schematic flowchart of linkage control using the current execution state of the linkage rule as one of the constraint conditions of the next linkage rule.
在终端侧,用户配置若干联动规则,其中:On the terminal side, the user configures several linkage rules, among which:
联动规则1包括触发条件1以及触发目标1;Linkage rule 1 includes trigger condition 1 and trigger target 1;
联动规则2包括触发条件2以及触发目标2,所述触发条件2至少包括,基于触发目标1所设定的状态1;The linkage rule 2 includes a trigger condition 2 and a trigger target 2, and the trigger condition 2 includes at least the state 1 set based on the trigger target 1;
联动规则3包括触发条件3以及触发目标3,所述触发条件3至少包括,基于触发目标2所设定的状态2;The linkage rule 3 includes a trigger condition 3 and a trigger target 3, and the trigger condition 3 at least includes a state 2 set based on the trigger target 2;
……...
以此类推;and so on;
联动规则i包括触发条件i以及触发目标i,所述触发条件i至少包括,基于触发目标i-1所设定的状态i-1;所述触发目标i被执行的设定状态作为联动规则i+1中触发条件i+1之一。The linkage rule i includes a trigger condition i and a trigger target i, and the trigger condition i includes at least the state i-1 set based on the trigger target i-1; the set state in which the trigger target i is executed is used as the linkage rule i One of the trigger conditions i+1 in +1.
i为自然数。i is a natural number.
对于具有过程控制的触发目标而言,所述状态可以为过程控制中的进度,该进度包括,触发目标的过程控制中的中间结果,或者,触发目标的过程控制中的最后结果;对于不具有过程控制的触发目标而言,所述状态为触发目标被执行的最终结果。For a trigger target with process control, the status can be the progress in process control, the progress includes, the intermediate result in the process control of the trigger target, or the final result in the process control of the trigger target; For a trigger target of process control, the state is the final result of the trigger target being executed.
这样,用户通过终端所配置的联动规则,将本联动规则被执行的状态作为下一联动规则的触发条件,从而在各联动规则之间实现了触发条件的嵌套。In this way, through the linkage rules configured by the terminal, the user uses the executed state of the linkage rule as the trigger condition of the next linkage rule, thereby realizing the nesting of the trigger conditions among the linkage rules.
在网络侧(网关侧),网关接收到来自用户终端的配置联动规则后,根据配置联动规则,生成控制逻辑,该控制逻辑包括,各联动规则中的触发条件按照时间发生次序所组成的触发序列。网关根据控制逻辑中的触发序列,当触发序列中的触发条件依次被满足时,依次执行触发条件所联动的触发目标,也就是说,当检测到上一触发目标被执行时所设定的状态时,则执行本触发目标。On the network side (gateway side), after the gateway receives the configuration linkage rules from the user terminal, it generates control logic according to the configuration linkage rules. . According to the trigger sequence in the control logic, when the trigger conditions in the trigger sequence are met sequentially, the gateway will sequentially execute the trigger targets linked to the trigger conditions, that is, the state set when the previous trigger target is detected to be executed , execute this trigger target.
例如,上述联动规则1~联动规则i,所生成的控制逻辑为:触发条件1、触发条件2、….触发条件i所依次组成的触发序列。For example, the control logic generated by the above-mentioned linkage rule 1 to linkage rule i is: a trigger sequence composed of trigger condition 1, trigger condition 2, . . . trigger condition i.
当网关在时刻1获取到触发条件1时,则执行触发条件1所联动的触发目标1;When the gateway obtains the trigger condition 1 at time 1, it executes the trigger target 1 associated with the trigger condition 1;
当网关在时刻2获取到触发条件2时,即,网关在时刻2获取到基于触发目标1所设定的状态1时,则执行触发条件2所联动的触发目标2,When the gateway obtains the trigger condition 2 at time 2, that is, when the gateway obtains the state 1 set based on the trigger target 1 at time 2, it executes the trigger target 2 linked by the trigger condition 2,
以此类推;and so on;
当网关在时刻i获取到触发条件i时,即,网关在时刻i获取到基于触发目标i-1所设定的状态i-1时,则执行触发条件i所联动的触发目标i。When the gateway acquires the trigger condition i at time i, that is, when the gateway acquires the state i-1 set based on the trigger target i-1 at time i, the trigger target i linked to the trigger condition i is executed.
其中,时刻1、时刻2……时刻i在时间维度上依次增加,所述第一触发条件、第二触发条件….以及第i触发条件依次组成的序列与触发序列相匹配。当网关依次获取的触发条件与所述触发序列不匹配时,则判定禁止按照触发序列所形成的控制逻辑进行执行,根据该触发条件执行联动的触发目标。Wherein, time 1, time 2 ... time i increase sequentially in the time dimension, and the sequence composed of the first trigger condition, the second trigger condition ... and the i-th trigger condition in turn matches the trigger sequence. When the trigger conditions sequentially obtained by the gateway do not match the trigger sequence, it is determined that execution is prohibited according to the control logic formed by the trigger sequence, and the linked trigger target is executed according to the trigger condition.
例如,当网关在时刻1获取到触发条件1时,则执行触发条件1所联动的触发目标1,当网关在时刻2获取到触发条件3时,由于不存在触发条件2,触发条件1和触发条件3所形成的序列不是触发序列中从首个元素开始的连续子序列,则判定触发条件1和触发条件3不符合触发序列,故而禁止按照触发序列所形成的控制逻辑进行,而是分别根据触发条件1执行其联动的触发目标,根据触发条件3执行其联动的触发目标。For example, when the gateway acquires trigger condition 1 at time 1, it executes the trigger target 1 associated with trigger condition 1; when the gateway acquires trigger condition 3 at time 2, since trigger condition 2 does not exist, trigger condition 1 and trigger If the sequence formed by condition 3 is not a continuous subsequence starting from the first element in the trigger sequence, it is determined that trigger condition 1 and trigger condition 3 do not meet the trigger sequence, so it is forbidden to follow the control logic formed by the trigger sequence, but respectively according to Trigger condition 1 executes its linked trigger target, and trigger condition 3 executes its linked trigger target.
不失一般性地,判定依次组成的序列与触发序列相匹配可以是,将当前第一序列与接 收到的触发目标的当前执行状态组成第二序列,其中,第一序列为历次与触发序列相匹配的执行状态组成的序列,若第二序列为触发序列中从首个元素开始的连续子序列,则判定依次获取到的所述执行状态与触发序列相匹配,否则,判定依次获取到的所述执行状态与触发序列不相匹配。Without loss of generality, determining that the sequentially formed sequence matches the trigger sequence may be to compose the current first sequence and the received current execution state of the trigger target to form a second sequence, wherein the first sequence is the previous sequence matching the trigger sequence. If the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the execution states obtained in sequence match the trigger sequence; otherwise, it is determined that all the sequentially obtained The execution state described above does not match the trigger sequence.
所应理解的是,规则之间关联可以不限于链式串联,可以是复杂的关联,如同计算机中的各种数据结构一样,具体的关联情形可以根据应用的需要而设计。It should be understood that the association between rules may not be limited to a chain connection, but may be a complex association, just like various data structures in a computer, and specific association situations may be designed according to application requirements.
为便于理解本申请,以下以智能家居***中某些应用场景下的联动控制为例来进行说明。所应理解的是,本申请不限于智能家居***的联动控制,对于物联网***中的物联网设备的联动控制同样适用。In order to facilitate the understanding of the present application, the linkage control in some application scenarios in the smart home system is taken as an example for description below. It should be understood that the present application is not limited to the linkage control of the smart home system, and is also applicable to the linkage control of the IoT devices in the IoT system.
参见图5所示,图5为智能家居***的一种示意图。智能家居***包括,终端,云服务平台,网关、以及被控设备,其中,Referring to FIG. 5, FIG. 5 is a schematic diagram of a smart home system. The smart home system includes terminals, cloud service platforms, gateways, and controlled devices, among which,
终端作为配置和/或控制发起者,上传配置和/或控制信令到云服务平台,信令经过云服务平台向网关转发,以传输到网关。在一种可能的实施方式中,终端为智能手机,运行有可用于进行联动规则配置的应用程序。As a configuration and/or control initiator, the terminal uploads configuration and/or control signaling to the cloud service platform, and the signaling is forwarded to the gateway through the cloud service platform for transmission to the gateway. In a possible implementation manner, the terminal is a smart phone running an application program that can be used to configure linkage rules.
云服务平台可以承载各种物联业务,是配置信令和控制信令的下发传输中心,并保存网关网络参数、被控设备状态等。The cloud service platform can carry various IoT services, and is the distribution and transmission center of configuration signaling and control signaling, and saves gateway network parameters, status of controlled devices, etc.
网关作为智能家居***边缘的计算主体,基于云服务平台下发的联动、群控等功能,形成控制逻辑,按照控制逻辑,将信令解析成动作,分发到各个被控设备;同时收集各个被控设备上报的状态。As the computing subject at the edge of the smart home system, the gateway forms a control logic based on the functions such as linkage and group control delivered by the cloud service platform. According to the control logic, the gateway parses the signaling into actions and distributes them to each controlled device; The status reported by the control device.
被控设备作为一种物联网设备,包括路由节点和设备节点,作为动作的执行主体,根据网关下发的信令,执行联动的动作,同时将执行结果和设备状态上报给网关。图中,红外传感器、开关面板(路由节点)、门磁传感器均为被控设备。As an IoT device, the controlled device includes routing nodes and device nodes. As the execution subject of the action, it executes the linked action according to the signaling issued by the gateway, and reports the execution result and device status to the gateway. In the figure, infrared sensors, switch panels (routing nodes), and door magnetic sensors are all controlled devices.
参见图6所示,图6为照明灯光关闭时打开窗帘的场景下的一种联动控制流程示意图。Referring to FIG. 6 , FIG. 6 is a schematic diagram of a linkage control flow in a scene where the curtains are opened when the lighting is turned off.
在终端侧:步骤601,配置如下联动规则:On the terminal side: step 601, configure the following linkage rules:
联动规则1:红外传感器在设定温度下触发关闭照明灯光,其中,触发条件1为红外传感器在设定温度下,触发目标1为关闭照明灯光;Linkage rule 1: The infrared sensor triggers to turn off the lighting at the set temperature. Among them, the trigger condition 1 is that the infrared sensor is at the set temperature, and the trigger target 1 is to turn off the lighting;
联动规则2:照明灯光关闭的情况下,触发打开窗帘,其中,触发条件2为照明灯光关闭,即,联动规则1的执行结果;触发目标2为打开窗帘。Linkage rule 2: When the lighting is turned off, trigger to open the curtains, wherein the trigger condition 2 is that the lighting is turned off, that is, the execution result of linkage rule 1; the trigger target 2 is to open the curtains.
在一种可能的实施方式中,按照触发条件的关联次序,依次配置各个联动规则,使得 所配置的联动规则存在先后次序,或者,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个联动规则依次排序,使得所配置的联动规则存在先后次序,这样,可以得到有序联动规则序列。In a possible implementation manner, each linkage rule is configured sequentially according to the associated order of the trigger conditions, so that the configured linkage rules have a sequence, or, according to the trigger conditions in each linkage rule, and the trigger conditions and other linkage rules According to the relationship between the triggering targets, each linkage rule is sorted in turn, so that the configured linkage rules have a sequence, so that an orderly linkage rule sequence can be obtained.
步骤602,终端将所配置的联动规则1和联动规则2发送给网关,使得网关根据配置联动规则1和联动规则2生成控制逻辑,该控制逻辑为触发条件1、触发条件2组成的触发序列,并保存。Step 602, the terminal sends the configured linkage rule 1 and linkage rule 2 to the gateway, so that the gateway generates control logic according to the configured linkage rule 1 and linkage rule 2, the control logic is a trigger sequence composed of trigger condition 1 and trigger condition 2, and save.
在一种可能的实施方式中,按照所配置联动规则次序,依次发送所配置的联动规则给网关,或者,将有序联动规则序列发送给网关。In a possible implementation manner, the configured linkage rules are sequentially sent to the gateway according to the sequence of the configured linkage rules, or an ordered sequence of linkage rules is sent to the gateway.
步骤603,接收来自网关返回的配置成功或失败的提示。Step 603, receiving a prompt of configuration success or failure returned from the gateway.
在网络侧:步骤604,接收来自终端所配置的各个联动规则,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个触发条件生成触发序列,作为控制逻辑,On the network side: step 604, receiving each linkage rule configured from the terminal, and generating a trigger sequence for each trigger condition as the control logic according to the trigger conditions in each linkage rule and the relationship between the trigger condition and the trigger target in other linkage rules ,
在一种可能的实施方式中,对于联动规则序列,可以按照各个联动规则次序,依次提取各个联动规则中的触发条件,按序生成触发序列。In a possible implementation manner, for the sequence of linkage rules, the trigger conditions in each linkage rule may be sequentially extracted according to the sequence of each linkage rule, and the trigger sequence may be generated in sequence.
步骤605,网关在时刻1接收到被控设备上报的红外传感器触发事件,将该触发事件组成当前第一序列,即,第一序列中的首个元素;由于当前第一序列为触发序列中首个元素,判定执行状态与触发序列匹配,根据触发条件1被满足时所联动的触发目标,控制开光面板执行关闭灯光的操作;Step 605, the gateway receives the infrared sensor trigger event reported by the controlled device at time 1, and forms the trigger event into the current first sequence, that is, the first element in the first sequence; since the current first sequence is the first element in the trigger sequence elements, determine that the execution status matches the trigger sequence, and control the light-on panel to perform the operation of turning off the light according to the trigger target linked when the trigger condition 1 is met;
步骤606,网关在时刻2接收开光面板返回的关闭灯光操作的反馈,将该反馈与当前第一序列(即,步骤605组成的第一序列)组成第二序列,由于第二序列为触发序列中从首个元素开始的连续子序列,判定执行状态与触发序列匹配,根据当前触发条件2被满足时所联动的触发目标,控制智能窗帘打开,并将第一序列更新为当前第二序列。Step 606, the gateway receives the feedback of the operation of turning off the lights returned by the light-on panel at time 2, and forms the second sequence with the feedback and the current first sequence (that is, the first sequence formed in step 605), because the second sequence is the trigger sequence The continuous subsequence starting from the first element determines that the execution state matches the trigger sequence, controls the opening of the smart curtains according to the trigger target linked when the current trigger condition 2 is met, and updates the first sequence to the current second sequence.
其中,时刻2为时刻1的下一时刻。Wherein, time 2 is the next time of time 1.
步骤607,智能窗帘向网关上报执行结果和状态,Step 607, the smart curtain reports the execution result and status to the gateway,
步骤608,网关将来自智能窗帘的执行结果和状态转发给终端。Step 608, the gateway forwards the execution result and status from the smart curtain to the terminal.
在该实施例中,联动规则1中触发目标1的执行结果作为联动规则2中的触发条件2,这样,使得联动规则1和联动规则2中触发条件的链式串联,实现了联动规则1和联动规则2通过联动规则1的执行结果关联,在一次触发事件之后使得场景中的其他事件根据预设的状态依次地执行,形成多环节联动。In this embodiment, the execution result of trigger target 1 in linkage rule 1 is used as trigger condition 2 in linkage rule 2. In this way, the chain connection of the trigger conditions in linkage rule 1 and linkage rule 2 realizes linkage rule 1 and Linkage rule 2 is associated with the execution result of linkage rule 1. After a trigger event, other events in the scene are executed sequentially according to the preset state, forming a multi-link linkage.
参见图7所示,图7为按照触发目标执行进度、以及执行结果来进行联动控制的一种流程示意图。在终端侧:Referring to FIG. 7 , FIG. 7 is a schematic flow chart of linkage control according to the execution schedule and execution result of the trigger target. On the terminal side:
步骤701,配置如下联动规则:Step 701, configure the following linkage rules:
联动规则1:红外传感器在设定温度下触发关闭房间灯光,其中,触发条件1为红外传感器在设定温度下,触发目标1为关闭房间灯光;Linkage rule 1: The infrared sensor triggers to turn off the room light at the set temperature, where the trigger condition 1 is that the infrared sensor is at the set temperature, and the trigger target 1 is to turn off the room light;
联动规则2:根据灯光关闭的执行结果,触发打开窗帘;其中,触发条件2为灯光关闭,该触发条件为触发目标1的执行结果,触发目标2为打开窗帘;Linkage rule 2: According to the execution result of turning off the lights, trigger to open the curtains; among them, the trigger condition 2 is to turn off the lights, the trigger condition is the execution result of the trigger target 1, and the trigger target 2 is to open the curtains;
联动规则3:窗帘打开50%时,触发推窗器打开窗户;其中,触发条件3为窗帘打开50%,该触发条件为触发目标2的执行进度,触发目标3为推窗器打开窗户;Linkage rule 3: When the curtains are opened by 50%, the window pusher is triggered to open the window; among them, the trigger condition 3 is that the curtains are opened by 50%, the trigger condition is the execution progress of the trigger target 2, and the trigger target 3 is the window pusher to open the window;
联动规则4:窗帘打开20%时,触发语音播放;其中,触发条件4为窗帘打开20%,该触发条件为触发目标2的执行进度,触发目标4为语音播放;所述语音包括音乐、自然语言等内容。Linkage rule 4: when the curtains are opened by 20%, the voice playback is triggered; among them, the trigger condition 4 is that the curtains are opened by 20%, the trigger condition is the execution progress of the trigger target 2, and the trigger target 4 is voice playback; the voice includes music, natural language etc.
在一种可能的实施方式中,按照触发条件的关联次序,依次配置各个联动规则,使得所配置的联动规则存在先后次序,或者,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个联动规则按照触发条件发生的时间次序依次排序,使得所配置的联动规则存在先后次序,得到有序联动规则序列。In a possible implementation manner, each linkage rule is configured sequentially according to the associated order of the trigger conditions, so that the configured linkage rules have a sequence, or, according to the trigger conditions in each linkage rule, and the trigger conditions and other linkage rules According to the relationship between the triggering targets, each linkage rule is sorted according to the time sequence of the occurrence of the trigger condition, so that the configured linkage rules have a sequence, and an orderly linkage rule sequence is obtained.
在该实施例中,触发条件3和触发条件4均与窗帘打开的进度有关,根据打开进度,触发条件4发生的时间早于触发条件3,故而终端所形成的联动规则次序依次为:联动规则1、联动规则2、联动规则4、联动规则3。In this embodiment, trigger condition 3 and trigger condition 4 are both related to the opening progress of the curtains. According to the opening progress, trigger condition 4 occurs earlier than trigger condition 3, so the sequence of linkage rules formed by the terminal is: linkage rules 1. Linkage rules 2. Linkage rules 4. Linkage rules 3.
步骤702,终端将所配置的联动规则发送给网关,使得网关根据配置联动规则生成控制逻辑,该控制逻辑为触发条件1、触发条件2、触发条件3、触发条件4组成的触发序列,并保存。Step 702, the terminal sends the configured linkage rules to the gateway, so that the gateway generates control logic according to the configured linkage rules, the control logic is a trigger sequence composed of trigger condition 1, trigger condition 2, trigger condition 3, and trigger condition 4, and saves .
步骤703,接收来自网关返回的配置成功或失败的提示。Step 703, receiving a prompt of configuration success or failure returned from the gateway.
在网络侧:步骤704,接收来自终端所配置的各个联动规则,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个触发条件生成触发序列,作为控制逻辑。On the network side: step 704, receiving each linkage rule configured from the terminal, and generating a trigger sequence for each trigger condition as the control logic according to the trigger conditions in each linkage rule and the relationship between the trigger condition and the trigger target in other linkage rules .
在该步骤中,对于任一联动规则,根据该联动规则中的触发条件,确定其所包含的触发目标被执行所设定的状态,按照各个触发条件、以及各个触发条件所包含的触发目标被执行所设定的状态发生的时间先后顺序,将各个触发条件按序排列成触发序列。In this step, for any linkage rule, according to the trigger conditions in the linkage rule, it is determined that the trigger target contained in it is executed and the set state is determined, according to each trigger condition and the trigger target contained in each trigger condition is executed. Execute the chronological order in which the set states occur, and arrange each trigger condition in sequence into a trigger sequence.
在一种可能的实施方式中,对于有序联动规则序列,则可以按照各个联动规则次序,依次提取各个联动规则中的触发条件,按序生成触发序列。In a possible implementation manner, for an ordered sequence of linkage rules, the trigger conditions in each linkage rule may be sequentially extracted according to the sequence of each linkage rule, and the trigger sequence may be generated in sequence.
在该实施例中,触发序列依次为:触发条件1、触发条件2、触发条件4、触发条件3。In this embodiment, the trigger sequence is: trigger condition 1, trigger condition 2, trigger condition 4, and trigger condition 3.
步骤705,网关在时刻1接收到被控设备上报的红外传感器触发事件,将该触发事件组成当前第一序列,即,第一序列中的首个元素;由于当前第一序列为触发序列中首个元素,判定执行状态与触发序列匹配,前,根据触发条件1被满足时所联动的触发目标,控制开光面板执行关闭灯光的操作;Step 705, the gateway receives the infrared sensor trigger event reported by the controlled device at time 1, and forms the trigger event into the current first sequence, that is, the first element in the first sequence; since the current first sequence is the first element in the trigger sequence elements, determine that the execution status matches the trigger sequence, before, according to the trigger target linked when the trigger condition 1 is met, control the light panel to perform the operation of turning off the light;
步骤706,网关在时刻2接收开光面板返回的关闭灯光操作的反馈,将该反馈与当前第一序列(即,步骤605组成的第一序列)组成第二序列,该第二序列为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭),由于第二序列为触发序列中从首个元素开始的连续子序列,判定执行状态与触发序列匹配,根据当前触发条件2被满足时所联动的触发目标,控制智能窗帘打开,并将第一序列更新为当前第二序列。Step 706, the gateway receives the feedback of the operation of turning off the light returned by the light panel at time 2, and forms a second sequence with the feedback and the current first sequence (that is, the first sequence formed in step 605), and the second sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), since the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the execution state matches the trigger sequence, and when the current trigger condition 2 is met The linked trigger target controls the opening of the smart curtains and updates the first sequence to the current second sequence.
步骤707,网关在时刻3接收智能窗帘实时返回的当前打开进度,例如,智能窗帘在打开进度为10%时,返回打开进度1,智能窗帘在打开进度为20%时,返回打开进度2,智能窗帘在打开进度为50%时,返回打开进度3,其中,智能窗帘所反馈的过程控制中的进度可以按照预先进度步长设置。Step 707, the gateway receives the current opening progress returned by the smart curtain in real time at time 3. For example, when the opening progress of the smart curtain is 10%, the opening progress 1 is returned, and when the opening progress of the smart curtain is 20%, the opening progress 2 is returned. When the opening progress of the curtain is 50%, it returns to opening progress 3, wherein the progress in the process control fed back by the smart curtain can be set according to the advance progress step.
步骤708,网关根据接收的当前打开进度,将该进度与当前第一序列组成第二序列,Step 708, the gateway forms a second sequence based on the received current opening progress and the current first sequence,
例如,当接收到打开进度1时,将该打开进度与当前第一序列组成第二序列,该序列依次为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭)、触发条件3(打开进度1),由于该序列不为触发序列中从首个元素开始的连续子序列,故判定第二序列与触发序列不匹配,这时没有可执行的触发目标,停止触发联动。For example, when the opening progress 1 is received, the opening progress and the current first sequence form a second sequence, and the sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), trigger condition 3 (Open progress 1), since the sequence is not a continuous subsequence starting from the first element in the trigger sequence, it is determined that the second sequence does not match the trigger sequence, and there is no executable trigger target at this time, and the trigger linkage is stopped.
当接收到打开进度2时,将该打开进度与当前第一序列组成第二序列,该序列依次为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭)、触发条件4(打开进度2),由于该第二序列为触发序列中从首个元素开始的连续子序列,故判定第二序列与触发序列匹配,根据触发条件4被满足时所联动的触发目标,触发播放音乐,并将第一序列更新为当前第二序列,When the opening progress 2 is received, the opening progress and the current first sequence form a second sequence. The sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), trigger condition 4 (open Progress 2), since the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the second sequence matches the trigger sequence, and the music is triggered to play according to the trigger target linked when the trigger condition 4 is met, and update the first sequence to the current second sequence,
当接收到打开进度3时,将该打开进度与当前第一序列组成第二序列,该序列依次为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭)、触发条件4(打开进度2),触发条件3(打开进度1),由于该第二序列为触发序列中从首个元素开始的连续子序列, 故判定第二序列与触发序列匹配,根据触发条件3时被满足时所联动的触发目标,则触发推窗器打开窗户。When the opening progress 3 is received, the opening progress is combined with the current first sequence to form a second sequence. The sequence is: trigger condition 1 (infrared sensor trigger event), trigger condition 2 (light off), trigger condition 4 (open Progress 2), trigger condition 3 (open progress 1), since the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the second sequence matches the trigger sequence, and when trigger condition 3 is met The linked trigger target will trigger the window pusher to open the window.
在一种可能的实施方式中,当第二序列与触发序列完全相同时,判定控制逻辑执行完毕。In a possible implementation manner, when the second sequence is completely identical to the trigger sequence, it is determined that the execution of the control logic is completed.
步骤709,网关继续接收智能窗帘所反馈的过程控制中的进度,接收推窗器所反馈的过程控制中的进度。In step 709, the gateway continues to receive the progress in the process control fed back by the smart curtain, and receives the progress in the process control fed back by the window pusher.
本实施例实现了红外触发、灯光关闭、灯光关闭后窗帘打开、窗帘打开至20%时播放音乐、窗帘打开至50%时打开窗户的应用场景联动控制,有利于提高用户体验。This embodiment realizes the application scene linkage control of infrared triggering, light off, curtain opening after light off, music playing when the curtain is open to 20%, and window opening when the curtain is open to 50%, which is beneficial to improve user experience.
在该实施例中,联动规则1中触发目标1的执行结果作为联动规则2中的触发条件2,联动规则2中触发目标的一种执行程度作为联动规则3中的触发条件3,联动规则2中触发目标的另一种执行程度作为联动规则4中的触发条件4,这样,联动规则1和联动规则2中触发条件的链式串联,联动规则3、联动规则4既并列地与联动规则2中触发条件相关,联动规则3、联动规则4两者之间又通过进度形成链式串联,形成了复杂的联动控制,提高了联动控制的智能化。In this embodiment, the execution result of trigger target 1 in linkage rule 1 is used as trigger condition 2 in linkage rule 2, and an execution degree of the trigger target in linkage rule 2 is used as trigger condition 3 in linkage rule 3, and linkage rule 2 Another execution level of the triggering target in linkage rule 4 is the trigger condition 4 in linkage rule 4. In this way, linkage rule 1 and linkage rule 2 trigger conditions are chained in series, and linkage rule 3 and linkage rule 4 are parallel to linkage rule 2. Linkage rule 3 and linkage rule 4 form a chain connection through progress, forming complex linkage control and improving the intelligence of linkage control.
参见图8所示,图8为本申请用于实现联动控制的一种网关的示意图。该网关包括,Referring to FIG. 8 , FIG. 8 is a schematic diagram of a gateway used to implement linkage control in this application. The gateway includes,
第一通信模块,用于与终端进行信息的交互,包括,接收来自终端所配置的两个以上联动规则、向终端发送配置结果、联动结果、物联网设备的状态等信息,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,The first communication module is used for information interaction with the terminal, including receiving more than two linkage rules configured by the terminal, sending information such as configuration results, linkage results, and the status of IoT devices to the terminal, wherein each linkage A rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least associated through the execution status of the trigger target in another linkage rule, so that there is a direct or indirect relationship between the linkage rules,
联动控制模块,用于根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列,接收来自各个被控设备返回的触发目标的执行状态,当依次获取到的执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。The linkage control module is used to generate control logic according to the association relationship between the linkage rules, the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order, and receives the execution of the trigger target returned from each controlled device state, when the sequentially obtained execution state matches the trigger sequence, linkage control is performed according to the control logic.
参见图9所示,图9为本申请用于实现联动规则配置的一种终端的示意图。该终端包括:Referring to FIG. 9 , FIG. 9 is a schematic diagram of a terminal used to implement linkage rule configuration in this application. The terminal includes:
配置模块,用于基于用户的输入操作,配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,The configuration module is used to configure more than two linkage rules based on user input operations, wherein each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule at least passes the trigger target in another linkage rule The execution status forms an association, so that there is a direct or indirect association between the various linkage rules,
第二通信模块,用于与网关进行信息交互,包括,将配置的联动规则发送至网关,以 及接收来自网关的配置结果、联动结果、物联网设备的状态等信息。The second communication module is used for information interaction with the gateway, including sending the configured linkage rules to the gateway, and receiving configuration results, linkage results, status of IoT devices and other information from the gateway.
参见图10所示,图10为终端或网关的另一种示意图。所述终端或网关分别包括存储器和处理器,在终端的存储器存储有计算机程序,该计算机程序被在终端的处理器执行时实现任一所述物联网设备的联动配置方法的步骤。在网关中,的存储器存储有计算机程序,该计算机程序被在网关中的处理器执行时实现任一所述物联网设备的联动控制方法的步骤。Referring to FIG. 10 , FIG. 10 is another schematic diagram of a terminal or a gateway. The terminal or the gateway includes a memory and a processor respectively, and a computer program is stored in the memory of the terminal, and when the computer program is executed by the processor of the terminal, the steps of any one of the linked configuration methods of the Internet of Things device are implemented. In the gateway, the computer program is stored in the memory, and when the computer program is executed by the processor in the gateway, the steps of any linkage control method for the Internet of Things devices are realized.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include a random access memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located far away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor can be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it can also be a digital signal processor (Digital Signal Processing, DSP), dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
本申请实施例还提供了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现所述物联网设备的联动控制方法步骤。The embodiment of the present application also provides a computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, the steps of the linkage control method for the Internet of Things device are realized.
对于装置/网络侧设备/存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the embodiment of the device/network side device/storage medium, since it is basically similar to the embodiment of the method, the description is relatively simple, and for the related parts, please refer to the part of the description of the embodiment of the method.
在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。In this document, relational terms such as first and second etc. are used only to distinguish one entity or operation from another without necessarily requiring or implying any such relationship between these entities or operations. Actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above descriptions are only preferred embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within the range.

Claims (16)

  1. 一种物联网设备的联动控制方法,其特征在于,该方法包括:A linkage control method for an Internet of Things device, characterized in that the method comprises:
    在网关侧,On the gateway side,
    接收来自终端所配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,Receive more than two linkage rules configured from the terminal, wherein each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least associated with the execution status of the trigger target in another linkage rule, so that all There is a direct or indirect relationship between the linkage rules mentioned above,
    根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列,According to the association relationship between the linkage rules, control logic is generated, and the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order,
    接收来自各个被控设备返回的触发目标的执行状态,Receive the execution status of the trigger target returned from each controlled device,
    当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。When the sequentially obtained execution states match the trigger sequence, linkage control is performed according to the control logic.
  2. 如权利要求1所述的联动控制方法,其特征在于,所述任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:The linkage control method according to claim 1, wherein the trigger condition in any linkage rule is at least associated with the execution status of the trigger target in another linkage rule, including:
    对于任一联动规则,For any linkage rule,
    该联动规则中的触发条件至少包括,基于除该联动规则之外的其他联动规则中触发目标被执行所设定的状态,The trigger condition in the linkage rule at least includes, based on the state that the trigger target is executed in other linkage rules except the linkage rule,
    和/或,and / or,
    基于该联动规则中触发目标被执行所设定的状态作为除该联动规则之外的其他联动规则中的触发条件;Based on the state of the trigger target being executed in the linkage rule as the trigger condition in other linkage rules except this linkage rule;
    其中,in,
    对于具有过程控制的触发目标,所述状态为过程控制中当前进度,该进度包括,过程控制中的中间结果,或者,过程控制中的最终结果,For a trigger target with process control, the status is the current progress in process control, the progress includes intermediate results in process control, or final results in process control,
    对于不具有过程控制的触发目标,所述状态为触发目标的执行结果。For trigger objects that do not have process control, the status is the execution result of the trigger object.
  3. 如权利要求1所述的联动控制方法,其特征在于,所述当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制包括:The linkage control method according to claim 1, wherein when the sequentially obtained execution states match the trigger sequence, performing linkage control according to the control logic includes:
    将当前第一序列与接收到的触发目标的当前执行状态组成第二序列,其中,第一序列为历次与触发序列相匹配的执行状态组成的序列,Composing the current first sequence and the received current execution state of the trigger target into a second sequence, wherein the first sequence is a sequence composed of previous execution states that match the trigger sequence,
    若第二序列为触发序列中从首个元素开始的连续子序列,则判定依次获取到的所述执行状态与触发序列相匹配,按照当前触发条件被满足时所联动的触发目标进行控制,并将当前第一序列更新为所述第二序列,否则,判定依次获取到的所述执行状态与触发序列不相匹配,停止触发联动。If the second sequence is a continuous subsequence starting from the first element in the trigger sequence, it is determined that the execution status acquired in sequence matches the trigger sequence, and the trigger target linked when the current trigger condition is met is controlled, and The current first sequence is updated to the second sequence, otherwise, it is determined that the sequentially obtained execution states do not match the trigger sequence, and the trigger linkage is stopped.
  4. 如权利要求2所述的联动控制方法,其特征在于,所述关联关系为链式串联关系,The linkage control method according to claim 2, wherein the association relationship is a chain series relationship,
    所述任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:The trigger conditions in any of the linkage rules are at least associated through the execution status of the trigger target in another linkage rule, including:
    对于任一联动规则i,包括触发条件i和触发目标i,For any linkage rule i, including trigger condition i and trigger target i,
    所述触发条件i至少包括,基于联动规则i-1中触发目标i-1被执行所设定的状态,The trigger condition i at least includes, based on the state set by the trigger target i-1 in the linkage rule i-1 being executed,
    所述触发目标i被执行的设定状态作为联动规则i+1中的触发条件i+1之一,The set state in which the trigger target i is executed is used as one of the trigger conditions i+1 in the linkage rule i+1,
    其中,i为自然数;Among them, i is a natural number;
    所述当依次获取到的所述执行状态与触发序列相匹配时,按照触发条件被满足时所联动的触发目标进行控制,包括:When the sequentially obtained execution status matches the trigger sequence, the control is performed according to the trigger target linked when the trigger condition is met, including:
    当网关在第一时刻获取到第一触发条件被满足时,则执行第一触发条件所联动的第一触发目标;When the gateway acquires that the first trigger condition is met at the first moment, execute the first trigger target linked to the first trigger condition;
    当网关在第二时刻获取到第二触发条件被满足时,则执行第二触发条件所联动的第二触发目标;When the gateway acquires that the second trigger condition is met at the second moment, execute the second trigger target associated with the second trigger condition;
    依次类推,And so on,
    当网关在第i时刻获取到第i触发条件被满足时,则执行第i触发条件所联动的第i触发目标,When the gateway acquires that the i-th trigger condition is satisfied at the i-th moment, it executes the i-th trigger target linked to the i-th trigger condition,
    其中,in,
    各时刻在时间维度上依次增加;Each moment increases sequentially in the time dimension;
    所述第一触发条件、第二触发条件….以及第i触发条件依次组成的序列与触发序列相匹配。The sequence formed by the first trigger condition, the second trigger condition... and the i-th trigger condition matches the trigger sequence.
  5. 如权利要求1所述的联动控制方法,其特征在于,所述根据联动规则之间的关联关系,生成控制逻辑,包括:The linkage control method according to claim 1, wherein said generating control logic according to the association relationship between linkage rules includes:
    对于任一联动规则,根据该联动规则中的触发条件,确定其所包含的触发目标被执行所设定的状态,For any linkage rule, according to the trigger conditions in the linkage rule, determine the status of the trigger target contained in it being executed,
    按照各个触发条件、以及各个触发条件所包含的触发目标被执行所设定的状态发生的时间先后顺序,将各个触发条件按序排列成触发序列。According to the chronological order in which each trigger condition and the state in which the trigger target contained in each trigger condition occurs is executed, each trigger condition is arranged in sequence into a trigger sequence.
  6. 如权利要求1所述的联动控制方法,其特征在于,所述两个以上联动规则为存在先后次序的有序联动规则序列,The linkage control method according to claim 1, wherein the two or more linkage rules are an ordered sequence of linkage rules in order,
    所述根据联动规则之间的关联关系,生成控制逻辑,包括:将各个联动规则中的触发条件,按照联动规则序列,组成触发序列;The generating control logic according to the association relationship between the linkage rules includes: combining the trigger conditions in each linkage rule according to the linkage rule sequence to form a trigger sequence;
    该方法还包括:The method also includes:
    当依次获取到的执行状态与触发序列不相匹配时,则禁止按照控制逻辑进行联动控制, 查询其余联动规则,如果查询成功,则按照所查询成功的联动规则执行,否则,退出当前联动控制。When the execution status obtained in turn does not match the trigger sequence, it is forbidden to perform linkage control according to the control logic, and query the remaining linkage rules. If the query is successful, execute according to the successfully queried linkage rules; otherwise, exit the current linkage control.
  7. 一种物联网设备的联动控制方法,其特征在于,应用于网关侧,所述方法包括:A linkage control method for an Internet of Things device, characterized in that it is applied to a gateway side, and the method includes:
    接收来自终端所配置的联动规则集合,其中,所述联动规则集合中包括至少两个联动规则,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;Receive a set of linkage rules configured from the terminal, wherein the set of linkage rules includes at least two linkage rules, the at least two linkage rules include header linkage rules and subsequent linkage rules, and each linkage rule includes trigger conditions and The trigger target, the trigger condition in any subsequent linkage rule is at least associated through the execution status of the trigger target in another linkage rule, and there is a direct or indirect relationship between the linkage rules;
    根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列;According to the association relationship between the linkage rules, control logic is generated, and the control logic includes a trigger sequence composed of trigger conditions in each linkage rule in order;
    接收来自各个被控设备返回的触发目标的执行状态;Receive the execution status of the trigger target returned from each controlled device;
    当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。When the sequentially obtained execution states match the trigger sequence, linkage control is performed according to the control logic.
  8. 如权利要求7所述的联动控制方法,其特征在于,所述任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:The linkage control method according to claim 7, wherein the trigger condition in any subsequent linkage rule is at least associated with the execution status of the trigger target in another linkage rule, including:
    对于任一后续联动规则,该后续联动规则中的触发条件包括:基于除该后续联动规则之外的至少一个联动规则中触发目标被执行所设定的状态;For any subsequent linkage rule, the trigger condition in the subsequent linkage rule includes: based on the state that the trigger target is executed in at least one linkage rule other than the subsequent linkage rule;
    其中,对于具有过程控制的触发目标,所设定的状态为过程控制中的进度,该进度包括:过程控制中的中间结果,或者,过程控制中的最终结果;对于不具有过程控制的触发目标,所设定的状态为触发目标的执行结果。Among them, for the trigger target with process control, the set state is the progress in process control, the progress includes: the intermediate result in process control, or the final result in process control; for the trigger target without process control , the set state is the execution result of the trigger target.
  9. 一种物联网设备的联动规则的配置方法,其特征在于,该方法包括:A method for configuring linkage rules of an Internet of Things device, characterized in that the method comprises:
    在终端侧,On the terminal side,
    配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,Two or more linkage rules configured, wherein each linkage rule includes a trigger condition and a trigger target, and the trigger condition in any linkage rule is at least associated with the execution status of the trigger target in another linkage rule, so that each linkage rule There is a direct or indirect relationship between
    将配置的联动规则发送至网关。Send the configured linkage rules to the gateway.
  10. 如权利要求9所述的配置方法,其特征在于,该方法进一步包括:The configuration method according to claim 9, characterized in that the method further comprises:
    根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,使得所配置的联动规则存在先后次序,得到联动规则序列,将联动规则序列发送给网关;According to the trigger conditions in each linkage rule, sort each linkage rule according to the order in which the trigger conditions occur, so that the configured linkage rules have a sequence, obtain a sequence of linkage rules, and send the sequence of linkage rules to the gateway;
    或者,or,
    根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,并按照先后次序依次发送各个联动规则给网关。According to the trigger conditions in each linkage rule, the linkage rules are sorted according to the sequence in which the trigger conditions occur, and the linkage rules are sent to the gateway in sequence.
  11. 一种物联网设备的联动规则的配置方法,其特征在于,应用于终端侧,所述方法包括:A method for configuring a linkage rule of an Internet of Things device, characterized in that it is applied to a terminal side, and the method includes:
    配置的至少两个联动规则,得到联动规则集合,其中,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;Configure at least two linkage rules to obtain a linkage rule set, wherein the at least two linkage rules include head linkage rules and subsequent linkage rules, each linkage rule includes a trigger condition and a trigger target, and any subsequent linkage rule The triggering condition is at least related through the execution state of the triggering target in another linkage rule, and there is a direct or indirect relationship between the linkage rules;
    将配置的联动规则发送至网关。Send the configured linkage rules to the gateway.
  12. 一种网关设备,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8任一所述物联网设备的联动控制方法的步骤。A gateway device, characterized in that it includes a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the linkage control method for the Internet of Things device according to any one of claims 1 to 8 is realized A step of.
  13. 一种终端,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求9至11任一所述物联网设备配置方法的步骤。A terminal, characterized by comprising a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the steps of the IoT device configuration method according to any one of claims 9 to 11 are realized.
  14. 一种物联网***,包括用于配置和/或控制物联网设备的终端,用于联动和/或群控物联网设备的网关,以及物联网设备,其特征在于,An Internet of Things system, including a terminal for configuring and/or controlling an Internet of Things device, a gateway for linkage and/or group control of an Internet of Things device, and an Internet of Things device, characterized in that,
    所述终端用于实现如权利要求1至8任一所述物联网设备的联动控制方法的步骤;The terminal is used to realize the steps of the linkage control method for the Internet of Things device according to any one of claims 1 to 8;
    所述网关用于实现如权利要求9至11任一所述物联网设备配置方法的步骤。The gateway is used to realize the steps of the IoT device configuration method according to any one of claims 9 to 11.
  15. 如权利要求14所述的物联网***,其特征在于,所述物联网***还包括用于提供物联业务的云平台,所述云平台通过网络与网关连接,传输配置信令和控制信令,并保存网关网络参数、以及物联网设备状态。The Internet of Things system according to claim 14, wherein the Internet of Things system also includes a cloud platform for providing Internet of Things services, the cloud platform is connected to the gateway through a network, and transmits configuration signaling and control signaling , and save the gateway network parameters and the status of the IoT device.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-11任一所述的方法步骤。A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps described in any one of claims 1-11 are implemented.
PCT/CN2022/102181 2021-07-08 2022-06-29 Linkage control method for internet-of-things device, and terminal, gateway device and system WO2023280028A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110771700.0 2021-07-08
CN202110771700.0A CN113419439B (en) 2021-07-08 2021-07-08 Linkage control method, terminal, gateway equipment and system of Internet of things equipment

Publications (1)

Publication Number Publication Date
WO2023280028A1 true WO2023280028A1 (en) 2023-01-12

Family

ID=77721596

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102181 WO2023280028A1 (en) 2021-07-08 2022-06-29 Linkage control method for internet-of-things device, and terminal, gateway device and system

Country Status (2)

Country Link
CN (1) CN113419439B (en)
WO (1) WO2023280028A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419439B (en) * 2021-07-08 2023-04-07 杭州萤石软件有限公司 Linkage control method, terminal, gateway equipment and system of Internet of things equipment
CN113949603A (en) * 2021-10-12 2022-01-18 上海宝创网络科技有限公司 Gateway function linkage method and device
CN114070873A (en) * 2021-11-09 2022-02-18 浙江大华技术股份有限公司 Equipment linkage method and device in Internet of things, storage medium and electronic device
CN114785817A (en) * 2022-02-28 2022-07-22 济南三星灯饰有限公司 Cloud edge collaborative scene linkage method of intelligent lamp pole equipment
CN115442228A (en) * 2022-09-06 2022-12-06 上海庆科信息技术有限公司 Business logic processing method, device, electronic device, storage medium and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2971784A1 (en) * 2016-06-23 2017-12-23 Radicalogic Technologies, Inc. Healthcare workflow system
CN109445848A (en) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 Equipment linkage method and device
CN112214331A (en) * 2020-10-14 2021-01-12 成都昆朋新能科技有限公司 Linkage dead cycle avoidance algorithm based on smart home
CN112448989A (en) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 Internet of things equipment control method and system, configuration terminal, equipment and storage medium
CN112579053A (en) * 2020-12-11 2021-03-30 苏州数言信息技术有限公司 Design architecture of ultra-light embedded internet of things rule engine
US11023924B1 (en) * 2016-04-01 2021-06-01 Jelli, Inc. Event triggers in audio advertising
CN113419439A (en) * 2021-07-08 2021-09-21 杭州萤石软件有限公司 Linkage control method, terminal, gateway equipment and system of Internet of things equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6786896B1 (en) * 1997-09-19 2004-09-07 Massachusetts Institute Of Technology Robotic apparatus
JPWO2004085297A1 (en) * 2003-03-27 2006-06-29 武 小口 Supply chain tie management system
CN103019650B (en) * 2012-12-21 2016-03-09 大唐软件技术股份有限公司 A kind of disposal route of business cooperation and device
CN105807728B (en) * 2014-12-29 2019-03-08 联想(北京)有限公司 A kind of control method and electronic equipment
CN107558861A (en) * 2016-07-01 2018-01-09 台山市云鼎网络技术开发有限公司 A kind of intelligent window control method and system
CN108073079A (en) * 2017-12-14 2018-05-25 上海斐讯数据通信技术有限公司 A kind of intelligent home furnishing control method and system based on linkage strategy
CN112202877B (en) * 2020-09-29 2023-04-18 中移(杭州)信息技术有限公司 Gateway linkage method, gateway, cloud server and user terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11023924B1 (en) * 2016-04-01 2021-06-01 Jelli, Inc. Event triggers in audio advertising
CA2971784A1 (en) * 2016-06-23 2017-12-23 Radicalogic Technologies, Inc. Healthcare workflow system
CN109445848A (en) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 Equipment linkage method and device
CN112448989A (en) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 Internet of things equipment control method and system, configuration terminal, equipment and storage medium
CN112214331A (en) * 2020-10-14 2021-01-12 成都昆朋新能科技有限公司 Linkage dead cycle avoidance algorithm based on smart home
CN112579053A (en) * 2020-12-11 2021-03-30 苏州数言信息技术有限公司 Design architecture of ultra-light embedded internet of things rule engine
CN113419439A (en) * 2021-07-08 2021-09-21 杭州萤石软件有限公司 Linkage control method, terminal, gateway equipment and system of Internet of things equipment

Also Published As

Publication number Publication date
CN113419439A (en) 2021-09-21
CN113419439B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
WO2023280028A1 (en) Linkage control method for internet-of-things device, and terminal, gateway device and system
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
US20190391541A1 (en) Technologies for conversational interfaces for system control
CN104932456B (en) Intelligent scene implementation method and device, intelligent terminal and control equipment
US20220400028A1 (en) Operation control method and device, household electrical appliance, and storage medium
US20190179610A1 (en) Architecture for a hub configured to control a second device while a connection to a remote system is unavailable
US20180359364A1 (en) Voice agent forwarding
US11586413B2 (en) Synchronous sounds for audio assistant on devices
US20140317256A1 (en) Loop and Outage Avoidance in Software Defined Network
WO2021043259A1 (en) Linkage control system and method, storage medium, and electronic device
JP6259167B2 (en) Lighting effect control
CN110557448A (en) Control method and system for smart home
WO2021129240A1 (en) Skill scheduling method and apparatus for voice conversation platform
WO2020006993A1 (en) Intelligent household electrical appliance control method and intelligent household electrical appliance control device
CN113485129B (en) Method for controlling and reporting equipment under contextual model of whole-house intelligent system
WO2017012295A1 (en) Processing method and device for action in event
CN109661080B (en) One-key networking control method and control system
CN109189356A (en) A kind of multiple terminals roller blind system and method
WO2023124136A1 (en) Device control method and apparatus, electronic device, and storage medium
CN110808980A (en) Network distribution method and system of intelligent lamp, intelligent lamp and storage medium
CN111800444A (en) Control system and control method capable of being dynamically adjusted
CN109728937A (en) A kind of method and device of the updating network state of voice mould group
CN109739579A (en) Application starting method, apparatus and storage medium based on feedback protocols
CN110798388B (en) Communication control method and gateway
CN115208859B (en) Information interaction method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22836782

Country of ref document: EP

Kind code of ref document: A1

WD Withdrawal of designations after international publication
NENP Non-entry into the national phase

Ref country code: DE