CN113485135A - 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
CN113485135A
CN113485135A CN202110723418.5A CN202110723418A CN113485135A CN 113485135 A CN113485135 A CN 113485135A CN 202110723418 A CN202110723418 A CN 202110723418A CN 113485135 A CN113485135 A CN 113485135A
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.)
Granted
Application number
CN202110723418.5A
Other languages
Chinese (zh)
Other versions
CN113485135B (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

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • 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 invention 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 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 linkage of first equipment and second equipment information of the second equipment, and the first equipment and the second equipment are both 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 in a case where it is determined that the first event is executed; and issuing a second event onto the message bus to instruct the second device to receive and execute the second event from the message bus. According to the invention, the problem of event processing in the linkage scene in the related technology is solved, and the effect of improving the execution efficiency of the event in the linkage scene is achieved.

Description

Event processing method and device, storage medium and electronic device
Technical Field
The embodiment of the invention 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, the scene is winter, the user has bathed, the air conditioner is automatically turned on, and the temperature is set to be 28 degrees by low wind), the adopted method comprises the following steps:
mode 1: and cloud end combination, wherein data is subjected to cloud, the cloud end server calculates and sends a control command to the equipment in a remote mode. The method has the disadvantages that user data needs to be reported to the cloud end, and design privacy is revealed.
Mode 2: and combining the edge terminals, performing data top edge calculation by the edge server, and sending a control command to the equipment through the local network. The disadvantage is that the edge server is needed to be purchased, and the manufacturing cost is high.
In view of the above technical problems, no effective solution has been proposed in the related art.
Disclosure of Invention
The embodiment of the invention provides an event processing method and device, a storage medium and an electronic device, which are used for at least solving the problem of processing events in a linkage scene in the related art.
According to an embodiment of the present invention, there is provided an event processing method including: 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 linkage of first equipment and second equipment information of the second equipment, and the first equipment and the second equipment are both 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 in a case where it is determined that the first event is executed; and issuing a second event onto 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 invention, 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 the first equipment and the second equipment and first equipment information of the first equipment, and the first equipment and the second equipment are both 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 executed.
According to still another embodiment of the present invention, there is also provided an event processing apparatus including: the first receiving module is used for receiving the 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 linkage of the first equipment and the second equipment and second equipment information of the second equipment, and the first equipment and the second equipment are both connected with the message bus; a first executing module, configured to execute 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 the event information in the scene rule information under the condition that the first event is determined to be executed; and the first publishing module is used for publishing 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.
In an exemplary embodiment, the first executing 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 equipment from the event information so as to execute the first event.
In an exemplary embodiment, the first generating module includes: a first acquisition unit, configured to acquire an execution result of a first electronic control board component in a first device, where the first electronic control board component 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 device from the event information to generate the second event under the condition that the execution result comprises the execution completion of the first event.
In an exemplary embodiment, the first obtaining unit includes: and the first acquisition subunit is used for acquiring the time length and the environment information of the first event executed by the first electric control board component to obtain an execution result.
According to still another embodiment of the present invention, there is also provided an event processing apparatus including: the second receiving module is used for receiving the 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 the first equipment and the second equipment and first equipment information of the first equipment, and the first equipment and the second equipment are both connected with the message bus; a third receiving module, configured to receive a second event from the message bus based on the scenario rule information, where the second event is generated by the first device; and the second execution module is used for executing the second event.
In an exemplary embodiment, the second receiving module includes: a third obtaining unit, configured to obtain event information in the scene rule information; and the first receiving unit is used for 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.
In an exemplary embodiment, the second executing module includes: a second determining unit for determining an event type of the second event and execution information of the second event; a second generating unit for generating an execution instruction 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 present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the method and the device, under the condition that the scene rule information transmitted on the message bus comprises the 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 linkage of the first equipment and the second equipment and second equipment information of the second equipment, and the first equipment and the second equipment are both 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 in a case where it is determined that the first event is executed; and issuing a second event onto the message bus to instruct the second device to receive and execute the second event from the message bus. The purpose of linking each event execution device through a data bus is achieved. 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 configuration of a mobile terminal of an event processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an event processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of an event processing method according to an embodiment of the present invention (two);
figure 4 is a schematic diagram of a network structure including a Mesh according to an embodiment of the invention;
FIG. 5 is a schematic diagram including a Message Bus structure according to an embodiment of the invention;
FIG. 6 is a flow diagram of the execution of a linkage event according to an embodiment of the present invention;
FIG. 7 is a block diagram of an event processing apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of the structure of an event processing apparatus according to an embodiment of the present invention (ii).
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail 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 claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the application in a mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal of an event processing method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. 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 computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the event processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the method described above. The 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 located remotely from the processor 102, which may be connected to the mobile terminal over 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 device 106 is used for receiving or transmitting 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 (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In the present embodiment, an event processing method is provided, and fig. 2 is a flowchart (a) of the event processing method according to the embodiment of the present invention, 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 is determined to include first equipment information, wherein the scene rule information further includes event information to be executed by linkage of first equipment and second equipment information of the second equipment, and the first equipment and the second equipment are both connected with the message bus;
step S204, executing a first event based on the event information in the scene rule information;
step S206, under the condition that the first event is determined to be executed, generating a second event based on the event information in the scene rule information;
step S208, issuing a second event to the message bus to instruct the second device to receive and execute the second event from the message bus.
The executing subject of the above steps may be a terminal (e.g., a home appliance), etc., but is not limited thereto.
The embodiment includes but is not limited to the application in the scene of linkage of events, for example, "winter, user has bathed, air conditioner is automatically turned on, temperature is set to 28 degrees of low wind heating", namely the linkage scene of water heater and air conditioner is involved.
In the present 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 the appropriate water temperature. The second event includes the air conditioner being turned on to 28 degrees after bathing is finished, etc.
In this embodiment, the message bus is used to carry the above-mentioned scenario rule information, each event, and the like. Each device is connected to a message bus.
Through the steps, under the condition that the scene rule information transmitted on the message bus is determined to include the first equipment information, the scene rule information is received from the message bus, wherein the scene rule information further includes event information to be executed by linkage of the first equipment and the second equipment information of the second equipment, and the first equipment and the second equipment are both 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 in a case where it is determined that the first event is executed; and issuing a second event onto the message bus to instruct the second device to receive and execute the second event from the message bus. The purpose of linking each event execution device through a data bus is achieved. 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 the first event based on the event information in the scenario rule information includes:
s1, determining event information included in the scene rule information;
s2, a first event to be executed by the first device is determined 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, user has finished bathing, air conditioner is automatically turned on, temperature is set to low wind and heat 28 degrees", and the first event includes that the water heater is used to adjust appropriate water temperature.
In one exemplary embodiment, in a case where it is determined that the first event is executed, generating a second event based on event information in the scenario rule information includes:
s1, 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 a first event;
s2, in case that it is determined that the execution result includes the completion of the execution of the first event, determining a second event to be executed by the second device from the event information to generate the second event.
In the present embodiment, for example, the water temperature regulation performed by the first electric control board in the water heater device. And in the case that the first electric control board adjusts the water temperature of the water heater device to a proper temperature and the user bathes at night, generating a second event. For example, turn on the air conditioner to 28 degrees.
In one exemplary embodiment, obtaining results of execution of a first electronically controlled board component in a first device comprises:
and S1, acquiring the time length and the environment information of the first event executed by the first electric control board component, and obtaining the execution result.
In the present embodiment, for example, the length of bathing and the ambient temperature information.
In the present embodiment, an event processing method is provided, and fig. 3 is a flowchart (two) of the event processing method according to the embodiment of the present invention, 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 linkage of first equipment and second equipment and first equipment information of the first equipment, and the first equipment and the second equipment are both 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, a second event is executed.
The executing subject of the above steps may be a terminal (e.g., a home appliance), etc., but is not limited thereto.
The embodiment includes but is not limited to the application in the scene of linkage of events, for example, "winter, user has bathed, air conditioner is automatically turned on, temperature is set to 28 degrees of low wind heating", namely the linkage scene of water heater and air conditioner is involved.
In the present 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 the appropriate water temperature. The second event includes the air conditioner being turned on to 28 degrees after bathing is finished, etc.
In this embodiment, the message bus is used to carry the above-mentioned scenario rule information, each event, and the like. Each device is connected to a message bus.
Through the steps, under the condition that the scene rule information transmitted on the message bus comprises the second equipment information, the scene rule information is received from the message bus, wherein the scene rule information comprises the first equipment information of the first equipment and the second equipment information of the second equipment, and the first equipment and the second equipment are both 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 executed. The purpose of linking each event execution device through a data bus is achieved. 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 the scene rule information;
s2, receiving the second event from the message bus when the linkage relationship between the second device and the first device is determined 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 associates the linkage relationship between the two devices.
In one exemplary embodiment, a second event is performed, comprising:
s1, determining the event type of the second event and the 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 invention is illustrated below with reference to specific examples:
the embodiment comprises a virtual message bus based on a Mesh network, and a local distributed joint decision is realized on the basis of the message bus to construct a local linkage scene.
As shown in fig. 4, a Mesh network structure in the present embodiment is included. In this embodiment, the Mesh network is an interworking network of cross-network protocols, which is constructed by a module on the end and a device Software Development Kit (SDK) on the bluetooth and wifi networks.
In this embodiment, a message sent by any node can quickly reach any other node in the network.
As shown in fig. 5, the present embodiment further includes a Message Bus structure. In the present embodiment, the Message Bus is a Message Bus constructed on the Mesh network of the wireless Mesh network. The functions of publishing messages and subscribing to message volumes are mainly realized.
In this embodiment, the upper layer application can send data to any node on the Mesh through the function of issuing a message. Nodes that subscribe to messages can receive data, and nodes that do not subscribe to messages cannot receive data.
The present embodiment will be described with reference to the following scenarios,
and (3) scene rules: in winter, after the user takes a bath, the air conditioner is automatically turned on, the temperature is set to be 28 ℃ by low wind, and as shown in fig. 6, the execution of the linkage event comprises the following steps:
s1, the user creates a local scene rule in the application program APP, wherein the local scene rule comprises an event initiator and an event handler, and the APP issues the scene rule to the message bus.
S2, each device receives the rule from the message bus, the rule associated with the native device is accepted, and the rule not associated with the native device is discarded.
And S3, the event initiator generates a business event according to the state and the rule fed back by the electric control board and issues the event to a message bus.
And S4, each device receives the event from the message bus, the event concerned by the device is received, and the event not concerned by the device is discarded.
And S5, the event processing party generates an electric control board command to execute the operation according to the event type and the rule.
In summary, in the embodiment, based on the virtual message bus of the Mesh network, the local distributed joint decision is implemented on the basis of the message bus to construct the local linkage scene. The privacy safety of the user can be ensured, and the scene where the user is located can be detected in real time. In addition, no external network and no edge host are needed, and the cost of the external devices such as the household appliances can be reduced.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an event processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not described again after the description is given. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an 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 invention, and as shown in fig. 7, the apparatus includes:
the first receiving module 72 is configured to receive the scenario rule information from the message bus when it is determined that the scenario rule information transmitted on the message bus includes first device information, where the scenario rule information further includes event information to be executed by the first device and the second device in a linkage manner, and second device information of the second device, and both the first device and the second device are connected to the message bus;
a first executing module 74 for executing a first event based on the event information in the scene rule information;
a first generating module 76, configured to generate a second event based on the event information in the scenario rule information if it is determined that the first event is executed;
the first issuing module 78 is configured to issue a second event onto the message bus to instruct the second device to receive the second event from the message bus and execute the second event.
In an exemplary embodiment, the first executing 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 equipment from the event information so as to execute the first event.
In an exemplary embodiment, the first generating module includes:
a first acquisition unit, configured to acquire an execution result of a first electronic control board component in a first device, where the first electronic control board component 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 device from the event information to generate the second event under the condition that the execution result comprises the execution completion of the first event.
In an exemplary embodiment, the first obtaining unit includes:
and the first acquisition subunit is used for acquiring the time length and the environment information of the first event executed by the first electric control board component to obtain an execution result.
Fig. 8 is a block diagram (ii) of the event processing apparatus according to the embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a second receiving module 82, configured to receive the scenario rule information from the message bus when it is determined that the scenario rule information transmitted on the message bus includes second device information, where the scenario rule information further includes event information to be executed by the first device and the second device in a linkage manner, and first device information of the first device, and the first device and the second device are both connected to the message bus;
a third receiving module 84, configured to receive a second event from the message bus based on the scenario rule information, where the second event is generated by the first device;
a second execution module 86 for executing the second event.
In an exemplary embodiment, the second receiving module includes:
a third obtaining unit, configured to obtain event information in the scene rule information;
and the first receiving unit is used for 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.
In an exemplary embodiment, the second executing module includes:
a second determining unit for determining an event type of the second event and execution information of the second event;
a second generating unit for generating an execution instruction 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, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
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 an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In an exemplary embodiment, the processor may be configured to execute the above steps by a computer program.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

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 linkage of first equipment and second equipment information of the second equipment, and the first equipment and the second equipment are both 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 in a case where it is determined that the first event is executed;
issuing the second event 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 executing the first event based on the 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 so as to execute the first event.
3. The method according to claim 1, wherein in a case where it is determined that the first event is executed, generating a second event based on event information in the scenario rule information comprises:
acquiring an execution result of a first electronic control board component in the first device, wherein the first electronic control board component is used for executing the first event;
and under the condition that the execution result comprises the completion of the execution of the first event, determining the second event to be executed by the second device from the event information to generate the second event.
4. The method of claim 3, wherein obtaining the results of the execution of the first electronically controlled board component in the first device comprises:
and acquiring the duration and the environmental information of the first event executed by the first electric control board component to obtain the execution result.
5. 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 second equipment information, wherein the scene rule information also comprises event information to be executed by linkage of first equipment and the second equipment and first equipment information of the first equipment, and the first equipment and the second equipment are both 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;
executing the second event.
6. The method of claim 5, 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 when the linkage relation between the second device and the first device is determined from the event information.
7. The method of claim 5, 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;
sending the execution instruction to a second electronic control board component in the second device to instruct the second electronic control board component to execute the second event.
8. An event processing apparatus, comprising:
the system comprises a first receiving module, a second receiving module and a message bus, wherein 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, the scene rule information further comprises event information to be executed by linkage of first equipment and second equipment information of the second equipment, and the first equipment and the second equipment are both connected with the message bus;
a first executing module, configured to execute a first event based on event information in the scenario rule information;
a first generation module, configured to generate a second event based on event information in the scenario rule information when it is determined that the first event is executed;
and the first issuing module is used for issuing 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.
9. An event processing apparatus, comprising:
the second receiving module is used for receiving the 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 the second equipment and first equipment information of the first equipment, and the first equipment and the second equipment are both connected with the message bus;
a third receiving module, configured to receive a second event from the message bus based on the scenario rule information, where the second event is generated by the first device;
and the second execution module is used for executing the second event.
10. A computer-readable storage medium, in which a computer program is stored, which computer program, when being executed by a processor, carries out the method of any one of claims 1 to 4, or carries out the method of any one of claims 5 to 7.
11. An electronic apparatus comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 4, or to perform the method of any of claims 5 to 7.
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 true CN113485135A (en) 2021-10-08
CN113485135B 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 (7)

* 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
US20190050366A1 (en) * 2017-08-14 2019-02-14 Qualcomm Incorporated Device, event and message parameter association in a multi-drop bus
CN110300042A (en) * 2019-07-24 2019-10-01 珠海太川云社区技术股份有限公司 A kind of bus communication system and communication control method

Patent Citations (7)

* 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
US20190050366A1 (en) * 2017-08-14 2019-02-14 Qualcomm Incorporated Device, event and message parameter association in a multi-drop bus
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
CN113485135B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN105187266B (en) information monitoring method and device
CN103618670A (en) Intelligent gateway and intelligent home system
CN112073471A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN106411667A (en) Intelligent home multi-cloud control method and system based on network chip
CN106713004B (en) Router adaptation method and system
CN104898438A (en) Household electrical appliance control method and apparatus, and terminal
CN114374602B (en) Master control equipment configuration method and device, cloud server and storage medium
CN109842515B (en) Method for multi-device network distribution, server and computer storage medium
CN103944961A (en) Application sharing method, device and system
CN104424036A (en) Synchronous operation method and device of smart terminal
CN112511390B (en) Intelligent household appliance template scene generation method and device, storage medium and electronic device
CN104270188A (en) Beidou satellite communication equipment
CN112511621B (en) Data transmission method and device, storage medium, and electronic device
CN113434255A (en) Virtual equipment creating method and device
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN108449403A (en) A kind of charge control method
CN113485135B (en) Event processing method and device, storage medium and electronic device
CN109474683A (en) A kind of node configuration method and relevant apparatus
CN113132333B (en) Networking login method, household appliance equipment, household appliance system and storage medium
CN106302046B (en) Control method for remote controller and device
CN110188490B (en) Method and device for improving data simulation efficiency, storage medium and electronic device
CN111030925B (en) Multi-gateway communication method and system based on remote procedure call
CN113132332B (en) Networking login method, household electrical appliance system and storage medium
CN114157725A (en) Equipment linkage method and device, server, electronic equipment and storage medium

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