Subscription notification method in internet of things system
By introducing an agent into the IoT system and based on the difference between the first time interval and the second time interval, the problem of subscription notification failure under device power consumption limitations is solved, and a more efficient event notification subscription effect is achieved.
Patent Information
- Application Number
- PCT/CN2024/090107
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-04-26
- Publication Date
- 2024-10-31
AI Technical Summary
In IoT systems, some devices cannot remain active for a long time due to power consumption considerations. As a result, the requester may not receive event notifications from the target under the existing subscription notification mechanism, causing the subscription to fail.
By introducing the agent, the first time interval and the second time interval are determined, the agent receives the event notification from the target party according to the second time interval, and notifies the requesting party according to the first time interval, ensuring that the requesting party can receive the event notification.
This enables the requesting party to still receive event notifications even when the target party sends event notifications beyond the time interval expected by the requesting party, improving the efficiency and reliability of event notifications.
Smart Images

Figure CN2024090107_31102024_PF_FP_ABST
Abstract
Description
Method of subscribing to notifications in IoT system
[0001] This application claims priority to Chinese patent application No. 202310484636.7 filed on April 28, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] The present disclosure relates to a method for subscribing to notifications in an Internet of Things system, an agent in the Internet of Things system, an electronic device, and a non-static computer-readable medium. Background Art
[0003] The Internet of Things (IoT) is a network based on information carriers such as the Internet and traditional telecommunications networks, which enables all ordinary physical objects that can be independently addressed to interconnect and communicate with each other. Therefore, the core of the IoT is to achieve interoperability between machines, namely M2M (machine to machine).
[0004] In order to achieve intercommunication between machines, commonly used methods include request-response mode and subscription-notification mode. The request-response mode is a one-time interaction mode, and the subscription-notification mode is a multiple-time interaction mode, which is suitable for the requirements of the Internet of Things environment. Therefore, the Internet of Things system generally adopts the subscription-notification mode to achieve M2M interaction, that is, interaction between Internet of Things devices.
[0005] In the IoT system, some IoT devices have high requirements for power saving and cannot remain active for a long time. Therefore, it is necessary to design a subscription notification method that meets the energy-saving needs of IoT devices, improve the adaptability of the IoT system, and meet the requirements for IoT devices in different scenarios.
[0006] Summary of the Invention
[0007] An embodiment of the present disclosure provides a method for subscribing to notifications in an Internet of Things system, the Internet of Things system including a requester, a target, and an agent. The method includes: determining a first time interval and a second time interval, wherein the first time interval is a time interval at which the requester expects to receive event notifications from the target, and the second time interval is a time interval at which the target can send event notifications; determining whether the second time interval exceeds the first time interval; and in response to determining that the second time interval exceeds the first time interval, receiving, by the agent, the event notification from the target at the second time interval and notifying the requester at the first time interval.
[0008] An embodiment of the present disclosure provides a subscription management method for an Internet of Things system, the Internet of Things system including a requester, a target and an agent, the method comprising: the requester sending a first subscription request to the target, the first subscription request indicating that the requester expects to receive event notifications within a first time interval; the requester receiving a response to the first subscription request from the target, the response to the first subscription request indicating that the target can send event notifications within a second time interval; the requester determining whether the second time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, the requester sending a second subscription request to the agent, the second subscription request indicating that the agent receives event notifications from the target, and the second subscription request includes the the first time interval; the proxy sends a third subscription request to the target, the third subscription request including an identifier of the requester and the first time interval; the target sends a response to the third subscription request to the proxy, the response to the third subscription request including the second time interval; the proxy sends a response to the second subscription request to the requester, the response to the second subscription request indicating that the proxy will receive event notifications from the target; in response to the proxy not receiving an event notification from the target within the first time interval, the proxy sends an event notification of an empty message or a cached data message to the requester; and in response to the proxy receiving an event notification from the target within the second time interval, the proxy sends an event notification containing the latest data of the target to the requester.
[0009] An embodiment of the present disclosure provides an agent in an Internet of Things system, wherein the agent is configured to: receive a first subscription request from a requester, wherein the first subscription request indicates that the requester expects to receive event notifications within a first time interval; send a second subscription request to a target, wherein the first subscription request indicates that the agent expects to receive event notifications within the first time interval; receive a response to the second subscription request from the target, wherein the response to the second subscription request indicates that the target can send event notifications within a second time interval; determine whether the second time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, receive event notifications from the target according to the second time interval and notify the requester according to the first time interval; in response to the agent not receiving an event notification from the target within the first time interval, send an event notification of an empty message or a cached data message to the requester; and in response to the agent receiving an event notification from the target within the second time interval, send an event notification containing the latest data of the target to the requester.
[0010] An embodiment of the present disclosure provides a method for subscribing to notifications in an Internet of Things system, the Internet of Things system including a requester and a target, comprising: determining a first time interval and a second time interval, wherein the first time interval is a time interval in which the requester expects to receive event notifications from the target, and the second time interval is a time interval in which the target can send event notifications; determining whether the second time interval exceeds the first time interval; and in response to determining that the second time interval exceeds the first time interval, determining a third time interval based on the second time interval and the first time interval, the third time interval being used to indicate a time interval in which the target sends event notifications.
[0011] An embodiment of the present disclosure provides an electronic device comprising: one or more processors; and one or more memories, wherein the memories store computer-readable code, which, when executed by the one or more processors, performs the above method.
[0012] According to another embodiment of the present disclosure, a computer-readable storage medium is provided, on which instructions are stored. When the instructions are executed by a processor, the processor executes the above method.
[0013] According to another aspect of the present disclosure, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable medium and executes the computer instructions, causing the computer device to perform the methods provided in the various aspects or various optional implementations of the various aspects described above.
[0014] By using the embodiments of the present disclosure, even if the target party sends an event notification at a time interval exceeding the time interval the requesting party wishes to receive, the requesting party can still receive the event notification, thereby achieving a more efficient event notification subscription effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] To more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present disclosure. A person skilled in the art can derive other drawings based on these drawings without inventive effort. The following drawings are not intentionally scaled to actual size; their focus is on illustrating the main points of the present disclosure.
[0016] FIG1 illustrates an application scenario according to an embodiment of the present disclosure, which shows a variety of active devices and passive devices.
[0017] FIG. 2 illustrates a scenario in which a requesting party may not be able to receive an event notification from a target party.
[0018] FIG3 shows a flowchart of a method 30 for subscribing to notifications in an Internet of Things system according to an embodiment of the present disclosure.
[0019] FIG4 is a schematic diagram illustrating interactions among a requester, a target, and a proxy in the Internet of Things according to an embodiment of the present disclosure.
[0020] FIG5 is a schematic diagram illustrating interactions among a requester, a first target, a second target, and a proxy in an Internet of Things according to an embodiment of the present disclosure.
[0021] FIG6 is another schematic diagram illustrating interactions among a requester, a first target, a second target, and a proxy in the Internet of Things according to an embodiment of the present disclosure.
[0022] FIG7 is a schematic diagram illustrating interactions among a first requester, a second requester, a target party, and a proxy party in the Internet of Things according to an embodiment of the present disclosure.
[0023] FIG8 is a schematic diagram illustrating interactions among a requester, a target, and a proxy in the Internet of Things according to an embodiment of the present disclosure.
[0024] FIG9 is a schematic diagram illustrating interactions among a requester, a first target, a second target, and a proxy in an Internet of Things according to an embodiment of the present disclosure.
[0025] FIG10 is another schematic diagram illustrating interactions among a requester, a first target, a second target, and a proxy in the Internet of Things according to an embodiment of the present disclosure.
[0026] FIG11 is a schematic diagram illustrating interactions among a first requester, a second requester, a target party, and a proxy party in the Internet of Things according to an embodiment of the present disclosure.
[0027] FIG12 is a schematic diagram illustrating a method for subscribing to notifications in an Internet of Things system according to an embodiment of the present disclosure.
[0028] FIG13 is a flowchart illustrating a method for subscribing to notifications in an Internet of Things system according to an embodiment of the present disclosure.
[0029] FIG14 is a schematic diagram illustrating interaction between a requester and a target in the Internet of Things according to an embodiment of the present disclosure.
[0030] FIG15 is a schematic diagram illustrating interaction between a requester and a target in the Internet of Things according to an embodiment of the present disclosure.
[0031] FIG16 shows a schematic diagram of an electronic device according to an embodiment of the present disclosure.
[0032] FIG17 shows an architectural diagram of a computing device according to an embodiment of the present disclosure.
[0033] FIG18 shows a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solutions and advantages of the present disclosure more apparent, the following will describe in detail exemplary embodiments of the present disclosure with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described herein.
[0035] In this specification and the accompanying drawings, substantially the same or similar steps and elements are denoted by the same or similar reference numerals, and repeated descriptions of these steps and elements will be omitted. At the same time, in the description of the present disclosure, the terms "first", "second", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance or ranking.
[0036] With the development of information technology, especially the internet, the Internet of Things (IoT), a technology used to achieve informatization, remote management and control, and intelligent networks, is gradually maturing. The IoT leverages communication technologies such as local area networks (LANs) or the internet to connect sensors, controllers, machines, people, and objects in new ways, connecting people with objects and objects with one another. The IoT is an extension of the internet, encompassing the internet and all its resources, and compatible with all internet applications. With the application of IoT technology in various fields, new application areas such as smart homes, intelligent transportation, and smart healthcare have emerged.
[0037] FIG1 shows an application scenario according to an embodiment of the present disclosure, taking a smart home scenario as an example, which shows a variety of active devices and passive devices.
[0038] As shown in FIG1 , a smart home may include a variety of devices, such as the smart doorbell, electronic photo album, temperature and humidity sensor, smoke alarm, smart door lock, etc. in FIG1 .
[0039] These devices can serve as requesters and targets in the IoT. Specifically, in the IoT, requesters and targets can be unplugged devices, powered by batteries, that communicate with each other through local or remote communication. Of course, the requester can also be an unplugged device. The target can also be a plugged-in device, but due to energy consumption considerations, it cannot remain in operation for long periods of time.
[0040] The requester can obtain data or control the behavior of the target party by subscribing to event notifications from the target party. For example, in a smart home system, a smart doorbell or an electronic photo album can act as a requester and subscribe to the target party's (e.g., temperature and humidity sensors, smoke alarms, smart door locks) power consumption event notifications, temperature measurement results, humidity measurement results, smoke event monitoring results, door lock status notifications, etc. When the target party detects a corresponding event, it will send an event notification to the requester. For example, after receiving the event notification, the electronic photo album as the requester will display real-time power consumption data, temperature measurement results, humidity measurement results, smoke event monitoring results, and door lock status notifications. After receiving the door lock status notification, the smart doorbell as the requester can also perform corresponding alarm operations, etc. The present disclosure is not limited to this.
[0041] FIG. 2 illustrates a scenario in which a requesting party may not be able to receive an event notification from a target party.
[0042] In existing subscription notification mechanisms (e.g., those based on the Matter standard), a requester sends a subscription request message (e.g., SubscribeRequestMessage) to a target. The target may then send a response to the subscription request message. Thus, the requester subscribes to event notifications from the target.
[0043] Subscription request messages and responses to subscription request messages may include various parameters, such as KeepSubscriptions, MinIntervalFloor, MaxIntervalCeiling, AttributeRequests, EventFilters, FabricFiltered, DataVersionFilters, and EventRequests. MinIntervalFloor and MaxIntervalCeiling control the active-sleep intervals of IoT devices. MinIntervalFloor represents the minimum interval selected by a device for any subscription, while MaxIntervalCeiling represents the maximum interval selected by a device for any subscription. After the target sends a response to a subscription request message, it may be active between MinIntervalFloor and MaxInterval, as indicated in the response. MaxInterval is the maximum value between MaxIntervalCeiling and SUBSCRIPTION_MAX_INTERVAL_PUBLISHER_LIMIT, which represents the maximum notification time for the target. The original intention of designing MinIntervalFloor and MaxIntervalCeiling is to balance the communication frequency and energy consumption of the device, ensuring that the device can save energy as much as possible without affecting performance. Of course, the present disclosure is not limited to this.
[0044] For example, the requester can be an electronic photo frame. Since electronic photo frames are battery-powered or plug-in-powered, they do not need to remain network-active all the time and usually go into sleep mode periodically. As shown in Figure 2, the electronic photo album as the requester may work for one hour for every hour of sleep. In this case, the corresponding MinIntervalFloor of the electronic photo album is 1 hour, and the MaxIntervalCeiling is 2 hours. Assuming the current time is 12 noon, the electronic photo album will expect to sleep from 12 noon to 13 noon, work from 13 noon to 14 noon, then sleep from 14 noon to 15 noon, and so on. During the working hours from 13 noon to 14 noon, the electronic photo album expects to receive event notifications from the target. The requester will inform the target of MinIntervalFloor = 1 hour and MaxIntervalCeiling = 2 hours through a subscription request message. This setting can save power without affecting device performance.
[0045] The target might be a temperature sensor. Temperature sensors have a low battery life (e.g., a button cell), and therefore require a relatively long period for transmitting temperature data. For example, in a subscription response, the temperature sensor might specify a MinInterval of 1 hour and a MaxInterval of 3 hours. This requires the requesting party's electronic photo album to operate between the MinInterval and MaxInterval intervals, meaning it must operate for 2 hours and rest for 1 hour. Assuming the current time is 12:00 p.m., the temperature sensor would require the electronic photo album to sleep from 12:00 p.m. to 1:00 p.m., then operate from 1:00 p.m. to 3:00 p.m., then sleep from 3:00 p.m. to 4:00 p.m., and so on. During the operating hours between 1:00 p.m. and 3:00 p.m., the temperature sensor might send event notifications to the requesting party's electronic photo album at any time.
[0046] As shown in Figure 2, the MaxInterval corresponding to the target party (for example, 3 hours) may be greater than the MaxIntervalCeiling corresponding to the requester (for example, 2 hours). The target party's requirements are inconsistent with the requester's expectations. This means that if the target party sends an event notification between 2 p.m. and 3 p.m., the dormant requester will not be able to receive the target party's event notification, which will lead to subscription failure.
[0047] To this end, embodiments of the present disclosure provide a method for subscription notification in the Internet of Things, so as to improve the problem of subscription failure that may occur in current Internet of Things systems.
[0048] Specifically, an embodiment of the present disclosure provides a method for subscribing to notifications in an Internet of Things system, the Internet of Things system including a requester, a target party, and an agent party, the method comprising: determining a first time interval and a second time interval, wherein the first time interval is a time interval in which the requester expects to receive an event notification from the target party, and the second time interval is a time interval in which the target party can send an event notification; determining whether the second time interval exceeds the first time interval; and in response to determining that the second time interval exceeds the first time interval, receiving, by the agent, an event notification from the target party according to the second time interval and notifying the requester according to the first time interval.
[0049] Specifically, an embodiment of the present disclosure also provides a method for subscribing to notifications in an Internet of Things system, wherein the Internet of Things system includes a requester and a target party, including: determining a first time interval and a second time interval, wherein the first time interval is a time interval in which the requester expects to receive event notifications from the target party, and the second time interval is a time interval in which the target party can send event notifications; determining whether the second time interval exceeds the first time interval; and in response to determining that the second time interval exceeds the first time interval, determining a minimum time interval threshold to be updated for the target party based on the second time interval and the first time interval.
[0050] FIG3 shows a flowchart of a method 30 for subscribing to notifications in an Internet of Things system according to an embodiment of the present disclosure.
[0051] 3 , the IoT system according to an embodiment of the present disclosure includes a requester, a target, and a proxy. Method 30 includes steps S301 to S303 .
[0052] In step S301, a first time interval and a second time interval are determined, wherein the first time interval is a time interval during which the requesting party expects to receive event notifications from the target party, and the second time interval is a time interval during which the target party can send event notifications.
[0053] In step S302, it is determined whether the second time interval exceeds the first time interval.
[0054] In step S303, in response to determining that the second time interval exceeds the first time interval, the proxy receives an event notification from the target according to the second time interval and notifies the requester according to the first time interval.
[0055] Optionally, method 30 may be performed by the requester. In this case, step S301 includes: the requester sends a first subscription request to the target party, the first subscription request indicating that the requester expects to receive event notifications within a first time interval, and the requester receives a response to the first subscription request from the target party, the response to the first subscription request indicating that the target party can send event notifications within a second time interval. Step S302 includes: the requester determines whether the second time interval exceeds the first time interval, and in response to determining that the second time interval exceeds the first time interval, the requester sends a subscription request to the agent, so that the agent receives event notifications from the target party according to the second time interval and notifies the requester according to the first time interval. Of course, the present disclosure is not limited to this.
[0056] Optionally, method 30 may be performed by a proxy. In this case, step S301 includes: the proxy receiving a first subscription request from a requester, the first subscription request indicating that the requester desires to receive event notifications within a first time interval; the proxy sending a second subscription request to a target, the first subscription request indicating that the proxy desires to receive event notifications within the first time interval; and the proxy receiving a response to the second subscription request from the target, the response to the second subscription request indicating that the target can send event notifications within a second time interval.
[0057] Method 30 ensures the normal operation of subscription notifications through the proxy, without adjusting the working hours of the requester and target. In method 30, if the target is unable to send event notifications within the first time interval, the proxy will temporarily receive event notifications from the target at the second time interval and then send event notifications to the requester within the first time interval.
[0058] To more clearly illustrate the method 30 , an application example of the method 30 is further illustrated below with reference to FIG. 4 to FIG. 18 . Those skilled in the art should understand that the present disclosure is not limited thereto.
[0059] FIG4 is a schematic diagram illustrating interactions among a requester, a target, and a proxy in the Internet of Things according to an embodiment of the present disclosure, wherein the requester implements method 30 .
[0060] As shown in Figure 4, in step S301, a requester sends a first subscription request to a target, where the first subscription request indicates that the requester desires to receive event notifications within a first time interval. Next, the requester receives a response to the first subscription request from the target, where the response indicates that the target is able to send event notifications within a second time interval.
[0061] Take the requesting party as an electronic photo album and the target party as an ambient thermometer as an example. Among them, the time interval range for the electronic photo album to receive event notifications is (1h, 1.5h), and it starts to sleep after exceeding 1.5h. The inherent maximum interval threshold for sending event notifications built into the thermometer is 3h. In the above-mentioned step S301, the electronic photo album sends a subscription request to the ambient thermometer, including the first time interval (1h, 1.5h) for the electronic photo album to receive event notifications, wherein the maximum interval threshold Max interval corresponding to the first time interval is 1.5 hours, and the minimum interval threshold Min interval is 1 hour. After receiving the subscription request, the ambient thermometer sends a subscription reply to the electronic photo album, including the maximum interval threshold Max interval corresponding to the second time interval for sending event notifications supported by the thermometer, which is 3 hours. Of course, the present disclosure is not limited to this.
[0062] Then, in step S302, the requesting party determines whether the second time interval exceeds the first time interval. Continuing with the example of the electronic photo album being the requesting party and the ambient thermometer being the target party, after receiving the subscription reply, the electronic photo album determines whether the maximum interval threshold (Max interval) corresponding to the first time interval is greater than the maximum interval ceiling (Max interval ceiling) corresponding to the second time interval.
[0063] Next, in step S303, in response to determining that the second time interval exceeds the first time interval, the requester sends a second subscription request to the agent, where the second subscription request instructs the agent to receive event notifications from the target, and the second subscription request includes the first time interval.
[0064] In the above example, since 3 hours > 1.5 hours, the second time interval exceeds the first time interval. The electronic photo album sends a second subscription request to the agent. The second subscription request includes a requester identifier, a target identifier, and a second time interval. In this case, the requester identifier indicates that the agent is managing the subscription for the electronic photo album, the target identifier identifies the thermometer, and the first time interval is the range of time intervals (1 hour, 1.5 hours) within which the electronic photo album wishes to receive event notifications.
[0065] Optionally, in the scenario shown in Figure 4, method 30 may further include the following steps: the proxy sends a third subscription request to the target, the third subscription request including an identifier of the requester and the first time interval; the target sends a response to the third subscription request to the proxy, the response to the third subscription request including the second time interval; the proxy sends a response to the second subscription request to the requester, the response to the second subscription request indicating that the proxy will receive event notifications from the target; in response to the proxy not receiving an event notification from the target within the first time interval, the proxy sends an event notification of an empty message or a cached data message to the requester; and in response to the proxy receiving an event notification from the target within the second time interval, the proxy sends an event notification containing the latest data of the target to the requester.
[0066] Specifically, in the above example, the proxy sends a third subscription request to the thermometer. The third subscription request includes: the requesting party is the electronic photo album, and the time interval range for receiving event notifications is (1h, 1.5h). Then, the thermometer sends a response to the third subscription request to the proxy, and the response includes the maximum interval Maxinterval=3h corresponding to the second time interval supported by the thermometer. Then, the proxy sends a response to the first subscription request to the electronic photo album, and the response includes that the maximum interval for the proxy to send event notifications is 1.5h, indicating that the subscription is successful, and event notifications will be sent to it within the time interval range (1.5h) for sending event notifications that the electronic photo album hopes to send.
[0067] Assume that during the electronic album's event cycle 1 (e.g., 12:00 PM to 1:30 PM), the agent does not receive an event notification from the thermometer. The agent sends an empty event notification to the electronic album. Then, assume that at 2:00 PM, the agent receives an event notification from the thermometer, at which point the electronic album has already gone dormant. Then, during the electronic album's active event cycle 2 (e.g., 2:30 PM to 4:00 PM), the agent sends the event notification it received from the thermometer at 2:00 PM to the electronic album, containing the temperature data.
[0068] Therefore, when the thermometer cannot meet the event notification subscription request of the electronic photo album, the subscription demand of the electronic photo album can be met through the intermediary role of the agent.
[0069] According to Figures 3 and 4, aspect 1 of an embodiment of the present disclosure further provides a requester in an Internet of Things system, the requester being configured to perform the following operations: determining a first time interval and a second time interval, wherein the first time interval is a time interval during which the requester expects to receive event notifications from a target, and the second time interval is a time interval during which the target can send event notifications; determining whether the second time interval exceeds the first time interval; and in response to determining that the second time interval exceeds the first time interval, sending a subscription request to a proxy to request the proxy to receive event notifications from the target and notify the requester according to the first time interval. Optionally, in aspect 1, determining the first time interval and the second time interval includes: sending a first subscription request to the target, the first subscription request indicating that the requester expects to receive event notifications within the first time interval, and receiving a response to the first subscription request from the target, the response to the first subscription request indicating that the target can send event notifications within the second time interval.
[0070] Correspondingly, according to Figures 3 and 4, aspect 2 of an embodiment of the present disclosure further provides a proxy in an Internet of Things system, the proxy being configured to perform the following operations: receiving a first subscription request from a requester, the first subscription request instructing the proxy to receive event notifications from the target and a first time interval, the first time interval being the time interval at which the requester expects to receive event notifications from the proxy; sending a second subscription request to the target, the second subscription request including an identifier of the proxy and the first time interval; receiving a response to the second subscription request from the target, the response to the second subscription request including a second time interval, the second time interval being the time interval at which the target can send event notifications; and sending a response to the first subscription request to the requester, the response to the first subscription request indicating that event notifications are to be sent to the requester at the first time interval. Optionally, in aspect 2, in response to the proxy not receiving an event notification from the target within the first time interval, the proxy sends an event notification including an empty message or a cached data message to the requester; and in response to the proxy receiving an event notification from the target within the second time interval, the proxy sends an event notification including the latest data of the target to the requester.
[0071] Correspondingly, according to Figures 3 and 4, aspect 3 of an embodiment of the present disclosure further provides a system for subscription management in the Internet of Things, the system comprising a requester, a target party, and an agent. In aspect 3, the requester sends a first subscription request to the target party, the first subscription request indicating that the requester expects to receive event notifications within a first time interval; the requester receives a response to the first subscription request from the target party, the response to the first subscription request indicating that the target party can send event notifications within a second time interval; the requester determines whether the second time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, the requester sends a second subscription request to the agent, the second subscription request indicating that the agent receives event notifications from the target party, and the second subscription request includes the first time interval; the agent sends a third subscription request to the target party. , the third subscription request includes an identifier of the requesting party and the first time interval; the target party sends a response to the third subscription request to the agent party, and the response to the third subscription request includes the second time interval; the agent party sends a response to the second subscription request to the requesting party, and the response to the second subscription request indicates that the agent party will receive event notifications from the target party; in response to the agent party not receiving an event notification from the target party within the first time interval, the agent party sends an event notification of an empty message or a cached data message to the requesting party; and in response to the agent party receiving an event notification from the target party within the second time interval, the agent party sends an event notification containing the latest data of the target party to the requesting party.
[0072] FIG5 is a schematic diagram illustrating the interaction between a requester, a first target, a second target, and a proxy in an Internet of Things according to an embodiment of the present disclosure. The example scenario of applying method 30 shown in FIG5 involves a situation where a requester needs to subscribe to multiple target parties. In the current interactive process of subscription notifications, if some of the multiple target parties cannot send within the time interval desired by the requester, the subscription effect will be affected, resulting in subscription failure. Therefore, by applying method 30 in the scenario shown in FIG5 , the problem of subscription failure can be resolved through the proxy.
[0073] Specifically, in the example scenario of applying method 30 shown in Figure 5, method 30 is implemented by the requesting party, and the target party in method 30 includes a first target party and a second target party. The first target party can send event notifications within the second time interval, and the second target party can send event notifications within a third time interval.
[0074] For example, in the example scenario of applying method 30 shown in FIG5 , method 30 further includes: in response to determining that the second time interval exceeds the first time interval, the proxy receives an event notification from the first target at the second time interval and notifies the requester at the first time interval; and in response to determining that the third time interval does not exceed the first time interval, the proxy receives an event notification from the second target at the third time interval and notifies the requester at the first time interval. Of course, the present disclosure is not limited to this.
[0075] Specifically, as shown in Figure 5, in step S301, the requesting party sends a first subscription request to the first target party and the second target party, and the first subscription request indicates that the requesting party expects to receive event notifications within a first time interval; the requesting party receives a response to the first subscription request from the first target party, and the response to the first subscription request indicates that the first target party can send event notifications within a second time interval; the requesting party receives a response to the second subscription request from the second target party, and the response to the second subscription request indicates that the first target party can send event notifications within a third time interval.
[0076] For example, consider an electronic photo album as the requester, an ambient thermometer as the first target, and an ambient hygrometer as the second target. The electronic photo album wishes to receive event notifications within a time interval range of (1 hour, 1.5 hours), with sleep mode initiated after 1.5 hours. The thermometer has a built-in maximum interval threshold for sending event notifications of 3 hours, while the hygrometer has a built-in maximum interval threshold for sending event notifications of 1.5 hours. In step S301, the electronic photo album sends a subscription request to the ambient thermometer and ambient hygrometer, including the first time interval (1 hour, 1.5 hours) for which the electronic photo album wishes to receive event notifications. The first time interval has a maximum interval threshold (Max interval ceiling) of 1.5 hours and a minimum interval threshold (Min interval) of 1 hour. After receiving the subscription request, the ambient thermometer sends a subscription reply to the electronic photo album, including the maximum interval threshold (Max interval-1) for the second time interval supported by the thermometer for sending event notifications of 3 hours. After receiving the subscription request, the ambient hygrometer sends a subscription reply to the electronic photo album, including the maximum interval threshold (Max interval-2) for the third time interval supported by the hygrometer for sending event notifications of 1.5 hours.
[0077] Next, in step S302, the requesting party determines whether the second time interval exceeds the first time interval and whether the third time interval exceeds the first time interval. For example, after receiving the subscription reply, the electronic photo album determines that the maximum interval Max interval-1 is greater than the maximum interval threshold Max Interval ceiling of the electronic photo album, and Max interval-2 is less than or equal to Max Interval ceiling.
[0078] Alternatively, in response to determining that the third time interval does not exceed the first time interval, the requester may directly receive the event notification from the second target. That is, the electronic photo album may itself subscribe to the hygrometer. For example, as shown in FIG5 , the requester may receive the event notification from the second target and send a response to the event notification to the second target. Of course, the electronic photo album may also allow the proxy to subscribe to the hygrometer for event notifications, but this disclosure is not limited to this.
[0079] Next, in operation S303, in response to determining that the second time interval exceeds the first time interval, the requester sends a third subscription request to the proxy, the third subscription request instructing the proxy to receive event notifications from the first target, and the third subscription request includes the first time interval.
[0080] In the above example, since 3 hours > 1.5 hours, the second time interval exceeds the first time interval. The electronic photo album sends a third subscription request to the agent. The third subscription request includes a requester identifier, a target identifier, and the second time interval. In this case, the requester identifier indicates that the agent is managing the subscription for the electronic photo album, the target identifier identifies the thermometer, and the first time interval is the range of time intervals (1 hour, 1.5 hours) for which the electronic photo album wishes to receive event notifications.
[0081] Optionally, in the scenario shown in Figure 5, method 30 may further include the following steps: the proxy sends a fourth subscription request to the first target party, the fourth subscription request including an identifier of the requesting party and the first time interval; the first target sends a response to the fourth subscription request to the proxy, the response to the fourth subscription request including the second time interval; the proxy sends a response to the third subscription request to the requesting party, the response to the third subscription request indicating that the proxy will receive event notifications from the first target party at a second time interval; in response to the proxy not receiving an event notification from the first target party within the first time interval, the proxy sends an event notification of an empty message or a cached data message to the requesting party; and in response to the proxy receiving an event notification from the first target party within the second time interval, the proxy sends an event notification from the first target party to the requesting party.
[0082] Specifically, in the above example, the proxy sends a fourth subscription request to the thermometer. The fourth subscription request includes: the requesting party is the electronic photo album, and the time interval range for receiving event notifications is (1h, 1.5h). Then, the thermometer sends a response to the proxy for the fourth subscription request, and the response includes the maximum interval Maxinterval=3h corresponding to the second time interval supported by the thermometer. Then, the proxy sends a response to the electronic photo album for the third subscription request, and the response includes that the maximum interval for the proxy to send event notifications is 1.5h, indicating that the subscription is successful, and event notifications will be sent to it within the time interval (1.5h) that the electronic photo album wants to send event notifications.
[0083] Assume that during the electronic album's event cycle 1 (e.g., 12:00 PM to 1:30 PM), the agent does not receive an event notification from the thermometer. The agent sends an empty event notification to the electronic album. Then, assume that at 2:00 PM, the agent receives an event notification from the thermometer, at which point the electronic album has already gone dormant. Then, during the electronic album's active event cycle 2 (e.g., 2:30 PM to 4:00 PM), the agent sends the event notification it received from the thermometer at 2:00 PM to the electronic album, containing the temperature data.
[0084] Therefore, when the hygrometer or thermometer cannot meet the event notification subscription request of the electronic photo album, the subscription demand of the electronic photo album can be met through the intermediary role of the agent.
[0085] Optionally, in the case where the requesting party chooses not to subscribe to the event notification of the second target party, the third subscription request may further instruct the proxy party to receive the event notification from the second target party. Of course, the present disclosure is not limited thereto.
[0086] Correspondingly, in the scenario shown in Figure 5, method 30 may also include the following steps: the proxy sends a fifth subscription request to the second target party, the fifth subscription request including the identifier of the requesting party and the first time interval; the second target sends a response to the fifth subscription request to the proxy, the response to the fifth subscription request including the third time interval; the proxy sends a response to the third subscription request to the requesting party, the response to the third subscription request indicating that the proxy will receive event notifications from the second target party according to the third time interval; in response to the proxy receiving the event notification from the second target party within the first time interval, the proxy sends the event notification from the second target party to the requesting party.
[0087] Specifically, in the above example, the proxy sends a fourth subscription request to the thermometer and a fifth subscription request to the hygrometer. Both the fourth subscription request and the fifth subscription request include: the requesting party is the electronic photo album, and the time interval range (1h, 1.5h) within which the event notification is desired to be received. Then, the thermometer sends a response to the fourth subscription request to the proxy, which includes the maximum interval Maxinterval=3h corresponding to the second time interval supported by the thermometer. The hygrometer sends a response to the fifth subscription request to the proxy, which includes the maximum interval Maxinterval=1.5h corresponding to the third time interval supported by the hygrometer. Then, the proxy sends a response to the third subscription request to the electronic photo album, which includes the maximum interval for the proxy to send event notifications being 1.5h, indicating that the subscription is successful and event notifications will be sent to it within the time interval (1.5h) within which the electronic photo album desires to send event notifications.
[0088] Assume that during the electronic album's event cycle 1 (e.g., 12:00 PM to 1:30 PM), the agent does not receive an event notification from the thermometer but does receive one from the hygrometer. The agent then sends the electronic album an event notification containing humidity data. Then, assume that at 2:00 PM the agent receives an event notification from the thermometer, at which point the electronic album is already dormant. Then, during the electronic album's active event cycle 2 (e.g., 2:30 PM to 4:00 PM), the agent sends the electronic album the event notification it received from the thermometer at 2:00 PM, containing temperature data.
[0089] Therefore, when the hygrometer or thermometer cannot meet the event notification subscription request of the electronic photo album, the subscription demand of the electronic photo album can be met through the intermediary role of the agent.
[0090] Therefore, according to Figures 3 and 5, optionally, in aspect 1 detailed above, the target party includes a first target party and a second target party, the first target party is capable of sending event notifications within the second time interval, and the second target party is capable of sending event notifications within a third time interval, and the requester is further configured to: in response to determining that the second time interval exceeds the first time interval, the requester sends a subscription request to the agent to request the agent to receive event notifications from the first target party and notify the requester according to the first time interval; in response to determining that the third time interval does not exceed the first time interval, the requester sends a second subscription request to the second target party to receive event notifications from the second target party.
[0091] Correspondingly, according to Figures 3 and 5, aspect 4 of an embodiment of the present disclosure further provides a system for subscription management in the Internet of Things, the system comprising a requester, a target party, and an agent. In aspect 4, the requester sends a first subscription request to a first target party and a second target party, the first subscription request indicating that the requester expects to receive event notifications within a first time interval; the requester receives a response to the first subscription request from the first target party, the response to the first subscription request indicating that the first target party can send event notifications within a second time interval; the requester receives a response to the second subscription request from the second target party, the response to the second subscription request indicating that the first target party can send event notifications within a third time interval; the requester determines whether the second time interval exceeds the first time interval and determines whether the third time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, the requester sends a third subscription request to the agent, the third subscription request indicating that the agent receives event notifications from the first target party. The third subscription request includes the first time interval; the proxy sends a fourth subscription request to the first target, the fourth subscription request including an identifier of the requester and the first time interval; the first target sends a response to the fourth subscription request to the proxy, the response to the fourth subscription request including the second time interval; the proxy sends a response to the third subscription request to the requester, the response to the third subscription request indicating that the proxy will receive event notifications from the first target at a second time interval; in response to the proxy not receiving an event notification from the first target within the first time interval, the proxy sends an event notification of an empty message or a cached data message to the requester; and in response to the proxy receiving an event notification from the first target within the second time interval, the proxy sends an event notification from the first target to the requester at the first time interval. Of course, the present disclosure is not limited to this.
[0092] Figure 6 is another interactive diagram showing a requester, a first target party, a second target party and an agent in the Internet of Things according to an embodiment of the present disclosure. The example scenario of the application method 30 shown in Figure 6 involves a situation where the requester needs to jointly subscribe to multiple target parties. In the current interactive process of subscription notifications, if some of the multiple target parties cannot be sent within the time interval desired by the requester, it will affect the effect of the subscription and cause the subscription to fail. To this end, by applying method 30 in the scenario shown in Figure 6, the requester can subscribe to data from the agent. After receiving the subscription data of all target parties, the agent packages it and sends it to the requester, which makes it easier for the requester to implement the subscription process and saves the resource usage of the requester.
[0093] Specifically, in the example scenario of applying method 30 shown in Figure 6, method 30 is implemented by the requesting party, and the target party in method 30 includes a first target party and a second target party. The first target party can send event notifications within the second time interval, and the second target party can send event notifications within a third time interval.
[0094] For example, in the example scenario of application method 30 shown in Figure 6, method 30 also includes: in response to determining that the second time interval exceeds the first time interval, the agent receives an event notification from the first target party according to the second time interval; in response to determining that the third time interval does not exceed the first time interval, the agent receives an event notification from the second target party according to the third time interval; and the agent sends the event notifications from the first target party and the second target party to the requester according to the first time interval.
[0095] Specifically, as shown in Figure 6, in step S301, the requesting party sends a first subscription request and a second subscription request to the first target party and the second target party, the first subscription request and the second subscription request indicating that the requesting party expects to receive event notifications within a first time interval; the requesting party receives a response to the first subscription request from the first target party, the response to the first subscription request indicating that the first target party can send event notifications within the second time interval; the requesting party receives a response to the second subscription request from the second target party, the response to the second subscription request indicating that the first target party can send event notifications within a third time interval.
[0096] For example, consider an electronic photo album as the requester, an ambient thermometer as the first target, and an ambient hygrometer as the second target. The electronic photo album wishes to receive event notifications within a time interval range of (1 hour, 1.5 hours), with sleep mode initiated after 1.5 hours. The thermometer has a built-in maximum interval threshold for sending event notifications of 3 hours, while the hygrometer has a built-in maximum interval threshold for sending event notifications of 1.5 hours. In step S301, the electronic photo album sends a subscription request to the ambient thermometer and ambient hygrometer, including the first time interval (1 hour, 1.5 hours) for which the electronic photo album wishes to receive event notifications. The first time interval has a maximum interval threshold (Max interval ceiling) of 1.5 hours and a minimum interval threshold (Min interval) of 1 hour. After receiving the subscription request, the ambient thermometer sends a subscription reply to the electronic photo album, including the maximum interval threshold (Max interval-1) for the second time interval supported by the thermometer for sending event notifications of 3 hours. After receiving the subscription request, the ambient hygrometer sends a subscription reply to the electronic photo album, including the maximum interval threshold (Max interval-2) for the third time interval supported by the hygrometer for sending event notifications of 1.5 hours. The electronic photo album needs to jointly update the measurement data of the thermometer and the hygrometer.
[0097] Next, in step S302, the requester determines whether the second time interval exceeds the first time interval and whether the third time interval exceeds the first time interval. For example, after receiving the subscription reply, the electronic photo album determines that the maximum interval (Max interval-1) exceeds the electronic photo album's maximum interval threshold (Max Interval ceiling), and Max interval-2 is less than or equal to the Max Interval ceiling. Therefore, at this point, the time interval of at least one of the thermometer and hygrometer exceeds the first time interval, requiring a proxy to perform a joint subscription. In this case, the requester sends a message to the second target party indicating the subscription cancellation, preventing the second target party from directly returning an event notification to the requester.
[0098] Therefore, in step S303, in response to determining that the second time interval exceeds the first time interval, the requester sends a third subscription request to the agent, wherein the third subscription request instructs the agent to receive event notifications from the first target party and the second target party, and the third subscription request includes the first time interval.
[0099] In the above example, since 3h > 1.5h, it can be seen that the second time interval exceeds the first time interval. The electronic photo album sends a third subscription request to the agent. The third subscription request includes: a requester identifier, an identifier of the first target party, an identifier of the second target party, and a second time interval. In this case, the requester identifier indicates that the agent is acting as the agent for subscription management of the electronic photo album, the identifier of the first target party identifies the thermometer, the identifier of the second target party identifies the hygrometer, and the first time interval is the time interval range (1h, 1.5h) that the electronic photo album wishes to receive event notifications.
[0100] Optionally, in the scenario shown in FIG6 , method 30 may further include the following steps: the proxy sends a fourth subscription request to the first target, the fourth subscription request including an identifier of the requester and the first time interval; the first target sends a response to the fourth subscription request to the proxy, the response to the fourth subscription request including the second time interval; the proxy sends a fifth subscription request to the second target, the fifth subscription request including an identifier of the requester and the first time interval; the second target sends a response to the fifth subscription request to the proxy, the response to the fourth subscription request including the third time interval; the proxy sends a response to the third subscription request to the requester, the response to the third subscription request indicating that the proxy will receive event notifications from the first target at the second time interval and from the first target at the third time interval; in response to the proxy not receiving an event notification from the first target within the first time interval but receiving an event notification from the second target, sending an event notification of an empty message or a buffered data message to the requester; and in response to the proxy receiving an event notification from the first target within the second time interval, sending event notifications from the first target and the second target to the requester.
[0101] Specifically, in the above example, the proxy sends a fourth subscription request to the thermometer and a fifth subscription request to the hygrometer. Both the fourth subscription request and the fifth subscription request include: the requesting party is the electronic photo album, and the time interval range (1h, 1.5h) within which the event notification is desired to be received. Then, the thermometer sends a response to the fourth subscription request to the proxy, which includes the maximum interval Maxinterval=3h corresponding to the second time interval supported by the thermometer. The hygrometer sends a response to the fifth subscription request to the proxy, which includes the maximum interval Maxinterval=1.5h corresponding to the third time interval supported by the hygrometer. Then, the proxy sends a response to the third subscription request to the electronic photo album, which includes the maximum interval for the proxy to send event notifications being 1.5h, indicating that the subscription is successful, and event notifications will be sent to it within the time interval (1.5h) within which the electronic photo album desires to send event notifications.
[0102] Assume that during the electronic album's event cycle 1 (e.g., 12:00 PM to 1:30 PM), the agent does not receive an event notification from the thermometer but receives an event notification from the hygrometer at 1:30 PM. The agent can send an empty event notification to the electronic album. Alternatively, the agent may not send any messages to the electronic album during this period. Then, assume that at 2:00 PM, the agent receives an event notification from the thermometer, at which point the electronic album has already gone dormant. Then, during the electronic album's event cycle 2 (e.g., 2:30 PM to 4:00 PM), the agent sends the event notification it received from the thermometer at 2:00 PM and the event notification it received from the hygrometer at 1:30 PM to the electronic album, containing both temperature and humidity data. Furthermore, if the agent receives another humidity data item at 3:00 PM, the agent will send one temperature data item and two humidity data items to the requester during the electronic album's event cycle 2 (e.g., 2:30 PM to 4:00 PM). Of course, the present disclosure is not limited to this.
[0103] Therefore, when the hygrometer or thermometer cannot meet the request for joint subscription event notification of the electronic photo album, the subscription demand of the electronic photo album can be met through the intermediary role of the agent.
[0104] Optionally, according to Figures 3 and 6, in aspect 1 detailed above, the target party includes a first target party and a second target party, the first target party is capable of sending event notifications within the second time interval, and the second target party is capable of sending event notifications within a third time interval, and the requester is further configured to: send a subscription request to the agent to request the agent to receive event notifications from the first target party and the second target party, and notify the requester according to the first time interval.
[0105] Correspondingly, according to Figures 3 and 6, in aspect 2 detailed above, the target party includes a first target party and a second target party, the first target party is capable of sending event notifications within the second time interval, and the second target party is capable of sending event notifications within a third time interval, and the agent is further configured to: receive a subscription request from the requester, the subscription request instructing the agent to receive event notifications from the first target party and the second target party and a first time interval, the first time interval being the time interval in which the requester expects to receive event notifications from the agent, wherein at least one of the second time interval and the third time interval exceeds the first time interval.
[0106] Correspondingly, according to Figures 3 and 6, aspect 5 of an embodiment of the present disclosure also provides a system for subscription management in the Internet of Things, the system comprising a requester, a first target party, a second target party, and an agent. In aspect 5, the requester sends a first subscription request to the first target party and the second target party, the first subscription request indicating that the requester expects to receive event notifications within a first time interval; the requester receives a response to the first subscription request from the first target party, the response to the first subscription request indicating that the first target party can send event notifications within a second time interval; the requester receives a response to the second subscription request from the second target party, the response to the second subscription request indicating that the first target party can send event notifications within a third time interval; the requester determines whether the second time interval exceeds the first time interval and determines whether the third time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, the requester sends a third subscription request to the agent, the third subscription request indicating that the agent receives event notifications from the first target party and the second target party, and the third subscription request includes the first time interval; the agent sends a fourth subscription request to the first target party, the fourth subscription request including the identifier of the requester and the third time interval. a time interval; sending, by the first target, a response to a fourth subscription request to the proxy, the response to the fourth subscription request including the second time interval; sending, by the proxy, a fifth subscription request to the second target, the fifth subscription request including an identifier of the requestor and the first time interval; sending, by the second target, a response to the fifth subscription request to the proxy, the response to the fourth subscription request including the third time interval; sending, by the proxy, a response to the third subscription request to the requestor, the response to the third subscription request indicating that the proxy will receive event notifications from the first target at the second time interval and from the first target at the third time interval; in response to the proxy not receiving an event notification from the first target within the first time interval but receiving an event notification from the second target, sending, by the proxy, an event notification of an empty message or a buffered data message to the requestor; and in response to the proxy receiving an event notification from the first target within the second time interval, sending, by the proxy, event notifications from the first target and the second target to the requestor.
[0107] FIG7 is a schematic diagram showing the interaction between the first requester, the second requester, the target party and the proxy party in the Internet of Things according to an embodiment of the present disclosure. The example scenario of the application method 30 shown in FIG7 involves a situation where multiple requesters need to subscribe to a single target party. In the current interactive process of subscription notifications, if the target party cannot meet the needs of multiple requesters, multiple requesters will not be able to obtain subscription data in a timely manner. To this end, by having each requester execute method 30 in the scenario shown in FIG7, once a requester and a target party do not match in time, they can subscribe to data from the proxy. After the proxy determines that other requesters have subsequently subscribed to the same target party data, it subscribes to data from the target party once and sends data according to the time interval range desired by different requesters.
[0108] Specifically, in the example scenario of applying method 30 shown in FIG7 , steps S301 to S303 in method 30 are implemented by a first requester. The first subscription request is from the first requester. Method 30 further includes: the second requester sending a third subscription request to the agent, the third subscription request instructing the agent to receive event notifications from the target party within a fourth time interval; determining whether the second time interval exceeds the fourth time interval; in response to determining that the second time interval does not exceed the fourth time interval, the agent receiving event notifications from the target party according to the fourth time interval and notifying the second requester according to the fourth time interval; in response to determining that the second time interval exceeds the fourth time interval, the agent receiving event notifications from the target party according to the second time interval and notifying the second requester according to the fourth time interval.
[0109] Specifically, as shown in Figure 7, in step S301, the first requesting party sends a first subscription request to the target party, and the first subscription request indicates that the first requesting party expects to receive event notifications within a first time interval; the first requesting party receives a response to the first subscription request from the target party, and the response to the first subscription request indicates that the target party can send event notifications within a second time interval.
[0110] Take the example of the first requesting party being the electronic photo album A and the target party being the ambient thermometer. The time interval range for the electronic photo album to receive event notifications is (1h, 1.5h), and it will start to sleep after exceeding 1.5h. The inherent maximum interval threshold for sending event notifications built into the thermometer is 3h. In the above-mentioned step S301, the electronic photo album sends a subscription request to the ambient thermometer, including the first time interval (1h, 1.5h) for the electronic photo album to receive event notifications, wherein the maximum interval threshold Max interval corresponding to the first time interval is 1.5 hours, and the minimum interval threshold Min interval is 1 hour. After receiving the subscription request, the ambient thermometer sends a subscription reply to the electronic photo album, including the maximum interval threshold Max interval corresponding to the second time interval for sending event notifications supported by the thermometer, which is 3 hours.
[0111] Then, in step S302, the first requesting party determines whether the second time interval exceeds the first time interval. Continuing with the example of electronic album A as the first requesting party and the ambient thermometer as the target party, after receiving the subscription reply, electronic album A determines whether the maximum interval threshold (Max interval) corresponding to the first time interval is greater than the maximum interval ceiling (Max interval ceiling) corresponding to the second time interval.
[0112] Next, in step S303, in response to determining that the second time interval exceeds the first time interval, the first requester sends a second subscription request to the agent, where the second subscription request instructs the agent to receive event notifications from the target party, and the second subscription request includes the first time interval.
[0113] In the above example, since 3 hours > 1.5 hours, the second time interval exceeds the first time interval. Electronic Album A sends a second subscription request to the agent. The second subscription request includes: the identifier of the first requester, the identifier of the target party, and the second time interval. In this case, the first requester identifier indicates that the agent is acting as the agent for subscription management of Electronic Album A, the target party identifier identifies the thermometer, and the first time interval is the time interval range (1 hour, 1.5 hours) for which Electronic Album A wishes to receive event notifications.
[0114] Optionally, in the scenario shown in Figure 7, method 30 may further include the following steps: the proxy sends a third subscription request to the target party, the third subscription request including the identifier of the first requester and the first time interval; the target sends a response to the third subscription request to the proxy, the response to the third subscription request including the second time interval; the proxy sends a response to the first requester to the second subscription request, the response to the second subscription request indicating that the proxy will receive event notifications from the target party.
[0115] Specifically, in the above example, the proxy sends a third subscription request to the thermometer. The third subscription request includes: the first requesting party is electronic photo album A, and the time interval range for receiving event notifications is (1h, 1.5h). Then, the thermometer sends a response to the third subscription request to the proxy, and the response includes the maximum interval Maxinterval=3h corresponding to the second time interval supported by the thermometer. Then, the proxy sends a response to the first subscription request to electronic photo album A, and the response includes that the maximum interval for the proxy to send event notifications is 1.5h, indicating that the subscription is successful, and event notifications will be sent to it within the time interval range (1.5h) for sending event notifications that electronic photo album A wants to send.
[0116] Next, in the scenario shown in FIG7 , method 30 may further include the following steps: the second requester sends a fourth subscription request to the target, the fourth subscription request indicating that the second requester desires to receive event notifications within a fourth time interval. Then, the second requester receives a response to the fourth subscription request from the target, the response indicating that the target can send event notifications within the second time interval.
[0117] Take the second requesting party as electronic photo album B and the target party as an ambient thermometer as an example. The time interval range that electronic photo album B hopes to receive event notifications is (1h, 2h), and it starts to sleep after exceeding 2h. The inherent maximum interval threshold for sending event notifications built into the thermometer is 3h. In the above-mentioned step S301, electronic photo album B sends a subscription request to the ambient thermometer, including the fourth time interval (1h, 2h) that electronic photo album B hopes to receive event notifications, wherein the maximum interval threshold Max interval corresponding to the fourth time interval is 1.5 hours, and the minimum interval threshold Min interval is 1 hour. After receiving the subscription request, the ambient thermometer sends a subscription reply to the electronic photo album B, including the maximum interval threshold Max interval corresponding to the second time interval for sending event notifications supported by the thermometer is 3 hours.
[0118] Next, in the scenario shown in FIG7 , method 30 may further include the following steps: the second requester determines whether the second time interval exceeds a fourth time interval. Then, in response to determining that the second time interval exceeds the fourth time interval, the second requester sends a fifth subscription request to the proxy, wherein the fifth subscription request instructs the proxy to receive event notifications from the target, and the fifth subscription request includes the fourth time interval.
[0119] Let's continue with the example where the second requester is the electronic photo album B and the target party is the ambient thermometer. After receiving the subscription reply, the electronic photo album B determines whether the maximum interval threshold (Max interval) corresponding to the fourth time interval is greater than the maximum interval threshold (Max interval ceiling) corresponding to the second time interval. Since 3h>2h, it can be seen that the second time interval exceeds the fourth time interval. The electronic photo album B sends a fifth subscription request to the agent. The fifth subscription request includes: a second requester identifier, a target party identifier, and a second time interval. At this time, the second requester identifier indicates that the agent is acting as an agent for the subscription management of the electronic photo album B, the target party identifier identifies the thermometer, and the fourth time interval is the time interval range (1h, 2h) that the electronic photo album B hopes to receive event notifications.
[0120] Next, in the scenario shown in Figure 7, method 30 may also include the following steps: the proxy party determines whether a requesting party has subscribed to event notifications from the target party; in response to the requesting party having subscribed to event notifications from the target party, the proxy party sends a response to the fifth subscription request to the second requesting party.
[0121] Specifically, in the above example, the proxy determines that the first requester (electronic album A) has subscribed to event notifications from the target (thermometer). The proxy then sends a response to the first subscription request to electronic album B. This response includes a maximum interval of 2 hours for the proxy to send event notifications, indicating that the subscription is successful and that event notifications will be sent to electronic album B within the interval (2 hours) desired by electronic album B.
[0122] Assume that during event cycle 1 related to electronic album A (e.g., 12:00 PM to 1:30 PM), the agent does not receive an event notification from the thermometer. The agent sends an empty event notification to electronic album A. During event cycle 2 related to electronic album B (e.g., 12:00 PM to 2:00 PM), the agent does not receive an event notification from the thermometer. The agent sends an empty event notification to electronic album B. Then, assume that at 2:15 PM, the agent receives an event notification from the thermometer. At this point, both electronic albums A and B are dormant. Next, during event cycle 3 related to electronic album A (e.g., 2:30 PM to 4:00 PM), the agent sends the event notification it received from the thermometer at 2:15 PM to electronic album A, containing temperature data. During event cycle 3 related to electronic album B (e.g., 3:00 PM to 5:00 PM), the agent sends the event notification it received from the thermometer at 2:15 PM to electronic album B, containing temperature data. Therefore, when the thermometer cannot meet the event notification subscription requests of electronic album A and electronic album B, the subscription requirements of electronic album A and electronic album B can be met through the intermediary role of the agent.
[0123] Therefore, according to Figures 3 and 7, in aspect 2 of an embodiment of the present disclosure, the agent is further configured to perform the following operations: receive a third subscription request from a second requester, the third subscription request indicating that the agent receives event notifications from the target party and a fourth time interval, the fourth time interval being the time interval at which the second requester expects to receive event notifications from the agent; and send a response to the first subscription request to the second requester, the response to the first subscription request indicating that the agent will receive event notifications from the target party and send event notifications to the requester according to the fourth time interval.
[0124] Correspondingly, according to Figures 3 and 7, aspect 6 of an embodiment of the present disclosure also provides a system for subscription management in the Internet of Things, the system comprising a first requester, a second requester, a target party, and an agent. In aspect 6, the first requester sends a first subscription request to the target party, the first subscription request indicating that the first requester expects to receive event notifications within a first time interval; the first requester receives a response to the first subscription request from the target party, the response to the first subscription request indicating that the target party can send event notifications within a second time interval; the first requester determines whether the second time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, the first requester sends a second subscription request to the agent, the second subscription request indicating that the agent receives event notifications from the target party, and the second subscription request includes the first time interval; the agent sends a third subscription request to the target party, the third subscription request including an identifier of the first requester and the first time interval; the target sends a response to the third subscription request to the agent, the response to the third subscription request including the second time interval; the agent sends a response to the first requester a response to a second subscription request, the response to the second subscription request indicating that the proxy will receive event notifications from the target party; the second requester sends a fourth subscription request to the target party, the fourth subscription request indicating that the second requester expects to receive event notifications within a fourth time interval; the second requester receives a response to the fourth subscription request from the target party, the response to the fourth subscription request indicating that the target party can send event notifications within the second time interval; the second requester determines whether the second time interval exceeds the fourth time interval; in response to determining that the second time interval exceeds the fourth time interval, the second requester sends a fifth subscription request to the proxy, the fifth subscription request indicating that the proxy receives event notifications from the target party, and the fifth subscription request includes the fourth time interval; the proxy determines whether a requester has already subscribed to the target party for event notifications; in response to a requester having already subscribed to the target party for event notifications, the proxy sends a response to the fifth subscription request to the second requester.
[0125] Figure 8 is a schematic diagram illustrating the interaction between a requester, a target, and a proxy in an IoT according to an embodiment of the present disclosure, wherein the proxy implements method 30. In the scenario shown in Figure 8, the requester can delegate all subscription requests to the proxy. When subscribing to event notifications, the requester first sends a subscription request to the proxy, which then determines whether it should proxy the subscription to the target. This reduces the requester's decision-making process, reduces the requester's power consumption, and simplifies the subscription process.
[0126] As shown in Figure 8, in step S301, the agent receives a first subscription request from the requester, wherein the first subscription request indicates that the requester expects to receive event notifications within a first time interval; the agent sends a second subscription request to the target party, wherein the first subscription request indicates that the agent expects to receive event notifications within the first time interval; and the agent receives a response to the second subscription request from the target party, wherein the response to the second subscription request indicates that the target party can send event notifications within a second time interval.
[0127] Take the example of the requester being an electronic photo album and the target being an ambient thermometer. The electronic photo album wishes to receive event notifications within a time interval range of (1 hour, 1.5 hours), and will enter sleep mode after exceeding 1.5 hours. The thermometer has a built-in maximum interval threshold for sending event notifications of 3 hours. In step S301 above, the electronic photo album sends a first subscription request to the agent. The first subscription request optionally includes: a requester identifier (e.g., indicating that the requester is an electronic photo album), a target identifier (e.g., indicating that the target is a thermometer), and the first time interval (1 hour, 1.5 hours) at which the requester wishes to receive event notifications. The agent sends a second subscription request to the thermometer. Optionally, the second subscription request includes: a requester identifier (e.g., indicating that the requester is an electronic photo album), and the first time interval (1 hour, 1.5 hours) at which the requester wishes to receive event notifications. After receiving the second subscription request, the ambient thermometer sends a response to the second subscription request to the agent, the response including the maximum interval threshold (Max interval) of 3 hours corresponding to the second time interval for sending event notifications supported by the thermometer. Of course, the present disclosure is not limited thereto.
[0128] Then, in step S302, the proxy determines whether the second time interval exceeds the first time interval. Continuing with the example of the electronic photo album as the requester and the ambient thermometer as the target, after receiving the response to the second subscription request, the proxy determines whether the maximum interval threshold (Max interval) corresponding to the first time interval is greater than the maximum interval ceiling (Max interval ceiling) corresponding to the second time interval.
[0129] Next, in step S303, in response to determining that the second time interval exceeds the first time interval, the proxy receives an event notification from the target at the second time interval and notifies the requester at the first time interval.
[0130] In the above example, since 3 hours > 1.5 hours, the second time interval exceeds the first time interval. The agent sends a subscription reply to the electronic photo album, including a maximum time interval of 1.5 hours for the agent to send event notifications, and uses this value to indicate a successful subscription. At this point, the agent will send event notifications to the electronic photo album within the desired time interval (1.5 hours).
[0131] Optionally, in the scenario shown in Figure 8, method 30 may also include the following steps: in response to the proxy party not receiving an event notification from the target party within a first time interval, the proxy party sends an event notification of an empty message or a cached data message to the requester; and in response to the proxy party receiving an event notification from the target party within a second time interval, the proxy party sends an event notification containing the latest data of the target party to the requester.
[0132] Assume that during the electronic album's event cycle 1 (e.g., 12:00 PM to 1:30 PM), the agent does not receive an event notification from the thermometer. The agent sends an empty event notification to the electronic album. Then, assume that at 2:00 PM, the agent receives an event notification from the thermometer, at which point the electronic album has already gone dormant. Then, during the electronic album's active event cycle 2 (e.g., 2:30 PM to 4:00 PM), the agent sends the event notification it received from the thermometer at 2:00 PM to the electronic album, containing the temperature data.
[0133] Therefore, when the thermometer cannot meet the event notification subscription request of the electronic photo album, the subscription demand of the electronic photo album can be met through the intermediary role of the agent.
[0134] According to Figures 3 and 8, aspect 7 of the embodiments of the present disclosure further provides a proxy in an Internet of Things system, wherein the proxy is configured to perform the following operations: the proxy receives a first subscription request from a requester, the first subscription request indicating that the requester expects to receive event notifications within a first time interval; the proxy sends a second subscription request to a target, the first subscription request indicating that the proxy expects to receive event notifications within the first time interval; and the proxy receives a response to the second subscription request from the target, the response to the second subscription request indicating that the target can send event notifications within a second time interval; the proxy determines whether the second time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, the proxy receives event notifications from the target according to the second time interval and notifies the requester according to the first time interval; in response to the proxy not receiving an event notification from the target within the first time interval, the proxy sends an event notification of an empty message or a cached data message to the requester; and in response to the proxy receiving an event notification from the target within the second time interval, the proxy sends an event notification containing the latest data of the target to the requester.
[0135] Figure 9 is a schematic diagram illustrating the interaction between a requester, a first target, a second target, and a proxy in an IoT according to an embodiment of the present disclosure, wherein the proxy implements method 30. In the scenario shown in Figure 9, the requester can delegate all subscription requests for multiple targets to the proxy. When subscribing to event notifications, the requester first sends a subscription request to the proxy, which then determines whether it needs to proxy subscriptions to these targets. Applying method 30 in conjunction with the scenario shown in Figure 9 can reduce the requester's judgment process, reduce the requester's power consumption, and simplify the subscription process.
[0136] Optionally, as shown in FIG9 , the target party in method 30 includes a first target party and a second target party, the first target party can send an event notification within the second time interval, and the second target party can send an event notification within a third time interval.
[0137] Optionally, before the agent executes the method 30 shown in FIG8 , the agent may further execute the following operations to implement subscription to the event notification of the second target party.
[0138] As shown in Figure 9, the agent receives a third subscription request from the requester, wherein the third subscription request indicates that the requester expects to receive event notifications within a first time interval; the agent sends a fourth subscription request to the second target party, wherein the third subscription request indicates that the agent expects to receive event notifications within the first time interval; and the agent receives a response to the fourth subscription request from the second target party, wherein the response to the fourth subscription request indicates that the second target party can send event notifications within a third time interval.
[0139] Take the case where the requester is an electronic photo album and the second target party is an environmental hygrometer as an example. The time interval range in which the electronic photo album wishes to receive event notifications is (1h, 1.5h), and it starts to sleep after exceeding 1.5h. The hygrometer has a built-in inherent maximum interval threshold for sending event notifications of 1.25h. In the above-mentioned step S1.2501, the electronic photo album sends a third subscription request to the agent. The third subscription request optionally includes: a requester identifier (for example, indicating that the requester is an electronic photo album), a second target party identifier (for example, indicating that the second target party is a hygrometer), and a first time interval (1h, 1.5h) at which the requester wishes to receive event notifications. The agent sends a fourth subscription request to the hygrometer. Optionally, the fourth subscription request includes: a requester identifier (for example, indicating that the requester is an electronic photo album), and a first time interval (1h, 1.5h) at which the requester wishes to receive event notifications. After receiving the fourth subscription request, the environmental hygrometer sends a response to the fourth subscription request to the proxy, the response including the maximum interval threshold Max interval corresponding to the third time interval for sending event notifications supported by the hygrometer, which is 1.25 hours. Of course, the present disclosure is not limited to this.
[0140] The proxy then determines whether the third time interval exceeds the first time interval. Continuing with the example of the electronic photo album as the requesting party and the hygrometer as the second target party, after receiving the response to the fourth subscription request, the proxy determines whether the maximum interval threshold (Max interval) corresponding to the first time interval is greater than the maximum interval ceiling (Max interval ceiling) corresponding to the third time interval.
[0141] Then, in response to determining that the third time interval does not exceed the first time interval, the proxy receives an event notification from the second target at the third time interval and notifies the requester at the first time interval.
[0142] In the above example, since 1.25h < 1.5h, the third time interval does not exceed the first time interval. The agent sends a subscription reply to the electronic photo album, including a maximum time interval of 1.5h for the agent to send event notifications, and uses this value to indicate a successful subscription. At this point, the agent will send event notifications to the electronic photo album within the desired time interval (1.5h).
[0143] Then, in response to the proxy receiving the event notification from the second target within the third time interval, the proxy sends the event notification containing the latest data of the second target to the requester according to the first time interval.
[0144] Next, the proxy will continue to perform operations similar to those in FIG8 , including but not limited to: receiving a first subscription request from the requester, the first subscription request indicating that the requester desires to receive event notifications within a first time interval; sending a second subscription request to the first target, the first subscription request indicating that the proxy desires to receive event notifications within the first time interval; receiving a response to the second subscription request from the first target, the response indicating that the first target can send event notifications within a second time interval; determining whether the second time interval exceeds the first time interval; in response to determining that the second time interval exceeds the first time interval, receiving event notifications from the first target at the second time interval and notifying the requester at the first time interval; in response to the proxy not receiving an event notification from the first target within the first time interval, sending an event notification of an empty message or a buffered data message to the requester; and in response to the proxy receiving an event notification from the first target within the second time interval, sending an event notification containing the latest data of the first target to the requester. An example of the first target is a thermometer as described with reference to FIG8 . The above operations have been described in detail with reference to FIG8 , and will not be repeated herein.
[0145] FIG10 is another schematic diagram showing the interaction between the requester, the first target, the second target, and the agent in the Internet of Things according to an embodiment of the present disclosure, wherein the agent implements method 30. In the scenario shown in FIG10 , the requester can delegate all subscription requests for multiple target parties to the agent for processing, and require the agent to package and send event notifications to the requester after receiving event notifications from all target parties. In this case, the requester first sends a subscription request to the agent, and then the agent determines whether it needs to perform proxy subscriptions to these target parties. Applying method 30 in conjunction with the scenario shown in FIG10 can reduce the judgment process of the requester, reduce the power consumption of the requester, and make the subscription process simpler.
[0146] Specifically, in the example scenario of applying method 30 shown in Figure 10, method 30 is implemented by an agent, and the target party in method 30 includes a first target party and a second target party. The first target party can send event notifications within the second time interval, and the second target party can send event notifications within a third time interval.
[0147] For example, in the example scenario of application method 30 shown in Figure 10, method 30 also includes: in response to determining that the second time interval exceeds the first time interval, the agent receives an event notification from the first target party according to the second time interval; in response to determining that the third time interval does not exceed the first time interval, the agent receives an event notification from the second target party according to the third time interval; and the agent sends the event notifications from the first target party and the second target party to the requester according to the first time interval.
[0148] Specifically, as shown in FIG10 , in step S301, the proxy receives a first subscription request from a requester, the first subscription request indicating that the proxy receives event notifications from the first target and the second target, and the first subscription request includes the first time interval. The proxy sends a second subscription request to the first target, the second subscription request indicating that the proxy expects to receive event notifications from the first target within the first time interval; the proxy sends a third subscription request to the first target, the third subscription request indicating that the proxy expects to receive event notifications from the second target within the first time interval; the proxy receives a response to the second subscription request from the first target, the response indicating that the first target can send event notifications within the second time interval; and the proxy receives a response to the third subscription request from the second target, the response indicating that the second target can send event notifications within the third time interval.
[0149] For example, consider an electronic photo album as the requester, an ambient thermometer as the first target, and an ambient hygrometer as the second target. The electronic photo album wishes to receive event notifications within a time interval range of (1 hour, 1.5 hours), with sleep mode initiated after 1.5 hours. The thermometer has a built-in maximum interval threshold for sending event notifications of 3 hours, while the hygrometer has a built-in maximum interval threshold for sending event notifications of 1.5 hours. In step S301, the proxy sends a subscription request to the ambient thermometer and ambient hygrometer, including the first time interval (1 hour, 1.5 hours) for which the proxy wishes to receive event notifications. The maximum interval threshold (Max interval ceiling) for the first time interval is 1.5 hours, and the minimum interval threshold (Min interval) is 1 hour. After receiving the subscription request, the ambient thermometer sends a subscription reply to the proxy, including the maximum interval threshold (Max interval-1) for the second time interval supported by the thermometer for sending event notifications, which is 3 hours. After receiving the subscription request, the ambient hygrometer sends a subscription reply to the proxy, including the maximum interval threshold (Max interval-2) for the third time interval supported by the hygrometer for sending event notifications, which is 1.5 hours. The agent needs to jointly update the measurement data of the thermometer and hygrometer.
[0150] Next, in step S302 , the agent determines whether the second time interval exceeds the first time interval and whether the third time interval exceeds the first time interval.
[0151] Next, in step S303, in response to determining that at least one of the second time interval and the third time interval exceeds the first time interval, the proxy receives an event notification from the target at the second time interval and notifies the requester at the first time interval.
[0152] For example, after receiving the subscription reply, the agent determines that the maximum interval (Max interval - 1) exceeds the maximum interval threshold (Max Interval ceiling) for the first time interval, and that Max interval - 2 is less than or equal to the maximum interval ceiling. Therefore, at this point, the interval for at least one of the thermometer and hygrometer exceeds the first time interval, and the agent will initiate a joint subscription. The agent will then send a response to the requester regarding the first subscription request, including a maximum interval of 1.5 hours for the agent to send event notifications, and use this value to indicate a successful subscription. At this point, the agent will send event notifications to the electronic photo album within the desired interval (1.5 hours).
[0153] Optionally, in the scenario shown in Figure 10, method 30 may further include the following steps: in response to the proxy party not receiving an event notification from the first target party within the first time interval but receiving an event notification from the second target party, the proxy party sends an event notification of an empty message or a cached data message to the requester; and in response to the proxy party receiving an event notification from the first target party within the second time interval, the proxy party sends event notifications from the first target party and the second target party to the requester.
[0154] Specifically, in the above example, assume that during event cycle 1 corresponding to the first time interval (e.g., 12:00 PM to 1:30 PM), the agent does not receive an event notification from the thermometer, but receives an event notification from the hygrometer at 1:30 PM. The agent can then send an empty event notification to the electronic album. Alternatively, the agent may not send any messages to the electronic album during this period. Then, assume that at 2:00 PM the agent receives an event notification from the thermometer, at which point the electronic album is already dormant. Then, during event cycle 2, when the electronic album is active (e.g., 2:30 PM to 4:00 PM), the agent sends the event notification it received from the thermometer at 2:00 PM and the event notification it received from the hygrometer at 1:30 PM, containing both temperature and humidity data. Furthermore, if the agent receives another humidity data item at 3:00 PM, the agent will send one temperature data item and two humidity data items to the requester during event cycle 2 corresponding to the first time interval (e.g., 2:30 PM to 4:00 PM). Of course, the present disclosure is not limited to this.
[0155] Therefore, when the hygrometer or thermometer cannot meet the request for joint subscription event notification of the electronic photo album, the subscription demand of the electronic photo album can be met through the intermediary role of the agent.
[0156] Figure 11 is a schematic diagram showing the interaction between the first requester, the second requester, the target party and the agent in the Internet of Things according to an embodiment of the present disclosure. The example scenario of the application method 30 shown in Figure 11 involves a situation where multiple requesters need to subscribe to a single target party. In the current interactive process of subscription notifications, if the target party cannot meet the needs of multiple requesters, multiple requesters will not be able to obtain subscription data in a timely manner. To this end, by having the agent execute method 30 in the scenario shown in Figure 11, multiple requesters can subscribe to data from the agent. After the agent determines that other requesters will subscribe to the same target party data later, it will subscribe to data from the target party once and send data according to the time interval range desired by different requesters.
[0157] Specifically, in the example scenario of applying the method 30 shown in FIG11 , steps S301 to S303 in the method 30 are implemented by an agent.
[0158] Specifically, as shown in Figure 11, in step S301, the agent receives a first subscription request from a first requester, wherein the first subscription request indicates that the requester expects to receive event notifications within a first time interval; the agent sends a second subscription request to the target party, wherein the first subscription request indicates that the agent expects to receive event notifications within the first time interval; and the agent receives a response to the second subscription request from the target party, wherein the response to the second subscription request indicates that the target party can send event notifications within a second time interval.
[0159] Take the example where the first requester is an electronic photo album and the target party is an ambient thermometer. The time interval range for the electronic photo album to receive event notifications is (1h, 1.5h), and it starts to sleep after exceeding 1.5h. The built-in maximum interval threshold for sending event notifications in the thermometer is 3h. In the above-mentioned step S301, the electronic photo album sends a first subscription request to the agent. The first subscription request may optionally include: a first requester identifier (for example, indicating that the first requester is an electronic photo album), a target party identifier (for example, indicating that the target party is a thermometer), and a first time interval (1h, 1.5h) at which the first requester wishes to receive event notifications. The agent sends a second subscription request to the thermometer. Optionally, the second subscription request may include: a first requester identifier (for example, indicating that the first requester is an electronic photo album), and a first time interval (1h, 1.5h) at which the first requester wishes to receive event notifications. After receiving the second subscription request, the ambient thermometer sends a response to the second subscription request to the proxy, the response including the maximum interval threshold Max interval corresponding to the second time interval for sending event notifications supported by the thermometer, which is 3 hours. Of course, the present disclosure is not limited to this.
[0160] Then, in step S302, the proxy determines whether the second time interval exceeds the first time interval. Continuing with the example of the electronic photo album being the first requester and the ambient thermometer being the target, after receiving the response to the second subscription request, the proxy determines whether the maximum interval threshold (Max interval) corresponding to the first time interval is greater than the maximum interval ceiling (Max interval ceiling) corresponding to the second time interval.
[0161] Next, in step S303, in response to determining that the second time interval exceeds the first time interval, the proxy receives an event notification from the target at the second time interval and notifies the first requester at the first time interval.
[0162] In the above example, since 3 hours > 1.5 hours, the second time interval exceeds the first time interval. The agent sends a subscription reply to the electronic photo album, including a maximum time interval of 1.5 hours for the agent to send event notifications, and uses this value to indicate a successful subscription. At this point, the agent will send event notifications to the electronic photo album within the desired time interval (1.5 hours).
[0163] Optionally, in the scenario shown in Figure 11, method 30 may also include the following steps: the second requesting party sends a third subscription request to the agent, the third subscription request instructing the agent to receive event notifications from the target party within a fourth time interval; determining whether the second time interval exceeds the fourth time interval; in response to determining that the second time interval does not exceed the fourth time interval, the agent receives event notifications from the target party according to the fourth time interval and notifies the second requesting party according to the fourth time interval; in response to determining that the second time interval exceeds the fourth time interval, the agent receives event notifications from the target party according to the second time interval and notifies the second requesting party according to the fourth time interval.
[0164] Take the example of an electronic doorbell as the second requester and an ambient thermometer as the target. The electronic doorbell wishes to receive event notifications within a time interval range of (2.5 hours, 4 hours), and enters sleep mode after exceeding 4 hours. The thermometer has a built-in maximum interval threshold for sending event notifications of 3 hours. In step S301 above, the electronic doorbell sends a first subscription request to the agent. The first subscription request optionally includes: a first requester identifier (e.g., indicating that the first requester is an electronic doorbell), a target identifier (e.g., indicating that the target is a thermometer), and a first time interval (2.5 hours, 4 hours) at which the first requester wishes to receive event notifications. The agent sends a second subscription request to the thermometer. Optionally, the second subscription request includes: a first requester identifier (e.g., indicating that the first requester is an electronic doorbell), and a first time interval (2.5 hours, 4 hours) at which the first requester wishes to receive event notifications. After receiving the second subscription request, the ambient thermometer sends a response to the second subscription request to the proxy, the response including the maximum interval threshold Max interval corresponding to the second time interval for sending event notifications supported by the thermometer, which is 3 hours. Of course, the present disclosure is not limited to this.
[0165] In the above example, since 3 hours < 4 hours, the second time interval does not exceed the second time interval. The agent sends a subscription reply to the electronic doorbell, including a maximum interval of 4 hours for the agent to send event notifications, and uses this value to indicate that the subscription is successful. At this point, the agent will send event notifications to the electronic doorbell within the interval range (4 hours) that the electronic doorbell expects to send event notifications.
[0166] Optionally, in the scenario shown in Figure 11, method 30 may also include the following steps: in response to the proxy party not receiving an event notification from the target party within a first time interval, the proxy party sends an event notification of an empty message or a cached data message to the first request party; and in response to the proxy party receiving an event notification from the target party within a second time interval, the proxy party sends an event notification containing the latest data of the target party to the first request party.
[0167] Assume that during event cycle 1 of the electronic photo album (for example, from 12:00 noon to 1:30 pm), the agent does not receive an event notification from the thermometer, and the agent sends an event notification to the electronic photo album with empty content. Then, assume that at 2:00 pm the agent receives an event notification from the thermometer, at which time the electronic photo album has already gone to sleep. Then, during event cycle 2 when the electronic photo album is working (for example, from 2:30 pm to 4:00 pm), the agent sends the event notification it received from the thermometer at 2:00 pm to the electronic photo album, with the content being temperature data. The electronic doorbell may only work during event cycle 3 (for example, from 3:00 pm to 4:00 pm). The agent will send the temperature data at 2:00 pm to the electronic doorbell during the working period.
[0168] Therefore, when the thermometer cannot meet the event notification subscription request of the electronic photo album or electronic doorbell, the subscription demand of the electronic photo album or electronic doorbell can be met through the intermediary role of the agent.
[0169] Figure 12 is a schematic diagram illustrating a method 1200 for subscribing to notifications in an IoT system according to an embodiment of the present disclosure. Figure 13 is a flow chart illustrating a method 1200 for subscribing to notifications in an IoT system according to an embodiment of the present disclosure.
[0170] 13 , the IoT system according to an embodiment of the present disclosure includes a requester and a target. Method 1200 includes steps S1201 to S1203 .
[0171] In step S1201, a first time interval and a second time interval are determined, wherein the first time interval is a time interval during which the requesting party expects to receive event notifications from the target party, and the second time interval is a time interval during which the target party can send event notifications.
[0172] In step S1202, it is determined whether the second time interval exceeds the first time interval.
[0173] In step S1203, in response to determining that the second time interval exceeds the first time interval, a third time interval is determined based on the second time interval and the first time interval, where the third time interval is used to indicate a time interval for the target party to send event notifications.
[0174] Optionally, determining the first time interval and the second time interval includes sending, by the requester, a first subscription request to the target party, the first subscription request indicating that the requester desires to receive event notifications within the first time interval, and receiving, by the requester, a response to the first subscription request from the target party, the response to the first subscription request indicating that the target party is able to send event notifications within the second time interval. Of course, the present disclosure is not limited to this.
[0175] Optionally, as shown in Figure 12, method 1200 solves the problem that the requesting party may not receive the event notification sent by the target party by adjusting the second time interval of the target party from (MinIntervalFloorT, MaxIntervalCeilingT) to a third time interval (MinIntervalFloorNEW, MaxIntervalCeilingT), and adjusting the first time interval of the requesting party from (MinIntervalFloorR, MaxIntervalCeilingR) to a third time interval (MinIntervalFloorNEW, MaxIntervalCeilingT).
[0176] Optionally, assuming that the first time interval includes a first time and a second time, and the second time interval includes a third time, the third time interval may be determined by: determining a ratio of the first time to the second time based on the first time and the second time; and determining a fourth time based on the ratio of the first time to the second time and the third time, wherein the ratio of the fourth time to the third time is equal to the ratio of the first time to the second time.
[0177] Specifically, as shown in Figure 12, the first time refers to the difference between MaxIntervalCeilingR and MinIntervalFloorR, which represents the non-sleep time of the requester. The second time refers to MaxIntervalCeilingR, which represents the total duration of the requester's sleep time and non-sleep time. Therefore, the ratio A of the first time and the second time can be calculated as: A = (MaxIntervalCeilingR - MinIntervalFloorR) / MaxIntervalCeilingR. The third time refers to the total duration of the target's sleep time and non-sleep time, MaxIntervalCeilingT. The fourth time refers to the non-sleep time during which the target is expected to update, which can be calculated as MaxIntervalCeilingT - MinIntervalFloorNEW. By adjusting the ratio B of the fourth time to the third time to the same as ratio A, the time range for the improved target to send event notifications can be matched with the requester, meeting the requester's working and sleep time requirements. Among them, the ratio B can be calculated as: B = (MaxIntervalCeilingT - MinIntervalFloorNEW) / MinIntervalFloorNEW. When MinIntervalFloorNEW is solved, the third time interval (MinIntervalFloorNEW, MaxIntervalCeilingT) mentioned above can be obtained.
[0178] FIG14 is a schematic diagram illustrating interaction between a requester and a target in the Internet of Things according to an embodiment of the present disclosure, wherein the requester implements method 1200 .
[0179] As shown in Figure 14, in step S1201, the requesting party sends a first subscription request to the target party, wherein the first subscription request indicates that the requesting party expects to receive event notifications within a first time interval, and the requesting party receives a response to the first subscription request from the target party, wherein the response to the first subscription request indicates that the target party can send event notifications within a second time interval.
[0180] Take the requesting party as an electronic photo album and the target party as an ambient thermometer as an example. Among them, the time interval range for the electronic photo album to receive event notifications is (1h, 1.5h), and it starts to sleep after exceeding 1.5h. The inherent maximum interval threshold for sending event notifications built into the thermometer is 3h. In the above-mentioned step S1201, the electronic photo album sends a subscription request to the ambient thermometer, including the first time interval (1h, 1.5h) for the electronic photo album to receive event notifications, wherein the maximum interval threshold Max interval corresponding to the first time interval is 1.5 hours, and the minimum interval threshold Min interval is 1 hour. After receiving the subscription request, the ambient thermometer sends a subscription reply to the electronic photo album, including the maximum interval threshold Max interval corresponding to the second time interval for sending event notifications supported by the thermometer, which is 3 hours. Of course, the present disclosure is not limited to this.
[0181] Then, in step S1202, the requesting party determines whether the second time interval exceeds the first time interval. Continuing with the example of the electronic photo album being the requesting party and the ambient thermometer being the target party, after receiving the subscription reply, the electronic photo album determines whether the maximum interval threshold (Max interval) corresponding to the first time interval is greater than the maximum interval ceiling (Max interval ceiling) corresponding to the second time interval.
[0182] Next, in step S1203, in response to determining that the second time interval exceeds the first time interval, the requesting party determines a third time interval based on the second time interval and the first time interval, where the third time interval is used to indicate a time interval for the target party to send event notifications.
[0183] In the above example, since 3 hours > 1.5 hours, it can be seen that the second time interval exceeds the first time interval. The first time interval corresponding to the first time interval is 1.5 hours - 1 hour = 0.5 hours, and the second time interval is 1.5 hours. Therefore, ratio A can be calculated as 0.5 hours / 1.5 hours = 1 / 3. The third time interval of the second time interval is 3 hours. According to ratio B = ratio A, the fourth time interval can be calculated as 1 hour. Therefore, the third time interval can be determined as (2 hours, 3 hours).
[0184] The method 1200 may further include: the requester obtains a third time interval, and sends a second subscription request to the target party, where the second subscription request indicates that the requester will receive event notifications according to the third time interval.
[0185] Thus, the time intervals of both the requester and the target are adjusted to the third time interval, so that the requester can receive the event notification from the target.
[0186] FIG15 is a schematic diagram illustrating interaction between a requester and a target in an Internet of Things according to an embodiment of the present disclosure, wherein the target implements method 1200 .
[0187] As shown in FIG. 15 , in step S1201 , the target party receives a first subscription request from the requester, where the first subscription request indicates that the requester desires to receive event notifications within a first time interval.
[0188] Take the requesting party as an electronic photo album and the target party as an ambient thermometer as an example. Among them, the time interval range for the electronic photo album to receive event notifications is (1h, 1.5h), and it starts to sleep after exceeding 1.5h. The inherent maximum interval threshold for sending event notifications built into the thermometer is 3h. In the above-mentioned step S1201, the electronic photo album sends a subscription request to the ambient thermometer, including the first time interval (1h, 1.5h) for the electronic photo album to receive event notifications, wherein the maximum interval threshold Max interval corresponding to the first time interval is 1.5 hours, and the minimum interval threshold Min interval is 1 hour. After receiving the subscription request, the ambient thermometer determines that the maximum interval threshold Max interval corresponding to the second time interval for sending event notifications it supports is 3 hours. Of course, the present disclosure is not limited to this.
[0189] Then, in step S1202, the target party determines whether the second time interval exceeds the first time interval. Continuing with the example of the electronic photo album as the requester and the ambient thermometer as the target party, after receiving the subscription reply, the electronic photo album determines whether the maximum interval threshold (Max interval) corresponding to the first time interval is greater than the maximum interval ceiling (Max interval ceiling) corresponding to the second time interval.
[0190] Next, in step S1203, in response to determining that the second time interval exceeds the first time interval, the target party determines a third time interval based on the second time interval and the first time interval, where the third time interval is used to indicate a time interval for the target party to send event notifications.
[0191] In the above example, since 3 hours > 1.5 hours, it can be seen that the second time interval exceeds the first time interval. The first time interval corresponding to the first time interval is 1.5 hours - 1 hour = 0.5 hours, and the second time interval is 1.5 hours. Therefore, ratio A can be calculated as 0.5 hours / 1.5 hours = 1 / 3. The third time interval of the second time interval is 3 hours. According to ratio B = ratio A, the fourth time interval can be calculated as 1 hour. Therefore, the third time interval can be determined as (2 hours, 3 hours).
[0192] The method 1200 may further include: the target party acquiring a third time interval, and sending an event notification to the requesting party according to the third time interval.
[0193] Thus, the time intervals of both the requester and the target are adjusted to the third time interval, so that the requester can receive the event notification from the target.
[0194] Thus, the time intervals of both the requester and the target are adjusted to the third time interval, so that the requester can receive the event notification from the target.
[0195] FIG16 shows a schematic diagram of an electronic device 2000 according to an embodiment of the present disclosure.
[0196] As shown in Figure 16, the electronic device 2000 may include one or more processors 2010 and one or more memories 2020. The memory 2020 stores computer-readable code, which, when executed by the one or more processors 2010, may execute the method described above.
[0197] The processor in the embodiments of the present disclosure may be an integrated circuit chip having signal processing capabilities. The processor may be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The methods, operations, and logic block diagrams disclosed in the embodiments of the present disclosure may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor, and may be an X86 architecture or an ARM architecture.
[0198] In general, various example embodiments of the present disclosure may be implemented in hardware or dedicated circuitry, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the disclosed embodiments are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented, as non-limiting examples, in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or a controller or other computing device, or some combination thereof.
[0199] For example, the method or apparatus according to an embodiment of the present disclosure may also be implemented with the aid of the architecture of the computing device 3000 shown in FIG17 . As shown in FIG17 , the computing device 3000 may include a bus 3010, one or more CPUs 3020, a read-only memory (ROM) 3030, a random access memory (RAM) 3040, a communication port 3050 connected to a network, an input / output component 3060, a hard disk 3070, and the like. The storage device in the computing device 3000, such as the ROM 3030 or the hard disk 3070, may store various data or files used for processing and / or communication of the method provided by the present disclosure, as well as program instructions executed by the CPU. The computing device 3000 may also include a user interface 3080. Of course, the architecture shown in FIG17 is merely exemplary. When implementing different devices, one or more components in the computing device shown in FIG17 may be omitted according to actual needs.
[0200] According to another aspect of the present disclosure, a computer-readable storage medium is further provided. FIG18 shows a schematic diagram of a storage medium 4000 according to the present disclosure.
[0201] As shown in Figure 18, the computer storage medium 4020 stores computer-readable instructions 4010. When the computer-readable instructions 4010 are executed by the processor, the method according to the embodiment of the present disclosure described with reference to the above figures can be executed. The computer-readable storage medium in the embodiment of the present disclosure can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DR RAM). It should be noted that memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory. It should be noted that memory of the methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0202] The present disclosure also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform a method according to the present disclosure.
[0203] It should be noted that the flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the boxes can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified functions or operations, or can be implemented using a combination of dedicated hardware and computer instructions.
[0204] In general, various example embodiments of the present disclosure may be implemented in hardware or dedicated circuitry, software, firmware, logic, or any combination thereof. Certain aspects may be implemented in hardware, while other aspects may be implemented in firmware or software that may be executed by a controller, microprocessor, or other computing device. When various aspects of the disclosed embodiments are illustrated or described as block diagrams, flow charts, or using some other graphical representation, it will be understood that the blocks, devices, systems, techniques, or methods described herein may be implemented, as non-limiting examples, in hardware, software, firmware, dedicated circuitry or logic, general-purpose hardware or a controller or other computing device, or some combination thereof.
[0205] The exemplary embodiments of the present disclosure described in detail above are merely illustrative and not restrictive. Those skilled in the art will appreciate that various modifications and combinations may be made to these embodiments or their features without departing from the principles and spirit of the present disclosure, and such modifications should fall within the scope of the present disclosure.
Claims
1. A method for subscribing to notifications in an Internet of Things system, the Internet of Things system comprising a requester, a target, and an agent, the method comprising: Determining a first time interval and a second time interval, wherein the first time interval is a time interval during which the requesting party expects to receive an event notification from the target party, and the second time interval is a time interval during which the target party can send an event notification; determining whether the second time interval exceeds the first time interval; and In response to determining that the second time interval exceeds the first time interval, the proxy receives event notifications from the target at the second time interval and notifies the requester at the first time interval.
2. The method of claim 1, wherein: The target party includes a first target party and a second target party, the first target party can send an event notification within the second time interval, and the second target party can send an event notification within a third time interval, and the method further includes: In response to determining that the second time interval exceeds the first time interval, the proxy receives an event notification from the first target and notifies the requester according to the first time interval; In response to determining that the third time interval does not exceed the first time interval, the target party notifies the requester according to the first time interval.
3. The method of claim 1, wherein: The target party includes a first target party and a second target party, the first target party can send an event notification within the second time interval, and the second target party can send an event notification within a third time interval, and the method further includes: In response to determining that the second time interval exceeds the first time interval, the proxy receives an event notification from the first target at the second time interval and notifies the requester at the first time interval; In response to determining that the third time interval does not exceed the first time interval, the proxy receives an event notification from the second target at the third time interval and notifies the requester at the first time interval.
4. The method of claim 1, wherein: The target party includes a first target party and a second target party, the first target party can send an event notification within the second time interval, and the second target party can send an event notification within a third time interval, and the method further includes: In response to determining that the second time interval exceeds the first time interval, receiving, by the proxy party, an event notification from the first target party according to the second time interval; In response to determining that the third time interval does not exceed the first time interval, receiving, by the proxy party, an event notification from the second target party according to the third time interval; The proxy sends the event notification from the first target and the second target to the requester at the first time interval.
5. The method of claim 1, wherein: The requesting parties include a first requesting party and a second requesting party, the first subscription request comes from the first requesting party, and the method further includes: The second requester sends a third subscription request to the agent, wherein the third subscription request instructs the agent to receive event notifications from the target within a fourth time interval; determining whether the second time interval exceeds a fourth time interval; In response to determining that the second time interval does not exceed a fourth time interval, the proxy receives an event notification from the target at the fourth time interval and notifies the second requester at the fourth time interval; In response to determining that the second time interval exceeds a fourth time interval, the proxy receives event notifications from the target at the second time interval and notifies the second requester at the fourth time interval.
6. The method of claim 1, wherein: The method further comprises: In response to the proxy not receiving an event notification from the target within a first time interval, the proxy sends an event notification of an empty message or a buffered data message to the requester; and In response to the proxy receiving the event notification from the target within the second time interval, the proxy sends the event notification containing the latest data of the target to the requester.
7. The method of claim 1, wherein: Determining the first time interval and the second time interval includes: The requester sends a first subscription request to the target, wherein the first subscription request indicates that the requester expects to receive event notifications within a first time interval, and A response to the first subscription request is received by the requester from the target, the response to the first subscription request indicating that the target is capable of sending event notifications within a second time interval.
8. The method of claim 1, wherein: The requesting party determines whether the second time interval exceeds the first time interval, and in response to determining that the second time interval exceeds the first time interval, the requesting party sends a subscription request to the agent, so that the agent receives event notifications from the target party according to the second time interval and notifies the requesting party according to the first time interval.
9. The method of claim 1, wherein: Determining the first time interval and the second time interval includes: receiving, by the proxy, a first subscription request from a requestor, the first subscription request indicating that the requestor desires to receive event notifications within a first time interval, The proxy sends a second subscription request to the target, wherein the first subscription request indicates that the proxy expects to receive event notifications within a first time interval, and A response to the second subscription request is received by the proxy from the target, the response to the second subscription request indicating that the target is capable of sending event notifications within a second time interval.
10. A subscription management method for an Internet of Things system, the Internet of Things system comprising a requester, a target, and an agent, the method comprising: The requesting party sends a first subscription request to the target party, wherein the first subscription request indicates that the requesting party expects to receive event notifications within a first time interval; The requesting party receives a response to the first subscription request from the target party, wherein the response to the first subscription request indicates that the target party can send event notifications within a second time interval; determining, by the requesting party, whether the second time interval exceeds the first time interval; In response to determining that the second time interval exceeds the first time interval, the requester sends a second subscription request to the proxy, the second subscription request instructing the proxy to receive event notifications from the target, and the second subscription request includes the first time interval; The proxy sends a third subscription request to the target party, wherein the third subscription request includes an identifier of the requesting party and the first time interval; The target party sends a response to the third subscription request to the proxy party, wherein the response to the third subscription request includes the second time interval; The proxy sends a response to the second subscription request to the requester, wherein the response to the second subscription request indicates that the proxy will receive event notifications from the target; In response to the proxy not receiving an event notification from the target within a first time interval, the proxy sends an event notification of an empty message or a buffered data message to the requester; as well as In response to the proxy receiving an event notification from the target within a second time interval, the proxy sends an event notification containing the latest data of the target to the requester.
11. An agent in an Internet of Things system, the agent being configured to: receiving a first subscription request from a requester, the first subscription request indicating that the requester desires to receive event notifications within a first time interval; Sending a second subscription request to the target party, wherein the first subscription request indicates that the proxy party expects to receive event notifications within a first time interval; receiving a response to the second subscription request from the target party, the response to the second subscription request indicating that the target party is capable of sending event notifications within a second time interval; determining whether the second time interval exceeds the first time interval; In response to determining that the second time interval exceeds the first time interval, receiving event notifications from the target party at the second time interval and notifying the requester at the first time interval; In response to the proxy not receiving an event notification from the target within a first time interval, sending an event notification of an empty message or a buffered data message to the requester; as well as In response to the proxy receiving the event notification from the target within the second time interval, the proxy sends the event notification including the latest data of the target to the requester.
12. A method for subscribing to notifications in an Internet of Things system, the Internet of Things system comprising a requester and a target, the method comprising: Determining a first time interval and a second time interval, wherein the first time interval is a time interval during which the requesting party expects to receive an event notification from the target party, and the second time interval is a time interval during which the target party can send an event notification; determining whether the second time interval exceeds the first time interval; and In response to determining that the second time interval exceeds the first time interval, a third time interval is determined based on the second time interval and the first time interval, the third time interval being used to indicate a time interval for the target party to send an event notification.
13. The method of claim 12, wherein: Determining the first time interval and the second time interval includes: The requester sends a first subscription request to the target, wherein the first subscription request indicates that the requester expects to receive event notifications within a first time interval, and A response to the first subscription request is received by the requester from the target, the response to the first subscription request indicating that the target is capable of sending event notifications within a second time interval.
14. The method of claim 12, wherein: The first time interval includes a first time and a second time, the second time interval includes a third time, The determining the third time interval based on the second time interval and the first time interval comprises: determining a ratio of the first time and the second time based on the first time and the second time; and The fourth time is determined based on the ratio of the first time to the second time and the third time, and the ratio of the fourth time to the third time is equal to the ratio of the first time to the second time.
15. The method of claim 12, further comprising: The target party obtains a third time interval, and sends an event notification to the requesting party according to the third time interval.
16. The method of claim 12, further comprising: The requesting party obtains a third time interval, and sends a second subscription request to the target party, where the second subscription request indicates that the requesting party will receive event notifications according to the third time interval.
17. An electronic device, comprising: one or more processors; and one or more memories, Wherein, the memory stores computer-readable codes, and when the computer-readable codes are executed by the one or more processors, the methods according to claims 1-10 and 12-16 are executed.
18. A non-static computer-readable storage medium having instructions stored thereon, which, when executed by a processor, cause the processor to perform the method of claims 1-10 and 12-16.
Citation Information
Patent Citations
Method for subscribing notification in Internet of Things system
CN118869790A
Custom event notification method, server and system
CN105471604A
Equipment release and subscription design method based on RED-MOS industrial Internet of Things operation system
CN109995788A
Subscription message processing method and device, computer equipment and storage medium
CN110731074A
Apparatus and method for managing subscriptions of subscriber
CN115152196A
