CN113485135B - Event processing method and device, storage medium and electronic device - Google Patents

Event processing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN113485135B
CN113485135B CN202110723418.5A CN202110723418A CN113485135B CN 113485135 B CN113485135 B CN 113485135B CN 202110723418 A CN202110723418 A CN 202110723418A CN 113485135 B CN113485135 B CN 113485135B
Authority
CN
China
Prior art keywords
event
information
equipment
message bus
rule information
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.)
Active
Application number
CN202110723418.5A
Other languages
Chinese (zh)
Other versions
CN113485135A (en
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110723418.5A priority Critical patent/CN113485135B/en
Publication of CN113485135A publication Critical patent/CN113485135A/en
Application granted granted Critical
Publication of CN113485135B publication Critical patent/CN113485135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • 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)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the application provides an event processing method and device, a storage medium and an electronic device, wherein the method comprises the following steps: receiving scene rule information from the message bus under the condition that the scene rule information transmitted on the message bus comprises first equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus; executing a first event based on event information in the scene rule information; generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed; the second event is posted to the message bus to instruct the second device to receive and execute the second event from the message bus. The method and the device solve the problem of event processing in the linkage scene in the related technology, and achieve the effect of improving the execution efficiency of the events in the linkage scene.

Description

Event processing method and device, storage medium and electronic device
Technical Field
The embodiment of the application relates to the field of data processing, in particular to an event processing method and device, a storage medium and an electronic device.
Background
In the prior art, for a linkage scene set by a user (for example, scene: winter, user has washed down, air conditioner is automatically turned on, temperature is set to 28 degrees for low wind heating), the following modes are adopted:
mode 1: cloud end combination, data cloud loading, cloud end server calculation and remote sending of control commands to the equipment. The method has the defect that user data needs to be reported to the cloud, and privacy leakage is designed.
Mode 2: and combining the edge ends, calculating by the edge server at the upper edge of the data, and sending a control command to the equipment through the local network. The disadvantage is the need to purchase edge servers, which are expensive.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the application provides an event processing method and device, a storage medium and an electronic device, which are used for at least solving the problem of event processing in a linkage scene in the related technology.
According to an embodiment of the present application, there is provided an event processing method including: receiving scene rule information from the message bus under the condition that the scene rule information transmitted on the message bus comprises first equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus; executing a first event based on event information in the scene rule information; generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed; the second event is posted to the message bus to instruct the second device to receive and execute the second event from the message bus.
According to another embodiment of the present application, there is provided an event processing method including: receiving scene rule information from the message bus under the condition that the scene rule information transmitted on the message bus comprises second equipment information, wherein the scene rule information also comprises event information to be executed by linkage of first equipment and second equipment and first equipment information of the first equipment, and the first equipment and the second equipment are connected with the message bus; receiving a second event from the message bus based on the context rule information, wherein the second event is generated by the first device; a second event is performed.
According to still another embodiment of the present application, there is also provided an event processing apparatus including: the first receiving module is used for receiving scene rule information from the message bus under the condition that the scene rule information transmitted on the message bus comprises first equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus; the first execution module is used for executing a first event based on event information in the scene rule information; the first generation module is used for generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed; the first distribution module is used for distributing the second event to the message bus to instruct the second device to receive and execute the second event from the message bus.
In an exemplary embodiment, the first execution module includes: a first determining unit configured to determine event information included in the scene rule information; and the first execution unit is used for determining a first event to be executed by the first device from the event information so as to execute the first event.
In an exemplary embodiment, the first generating module includes: a first acquiring unit configured to acquire an execution result of a first electric control board unit in a first device, where the first electric control board unit is configured to execute a first event; and the first generation unit is used for determining a second event to be executed by the second equipment from the event information to generate the second event when the first event execution is completed in the determined execution result.
In an exemplary embodiment, the first obtaining unit includes: the first acquisition subunit is used for acquiring the duration and the environmental information of the first event executed by the first electric control board component, and obtaining an execution result.
According to still another embodiment of the present application, there is also provided an event processing apparatus including: the second receiving module is used for receiving scene rule information from the message bus under the condition that the scene rule information transmitted on the message bus comprises second equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and the second equipment in a linkage way and first equipment information of the first equipment, and the first equipment and the second equipment are connected with the message bus; a third receiving module for receiving a second event from the message bus based on the context rule information, wherein the second event is generated by the first device; and the second execution module is used for executing a second event.
In an exemplary embodiment, the second receiving module includes: a third acquisition unit configured to acquire event information in the scene rule information; the first receiving unit is used for receiving the second event from the message bus under the condition that the linkage relation between the second equipment and the first equipment is determined from the event information.
In an exemplary embodiment, the second execution module includes: a second determining unit configured to determine an event type of the second event and execution information of the second event; the second generation unit is used for generating an execution instruction by using the event type and the execution information; and the first sending unit is used for sending the execution instruction to a second electric control board component in the second equipment so as to instruct the second electric control board component to execute the second event.
According to a further embodiment of the application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the method and the device, under the condition that the scene rule information transmitted on the message bus comprises first equipment information, the scene rule information is received from the message bus, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus; executing a first event based on event information in the scene rule information; generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed; the second event is posted to the message bus to instruct the second device to receive and execute the second event from the message bus. The aim of linking each event execution device through a data bus is fulfilled. Therefore, the problem of event processing in the linkage scene in the related technology can be solved, and the effect of improving the execution efficiency of the events in the linkage scene is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of an event processing method according to an embodiment of the present application;
FIG. 2 is a flow chart (one) of a method of event processing according to an embodiment of the present application;
FIG. 3 is a flow chart (II) of an event processing method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a Mesh network structure according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a Message Bus structure according to an embodiment of the application;
FIG. 6 is a flow chart of the execution of a linked event according to an embodiment of the present application;
FIG. 7 is a block diagram of an event processing device according to an embodiment of the present application;
fig. 8 is a block diagram (two) of the event processing apparatus according to the embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal of an event processing method according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to an event processing method in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, there is provided an event processing method, and fig. 2 is a flowchart (a) of the event processing method according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving scene rule information from a message bus under the condition that the scene rule information transmitted on the message bus comprises first equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus;
step S204, executing a first event based on event information in the scene rule information;
step S206, generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed;
step S208, issue the second event onto the message bus to instruct the second device to receive and execute the second event from the message bus.
The main body of execution of the above steps may be a terminal (e.g., a home appliance), but is not limited thereto.
The embodiment includes, but is not limited to, application in the event linkage scenario, for example, "winter, user's bath is done, air conditioner is automatically turned on, temperature is set to 28 degrees of low wind heating", that is, the linkage scenario involving water heater and air conditioner.
In this embodiment, the scene rule information is a set scene, such as the above-mentioned scene. For example, the first event includes the water heater modulating a suitable water temperature. The second event includes the air conditioner turning on to 28 degrees after the bath is finished, etc.
In this embodiment, the message bus is used to carry the scene rule information, each event, and the like in the foregoing. Each device is connected to a message bus.
By the steps, under the condition that the scene rule information transmitted on the message bus comprises first equipment information, the scene rule information is received from the message bus, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus; executing a first event based on event information in the scene rule information; generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed; the second event is posted to the message bus to instruct the second device to receive and execute the second event from the message bus. The aim of linking each event execution device through a data bus is fulfilled. Therefore, the problem of event processing in the linkage scene in the related technology can be solved, and the effect of improving the execution efficiency of the events in the linkage scene is achieved.
In one exemplary embodiment, executing a first event based on event information in the context rule information includes:
s1, determining event information included in scene rule information;
s2, determining a first event to be executed by the first device from the event information to execute the first event.
In this embodiment, for example, the event information included in the scene rule information may be "winter, the user has a bath, the air conditioner is automatically turned on, the temperature is set to 28 degrees for low wind heating", and the first event includes the water heater modulating a suitable water temperature.
In one exemplary embodiment, in a case where it is determined that the first event is executed, generating the second event based on event information in the scene rule information includes:
s1, acquiring an execution result of a first electric control board component in first equipment, wherein the first electric control board component is used for executing a first event;
s2, determining a second event to be executed by the second device from the event information to generate the second event under the condition that the execution result includes that the execution of the first event is completed.
In this embodiment, for example, the water temperature regulation performed by the first electric control board in the water heater apparatus. A second event is generated when the first electronic control board adjusts the water temperature of the water heater device to a suitable temperature and in the event that the user is bathed for the evening. For example, the air conditioner is turned on to 28 degrees.
In an exemplary embodiment, obtaining an execution result of the first electric control board part in the first device includes:
s1, acquiring the duration and environmental information of the first event executed by the first electric control board component, and obtaining an execution result.
In this embodiment, for example, the duration of a bath and ambient temperature information.
In this embodiment, there is provided an event processing method, and fig. 3 is a flowchart (two) of the event processing method according to an embodiment of the present application, and as shown in fig. 3, the flowchart includes the following steps:
step S302, receiving scene rule information from a message bus under the condition that the scene rule information transmitted on the message bus comprises second equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and the second equipment in linkage and first equipment information of the first equipment, and the first equipment and the second equipment are connected with the message bus;
step S304, receiving a second event from the message bus based on the scene rule information, wherein the second event is generated by the first device;
step S306, executing the second event.
The main body of execution of the above steps may be a terminal (e.g., a home appliance), but is not limited thereto.
The embodiment includes, but is not limited to, application in the event linkage scenario, for example, "winter, user's bath is done, air conditioner is automatically turned on, temperature is set to 28 degrees of low wind heating", that is, the linkage scenario involving water heater and air conditioner.
In this embodiment, the scene rule information is a set scene, such as the above-mentioned scene. For example, the first event includes the water heater modulating a suitable water temperature. The second event includes the air conditioner turning on to 28 degrees after the bath is finished, etc.
In this embodiment, the message bus is used to carry the scene rule information, each event, and the like in the foregoing. Each device is connected to a message bus.
Receiving scene rule information from the message bus by determining that the scene rule information transmitted on the message bus includes second device information, wherein the scene rule information includes first device information of a first device and second device information of a second device, and the first device and the second device are connected with the message bus; receiving a second event from the message bus based on the context rule information, wherein the second event is generated by the first device; a second event is performed. The aim of linking each event execution device through a data bus is fulfilled. Therefore, the problem of event processing in the linkage scene in the related technology can be solved, and the effect of improving the execution efficiency of the events in the linkage scene is achieved.
In one exemplary embodiment, receiving a second event from the message bus based on the context rule information includes:
s1, acquiring event information in scene rule information;
s2, receiving a second event from the message bus under the condition that the linkage relation exists between the second device and the first device from the event information.
In this embodiment, for example, the first device includes a water heater device, the second device includes an air conditioner, and the scene rule information includes device information of the water heater device and device information of the air conditioner. And associate a linkage relationship between the two devices.
In one exemplary embodiment, performing the second event includes:
s1, determining an event type of a second event and execution information of the second event;
s2, generating an execution instruction by using the event type and the execution information;
and S3, sending an execution instruction to a second electric control board component in the second equipment to instruct the second electric control board component to execute a second event.
In the present embodiment, for example, the second event is turning on the air conditioner, and the temperature is adjusted to 28 degrees. And sending the information of the second event to the air conditioner to execute the instruction.
The application is illustrated below with reference to specific examples:
the embodiment comprises a virtual message bus based on a Mesh network, and a local linkage scene is constructed by realizing a local distributed joint decision on the basis of the message bus.
As shown in fig. 4, the Mesh network structure in the present embodiment is included. In this embodiment, the Mesh network is an interconnection network of a cross-network protocol constructed by modules and device software development packages (Software Development Kit, abbreviated as SDKs) on the end over the bluetooth and wifi network.
In this embodiment, a message sent by any node may quickly reach any other node in the network.
As shown in fig. 5, this embodiment further includes a Message Bus structure. In this embodiment, the Message Bus is a Message Bus constructed on top of the Mesh network of the wireless Mesh network. The functions of publishing messages and subscribing message quantity are mainly realized.
In this embodiment, the upper layer application can send data to any node on the Mesh through the function of publishing messages. Nodes subscribed to the message can receive the data, and nodes not subscribed to the message cannot receive the data.
The present embodiment is described below in connection with a scenario,
scene rules: in winter, the user has washed the bath, the air conditioner is automatically turned on, the temperature is set to 28 ℃ for low wind heating, as shown in fig. 6, the execution of the linkage event comprises the following steps:
s1, a user creates a local scene rule in an application program APP, wherein the local scene rule comprises an event initiator and an event processor, and the APP issues the scene rule to a message bus.
S2, each device receives the rule from the message bus, the rule related to the local is accepted, and the rule unrelated to the local is abandoned.
S3, the event initiator generates a business event according to the state and rule fed back by the electric control board and issues the event to the message bus.
S4, each device receives the event from the message bus, the event concerned by the local machine is received, and the event not concerned by the local machine is discarded.
S5, the event processor generates an electric control board command to execute the operation according to the event type and the rule.
In summary, the embodiment is based on the virtual message bus of the Mesh network, and the local distributed joint decision is implemented on the basis of the message bus to construct the local linkage scene. The privacy security of the user can be ensured, and the scene of the user can be detected in real time. In addition, the external network and the edge host are not needed, and the external cost of household appliances and the like can be reduced.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiment also provides an event processing device, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 7 is a block diagram (a) of an event processing apparatus according to an embodiment of the present application, as shown in fig. 7, the apparatus includes:
a first receiving module 72, configured to receive, when it is determined that the scene rule information transmitted on the message bus includes first device information, the scene rule information from the message bus, where the scene rule information further includes event information to be executed by linkage of the first device and the second device, and second device information of the second device, and the first device and the second device are both connected to the message bus;
a first execution module 74 for executing a first event based on event information in the scene rule information;
a first generation module 76 for generating a second event based on event information in the scene rule information in case that it is determined that the first event is executed;
a first distribution module 78 for distributing the second event onto the message bus to instruct the second device to receive and execute the second event from the message bus.
In an exemplary embodiment, the first execution module includes:
a first determining unit configured to determine event information included in the scene rule information;
and the first execution unit is used for determining a first event to be executed by the first device from the event information so as to execute the first event.
In an exemplary embodiment, the first generating module includes:
a first acquiring unit configured to acquire an execution result of a first electric control board unit in a first device, where the first electric control board unit is configured to execute a first event;
and the first generation unit is used for determining a second event to be executed by the second equipment from the event information to generate the second event when the first event execution is completed in the determined execution result.
In an exemplary embodiment, the first obtaining unit includes:
the first acquisition subunit is used for acquiring the duration and the environmental information of the first event executed by the first electric control board component, and obtaining an execution result.
Fig. 8 is a block diagram (two) of an event processing apparatus according to an embodiment of the present application, as shown in fig. 8, the apparatus includes:
a second receiving module 82, configured to receive, when it is determined that the scene rule information transmitted on the message bus includes the second device information, the scene rule information from the message bus, where the scene rule information further includes event information to be executed by linkage of the first device and the second device, and first device information of the first device, and both the first device and the second device are connected to the message bus;
a third receiving module 84 for receiving a second event from the message bus based on the context rule information, wherein the second event is generated by the first device;
a second execution module 86 for executing a second event.
In an exemplary embodiment, the second receiving module includes:
a third acquisition unit configured to acquire event information in the scene rule information;
the first receiving unit is used for receiving the second event from the message bus under the condition that the linkage relation between the second equipment and the first equipment is determined from the event information.
In an exemplary embodiment, the second execution module includes:
a second determining unit configured to determine an event type of the second event and execution information of the second event;
the second generation unit is used for generating an execution instruction by using the event type and the execution information;
and the first sending unit is used for sending the execution instruction to a second electric control board component in the second equipment so as to instruct the second electric control board component to execute the second event.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In the present embodiment, the above-described computer-readable storage medium may be configured to store a computer program for executing the above steps.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
In an exemplary embodiment, the above processor may be arranged to perform the above steps by means of a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An event processing method, comprising:
receiving scene rule information from a message bus under the condition that the scene rule information transmitted on the message bus comprises first equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus;
executing a first event based on event information in the context rule information, wherein executing the first event based on event information in the context rule information comprises: determining the event information included in the scene rule information; determining the first event to be executed by the first device from the event information to execute the first event;
generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed;
the second event is published onto the message bus to instruct the second device to receive and execute the second event from the message bus.
2. The method of claim 1, wherein generating a second event based on event information in the context rule information, if it is determined that the first event is executed, comprises:
acquiring an execution result of a first electric control board component in the first equipment, wherein the first electric control board component is used for executing the first event;
and determining the second event to be executed by the second device from the event information to generate the second event under the condition that the execution result comprises the completion of the execution of the first event.
3. The method according to claim 2, wherein obtaining the execution result of the first electric control board part in the first device includes:
and acquiring the time length and the environmental information of the first electric control board component for executing the first event, and obtaining the execution result.
4. An event processing method, comprising:
receiving scene rule information from a message bus under the condition that second equipment information is included in scene rule information transmitted on the message bus, wherein the scene rule information also includes event information to be executed by first equipment and the second equipment in linkage and first equipment information of the first equipment, and the first equipment and the second equipment are connected with the message bus;
receiving, from the message bus, a second event to be executed by the second device based on the scene rule information, wherein the second event is generated after the first device executes the first event based on the event information in the scene rule information, and the first device executes the first event based on the event information in the scene rule information by: determining the event information included in the scene rule information, and determining the first event to be executed by the first device from the event information to execute the first event;
and executing the second event.
5. The method of claim 4, wherein receiving a second event from the message bus based on the context rule information comprises:
acquiring the event information in the scene rule information;
and receiving the second event from the message bus under the condition that the linkage relation exists between the second equipment and the first equipment is determined from the event information.
6. The method of claim 4, wherein executing the second event comprises:
determining an event type of the second event and execution information of the second event;
generating an execution instruction by using the event type and the execution information;
and sending the execution instruction to a second electric control board component in the second device to instruct the second electric control board component to execute the second event.
7. An event processing apparatus, comprising:
the first receiving module is used for receiving scene rule information transmitted on a message bus from the message bus under the condition that the scene rule information comprises first equipment information, wherein the scene rule information also comprises event information to be executed by the first equipment and second equipment in linkage and second equipment information of the second equipment, and the first equipment and the second equipment are connected with the message bus;
the first execution module is used for executing a first event based on event information in the scene rule information, wherein the first execution module is further used for determining the event information included in the scene rule information, determining the first event to be executed by the first device from the event information, and executing the first event;
the first generation module is used for generating a second event based on event information in the scene rule information under the condition that the first event is determined to be executed;
and the first distribution module is used for distributing the second event to the message bus so as to instruct the second equipment to receive and execute the second event from the message bus.
8. An event processing apparatus, comprising:
the second receiving module is used for receiving scene rule information from the message bus under the condition that second equipment information is included in scene rule information transmitted on the message bus, wherein the scene rule information also includes event information to be executed by first equipment and the second equipment in a linkage way and first equipment information of the first equipment, and the first equipment and the second equipment are connected with the message bus;
a third receiving module, configured to receive, from the message bus, a second event to be executed by the second device, where the second event is generated after the first device executes the first event based on event information in the scene rule information, and the first device executes the first event based on event information in the scene rule information by: determining the event information included in the scene rule information, and determining the first event to be executed by the first device from the event information to execute the first event;
and the second execution module is used for executing the second event.
9. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program, when executed by a processor, implements the method of any of the claims 1 to 3 or the method of any of the claims 4-6.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 3 or to perform the method of any of the claims 4-6.
CN202110723418.5A 2021-06-28 2021-06-28 Event processing method and device, storage medium and electronic device Active CN113485135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110723418.5A CN113485135B (en) 2021-06-28 2021-06-28 Event processing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110723418.5A CN113485135B (en) 2021-06-28 2021-06-28 Event processing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN113485135A CN113485135A (en) 2021-10-08
CN113485135B true CN113485135B (en) 2023-10-24

Family

ID=77936403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110723418.5A Active CN113485135B (en) 2021-06-28 2021-06-28 Event processing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN113485135B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104749962A (en) * 2015-03-09 2015-07-01 联想(北京)有限公司 Linkage rule based smart home control method and device
CN104808499A (en) * 2015-03-09 2015-07-29 联想(北京)有限公司 Method of controlling intelligent household equipment based on linkage rules and control device
CN105022362A (en) * 2014-04-29 2015-11-04 深圳市君鹏物联科技有限公司 Coordinated control system and coordinated control method of smart home equipment
CN106130853A (en) * 2016-08-31 2016-11-16 深圳Tcl智能家庭科技有限公司 A kind of intarconnected cotrol method of intelligent home device and system thereof
CN107918362A (en) * 2016-10-08 2018-04-17 佛山市顺德区美的电热电器制造有限公司 Appliances equipment control method, apparatus and system
CN110300042A (en) * 2019-07-24 2019-10-01 珠海太川云社区技术股份有限公司 A kind of bus communication system and communication control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190050366A1 (en) * 2017-08-14 2019-02-14 Qualcomm Incorporated Device, event and message parameter association in a multi-drop bus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022362A (en) * 2014-04-29 2015-11-04 深圳市君鹏物联科技有限公司 Coordinated control system and coordinated control method of smart home equipment
CN104749962A (en) * 2015-03-09 2015-07-01 联想(北京)有限公司 Linkage rule based smart home control method and device
CN104808499A (en) * 2015-03-09 2015-07-29 联想(北京)有限公司 Method of controlling intelligent household equipment based on linkage rules and control device
CN106130853A (en) * 2016-08-31 2016-11-16 深圳Tcl智能家庭科技有限公司 A kind of intarconnected cotrol method of intelligent home device and system thereof
CN107918362A (en) * 2016-10-08 2018-04-17 佛山市顺德区美的电热电器制造有限公司 Appliances equipment control method, apparatus and system
CN110300042A (en) * 2019-07-24 2019-10-01 珠海太川云社区技术股份有限公司 A kind of bus communication system and communication control method

Also Published As

Publication number Publication date
CN113485135A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN107861760A (en) BIOS collocation method, terminal and server
CN104852990A (en) Information processing method and intelligent household control system
CN105093945A (en) System and method for safely controlling smart household apparatuses based on smart cloud
CN106713004B (en) Router adaptation method and system
CN108834179A (en) Adjust method, the server and client side of heart beat cycle
CN105487390A (en) Intelligent device, registration management method thereof and cloud server
CN109981421B (en) Intelligent device network distribution method and device
CN107342933A (en) A kind of activation of smart machine and binding method and device
CN113055255A (en) Scene configuration method and device of intelligent household appliance, storage medium and electronic equipment
CN105306320A (en) Method and device for binding clients to intelligent device
CN110474960B (en) Method and device for service deployment in virtual network
CN109842515B (en) Method for multi-device network distribution, server and computer storage medium
CN105511275A (en) Method and device for controlling intelligent electric appliance
CN112511390B (en) Intelligent household appliance template scene generation method and device, storage medium and electronic device
CN104270188A (en) Beidou satellite communication equipment
CN113434255A (en) Virtual equipment creating method and device
CN113485135B (en) Event processing method and device, storage medium and electronic device
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN113434422A (en) Virtual device debugging method and device and virtual device debugging system
CN107113615A (en) A kind of authentication method, system and relevant device to access point AP
CN108449403A (en) A kind of charge control method
CN108055690A (en) Wi-Fi hotspot recommends method, application server and computer readable storage medium
CN112714146B (en) Resource scheduling method, device, equipment and computer readable storage medium
CN112689006A (en) Internet of things equipment control method and device, storage medium and electronic device
CN112511621A (en) Data transmission method and device, storage medium, and electronic device

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
GR01 Patent grant
GR01 Patent grant