WO2023280028A1 - 物联网设备的联动控制方法、终端、网关设备及*** - Google Patents

物联网设备的联动控制方法、终端、网关设备及*** 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
English (en)
French (fr)
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/zh

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

一种物联网设备的联动控制方法、终端、网关设备、及***,方法包括:在网关侧,接收来自终端所配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得各个联动规则之间存在直接或间接的关联关系(201),根据联动规则之间的关联关系,生成控制逻辑,控制逻辑包括由各联动规则中触发条件按序组成的触发序列(202),接收来自各个被控设备返回的触发目标的执行状态(203),当依次获取到的执行状态与触发序列相匹配时,按照控制逻辑进行联动控制(204)。本方法提高了联动配置的灵活性,有效解决复杂场景多级场景联动。

Description

物联网设备的联动控制方法、终端、网关设备及***
本申请要求于2021年07月08日提交中国专利局、申请号为202110771700.0发明名称为“物联网设备的联动控制方法、终端、网关设备、及***”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及物联网设备控制领域,特别地,涉及一种物联网设备的联动控制方法、终端、网关设备、及***。
背景技术
物联网中,物联网设备的联动控制的核心在于,通过配置多个触发条件的组合、每个触发条件与触发目标的复合来使得控制方式的多样化。在复杂环境下,通常根据外界数据来增加条件约束进行判断,从而基于判断结果进行联动控制。作为一个例子,在智能家居***中,执行灯光、窗帘、空调的联动控制,其联动规则的一种配置为:当红外传感器达到设定温度,触发灯光关闭,若在白天,则触发打开窗帘,若检测到室内温度达到设定温度阈值,则触发打开空调。其中,白天、室内温度为环境约束。
现有的联动控制方法通常以起始条件为基础,不适应复杂环境下的联动控制,既不利于物联网业务的发展,也难以提高物联网设备联动控制的智能化。
发明内容
本申请提供了一种物联网设备的联动控制方法,以提高物联网设备联动的智能化。
本申请提供的一种物联网设备的联动控制方法,该方法包括:
在网关侧,接收来自终端所配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列,接收来自各个被控设备返回的触发目标的执行状态,当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。
在一种可能的实施方式中,所述任一联动规则中的触发条件至少通过另一联动规则中 触发目标的执行状态形成关联,包括:
对于任一联动规则,该联动规则中的触发条件至少包括,基于除该联动规则之外的其他联动规则中触发目标被执行所设定的状态;和/或,
基于该联动规则中触发目标被执行所设定的状态作为除该联动规则之外的其他联动规则中的触发条件;其中,对于具有过程控制的触发目标,所述状态为过程控制中当前进度,该进度包括,过程控制中的中间结果,或者,过程控制中的最终结果,对于不具有过程控制的触发目标,所述状态为触发目标的执行结果。
在一种可能的实施方式中,所述当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制包括:
将当前第一序列与接收到的触发目标的当前执行状态组成第二序列,其中,第一序列为历次与触发序列相匹配的执行状态组成的序列,若第二序列为触发序列中从首个元素开始的连续子序列,则判定依次获取到的所述执行状态与触发序列相匹配,按照当前触发条件被满足时所联动的触发目标进行控制,并将当前第一序列更新为所述第二序列,否则,判定依次获取到的所述执行状态与触发序列不相匹配,停止触发联动。
在一种可能的实施方式中,所述关联关系为链式串联关系,
所述任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:
对于任一联动规则i,包括触发条件i和触发目标i,所述触发条件i至少包括,基于联动规则i-1中触发目标i-1被执行所设定的状态,所述触发目标i被执行的设定状态作为联动规则i+1中的触发条件i+1之一,其中,i为自然数;
所述当依次获取到的所述执行状态与触发序列相匹配时,按照触发条件被满足时所联动的触发目标进行控制,包括:
当网关在第一时刻获取到第一触发条件被满足时,则执行第一触发条件所联动的第一触发目标;当网关在第二时刻获取到第二触发条件被满足时,则执行第二触发条件所联动的第二触发目标;依次类推,当网关在第i时刻获取到第i触发条件被满足时,则执行第i触发条件所联动的第i触发目标,其中,各时刻在时间维度上依次增加;
所述第一触发条件、第二触发条件….以及第i触发条件依次组成的序列与触发序列相匹配。
在一种可能的实施方式中,所述根据联动规则之间的关联关系,生成控制逻辑,包括:
对于任一联动规则,根据该联动规则中的触发条件,确定其所包含的触发目标被执行所设定的状态,按照各个触发条件、以及各个触发条件所包含的触发目标被执行所设定的状态发生的时间先后顺序,将各个触发条件按序排列成触发序列。
在一种可能的实施方式中,所述两个以上联动规则为存在先后次序的有序联动规则序列,所述根据联动规则之间的关联关系,生成控制逻辑,包括:将各个联动规则中的触发条件,按照联动规则序列,组成触发序列;该方法还包括:当依次获取到的执行状态与触发序列不相匹配时,则禁止按照控制逻辑进行联动控制,查询其余联动规则,如果查询成功,则按照所查询成功的联动规则执行,否则,退出当前联动控制。
本申请提供一种物联网设备的联动规则的配置方法,该方法包括:
在终端侧,配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,将配置的联动规则发送至网关。
在一种可能的实施方式中,该方法进一步包括:
根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,使得所配置的联动规则存在先后次序,得到联动规则序列,将联动规则序列发送给网关;或者,根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,并按照先后次序依次发送各个联动规则给网关。
本申请还提供了一种物联网设备的联动控制方法,应用于网关侧,所述方法包括:
接收来自终端所配置的联动规则集合,其中,所述联动规则集合中包括至少两个联动规则,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列;接收来自各个被控设备返回的触发目标的执行状态;当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。
本申请还提供了一种物联网设备的联动规则的配置方法,其特征在于,应用于终端侧,所述方法包括:配置的至少两个联动规则,得到联动规则集合,其中,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;将配置的联动规则发送至网关。
本申请还提供一种网关设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现任一所述物联网设备的联动控制方法的步骤。
本申请又提供一种终端,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现任一所述物联网设备配置方法的步骤。
本申请再提供一种物联网***,包括用于配置和/或控制物联网设备的终端,用于联动和/或群控物联网设备的网关,以及物联网设备,其特征在于,所述终端用于实现任一所述物联网设备的联动控制方法的步骤;所述网关用于实现任一所述物联网设备配置方法的步骤。
在一种可能的实施方式中,所述物联网***还包括用于提供物联业务的云平台,所述云平台通过网络与网关连接,传输配置信令和控制信令,并保存网关网络参数、以及物联网设备状态。
本申请提供的物联网设备的联动控制方法,基于各个存在直接或间接的关联关系的联动规则,生成包括由各联动规则中触发条件按序组成的触发序列的控制逻辑,从而可以基于来自各个被控设备返回的触发目标的执行状态,按照控制逻辑进行联动控制,提高了联动配置的灵活性,有效解决复杂场景多级场景联动;利用任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态所形成的关联,使得触发目标的执行状态在联动控制过程中发挥着承上启下的作用,也使得物联网***中的状态信息得以充分的利用,提高了物联网设备的智能化,有利于丰富物联网***中的业务。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为实现关闭客厅灯光、打开窗帘的联动场景的一种流程示意图。
图2为本申请物联网设备联动控制方法的一种流程示意图。
图3为本申请物联网设备联动配置方法的一种流程示意图。
图4为利用本联动规则的当前执行状态作为下一联动规则约束条件之一的联动控制的一种流程示意图。
图5为智能家居***的一种示意图。
图6为照明灯光关闭时打开窗帘的场景下的一种联动控制流程示意图。
图7为按照触发目标执行进度、以及执行结果来进行联动控制的一种流程示意图。
图8为本申请用于实现联动控制的一种网关的示意图。
图9为本申请用于实现联动规则配置的一种终端的示意图。
图10为终端或网关的另一种示意图;
图11为本申请中联动规则执行逻辑的一种示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
申请人研究发现,现有的联动控制,多以相对独立的触发条件的组合来建立控制逻辑、生成联动规则,而不同的联动规则之间的触发条件与触发目标之间通常不存在关联,由此导致联动规则之间不存在内在的关联。
以智能家居为例,例如,在关闭客厅灯光、打开窗帘的联动场景下,配置的联动规则通常是:红外传感器到达设定温度下时触发关闭房间灯光(联动规则1),以及门磁被触碰时触发打开窗帘(联动规则2)。参见图1所示,图1为实现关闭客厅灯光、打开窗帘的联动场景的一种流程示意图。用户通过应用终端配置好联动规则,该联动规则被发送给网关;当门磁和红外传感器被触发时,门磁和红外传感器分别向网关上报触发事件,网关根据配置的联动规则,生成控制逻辑,以控制用于灯光控制的第一物联网设备关闭灯光,控制用于窗帘控制的第二物联设备打开窗帘。在上述两个联动规则中触发条件之间没有关联,例如,联动规则1中的红外传感器达到设定温度(触发条件1)和联动规则2中的门磁被触碰(触发条件2)之间相对独立;两个联动规则中触发目标之间也没有关联,例如,联动规则1中的关闭房间灯光(触发目标1)与联动规则2中的打开窗帘(触发目标2)之间相对独立;两个联动规则之间的触发条件与触发目标没有关联,例如,联动规则2中的门磁被触碰(触发条件2)与联动规则1中关闭灯光(触发目标1)没有关联。这样,触发条件1和触发条件2两者之间没有关联,触发目标1和触发目标2两者之间没有关联, 触发条件与触发目标之间没有关联。
即使联动规则之间存在关联,所存在的关联通常采用延时控制方式,例如,网关控制用于灯光控制的第一物联网设备关闭灯光后,启动计时,当到达设定的延时时间时,控制用于窗帘控制的第二物联设备打开窗帘。这种延时控制方式使得联动控制的可靠性降低。
有鉴于此,为了解决上述问题中的至少一项,本申请提供的物联网设备的联动控制方法,在终端侧,用户配置联动规则,其中,联动规则之间存在关联,即,一联动规则的当前执行状态作为另一联动规则的约束条件之一。在网关侧,基于来自用户终端配置的联动规则,生成控制逻辑,根据控制逻辑进行相应的联动控制,其中,控制逻辑至少包含有,触发条件、以及触发目标的过程控制中设定的状态进行有序组合所形成的触发序列。即触发序列是由触发条件、触发目标的过程控制中设定的状态有序组合所形成的。
进一步地,当由触发条件、以及触发目标的过程控制中的设定状态组成的触发序列与触发序列不匹配时,这时,则按照触发条件本身所联动的触发目标进行相应控制,禁止执行该触发序列所形成的控制逻辑。在通过非联动规则之外的其他方式触发了触发目标的过程控制后,并不会启动控制逻辑的触发序列中的其他规则。例如,控制逻辑的触发序列包括:联动规则1,红外传感器到达设定温度下时触发关闭房间灯光;联动规则2房间灯光关闭后打开窗帘;联动规则3,窗帘打开到50%时播放音乐。在用户手动触发打开窗帘的情况下,即使窗帘打开到50%,也不会触发播放音乐。具体的,可以记录已执行的联动规则的顺序,在检测到窗帘打开到50%时,判断之前是否按顺序执行了联动规则1及联动规则2,如果是则执行联动规则3,否则认为是非联动规则之外的其他方式触发了触发目标的过程控制,因此不执行联动规则3。
本申请将触发条件本身、触发目标的过程控制中的状态进行有序组合而形成触发序列,使得网关设备按照触发序列控制各个触发条件所联动的物联网设备,这样,使得触发条件之间通过过程控制中的状态形成关联,也使得过程控制中的状态起着承上启下的作用,形成多环节联动,达到类似于多米牌的效果,有利于形成复杂的控制逻辑,提高物联网设备联动控制的智能化。
参见图2所示,图2为本申请物联网设备联动控制方法的一种流程示意图。该联动控制方法包括,在网关侧:
步骤201,接收来自终端所配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,在由联动规则组成的联动规则集合中,任一联动规则中的触发条件至少 通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系。
步骤202,根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列。
步骤203,接收来自各个被控设备返回的触发目标的执行状态。
步骤204,若依次获取到的执行状态与触发序列相匹配,则按照所述控制逻辑进行联动控制,否则,停止触发联动,查询联动规则集合中的其余联动规则,如果查询成功,则执行所查询成功的联动规则,如果查询不成功,则退出。
参见图3所示,图3为本申请物联网设备联动配置方法的一种流程示意图。该方法包括,在终端侧:
步骤301,配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系。
上述联动规则的配置可以通过运行于终端上的应用程序引导用户进行。
步骤302,将配置的联动规则发送至网关。
本申请实施例还提供了一种物联网设备联动控制方法,应用于网关侧,所述方法包括:
步骤一,接收来自终端所配置的联动规则集合,其中,所述联动规则集合中包括至少两个联动规则,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系。
头部联动规则为各联动规则中不依赖其他联动规则触发的联动规则,例如各联动规则的执行逻辑中第一执行的联动规则;后续联动规则为各联动规则中,除头部联动规则外的其他联动规则。后续联动规则的执行需要基于其他联动规则的触发。一个例子中,如图11所示,联动规则A中触发目标的执行状态关联联动规则B中的触发条件,联动规则B及联动规则D中触发目标的执行状态关联联动规则C中的触发条件。联动规则A与联动规则D不依赖其他联动规则触发,因此为联动规则A与联动规则D均头部联动规则;而联动规则B依赖联动规则A触发,联动规则C依赖联动规则B及联动规则D触发,因此联动规则B及联动规则C为后续联动规则。
在一种可能的实施方式中,对于任一后续联动规则,该后续联动规则中的触发条件包括:基于除该后续联动规则之外的至少一个联动规则中触发目标被执行所设定的状态;其 中,对于具有过程控制的触发目标,所设定的状态为过程控制中的进度,该进度包括:过程控制中的中间结果,或者,过程控制中的最终结果;对于不具有过程控制的触发目标,所设定的状态为触发目标的执行结果。
步骤二,根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列。
步骤三,接收来自各个被控设备返回的触发目标的执行状态。
步骤四,当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。
本申请实施例还提供了一种物联网设备的联动规则的配置方法,应用于终端侧,所述方法包括:
步骤一,配置的至少两个联动规则,得到联动规则集合,其中,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系。
步骤二,将配置的联动规则发送至网关。
作为一个例子,以下说明规则之间以链式串联配置以及其联动控制。参见图4所示,图4为利用本联动规则的当前执行状态作为下一联动规则约束条件之一的联动控制的一种流程示意图。
在终端侧,用户配置若干联动规则,其中:
联动规则1包括触发条件1以及触发目标1;
联动规则2包括触发条件2以及触发目标2,所述触发条件2至少包括,基于触发目标1所设定的状态1;
联动规则3包括触发条件3以及触发目标3,所述触发条件3至少包括,基于触发目标2所设定的状态2;
……
以此类推;
联动规则i包括触发条件i以及触发目标i,所述触发条件i至少包括,基于触发目标i-1所设定的状态i-1;所述触发目标i被执行的设定状态作为联动规则i+1中触发条件i+1之一。
i为自然数。
对于具有过程控制的触发目标而言,所述状态可以为过程控制中的进度,该进度包括,触发目标的过程控制中的中间结果,或者,触发目标的过程控制中的最后结果;对于不具有过程控制的触发目标而言,所述状态为触发目标被执行的最终结果。
这样,用户通过终端所配置的联动规则,将本联动规则被执行的状态作为下一联动规则的触发条件,从而在各联动规则之间实现了触发条件的嵌套。
在网络侧(网关侧),网关接收到来自用户终端的配置联动规则后,根据配置联动规则,生成控制逻辑,该控制逻辑包括,各联动规则中的触发条件按照时间发生次序所组成的触发序列。网关根据控制逻辑中的触发序列,当触发序列中的触发条件依次被满足时,依次执行触发条件所联动的触发目标,也就是说,当检测到上一触发目标被执行时所设定的状态时,则执行本触发目标。
例如,上述联动规则1~联动规则i,所生成的控制逻辑为:触发条件1、触发条件2、….触发条件i所依次组成的触发序列。
当网关在时刻1获取到触发条件1时,则执行触发条件1所联动的触发目标1;
当网关在时刻2获取到触发条件2时,即,网关在时刻2获取到基于触发目标1所设定的状态1时,则执行触发条件2所联动的触发目标2,
以此类推;
当网关在时刻i获取到触发条件i时,即,网关在时刻i获取到基于触发目标i-1所设定的状态i-1时,则执行触发条件i所联动的触发目标i。
其中,时刻1、时刻2……时刻i在时间维度上依次增加,所述第一触发条件、第二触发条件….以及第i触发条件依次组成的序列与触发序列相匹配。当网关依次获取的触发条件与所述触发序列不匹配时,则判定禁止按照触发序列所形成的控制逻辑进行执行,根据该触发条件执行联动的触发目标。
例如,当网关在时刻1获取到触发条件1时,则执行触发条件1所联动的触发目标1,当网关在时刻2获取到触发条件3时,由于不存在触发条件2,触发条件1和触发条件3所形成的序列不是触发序列中从首个元素开始的连续子序列,则判定触发条件1和触发条件3不符合触发序列,故而禁止按照触发序列所形成的控制逻辑进行,而是分别根据触发条件1执行其联动的触发目标,根据触发条件3执行其联动的触发目标。
不失一般性地,判定依次组成的序列与触发序列相匹配可以是,将当前第一序列与接 收到的触发目标的当前执行状态组成第二序列,其中,第一序列为历次与触发序列相匹配的执行状态组成的序列,若第二序列为触发序列中从首个元素开始的连续子序列,则判定依次获取到的所述执行状态与触发序列相匹配,否则,判定依次获取到的所述执行状态与触发序列不相匹配。
所应理解的是,规则之间关联可以不限于链式串联,可以是复杂的关联,如同计算机中的各种数据结构一样,具体的关联情形可以根据应用的需要而设计。
为便于理解本申请,以下以智能家居***中某些应用场景下的联动控制为例来进行说明。所应理解的是,本申请不限于智能家居***的联动控制,对于物联网***中的物联网设备的联动控制同样适用。
参见图5所示,图5为智能家居***的一种示意图。智能家居***包括,终端,云服务平台,网关、以及被控设备,其中,
终端作为配置和/或控制发起者,上传配置和/或控制信令到云服务平台,信令经过云服务平台向网关转发,以传输到网关。在一种可能的实施方式中,终端为智能手机,运行有可用于进行联动规则配置的应用程序。
云服务平台可以承载各种物联业务,是配置信令和控制信令的下发传输中心,并保存网关网络参数、被控设备状态等。
网关作为智能家居***边缘的计算主体,基于云服务平台下发的联动、群控等功能,形成控制逻辑,按照控制逻辑,将信令解析成动作,分发到各个被控设备;同时收集各个被控设备上报的状态。
被控设备作为一种物联网设备,包括路由节点和设备节点,作为动作的执行主体,根据网关下发的信令,执行联动的动作,同时将执行结果和设备状态上报给网关。图中,红外传感器、开关面板(路由节点)、门磁传感器均为被控设备。
参见图6所示,图6为照明灯光关闭时打开窗帘的场景下的一种联动控制流程示意图。
在终端侧:步骤601,配置如下联动规则:
联动规则1:红外传感器在设定温度下触发关闭照明灯光,其中,触发条件1为红外传感器在设定温度下,触发目标1为关闭照明灯光;
联动规则2:照明灯光关闭的情况下,触发打开窗帘,其中,触发条件2为照明灯光关闭,即,联动规则1的执行结果;触发目标2为打开窗帘。
在一种可能的实施方式中,按照触发条件的关联次序,依次配置各个联动规则,使得 所配置的联动规则存在先后次序,或者,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个联动规则依次排序,使得所配置的联动规则存在先后次序,这样,可以得到有序联动规则序列。
步骤602,终端将所配置的联动规则1和联动规则2发送给网关,使得网关根据配置联动规则1和联动规则2生成控制逻辑,该控制逻辑为触发条件1、触发条件2组成的触发序列,并保存。
在一种可能的实施方式中,按照所配置联动规则次序,依次发送所配置的联动规则给网关,或者,将有序联动规则序列发送给网关。
步骤603,接收来自网关返回的配置成功或失败的提示。
在网络侧:步骤604,接收来自终端所配置的各个联动规则,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个触发条件生成触发序列,作为控制逻辑,
在一种可能的实施方式中,对于联动规则序列,可以按照各个联动规则次序,依次提取各个联动规则中的触发条件,按序生成触发序列。
步骤605,网关在时刻1接收到被控设备上报的红外传感器触发事件,将该触发事件组成当前第一序列,即,第一序列中的首个元素;由于当前第一序列为触发序列中首个元素,判定执行状态与触发序列匹配,根据触发条件1被满足时所联动的触发目标,控制开光面板执行关闭灯光的操作;
步骤606,网关在时刻2接收开光面板返回的关闭灯光操作的反馈,将该反馈与当前第一序列(即,步骤605组成的第一序列)组成第二序列,由于第二序列为触发序列中从首个元素开始的连续子序列,判定执行状态与触发序列匹配,根据当前触发条件2被满足时所联动的触发目标,控制智能窗帘打开,并将第一序列更新为当前第二序列。
其中,时刻2为时刻1的下一时刻。
步骤607,智能窗帘向网关上报执行结果和状态,
步骤608,网关将来自智能窗帘的执行结果和状态转发给终端。
在该实施例中,联动规则1中触发目标1的执行结果作为联动规则2中的触发条件2,这样,使得联动规则1和联动规则2中触发条件的链式串联,实现了联动规则1和联动规则2通过联动规则1的执行结果关联,在一次触发事件之后使得场景中的其他事件根据预设的状态依次地执行,形成多环节联动。
参见图7所示,图7为按照触发目标执行进度、以及执行结果来进行联动控制的一种流程示意图。在终端侧:
步骤701,配置如下联动规则:
联动规则1:红外传感器在设定温度下触发关闭房间灯光,其中,触发条件1为红外传感器在设定温度下,触发目标1为关闭房间灯光;
联动规则2:根据灯光关闭的执行结果,触发打开窗帘;其中,触发条件2为灯光关闭,该触发条件为触发目标1的执行结果,触发目标2为打开窗帘;
联动规则3:窗帘打开50%时,触发推窗器打开窗户;其中,触发条件3为窗帘打开50%,该触发条件为触发目标2的执行进度,触发目标3为推窗器打开窗户;
联动规则4:窗帘打开20%时,触发语音播放;其中,触发条件4为窗帘打开20%,该触发条件为触发目标2的执行进度,触发目标4为语音播放;所述语音包括音乐、自然语言等内容。
在一种可能的实施方式中,按照触发条件的关联次序,依次配置各个联动规则,使得所配置的联动规则存在先后次序,或者,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个联动规则按照触发条件发生的时间次序依次排序,使得所配置的联动规则存在先后次序,得到有序联动规则序列。
在该实施例中,触发条件3和触发条件4均与窗帘打开的进度有关,根据打开进度,触发条件4发生的时间早于触发条件3,故而终端所形成的联动规则次序依次为:联动规则1、联动规则2、联动规则4、联动规则3。
步骤702,终端将所配置的联动规则发送给网关,使得网关根据配置联动规则生成控制逻辑,该控制逻辑为触发条件1、触发条件2、触发条件3、触发条件4组成的触发序列,并保存。
步骤703,接收来自网关返回的配置成功或失败的提示。
在网络侧:步骤704,接收来自终端所配置的各个联动规则,根据各个联动规则中的触发条件、以及触发条件与其他联动规则中触发目标的关系,将各个触发条件生成触发序列,作为控制逻辑。
在该步骤中,对于任一联动规则,根据该联动规则中的触发条件,确定其所包含的触发目标被执行所设定的状态,按照各个触发条件、以及各个触发条件所包含的触发目标被执行所设定的状态发生的时间先后顺序,将各个触发条件按序排列成触发序列。
在一种可能的实施方式中,对于有序联动规则序列,则可以按照各个联动规则次序,依次提取各个联动规则中的触发条件,按序生成触发序列。
在该实施例中,触发序列依次为:触发条件1、触发条件2、触发条件4、触发条件3。
步骤705,网关在时刻1接收到被控设备上报的红外传感器触发事件,将该触发事件组成当前第一序列,即,第一序列中的首个元素;由于当前第一序列为触发序列中首个元素,判定执行状态与触发序列匹配,前,根据触发条件1被满足时所联动的触发目标,控制开光面板执行关闭灯光的操作;
步骤706,网关在时刻2接收开光面板返回的关闭灯光操作的反馈,将该反馈与当前第一序列(即,步骤605组成的第一序列)组成第二序列,该第二序列为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭),由于第二序列为触发序列中从首个元素开始的连续子序列,判定执行状态与触发序列匹配,根据当前触发条件2被满足时所联动的触发目标,控制智能窗帘打开,并将第一序列更新为当前第二序列。
步骤707,网关在时刻3接收智能窗帘实时返回的当前打开进度,例如,智能窗帘在打开进度为10%时,返回打开进度1,智能窗帘在打开进度为20%时,返回打开进度2,智能窗帘在打开进度为50%时,返回打开进度3,其中,智能窗帘所反馈的过程控制中的进度可以按照预先进度步长设置。
步骤708,网关根据接收的当前打开进度,将该进度与当前第一序列组成第二序列,
例如,当接收到打开进度1时,将该打开进度与当前第一序列组成第二序列,该序列依次为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭)、触发条件3(打开进度1),由于该序列不为触发序列中从首个元素开始的连续子序列,故判定第二序列与触发序列不匹配,这时没有可执行的触发目标,停止触发联动。
当接收到打开进度2时,将该打开进度与当前第一序列组成第二序列,该序列依次为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭)、触发条件4(打开进度2),由于该第二序列为触发序列中从首个元素开始的连续子序列,故判定第二序列与触发序列匹配,根据触发条件4被满足时所联动的触发目标,触发播放音乐,并将第一序列更新为当前第二序列,
当接收到打开进度3时,将该打开进度与当前第一序列组成第二序列,该序列依次为:触发条件1(红外传感器触发事件)、触发条件2(灯光关闭)、触发条件4(打开进度2),触发条件3(打开进度1),由于该第二序列为触发序列中从首个元素开始的连续子序列, 故判定第二序列与触发序列匹配,根据触发条件3时被满足时所联动的触发目标,则触发推窗器打开窗户。
在一种可能的实施方式中,当第二序列与触发序列完全相同时,判定控制逻辑执行完毕。
步骤709,网关继续接收智能窗帘所反馈的过程控制中的进度,接收推窗器所反馈的过程控制中的进度。
本实施例实现了红外触发、灯光关闭、灯光关闭后窗帘打开、窗帘打开至20%时播放音乐、窗帘打开至50%时打开窗户的应用场景联动控制,有利于提高用户体验。
在该实施例中,联动规则1中触发目标1的执行结果作为联动规则2中的触发条件2,联动规则2中触发目标的一种执行程度作为联动规则3中的触发条件3,联动规则2中触发目标的另一种执行程度作为联动规则4中的触发条件4,这样,联动规则1和联动规则2中触发条件的链式串联,联动规则3、联动规则4既并列地与联动规则2中触发条件相关,联动规则3、联动规则4两者之间又通过进度形成链式串联,形成了复杂的联动控制,提高了联动控制的智能化。
参见图8所示,图8为本申请用于实现联动控制的一种网关的示意图。该网关包括,
第一通信模块,用于与终端进行信息的交互,包括,接收来自终端所配置的两个以上联动规则、向终端发送配置结果、联动结果、物联网设备的状态等信息,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,
联动控制模块,用于根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列,接收来自各个被控设备返回的触发目标的执行状态,当依次获取到的执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。
参见图9所示,图9为本申请用于实现联动规则配置的一种终端的示意图。该终端包括:
配置模块,用于基于用户的输入操作,配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,
第二通信模块,用于与网关进行信息交互,包括,将配置的联动规则发送至网关,以 及接收来自网关的配置结果、联动结果、物联网设备的状态等信息。
参见图10所示,图10为终端或网关的另一种示意图。所述终端或网关分别包括存储器和处理器,在终端的存储器存储有计算机程序,该计算机程序被在终端的处理器执行时实现任一所述物联网设备的联动配置方法的步骤。在网关中,的存储器存储有计算机程序,该计算机程序被在网关中的处理器执行时实现任一所述物联网设备的联动控制方法的步骤。
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本申请实施例还提供了一种计算机可读存储介质,所述存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现所述物联网设备的联动控制方法步骤。
对于装置/网络侧设备/存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (16)

  1. 一种物联网设备的联动控制方法,其特征在于,该方法包括:
    在网关侧,
    接收来自终端所配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,
    根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列,
    接收来自各个被控设备返回的触发目标的执行状态,
    当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。
  2. 如权利要求1所述的联动控制方法,其特征在于,所述任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:
    对于任一联动规则,
    该联动规则中的触发条件至少包括,基于除该联动规则之外的其他联动规则中触发目标被执行所设定的状态,
    和/或,
    基于该联动规则中触发目标被执行所设定的状态作为除该联动规则之外的其他联动规则中的触发条件;
    其中,
    对于具有过程控制的触发目标,所述状态为过程控制中当前进度,该进度包括,过程控制中的中间结果,或者,过程控制中的最终结果,
    对于不具有过程控制的触发目标,所述状态为触发目标的执行结果。
  3. 如权利要求1所述的联动控制方法,其特征在于,所述当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制包括:
    将当前第一序列与接收到的触发目标的当前执行状态组成第二序列,其中,第一序列为历次与触发序列相匹配的执行状态组成的序列,
    若第二序列为触发序列中从首个元素开始的连续子序列,则判定依次获取到的所述执行状态与触发序列相匹配,按照当前触发条件被满足时所联动的触发目标进行控制,并将当前第一序列更新为所述第二序列,否则,判定依次获取到的所述执行状态与触发序列不相匹配,停止触发联动。
  4. 如权利要求2所述的联动控制方法,其特征在于,所述关联关系为链式串联关系,
    所述任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:
    对于任一联动规则i,包括触发条件i和触发目标i,
    所述触发条件i至少包括,基于联动规则i-1中触发目标i-1被执行所设定的状态,
    所述触发目标i被执行的设定状态作为联动规则i+1中的触发条件i+1之一,
    其中,i为自然数;
    所述当依次获取到的所述执行状态与触发序列相匹配时,按照触发条件被满足时所联动的触发目标进行控制,包括:
    当网关在第一时刻获取到第一触发条件被满足时,则执行第一触发条件所联动的第一触发目标;
    当网关在第二时刻获取到第二触发条件被满足时,则执行第二触发条件所联动的第二触发目标;
    依次类推,
    当网关在第i时刻获取到第i触发条件被满足时,则执行第i触发条件所联动的第i触发目标,
    其中,
    各时刻在时间维度上依次增加;
    所述第一触发条件、第二触发条件….以及第i触发条件依次组成的序列与触发序列相匹配。
  5. 如权利要求1所述的联动控制方法,其特征在于,所述根据联动规则之间的关联关系,生成控制逻辑,包括:
    对于任一联动规则,根据该联动规则中的触发条件,确定其所包含的触发目标被执行所设定的状态,
    按照各个触发条件、以及各个触发条件所包含的触发目标被执行所设定的状态发生的时间先后顺序,将各个触发条件按序排列成触发序列。
  6. 如权利要求1所述的联动控制方法,其特征在于,所述两个以上联动规则为存在先后次序的有序联动规则序列,
    所述根据联动规则之间的关联关系,生成控制逻辑,包括:将各个联动规则中的触发条件,按照联动规则序列,组成触发序列;
    该方法还包括:
    当依次获取到的执行状态与触发序列不相匹配时,则禁止按照控制逻辑进行联动控制, 查询其余联动规则,如果查询成功,则按照所查询成功的联动规则执行,否则,退出当前联动控制。
  7. 一种物联网设备的联动控制方法,其特征在于,应用于网关侧,所述方法包括:
    接收来自终端所配置的联动规则集合,其中,所述联动规则集合中包括至少两个联动规则,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;
    根据联动规则之间的关联关系,生成控制逻辑,所述控制逻辑包括由各联动规则中触发条件按序组成的触发序列;
    接收来自各个被控设备返回的触发目标的执行状态;
    当依次获取到的所述执行状态与触发序列相匹配时,按照所述控制逻辑进行联动控制。
  8. 如权利要求7所述的联动控制方法,其特征在于,所述任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,包括:
    对于任一后续联动规则,该后续联动规则中的触发条件包括:基于除该后续联动规则之外的至少一个联动规则中触发目标被执行所设定的状态;
    其中,对于具有过程控制的触发目标,所设定的状态为过程控制中的进度,该进度包括:过程控制中的中间结果,或者,过程控制中的最终结果;对于不具有过程控制的触发目标,所设定的状态为触发目标的执行结果。
  9. 一种物联网设备的联动规则的配置方法,其特征在于,该方法包括:
    在终端侧,
    配置的两个以上联动规则,其中,每个联动规则包括触发条件和触发目标,任一联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,使得所述各个联动规则之间存在直接或间接的关联关系,
    将配置的联动规则发送至网关。
  10. 如权利要求9所述的配置方法,其特征在于,该方法进一步包括:
    根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,使得所配置的联动规则存在先后次序,得到联动规则序列,将联动规则序列发送给网关;
    或者,
    根据各个联动规则中的触发条件,将各个联动规则按照触发条件发生的先后次序依次排序,并按照先后次序依次发送各个联动规则给网关。
  11. 一种物联网设备的联动规则的配置方法,其特征在于,应用于终端侧,所述方法包括:
    配置的至少两个联动规则,得到联动规则集合,其中,所述至少两个联动规则包括头部联动规则及后续联动规则,每个联动规则包括触发条件和触发目标,任一后续联动规则中的触发条件至少通过另一联动规则中触发目标的执行状态形成关联,各所述联动规则之间存在直接或间接的关联关系;
    将配置的联动规则发送至网关。
  12. 一种网关设备,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至8任一所述物联网设备的联动控制方法的步骤。
  13. 一种终端,其特征在于,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求9至11任一所述物联网设备配置方法的步骤。
  14. 一种物联网***,包括用于配置和/或控制物联网设备的终端,用于联动和/或群控物联网设备的网关,以及物联网设备,其特征在于,
    所述终端用于实现如权利要求1至8任一所述物联网设备的联动控制方法的步骤;
    所述网关用于实现如权利要求9至11任一所述物联网设备配置方法的步骤。
  15. 如权利要求14所述的物联网***,其特征在于,所述物联网***还包括用于提供物联业务的云平台,所述云平台通过网络与网关连接,传输配置信令和控制信令,并保存网关网络参数、以及物联网设备状态。
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-11任一所述的方法步骤。
PCT/CN2022/102181 2021-07-08 2022-06-29 物联网设备的联动控制方法、终端、网关设备及*** WO2023280028A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110771700.0 2021-07-08
CN202110771700.0A CN113419439B (zh) 2021-07-08 2021-07-08 物联网设备的联动控制方法、终端、网关设备、及***

Publications (1)

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

Family

ID=77721596

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102181 WO2023280028A1 (zh) 2021-07-08 2022-06-29 物联网设备的联动控制方法、终端、网关设备及***

Country Status (2)

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

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419439B (zh) * 2021-07-08 2023-04-07 杭州萤石软件有限公司 物联网设备的联动控制方法、终端、网关设备、及***
CN113949603A (zh) * 2021-10-12 2022-01-18 上海宝创网络科技有限公司 一种网关功能的联动方法及设备
CN114070873A (zh) * 2021-11-09 2022-02-18 浙江大华技术股份有限公司 物联网络中的设备联动方法和装置、存储介质及电子装置
CN114785817A (zh) * 2022-02-28 2022-07-22 济南三星灯饰有限公司 智慧灯杆设备的云边协同场景联动方法
CN115442228A (zh) * 2022-09-06 2022-12-06 上海庆科信息技术有限公司 业务逻辑处理方法、装置、电子装置、存储介质及***

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 (zh) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 设备联动方法及装置
CN112214331A (zh) * 2020-10-14 2021-01-12 成都昆朋新能科技有限公司 一种基于智能家居的联动死循环避免算法
CN112448989A (zh) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 物联网设备控制方法、***、配置终端、设备及存储介质
CN112579053A (zh) * 2020-12-11 2021-03-30 苏州数言信息技术有限公司 超轻量嵌入式物联网规则引擎的设计架构
US11023924B1 (en) * 2016-04-01 2021-06-01 Jelli, Inc. Event triggers in audio advertising
CN113419439A (zh) * 2021-07-08 2021-09-21 杭州萤石软件有限公司 物联网设备的联动控制方法、终端、网关设备、及***

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
US20070043601A1 (en) * 2003-03-27 2007-02-22 Takeshi Oguchi Supply chain linkage management system
CN103019650B (zh) * 2012-12-21 2016-03-09 大唐软件技术股份有限公司 一种业务协同的处理方法及装置
CN105807728B (zh) * 2014-12-29 2019-03-08 联想(北京)有限公司 一种控制方法及电子设备
CN107558861A (zh) * 2016-07-01 2018-01-09 台山市云鼎网络技术开发有限公司 一种智能窗户控制方法及***
CN108073079A (zh) * 2017-12-14 2018-05-25 上海斐讯数据通信技术有限公司 一种基于联动策略的智能家居控制方法及***
CN112202877B (zh) * 2020-09-29 2023-04-18 中移(杭州)信息技术有限公司 网关联动方法、网关、云服务器及用户终端

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 (zh) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 设备联动方法及装置
CN112448989A (zh) * 2019-09-05 2021-03-05 中兴通讯股份有限公司 物联网设备控制方法、***、配置终端、设备及存储介质
CN112214331A (zh) * 2020-10-14 2021-01-12 成都昆朋新能科技有限公司 一种基于智能家居的联动死循环避免算法
CN112579053A (zh) * 2020-12-11 2021-03-30 苏州数言信息技术有限公司 超轻量嵌入式物联网规则引擎的设计架构
CN113419439A (zh) * 2021-07-08 2021-09-21 杭州萤石软件有限公司 物联网设备的联动控制方法、终端、网关设备、及***

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2023280028A1 (zh) 物联网设备的联动控制方法、终端、网关设备及***
US11782590B2 (en) Scene-operation method, electronic device, and non-transitory computer readable medium
CN104932456B (zh) 智能场景实现方法和装置、智能终端及控制设备
CN107667318B (zh) 用于***控制的对话界面技术
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
US11914921B2 (en) Synchronous sounds for audio assistant on devices
WO2021043259A1 (zh) 联动控制***、方法及存储介质和电子设备
WO2017129014A1 (zh) 控制物联网设备的方法及装置、服务器、移动设备
US20140317256A1 (en) Loop and Outage Avoidance in Software Defined Network
JP6259167B2 (ja) 照明効果制御
CN110557448A (zh) 一种智能家居的控制方法及***
WO2020006993A1 (zh) 智能家电控制方法及智能家电控制装置
CN109189356A (zh) 一种多终端转屏***和方法
WO2023124136A1 (zh) 设备的控制方法、装置、电子设备及存储介质
CN111818172A (zh) 一种物联网管理服务器控制智能设备的方法及装置
CN110808980A (zh) 一种智能灯的配网方法、***及智能灯和存储介质
WO2022268136A1 (zh) 一种进行语音控制的终端设备及服务器
CN111274319A (zh) 一种状态信息的查询方法及装置
CN111800444A (zh) 一种可动态调整的控制***和控制方法
CN109739579A (zh) 基于反馈协议的应用启动方法、装置和存储介质
CN108616381A (zh) 一种事件关联报警方法和装置
CN114967485A (zh) 设备控制方法、装置、电子设备及存储介质
CN115208859B (zh) 一种信息交互方法、装置、设备及存储介质

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

122 Ep: pct application non-entry in european phase

Ref document number: 22836782

Country of ref document: EP

Kind code of ref document: A1