CN105242547A - Linkage method and device of AllJoyn devices - Google Patents
Linkage method and device of AllJoyn devices Download PDFInfo
- Publication number
- CN105242547A CN105242547A CN201510542631.0A CN201510542631A CN105242547A CN 105242547 A CN105242547 A CN 105242547A CN 201510542631 A CN201510542631 A CN 201510542631A CN 105242547 A CN105242547 A CN 105242547A
- Authority
- CN
- China
- Prior art keywords
- alljoyn
- event
- rule
- linkage
- action
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Program-control systems
- G05B19/02—Program-control systems electric
- G05B19/418—Total 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]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total 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)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Pharmaceuticals Containing Other Organic And Inorganic Compounds (AREA)
Abstract
本发明公开了一种多个AllJoyn设备联动的方法和装置,所述方法包括:获取联动设备的AllJoyn事件和AllJoyn动作信息;以各所述AllJoyn事件按照低频率事件到高频率事件的顺序发生作为触发所述AllJoyn动作的联动触发条件,配置多设备联动规则,以使设备联动规则引擎根据所述多设备联动规则进行多设备联动控制。本发明所述方法通过配置一定的设备联动规则,使得设备联动规则引擎先监听低频事件再监听高频事件,从而节省了多设备联动的系统资源。
The present invention discloses a method and device for linkage of multiple AllJoyn devices. The method includes: acquiring AllJoyn events and AllJoyn action information of linkage devices; Trigger the linkage trigger condition of the AllJoyn action, configure the multi-device linkage rule, so that the device linkage rule engine performs multi-device linkage control according to the multi-device linkage rule. The method of the present invention configures certain equipment linkage rules, so that the equipment linkage rule engine first monitors low-frequency events and then monitors high-frequency events, thereby saving system resources for multi-device linkage.
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及一种多个AllJoyn设备联动的方法和装置。The present invention relates to the field of communication technology, in particular to a method and device for linkage of multiple AllJoyn devices.
背景技术Background technique
随着智能家居的普及,智能家电等智能设备为越来越多的用户接受,用户对智能家居的需求不仅仅是监测和控制,设备联动是智能家居的重要需求之一。With the popularization of smart homes, smart appliances such as smart home appliances are accepted by more and more users. Users' demand for smart homes is not only monitoring and control, but device linkage is one of the important needs of smart homes.
通过设备联动可以使多个智能设备关联起来,智能设备之间自动进行互操作,用户的参与大大减少,带来更好的用户体验。Through device linkage, multiple smart devices can be associated, and the smart devices can automatically interoperate, greatly reducing user participation and bringing better user experience.
AllSeen联盟开发的Event&Action服务提供物联网设备之间的设备联动:Event是设备产生的AllJoyn事件,如移动探测器检测到家里有人,温度传感器检测到温度过高,亮度传感器检测到亮度较暗等。AllJoynEvent是带有描述该信号含义的AllJoyn信号,例如带有客厅太暗描述的AllJoyn信号就是代表客厅太暗的AllJoynEvent,带有家中有人走动描述的AllJoyn信号就是代表家中有人走动的AllJoynEvent。The Event&Action service developed by the AllSeen Alliance provides device linkage between IoT devices: Events are AllJoyn events generated by devices, such as motion detectors detecting people at home, temperature sensors detecting overheating, brightness sensors detecting low brightness, etc. AllJoynEvent is an AllJoyn signal that describes the meaning of the signal. For example, an AllJoyn signal with a description that the living room is too dark is an AllJoynEvent that represents a living room that is too dark, and an AllJoyn signal with a description of someone walking at home is an AllJoynEvent that represents someone walking at home.
Action是设备的AllJoyn动作,如打开灯光,打开空调等,在AllJoyn中Action是可以被调用的AllJoyn方法,例如打开灯光的AllJoyn方法,打开空调的AllJoyn方法。Action is the AllJoyn action of the device, such as turning on the light, turning on the air conditioner, etc. In AllJoyn, Action is the AllJoyn method that can be called, such as the AllJoyn method for turning on the light, and the AllJoyn method for turning on the air conditioner.
AllJoyn应用通过Event&Action规则引擎配置设备联动规则,设备联动规则规定设置当某设备的AllJoynEvent产生时,调用另一设备的AllJoynAction,这样的设备联动规则会配置给Event&Action规则引擎,从而实现设备联动。例如,温度传感器检测到温度过高后(Event),打开空调(Action),或者亮度传感器检测到亮度较暗(Event),打开灯光(Action)。The AllJoyn application configures device linkage rules through the Event&Action rule engine. The device linkage rules stipulate that when the AllJoynEvent of a certain device is generated, the AllJoynAction of another device is called. Such device linkage rules will be configured to the Event&Action rule engine to realize device linkage. For example, after the temperature sensor detects that the temperature is too high (Event), the air conditioner is turned on (Action), or the brightness sensor detects that the brightness is low (Event), and the light is turned on (Action).
现有技术可以实现多个设备都检测到特定事件时,触发设备联动,调用另一个设备的动作。然而,在多设备联动的智能家居系统中,不同设备产生事件的时间不同,而且频率有可能差别非常大,例如,亮度传感器检测到亮度较暗只在傍晚或者阴天发生,产生的亮度较暗事件可能一天只有一次,属于低频事件,而移动探测器检测到家里有人可能随时发生,产生的家里有人事件会非常频繁,属于高频事件,只有当高频事件和低频事件都发生时,才满足设备联动的条件。针对这种多设备联动的场景,如果同时监测设备联动触发条件的所有事件,系统需要处理所有的事件,而高频事件频繁发生,低频事件可能很长时间才发生一次,也就是说绝大部分高频事件对设备联动来说都是无效的,并不会触发设备联动,因此,监测全部事件需要耗费较高的系统资源,尤其是某一事件频繁发生,浪费的系统资源更大。The existing technology can realize that when multiple devices detect a specific event, trigger device linkage and call another device's action. However, in a multi-device linkage smart home system, different devices generate events at different times, and the frequency may vary greatly. For example, if the brightness sensor detects that the brightness is dark, it only occurs in the evening or on a cloudy day, and the resulting brightness is darker. The event may only happen once a day, which is a low-frequency event. However, when the motion detector detects someone at home, it may happen at any time, and the resulting event of someone at home will be very frequent, which is a high-frequency event. Only when both high-frequency events and low-frequency events occur, it is satisfied Conditions for device linkage. For this multi-device linkage scenario, if all events of device linkage trigger conditions are monitored at the same time, the system needs to process all events, while high-frequency events occur frequently, and low-frequency events may only occur once in a long time, that is to say, most High-frequency events are invalid for device linkage and will not trigger device linkage. Therefore, monitoring all events requires high system resources, especially for a certain event that occurs frequently, which wastes more system resources.
发明内容Contents of the invention
本发明提供一种多个AllJoyn设备联动的方法和装置,用以解决现有技术中的多设备联动方案,存在浪费系统资源的问题。The present invention provides a method and device for multiple AllJoyn equipment linkage, which is used to solve the problem of wasting system resources in the multi-equipment linkage scheme in the prior art.
依据本发明的一个方面,提供一种多个AllJoyn设备联动的方法,应用于控制终端侧,所述方法包括:According to one aspect of the present invention, a method for linkage of multiple AllJoyn devices is provided, which is applied to the control terminal side, and the method includes:
获取联动设备的AllJoyn事件和AllJoyn动作信息;Obtain the AllJoyn event and AllJoyn action information of the linked device;
以各所述AllJoyn事件按照低频率事件到高频率事件的顺序发生作为触发所述AllJoyn动作的联动触发条件,配置多设备联动规则,以使设备联动规则引擎根据所述多设备联动规则进行多设备联动控制。Taking each AllJoyn event occurring in the order of low-frequency events to high-frequency events as the linkage trigger condition for triggering the AllJoyn action, configuring multi-device linkage rules so that the device linkage rule engine performs multi-device linkage according to the multi-device linkage rules. linkage control.
可选地,本发明所述方法中,以各所述AllJoyn事件按照低频率事件到高频率事件的顺序并在规定的时间内依次发生作为触发所述AllJoyn动作的联动触发条件,配置多设备联动规则。Optionally, in the method of the present invention, each of the AllJoyn events occurs in sequence from low-frequency events to high-frequency events within a specified time as the linkage trigger condition for triggering the AllJoyn action, and multi-device linkage is configured. rule.
可选地,本发明所述方法中,所述多设备联动规则中包含:发生频率由低到高的AllJoyn事件序列、规定的时间阈值以及AllJoyn动作。Optionally, in the method of the present invention, the multi-device linkage rule includes: an AllJoyn event sequence with a frequency from low to high, a specified time threshold, and an AllJoyn action.
可选地,本发明所述方法中,所述控制终端通过调用所述设备联动规则引擎提供的多设备联动规则配置接口,将所述多设备联动规则配置到所述设备联动规则引擎中。Optionally, in the method of the present invention, the control terminal configures the multi-device linkage rule into the device linkage rule engine by calling a multi-device linkage rule configuration interface provided by the device linkage rule engine.
依据本发明的另一个方面,还提供一种多个AllJoyn设备联动的方法,应用于设备联动规则引擎侧,所述方法包括:According to another aspect of the present invention, a method for linking multiple AllJoyn devices is also provided, which is applied to the side of the device linking rule engine, and the method includes:
获取并存储控制终端配置的多设备联动规则;Obtain and store the multi-device linkage rules configured by the control terminal;
根据所述多设备联动规则,当检测到各AllJoyn事件按照规定的低频率事件到高频率事件的顺序发生时,触发指定的AllJoyn动作。According to the multi-device linkage rule, when it is detected that each AllJoyn event occurs in the specified order from low-frequency event to high-frequency event, a specified AllJoyn action is triggered.
可选地,本发明所述方法中,根据所述多设备联动规则,当检测到各AllJoyn事件按照规定的低频率事件到高频率事件的顺序且在规定的时间阈值范围内依次发生时,触发指定的AllJoyn动作。Optionally, in the method of the present invention, according to the multi-device linkage rule, when it is detected that each AllJoyn event occurs in sequence from a specified low-frequency event to a high-frequency event within a specified time threshold range, trigger The specified AllJoyn action.
依据本发明的第三个方面,还提供一种多个AllJoyn设备联动的控制终端,包括:According to the third aspect of the present invention, a control terminal for linkage of multiple AllJoyn devices is also provided, including:
第一信息获取模块,用于获取联动设备的AllJoyn事件和AllJoyn动作信息;The first information acquisition module is used to acquire the AllJoyn event and AllJoyn action information of the linked device;
配置模块,用于以各所述AllJoyn事件按照低频率事件到高频率事件的顺序发生作为触发所述AllJoyn动作的联动触发条件,配置多设备联动规则,以使设备联动规则引擎根据所述多设备联动规则进行多设备联动控制。The configuration module is configured to use the occurrence of each AllJoyn event in the order of low-frequency events to high-frequency events as the linkage trigger condition for triggering the AllJoyn action, and configure multi-device linkage rules, so that the device linkage rule engine according to the multi-device Linkage rules for multi-device linkage control.
可选地,本发明所述的控制终端中,所述配置模块,具体用于以各所述AllJoyn事件按照低频率事件到高频率事件的顺序并在规定的时间内依次发生作为触发所述AllJoyn动作的联动触发条件,配置多设备联动规则。Optionally, in the control terminal of the present invention, the configuration module is specifically configured to use the AllJoyn events to occur in sequence from low-frequency events to high-frequency events within a specified time as triggering the AllJoyn events. Action linkage trigger conditions, configure multi-device linkage rules.
可选地,本发明所述的控制终端中,所述配置模块通过调用所述设备联动规则引擎提供的多设备联动规则配置接口,将所述多设备联动规则配置到所述设备联动规则引擎中。Optionally, in the control terminal of the present invention, the configuration module configures the multi-device linkage rule into the device linkage rule engine by calling the multi-device linkage rule configuration interface provided by the device linkage rule engine .
依据本发明的第四个方面,还提供一种设备联动规则引擎,包括:According to the fourth aspect of the present invention, a device linkage rule engine is also provided, including:
第二信息获取模块,用于获取并存储控制终端配置的多设备联动规则;The second information acquisition module is used to acquire and store the multi-device linkage rules configured by the control terminal;
控制模块,用于根据所述多设备联动规则,当检测到各AllJoyn事件按照规定的低频率事件到高频率事件的顺序发生时,触发指定的AllJoyn动作。The control module is configured to trigger a specified AllJoyn action when it is detected that each AllJoyn event occurs in the order from low-frequency events to high-frequency events according to the multi-device linkage rule.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明基于AllJoyn设备联动服务提供一种优化的多设备联动的方案,该方案通过配置一定的设备联动规则,使得设备联动规则引擎先监听低频事件再监听高频事件,从而节省了多设备联动的系统资源。The present invention provides an optimized multi-device linkage scheme based on the AllJoyn equipment linkage service. By configuring certain equipment linkage rules, the scheme enables the equipment linkage rule engine to first monitor low-frequency events and then high-frequency events, thus saving the cost of multi-device linkage. system resource.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例一提供的一种多个AllJoyn设备联动的方法的流程图;FIG. 1 is a flow chart of a method for linkage of multiple AllJoyn devices provided in Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种多个AllJoyn设备联动的方法的流程图;FIG. 2 is a flow chart of a method for linkage of multiple AllJoyn devices provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种多个AllJoyn设备联动的方法的流程图;FIG. 3 is a flowchart of a method for linkage of multiple AllJoyn devices provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的一种多个AllJoyn设备联动的控制终端的结构框图;FIG. 4 is a structural block diagram of a control terminal linked by multiple AllJoyn devices provided by Embodiment 4 of the present invention;
图5为本发明实施例五提供的一种设备联动规则引擎的结构框图。FIG. 5 is a structural block diagram of a device linkage rule engine provided by Embodiment 5 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
实施例一Embodiment one
本发明实施例提供一种多个AllJoyn设备联动的方法,该方法应用于控制终端侧,如图1所示,本实施例所述方法具体包括:The embodiment of the present invention provides a method for linkage of multiple AllJoyn devices, which is applied to the control terminal side, as shown in Figure 1, the method described in this embodiment specifically includes:
步骤S101,获取联动设备的AllJoyn事件和AllJoyn动作信息;Step S101, obtaining the AllJoyn event and AllJoyn action information of the linked device;
步骤S102,以各AllJoyn事件按照低频率事件到高频率事件的顺序发生作为触发AllJoyn动作的联动触发条件,配置多设备联动规则,以使设备联动规则引擎根据所述多设备联动规则进行多设备联动控制。Step S102, taking each AllJoyn event occurring in the order of low-frequency events to high-frequency events as the linkage trigger condition for triggering the AllJoyn action, and configuring multi-device linkage rules so that the device linkage rule engine performs multi-device linkage according to the multi-device linkage rules control.
其中,控制终端判定AllJoyn事件为低频率事件还是高频事件的方式包括但不限于为:Among them, the ways for the control terminal to determine whether the AllJoyn event is a low-frequency event or a high-frequency event include but are not limited to:
1)用户根据经验指定的;1) Designated by the user based on experience;
2)控制终端预先统计出每个AllJoyn事件的平均发生频率,并根据比较各AllJoyn事件的平均发生频率,得到每个AllJoyn事件相对于其他AllJoyn事件是低频事件还是高频事件。2) The control terminal calculates the average occurrence frequency of each AllJoyn event in advance, and compares the average occurrence frequency of each AllJoyn event to obtain whether each AllJoyn event is a low-frequency event or a high-frequency event relative to other AllJoyn events.
在本发明的一个实施例中,控制终端通过调用设备联动规则引擎提供的多设备联动规则配置接口,直接将多设备联动规则配置到设备联动规则引擎中。In an embodiment of the present invention, the control terminal directly configures the multi-device linkage rule into the device linkage rule engine by calling the multi-device linkage rule configuration interface provided by the device linkage rule engine.
在本发明的另一个实施例中,在以各AllJoyn事件按照低频率事件到高频率事件的顺序发生作为触发AllJoyn动作的联动触发条件时,优选地,还需考虑各事件是否在规定的时间内顺序发生,若在规定的时间内顺序发生,方可作为触发AllJoyn动作的联动触发条件,增加了联动触发条件的有效性。In another embodiment of the present invention, when the AllJoyn events occur in the order of low-frequency events to high-frequency events as the linkage trigger conditions for triggering AllJoyn actions, preferably, it is also necessary to consider whether each event is within the specified time Sequential occurrence, if it occurs sequentially within the specified time, it can be used as a linkage trigger condition to trigger the AllJoyn action, which increases the effectiveness of the linkage trigger condition.
当按照上述触发条件配置的多设备联动规则优选地包含如下内容:发生频率由低到高的AllJoyn事件序列、规定的时间阈值以及AllJoyn动作。The multi-device linkage rule configured according to the above trigger conditions preferably includes the following content: an AllJoyn event sequence with a frequency from low to high, a specified time threshold, and an AllJoyn action.
综上所述,本实施例所述方法,通过配置一定的设备联动规则,使得设备联动规则引擎先监听低频事件再监听高频事件,从而节省多设备联动的系统资源。To sum up, in the method described in this embodiment, by configuring certain device linkage rules, the device linkage rule engine first monitors low-frequency events and then monitors high-frequency events, thereby saving system resources for multi-device linkage.
实施例二Embodiment two
本发明实施例提供一种多个AllJoyn设备联动的方法,应用于设备联动规则引擎侧,如图2所示,本实施例所述方法具体包括:The embodiment of the present invention provides a method for linkage of multiple AllJoyn devices, which is applied to the device linkage rule engine side, as shown in Figure 2, the method described in this embodiment specifically includes:
步骤S201,获取并存储控制终端配置的多设备联动规则;Step S201, acquiring and storing the multi-device linkage rules configured by the control terminal;
步骤S202,根据所述多设备联动规则,当检测到各AllJoyn事件按照规定的低频率事件到高频率事件的顺序发生时,触发指定的AllJoyn动作。Step S202 , according to the multi-device linkage rule, when it is detected that each AllJoyn event occurs in the specified sequence from low-frequency event to high-frequency event, a specified AllJoyn action is triggered.
优选地,本实施例中,设备联动规则引擎侧根据所述多设备联动规则,当检测到各AllJoyn事件按照规定的低频率事件到高频率事件的顺序且在规定的时间阈值范围内依次发生时,触发指定的AllJoyn动作。相对应的,当检测到事件序列的第一个事件发生到规定的时间阈值到达时,顺序事件还未完全发生,则不触发指定的AllJoyn动作。Preferably, in this embodiment, the device linkage rule engine side, according to the multi-device linkage rule, detects that each AllJoyn event occurs sequentially according to the specified sequence from low-frequency events to high-frequency events and within the specified time threshold range , to trigger the specified AllJoyn action. Correspondingly, when the first event in the event sequence is detected and the specified time threshold is reached, and the sequence event has not completely occurred, the specified AllJoyn action will not be triggered.
本实施例所述方法中,设备联动规则引擎先监听低频事件再监听高频事件,当各事件按照指定顺序发生且满足规定的时间阈值,则触发AllJoyn动作,这种先满足低频事件再满足高频事件的联动处理方式,极大的节省了多设备联动的系统资源。In the method described in this embodiment, the device linkage rule engine first monitors low-frequency events and then high-frequency events. When the events occur in a specified order and meet the specified time threshold, the AllJoyn action is triggered. The linkage processing method of frequent events greatly saves the system resources of multi-device linkage.
实施例三:Embodiment three:
本实施例通过给出一个具体的应用示例,对本发明提供的多个AllJoyn设备联动的方法进行更详尽的说明。In this embodiment, by giving a specific application example, the method for linking multiple AllJoyn devices provided by the present invention is described in more detail.
如图3所示,本实施例提供的多个AllJoyn设备联动的方法,具体包括:As shown in Figure 3, the method for linkage of multiple AllJoyn devices provided in this embodiment specifically includes:
步骤S301:控制终端获取智能家电1,智能家电2和智能家电3的AllJoyn事件和AllJoyn动作信息,例如智能家电1产生AllJoyn事件1(例如,智能家电1是亮度传感器,可以产生亮度较暗的AllJoyn事件),智能家电2产生AllJoyn事件2(例如,智能家电2是移动探测器,可以产生家里有人的AllJoyn事件),智能家电3产生AllJoyn动作3(例如,智能家电3是客厅灯光,可以执行打开客厅灯光的AllJoyn动作)。Step S301: The control terminal acquires AllJoyn event and AllJoyn action information of smart home appliance 1, smart home appliance 2, and smart home appliance 3, for example, smart home appliance 1 generates AllJoyn event 1 (for example, smart home appliance 1 is a brightness sensor, and can generate an AllJoyn event with a darker brightness. event), smart home appliance 2 generates AllJoyn event 2 (for example, smart home appliance 2 is a motion detector, which can generate an AllJoyn event for someone at home), smart home appliance 3 generates an AllJoyn action 3 (for example, smart home appliance 3 is a living room light, and can perform a turn on AllJoyn action for living room lighting).
步骤S302:控制终端调用设备联动规则的多设备联动规则配置接口(该接口用于配置多个AllJoyn事件依次发生时调用单个AllJoynAction),配置多设备联动规则。配置的设备联动规则包括AllJoyn事件序列(即触发设备联动的条件)、AllJoyn设备的动作信息(即触发设备执行的动作)以及规则事件计时器。Step S302: The control terminal invokes the multi-device linkage rule configuration interface of the device linkage rule (the interface is used to configure a single AllJoynAction when multiple AllJoyn events occur sequentially), and configures the multi-device linkage rule. The configured device linkage rules include the AllJoyn event sequence (ie, the condition that triggers the device linkage), the action information of the AllJoyn device (ie, the action that triggers the device to execute), and the rule event timer.
其中,事件序列包括低频事件(发生频率低于某一频率的事件,例如,家电1的AllJoyn事件1--亮度较暗,每天发生低于10次,则属于低频事件)和高频事件(发生频率高于频率的事件,例如,家电2AllJoyn事件2--家里有人,每次发生高于10次,则属于高频事件),规则事件计时器用于规定事件序列中从低频AllJoyn事件发生到高频AllJoyn事件发生的最大时长,如果在计时器超时前监测到全部AllJoyn事件都发生,则触发AllJoyn动作,如果计时器超时时还有AllJoyn事件未发生,则不触发AllJoyn动作。Among them, the event sequence includes low-frequency events (events with a frequency lower than a certain frequency, for example, the AllJoyn event 1 of home appliance 1—the brightness is dark, and it occurs less than 10 times a day, which is a low-frequency event) and high-frequency events (occurrence Events with a frequency higher than the frequency, for example, home appliance 2AllJoyn event 2--someone at home, each time it occurs more than 10 times, it is a high-frequency event), the regular event timer is used to specify the event sequence from low-frequency AllJoyn events to high-frequency events The maximum duration of the AllJoyn event. If all the AllJoyn events are detected before the timer expires, the AllJoyn action will be triggered. If there are no AllJoyn events when the timer expires, the AllJoyn action will not be triggered.
步骤S303:设备联动规则引擎保存该多设备联动规则,并开始监听AllJoyn事件序列中的低频事件,例如,设备联动规则引擎监听代表AllJoyn事件1的家电1的AllJoyn信号。Step S303: The device linkage rule engine saves the multi-device linkage rule, and starts to monitor the low-frequency events in the AllJoyn event sequence. For example, the device linkage rule engine monitors the AllJoyn signal of the appliance 1 representing the AllJoyn event 1.
步骤S304:智能家电1向设备联动规则引擎发送代表AllJoyn事件1的AllJoyn信号,例如,智能家电1发送的AllJoyn信号是亮度较暗,。Step S304: The smart home appliance 1 sends an AllJoyn signal representing the AllJoyn event 1 to the device linkage rule engine. For example, the AllJoyn signal sent by the smart home appliance 1 has a darker brightness.
步骤S305:设备联动规则引擎确定AllJoyn事件1发生,启动规则事件计时器(例如规则事件计时器时长为5分钟),继续监听事件序列中的高频事件,例如,设备联动规则引擎监听代表事件2的家电2的AllJoyn信号。Step S305: The device linkage rule engine determines that AllJoyn event 1 occurs, starts the rule event timer (for example, the rule event timer is 5 minutes long), and continues to monitor high-frequency events in the event sequence, for example, the device linkage rule engine monitors representative event 2 AllJoyn signal of the appliance 2.
根据规则事件计时器是否超时,有两种不同的情况:Depending on whether the rule event timer times out, there are two different cases:
情况一:Case 1:
步骤S306A:如果在规则事件计时器超时之前,智能家电2发送了代表AllJoyn事件2的AllJoyn信号,例如,智能家电2发送的AllJoyn信号是家里有人。Step S306A: If the smart home appliance 2 sends an AllJoyn signal representing an AllJoyn event 2 before the regular event timer times out, for example, the AllJoyn signal sent by the smart home appliance 2 is someone at home.
步骤S307A:设备联动规则引擎根据多设备联动规则确定AllJoyn事件序列中的事件已按次序全部发生,设备联动规则引擎调用智能家电3的代表AllJoyn动作3,例如,设备联动规则引擎调用智能家电3的打开客厅灯光的AllJoyn方法。Step S307A: The device linkage rule engine determines that the events in the AllJoyn event sequence have all occurred in order according to the multi-device linkage rule engine, and the device linkage rule engine invokes the AllJoyn action 3 representing the smart home appliance 3, for example, the device linkage rule engine calls the smart home appliance 3's The AllJoyn way to turn on the living room lights.
情况二:Case two:
步骤S306B:如果规则事件计时器超时,智能家电2还未发送代表事件2的AllJoyn信号,则设备联动规则引擎不调用智能家电3的代表动作3的AllJoyn方法,即不执行多设备联动规则。Step S306B: If the rule event timer times out and the smart home appliance 2 has not sent the AllJoyn signal representing event 2, the device linkage rule engine does not call the AllJoyn method representing action 3 of the smart home appliance 3, that is, does not execute the multi-device linkage rule.
综上所述,可知本实施例所述方法中,设备联动规则引擎提供多设备联动规则配置接口,该接口用于配置包含低频事件和高频事件的AllJoyn事件序列,调用的AllJoyn设备的动作以及规则事件计时器。低频事件和高频事件在规定的时间内依次发生时,设备联动规则引擎调用AllJoyn设备的动作。这种处理方式极大的节省了多设备联动的系统资源。In summary, it can be seen that in the method described in this embodiment, the device linkage rule engine provides a multi-device linkage rule configuration interface, which is used to configure the AllJoyn event sequence including low-frequency events and high-frequency events, the actions of the called AllJoyn devices, and Rule event timer. When low-frequency events and high-frequency events occur sequentially within the specified time, the device linkage rule engine invokes the action of the AllJoyn device. This processing method greatly saves system resources for multi-device linkage.
实施例四Embodiment Four
本发明实施例提供一种多个AllJoyn设备联动的控制终端,如图4所示,具体包括:The embodiment of the present invention provides a control terminal for linkage of multiple AllJoyn devices, as shown in FIG. 4 , specifically including:
第一信息获取模块410,用于获取联动设备的AllJoyn事件和AllJoyn动作信息;The first information acquisition module 410 is used to acquire the AllJoyn event and AllJoyn action information of the linked device;
配置模块420,用于以各所述AllJoyn事件按照低频率事件到高频率事件的顺序发生作为触发所述AllJoyn动作的联动触发条件,配置多设备联动规则,以使设备联动规则引擎根据所述多设备联动规则进行多设备联动控制。The configuration module 420 is configured to use the occurrence of each AllJoyn event in the order of low-frequency events to high-frequency events as the linkage trigger condition for triggering the AllJoyn action, and configure multi-device linkage rules, so that the device linkage rule engine according to the multiple The device linkage rule implements multi-device linkage control.
在本发明的一个实施例中,配置模块420,具体用于以各所述AllJoyn事件按照低频率事件到高频率事件的顺序并在规定的时间内依次发生作为触发所述AllJoyn动作的联动触发条件,配置多设备联动规则。In one embodiment of the present invention, the configuration module 420 is specifically configured to use the AllJoyn events as the linkage trigger condition for triggering the AllJoyn action in order of the low-frequency events to the high-frequency events and within a specified time. , configure multi-device linkage rules.
进一步地,所述配置模块420按照上述联动触发条件配置的多设备联动规则包括:发生频率由低到高的AllJoyn事件序列、规定的时间阈值以及AllJoyn动作。Further, the multi-device linkage rules configured by the configuration module 420 according to the above linkage trigger conditions include: an AllJoyn event sequence with an occurrence frequency from low to high, a specified time threshold, and an AllJoyn action.
在本发明的另一个实施例中,配置模块420通过调用所述设备联动规则引擎提供的多设备联动规则配置接口,将所述多设备联动规则配置到所述设备联动规则引擎中。In another embodiment of the present invention, the configuration module 420 configures the multi-device linkage rule into the device linkage rule engine by calling a multi-device linkage rule configuration interface provided by the device linkage rule engine.
本实施例所述控制终端,通过配置一定的设备联动规则,使得设备联动规则引擎先监听低频事件再监听高频事件,从而节省多设备联动的系统资源。The control terminal described in this embodiment configures certain device linkage rules so that the device linkage rule engine first monitors low-frequency events and then monitors high-frequency events, thereby saving system resources for multi-device linkage.
实施例五Embodiment five
本发明实施例提供一种设备联动规则引擎,如图5所示,具体包括:An embodiment of the present invention provides a device linkage rule engine, as shown in FIG. 5 , which specifically includes:
第二信息获取模块510,用于获取并存储控制终端配置的多设备联动规则;The second information acquisition module 510 is configured to acquire and store the multi-device linkage rules configured by the control terminal;
控制模块520,用于根据所述多设备联动规则,当检测到各AllJoyn事件按照规定的低频率事件到高频率事件的顺序发生时,触发指定的AllJoyn动作。The control module 520 is configured to, according to the multi-device linkage rule, trigger a specified AllJoyn action when it is detected that each AllJoyn event occurs in a specified sequence from low-frequency events to high-frequency events.
本发明实施例中,设备联动规则引擎还为控制终端提供多设备联动规则配置接口,第二信息获取模块510获取并存储控制终端通过多设备联动规则配置接口配置的多设备联动规则。In the embodiment of the present invention, the device linkage rule engine also provides a multi-device linkage rule configuration interface for the control terminal, and the second information acquisition module 510 acquires and stores the multi-device linkage rule configured by the control terminal through the multi-device linkage rule configuration interface.
进一步地,本发明实施例中,控制模块520,具体用于根据所述多设备联动规则,当检测到各AllJoyn事件按照规定的低频率事件到高频率事件的顺序且在规定的时间阈值范围内依次发生时,触发指定的AllJoyn动作。Further, in the embodiment of the present invention, the control module 520 is specifically configured to, according to the multi-device linkage rule, when detecting that each AllJoyn event follows the specified sequence from low-frequency events to high-frequency events and is within the specified time threshold range When they occur in sequence, trigger the specified AllJoyn action.
本实施例所述设备联动规则引擎,先监听低频事件再监听高频事件,当各事件按照指定顺序发生且满足规定的时间阈值,则触发AllJoyn动作,这种先满足低频事件再满足高频事件的联动处理方式,极大的节省了多设备联动的系统资源。The device linkage rule engine described in this embodiment first monitors low-frequency events and then high-frequency events. When each event occurs in a specified order and meets the specified time threshold, the AllJoyn action is triggered. This kind of low-frequency event is satisfied first and then high-frequency event The unique linkage processing method greatly saves the system resources of multi-device linkage.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是其与其他实施例的不同之处。尤其对于装置实施例而言,由于其基本相似与方法实施例,所以,描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on its differences from other embodiments. Especially for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to the part of the description of the method embodiment.
虽然通过实施例描述了本申请,本领域的技术人员知道,本申请有许多变形和变化而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Although the present application has been described by way of example, those skilled in the art will appreciate that there are many variations and changes in the present application without departing from the spirit and scope of the invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510542631.0A CN105242547A (en) | 2015-08-28 | 2015-08-28 | Linkage method and device of AllJoyn devices |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510542631.0A CN105242547A (en) | 2015-08-28 | 2015-08-28 | Linkage method and device of AllJoyn devices |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN105242547A true CN105242547A (en) | 2016-01-13 |
Family
ID=55040228
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510542631.0A Pending CN105242547A (en) | 2015-08-28 | 2015-08-28 | Linkage method and device of AllJoyn devices |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN105242547A (en) |
Cited By (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105721293A (en) * | 2016-02-01 | 2016-06-29 | 四川长虹电器股份有限公司 | Master gateway self-adaption competition method based on Alljoyn protocol |
| CN105739692A (en) * | 2016-01-28 | 2016-07-06 | 青岛海尔智能家电科技有限公司 | Triggering method and device based on AllJoyn, and trigger based on AllJoyn |
| CN106169957A (en) * | 2016-06-12 | 2016-11-30 | 福建星网锐捷通讯股份有限公司 | A kind of implementation method carrying out based on smart machine spanning gateway linking |
| CN106502111A (en) * | 2016-09-22 | 2017-03-15 | 深圳广田智能科技有限公司 | Intelligent engine linked system and method based on application abstract |
| CN106527162A (en) * | 2016-11-30 | 2017-03-22 | 海尔优家智能科技(北京)有限公司 | Linkage control method and device based on AllJoyn |
| CN107809355A (en) * | 2016-09-08 | 2018-03-16 | 北京京东尚科信息技术有限公司 | A kind of method and system of smart machine coordinated signals |
| CN108632094A (en) * | 2018-05-11 | 2018-10-09 | 星络科技有限公司 | The interlock method and device of more device events |
| CN108958174A (en) * | 2017-05-19 | 2018-12-07 | 北京京东尚科信息技术有限公司 | A kind of multi-class device control method and system |
| CN111290284A (en) * | 2018-12-06 | 2020-06-16 | 深圳市云海物联科技有限公司 | Method for managing equipment according to user habits and terminal equipment |
| CN115499265A (en) * | 2022-11-18 | 2022-12-20 | 杭州涂鸦信息技术有限公司 | Equipment control method, device, equipment and storage medium of Internet of things |
Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103391674A (en) * | 2013-08-20 | 2013-11-13 | 广州中国科学院软件应用技术研究所 | Street lamp control method and device |
| CN203689110U (en) * | 2013-12-13 | 2014-07-02 | 昆明理工大学 | Illumination and air-exchange control device in household toilet |
| US20140223460A1 (en) * | 2013-02-04 | 2014-08-07 | Universal Electronics Inc. | System and method for user monitoring and intent determination |
| CN104407702A (en) * | 2014-11-26 | 2015-03-11 | 三星电子(中国)研发中心 | Method, device and system for performing actions based on context awareness |
| CN104469008A (en) * | 2014-12-11 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Reminding method and device of mobile terminal and mobile terminal |
| CN104468630A (en) * | 2014-12-31 | 2015-03-25 | 北京海尔广科数字技术有限公司 | Access control method and device of intelligent household electrical appliances |
| CN104618433A (en) * | 2014-12-26 | 2015-05-13 | 国家电网公司 | ECA (Event-Condition-Action) rule based service combination method |
| CN104767807A (en) * | 2015-03-31 | 2015-07-08 | 华为技术有限公司 | Information transmission method based on wearable devices and related devices |
| CN104794876A (en) * | 2015-05-12 | 2015-07-22 | 深圳市尚吉电子有限公司 | Zigbee-based method for achieving time-delay control of smart home terminal equipment |
| CN204534279U (en) * | 2015-02-03 | 2015-08-05 | 上海复米信息科技有限公司 | Based on the office lighting energy saver under SaaS office mode |
-
2015
- 2015-08-28 CN CN201510542631.0A patent/CN105242547A/en active Pending
Patent Citations (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20140223460A1 (en) * | 2013-02-04 | 2014-08-07 | Universal Electronics Inc. | System and method for user monitoring and intent determination |
| CN103391674A (en) * | 2013-08-20 | 2013-11-13 | 广州中国科学院软件应用技术研究所 | Street lamp control method and device |
| CN203689110U (en) * | 2013-12-13 | 2014-07-02 | 昆明理工大学 | Illumination and air-exchange control device in household toilet |
| CN104407702A (en) * | 2014-11-26 | 2015-03-11 | 三星电子(中国)研发中心 | Method, device and system for performing actions based on context awareness |
| CN104469008A (en) * | 2014-12-11 | 2015-03-25 | 上海斐讯数据通信技术有限公司 | Reminding method and device of mobile terminal and mobile terminal |
| CN104618433A (en) * | 2014-12-26 | 2015-05-13 | 国家电网公司 | ECA (Event-Condition-Action) rule based service combination method |
| CN104468630A (en) * | 2014-12-31 | 2015-03-25 | 北京海尔广科数字技术有限公司 | Access control method and device of intelligent household electrical appliances |
| CN204534279U (en) * | 2015-02-03 | 2015-08-05 | 上海复米信息科技有限公司 | Based on the office lighting energy saver under SaaS office mode |
| CN104767807A (en) * | 2015-03-31 | 2015-07-08 | 华为技术有限公司 | Information transmission method based on wearable devices and related devices |
| CN104794876A (en) * | 2015-05-12 | 2015-07-22 | 深圳市尚吉电子有限公司 | Zigbee-based method for achieving time-delay control of smart home terminal equipment |
Cited By (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105739692A (en) * | 2016-01-28 | 2016-07-06 | 青岛海尔智能家电科技有限公司 | Triggering method and device based on AllJoyn, and trigger based on AllJoyn |
| CN105721293A (en) * | 2016-02-01 | 2016-06-29 | 四川长虹电器股份有限公司 | Master gateway self-adaption competition method based on Alljoyn protocol |
| CN105721293B (en) * | 2016-02-01 | 2018-12-28 | 四川长虹电器股份有限公司 | A kind of adaptive competing method of Master gateway based on Alljoyn agreement |
| CN106169957A (en) * | 2016-06-12 | 2016-11-30 | 福建星网锐捷通讯股份有限公司 | A kind of implementation method carrying out based on smart machine spanning gateway linking |
| CN107809355B (en) * | 2016-09-08 | 2020-11-03 | 北京京东尚科信息技术有限公司 | Method and system for linkage control of intelligent equipment |
| CN107809355A (en) * | 2016-09-08 | 2018-03-16 | 北京京东尚科信息技术有限公司 | A kind of method and system of smart machine coordinated signals |
| CN106502111A (en) * | 2016-09-22 | 2017-03-15 | 深圳广田智能科技有限公司 | Intelligent engine linked system and method based on application abstract |
| CN106527162A (en) * | 2016-11-30 | 2017-03-22 | 海尔优家智能科技(北京)有限公司 | Linkage control method and device based on AllJoyn |
| CN108958174A (en) * | 2017-05-19 | 2018-12-07 | 北京京东尚科信息技术有限公司 | A kind of multi-class device control method and system |
| CN108632094A (en) * | 2018-05-11 | 2018-10-09 | 星络科技有限公司 | The interlock method and device of more device events |
| CN111290284A (en) * | 2018-12-06 | 2020-06-16 | 深圳市云海物联科技有限公司 | Method for managing equipment according to user habits and terminal equipment |
| CN115499265A (en) * | 2022-11-18 | 2022-12-20 | 杭州涂鸦信息技术有限公司 | Equipment control method, device, equipment and storage medium of Internet of things |
| CN115499265B (en) * | 2022-11-18 | 2023-03-10 | 杭州涂鸦信息技术有限公司 | Equipment control method, device, equipment and storage medium of Internet of things |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106911650B (en) | A smart home control method, device and system | |
| RU2617330C2 (en) | Method and for scenario mode recommendation device for smart devices | |
| CN106793827B (en) | Data communication method and data communication system | |
| US10959122B2 (en) | Method and device for transmitting data | |
| CN105045114B (en) | An information processing method, cloud service platform and information processing system | |
| CN104380769A (en) | Method, device and electronic terminal for information reminder | |
| CN104809046B (en) | Application program networking control method and application program networking control device | |
| CN107370644B (en) | Linkage control method and device, computer readable storage medium and computer equipment | |
| CN110488692B (en) | Device control method, device, system, electronic device and storage medium | |
| CN105844869A (en) | Information prompting method and device | |
| CN105005291A (en) | Smart home control method, smart home control device and smart home control system | |
| CN105392187A (en) | Instant messaging application program management method, device and mobile terminal | |
| CN110473372A (en) | Abnormal notification method, device and system in intelligent security | |
| CN110718039A (en) | Fire alarm method, fire alarm device, household equipment and control terminal | |
| CN105242558A (en) | Control method and equipment for household electric appliance, household electric appliance and client equipment | |
| CN108390795A (en) | Household appliance and its monitoring method, intelligent domestic system and readable storage medium storing program for executing | |
| CN203632794U (en) | Dual-camera automatic switching monitoring system | |
| CN104298176B (en) | The register method of intelligent switch and its main frame, intelligent control network | |
| CN103906122A (en) | Network switch detection method and relevant devices | |
| WO2021052284A1 (en) | Method for creating and method for executing action resource, electronic device, and storage medium | |
| CN104794865A (en) | Loss preventive method and device for remote controller | |
| CN103269451A (en) | A method of automatic shutdown using video monitoring | |
| CN106528074A (en) | Method for controlling information terminal, and application system | |
| CN114326420A (en) | Intelligent grouping method and device for equipment, intelligent equipment and storage medium | |
| CN113940143B (en) | System and method for assisting a user in configuring a lighting system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160113 |
|
| RJ01 | Rejection of invention patent application after publication |