Event notification method, system, server device and computer storage medium

The IoT system optimizes event notification by monitoring continuous events within specified intervals and sending notifications only when predefined rules are met, addressing inefficiencies in existing IoT systems and reducing communication and processing loads.

JP7623364B2Active Publication Date: 2025-01-28BOE TECHNOLOGY GROUP CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022516700
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-09-16
Filing Date
2020-09-14
Publication Date
2025-01-28
Estimated Expiration
2040-09-14

AI Technical Summary

Technical Problem

Existing Internet of Things (IoT) systems face inefficiencies in processing continuous event notifications, leading to increased communication load and processing capacity requirements, especially in scenarios requiring continuous monitoring of data changes, such as water quality or pollution levels, which can cause communication congestion and overload.

Method used

A method and system for IoT event notification that employs a server device to monitor data within a specified time interval, determining whether continuous event notification rules are met, and sends notifications only when these rules are satisfied, thereby reducing unnecessary communication and processing demands.

Benefits of technology

This approach enhances system efficiency by minimizing communication congestion and processing requirements while ensuring timely event notifications for continuous events, such as prolonged water quality deviations or pollution, thus optimizing resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007623364000001
    Figure 0007623364000001
  • Figure 0007623364000002
    Figure 0007623364000002
  • Figure 0007623364000003
    Figure 0007623364000003
Patent Text Reader

Abstract

The present disclosure provides an event notification method, system, server device, and computer storage medium, which includes receiving a subscription request from a subscriber, the subscription request including at least one receiver for receiving event notifications, determining whether a consecutive event notification rule is satisfied within a monitoring time interval, and, if the consecutive event notification rule is satisfied, sending an event notification of the subscription request to the at least one receiver.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the field of Internet of Things, and in particular to an event notification method, system, server device, and computer storage medium. [Background technology]

[0002] With the development of information technology, especially Internet technology, the Internet of Things technology for realizing informatization, remote management control, and intelligence has gradually matured. The Internet of Things uses communication technologies such as local networks and the Internet to connect sensors, controllers, machines, people, and things in a new way, forming connections between people and things, and between things. With the rapid development of the Internet of Things technology in various application fields, more and more devices are connected to the Internet of Things, and various new application fields such as smart home, smart transportation, and smart health have emerged. A terminal device connected to the Internet of Things can obtain data or event notifications by sending a subscription request to a server device. When the subscription conditions are met, the Internet of Things platform can send data or event notifications to the notifier of the subscription request. Summary of the Invention [Means for solving the problem]

[0003] According to one aspect of the present disclosure, an event notification method is provided, comprising the steps of receiving a subscription request from a subscriber, the subscription request including information of at least one recipient for receiving the event notification, determining whether a consecutive event notification rule is satisfied within a monitoring time interval, and if the consecutive event notification rule is satisfied, sending an event notification of the subscription request to the at least one recipient.

[0004] According to some embodiments of the present disclosure, the event notification method further includes a step of acquiring at least one monitoring data within the monitoring time interval, and determining whether a consecutive event notification rule is satisfied includes determining whether each of the at least one monitoring data satisfies the event notification rule.

[0005] According to some embodiments of the present disclosure, the event notification method further includes a step of obtaining at least one monitoring data within the monitoring time interval, and determining whether a continuous event notification rule is satisfied includes determining whether each of the at least one monitoring data satisfies the event notification rule, determining a number of monitoring data that satisfy the event notification rule, and determining that the continuous event notification rule is satisfied if the number is greater than or equal to a count threshold, the count threshold being determined based on the number of monitoring data received within the monitoring time interval.

[0006] According to some embodiments of the present disclosure, the event notification method further includes a step of obtaining at least one monitoring data within the monitoring time interval, and determining whether a continuous event notification rule is satisfied includes determining whether each of the at least one monitoring data satisfies the event notification rule, determining a length of time that satisfies the event notification rule based on the time interval of the monitoring data that satisfies the event notification rule, and determining that the continuous event notification rule is satisfied if the proportion of the length of time and the monitoring time interval is greater than or equal to a time threshold, and the time threshold is less than or equal to 1.

[0007] According to some embodiments of the present disclosure, the event notification rule includes any one of the following: the monitoring data is greater than a monitoring threshold, the monitoring data is equal to a monitoring threshold, the monitoring data is less than a monitoring threshold, the monitoring data is greater than or equal to a monitoring threshold, and the monitoring data is less than or equal to a monitoring threshold.

[0008] According to some embodiments of the present disclosure, the event notification method further includes a step of acquiring at least one monitoring data within the monitoring time interval, and determining whether a continuous event notification rule is satisfied includes, if it is determined that the event notification rule is satisfied, determining whether a monitoring data rule is satisfied, acquiring a monitoring result, and determining whether the continuous event notification rule is satisfied based on the monitoring result.

[0009] According to some embodiments of the present disclosure, the event notification rules include at least one of: updating attributes of a subscribed resource, creating a sub-resource of a subscribed resource, deleting a sub-resource of a subscribed resource, getting a content instance sub-resource of a subscribed container resource, receiving an operation request of a requester, and receiving an operation request of a particular type. The monitoring data rules include any one of: the monitoring data is greater than a monitoring threshold, the monitoring data is equal to a monitoring threshold, the monitoring data is less than a monitoring threshold, the monitoring data is greater than or equal to a monitoring threshold, and the monitoring data is less than or equal to a monitoring threshold.

[0010] According to some embodiments of the present disclosure, determining whether a monitoring data rule is satisfied and obtaining a monitoring result includes determining whether each of the at least one monitoring data satisfies a monitoring data rule, and if the monitoring data satisfies the monitoring data rule, obtaining a monitoring result that satisfies the monitoring data rule, and if the monitoring data does not satisfy the monitoring data rule, obtaining a monitoring result that does not satisfy the monitoring data rule.

[0011] According to some embodiments of the present disclosure, determining whether a continuous event notification rule is satisfied includes determining a number of monitoring results that satisfy a monitoring data rule, and determining that the continuous event notification rule is satisfied if the number of monitoring results that satisfy the monitoring data rule is less than or equal to a count threshold, the count threshold being determined based on the number of monitoring data received within the monitoring time interval.

[0012] According to some embodiments of the present disclosure, determining whether a continuous event notification rule is satisfied includes determining a length of time corresponding to a monitoring result that satisfies a monitoring data rule, and determining that the continuous event notification rule is satisfied if a ratio of the length of time to the monitoring time interval is greater than or equal to a time threshold, wherein the time threshold is less than or equal to 1.

[0013] According to some embodiments of the present disclosure, the method further includes determining a start point and an end point of a monitoring time interval, determining the start point as a point at which an event notification rule is satisfied, and determining the end point based on the monitoring time interval and the determined start point.

[0014] According to some embodiments of the present disclosure, the method further includes a step of determining a start point and an end point of a monitoring time interval, and determining the end point as the point at which an event notification rule is satisfied, and determining the start point based on the monitoring time interval and the determined end point.

[0015] According to some embodiments of the present disclosure, the method further includes a step of determining a start point and an end point of a monitoring time interval, determining a point that satisfies an event notification rule as an intermediate point, and determining the start point and end point based on the monitoring time interval and the determined intermediate point, wherein the intermediate point is between the start point and the end point.

[0016] According to some embodiments of the present disclosure, the subscription request further includes the monitoring time interval, and the event notification method further includes a step of creating a subscription resource, the subscription resource including a monitoring time interval attribute for determining the monitoring time interval, a continuous event notification rule attribute for determining whether to send an event notification to the at least one receiver, and an event notification list attribute for storing address information of the at least one receiver.

[0017] According to another aspect of the present disclosure, there is further provided a server device including a transceiver and a processor, wherein the transceiver is configured to receive a subscription request from a subscribing device, the subscription request including information of at least one recipient for receiving an event notification, and the processor is configured to determine whether a consecutive event notification rule is satisfied within a monitoring time interval, and the transceiver is further configured to send an event notification of the subscription request to the at least one recipient if the consecutive event notification rule is satisfied.

[0018] According to yet another aspect of the present disclosure, there is further provided an event notification system, comprising: a subscribing device configured to send a subscription request to a server device, the subscription request including at least one receiver for receiving an event notification; a server device configured to receive the subscription request from the subscribing device, obtain at least one monitoring data, determine whether a continuous event notification rule is satisfied within a monitoring time interval, and if the continuous event notification rule is satisfied, send an event notification of the subscription request to the at least one receiver; and a monitoring device configured to send the monitoring data to the server device.

[0019] According to yet another aspect of the present disclosure, there is further provided a computer storage medium having computer readable code stored therein, the computer readable code, when executed by one or more processors, causing the one or more processors to perform the event notification method as described above.

[0020] In order to more clearly describe the technical solutions in the embodiments of the present disclosure or the prior art, the following briefly introduces additional drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can also obtain other drawings from these drawings without creative efforts. [Brief description of the drawings]

[0021] [Figure 1A] FIG. 1A shows a process flow chart of an instantaneous event notification. [Figure 1B] FIG. 1B shows a time flow chart of an instantaneous event notification. [Diagram 2] FIG. 2 shows a flow chart of an event notification method according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 illustrates a time flow diagram for determining whether each monitoring data satisfies an event notification rule according to an embodiment of the present disclosure. [Figure 4] FIG. 4 illustrates a time flow chart for determining the number of monitoring data that satisfy an event notification rule according to an embodiment of the present disclosure. [Diagram 5] FIG. 5 illustrates a time flow diagram for determining the length of time to satisfy an event notification rule according to an embodiment of the present disclosure. [Figure 6] FIG. 6 illustrates a time flow diagram for determining the number of monitoring results that satisfy a monitoring data rule according to an embodiment of the present disclosure. [Figure 7] FIG. 7 illustrates a time flow diagram for determining a length of time corresponding to a monitoring result that satisfies a monitoring data rule according to an embodiment of the present disclosure. [Figure 8] FIG. 8 illustrates a time flow diagram for determining start and end points according to an embodiment of the present disclosure. [Figure 9] FIG. 9 illustrates a time flow diagram for determining start and end points according to an embodiment of the present disclosure. [Figure 10]FIG. 10 illustrates a time flow diagram for determining start and end points according to an embodiment of the present disclosure. [Figure 11] FIG. 11 illustrates a schematic diagram of a resource structure of a subscription resource according to an embodiment of the present disclosure. [Figure 12A] FIG. 12A shows a system schematic according to one embodiment of the present disclosure. [Figure 12B] FIG. 12B illustrates a process flowchart of continuous event notification according to one embodiment of the present disclosure. [Figure 13] FIG. 13 illustrates a schematic block diagram of a server device according to an embodiment of the present disclosure. [Figure 14] FIG. 14 illustrates a schematic block diagram of an event notification system according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022] The technical solutions of the embodiments of the present disclosure will be described below clearly and completely in conjunction with the accompanying drawings of the embodiments of the present disclosure. Obviously, the described embodiments are not all the embodiments, but are a part of the embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present disclosure.

[0023] The words "first", "second" and similar used in this disclosure do not denote any order, quantity, or importance, but are used only to distinguish different components. Similarly, similar words such as "comprise" or "contain" mean that the element or thing appearing before the word covers the elements or things listed after the word and their equivalents, but does not exclude other elements or things. Similar words such as "connect" or "couple" are not limited to physical or mechanical connections, but may include connecting means such as electrical connections. For example, the electrical connections may be direct connections or indirect connections.

[0024] In this disclosure, flowcharts are used to describe steps of methods according to embodiments of the disclosure. It should be understood that the preceding or following steps are not necessarily performed in exact order. Rather, various steps may be processed in reverse order or simultaneously. Also, other actions may be added to these steps, or one or more steps may be deleted from these steps.

[0025] As an extension of the Internet, the Internet of Things can include the Internet and all resources on the Internet, and is compatible with applications within the Internet. With the continuous expansion of the application of the Internet of Things in various fields, various new application fields have emerged, such as smart home, smart transportation, smart health, and smart water quality monitoring.

[0026] More and more terminal devices are connected to the platform of the Internet of Things. The terminal devices may be, for example, smoke detectors, fire alarms, various household appliances, water quality monitoring devices, and various types of sensing devices, execution devices, etc. The platform of the Internet of Things may be, for example, implemented as a general service entity, or may be called a server device. The terminal devices may connect to the server device by sending registration information to the server device, and the server device manages the terminal devices connected thereto. The terminal devices connected to the server device may also perform operations such as data transmission and information interaction with the server device. It should be noted that the terminal devices described in this specification may be various types of terminal devices in the field of the Internet of Things, or may be software modules in devices, etc.

[0027] Some terminal devices (e.g., as subscribing devices) can subscribe to information, data, etc. from other terminal devices (e.g., as monitoring devices) by sending a subscription request to the server device. The subscribing devices can also request data, operations, etc. from the server device, but this is not limited thereto.

[0028] The subscription request may include a subscription condition such that if the subscription condition is met (e.g., a smoke detector goes off), the server device will send an event notification. The subscription condition may be referred to as an event notification rule, i.e., if the event notification rule is determined to be met, the server device will send an event notification.

[0029] The above method of event notification may be called instantaneous event notification. FIG. 1A shows a processing flowchart of instantaneous event notification. First, the subscribing device and the monitoring device are connected with the server device by sending a registration request to the server device. The subscribing device can send a subscription request to the server device, and the subscription request may include an event notification rule. Taking the monitoring of water quality change as an example, the monitoring device may specifically be a water quality monitoring device, and the event notification rule may be that the water quality data monitored by the water quality monitoring device is greater than a preset threshold. The water quality monitoring device continuously sends the detected water quality data to the server device, and the server device can judge whether the received water quality data meets the event notification rule, and if it is determined that the water quality data is greater than the preset threshold (i.e., meets the event notification rule), the server device sends an event notification.

[0030] Figure 1B shows a time flow chart of real-time event notification. Referring to Figure 1A, after the server device receives water quality data from the monitoring device, it immediately judges whether the water quality data meets the event notification rule, and sends the event notification after determining that the event notification rule is met. Therefore, for an application scenario such as water quality monitoring that requires continuous monitoring of water quality data, the monitoring device continuously sends data to the server device, and the server device continuously sends event notifications to the subscribing devices.

[0031] In addition, the subscribing device needs to monitor the water quality data within a predetermined period and make a judgment based on the water quality data within the period. For example, in the above example, if the water quality data exceeds the preset threshold, it will notify the subscribing device. However, in practical application scenarios, the causes of the water quality data exceeding the preset threshold may include, for example, domestic wastewater and industrial wastewater. Both of the above reasons may cause the water quality data to exceed the preset threshold, or the water quality may be called exceeding the standard. Usually, the discharge time of domestic wastewater is short and the discharge time of industrial wastewater is long, but the subscribing device may just want to strengthen the governance of the industrial wastewater. Within a predetermined period, the subscribing device will continue to receive event notifications from the server device, and judge whether it is domestic wastewater or industrial wastewater based on the above notifications. For example, if the water quality data within the monitoring cycle continues to exceed the standard, i.e., the water quality data continues to exceed the preset threshold, it will confirm that the exceeding of the water quality standard is caused by the enterprise's wastewater, and handle the water pollution event.

[0032] Generally, in practical applications, it is necessary to monitor continuous data changes (or state changes), such as water quality data over a period of time, and in the above-described implementation method for instant event notification described with reference to Figures 1A and 1B, monitoring continuous data changes by a subscribing device requires continuous reception of event notifications, which increases the communication load between devices and may cause communication congestion. Furthermore, monitoring and processing continuous data changes by a subscribing device also increases the requirements for the processing power of the subscribing device.

[0033] Therefore, it is necessary to provide a monitoring mechanism that applies to continuous events (events that occur continuously), which may be, for example, continuous changes in data, continuous changes in state, etc. For example, water quality exceeding a standard for 10 minutes, air pollution exceeding a standard for 10 minutes, noise pollution lasting for more than 20 minutes, a tap remaining open for 5 minutes, a door remaining open for more than 5 minutes, etc.

[0034] The present disclosure provides an event notification method, in which a server device monitors continuous events, and when it is determined that the received data meets a continuous event notification rule, sends an event notification to a subscribing device, which can improve the processing efficiency of an Internet of Things system, reduce the requirements for the processing capacity of the subscribing device, avoid communication load and communication congestion between devices, and reduce the number of event notifications.

[0035] Specifically, Figure 2 shows a flowchart of an event notification method according to an embodiment of the present disclosure. For example, the event notification method shown in Figure 2 can be performed by a server device in an Internet of Things field.

[0036] First, in step S101, a subscription request is received from a subscriber, and the subscription request includes at least one receiver for receiving event notification. The subscriber may be a terminal device connected to a server device, or an application connected to a server, for example, when a certain data is required, the subscribing device can send a subscription request to the server device. The subscription request may include subscribed data, events, or operations.

[0037] The subscriber may be one or more, that is, subscription requests can be sent from multiple subscribers to the server device. The receiver may be a receiving device for receiving event notifications, or a receiving application for receiving event notifications. After the server device receives the subscription request, it obtains list information of all receivers, and groups the receivers according to the receiver's type, level, content of the subscription request, etc., to send the event notification more accurately. Note that the subscriber and the receiver may be the same device or application, or different devices or applications. For example, the subscription device 1 can send a subscription request to the server device, and the subscription request includes receiving device 1, receiving device 2, and receiving the event notification when the subscription device 1 as the receiver satisfies the subscription condition.

[0038] Next, in step S102, it is determined whether a continuous event notification rule is satisfied within a monitoring time interval. The monitoring time interval may be a continuous period such as one hour, and the time length of the monitoring time interval can be set according to specific application requirements. The step of determining whether a continuous event notification rule is satisfied will be described in detail below.

[0039] Next, in step S103, if the continuous event notification rule is satisfied, an event notification of the subscription request is sent to the at least one receiving side. For example, if the server device determines that the continuous event notification rule is satisfied, it can send an event notification to the receiving device 1, receiving device 2 and subscribing device 1 to monitor continuous events.

[0040] According to some embodiments of the present disclosure, the event notification method may further include a step of acquiring at least one monitoring data within the monitoring time interval. For example, the monitoring device may be a water quality monitoring device, and may periodically transmit water quality data to the server device as the monitoring data. For example, the water quality monitoring device transmits the monitored water quality data to the server device every 10 minutes. Therefore, if the monitoring time interval is one hour, the server device may receive six pieces of water quality data from the water quality monitoring device within the monitoring time interval.

[0041] According to an example of the present disclosure, determining whether a continuous event notification rule is satisfied may include determining whether each of the at least one monitoring data satisfies an event notification rule. The event notification rule may include any one of the following: the monitoring data is greater than a monitoring threshold, the monitoring data is equal to a monitoring threshold, the monitoring data is less than a monitoring threshold, the monitoring data is greater than or equal to a monitoring threshold, and the monitoring data is less than or equal to a monitoring threshold. In addition, the event notification rule may be set according to actual application requirements, and is not limited thereto.

[0042] FIG. 3 shows a time flow chart of determining that each monitoring data satisfies an event notification rule according to an embodiment of the present disclosure. Taking the above water quality monitoring as an example, the monitoring time interval is a period from t1 to t2, which may be, for example, one hour. Within one hour, the server device receives six pieces of water quality data from the water quality monitoring device. Determining whether the consecutive event notification rule is satisfied may include determining that the received six pieces of water quality data satisfy the event notification rule. That is, if the server device determines that each of the received six pieces of water quality data satisfies the event notification rule (for example, greater than a monitoring threshold), it determines that the consecutive event notification rule is satisfied, and can send an event notification to the receiving side.

[0043] According to another example of the present disclosure, determining whether a consecutive event notification rule is satisfied may include determining whether each of the at least one monitoring data satisfies an event notification rule, determining a number of monitoring data that satisfy the event notification rule, and determining that the consecutive event notification rule is satisfied if the number is equal to or greater than a count threshold. According to an embodiment of the present disclosure, the count threshold may be determined based on a number of monitoring data received within the monitoring time interval. Exemplarily, if the number of monitoring data received within the monitoring time interval is 6, the count threshold may be set to different values ​​or the same value, such as 5, 4, 3, or any value from 1 to 6, depending on an application scenario.

[0044] FIG. 4 shows a time flow chart of determining the number of monitoring data that meets the event notification rule according to an embodiment of the present disclosure. Taking the above water quality monitoring as an example, within the monitoring time interval (1 hour), the server device receives six water quality data from the water quality monitoring device, performs judgment on each water quality data, determines whether it meets the event notification rule, for example, whether it is greater than the monitoring threshold, and then determines the number of water quality data (i.e., monitoring data) that meets the event notification rule, which may be five, for example. Since the number is equal to or greater than the count threshold of five, it determines that the continuous event notification rule is met, and then sends an event notification to the receiving side. According to an embodiment of the present disclosure, the event notification may be a message sent from the server device to one or more receiving sides, and the message may be associated with the subscription request. The receiving side determines that the continuous event notification rule in the subscription request is met based on the received message, for example, the water quality data continues to exceed the monitoring threshold within the monitoring time interval. The receiving side can then perform further processing operations, such as identifying the cause of water pollution and purifying water.

[0045] According to another example of the present disclosure, determining whether a continuous event notification rule is satisfied may include: determining whether each of the at least one monitoring data satisfies an event notification rule, determining a length of time that satisfies the event notification rule based on a time interval of the monitoring data that satisfies the event notification rule, and determining that the continuous event notification rule is satisfied if a ratio of the length of time and the monitoring time interval is less than or equal to a time threshold, wherein the time threshold is less than or equal to 1. Exemplarily, the time threshold may be set to 5 / 6, and it may be determined that the continuous event notification rule is satisfied if the monitoring time interval is 1 hour and the length of time that satisfies the event notification rule is greater than or equal to 50 minutes.

[0046] FIG. 5 shows a time flow chart for determining the length of time to satisfy the event notification rule according to an embodiment of the present disclosure. Taking the above water quality monitoring as an example, within the monitoring time interval (1 hour), the server device receives six pieces of water quality data from the water quality monitoring device, makes a judgment for each piece of water quality data, determines whether they satisfy the event notification rule, and then determines the length of time of the event notification rule. For example, if it is determined that the number of pieces of water quality data (i.e., monitoring data) that satisfy the event notification rule is 5, it can be determined that the length of time to satisfy the event notification rule is 50 minutes based on the fact that the water quality monitoring device transmits water quality data to the server device every 10 minutes, i.e., the time interval for obtaining water quality data by the server device is 10 minutes. Therefore, the proportion of the length of time (50 minutes) to the monitoring time interval (1 hour, i.e., 60 minutes) is 5 / 6, i.e., if it is equal to or greater than the time threshold, it is determined that the consecutive event notification rule is satisfied, and an event notification is sent to the receiving side. There are multiple nodes (monitoring data time points) on a timeline, and by determining whether the monitoring data of each node satisfies the event notification rule, it is possible to know whether the monitoring data corresponding to each node satisfies the event notification rule, and the length corresponding to adjacent monitoring data that satisfies the event notification rule is a "unit of time length that satisfies the event notification rule", and the sum of all time length units that satisfy the event notification rule is the length of time that satisfies the event notification rule.

[0047] As an example, the monitoring time interval t can also be divided into multiple periods, such as three periods ts1, ts2, and ts3 (not shown), and one or more monitoring data acquired within each period can be judged, i.e., whether the monitoring data satisfies the event notification rule. The number of monitoring data acquired within each period is associated with the length of the period (e.g., 20 minutes) and the time interval (e.g., 10 minutes) for the monitoring data to be transmitted by the monitoring device. For example, taking three periods ts1, ts2, and ts3 as an example, the judgment result can include that the monitoring data acquired within the ts1 period satisfies the event notification rule, that the monitoring data acquired within the ts2 period does not satisfy the event notification rule, and that the monitoring data acquired within the ts3 period satisfies the event notification rule, thereby determining that the length of time that satisfies the event notification rule is ts1+ts3, and further determining the proportion between the length of time ts1+ts3 and the monitoring time interval t, and determining that the consecutive event notification rule is satisfied if the value of the proportion is equal to or greater than a time threshold.

[0048] In the example of determining whether the continuous event notification rule is satisfied as described above with reference to FIGS. 3 to 5, whether the continuous event notification rule is satisfied is directly determined for the value of the monitoring data, for example, whether the value of the monitoring data is greater than a monitoring threshold, and whether the determination result of the monitoring data satisfies the continuous event notification rule is determined based on the event notification rule. Therefore, the start point of the monitoring time interval may be the time when the server device receives the monitoring data, and from that time, the water quality data within, for example, one hour is continuously monitored to determine whether the continuous event notification rule is satisfied. If it is determined that the continuous event notification rule is satisfied, the event notification is sent to the receiving side. In the above water quality monitoring example, after the subscribing device as the receiving side receives the event notification, it can determine that it is factory wastewater and perform further processing operations, and the subscribing device does not need to make a judgment of "whether the water quality within the monitoring period continues to exceed the standard" shown in FIG. 1A. While realizing continuous event monitoring, the requirements for the processing capacity of the subscribing device are reduced, the communication pressure between devices is reduced, and system efficiency is improved. In addition, notification interference to the subscribing device due to continuous reception of event notifications can be avoided.

[0049] According to a further embodiment of the present disclosure, determining whether a continuous event notification rule is satisfied may include: determining whether the acquired at least one monitoring data satisfies a monitoring data rule when determining that the event notification rule is satisfied; acquiring a monitoring result; and determining whether the continuous event notification rule is satisfied based on the monitoring result. Thus, in this embodiment, the event notification method may include acquiring at least one monitoring data, for example, receiving at least one monitoring data from a monitoring device. For example, the monitoring device may be a water quality monitoring device, and may periodically transmit water quality data as the monitoring data to a server device. The water quality monitoring device transmits the monitored water quality data to the server device every 10 minutes. Thus, if the monitoring time interval is one hour, the server device may receive six pieces of water quality data from the water quality monitoring device within the monitoring time interval.

[0050] In the above embodiments of the present disclosure, the event notification rules may include at least one of: updating attributes of a subscribed resource; creating a sub-resource of a subscribed resource; deleting a sub-resource of a subscribed resource; obtaining a content instance sub-resource of a subscribed container resource; receiving an operation request from a requester; and receiving a particular type of operation request (including a create request, an update request, a delete request, and a get request).

[0051] For example, after receiving the monitoring data from the monitoring device, the server device can create a content instance sub-resource in the subscribed resource (monitoring data resource container) and perform operations such as storing the data. In the above embodiment, determining whether the event notification rule is satisfied does not involve analyzing and judging the content of the monitoring data (e.g., whether the data is greater than a monitoring threshold). That is, the event notification rule may be a judgment rule other than the content. For example, the event notification rule may be receiving an operation request from a requester, that is, receiving an operation request from a specific requester satisfies the event notification rule. For example, the event notification rule may be updating an attribute of the subscribed resource, that is, updating an attribute of the subscribed resource satisfies the event notification rule. For example, the event notification rule may be deleting a sub-resource of the subscribed resource, that is, deleting a sub-resource of the subscribed resource satisfies the event notification rule. For example, the event notification rule may be obtaining a content instance sub-resource of the subscribed container resource, that is, obtaining a sub-resource of the subscribed resource satisfies the event notification rule. Also, for example, the event notification rule may be to receive a particular type of operation request (including a create request, an update request, a delete request, and a get request), i.e., when the server receives a request of the specified type, the event notification rule is satisfied.

[0052] According to an embodiment of the present disclosure, determining whether a monitoring data rule is satisfied and obtaining a monitoring result may further include, for each of the at least one monitoring data, determining whether the monitoring data satisfies the monitoring data rule, obtaining a monitoring result that satisfies the monitoring data rule if the monitoring data satisfies the monitoring data rule, and obtaining a monitoring result that does not satisfy the monitoring data rule if the monitoring data does not satisfy the monitoring data rule.

[0053] In one example of the present disclosure, determining whether a continuous event notification rule is satisfied may include determining a number of monitoring results that satisfy a monitoring data rule, and determining that the continuous event notification rule is satisfied if the number of monitoring results that satisfy the monitoring data rule is equal to or greater than a count threshold, where the count threshold is determined based on the number of monitoring data received within the monitoring time interval. Exemplarily, if the number of monitoring data received within the monitoring time interval is 6, the count threshold may be set to 5.

[0054] FIG. 6 illustrates a time flow chart for determining the number of monitoring results that satisfy the monitoring data rule according to an embodiment of the present disclosure. First, determine that an event notification rule is satisfied at time t1, for example, receive a periodic monitoring request from the subscribing device. Then, determine whether each monitoring data received within a monitoring time interval indicated by t1 and t2 satisfies the monitoring data rule to obtain a monitoring result. Then, the number of monitoring results that satisfy the monitoring data rule can be determined, for example, six. Thus, it can be determined that the number of monitoring results that satisfy the monitoring data rule is greater than a count threshold, i.e., the consecutive event notification rule is satisfied, and an event notification can be sent to the receiving side.

[0055] According to another example of the present disclosure, determining whether a continuous event notification rule is satisfied includes determining a length of time corresponding to the monitoring result that satisfies a monitoring data rule, and determining that the continuous event notification rule is satisfied if a ratio of the length of time to the monitoring time interval is equal to or greater than a time threshold, wherein the time threshold is equal to or less than 1. Exemplarily, the time threshold may be set to 5 / 6, and when the monitoring time interval is 1 hour, and the length of time that satisfies the event notification rule is equal to or greater than 50 minutes, it may be determined that the continuous event notification rule is satisfied.

[0056] FIG. 7 shows a time flow chart for determining the length of time corresponding to the monitoring result that satisfies the monitoring data rule according to an embodiment of the present disclosure. Similarly, it can be determined that the event notification rule is satisfied at time t1, for example, by receiving a periodic monitoring request from the subscribing device. Then, it determines whether each monitoring data received within the monitoring time interval satisfies the monitoring data rule and obtains the monitoring result. Taking the above water quality monitoring as an example, within the monitoring time interval (1 hour), the server device receives six water quality data from the water quality monitoring device, makes a judgment for each water quality data, determines whether it satisfies the monitoring data rule, and determines the length of time that the monitoring data rule is satisfied. For example, if it is determined that the number of monitoring data that satisfies the monitoring data rule is five, it can be determined that the length of time that the monitoring data rule is satisfied is 50 minutes based on the water quality monitoring device by sending water quality data to the server device every 10 minutes. Therefore, the proportion of the time length (50 minutes) to the monitoring time interval (1 hour, i.e., 60 minutes) is 5 / 6, i.e., greater than or equal to the time threshold, which determines that the continuous event notification rule is satisfied, and an event notification can be sent to the receiving side.

[0057] According to an embodiment of the present disclosure, the event notification method may further include determining a start time and an end time of a monitoring time interval.

[0058] 8 shows a time flow chart for determining a start time and an end time according to an embodiment of the present disclosure. As an example, the start time t1 can be determined as the time when an event notification rule is satisfied, and the end time t2 is determined based on the monitoring time interval (e.g., 1 hour) and the determined start time t1.

[0059] 9 shows a time flow chart for determining a start time and an end time according to an embodiment of the present disclosure. As an example, the time when an event notification rule is satisfied can be determined as the end time t2, and the start time t1 is determined based on the monitoring time interval (e.g., 1 hour) and the determined end time t2.

[0060] FIG. 10 shows a time flow chart for determining a start time and an end time according to an embodiment of the present disclosure. As an example, the time when the event notification rule is satisfied can be determined as the intermediate time t3. Then, the start time t1 and the end time t2 can be determined based on the monitoring time interval (e.g., 1 hour) and the determined intermediate time t3, and the intermediate time is between the start time and the end time. As shown in FIG. 10, the intermediate time t3 is between the start time and the end time. For example, the time interval 30 minutes before and after the time t3 when the event notification rule is satisfied can be determined as the monitoring time interval. Then, the server device judges the monitoring data received within this monitoring time interval, for example, determines whether each monitoring data satisfies the monitoring data rule, determines the number of monitoring results that satisfy the monitoring data rule, and determines whether the consecutive event notification rule is satisfied based on a set count threshold. If it is determined that the consecutive event notification rule is satisfied, it sends an event notification to the receiving side.

[0061] According to an embodiment of the present disclosure, the subscription request may include the monitoring time interval. That is, the length of time of the monitoring time interval is provided by the subscribing device to the server device in the subscription request. For example, the subscribing device can set the monitoring time interval of the subscription request, for example, 2 days, according to actual application requirements. The monitoring time interval can also be set by the server device, but is not limited thereto.

[0062] According to an embodiment of the present disclosure, the event notification method may further include creating a subscription resource. FIG. 11 illustrates a resource structure schematic diagram of a subscription resource according to an embodiment of the present disclosure. As shown in FIG. 11, the subscription resource includes multiple attributes, for example, a monitoring time interval attribute for determining the monitoring time interval, a continuous event notification rule attribute for determining whether to send an event notification to the at least one receiver, and an event notification list attribute for storing address information of the at least one receiver. The server device can implement the event notification method according to the present disclosure based on the configured subscription resource. It should be noted that the subscription resource may include other attributes for realizing other functions, but are not limited here.

[0063] Fig. 12A shows a schematic diagram of a system according to an embodiment of the present disclosure, and Fig. 12B shows a processing flowchart of continuous event notification according to an embodiment of the present disclosure. Hereinafter, the overall flow of performing event notification by the event notification method of the present disclosure will be described with reference to Figs. 12A and 12B.

[0064] As shown in Figure 12A, taking the smart water service application as an example, a sensing device, an execution device and a smart water service application can connect to a smart water service platform by sending a registration request, the sensing device connects with a monitoring device, the smart water service application connects with a subscription device, and the smart water service platform can be used as a server device.

[0065] As shown in Fig. 12B, the subscribing device and the monitoring device each send a registration request to the server device and receive a registration response from the server device, thereby connecting to the server device, and the server device manages the devices connected thereto. The number of the monitoring devices may be one or more, and is not limited here.

[0066] The subscribing device can then send a subscription request, including the continuous event notification rule and the monitoring time interval, to the server device. For example, as shown in FIG. 11, in response to the received subscription request, the server device can create a subscription resource.

[0067] Thereafter, during the monitoring time interval, the monitoring device may continuously send data to the server device in the form of a data request, and receive a data request response returned from the server device. For example, the server device may determine that a continuous event notification rule is satisfied if it determines that each piece of monitoring data during the monitoring time interval satisfies the event notification rule. Then, the server device may send an event notification to a subscribing device. After receiving the event notification, the subscribing device may process the notified water pollution event. For example, in response to the received event notification, the smart water service application shown in FIG. 12A may send a control command to an executing device via a smart water service platform.

[0068] The above describes the event notification method provided by the present disclosure with reference to specific embodiments, in which within a monitoring time interval, a server device determines whether a continuous event notification rule is satisfied, and if the continuous event notification rule is satisfied, an event notification is sent to a receiving side. The event notification method according to the embodiment of the present disclosure can meet the application requirements for monitoring continuous events, improve system efficiency, reduce the requirements for the processing power of the subscribing device, and reduce the communication pressure between devices. In addition, it can avoid notification interference to the subscribing device caused by continuously receiving the event notification.

[0069] According to an embodiment of the present disclosure, a server device is further provided. FIG. 13 shows a schematic block diagram of a server device according to an embodiment of the present disclosure. The server device 100 may include a transceiver 101 and a processor 102. The transceiver 101 may be configured to receive a subscription request from a subscribing device, the subscription request including at least one receiver for receiving an event notification. The processor 102 may be configured to determine whether a continuous event notification rule is satisfied within a monitoring time interval. The processor 102 may also be configured to instruct the transceiver 101 to transmit an event notification of the subscription request to the at least one receiver if the continuous event notification rule is satisfied. The transceiver 101 is further configured to transmit an event notification of the subscription request to the at least one receiver if the continuous event notification rule is satisfied.

[0070] Preferably, the server device 100 may further be provided with an internal or external memory for storing resources created for the terminal device and related instructions, which, when executed by the processor 102, realize the steps of the above-mentioned event notification method.

[0071] According to an embodiment of the present disclosure, there is further provided an event notification system. Figure 14 shows a schematic diagram of an event notification system according to an embodiment of the present disclosure. The event notification system 200 may include a subscribing device 201 and a server device 202. The subscribing device 201 is configured to send a subscription request to the server device 202, the subscription request including at least one receiver for receiving an event notification. According to an embodiment of the present disclosure, the at least one receiver may include the subscribing device 201 or another device other than the subscribing device 201.

[0072] The server device 202 may be configured to receive a subscription request from a subscribing device, determine whether a continuous event notification rule is satisfied within a monitoring time interval, and if the continuous event notification rule is satisfied, send an event notification of the subscription request to the at least one recipient.

[0073] According to an embodiment of the present disclosure, the event notification system 200 may further include a monitoring device 203. The monitoring device 203 may be configured to transmit monitoring data to the server device 202. The server device 202 may be configured to receive at least one monitoring data from the monitoring device within the monitoring time interval.

[0074] According to an embodiment of the present disclosure, a computer storage medium is further provided. The computer storage medium has computer readable code stored therein, and when the computer readable code is executed by one or more processors, the above event notification method is executed, which is not repeated here. The computer storage medium may be any available storage medium accessible by a computer. For example, the computer readable storage medium may include, but is not limited to, volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read only memory (ROM), hard disk, flash memory, etc. Or, the computer storage medium may be any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.

[0075] Those skilled in the art will appreciate that various modifications and improvements to what is disclosed in this disclosure are possible. For example, the various devices or components described above may be implemented in hardware, software, firmware, or a combination of some or all of the three.

[0076] Additionally, although the disclosure makes various references to particular elements in systems according to embodiments of the disclosure, any number of different elements may be used and executed on the client and / or server, and the elements are merely exemplary and different elements may be used for different aspects of the systems and methods.

[0077] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art. It should also be understood that terms as defined in ordinary dictionaries should be interpreted to have a meaning consistent with the meaning in the context of the relevant art, and should not be interpreted in an idealized or highly formalized sense unless expressly defined herein.

[0078] The above description is an explanation of the present disclosure and should not be considered as limiting the invention. Although several exemplary embodiments of the present disclosure have been described, those skilled in the art will readily appreciate that many modifications of the exemplary embodiments are possible without departing from the novel teachings and advantages of the present disclosure. Accordingly, all such modifications are intended to be included within the scope of the present disclosure as defined by the claims. The above is an explanation of the present disclosure and should not be considered as being limited to the specific embodiments disclosed, and modifications to the disclosed embodiments as well as other embodiments are intended to be within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents.

[0079] This application claims priority to a Chinese patent application entitled “Event Notification Method, System, Server Device, and Computer Storage Medium” filed on September 16, 2019, bearing application number 201910872383.4, the entire contents of which are hereby incorporated by reference into this application.

[0080] 100 Server Devices 101 Walkie-talkie 102 processors 200 Event Notification System 201 Subscription Device 202 Server Device 203 Monitoring equipment

Claims

1. receiving a subscription request from a subscriber, the subscription request including at least one receiver for receiving event notifications; determining whether a consecutive event notification rule is satisfied within a monitoring time interval; if the successive event notification rules are satisfied, sending an event notification of the subscription request to the at least one recipient; acquiring at least one monitoring data item within the monitoring time interval; The step of determining whether a consecutive event notification rule is satisfied includes: (a) determining whether each of the at least one monitoring data satisfies an event notification rule, determining a number of monitoring data that satisfy the event notification rule, and determining that a consecutive event notification rule is satisfied if the number is equal to or greater than a count threshold, the count threshold being determined based on a number of monitoring data received within the monitoring time interval; or (b) determining whether each of the at least one monitoring data satisfies an event notification rule; determining a length of time that satisfies the event notification rule based on a time interval of the monitoring data that satisfies the event notification rule; and determining that a consecutive event notification rule is satisfied if a ratio of the length of time to the monitoring time interval is equal to or greater than a time threshold, wherein the time threshold is equal to or less than 1. Event notification method.

2. The event notification rule includes: the monitoring data is greater than a monitoring threshold; and the monitoring data being equal to a monitoring threshold; the monitoring data is less than a monitoring threshold; the monitoring data is equal to or greater than a monitoring threshold; The event notification method according to claim 1 , further comprising any one of: the monitoring data being equal to or less than a monitoring threshold.

3. The subscription request further includes the monitoring time interval, The event notification method further includes creating a subscription resource; The subscription resource is: a monitoring time interval attribute for determining the monitoring time interval; a continuous event notification rule attribute for determining whether to send an event notification to the at least one recipient; and an event notification list attribute for storing address information of said at least one recipient.

4. A method for providing a subscription service comprising: receiving a subscription request from a subscriber, the subscription request including at least one receiver for receiving event notifications; determining whether a consecutive event notification rule is satisfied within a monitoring time interval; sending an event notification of the subscription request to the at least one recipient if the successive event notification rules are satisfied; The method further includes the step of acquiring at least one monitoring data within the monitoring time interval; The step of determining whether a consecutive event notification rule is satisfied includes: if it is determined that an event notification rule is satisfied, determining whether the at least one monitoring data satisfies a monitoring data rule to obtain a monitoring result; determining whether the consecutive event notification rule is satisfied based on the monitoring result; determining a start and end time of the monitoring time interval based on when the event notification rule is satisfied, determining a time when an event notification rule is satisfied as the start time, and determining the end time based on the monitoring time interval and the determined start time; determining the end time when an event notification rule is satisfied, and determining the start time based on the monitoring time interval and the determined end time; or determining a time point that satisfies an event notification rule as an intermediate time point, and determining the start time point and the end time point based on the monitoring time interval and the determined intermediate time point, wherein the intermediate time point is between the start time point and the end time point. Event notification method.

5. The event notification rule includes at least one of: updating an attribute of a subscribed resource; creating a sub-resource of a subscribed resource; deleting a sub-resource of a subscribed resource; getting a content instance sub-resource of a subscribed container resource; receiving an operation request of a specific requester; and receiving an operation request of a specific type; 5. The event notification method of claim 4, wherein the monitoring data rule includes any one of the following: the monitoring data is greater than a monitoring threshold, the monitoring data is equal to the monitoring threshold, the monitoring data is smaller than the monitoring threshold, the monitoring data is greater than or equal to the monitoring threshold, and the monitoring data is less than or equal to the monitoring threshold.

6. The step of determining whether the monitoring data rule is satisfied and obtaining the monitoring result includes: determining whether each of the at least one monitored data satisfies a monitored data rule; The event notification method of claim 4, further comprising the steps of: if the monitoring data satisfies the monitoring data rule, obtaining a monitoring result that satisfies the monitoring data rule; and if the monitoring data does not satisfy the monitoring data rule, obtaining a monitoring result that does not satisfy the monitoring data rule.

7. The step of determining whether a consecutive event notification rule is satisfied includes: determining a number of monitoring results that satisfy a monitoring data rule; determining that a consecutive event notification rule is satisfied if the number of monitoring results that satisfy the monitoring data rule is equal to or greater than a count threshold; The method of claim 6 , wherein the count threshold is determined based on a number of monitoring data received within the monitoring time interval.

8. The step of determining whether a consecutive event notification rule is satisfied includes: determining a length of time corresponding to a monitoring result that satisfies a monitoring data rule; 7. The event notification method of claim 6, further comprising: determining that a consecutive event notification rule is satisfied if a proportion of the length of time and the monitoring time interval is greater than or equal to a time threshold, the time threshold being less than or equal to 1.

9. the subscription request further includes the monitoring time interval; The event notification method further includes creating a subscription resource; The subscription resource is: a monitoring time interval attribute for determining the monitoring time interval; a continuous event notification rule attribute for determining whether to send an event notification to the at least one recipient; and an event notification list attribute for storing address information of said at least one recipient.

10. A server device comprising a transceiver and a processor, the transceiver is configured to receive subscription requests from subscribers, the subscription requests including at least one receiver for receiving event notifications; The processor is configured to determine whether a consecutive event notification rule is satisfied within a monitoring time interval; the transceiver is further configured to transmit an event notification of the subscription request to the at least one recipient if the successive event notification rule is satisfied; The processor is further configured to obtain at least one monitoring datum within the monitoring time interval; To determine whether a continuous event notification rule is satisfied, the processor is further configured to: determine whether the at least one monitoring data satisfies a monitoring data rule when the processor determines that an event notification rule is satisfied, to obtain a monitoring result; and determine whether the continuous event notification rule is satisfied based on the monitoring result; the processor is configured to determine a start and end of the monitoring time interval based on when the event notification rules are satisfied; and determining a time when an event notification rule is satisfied as the start time, and determining the end time based on the monitoring time interval and the determined start time; determining the end time when an event notification rule is satisfied, and determining the start time based on the monitoring time interval and the determined end time; or determining a time point that satisfies an event notification rule as an intermediate time point; determining the start time point and the end time point based on the monitoring time interval and the determined intermediate time point; and the intermediate time point being between the start time point and the end time point. Server device.

11. An event notification system comprising a subscribing device, a server device according to claim 10, and a monitoring device, The subscribing device is configured to send a subscription request to a server device, the subscription request including at least one recipient for receiving event notifications; The monitoring device is configured to transmit monitoring data to the server device.

12. A computer storage medium having computer readable code stored thereon, comprising: The computer readable code, when executed by one or more processors, performs the event notification method according to any one of claims 1 to 9. computer storage medium.

Citation Information

Patent Citations

  • Sending method and apparatus and computer storage medium of notification message

    EP3148156A1

  • A method for notifying presence based on an event sequence

    JP2013516019A

  • Methods and Apparatus for Providing Presence Service for Contact Management Representation

    US20130231138A1