CN112214331A - Linkage dead cycle avoidance algorithm based on smart home - Google Patents

Linkage dead cycle avoidance algorithm based on smart home Download PDF

Info

Publication number
CN112214331A
CN112214331A CN202011093728.5A CN202011093728A CN112214331A CN 112214331 A CN112214331 A CN 112214331A CN 202011093728 A CN202011093728 A CN 202011093728A CN 112214331 A CN112214331 A CN 112214331A
Authority
CN
China
Prior art keywords
linkage
equipment
rule
trigger
circulating
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202011093728.5A
Other languages
Chinese (zh)
Inventor
辛晓帅
魏子杰
郑刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Companiontek Technology Co ltd
Original Assignee
Chengdu Companiontek Technology Co ltd
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 Chengdu Companiontek Technology Co ltd filed Critical Chengdu Companiontek Technology Co ltd
Priority to CN202011093728.5A priority Critical patent/CN112214331A/en
Publication of CN112214331A publication Critical patent/CN112214331A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/524Deadlock detection or avoidance
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention discloses a linkage endless loop avoidance algorithm based on smart home, which comprises an execution device, a trigger device rule I, a trigger device rule II and a trigger device rule III, wherein in the rule I, a device A is the trigger device, a device B is the execution device, the device A is the circulation device of the device B, each device is the circulation device of the device B, in the rule II, the device A is the circulation device of the device B, a circulation device C of the device A is also the circulation device of the device B, and in the rule III, when linkage is set, the execution device cannot contain the circulation device of the trigger device. The invention has the beneficial effects that: the problem that the linkage creating quantity of the traditional intelligent home is limited by an algorithm of traditional linkage endless loop avoidance is solved, linkage can be created to the maximum extent on the basis of endless loop avoidance, the linkage creating quantity is increased, and in order to achieve the purpose, the linkage creating method is operated and solves the linkage creating problem.

Description

Linkage dead cycle avoidance algorithm based on smart home
Technical Field
The invention relates to the technical field of circulation algorithms, in particular to a linkage endless circulation avoidance algorithm based on smart home.
Background
With the great popularization of the internet and mobile terminals, people have great changes in eating and wearing behaviors, and the research on the related internet of things technology becomes one of the hotspots, particularly in the field of smart homes. In the field of smart home, a plurality of smart home devices (such as lamps, switches, sockets and the like) are involved, attributes of the devices can be controlled and set through a human-computer interaction interface (such as a mobile phone APP, a webpage and the like) of a terminal device, mutual relations between some devices and the devices can be set through the human-computer interaction interface in the terminal manually in the smart devices (for example, a corridor lamp is opened due to opening of a door, a gas sensor is triggered to cause an alarm of a mobile phone), and a relation that one device in the relations causes the action of the other device is called linkage or automation. In the linkage relationship (hereinafter, the linkage name is used) a device that can cause another device to operate is referred to as a trigger device, a device that causes an operation is referred to as an execution device, and a condition that can trigger an operation of a device is referred to as a trigger condition. In the use of these linkage relationships, an abnormal linkage relationship occurs, such as: switch a on causes switch a on, switch B on causes switch C on, switch C on causes switch B on, etc., and these abnormal linkage relationships have one in common: that is, the linkage relations cause one or more linkage relations to form a dead loop, that is, the device serving as the trigger device becomes the execution device, and the action of the execution device is just the trigger condition of the trigger device, so that the linkage relations cause the devices in the linkage relations to be always triggered and executed and can not stop. The relationship may be caused by one linkage itself or by mutual influence among a plurality of linkages, so that the influence of the linkage itself and the created linkage relationship is certainly considered in the creation of the linkage relationship in the smart home, otherwise, the phenomenon of endless loop is easily caused.
In the smart home field, people adopt a method similar to prohibition or filtering in order to solve the phenomenon of dead circulation, where the prohibition or filtering means that a device that becomes a trigger device cannot become an execution device when creating linkage, such as: when the linkage of the switch A and the switch B is established, and the linkage of the switch C is established, the switch A of the execution equipment can not appear. However, although the method avoids the phenomenon of dead cycle caused by creating linkage, the method also brings great inconvenience to the creation of linkage, and also seriously affects the number of linkage, so that the original linkage relation of the dead cycle cannot be formed, and the linkage relation cannot be created because the execution equipment is the trigger equipment of the created linkage, for example, when the linkage relation of the switch a and the switch C is created, the linkage relation of the switch C and the linkage switch a cannot be created because the trigger equipment cannot be used as the execution equipment, and the linkage relation cannot cause the phenomenon of dead cycle, but cannot be created because of the limitation of the creation rule. The above reflecting some defects of the traditional linkage processing mode of the smart home, the problems exist along with the application of the smart home, and the problems are difficult in the aspect of the smart home, and the popularization and the application of the smart home are prevented. The invention provides a processing method for solving linkage of an intelligent home, which is essentially a novel algorithm, and achieves the purposes of well avoiding the problems of endless loop and the number of linkage creation, linkage which can be created actually and the like, so that the linkage creation is easier and more convenient, the creation rules of equipment and equipment in the aspect of the intelligent home are solved, and the progress and wide application of the intelligent home technology can be promoted.
Disclosure of Invention
The invention aims to provide a linkage endless loop avoidance algorithm based on smart home to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme: a linkage dead cycle avoidance algorithm based on smart home comprises an execution device, a trigger device rule I, a trigger device rule II and a trigger device rule III;
in the rule one, if the device a is a trigger device and the device B is an execution device, the device a is a cycle device of the device B, and each device is its own cycle device;
in the second rule, if the device a is a circulation device of the device B, the circulation device C of the device a is also a circulation device of the device B;
in rule three, when linkage is set, the execution device cannot contain the cycle device of its trigger device.
Preferably, the circulating device refers to the device B as a triggering device, and the device a as an executing device may cause a dead cycle, so the device a is called as a circulating device of the device B, and the device itself constitutes a linked dead cycle.
Preferably, the rule one is used for judging the circulating equipment, namely the circulating equipment is the circulating equipment of the rule one, and judging the circulating equipment based on the existing linkage relation, and the judgment of the circulating equipment is used for the next linkage creation.
Preferably, the device comprises a device a, a device B, a device C, a device D, a device E, a device F, and a device G, and the linkage 1: when the device a is used as a trigger device and the devices B and C are used as execution devices, and when linkage is created next, any device can be created without using the device B, C as a trigger device, and when any one of the devices B and C is used as a trigger device, it is known according to the rule that the device a is a circulation device of the device B, C and the device a itself is a circulation device of the device.
Preferably, the second rule is used for determining a circulation device in the plurality of linkage relationships, and prevents the plurality of linkage relationships from being interlocked with each other to form a dead cycle.
Preferably, when creating linkage, it is optional not to create linkage with the device C, D, E, and if creating linkage with the device C, the device a should be filtered out in the execution device according to the rules one and three, and the device A, B is filtered out in the execution device with any trigger in the device D, E, so as to avoid endless loop caused by multiple linkages.
Preferably, the rule three is used as a basic rule in linkage creation, the rule three is followed to prevent endless loop, and the rule three is used to create a basis of linkage.
Preferably, according to the third rule, the device B and the device C are used as triggering devices, so that the executing device cannot have the device a and itself, and the device C, the device D, the device E, the device F, and the device G can be used as executing devices.
Preferably, the rule one and the rule two are triggering devices of the rule three, circulating devices of the triggering devices are selected, and the circulating devices are avoided, so that maximization can be brought to creation of linkage
Advantageous effects
The intelligent home based linkage endless loop avoidance algorithm solves the problem that the linkage creation quantity of the traditional intelligent home is limited by the traditional linkage endless loop avoidance algorithm.
Drawings
FIG. 1 is a schematic flow diagram of the dead cycle of the present invention;
FIG. 2 is a schematic diagram of linkage rule execution according to the present invention.
Detailed Description
The following are specific embodiments of the present invention and are further described with reference to the drawings, but the present invention is not limited to these embodiments.
Example 1
As shown in fig. 1-2, a smart home-based linkage dead loop avoidance algorithm includes an execution device, a trigger device rule one, a trigger device rule two, and a trigger device rule three;
in rule one, if a device a is a trigger device and a device B is an execution device, the device a is a loop device of the device B, and each device is its own loop device;
in the second rule, the equipment a is the circulating equipment of the equipment B, and the circulating equipment C of the equipment a is also the circulating equipment of the equipment B;
in rule three, when linkage is set, the execution device cannot contain the cycle device of its trigger device.
Preferably, the circulating equipment refers to equipment B as triggering equipment, and equipment A as executing equipment can cause dead circulation, so that the equipment A is called as circulating equipment of the equipment B, and the equipment per se forms a linkage dead circulation.
Preferably, rule one is used for judging the circulating device, namely the circulating device is the circulating device of itself, and judging the circulating device based on the existing linkage relation, and the judgment of the circulating device is used for the next linkage creation.
Preferably, the device comprises a device a, a device B, a device C, a device D, a device E, a device F, and a device G, and the linkage 1: when the device a is used as a trigger device and the devices B and C are used as execution devices, and when linkage is created next, any device can be created without using the device B, C as a trigger device, and when any one of the devices B and C is used as a trigger device, it is known according to the rule that the device a is a circulation device of the device B, C and the device a itself is a circulation device of the device.
Preferably, the second rule is used for determining a circulation device in the plurality of linkage relationships, and prevents the plurality of linkage relationships from being interlocked with each other to form a dead cycle.
Preferably, when creating linkage, it is possible to arbitrarily select linkage without using the device C, D, E, and if creating linkage using the device C, the device a should be filtered out of the execution device according to the rules one and three, and the device A, B is filtered out of the execution device with any trigger of the device D, E, so as to avoid endless loop caused by a plurality of linkages.
Preferably, rule three is used as a basic rule in linkage creation, and rule three is followed to prevent endless loop, while rule three is used to create the basis of a linkage.
Preferably, according to rule three, device B and device C are used as trigger devices, so that the executing devices cannot have device a and themselves, and device C, device D, device E, device F and device G can be used as executing devices.
Preferably, the trigger devices with the rule one and the rule two as the rule three select the circulating devices thereof, and the maximum creation of linkage can be brought by avoiding the circulating devices.
Example 2
Lamp 1 → Lamp 2, Lamp 3
Initial state lamp 1 the cycle device is itself, the executive device is optional (rule three) except for lamp 1
After setting, the lamp 2 cycle equipment is lamp 1, lamp 2, and the lamp 3 cycle equipment is lamp 1, lamp 3 (rule one)
Lamp 3 → Lamp 4, Lamp 5
Lamp 3 the recycling device is lamp 1, lamp 3, so the executive device is optional (rule three) except for lamp 1, lamp 3
After setting, the lamp 4 is cycled by lamp 3, lamp 4, and the lamp 5 is cycled by lamp 3, lamp 5 (rule one)
However, according to rule two, the lamp 3 is circulated and also circulated, and therefore, the lamp 4 is circulated and the lamp 1, the lamp 3, and the lamp 4 is circulated and the lamp 5 is circulated and also circulated and thus the lamp 1, the lamp 3, and the lamp 5 are circulated. After the two linkage settings:
lamp 1 the recycling device is a lamp 1
Lamp 2 the cycle equipment is lamp 1, lamp 2
Lamp 3 the cycle equipment is lamp 1, lamp 3
Lamp 4 the cycle equipment is lamp 1, lamp 3, lamp 4
Lamp 5 the recycling equipment is lamp 1, lamp 3, lamp 5
When the next linkage is set, any one of the lamps 1-5 can be selected by triggering, and the execution equipment avoids the circulating equipment and can not cause endless circulation.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the content of the present invention within the scope of the protection of the present invention.

Claims (9)

1. The utility model provides a linkage endless loop avoids algorithm based on intelligent house, includes executive equipment, trigger equipment rule one, rule two and rule three, its characterized in that:
in the rule one, if the device a is a trigger device and the device B is an execution device, the device a is a cycle device of the device B, and each device is its own cycle device;
in the second rule, if the device a is a circulation device of the device B, the circulation device C of the device a is also a circulation device of the device B;
in rule three, when linkage is set, the execution device cannot contain the cycle device of its trigger device.
2. The smart home-based linkage loop-locked avoidance algorithm according to claim 1, characterized in that: the circulating equipment refers to the equipment B as trigger equipment, and the equipment A as executing equipment can cause endless circulation, so the equipment A is called as the circulating equipment of the equipment B, and the equipment per se forms a linkage endless circulation.
3. The smart home-based linkage loop-locked avoidance algorithm according to claim 1, characterized in that: and the rule I is used for judging the circulating equipment, namely the circulating equipment is the circulating equipment per se, and judging the circulating equipment based on the existing linkage relation, wherein the judgment of the circulating equipment is used for the next linkage creation.
4. The smart home-based linkage loop-locked avoidance algorithm according to claim 3, characterized in that: the equipment comprises equipment A, equipment B, equipment C, equipment D, equipment E, equipment F and equipment G, and linkage 1 is established: when the device a is used as a trigger device and the devices B and C are used as execution devices, and when linkage is created next, any device can be created without using the device B, C as a trigger device, and when any one of the devices B and C is used as a trigger device, it is known according to the rule that the device a is a circulation device of the device B, C and the device a itself is a circulation device of the device.
5. The smart home-based linkage loop-locked avoidance algorithm according to claim 1, characterized in that: and the second rule is used for judging the circulating equipment in the linkage relations and preventing the linkage relations from mutually linking to form a dead cycle.
6. The smart home-based linkage loop-locked avoidance algorithm according to claim 5, characterized in that: when linkage is created, linkage is not created by the device C, D, E, the selection can be arbitrary, if linkage is created by the device C, the device a should be filtered out from the execution device according to the rules one and three, and the device A, B is filtered out from the execution device by any trigger of the device D, E, so that endless loop caused by a plurality of linkages is avoided.
7. The smart home-based linkage loop-locked avoidance algorithm according to claim 1, characterized in that: the rule three is used as a basic rule in linkage creation, dead loop is prevented by following the rule three, and the rule three is used for creating the basis of linkage.
8. The smart home-based linkage loop-locked avoidance algorithm according to claim 6, characterized in that: according to the third rule, the device B and the device C are used as trigger devices, so that the executing device cannot have the device a and the executing device itself, and the device C, the device D, the device E, the device F and the device G can be used as executing devices.
9. The smart home-based linkage loop-locked avoidance algorithm according to claim 1, characterized in that: and the first rule and the second rule are trigger devices of the third rule, circulating devices of the trigger devices are selected, and the circulating devices are avoided, so that maximization can be brought to the creation of linkage.
CN202011093728.5A 2020-10-14 2020-10-14 Linkage dead cycle avoidance algorithm based on smart home Pending CN112214331A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011093728.5A CN112214331A (en) 2020-10-14 2020-10-14 Linkage dead cycle avoidance algorithm based on smart home

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011093728.5A CN112214331A (en) 2020-10-14 2020-10-14 Linkage dead cycle avoidance algorithm based on smart home

Publications (1)

Publication Number Publication Date
CN112214331A true CN112214331A (en) 2021-01-12

Family

ID=74053420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011093728.5A Pending CN112214331A (en) 2020-10-14 2020-10-14 Linkage dead cycle avoidance algorithm based on smart home

Country Status (1)

Country Link
CN (1) CN112214331A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419439A (en) * 2021-07-08 2021-09-21 杭州萤石软件有限公司 Linkage control method, terminal, gateway equipment and system of Internet of things equipment
CN113848866A (en) * 2021-11-17 2021-12-28 青岛海信智慧生活科技股份有限公司 Detection method and device for linkage loop of smart home system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680031A (en) * 2015-03-18 2015-06-03 联想(北京)有限公司 Linkage rule generation method and device
CN105407089A (en) * 2015-10-29 2016-03-16 青岛海尔智能家电科技有限公司 Application scene creation detection method and device
CN105892418A (en) * 2015-12-23 2016-08-24 乐视网信息技术(北京)股份有限公司 Smart home device control method and device
CN109445848A (en) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 Equipment linkage method and device
CN110647047A (en) * 2019-09-30 2020-01-03 青岛海尔科技有限公司 Control method and device for equipment in smart home operating system and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104680031A (en) * 2015-03-18 2015-06-03 联想(北京)有限公司 Linkage rule generation method and device
CN105407089A (en) * 2015-10-29 2016-03-16 青岛海尔智能家电科技有限公司 Application scene creation detection method and device
CN105892418A (en) * 2015-12-23 2016-08-24 乐视网信息技术(北京)股份有限公司 Smart home device control method and device
CN109445848A (en) * 2018-11-07 2019-03-08 深圳市云威物联科技有限公司 Equipment linkage method and device
CN110647047A (en) * 2019-09-30 2020-01-03 青岛海尔科技有限公司 Control method and device for equipment in smart home operating system and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113419439A (en) * 2021-07-08 2021-09-21 杭州萤石软件有限公司 Linkage control method, terminal, gateway equipment and system of Internet of things equipment
WO2023280028A1 (en) * 2021-07-08 2023-01-12 杭州萤石软件有限公司 Linkage control method for internet-of-things device, and terminal, gateway device and system
CN113419439B (en) * 2021-07-08 2023-04-07 杭州萤石软件有限公司 Linkage control method, terminal, gateway equipment and system of Internet of things equipment
CN113848866A (en) * 2021-11-17 2021-12-28 青岛海信智慧生活科技股份有限公司 Detection method and device for linkage loop of smart home system
CN113848866B (en) * 2021-11-17 2023-10-24 青岛海信智慧生活科技股份有限公司 Method and device for detecting intelligent home system linkage loop

Similar Documents

Publication Publication Date Title
CN112214331A (en) Linkage dead cycle avoidance algorithm based on smart home
CN103888407A (en) Solution method of controlling multiple terminals by intelligent household core server
CN103763164A (en) Intelligent housing system based intelligent sockets
CN104618201A (en) Internet of things appliance control system, control method and appliance gateway
CN205176636U (en) Intelligent household monitoring system based on cloud computation
CN203057201U (en) Wiring type intelligent household floor heating remote control device based on cloud service platform
CN205726601U (en) A kind of intelligent home lamplight control system
CN107370644A (en) Inter-linked controlling method, device, computer-readable recording medium and computer equipment
CN107708186A (en) The electricity-saving control method and device of internet-of-things terminal
CN105681181A (en) Home gateway system suitable for smart home
CN109839910A (en) Control device, control method and computer readable storage medium
CN106992884B (en) A kind of multiple subsystem interlock method of intelligent building operation system
CN204480426U (en) Based on the household fire monitoring system of Internet of Things and mobile phone terminal
CN110989386A (en) Can-Bus-based intelligent home hybrid control system
CN106656777B (en) Object-based intelligent domestic gateway communication interface arrangement
CN211236670U (en) Household equipment networking
CN107291038B (en) A kind of PLC software instruction parsing execution method
CN103135055B (en) Method of distinguishing type of external-connection switch of intelligent device
CN205305171U (en) Intelligence WIFI lamps and lanterns control system
CN113848866A (en) Detection method and device for linkage loop of smart home system
CN104348890A (en) Remote control method and remote control system
CN107592628A (en) For the method for switching working mode, Bluetooth gateway and system
CN105955053A (en) Intelligent household equipment access method based on big data
CN104991452A (en) Design method for household electrical appliance control framework in object-oriented programming
CN115826422B (en) Household equipment control method and device based on artificial intelligence

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination