WO2020118633A1 - 订阅消息的处理方法、装置、计算机设备和存储介质 - Google Patents

订阅消息的处理方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2020118633A1
WO2020118633A1 PCT/CN2018/120926 CN2018120926W WO2020118633A1 WO 2020118633 A1 WO2020118633 A1 WO 2020118633A1 CN 2018120926 W CN2018120926 W CN 2018120926W WO 2020118633 A1 WO2020118633 A1 WO 2020118633A1
Authority
WO
WIPO (PCT)
Prior art keywords
subscription
rcd
message
notification message
resource
Prior art date
Application number
PCT/CN2018/120926
Other languages
English (en)
French (fr)
Inventor
唐海
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to MX2021006828A priority Critical patent/MX2021006828A/es
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to SG11202105928UA priority patent/SG11202105928UA/en
Priority to EP18943219.8A priority patent/EP3876500B1/en
Priority to BR112021011218-9A priority patent/BR112021011218A2/pt
Priority to PCT/CN2018/120926 priority patent/WO2020118633A1/zh
Priority to AU2018453104A priority patent/AU2018453104B2/en
Priority to KR1020217019779A priority patent/KR102434673B1/ko
Priority to CN201880037161.4A priority patent/CN110731074B/zh
Priority to CN202310030618.1A priority patent/CN116319985A/zh
Priority to JP2021532982A priority patent/JP7166463B2/ja
Priority to CA3121940A priority patent/CA3121940A1/en
Publication of WO2020118633A1 publication Critical patent/WO2020118633A1/zh
Priority to US17/338,298 priority patent/US20210289343A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/59Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • H04W8/28Number portability ; Network address portability

Definitions

  • the present application relates to the field of Internet of Things technology, and in particular, to a subscription message processing method, device, computer equipment, and storage medium.
  • intelligent household appliances begin to enter the lives of ordinary residents, and intelligent household appliances can be divided into ordinary devices (Normal Devices, ND) and resource-constrained devices (Resource Constrained Device, RCD).
  • Ordinary equipment refers to equipment with strong capabilities in processing speed, continuous work, networking, etc.
  • Resource-restricted equipment is relatively lacking in hardware resources compared to ordinary equipment, resulting in poor business processing capabilities and endurance.
  • Resource-constrained devices may periodically go to sleep (saving power) in the network, or cannot process large numbers of business requests in real time.
  • the RCD can send subscription messages to other devices. After receiving the subscription message, other devices cache the request message, complete the subscription, and monitor the resources subscribed by the RCD. When the RCD subscribes to the resources When a change occurs, a notification message is sent to the RCD.
  • the RCD may be in a dormant state for a long time or periodically, or unable to process a large number of service requests in real time, there may be a possibility that the RCD does not receive the notification message in time, or the notification message may be omitted.
  • the RCD may be in a dormant state for a long time or periodically, or unable to process a large number of business requests in real time, so that the RCD may not receive the notification message in time or may miss the notification message.
  • Subscription message processing method, device, computer equipment and storage medium
  • an embodiment of the present invention provides a method for processing subscription messages.
  • the method includes:
  • the subscription device receives the subscription message; the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the subscription device monitors the target resource corresponding to the subscription resource identifier
  • the subscription device monitors the target resource sending change, it sends a notification message to the notification agent NS device according to the sending address of the notification message, so that the NS device forwards the notification message to the corresponding RCD.
  • the method before the subscription device monitors the target resource corresponding to the subscription resource identifier, the method further includes:
  • the subscription device authenticates whether the sending end of the subscription message has the right to subscribe to the target resource according to the device identifier carried in the subscription message;
  • the subscription device stores the subscription message and sends a subscription completion notification message to the sending end.
  • the sending end is an RCD or an NS device corresponding to the RCD.
  • the method further includes:
  • the subscription device receives a notification response message sent by the NS device.
  • an embodiment of the present invention provides a method for processing subscription messages.
  • the method includes:
  • the NS device receives the notification message sent by the subscribing device; the notification message is used to instruct the target resource subscribed by the RCD to send changes;
  • the NS device sends the notification message to the corresponding RCD.
  • the NS device sends the notification message to the corresponding RCD, including:
  • the NS device receives the query message sent by the RCD; the query message includes the ID of the RCD device;
  • the NS device determines the target resource ID corresponding to the RCD device ID according to the correspondence between the RCD device ID and the resource ID;
  • the NS device sends a notification message carrying the target resource identifier to the RCD.
  • the NS device receiving the query message sent by the RCD includes:
  • the NS device receives the query message sent by the RCD according to a preset period.
  • the method before the NS device receives the query message sent by the RCD, the method further includes:
  • the NS device broadcasts a notification message list;
  • the notification message list includes identification parameters for the RCD to identify the notification message;
  • the NS device receiving the query message sent by the RCD includes:
  • the NS device receives the query message sent after the RCD queries the notification message list.
  • the identification parameter includes: a target resource identification, an RCD device identification, or a subscription relationship identification code.
  • the method before the NS device receives the notification message sent by the subscription device, the method further includes:
  • the NS device receives the subscription message sent by the RCD; the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the NS device sends the subscription message to the subscription device.
  • the method further includes:
  • the NS device receives a subscription completion notification message sent by the subscription device; the subscription completion notification message is used to indicate that the NS device has permission to subscribe to the target resource;
  • the NS device forwards the subscription completion notification message to the corresponding RCD.
  • the method further includes:
  • the NS device receives a resource creation request sent by the RCD; the resource creation request is used to request the creation of a proxy resource on the NS device determined by the RCD;
  • the NS device creates a proxy resource according to the resource creation request
  • the NS device After the creation of the proxy resource is completed, the NS device sends a response message to the RCD; the response message includes the sending address of the notification message.
  • the NS device after the NS device receives the notification message sent by the subscription device, it further includes:
  • the NS device sends a notification response message to the subscription device.
  • an embodiment of the present invention provides a method for processing subscription messages.
  • the method includes:
  • RCD sends a subscription message;
  • the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the RCD receives a notification message sent by an NS device corresponding to the sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • the sending of the subscription message includes:
  • the RCD sends the subscription message to the NS device, so that the NS device forwards the subscription message to the subscription device;
  • the RCD sends the subscription message to the subscription device.
  • the method before the RCD receives the notification message sent by the NS device corresponding to the sending address of the notification message, the method further includes:
  • the RCD sends an inquiry message to the NS device; the inquiry message includes an RCD device identification;
  • the notification message sent by the NS device corresponding to the sending address of the notification message received by the RCD includes:
  • the RCD receives the notification message sent by the NS device according to the query message.
  • the RCD sending an inquiry message to the NS device includes:
  • the RCD sends the query message to the NS device according to a preset period; or,
  • the RCD queries the notification message list broadcast by the NS device, and if the notification message list indicates the notification message required by the RCD, sends the query message to the NS device; the notification message list includes the An identification parameter for the RCD to identify the notification message.
  • the identification parameter includes: a target resource identification, an RCD device identification, or a subscription relationship identification code.
  • the method before the RCD receives the notification message sent by the NS device corresponding to the sending address of the notification message, the method further includes:
  • the RCD receives a subscription completion notification message; the subscription completion notification message is used to indicate that the RCD or the NS device corresponding to the RCD has the right to subscribe to the target resource.
  • the method further includes:
  • the RCD receives the first response message sent by the NS device; the first response message includes the sending address of the notification message.
  • the method further includes:
  • the RCD sends a broadcast message;
  • the broadcast message includes a proxy resource type identifier;
  • the RCD receives a second response message sent by multiple NS devices according to the broadcast message
  • the RCD determines the target NS device from the plurality of NS devices according to the second response message.
  • the RCD determining the target NS device from the plurality of NS devices according to the second response message includes:
  • the RCD determines the NS device with the highest priority as the target NS device according to the priority of the NS device carried in each second response message.
  • an embodiment of the present invention provides a device for processing subscription messages.
  • the device includes:
  • the first receiving module is used for the subscription device to receive the subscription message;
  • the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • a monitoring module used by the subscription device to monitor the target resource corresponding to the subscription resource identifier
  • the first sending module is configured to send a notification message to the notification agent NS device according to the sending address of the notification message if the subscription device monitors the target resource transmission change, so that the NS device forwards the notification to the corresponding RCD news.
  • an embodiment of the present invention is a device for processing subscription messages.
  • the device includes:
  • the second receiving module is used for the NS device to receive the notification message sent by the subscribing device; the notification message is used to indicate that the target resource subscribed by the RCD changes.
  • the second sending module is used for the NS device to send the notification message to the corresponding RCD.
  • an embodiment of the present invention is a device for processing subscription messages.
  • the device includes:
  • the third sending module is used for the RCD to send a subscription message;
  • the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the third receiving module is used for the RCD to receive a notification message sent by an NS device corresponding to the sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • a computer device includes a memory and a processor.
  • the memory stores a computer program.
  • the processor executes the computer program, the following steps are implemented:
  • the subscription device receives the subscription message; the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the subscription device monitors the target resource corresponding to the subscription resource identifier
  • the subscription device monitors the target resource sending change, it sends a notification message to the notification agent NS device according to the sending address of the notification message, so that the NS device forwards the notification message to the corresponding RCD.
  • the NS device receives the notification message sent by the subscribing device; the notification message is used to instruct the target resource subscribed by the RCD to send changes;
  • the NS device sends the notification message to the corresponding RCD.
  • RCD sends a subscription message;
  • the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the RCD receives a notification message sent by an NS device corresponding to the sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • a computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the following steps are realized:
  • the subscription device receives the subscription message; the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the subscription device monitors the target resource corresponding to the subscription resource identifier
  • the subscription device monitors the target resource sending change, it sends a notification message to the notification agent NS device according to the sending address of the notification message, so that the NS device forwards the notification message to the corresponding RCD.
  • the NS device receives the notification message sent by the subscribing device; the notification message is used to instruct the target resource subscribed by the RCD to send changes;
  • the NS device sends the notification message to the corresponding RCD.
  • RCD sends a subscription message;
  • the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the RCD receives a notification message sent by an NS device corresponding to the sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • An embodiment of the present application provides a method, apparatus, computer device, and storage medium for processing subscription messages.
  • the subscription device first receives the subscription message including the sending address of the notification message and the subscription resource identifier, and then monitors the correspondence of the subscription resource identifier in the subscription message.
  • the target resource and when the target resource changes, send a notification message to the NS device, so that the NS device forwards the notification message to the corresponding RCD.
  • the RCD is in a sleep state for a long time or periodically, or unable to process large
  • the subscription device can forward the messages required by the RCD through the NS device, so that the RCD can receive messages in time without missing any message, which greatly improves the success rate of RCD to obtain messages.
  • FIG. 1 is an application environment diagram of a method for processing subscription messages provided by an embodiment
  • Figure 1.1 is a schematic diagram of the internal structure of the server provided by an embodiment
  • FIG. 2 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 3 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 4 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 5 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 6 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 7 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 8 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 9 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 10 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 11 is a schematic flowchart of a method for processing a subscription message provided by an embodiment
  • FIG. 11.1 is a schematic diagram of a method for determining a target NS device according to an embodiment
  • Figure 11.2 is a schematic diagram of the whole process of a method for processing subscription messages provided by an embodiment
  • FIG. 12 is a structural block diagram of a subscription message processing apparatus provided by an embodiment
  • FIG. 13 is a structural block diagram of a subscription message processing apparatus provided by an embodiment
  • FIG. 14 is a structural block diagram of a subscription message processing apparatus provided by an embodiment
  • 15 is a block diagram of an internal structure of a computer provided by an embodiment.
  • This application provides a processing method for subscription messages, which can be applied to the application environment shown in FIG. 1, including a resource-constrained device (Resource Constrained Device (RCD), a proxy device (Notification Sever, NS), and a subscription device,
  • RCD Resource Constrained Device
  • NS proxy device
  • the RCD, the NS device and the subscription device can communicate with each other, and the communication mode may be wireless communication, such as: WIFi, infrared communication, or 3G, 4G, 5G, etc., which is not limited in this embodiment.
  • the RCD may be an intelligent household appliance with limited resources, such as lamps and air conditioners, or an intelligent terminal, such as a mobile phone or a PAD.
  • the NS device may be the same type as the RCD, but the resource is not limited, or it may be a server.
  • the embodiment of the present application does not limit the specific type of the NS device.
  • the subscription device may be a server or other processing devices, which is not limited in this embodiment.
  • the above server may include a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the server is used to provide computing and control capabilities.
  • the server's memory includes non-volatile storage media and internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the operating system and computer programs in the non-volatile storage medium.
  • the database of the server is used to store the data of the processing method of the subscription message.
  • the server's network interface is used to communicate with other external devices through a network connection.
  • Embodiments of the present application provide a processing method, apparatus, computer equipment, and storage medium for subscription messages, which are intended to solve the problem that RCDs may be in a dormant state for a long time or periodically, or unable to process large-volume business requests in real time.
  • the technical problem that the RCD does not receive the notification message in time or the notification message is missed.
  • a method for processing a subscription message provided by an embodiment of the present application describes the embodiments with different execution subjects, where the execution subjects of FIGS. 2 and 3 are subscription devices, and those of FIGS. 4-8
  • the execution subject is an NS device, and the execution subject of FIGS. 9-11 is an RCD.
  • the execution subject of each embodiment may also be a device for processing subscription messages, where the device may implement part or all of resource update through software, hardware, or a combination of software and hardware.
  • FIG. 2 provides a method for processing a subscription message.
  • This embodiment relates to a specific process in which a subscription device sends a notification message to a corresponding RCD through an NS device.
  • the method includes:
  • a subscription device receives a subscription message; the subscription message includes a sending address of a notification message and a subscription resource identifier.
  • the subscription message is used by the RCD to subscribe to the required resources from other devices. It can include the sending address of the notification message and the subscription resource identifier, and can also include the device identifier of the sender of the subscription message, the identifier of the receiver of the subscription message, and the subscription message’s Operation type, etc.
  • the address of the notification message indicates the address of the notification message fed back by the subscription device to the resource device when the resource subscribed by the RCD changes.
  • the subscription resource identifier is the identity identifier of the resource that needs to be subscribed, and this identifier is used to distinguish it from other resources.
  • the subscription device receives a subscription message including the notification message sending address and the subscription resource identifier, where the subscription device may receive the subscription message sent by the RCD or the subscription message sent by the NS device.
  • the way in which the subscription device receives the subscription message may be through wireless communication, for example: WIFi, infrared communication, or 3G, 4G, 5G, etc., which is not limited in this embodiment.
  • the subscription device monitors the target resource corresponding to the subscription resource identifier.
  • the subscription device monitors the target resource corresponding to the subscription resource identifier in the subscription message, where the monitoring of the target resource by the subscription device may be monitoring the status of the target resource, for example: working status, usage
  • the monitoring of the target resource by the subscription device may be monitoring the status of the target resource, for example: working status, usage
  • the status and the like are not limited in this embodiment.
  • each resource corresponds to a resource identifier, that is, the resource corresponding to the subscription resource identifier carried in the subscription message is the target resource.
  • a maintenance relationship table of the sending end of the subscription message, the subscribed target resource and the address of the notification message can also be established in the subscription device, which is used for the subscription device to correctly send the notification message in the subsequent period.
  • the notification message is used to indicate that the resources subscribed to by the RCD have changed.
  • the selected notification agent helps the device to receive the notification message.
  • RCD is a device that has relatively poor business processing capacity and endurance due to the relatively lack of hardware resources. RCD may periodically enter a sleep state (save power) in the network or fail to process large numbers of business requests in real time .
  • the subscription device when the target resource monitored by the subscription device changes, for example, when the working state of the target resource changes, the subscription device sends a notification message to the NS device that the working state of the target resource changes, and the address sent is carried in the subscription message The sending address of the notification message.
  • the NS device receives the notification message, it forwards the notification message to the corresponding RCD.
  • the notification message sent by the subscribing device includes: from: 3rd device; to: RCD; op: notify; payload: ⁇ target resouce ⁇ .
  • the way in which the subscription device sends the notification message to the NS device and the way in which the NS device forwards the notification message to the RCD can be transmitted by wireless communication, such as: WIFi, infrared communication, or 3G, 4G, 5G, etc. This embodiment does not limit this.
  • This embodiment provides a method for processing a subscription message.
  • the subscription device first receives the subscription message including the sending address of the notification message and the subscription resource identifier, and then monitors the target resource corresponding to the subscription resource identifier in the subscription message, and occurs at the target resource.
  • send a notification message to the NS device so that the NS device forwards the notification message to the corresponding RCD, so that when the RCD is in a sleep state for a long time or periodically, or cannot process a large number of business requests in real time
  • the subscription device can Send the message required by the RCD to the NS device.
  • the NS device can forward the notification message to the RCD when the RCD is in the working state, so that the RCD can receive the message in time without missing any message, which greatly improves the success rate of the RCD to obtain the message.
  • an embodiment of the present application provides a method for processing a subscription message. This embodiment relates to the subscription device's authority to subscribe to the target resource according to the identifier of the sender device of the subscription message carried in the subscription message. The specific process of identification is shown in Figure 3. The method also includes:
  • the subscription device authenticates whether the sending end of the subscription message has the right to subscribe to the target resource according to the device identifier carried in the subscription message.
  • the subscription device authenticates whether the sending end of the subscription message has the right to subscribe to the target resource according to the device identifier carried in the subscription message, where the subscription device authenticates the authority of the sending end of the subscription message
  • the method may be to check whether the mapping relationship between the device identifier of the sending end of the subscription message and the target resource is stored. If it exists, it means that the sending end has the right to subscribe to the target resource, otherwise, it means not.
  • the mapping relationship between the device identifier of the sending end of the subscription message and the target resource needs to be stored in the database of the subscription device in advance to indicate that the subscription message is sent The end has the right to subscribe to the target resource.
  • the subscription device stores the subscription message and sends a subscription completion notification message to the sending end.
  • the subscription device determines that the sender has the permission to subscribe to the target resource, it stores the subscription message sent by the sender and sends a subscription completion notification message to the sender to notify The sender successfully subscribed the resource.
  • the way in which the subscription device sends the notification message to the sending end may be through WIFi, infrared communication, or 3G, 4G, 5G and other wireless methods, which is not limited in this embodiment.
  • the sending end may be an RCD or an NS device corresponding to the RCD.
  • the subscribing message may be sent directly to the subscribing device, or the RCD may send the subscribing message to the NS device, and then the NS device sends the subscribing message to the subscribing device.
  • the subscribing device when the sending end is an RCD, the subscribing device first identifies whether the RCD has the right to subscribe to the target resource according to the RCD identifier carried in the subscription message. When it is determined that the RCD has the right, the RCD sends the stored Subscribe to the message and send a subscription completion notification message to RCD. Similarly, when the sending end is an NS device, the subscribing device first authenticates whether the NS device has the right to subscribe to the target resource according to the identifier of the NS device carried in the subscription message, and stores the NS when it is determined that the NS device has the right The subscription message sent by the device and a subscription completion notification message are sent to the NS device. It can be understood here that the NS device is an RCD agent. After the subscription is successful, the subsequent NS device will receive the notification message sent by the subscription device, and the NS device will It is forwarded to the corresponding RCD.
  • the subscription device first identifies whether the sender of the subscription message has the right to subscribe to the target resource according to the identifier of the device carried in the subscription message. When it is determined that the sender has the right, Store the subscription message sent by the sending end, and send a subscription completion notification message to the sending end. In this way, the subsequent steps are performed only when the sending end has the right to subscribe to the target resource, which avoids the sending end having no access right from subscribing to the target resource, improves the safety and reliability of resource information, and avoids the waste of subscribing equipment resources and time.
  • the method further includes: the subscription device receiving the The notification response message sent by the NS device. Specifically, after sending the notification message to the NS device according to the notification message sending address, the subscription device receives the notification response message sent by the NS device. In this way, if the subscription device receives the notification response message sent by the NS device, it means that the subscription device sent The notification message is sent successfully, which greatly improves the success rate of sending messages from the subscribed device.
  • FIG. 4 provides a method for processing a subscription message.
  • This embodiment relates to a specific process in which an NS device receives a notification message sent by a subscription device and forwards the notification message to the RCD.
  • the method includes:
  • the NS device receives a notification message sent by the subscription device; the notification message is used to indicate a change in the target resource subscription of the RCD.
  • the NS device receives the notification message sent by the subscription device.
  • the notification message is used to indicate that the target resource subscribed by the RCD has changed.
  • the subscription device monitors that the working state of the target resource subscribed by the RCD has changed, and sends a notification message to NS device.
  • the specific format and sending method of the notification message can be referred to the description in FIG. 2 and will not be repeated here.
  • the NS device sends the notification message to the corresponding RCD.
  • the NS device receives the notification message sent by the subscription device, and the NS device sends the notification message to the corresponding RCD, where the NS device sends the notification message to the corresponding RCD may be that the NS device actively sends the notification message It can also be sent to the RCD after receiving the acquisition message sent by the RCD, and then sending the corresponding notification message to the RCD.
  • a method for processing a subscription message is provided.
  • the NS device first receives a notification message that the target resource of the RCD subscription sent by the subscription device sends a change, and then forwards the notification message to the RCD.
  • the subscription device can forward the message required by the RCD through the NS device, so that the RCD can receive the message in time without missing any message, which greatly improves the RCD's access to messages Success rate.
  • the method further includes the NS device sending a notification response message to the subscription device.
  • the NS device sends a notification response message to the subscribing device, so that the subscribing device determines that the notification message has been successfully sent, and can subsequently send the notification message to the NS device normally, thereby ensuring the success rate of the RCD to obtain the message and improving the communication quality .
  • this embodiment provides a method for processing subscription messages.
  • This embodiment relates to a specific process in which the NS device sends the notification message to the corresponding RCD according to the query message sent by the RCD.
  • the above step S302 includes:
  • the NS device receives a query message sent by the RCD; the query message includes the RCD device identifier.
  • the NS device receives the query message sent by the RCD, where the query message indicates that the RCD queries the NS device whether there is a notification message that it needs.
  • the query message includes the RCD device ID, and the device ID indicates the RCD's identity, The identification can be a number, a letter, or a combination of numbers and letters. This embodiment does not limit the RCD logo.
  • the RCD may periodically send a query message to the NS device, or the RCD may send a query message to the NS device after leaving the sleep mode, or, when the RCD learns that the NS device has its own notification message, it may The NS device sends a query message.
  • the NS device determines the target resource identifier corresponding to the RCD device identifier according to the correspondence between the RCD device identifier and the resource identifier.
  • the NS device receives the query message sent by the RCD, and the NS device determines the target resource ID corresponding to the RCD device ID according to the correspondence between the RCD device ID and the resource ID. It should be noted that there is a one-to-one correspondence between each RCD device ID and the target resource it needs, and it is stored in the NS device. The NS device searches for the resource corresponding to the RCD device ID among all the stored correspondences. To determine that the resource is a target resource required for RCD device identification.
  • the NS device sends a notification message carrying the target resource identifier to the RCD.
  • the NS device determines a notification message carrying the target resource based on the target resource required by the RCD device identification determined in S402, and then sends the notification message to the RCD.
  • a method for processing a subscription message receives the query message sent by the RCD, determines the identifier of the target resource according to the RCD identifier in the query message, and sends a notification message carrying the target resource identifier to the RCD
  • the target resource is located according to the correspondence between the RCD device ID and the resource ID, and then the accurate notification message is located according to the target resource, which greatly guarantees the notification sent by the NS device to the RCD The accuracy of the message.
  • the NS device receives the query message sent by the RCD includes two implementable ways, one of which includes: the NS device receives the RCD sent by the RCD according to a preset period Query messages.
  • the RCD may periodically send query messages to the NS device.
  • the preset period may be set by the user, which is not limited in this embodiment. For example: every 10 minutes, the query message sent by the RCD to the NS device, Or in a specific state, the query message sent by the RCD to the NS device, so that the RCD can actively send the query message to the NS device under the state of normal operation, to determine that the message can be received in time, without missing any message, greatly improved RCD's success rate in getting messages.
  • the NS device if the NS device receives the query message sent by the RCD, the NS device broadcasts a notification message list; the notification message list includes an identification for the RCD to identify the notification message Parameters; then "the NS device receives the query message sent by the RCD" includes: the NS device receives the query message sent after the RCD queries the notification message list.
  • the identification parameter includes: a target resource identification, an RCD device identification, or a subscription relationship identification code.
  • the identification parameter for the RCD to identify the notification message indicates the parameter that the RCD recognizes whether the notification message is a resource of its own resource when receiving the notification message list sent by the NS device.
  • the identification parameter may include: a target resource ID, an RCD device ID, or a subscription relationship identification code, where the target resource ID and the RCD device ID have been explained in the foregoing embodiment, and this embodiment will not repeat them here; the subscription The relationship identification code represents the identification code of the correspondence between the RCD device and the target resource to which it subscribes.
  • the identification code may be a number, a letter, or a combination of numbers and letters, which is not limited in this embodiment.
  • the NS device broadcasts a notification message list, which means that the NS device broadcasts all notification messages so that all RCDs can see the messages in the list, and the RCD sees that the NS device broadcast notification message list contains the notification messages it needs. Then send a query message containing the subscription resource identifier and/or RCD identifier to the NS device, so that after receiving the query message, the NS device sends the correct notification message to the correct one according to the notification message identifier and/or RCD identifier RCD greatly guarantees the correctness of RCD to obtain messages.
  • the NS device will delete the notification message at the same time, but it will retain the notification address of the resource in the created notification message.
  • this embodiment of the present application provides a method for processing a subscription message, which involves the NS device sending the received RCD.
  • the specific process of sending a subscription message to a subscription device, as shown in FIG. 6, the method further includes:
  • the NS device receives a subscription message sent by the RCD; the subscription message includes a sending address of a notification message and a subscription resource identifier.
  • the NS device receives the subscription message sent by the RCD, where the subscription message represents a notification that the RCD needs to change the state of the predetermined target resource.
  • the subscription message includes the sending address of the notification message and the subscription resource identifier.
  • the subscription resource identifier is the same as the resource identifier described in the above embodiment, which is used to distinguish each resource.
  • the identifier may be a number, a letter, or a combination of numbers and letters.
  • the NS device sends the subscription message to the subscription device.
  • the NS device receives the subscription message sent by the RCD, and the NS device sends the subscription message to the subscription device, so that the subscription device changes the correct subscription resource according to the sending address and the subscription resource identifier of the notification message in the subscription message
  • the notification message is sent to the NS device corresponding to the RCD.
  • This embodiment provides a method for processing a subscription message.
  • the NS device receives the subscription message sent by the RCD, and sends the subscription message to the subscription device according to the sending address of the notification message contained in the subscription resource and the subscription resource identifier.
  • the subscription The device can send the notification message to the correct address when the correct subscription resource changes according to the sending address of the notification message and the identifier of the subscription resource, so that the RCD can receive the message in time without missing any message, which greatly improves the RCD acquisition The success rate of the message.
  • this embodiment of the present application provides a method for processing a subscription message. This embodiment This involves the specific process of forwarding the subscription completion notification message to the RCD after the NS device receives the subscription completion notification message sent by the subscription device. As shown in FIG. 7, the method further includes:
  • the NS device receives a subscription completion notification message sent by the subscription device; the subscription completion notification message is used to indicate that the NS device has the right to subscribe to the target resource.
  • the NS device receives the subscription completion notification message sent by the subscription device, where the subscription completion notification message indicates that the NS device has the right to subscribe to the target resource, that is, if the NS device receives the subscription completion notification message sent by the subscription device , The NS device has the right to subscribe to the target resource, and the subscription is successful.
  • the NS device forwards the subscription completion notification message to the corresponding RCD.
  • the NS device receives the subscription completion notification message sent by the subscription device, and forwards the subscription completion notification message to the corresponding RCD, so that the RCD can determine that the subscription is successful.
  • a method for processing a subscription message is provided.
  • the NS device receives a subscription completion notification message sent by the subscription device, and forwards the subscription completion notification message to the corresponding RCD. This can ensure that the RCD determines that the subscription message has been successfully received by the subscription device. Receive, and the RCD device learns that the subscription is successful, and will not repeatedly send subscription messages or subscribe resources to other devices.
  • the embodiment of the present application since the RCD may be in a state where it cannot receive messages normally, an NS device needs to be selected to help it receive the notification message, that is, a device with resources required by the RCD needs to be found to act as a proxy device, which is implemented in one implementation.
  • the embodiment of the present application provides a method for processing subscription messages. The specific process of the RCD involved in this embodiment to create a proxy resource to an NS device, as shown in FIG. 8, the method further includes:
  • the NS device receives a resource creation request sent by the RCD; the resource creation request is used to request the creation of a proxy resource on the NS device determined by the RCD.
  • the creation of the proxy resource indicates the type of resource required by the RCD.
  • the NS device receives the resource creation request sent by the RCD.
  • the resource creation request is used to request the creation of a proxy resource on the NS device determined by the RCD. That is, the NS device receives the resource creation request sent by the RCD, indicating that the RCD has selected the NS device. For the proxy device, and request the NS device to create a proxy resource.
  • the resource creation request may include an RCD device identifier and a target resource identifier, and may also include a subscription relationship identification code, which is used to identify the correspondence between the RCD device and the subscription target resource.
  • an example of a resource creation request sent by RCD may include: from: RCD device ID (message sender); to: Notification Server ID + notificaiton server (resource ID) (requested resource ID); op: Create (operation type) ; Rt: notification (created resource type).
  • the NS device creates a proxy resource according to the resource creation request.
  • the NS device receives the resource creation request sent by the RCD, and the NS device creates a proxy resource according to the resource creation request, where the NS device can create the proxy resource by using the RCD device ID, NS device ID, and target resource
  • the ID is saved to establish the type of resources that can be proxied.
  • the NS device can also establish a relationship table between the RCD device ID, the sending address of the notification message, and the target resource ID, which is used for subsequent RCDs to receive correctly according to the resource ID Notification message.
  • the NS device After the NS resource is created, the NS device sends a response message to the RCD; the response message includes the sending address of the notification message.
  • the NS device sends a response message to the RCD.
  • the response message indicates that the NS device has successfully created the resource.
  • the response message includes the sending address of the notification message, so that the RCD can This address correctly receives subsequent notification messages.
  • a method for processing a subscription message is provided.
  • the NS device creates a proxy resource according to the resource creation request sent by the RCD, and establishes a relationship table between the RCD, the notification message sending address, and the resource identifier, and then feeds back a response message to the RCD.
  • the RCD can correctly receive subsequent notification messages according to the relationship between the notification message address carried in the response message and the RCD, the notification message sending address, and the resource identifier, which greatly guarantees the RCD Get the correct rate of the message.
  • FIG. 9 provides a method for processing a subscription message. This embodiment relates to the RCD sending a subscription message and receiving the notification message sent by the NS device corresponding to the sending address of the notification message included in the subscription message. Specific process. As shown in Figure 9, the method includes:
  • the RCD sends a subscription message; the subscription message includes the sending address of the notification message and the subscription resource identifier.
  • the RCD sends a subscription message, either to the NS device or to the subscription device.
  • the subscription message is used to receive a notification message when the target resource changes.
  • the subscription message sent includes the notification message. Sending address and subscription resource identification.
  • the RCD receives a notification message sent by an NS device corresponding to a sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • the RCD Based on the subscription message sent by the RCD in step S801 above, the RCD receives a notification message sent by the NS device, where the notification message represents a notification message sent by the subscription device after the resources subscribed to by the RCD have changed. It should be noted that whether the RCD sends a subscription message to the NS device or a subscription device, the subscription device sends the notification message to the NS device first, and then the NS device sends it to the RCD.
  • This embodiment provides a method for processing a subscription message.
  • the subscription device After the RCD first sends the subscription message to the NS device (the NS device forwards to the subscription device) or the subscription device, the subscription device will send a notification message after the resources subscribed by the RCD change To the NS device, and then the RCD receives the notification message sent by the NS device.
  • the NS device forwards in the middle, it can ensure that the RCD can receive the message in time without missing any message, which greatly improves the success rate of the RCD to obtain the message.
  • the RCD sending the subscription message includes: the RCD sending the subscription message to the NS device, so that the NS device forwards the subscription message to the subscription device; or, The RCD sends the subscription message to the subscription device.
  • the RCD sending the subscription message may be that the RCD sends the subscription message to the NS device, and the NS device will forward the subscription message to the subscription device, or the RCD sends the subscription message to the subscription device.
  • the follow-up notification message will be sent to the NS device so that the NS device can forward it to the RCD to ensure that the RCD can receive the message in time without missing any message, which greatly improves the success rate of the RCD to obtain the message.
  • the RCD before the RCD receives the notification message sent by the NS device corresponding to the sending address of the notification message, if the RCD sends a query message to the NS device; the query message includes an RCD identifier. Then, the RCD receives the notification message sent by the NS device corresponding to the sending address of the notification message, including: the RCD receives the notification message sent by the NS device according to the query message. Among them, the RCD sends a query message to the NS device, indicating that the RCD needs to query the NS device for the required notification message, where the query message includes the RCD identifier, and then the NS device sends a notification after receiving the query message sent by the RCD The message is given to the RCD. In this way, the flexibility of the timing of the RCD obtaining the notification message is improved, and the success rate of the RCD obtaining the message is greatly ensured.
  • the RCD in the foregoing embodiment sends the query message to the NS device, including: the RCD sends the query message to the NS device according to a preset period; or, the RCD queries the notification broadcast by the NS device A message list, if the notification message list indicates a notification message required by the RCD, the query message is sent to the NS device; the notification message list includes information for the RCD to identify the notification message Identify the parameters.
  • the identification parameter includes: a target resource identification, an RCD device identification, or a subscription relationship identification code.
  • the query message sent by the RCD may be sent by the RCD according to a preset period, and the preset period may be set by the user, which is not limited in this embodiment.
  • the RCD sends Query message to NS device, or under certain conditions, the query message sent by RCD to NS device, so that RCD can actively send the query message to NS device in a state of normal operation, to ensure that the message can be received in time, without missing any One message greatly improves the success rate of RCD in obtaining messages.
  • the query message sent by the RCD may also be a notification message list broadcast by the RCD querying the NS device, and if the notification message list indicates the notification message required by the RCD, the query message is sent to the NS device
  • the notification message list includes an identification parameter for the RCD to identify the notification message
  • the identification parameter may include: a target resource identification, an RCD device identification, or a subscription relationship identification code.
  • the NS device broadcasts a notification message list, which means that the NS device broadcasts all notification messages so that all RCDs can see the messages in the list, and the RCD sees that the NS device broadcast notification message list contains the notifications it needs Message, the query message containing the identifier of the notification message and the RCD identifier is sent to the NS device.
  • the NS device sends the correct notification message to the resource identifier and the RCD identifier carried in the notification message.
  • the correct RCD greatly guarantees the correctness of the RCD to obtain the message.
  • the RCD Before the RCD receives the notification message sent by the NS device, the RCD will first receive the subscription completion notification message, which has ensured that the RCD has the right to subscribe to the target resource.
  • the method further includes: the RCD receiving a subscription completion notification message; the subscription completion notification message is used to indicate that the RCD or the NS device corresponding to the RCD has the right to subscribe to the target resource.
  • the RCD receives the subscription completion notification message. If the RCD sends the subscription message to the NS device, the RCD receives the subscription completion notification message from the NS device. If the RCD sends the subscription message to the subscription device, the RCD receives the subscription device. Of the subscription completion notification message, in this way, the RCD determines that the RCD or its corresponding NS device has the right to subscribe to the target resource according to the received subscription completion notification message, thereby ensuring the success rate of the RCD obtaining the message.
  • this embodiment A method for processing subscription messages is provided. This embodiment relates to a specific process in which an RCD sends a resource creation request to an NS device and receives a first response message sent by the NS device. As shown in FIG. 10, the method further includes :
  • the RCD sends a resource creation request to an NS device; the resource creation request is used to request the creation of a proxy resource on the NS device determined by the RCD.
  • creating a proxy resource indicates the type of resource required by the RCD.
  • the resource creation request sent by the RCD is used to request the creation of a proxy resource on the NS device determined by the RCD, that is, the NS device sent by the RCD is a proxy device selected by the RCD, and requests the proxy device (NS device) to create a proxy resource.
  • the RCD receives a first response message sent by the NS device; the first response message includes a sending address of a notification message.
  • the RCD sends a resource creation request to the NS device.
  • the NS device creates the resource type according to the request
  • the NS device sends a first response message to the RCD.
  • the first response message indicates that the NS device has successfully created resources.
  • the first reply message includes the sending address of the notification message, so that the RCD can correctly receive subsequent notification messages according to the address.
  • the RCD sends a resource creation request to the NS device and receives the first response message after the NS device creates a resource request successfully.
  • the RCD After receiving the first response message, the RCD The subsequent notification message is correctly received according to the address of the notification message carried in the first response message, which greatly ensures the correct rate of the RCD to obtain the message.
  • an embodiment of the present application provides a method for processing a subscription message, which involves the specific process of RCD determining a target NS device. As shown in FIG. 11, the method further includes:
  • the RCD sends a broadcast message; the broadcast message includes a proxy resource type identifier.
  • the proxy resource type identifier indicates the identity of the type of resource required by the RCD, which may be a number, a letter, or a combination of numbers and letters.
  • the RCD sends a broadcast message indicating that the RCD needs to find an NS device with the resources required by the RCD.
  • the broadcast message includes the proxy resource type identifier. Among them, the broadcast message can be received by multiple NS devices.
  • the RCD receives a second response message sent by multiple NS devices according to the broadcast message.
  • the multiple NS devices that receive the broadcast message from the RCD will send a second response message to the RCD, that is, the RCD receives the second response message sent by the multiple NS devices according to the broadcast message.
  • the second response message indicates that the plurality of NS devices all meet the conditions for becoming a proxy device of the RCD.
  • each NS device sends a second response message to the RCD using a unicast method.
  • the RCD determines a target NS device from the plurality of NS devices according to the second response message.
  • the RCD determines the target NS device from the plurality of NS devices.
  • an implementable way for the RCD to determine the target NS device from the multiple NS devices includes: according to the priority of the NS device carried in each second response message, the RCD assigns the NS device with the highest priority Determined as the target NS device.
  • the priority of the NS device indicates the preference of each NS device as the target NS device, and the NS device with the higher priority is more suitable as the target NS device.
  • the second response message sent by each NS device will carry its own priority, then the RCD determines the NS device with the highest priority as the target NS device according to the priority of the NS device carried in each second response message .
  • the overall process may be: the RCD sends a resource creation request to the NS device, and after receiving the resource creation request, the NS device sends the first Second response message to RCD, and then RCD sends a subscription request to NS device (NS device then sends the subscription request to the subscription device) or the subscription device, after the subscription device receives the subscription request, whether the RCD or NS device has the subscription resource Authorization verification.
  • the subscription device monitors the status of the resource and sends a notification message to the NS device when the resource status changes.
  • the NS device stores the message after receiving the notification message , And send the notification message to the RCD, where there are two ways for the NS device to send the notification message to the RCD: Method 1: The RCD periodically sends a notification message query to the NS device, and the NS device receives the query message sent by the RCD , Find the message and send it to RCD; Method 2: The NS device periodically broadcasts a list of all notification messages stored on it. After receiving the broadcast message, the RCD checks the notification message list to see if there is a required notification message. If so, The RCD sends a request to obtain the notification message to the NS device. After receiving the request, the NS device sends the corresponding notification message to the RCD.
  • This embodiment provides a method for processing a subscription message.
  • the RCD receives the second response message sent by each NS device according to the broadcast message, and according to the priority of each NS device carried in the second response message, assigns the NS with the highest priority
  • the device is determined to be the target NS device. In this way, the last selected target NS device is the optimal choice for the RCD proxy device due to the highest priority, which greatly increases the success rate and accuracy of RCD message acquisition.
  • steps in the flowcharts of FIGS. 2-11 are displayed in order according to the arrows, the steps are not necessarily executed in the order indicated by the arrows. Unless clearly stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in FIGS. 2-11 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. These sub-steps or stages The execution order of is not necessarily sequential, but may be executed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.
  • a device for processing subscription messages includes: a first receiving module 10, a monitoring module 11, and a first sending module 12. among them,
  • the first receiving module 10 is used for a subscription device to receive a subscription message;
  • the subscription message includes a sending address of a notification message and a subscription resource identifier;
  • the first sending module 12 is configured to send a notification message to the notification proxy NS device according to the sending address of the notification message if the subscription device monitors the target resource transmission change, so that the NS device forwards the notification to the corresponding RCD Notification message.
  • the apparatus for processing a subscription message provided by the foregoing embodiment has an implementation principle and technical effects similar to those of the foregoing method embodiment, and details are not described herein again.
  • a device for processing subscription messages includes: a second receiving module 13 and a second sending module 14. among them,
  • the second receiving module 13 is used for the NS device to receive the notification message sent by the subscribing device; the notification message is used to indicate the change of the target resource subscription of the RCD subscription;
  • the second sending module 14 is used for the NS device to send the notification message to the corresponding RCD.
  • the apparatus for processing a subscription message provided by the foregoing embodiment has an implementation principle and technical effects similar to those of the foregoing method embodiment, and details are not described herein again.
  • a device for processing subscription messages includes: a third sending module 15 and a third receiving module 16. among them,
  • the third sending module 15 is used for the RCD to send a subscription message; the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the third receiving module 16 is used for the RCD to receive a notification message sent by an NS device corresponding to the sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • the apparatus for processing a subscription message provided by the foregoing embodiment has an implementation principle and technical effects similar to those of the foregoing method embodiment, and details are not described herein again.
  • Each module in the above message subscription device may be implemented in whole or in part by software, hardware, or a combination thereof.
  • the above modules may be embedded in the hardware or independent of the processor in the computer device, or may be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 15.
  • the computer device includes a processor, memory, network interface, and database connected by a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a computer program, and a database.
  • the internal memory provides an environment for the operating system and computer programs in the non-volatile storage medium.
  • the database of the computer device is used to store the processing data of the subscription message.
  • the network interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, a method for processing subscription messages is realized.
  • FIG. 15 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
  • a computer device which includes a memory and a processor, and a computer program is stored in the memory, and the processor implements the following steps when the processor executes the computer program:
  • the subscription device receives the subscription message; the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the subscription device monitors the target resource corresponding to the subscription resource identifier
  • the subscription device monitors the target resource sending change, it sends a notification message to the notification agent NS device according to the sending address of the notification message, so that the NS device forwards the notification message to the corresponding RCD.
  • the NS device receives the notification message sent by the subscribing device; the notification message is used to instruct the target resource subscribed by the RCD to send changes;
  • the NS device sends the notification message to the corresponding RCD.
  • RCD sends a subscription message;
  • the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the RCD receives a notification message sent by an NS device corresponding to the sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the following steps are realized:
  • the subscription device receives the subscription message; the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the subscription device monitors the target resource corresponding to the subscription resource identifier
  • the subscription device monitors the target resource sending change, it sends a notification message to the notification agent NS device according to the sending address of the notification message, so that the NS device forwards the notification message to the corresponding RCD.
  • the NS device receives the notification message sent by the subscribing device; the notification message is used to instruct the target resource subscribed by the RCD to send changes;
  • the NS device sends the notification message to the corresponding RCD.
  • RCD sends a subscription message;
  • the subscription message includes the sending address of the notification message and the subscription resource identifier;
  • the RCD receives a notification message sent by an NS device corresponding to the sending address of the notification message; the notification message is used to indicate a target resource transmission change corresponding to the subscription resource identifier.
  • the computer-readable storage medium provided by the foregoing embodiments has similar implementation principles and technical effects as the foregoing method embodiments, and details are not described herein again.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain (Synchlink) DRAM
  • SLDRAM synchronous chain (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Abstract

一种订阅消息的处理方法、装置、计算机设备和存储介质,订阅设备先接收包含通知消息的发送地址和订阅资源标识的订阅消息,然后监控该订阅消息中订阅资源标识对应的目标资源,并在目标资源发生变化时,向NS设备发送通知消息,以使NS设备向对应的RCD转发该通知消息,这样,在RCD长时间或者周期性处于休眠状态、或无法实时处理大批量的业务请求时,订阅设备可以将该RCD需要的消息通过NS设备进行转发,使得RCD可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。

Description

订阅消息的处理方法、装置、计算机设备和存储介质 技术领域
本申请涉及物联网技术领域,特别是涉及一种订阅消息的处理方法、装置、计算机设备和存储介质。
背景技术
随着物联网以及智能家居技术和产业的发展,智能化家用电器开始进入到普通居民的生活当中,而智能化家用电器设备可以分为普通设备(Normal Device,ND)和资源受限设备(Resource Constrained Device,RCD)。普通设备指在处理速度、持续工作、联网等方面的能力较强的设备,资源受限设备是相对于普通设备而言,其硬件资源相对匮乏,导致其业务处理能力和续航能力都较差,资源受限设备在网络中可能会周期性进入睡眠状态(节省电力)、或无法实时处理大批量的业务请求等。
当RCD需要订阅其它设备的内容时,RCD可以向其它设备发送订阅消息,其它设备在接收到订阅消息后,缓存该请求消息,完成订阅,并监控该RCD订阅的资源,当该RCD订阅的资源发生变化时,向RCD发送通知消息。
但是,由于RCD可能长时间或者周期性处于休眠状态、或无法实时处理大批量的业务请求,因此可能存在RCD接收通知消息不及时、或者遗漏通知消息的可能。
发明内容
基于此,有必要针对上述由于RCD可能长时间或者周期性处于休眠状态、或无法实时处理大批量的业务请求,因此可能存在RCD接收通知消息不及时、或者遗漏通知消息的技术问题,提供一种订阅消息的处理方法、装置、计算机设备和存储介质。
第一方面,本发明实施例提供一种订阅消息的处理方法,所述方法包括:
订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述订阅设备监控所述订阅资源标识对应的目标资源;
若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
在其中一个实施例中,所述订阅设备监控所述订阅资源标识对应的目标资源之前,还包括:
所述订阅设备根据所述订阅消息中携带的设备标识,鉴权所述订阅消息的发送端是否具有订阅所述目标资源的权限;
若所述发送端具有订阅所述目标资源的权限,则所述订阅设备存储所述订阅消息,并向所述发送端发送订阅完成通知消息。
在其中一个实施例中,所述发送端为RCD或所述RCD对应的NS设备。
在其中一个实施例中,所述订阅设备根据所述通知消息的发送地址向通知代理NS设备发送通知消息之后,还包括:
所述订阅设备接收所述NS设备发送的通知应答消息。
第二方面,本发明实施例提供一种订阅消息的处理方法,所述方法包括:
NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
所述NS设备将所述通知消息发送给对应的RCD。
在其中一个实施例中,所述NS设备将所述通知消息发送给对应的RCD,包括:
所述NS设备接收所述RCD发送的查询消息;所述查询消息中包括所述RCD设备标 识;
所述NS设备根据RCD设备标识与资源标识之间的对应关系,确定所述RCD设备标识对应的目标资源标识;
所述NS设备将携带所述目标资源标识的通知消息发送给所述RCD。
在其中一个实施例中,所述NS设备接收所述RCD发送的查询消息,包括:
所述NS设备接收所述RCD按照预设周期发送的所述查询消息。
在其中一个实施例中,所述NS设备接收所述RCD发送的查询消息之前,还包括:
所述NS设备广播通知消息列表;所述通知消息列表包括用于供所述RCD识别所述通知消息的识别参数;
所述NS设备接收所述RCD发送的查询消息,包括:
所述NS设备接收所述RCD查询所述通知消息列表后发送的查询消息。
在其中一个实施例中,所述所述识别参数包括:目标资源标识、RCD设备标识或订阅关系识别码。
在其中一个实施例中,所述NS设备接收订阅设备发送的通知消息之前,还包括:
所述NS设备接收所述RCD发送的订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述NS设备将所述订阅消息发送给订阅设备。
在其中一个实施例中,所述NS设备将所述订阅消息发送给订阅设备之后,还包括:
所述NS设备接收所述订阅设备发送的订阅完成通知消息;所述订阅完成通知消息用于指示所述NS设备具有订阅所述目标资源的权限;
所述NS设备将所述订阅完成通知消息转发给对应的RCD。
在其中一个实施例中,所述方法还包括:
所述NS设备接收所述RCD发送的资源创建请求;所述资源创建请求用于请求在所述RCD确定的NS设备上创建代理资源;
所述NS设备根据所述资源创建请求创建代理资源;
所述NS设备在所述代理资源创建完成后,向所述RCD发送应答消息;所述应答消息包括通知消息的发送地址。
在其中一个实施例中,所述NS设备接收订阅设备发送的通知消息之后,还包括:
所述NS设备向所述订阅设备发送通知应答消息。
第三方面,本发明实施例提供一种订阅消息的处理方法,所述方法包括:
RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
在其中一个实施例中,所述发送订阅消息,包括:
所述RCD向所述NS设备发送所述订阅消息,以使所述NS设备将所述订阅消息转发给订阅设备;或者,
所述RCD向所述订阅设备发送所述订阅消息。
在其中一个实施例中,所述RCD接收所述通知消息的发送地址对应NS设备发送的通知消息之前,还包括:
所述RCD向所述NS设备发送查询消息;所述查询消息中包括RCD设备标识;
所述RCD接收所述通知消息的发送地址对应NS设备发送的通知消息,包括:
所述RCD接收所述NS设备根据所述查询消息发送的所述通知消息。
在其中一个实施例中,所述RCD向所述NS设备发送查询消息,包括:
所述RCD按照预设周期向所述NS设备发送所述查询消息;或者,
所述RCD查询所述NS设备广播的通知消息列表,若所述通知消息列表中指示了所述 RCD需要的通知消息,则向所述NS设备发送所述查询消息;所述通知消息列表包括用于供所述RCD识别所述通知消息的识别参数。
在其中一个实施例中,所述识别参数包括:目标资源标识、RCD设备标识或订阅关系识别码。
在其中一个实施例中,所述RCD接收所述通知消息的发送地址对应NS设备发送的通知消息之前,还包括:
所述RCD接收订阅完成通知消息;所述订阅完成通知消息用于指示RCD或所述RCD对应的NS设备具有订阅所述目标资源的权限。
在其中一个实施例中,所述方法还包括:
所述RCD向NS设备发送的资源创建请求;所述资源创建请求用于请求在RCD确定的NS设备上创建代理资源;
所述RCD接收所述NS设备发送的第一应答消息;所述第一应答消息包括通知消息的发送地址。
在其中一个实施例中,所述方法还包括:
所述RCD发送广播消息;所述广播消息包括代理资源类型标识;
所述RCD接收多个NS设备根据所述广播消息发送的第二应答消息;
所述RCD根据所述第二应答消息,从所述多个NS设备中确定目标NS设备。
在其中一个实施例中,所述RCD根据所述第二应答消息,从所述多个NS设备中确定目标NS设备,包括:
所述RCD根据各所述第二应答消息中携带的NS设备的优先级,将优先级最高的NS设备确定为所述目标NS设备。
第四方面,本发明实施例提供一种订阅消息的处理装置,所述装置包括:
第一接收模块,用于订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
监控模块,用于所述订阅设备监控所述订阅资源标识对应的目标资源;
第一发送模块,用于若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
第五方面,本发明实施例一种订阅消息的处理装置,所述装置包括:
第二接收模块,用于NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
第二发送模块,用于所述NS设备将所述通知消息发送给对应的RCD。
第六方面,本发明实施例一种订阅消息的处理装置,所述装置包括:
第三发送模块,用于RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
第三接收模块,用于所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
第七方面,本发明实施例一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述订阅设备监控所述订阅资源标识对应的目标资源;
若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
或者,
NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源 发送变化;
所述NS设备将所述通知消息发送给对应的RCD。
或者,
RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
第八方面,本发明实施例一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述订阅设备监控所述订阅资源标识对应的目标资源;
若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
或者,
NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
所述NS设备将所述通知消息发送给对应的RCD。
或者,
RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
本申请实施例提供的一种订阅消息的处理方法、装置、计算机设备和存储介质,订阅设备先接收包含通知消息的发送地址和订阅资源标识的订阅消息,然后监控该订阅消息中订阅资源标识对应的目标资源,并在目标资源发生变化时,向NS设备发送通知消息,以使NS设备向对应的RCD转发该通知消息,这样,在RCD长时间或者周期性处于休眠状态、或无法实时处理大批量的业务请求时,订阅设备可以将该RCD需要的消息通过NS设备进行转发,使得RCD可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。
附图说明
图1为一个实施例提供的一种订阅消息的处理方法应用环境图;
图1.1为一个实施例提供的服务器内部结构示意图;
图2为一个实施例提供的一种订阅消息的处理方法流程示意图;
图3为一个实施例提供的一种订阅消息的处理方法流程示意图;
图4为一个实施例提供的一种订阅消息的处理方法流程示意图;
图5为一个实施例提供的一种订阅消息的处理方法流程示意图;
图6为一个实施例提供的一种订阅消息的处理方法流程示意图;
图7为一个实施例提供的一种订阅消息的处理方法流程示意图;
图8为一个实施例提供的一种订阅消息的处理方法流程示意图;
图9为一个实施例提供的一种订阅消息的处理方法流程示意图;
图10为一个实施例提供的一种订阅消息的处理方法流程示意图;
图11为一个实施例提供的一种订阅消息的处理方法流程示意图;
图11.1为一个实施例提供的一种目标NS设备的确定方法示意图;
图11.2为一个实施例提供的一种订阅消息的处理方法全过程示意图;
图12为一个实施例提供的一种订阅消息的处理装置结构框图;
图13为一个实施例提供的一种订阅消息的处理装置结构框图;
图14为一个实施例提供的一种订阅消息的处理装置结构框图;
图15为一个实施例提供的计算机内部结构框图。
具体实施方式
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请提供的一种订阅消息的处理方法,可以应用于如图1所示的应用环境中,包括资源受限设备(Resource Constrained Device,RCD)、代理设备(Notification Sever,NS)和订阅设备,其中,RCD、NS设备和订阅设备两两之间可以进行通信,其通信方式可以是无线通信,例如:WIFi、红外通信或者3G、4G、5G等,本实施例对此不做限定。其中,RCD可以是资源受限的智能化家用电器,例如:灯具、空调等,还可以是智能终端,例如:手机或者PAD等。其中NS设备可以是同RCD同类型,但资源没有受限的设备,还可以是服务器等,本申请实施例对NS设备的具体类型不做限定。其中,订阅设备可以是服务器,还可以是其他处理设备,本实施例对此也不做限定。如图1.1所示,上述服务器可以包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该服务器的处理器用于提供计算和控制能力。该服务器的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该服务器的数据库用于存储订阅消息的处理方法的数据。该服务器的网络接口用于与外部的其他设备通过网络连接通信。该计算机程序被处理器执行时以实现一种订阅消息的处理方法。
本申请的实施例提供一种订阅消息的处理方法、装置、计算机设备和存储介质,旨在解决由于RCD可能长时间或者周期性处于休眠状态、或无法实时处理大批量的业务请求,因此可能存在RCD接收通知消息不及时、或者遗漏通知消息的技术问题。下面将通过实施例并结合附图具体地对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。需要说明的是,本申请实施例提供的一种订阅消息的处理方法,以不同的执行主体对各实施例进行说明,其中图2和图3的执行主体为订阅设备,图4-图8的执行主体为NS设备,图9-图11的执行主体为RCD。其中,各实施例的执行主体均还可以是订阅消息的处理装置,其中该装置可以通过软件、硬件或者软硬件结合的方式实现资源更新的部分或者全部。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
下面对执行主体为订阅设备的各实施例进行说明。
在一个实施例中,图2提供了一种订阅消息的处理方法,本实施例涉及的是订阅设备通过NS设备向对应的RCD发送通知消息的具体过程。如图2所示,该方法包括:
S101,订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识。
其中,订阅消息用于RCD向其它的设备订阅需要的资源,其可以包括通知消息的发送地址和订阅资源标识,也可以包括,订阅消息发送端的设备标识、订阅消息接收端的标识、该订阅消息的操作类型等。其中通知消息的地址表示RCD订阅的资源发生变化时,订阅设备给该资源设备反馈的通知消息的地址,订阅资源标识为需要订阅的资源的身份标识,该标识用于与其他资源进行区分。在实际应用中,订阅设备接收包含了通知消息发送 地址和订阅资源标识的订阅消息,其中,订阅设备可以是接收RCD发送的订阅消息也可以是接收NS设备发送的订阅消息。其中,订阅设备接收订阅消息的方式可以是通过无线通信的方式接收,例如:WIFi、红外通信或者3G、4G、5G等,本实施例对此不做限定。
S102,所述订阅设备监控所述订阅资源标识对应的目标资源。
基于上述S101步骤中接收的订阅消息,订阅设备对该订阅消息中订阅资源标识对应的目标资源进行监控,其中,该订阅设备监控目标资源可以是监控该目标资源的状态,例如:工作状态、使用状态等,本实施例对此不做限定。需要说明的是,在本申请实施例中,每个资源都对应一个资源标识,即,订阅消息中携带的订阅资源标识对应的资源即为目标资源。其中,订阅设备中还可以建立订阅消息发送端、订阅的目标资源以及通知消息地址的维护关系表,用于订阅设备后续发送通知消息时可以进行正确发送。
S103,若所述订阅设备监控到目标资源发生变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
其中,通知消息用于指示RCD订阅的资源发生变化,NS设备为RCD处于休眠状态或者其他无法工作的状态时,选定的一个通知代理来帮助其接收通知消息的设备。其中,RCD为由于硬件资源的相对匮乏,导致其业务处理能力和续航能力都较差的设备,RCD在网络中可能会周期性进入睡眠状态(节省电力)、或无法实时处理大批量的业务请求。
本步骤中,在订阅设备监控的目标资源发生变化,例如目标资源的工作状态发生变化时,订阅设备发送该目标资源的工作状态发生变化的通知消息给NS设备,发送的地址为订阅消息中携带的通知消息的发送地址。在NS设备接收到该通知消息时,将该通知消息转发给对应的RCD。示例地,订阅设备发送的通知消息包括:from:3rd device;to:RCD;op:notify;payload:{target resouce}。其中,订阅设备发送通知消息给NS设备的方式以及NS设备将该通知消息转发给RCD的方式,均可以是通过无线通信的方式进行传输,例如:WIFi、红外通信或者3G、4G、5G等,本实施例对此不做限定。
本实施例提供的一种订阅消息的处理方法,订阅设备先接收包含通知消息的发送地址和订阅资源标识的订阅消息,然后监控该订阅消息中订阅资源标识对应的目标资源,并在目标资源发生变化时,向NS设备发送通知消息,以使NS设备向对应的RCD转发该通知消息,这样,在RCD长时间或者周期性处于休眠状态、或无法实时处理大批量的业务请求时,订阅设备可以将该RCD需要的消息发送给NS设备,NS设备可以在RCD工作状态时将通知消息转发给RCD,使得RCD可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。
由于在一些场景中,为了保证订阅设备中的资源被安全可靠的设备订阅,可以对各个订阅消息发送端的权限进行鉴别。因此,本申请实施例提供了一种订阅消息的处理方法,本实施例涉及的是订阅设备根据订阅消息中携带的订阅消息的发送端设备标识,对订阅消息的发送端订阅目标资源的权限进行鉴定的具体过程,如图3所示,该方法还包括:
S201,所述订阅设备根据所述订阅消息中携带的设备标识,鉴权所述订阅消息的发送端是否具有订阅所述目标资源的权限。
在本实施例中,订阅设备根据订阅消息中携带的设备标识,对该订阅消息的发送端是否具有订阅该目标资源的权限进行鉴定,其中,订阅设备对该订阅消息的发送端的权限进行鉴定的方式可以是查看是否存储了该订阅消息发送端的设备标识与目标资源之间的映射关系,如果存在,则表示该发送端具有订阅目标资源的权限,否则,则表示没有。需要说明的是,在应用本申请实施例提供的订阅消息处理方法之前,需要预先将订阅消息发送端的设备标识与目标资源之间的映射关系存储在订阅设备的数据库中,用于表示订阅消息发送端具有订阅该目标资源的权限。
S202,若所述发送端具有订阅所述目标资源的权限,则所述订阅设备存储所述订阅消息,并向所述发送端发送订阅完成通知消息。
基于上述S201步骤对订阅消息发送端权限的鉴定,若订阅设备确定该发送端具有订阅目标资源的权限,则存储该发送端发送的订阅消息,并向该发送端发送订阅完成通知消息,以通知发送端该资源订阅成功。其中,订阅设备向发送端发送通知消息的方式可以是通过WIFi、红外通信或者3G、4G、5G等无线方式,本实施例对此不做限定。
可选地,该发送端可以为RCD或所述RCD对应的NS设备。具体的,当RCD需要向订阅设备订阅资源时,可以直接向订阅设备发送订阅消息,也可以是RCD向NS设备发送订阅消息,再由NS设备将该订阅消息发送给订阅设备。
在实际应用中,当发送端为RCD时,订阅设备根据订阅消息中携带的RCD的标识,先对RCD是否具有订阅目标资源的权限进行鉴定,在确定该RCD具有权限时,存储该RCD发送的订阅消息,并向RCD发送订阅完成通知消息。同理,当发送端为NS设备时,订阅设备根据订阅消息中携带的NS设备的标识,先对NS设备是否具有订阅目标资源的权限进行鉴定,在确定该NS设备具有权限时,存储该NS设备发送的订阅消息,并向NS设备发送订阅完成通知消息,这里可以理解的是,NS设备为RCD的代理,在订阅成功后,后续NS设备接收的订阅设备发送的通知消息,NS设备会将其转发给对应的RCD。
本实施例提供的一种订阅消息的处理方法,订阅设备根据订阅消息中携带的设备的标识,先对订阅消息发送端是否具有订阅目标资源的权限进行鉴定,在确定该发送端具有权限时,存储该发送端发送的订阅消息,并向该发送端发送订阅完成通知消息。这样,只在发送端具有订阅该目标资源权限时才进行后续步骤,避免了没有访问权限的发送端订阅目标资源,提高了资源信息的安全可靠性,而且避免了订阅设备资源和时间的浪费。
考虑到订阅设备根据订阅消息中的通知消息发送地址向NS设备发送通知消息之后,需要知道该NS设备是否已经成功接收,则在一个实施例中,所述方法还包括:所述订阅设备接收所述NS设备发送的通知应答消息。具体地,订阅设备在将通知消息按照通知消息发送地址发送给NS设备之后,接收NS设备发送的通知应答消息,这样,若订阅设备接收到NS设备发送的通知应答消,则表示订阅设备发送的通知消息发送成功,大大提高了订阅设备的发送消息的成功率。
下面对执行主体为NS设备的各实施例进行说明。需要说明的是,以下各实施例中涉及部分内容在上述执行主体为订阅设备的各实施例中已经进行了描述,重复的内容将不再赘述。
在一个实施例中,图4提供了一种订阅消息的处理方法,本实施例涉及的是NS设备接收订阅设备发送的通知消息,并将该通知消息转发给RCD的具体过程。如图4所示,该方法包括:
S301,NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化。
具体地,NS设备接收订阅设备发送的通知消息,这里通知消息用于指示RCD订阅的目标资源发生变化,例如,订阅设备监控到RCD订阅的目标资源的工作状态发生了变化,会发送通知消息给NS设备。通知消息的具体格式和发送方式可参见图2中的描述,此处不再赘述。
S302,所述NS设备将所述通知消息发送给对应的RCD。
基于上述S301步骤中,NS设备接收订阅设备发送的通知消息,NS设备将该通知消息发送给对应的RCD,其中,NS设备将该通知消息发送给对应的RCD可以是NS设备主动将该通知消息发送给RCD,也可以是接收到RCD发送的获取消息后,将对应的通知消息发送给RCD。
本实施例提供的一种订阅消息的处理方法,NS设备先接收订阅设备发送的RCD订阅的目标资源发送变化的通知消息,然后将该通知消息转发给RCD,使得在RCD长时间或者周期性处于休眠状态、或无法实时处理大批量的业务请求时,订阅设备可以将该RCD 需要的消息通过NS设备进行转发,使得RCD可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。
可选地,在NS设备接收订阅设备发送的通知消息之后,所述方法还包括:所述NS设备向所述订阅设备发送通知应答消息。本实施例中,NS设备向订阅设备发送通知应答消息,以便订阅设备确定通知消息已经发送成功,后续可以正常的发送通知消息给NS设备,进而保证了RCD获取消息的成功率,提高了通信质量。
在上述实施例的基础上,本实施例提供了一种订阅消息的处理方法,本实施例涉及的是NS设备根据RCD发送的查询消息将所述通知消息发送给对应的RCD的具体过程。如图5所示,上述步骤S302包括:
S401,所述NS设备接收所述RCD发送的查询消息;所述查询消息中包括所述RCD设备标识。
其中,NS设备接收RCD发送的查询消息,其中,查询消息表示RCD在NS设备查询是否有自己需要的通知消息,该查询消息中包括所述RCD设备标识,该设备标识表示该RCD的身份标识,该标识可以是数字、字母或者数字与字母的组合。本实施例对RCD标识不做限定。可选地,RCD可以周期性的向NS设备发送查询消息,也可以是RCD在脱离休眠模式后向NS设备发送查询消息,或者,RCD在获知到NS设备有自身所需的通知消息时,向NS设备发送查询消息。
S402,所述NS设备根据RCD设备标识与资源标识之间的对应关系,确定所述RCD设备标识对应的目标资源标识。
基于上述S401步骤中,NS设备接收RCD发送的查询消息,NS设备根据RCD设备标识与资源标识之间的对应关系,确定RCD设备标识对应的目标资源标识。需要说明的是,每个RCD设备标识与其所需要的目标资源之间建立了一一对应的关系,并存储在NS设备中,NS设备在存储的所有对应关系中查找该RCD设备标识对应的资源,确定该资源为RCD设备标识需要的目标资源。
S403,所述NS设备将携带所述目标资源标识的通知消息发送给所述RCD。
本步骤中,NS设备基于上述S402中确定的RCD设备标识需要的目标资源,确定携带该目标资源的通知消息,然后将该通知消息发送给RCD。
本实施例提供的一种订阅消息的处理方法,NS设备接收RCD发送的查询消息,根据该查询消息中的RCD标识确定目标资源的标识,并将携带该目标资源标识的通知消息发送给该RCD,这样,在收到RCD发送的查询消息之后,根据RCD设备标识与资源标识之间对应关系定位到目标资源,进而根据目标资源定位到准确的通知消息,大大保证了NS设备发送给RCD的通知消息的准确性。
上述S401步骤中“所述NS设备接收所述RCD发送的查询消息”包括了两种可实现方式,其中一种可实现方式包括:所述NS设备接收所述RCD按照预设周期发送的所述查询消息。RCD可以周期性的向NS设备发送查询消息,该预设周期可以是用户自定义设定的,本实施例对此不做限定,例如:每个10分钟,RCD发送的查询消息给NS设备,或者在特定状态下,RCD发送的查询消息给NS设备,这样,RCD在可以正常工作的状态下,主动发送查询消息给NS设备,确定可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。
在另外一种可实现方式中,若NS设备接收所述RCD发送的查询消息之前,所述NS设备广播通知消息列表;所述通知消息列表包括用于供所述RCD识别所述通知消息的识别参数;则“所述NS设备接收所述RCD发送的查询消息”包括:所述NS设备接收所述RCD查询所述通知消息列表后发送的查询消息。可选地,所述识别参数包括:目标资源标识、RCD设备标识或订阅关系识别码。
其中,供所述RCD识别通知消息的识别参数表示RCD在接收到NS设备发送的通知 消息列表时,对其中通知消息是不是自身所需资源的通知消息进行辨认的参数。该识别参数可以包括:目标资源标识、RCD设备标识或订阅关系识别码,其中,该目标资源标识和RCD设备标识在上述实施例中已经进行了解释,本实施例在此不再赘述;该订阅关系识别码表示的是RCD设备与其订阅的目标资源之间的对应关系的标识码,该标识码可以是数字、字母或者数字与字母的组合,本实施例对此不做限定。NS设备广播通知消息列表,表示NS设备将所有通知消息广播出来,以便所有的RCD可以看到列表中的消息,在该RCD看到NS设备广播通知消息列表中包含了自身所需的通知消息,则向NS设备发送包含该订阅资源标识和/或RCD标识的查询消息,这样,NS设备在收到该查询消息后,根据通知消息的标识和/或RCD标识将正确的通知消息发送给正确的RCD,大大保证了RCD获取消息的正确性。
需要说明的是,在RCD从NS设备上获取通知消息后,NS设备会同时删除该通知消息,但其会保留创建的通知消息中资源的通知地址。
在一些场景中,NS设备需要将RCD的请求消息转发给订阅设备,则在一个实施例中,本申请实施例提供了一种订阅消息的处理方法,涉及的是NS设备将接收的RCD发送的订阅消息发送给订阅设备的具体过程,如图6所示,所述方法还包括:
S501,所述NS设备接收所述RCD发送的订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识。
本实施例中,NS设备接收RCD发送的订阅消息,其中,该订阅消息表示RCD需要预定目标资源的状态变化的通知。其中该订阅消息包括通知消息的发送地址和订阅资源标识。其中,订阅资源标识即同上述实施例中描述的资源标识,用于区别各资源,其中该标识可以是数字、字母或者数字与字母的组合。
S502,所述NS设备将所述订阅消息发送给订阅设备。
基于上述S501步骤中,NS设备接收RCD发送的订阅消息,NS设备将订阅消息发送给订阅设备,以便订阅设备根据订阅消息中的通知消息的发送地址和订阅资源标识,将正确的订阅资源发生变化时的通知消息发送到RCD对应的NS设备中。
本实施例提供的一种订阅消息的处理方法,NS设备接收RCD发送的订阅消息,并按照订阅资源中包含的通知消息的发送地址和订阅资源标识,将订阅消息发送给订阅设备,这样,订阅设备可以根据通知消息的发送地址和订阅资源标识,在正确的订阅资源发生变化时,将通知消息发送到正确地址中,以便RCD可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。
在NS设备将订阅消息发送给订阅设备之后,RCD需要知道该订阅消息是否已经成功被订阅设备接收,则在一个实施例中,本申请实施例提供了一种订阅消息的处理方法,本实施例涉及的是NS设备接收订阅设备发送的订阅完成通知消息后,将订阅完成通知消息转发给RCD的具体过程,如图7所示,所述方法还包括:
S601,所述NS设备接收所述订阅设备发送的订阅完成通知消息;所述订阅完成通知消息用于指示所述NS设备具有订阅所述目标资源的权限。
本实施例中,NS设备接收订阅设备发送的订阅完成通知消息,其中该订阅完成通知消息表示NS设备具有订阅目标资源的权限,即,表示若该NS设备接收到订阅设备发送的订阅完成通知消息,则该NS设备具有订阅目标资源的权限,订阅成功。
S602,所述NS设备将所述订阅完成通知消息转发给对应的RCD。
基于上述S601步骤中,NS设备接收订阅设备发送的订阅完成通知消息,将该订阅完成通知消息转发给对应的RCD,以使RCD可以确定订阅成功。
本实施例提供的一种订阅消息的处理方法,NS设备接收订阅设备发送的订阅完成通知消息,并将订阅完成通知消息转发给对应的RCD,这样,可以保证RCD确定订阅消息已经被订阅设备成功接收,并且,RCD设备获知订阅成功,不会再重复发送订阅消息或者 向其它设备订阅资源。
本申请实施例中,由于RCD可能处于不能正常接收消息的状态,所以需要选定一个NS设备来帮助其接收通知消息,即需要寻找有RCD需要的资源的设备来充当代理设备,则在一个实施例中,本申请实施例提供了一种订阅消息的处理方法,本实施例涉及的RCD向NS设备创建代理资源的具体过程,如图8所示,所述方法还包括:
S701,所述NS设备接收所述RCD发送的资源创建请求;所述资源创建请求用于请求在所述RCD确定的NS设备上创建代理资源。
本实施例中,其中创建代理资源表示RCD需要的资源的类型。NS设备接收RCD发送的资源创建请求,该资源创建请求用于请求在RCD确定的NS设备上创建代理资源,即,NS设备接收到了RCD发送的资源创建请求则表示RCD已经选定了该NS设备为代理设备,并请求该NS设备创建代理资源。其中,资源创建请求可以包括RCD设备标识和目标资源标识,还可以包括订阅关系识别码,该订阅关系识别码用于标识RCD设备与订阅目标资源之间的对应关系。例如,RCD发送的资源创建请求示例地可以包括:from:RCD device ID(消息发送方);to:Notification Server Device ID+notificaitonserver(资源ID)(请求的资源标识);op:Create(操作类型);rt:notification(创建的资源类型)。
S702,所述NS设备根据所述资源创建请求创建代理资源。
基于上述S701步骤中,NS设备接收RCD发送的资源创建请求,NS设备根据该资源创建请求创建代理资源,其中,NS设备创建代理资源的方式可以是将该RCD设备标识、NS设备标识、目标资源标识进行保存,建立可以代理的资源的类型,进一步地,NS设备还可以建立RCD设备标识、通知消息的发送地址以及目标资源标识之间的关系表,用于后续RCD在根据资源标识正确接收到通知消息。
S703,所述NS设备在所述代理资源创建完成后,向所述RCD发送应答消息;所述应答消息包括通知消息的发送地址。
基于上述S702步骤中,NS设备创建代理资源完成后,NS设备向RCD发送应答消息,该应答消息表示NS设备已经创建资源成功,其中,该应答消息中包括通知消息的发送地址,以便RCD可以根据该地址正确接收后续的通知消息。
本实施例提供的一种订阅消息的处理方法,NS设备根据RCD发送的资源创建请求,创建代理资源,并建立RCD、通知消息发送地址以及资源标识之间的关系表,然后反馈应答消息给RCD,这样,RCD可以在收到该应答消息后,根据应答消息中携带的通知消息地址和RCD、通知消息发送地址以及资源标识之间的关系表正确的接收到后续的通知消息,大大保证了RCD获取消息的正确率。
下面对执行主体为RCD的各实施例进行说明。同样,以下各实施例中涉及部分内容在上述执行主体为订阅设备和上述执行主体为NS设备的各实施例中已经进行了描述,重复的内容将不再赘述。
在一个实施例中,图9提供了一种订阅消息的处理方法,本实施例涉及的是RCD发送订阅消息,并接收该订阅消息中包括的通知消息的发送地址对应的NS设备发送的通知消息的具体过程。如图9所示,该方法包括:
S801,RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识。
在本实施例中,RCD发送订阅消息,可以是发给NS设备,也可以发送给订阅设备,该订阅消息用于预定接收目标资源发生变化时的通知消息,其中发送的订阅消息包括通知消息的发送地址和订阅资源标识。
S802,所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
基于上述S801步骤中RCD发送的订阅消息,RCD接收NS设备发送的通知消息,其中,该通知消息表示RCD订阅的资源发生了变化后,订阅设备发送的通知消息。需要说 明的是无论RCD发送订阅消息给NS设备,还是订阅设备,订阅设备在发送通知消息的时候都是先发给NS设备,然后NS设备再发送给RCD。
本实施例提供的一种订阅消息的处理方法,RCD先发送订阅消息给NS设备(NS设备转发给订阅设备)或者订阅设备后,订阅设备会在RCD订阅的资源发生了变化后,发送通知消息给NS设备,然后RCD接收NS设备发送的通知消息,这样,经过NS设备在中间的转发,可以保证RCD可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。
在上述实施例的基础上,所述RCD发送订阅消息,包括:所述RCD向所述NS设备发送所述订阅消息,以使所述NS设备将所述订阅消息转发给订阅设备;或者,所述RCD向所述订阅设备发送所述订阅消息。其中,RCD发送订阅消息可以是RCD向NS设备发送订阅消息,NS设备会将该订阅消息转发给订阅设备,或者,RCD发送订阅消息给订阅设备,这样,订阅设备在接收到该订阅消息后,会将后续的通知消息发送给NS设备,以便NS设备转发给RCD,保证RCD可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。
在一个实施例中,在RCD接收通知消息的发送地址对应NS设备发送的通知消息之前,若所述RCD向所述NS设备发送查询消息;所述查询消息中包括RCD标识。则所述RCD接收所述通知消息的发送地址对应NS设备发送的通知消息,包括:所述RCD接收所述NS设备根据所述查询消息发送的所述通知消息。其中,RCD向NS设备发送查询消息,表示该RCD需要在NS设备中查询是否有需要的通知消息,其中,该查询消息包括RCD标识,然后NS设备在接收到RCD发送的查询消息后,发送通知消息给该RCD,这样,提高了RCD获取通知消息的时机的灵活性,大大保证了RCD获取消息的成功率。
上述实施例中的所述RCD向所述NS设备发送查询消息,包括:所述RCD按照预设周期向所述NS设备发送所述查询消息;或者,所述RCD查询所述NS设备广播的通知消息列表,若所述通知消息列表中指示了所述RCD需要的通知消息,则向所述NS设备发送所述查询消息;所述通知消息列表包括用于供所述RCD识别所述通知消息的识别参数。可选地,所述识别参数包括:目标资源标识、RCD设备标识或订阅关系识别码。其中,RCD发送的查询消息可以是RCD按照预设周期进行发送的,该预设周期可以是用户自定义设定的,本实施例对此不做限定,例如:每个10分钟,RCD发送的查询消息给NS设备,或者在特定状态下,RCD发送的查询消息给NS设备,这样,RCD在可以正常工作的状态下,主动发送查询消息给NS设备,确定可以及时的接收消息、不遗漏任何一条消息,大大提高了RCD获取消息的成功率。另外,RCD发送的查询消息还可以是RCD查询所述NS设备广播的通知消息列表,若所述通知消息列表中指示了所述RCD需要的通知消息,则向所述NS设备发送所述查询消息,其中,所述通知消息列表包括了用于供所述RCD识别所述通知消息的识别参数,该识别参数可以包括:目标资源标识、RCD设备标识或订阅关系识别码等。其中,NS设备广播通知消息列表,表示NS设备将所有通知消息广播出来,以便所有的RCD可以看到列表中的消息,在该RCD看到NS设备广播通知消息列表中包含了自己所需的通知消息,则向NS设备发送包含该通知消息的标识和RCD标识的查询消息,这样,NS设备在收到该查询消息后,根据通知消息中携带的资源标识和RCD标识将正确的通知消息发送给正确的RCD,大大保证了RCD获取消息的正确性。
在RCD接收NS设备发送的通知消息之前,RCD会先接收订阅完成通知消息,已确保该RCD具有订阅目标资源的权限。在一个实施例中,所述方法还包括:所述RCD接收订阅完成通知消息;所述订阅完成通知消息用于指示RCD或所述RCD对应的NS设备具有订阅所述目标资源的权限。其中,RCD接收订阅完成通知消息,若RCD发送的订阅消息给NS设备,RCD接收的是NS设备发送的订阅完成通知消息,若RCD发送的订阅消息给订阅设备,则RCD接收的是订阅设备发送的订阅完成通知消息,这样,RCD根据接收 的订阅完成通知消息,确定了该RCD或者其对应的NS设备具有订阅目标资源的权限,进而保证了RCD获取消息的成功率。
由于RCD可能处于不能正常接收消息的状态,所以需要选定一个NS设备来帮助其接收通知消息,即需要寻找有RCD需要的资源的设备来充当代理设备,在一个实施例中,本申请实施例提供了一种订阅消息的处理方法,本实施例涉及的是RCD向NS设备发送资源创建请求,并接收NS设备发送的第一应答消息的具体过程,如图10所示,所述方法还包括:
S901,所述RCD向NS设备发送资源创建请求;所述资源创建请求用于请求在RCD确定的NS设备上创建代理资源。
其中,创建代理资源表示RCD需要的资源的类型。RCD发送的资源创建请求用于请求在RCD确定的NS设备上创建代理资源,即,RCD发送的NS设备为RCD选定的代理设备,并请求该代理设备(NS设备)创建代理资源。
S902,所述RCD接收所述NS设备发送的第一应答消息;所述第一应答消息包括通知消息的发送地址。
基于上述SS901步骤中RCD向NS设备发送资源创建请求,NS设备根据该请求创建的资源类型后,会发送第一应答消息给RCD。其中,该第一应答消息表示NS设备已经创建资源成功。其中该第一应答消息包括了通知消息的发送地址,以便RCD可以根据该地址正确接收后续的通知消息。
本实施例提供的一种订阅消息的处理方法,RCD向NS设备发送资源创建请求,并接收NS设备创建资源请求成功后的第一应答消息,这样,RCD在收到该第一应答消息后,根据第一应答消息中携带的通知消息地址正确的接收到后续的通知消息,大大保证了RCD获取消息的正确率。
对于RCD选择代理设备的过程,本申请实施例提供了一种订阅消息的处理方法,其涉及的是RCD确定目标NS设备的具体过程,如图11所示,所述方法还包括:
S1001,所述RCD发送广播消息;所述广播消息包括代理资源类型标识。
本实施例中,代理资源类型标识表示的是RCD需要的资源的类型的身份标识,其可以是数字、字母或者数字与字母的组合。如图11.1所示,RCD发送广播消息,该广播消息表示RCD需要寻找一个具有RCD需要的资源的NS设备,该广播消息包括代理资源类型标识。其中,该广播消息可供多个NS设备接收。
S1002,所述RCD接收多个NS设备根据所述广播消息发送的第二应答消息。
本步骤中,如上图11.1所示,接收到RCD的发送广播消息的多个NS设备,会发送第二应答消息给RCD,即,RCD接收多个NS设备根据广播消息发送的第二应答消息。其中,第二应答消息表示该多个NS设备均符合成为该RCD的代理设备的条件。其中,各NS设备发送第二应答消息给RCD使用单播方式。
S1003,所述RCD根据所述第二应答消息,从所述多个NS设备中确定目标NS设备。
基于上述S1002步骤中,RCD接收到的多个NS设备发送的第二应答消息,继续参见图11.1,RCD从多个NS设备中确定目标NS设备。可选地,RCD从多个NS设备中确定目标NS设备的一种可实现方式包括:所述RCD根据各所述第二应答消息中携带的NS设备的优先级,将优先级最高的NS设备确定为所述目标NS设备。其中,NS设备的优先级表示各NS设备的作为目标NS设备的优选度,优先级越高的NS设备越适合作为目标NS设备。在各NS设备发送的第二应答消息中,会携带各自的优先级,则RCD根据各第二应答消息中携带的NS设备的优先级,将优先级最高的NS设备确定为所述目标NS设备。
示例地,如图11.2所示,本申请实施例提供的一种订阅消息的处理方法,其整体过程可以是:RCD发送资源创建请求给NS设备,NS设备收到该资源创建请求后,发送第二应答消息给RCD,然后RCD发送订阅请求给NS设备(NS设备再将该订阅请求发送给订 阅设备)或者订阅设备,订阅设备接收到该订阅请求后对RCD或者NS设备进行是否具有订阅资源的权限鉴定,订阅设备确认RCD或者NS设备具有订阅该资源的权限后,监控该资源的状态,在该资源状态发生变化时,发送通知消息给NS设备,NS设备接收到该通知消息后存储该消息,并将该通知消息发送给RCD,其中NS设备将该通知消息发送给RCD的方式有两种:方式一:RCD给NS设备周期性发送通知消息查询,NS设备接收到该RCD发送的查询消息,找到该消息发送给RCD;方式二:NS设备周期性广播其上所存储的所有通知消息的列表,RCD接收到该广播消息后在通知消息列表上查看是否有需要的通知消息,若有,RCD发送获取该通知消息的请求给NS设备,NS设备收到该请求后,将对应的通知消息发送给RCD。
本实施例提供的一种订阅消息的处理方法,RCD接收各NS设备根据广播消息发送的第二应答消息,并根据第二应答消息中携带的各NS设备的优先级,将优先级最高的NS设备确定为所述目标NS设备,这样,最后选择的目标NS设备由于优先级最高,为RCD代理设备的最优选择,大大增加了RCD获取消息的成功率和准确率。
应该理解的是,虽然图2-11的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-11中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。
在一个实施例中,如图12所示,提供了一种订阅消息的处理装置,所述装置包括:第一接收模块10、监控模块11和第一发送模块12。其中,
第一接收模块10,用于订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
监控模块11,用于所述订阅设备监控所述订阅资源标识对应的目标资源;
第一发送模块12,用于若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
上述实施例提供的一种订阅消息的处理装置,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
在其中一个实施例中,如图13所示,提供了一种订阅消息的处理装置,所述装置包括:第二接收模块13和第二发送模块14。其中,
第二接收模块13,用于NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
第二发送模块14,用于所述NS设备将所述通知消息发送给对应的RCD。
上述实施例提供的一种订阅消息的处理装置,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
在其中一个实施例中,如图14所示,提供了一种订阅消息的处理装置,所述装置包括:第三发送模块15和第三接收模块16。其中,
第三发送模块15,用于RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
第三接收模块16,用于所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
上述实施例提供的一种订阅消息的处理装置,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
关于订阅消息的处理装置的具体限定可以参见上文中对于订阅消息的处理方法的限定,在此不再赘述。上述订阅消息的装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图15所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机程序和数据库。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的数据库用于存储订阅消息的处理数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种订阅消息的处理方法。
本领域技术人员可以理解,图15中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:
订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述订阅设备监控所述订阅资源标识对应的目标资源;
若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
或者,
NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
所述NS设备将所述通知消息发送给对应的RCD。
或者,
RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
上述实施例提供的一种计算机设备,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:
订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述订阅设备监控所述订阅资源标识对应的目标资源;
若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
或者,
NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
所述NS设备将所述通知消息发送给对应的RCD。
或者,
RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消 息用于指示所述订阅资源标识对应的目标资源发送变化。
上述实施例提供的一种计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (27)

  1. 一种订阅消息的处理方法,其特征在于,所述方法包括:
    订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
    所述订阅设备监控所述订阅资源标识对应的目标资源;
    若所述订阅设备监控到目标资源发生变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
  2. 根据权利要求1所述的方法,其特征在于,所述订阅设备监控所述订阅资源标识对应的目标资源之前,还包括:
    所述订阅设备根据所述订阅消息中携带的设备标识,鉴权所述订阅消息的发送端是否具有订阅所述目标资源的权限;
    若所述发送端具有订阅所述目标资源的权限,则所述订阅设备存储所述订阅消息,并向所述发送端发送订阅完成通知消息。
  3. 根据权利要求2所述的方法,其特征在于,所述发送端为RCD或所述RCD对应的NS设备。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述订阅设备根据所述通知消息的发送地址向通知代理NS设备发送通知消息之后,还包括:
    所述订阅设备接收所述NS设备发送的通知应答消息。
  5. 一种订阅消息的处理方法,其特征在于,所述方法包括:
    NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
    所述NS设备将所述通知消息发送给对应的RCD。
  6. 根据权利要求5所述的方法,其特征在于,所述NS设备将所述通知消息发送给对应的RCD,包括:
    所述NS设备接收所述RCD发送的查询消息;所述查询消息中包括所述RCD设备标识;
    所述NS设备根据RCD设备标识与资源标识之间的对应关系,确定所述RCD设备标识对应的目标资源标识;
    所述NS设备将携带所述目标资源标识的通知消息发送给所述RCD。
  7. 根据权利要求6所述的方法,其特征在于,所述NS设备接收所述RCD发送的查询消息,包括:
    所述NS设备接收所述RCD按照预设周期发送的所述查询消息。
  8. 根据权利要求6所述的方法,其特征在于,所述NS设备接收所述RCD发送的查询消息之前,还包括:
    所述NS设备广播通知消息列表;所述通知消息列表包括用于供所述RCD识别所述通知消息的识别参数;
    所述NS设备接收所述RCD发送的查询消息,包括:
    所述NS设备接收所述RCD查询所述通知消息列表后发送的查询消息。
  9. 根据权利要求8所述的方法,其特征在于,所述识别参数包括:目标资源标识、RCD设备标识或订阅关系识别码。
  10. 根据权利要求5-9任一项所述的方法,其特征在于,所述NS设备接收订阅设备发送的通知消息之前,还包括:
    所述NS设备接收所述RCD发送的订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
    所述NS设备将所述订阅消息发送给订阅设备。
  11. 根据权利要求10所述的方法,其特征在于,所述NS设备将所述订阅消息发送给 订阅设备之后,还包括:
    所述NS设备接收所述订阅设备发送的订阅完成通知消息;所述订阅完成通知消息用于指示所述NS设备具有订阅所述目标资源的权限;
    所述NS设备将所述订阅完成通知消息转发给对应的RCD。
  12. 根据权利要求5-9任一项所述的方法,其特征在于,所述方法还包括:
    所述NS设备接收所述RCD发送的资源创建请求;所述资源创建请求用于请求在所述RCD确定的NS设备上创建代理资源;
    所述NS设备根据所述资源创建请求创建代理资源;
    所述NS设备在所述代理资源创建完成后,向所述RCD发送应答消息;所述应答消息包括通知消息的发送地址。
  13. 根据权利要求5-9任一项所述的方法,其特征在于,所述NS设备接收订阅设备发送的通知消息之后,还包括:
    所述NS设备向所述订阅设备发送通知应答消息。
  14. 一种订阅消息的处理方法,其特征在于,所述方法包括:
    RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
    所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
  15. 根据权利要求14所述的方法,其特征在于,所述发送订阅消息,包括:
    所述RCD向所述NS设备发送所述订阅消息,以使所述NS设备将所述订阅消息转发给订阅设备;或者,
    所述RCD向所述订阅设备发送所述订阅消息。
  16. 根据权利要求14或15所述的方法,其特征在于,所述RCD接收所述通知消息的发送地址对应NS设备发送的通知消息之前,还包括:
    所述RCD向所述NS设备发送查询消息;所述查询消息中包括RCD设备标识;
    所述RCD接收所述通知消息的发送地址对应NS设备发送的通知消息,包括:
    所述RCD接收所述NS设备根据所述查询消息发送的所述通知消息。
  17. 根据权利要求16所述的方法,其特征在于,所述RCD向所述NS设备发送查询消息,包括:
    所述RCD按照预设周期向所述NS设备发送所述查询消息;或者,
    所述RCD查询所述NS设备广播的通知消息列表,若所述通知消息列表中指示了所述RCD需要的通知消息,则向所述NS设备发送所述查询消息;所述通知消息列表包括用于供所述RCD识别所述通知消息的识别参数。
  18. 根据权利要求17所述的方法,其特征在于,所述识别参数包括:目标资源标识、RCD设备标识或订阅关系识别码。
  19. 根据权利要求14或15所述的方法,其特征在于,所述RCD接收所述通知消息的发送地址对应NS设备发送的通知消息之前,还包括:
    所述RCD接收订阅完成通知消息;所述订阅完成通知消息用于指示RCD或所述RCD对应的NS设备具有订阅所述目标资源的权限。
  20. 根据权利要求14或15所述的方法,其特征在于,所述方法还包括:
    所述RCD向NS设备发送的资源创建请求;所述资源创建请求用于请求在RCD确定的NS设备上创建代理资源;
    所述RCD接收所述NS设备发送的第一应答消息;所述第一应答消息包括通知消息的发送地址。
  21. 根据权利要求20所述的方法,其特征在于,所述方法还包括:
    所述RCD发送广播消息;所述广播消息包括代理资源类型标识;
    所述RCD接收多个NS设备根据所述广播消息发送的第二应答消息;
    所述RCD根据所述第二应答消息,从所述多个NS设备中确定目标NS设备。
  22. 根据权利要求21所述的方法,其特征在于,所述RCD根据所述第二应答消息,从所述多个NS设备中确定目标NS设备,包括:
    所述RCD根据各所述第二应答消息中携带的NS设备的优先级,将优先级最高的NS设备确定为所述目标NS设备。
  23. 一种订阅消息的处理装置,其特征在于,所述装置包括:
    第一接收模块,用于订阅设备接收订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
    监控模块,用于所述订阅设备监控所述订阅资源标识对应的目标资源;
    第一发送模块,用于若所述订阅设备监控到目标资源发送变化,根据所述通知消息的发送地址向通知代理NS设备发送通知消息,以使所述NS设备向对应的RCD转发所述通知消息。
  24. 一种订阅消息的处理装置,其特征在于,所述装置包括:
    第二接收模块,用于NS设备接收订阅设备发送的通知消息;所述通知消息用于指示RCD订阅的目标资源发送变化;
    第二发送模块,用于所述NS设备将所述通知消息发送给对应的RCD。
  25. 一种订阅消息的处理装置,其特征在于,所述装置包括:
    第三发送模块,用于RCD发送订阅消息;所述订阅消息中包括通知消息的发送地址和订阅资源标识;
    第三接收模块,用于所述RCD接收所述通知消息的发送地址对应的NS设备发送的通知消息;所述通知消息用于指示所述订阅资源标识对应的目标资源发送变化。
  26. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至22中任一项所述方法的步骤。
  27. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至22中任一项所述的方法的步骤。
PCT/CN2018/120926 2018-12-13 2018-12-13 订阅消息的处理方法、装置、计算机设备和存储介质 WO2020118633A1 (zh)

Priority Applications (12)

Application Number Priority Date Filing Date Title
AU2018453104A AU2018453104B2 (en) 2018-12-13 2018-12-13 Subscription message processing method and apparatus, and computer device and storage medium
SG11202105928UA SG11202105928UA (en) 2018-12-13 2018-12-13 Subscription message processing method and apparatus, and computer device and storage medium
EP18943219.8A EP3876500B1 (en) 2018-12-13 2018-12-13 Subscription message processing method and apparatus, and computer device and storage medium
BR112021011218-9A BR112021011218A2 (pt) 2018-12-13 2018-12-13 Método para processamento de mensagem de assinatura, e aparelho para processar mensagem de assinatura
PCT/CN2018/120926 WO2020118633A1 (zh) 2018-12-13 2018-12-13 订阅消息的处理方法、装置、计算机设备和存储介质
MX2021006828A MX2021006828A (es) 2018-12-13 2018-12-13 Metodo y aparato de procesamiento de mensajes de suscripcion, y dispositivo informatico y medio de almacenamiento.
KR1020217019779A KR102434673B1 (ko) 2018-12-13 2018-12-13 구독 메시지의 처리 방법, 장치, 컴퓨터 장치 및 저장 매체
JP2021532982A JP7166463B2 (ja) 2018-12-13 2018-12-13 購読メッセージの処理方法、装置、コンピュータ装置及び記憶媒体
CN202310030618.1A CN116319985A (zh) 2018-12-13 2018-12-13 代理订阅方法、装置、计算机设备和存储介质
CN201880037161.4A CN110731074B (zh) 2018-12-13 2018-12-13 订阅消息的处理方法、装置、计算机设备和存储介质
CA3121940A CA3121940A1 (en) 2018-12-13 2018-12-13 Subscription message processing method and apparatus, and computer device and storage medium
US17/338,298 US20210289343A1 (en) 2018-12-13 2021-06-03 Subscription message processing method and apparatus, and computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120926 WO2020118633A1 (zh) 2018-12-13 2018-12-13 订阅消息的处理方法、装置、计算机设备和存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/338,298 Continuation US20210289343A1 (en) 2018-12-13 2021-06-03 Subscription message processing method and apparatus, and computer device and storage medium

Publications (1)

Publication Number Publication Date
WO2020118633A1 true WO2020118633A1 (zh) 2020-06-18

Family

ID=69217756

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120926 WO2020118633A1 (zh) 2018-12-13 2018-12-13 订阅消息的处理方法、装置、计算机设备和存储介质

Country Status (11)

Country Link
US (1) US20210289343A1 (zh)
EP (1) EP3876500B1 (zh)
JP (1) JP7166463B2 (zh)
KR (1) KR102434673B1 (zh)
CN (2) CN110731074B (zh)
AU (1) AU2018453104B2 (zh)
BR (1) BR112021011218A2 (zh)
CA (1) CA3121940A1 (zh)
MX (1) MX2021006828A (zh)
SG (1) SG11202105928UA (zh)
WO (1) WO2020118633A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315689B (zh) * 2020-02-27 2022-10-21 美的集团股份有限公司 信息处理方法、系统、电子设备和可读存储介质
JP2023523524A (ja) * 2020-03-10 2023-06-06 オッポ広東移動通信有限公司 モノのインターネット通信方法及び装置
WO2021217631A1 (zh) * 2020-04-30 2021-11-04 Oppo广东移动通信有限公司 服务分享方法、通信设备和云平台
CN112134951A (zh) * 2020-09-22 2020-12-25 睿视(苏州)视频科技有限公司 数据传输方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080140709A1 (en) * 2006-12-11 2008-06-12 Sundstrom Robert J Method And System For Providing Data Handling Information For Use By A Publish/Subscribe Client
CN101754486A (zh) * 2008-10-10 2010-06-23 华为终端有限公司 订阅、去订阅移动广告业务的方法及装置
CN101945375A (zh) * 2009-07-07 2011-01-12 中兴通讯股份有限公司 一种选择应用前端的方法及用户数据仓储
CN102761581A (zh) * 2011-04-28 2012-10-31 国际商业机器公司 管理信息的动态订阅方法和设备及其分发方法和系统
CN108353094A (zh) * 2015-11-16 2018-07-31 康维达无线有限责任公司 用于m2m服务层的跨资源订阅

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040260819A1 (en) * 2003-06-23 2004-12-23 Nokia Corporation Systems and methods for restricting event subscriptions through proxy-based filtering
CN101611614A (zh) * 2007-02-12 2009-12-23 皇家飞利浦电子股份有限公司 网络化控制系统和用于网络化控制系统的设备
JP2009104254A (ja) * 2007-10-19 2009-05-14 Sony Corp 情報配信装置、情報配信方法及び情報配信システム
CN102377686B (zh) * 2010-08-10 2015-07-01 阿里巴巴集团控股有限公司 一种消息订阅系统、消息订阅方法及装置
US9565267B2 (en) * 2012-02-16 2017-02-07 Philips Lighting Holding B.V. Efficient proxy table management in communication networks
JP5798075B2 (ja) * 2012-03-27 2015-10-21 Kddi株式会社 メッセージングサーバを用いた状態通知方法及びシステム
EP3094116B1 (en) * 2012-05-14 2018-04-18 Huawei Technologies Co., Ltd. Method and system for group communication, group server, and group member device
WO2014187672A1 (en) * 2013-05-21 2014-11-27 Koninklijke Philips N.V. A network system, a lighting system, and a method of caching information from a resource-constrained device
CN104283800B (zh) * 2013-07-05 2019-01-08 株式会社日立制作所 网关装置、通信系统以及流量控制方法
KR101769386B1 (ko) * 2013-09-27 2017-08-18 엘지전자 주식회사 M2m 시스템에서 통지 메시지 전달 방법 및 이를 위한 장치
CN105723788A (zh) * 2013-11-08 2016-06-29 Lg电子株式会社 用于在m2m通信系统中进行订阅和通知的方法及其设备
CN106790676B (zh) * 2013-12-05 2020-07-07 华为技术有限公司 订阅通知的实现方法和装置
CN105960770B (zh) * 2013-12-09 2019-12-06 飞利浦灯具控股公司 用于操作网络中节点和节点设备的方法
CN105101456B (zh) * 2014-04-24 2019-05-07 阿尔卡特朗讯 一种用于物联网设备触发的方法、设备与系统
CN105228111A (zh) * 2014-06-13 2016-01-06 中兴通讯股份有限公司 资源订阅处理方法及装置
CN105208654B (zh) * 2014-06-20 2020-09-01 中兴通讯股份有限公司 一种通知消息发送方法及装置
CN105578381A (zh) * 2014-10-10 2016-05-11 中兴通讯股份有限公司 一种创建订阅资源的方法和装置
US9554239B2 (en) * 2015-04-21 2017-01-24 Apple Inc. Opportunistic offloading of tasks between nearby computing devices
JP6493945B2 (ja) * 2015-08-12 2019-04-03 シグニファイ ホールディング ビー ヴィ 高密度大規模ネットワーク向けのGreen Power(プロキシテーブルのスケーリング)
CN105959165B (zh) * 2016-07-15 2019-02-15 重庆邮电大学 一种工业测控网络中基于xmpp协议的发布/订阅服务方法
CN106230896B (zh) * 2016-07-18 2019-09-03 深圳国泰安教育技术有限公司 一种消息推送方法、装置及系统
GB2570427B (en) * 2016-11-25 2021-11-17 Mitsubishi Heavy Ind Mach Systems Ltd Client, broker, communication system, communication method, and program
US11088981B2 (en) * 2017-09-26 2021-08-10 Amazon Technologies, Inc. Receiving a data object at a device
CN108183967B (zh) * 2018-01-16 2020-08-04 重庆邮电大学 适用于IPv6无线传感器网络的OPC UA发布/订阅方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080140709A1 (en) * 2006-12-11 2008-06-12 Sundstrom Robert J Method And System For Providing Data Handling Information For Use By A Publish/Subscribe Client
CN101754486A (zh) * 2008-10-10 2010-06-23 华为终端有限公司 订阅、去订阅移动广告业务的方法及装置
CN101945375A (zh) * 2009-07-07 2011-01-12 中兴通讯股份有限公司 一种选择应用前端的方法及用户数据仓储
CN102761581A (zh) * 2011-04-28 2012-10-31 国际商业机器公司 管理信息的动态订阅方法和设备及其分发方法和系统
CN108353094A (zh) * 2015-11-16 2018-07-31 康维达无线有限责任公司 用于m2m服务层的跨资源订阅

Also Published As

Publication number Publication date
EP3876500A1 (en) 2021-09-08
EP3876500B1 (en) 2024-01-24
CN116319985A (zh) 2023-06-23
JP2022513769A (ja) 2022-02-09
CN110731074A (zh) 2020-01-24
CN110731074B (zh) 2023-01-31
BR112021011218A2 (pt) 2021-08-24
AU2018453104B2 (en) 2022-09-29
AU2018453104A1 (en) 2021-06-24
US20210289343A1 (en) 2021-09-16
SG11202105928UA (en) 2021-07-29
KR20210094624A (ko) 2021-07-29
EP3876500A4 (en) 2021-12-01
CA3121940A1 (en) 2020-06-18
JP7166463B2 (ja) 2022-11-07
KR102434673B1 (ko) 2022-08-22
MX2021006828A (es) 2021-07-02

Similar Documents

Publication Publication Date Title
WO2020118633A1 (zh) 订阅消息的处理方法、装置、计算机设备和存储介质
US10085244B2 (en) Method for guaranteeing operation of control message in wireless communication system and device for same
US10567925B2 (en) Enabling multicast for service layer group operation
US10560961B2 (en) Method for processing request through polling channel in wireless communication system and apparatus therefor
EP3709664B1 (en) Stream pushing method, system and server
US11251981B2 (en) Communication method and apparatus
US10193709B2 (en) Method for processing request messages in wireless communication system, and device for same
JP7246379B2 (ja) 通信ネットワークにおけるサービス層メッセージテンプレート
US20200244753A1 (en) Method, system and server for stream-pushing
CN111031517A (zh) 消息通知方法、装置、网元、系统及存储介质
US11252538B2 (en) Message sending method and device
KR102647498B1 (ko) M2m 시스템에서 통지 메시지 전송 방법 및 그 장치
CN110753921B (zh) 查询请求的处理方法、装置、计算机设备和存储介质
KR102624642B1 (ko) M2m 시스템에서 라이프타임 갱신 방법 및 그 장치
WO2017000256A1 (zh) 一种定位方法及对应装置
CN107211479B (zh) 选择接入网的方法和装置
CN110741361B (zh) 资源查询处理方法、装置、计算机设备和存储介质
KR101979588B1 (ko) 세션 제어 방법, 시스템 및 장치
GB2567908A (en) Server initiated remote device registration

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18943219

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 3121940

Country of ref document: CA

ENP Entry into the national phase

Ref document number: 2021532982

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2018943219

Country of ref document: EP

Effective date: 20210604

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112021011218

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 2018453104

Country of ref document: AU

Date of ref document: 20181213

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20217019779

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 112021011218

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20210610