CN107113225B - Method and entity for subscribing to notifications in a machine communication system - Google Patents
Method and entity for subscribing to notifications in a machine communication system Download PDFInfo
- Publication number
- CN107113225B CN107113225B CN201580072676.4A CN201580072676A CN107113225B CN 107113225 B CN107113225 B CN 107113225B CN 201580072676 A CN201580072676 A CN 201580072676A CN 107113225 B CN107113225 B CN 107113225B
- Authority
- CN
- China
- Prior art keywords
- entity
- notification
- receiver
- server
- modification
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/21—Monitoring or handling of messages
- H04L51/224—Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W68/00—User notification, e.g. alerting and paging, for incoming communication, change of service or the like
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本发明实施例涉及通信领域,并且更具体地,涉及一种机器通信系统中订阅通知的方法和实体。Embodiments of the present invention relate to the field of communications, and more particularly, to a method and entity for subscribing to notifications in a machine communication system.
背景技术Background technique
机器通信(英文:Machine-to-Machine Communications,简称:M2M)是一种以机器智能交互为核心的、网络化的应用与服务。通过在机器内部嵌入无线或有线通信模块以及应用处理逻辑,机器通信可以实现无需人工干预的数据通信,以满足用户对监控、指挥调度、数据采集和测量等方面的信息化需求。Machine-to-Machine Communications (English: Machine-to-Machine Communications, M2M for short) is a networked application and service centered on machine intelligent interaction. By embedding wireless or wired communication modules and application processing logic inside the machine, machine communication can realize data communication without manual intervention to meet users' informatization needs for monitoring, command and dispatch, data collection and measurement.
机器通信的统一机器到机器(英文:one Machine to Machine,简称:oneM2M)标准组织的总体目标是创造M2M通信的业务层的开放标准,以促进建立一个集成各种设备和服务的未来网络,使M2M业务可互操作,也使得M2M应用可以共享基础业务并独立于网络实现。The overall goal of the unified machine-to-machine (English: one Machine to Machine, oneM2M) standard organization for machine communication is to create an open standard for the business layer of M2M communication to promote the establishment of a future network that integrates various devices and services. The interoperability of M2M services also enables M2M applications to share basic services and be implemented independently of the network.
目前M2M通信可以基于有线方式和无线方式。无线方式包括蜂窝网和短距,其中3GPP蜂窝网是广泛使用的一种无线方式。在oneM2M中,一个实体可以为其它几个实体订阅通知,如向天气预报平台为其它几个实体订阅天气预报。然而,由于通知的接收端(其它几个实体)不是订阅发起方,它们不能对通知对应的资源进行修改。Currently, M2M communication can be based on wired and wireless methods. Wireless methods include cellular network and short-range, among which 3GPP cellular network is a widely used wireless method. In oneM2M, one entity can subscribe to notifications for several other entities, such as subscribing weather forecasts to the weather forecast platform for several other entities. However, since the receiver of the notification (several other entities) is not the subscription initiator, they cannot modify the resource corresponding to the notification.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供了一种机器通信系统中订阅通知的方法和实体,能够提高订阅修改的灵活性。The embodiments of the present invention provide a method and entity for subscribing to notifications in a machine communication system, which can improve the flexibility of subscription modification.
第一方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In a first aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
服务端实体接收接收端实体发送的通知取消指示;The server entity receives the notification cancellation instruction sent by the receiver entity;
当接收端实体有权限时,服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;When the receiver entity has the authority, the server entity modifies the resource attribute according to the notification cancellation instruction, and stops sending the notification to the receiver entity, and the resource attribute includes the notification uniform resource identifier;
服务端实体向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改;The server entity sends a subscription modification notification message to the subscriber entity, and the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。Among them, the subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第一方面,在第一方面的第一种实现方式中,服务端实体根据通知取消指示修改资源属性,包括:With reference to the first aspect, in a first implementation manner of the first aspect, the server entity modifies the resource attributes according to the notification cancellation instruction, including:
服务端实体根据通知取消指示,删除通知统一资源标识符中的接收端实体的标识。The server entity deletes the identifier of the receiver entity in the notification uniform resource identifier according to the notification cancellation instruction.
结合第一方面及其上述实现方式,在第一方面的第二种实现方式中,服务端实体接收接收端实体发送的通知取消指示,包括:In combination with the first aspect and the above-mentioned implementation manner, in the second implementation manner of the first aspect, the server entity receives the notification cancellation indication sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知取消指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification cancellation indication.
第二方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In a second aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
服务端实体接收接收端实体发送的通知取消指示;The server entity receives the notification cancellation instruction sent by the receiver entity;
当接收端实体没有权限时,服务端实体向订阅端实体发送通知取消指示;When the receiver entity has no authority, the server entity sends a notification cancellation instruction to the subscriber entity;
服务端实体接收订阅端实体根据通知取消指示发送的更新请求消息;The server entity receives the update request message sent by the subscriber entity according to the notification cancellation instruction;
服务端实体根据更新请求消息修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;The server entity modifies the resource attribute according to the update request message, and stops sending notifications to the receiver entity, and the resource attribute includes the notification uniform resource identifier;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。Among them, the subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第二方面,在第二方面的第一种实现方式中,服务端实体根据更新请求消息修改资源属性,包括:With reference to the second aspect, in a first implementation manner of the second aspect, the server entity modifies the resource attributes according to the update request message, including:
服务端实体根据更新请求消息,删除通知统一资源标识符中的接收端实体的标识。The server entity deletes the identifier of the receiver entity in the notification uniform resource identifier according to the update request message.
结合第二方面及其上述实现方式,在第二方面的第二种实现方式中,服务端实体接收接收端实体发送的通知取消指示,包括:In combination with the second aspect and the above-mentioned implementation manners, in a second implementation manner of the second aspect, the server entity receives the notification cancellation indication sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知取消指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification cancellation indication.
第三方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In a third aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
接收端实体生成通知取消指示;The recipient entity generates a notification cancellation indication;
接收端实体向服务端实体发送通知取消指示,以便于服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;The receiver entity sends a notification cancellation instruction to the server entity, so that the server entity modifies the resource attribute according to the notification cancellation instruction, and stops sending the notification to the receiver entity, and the resource attribute includes the notification uniform resource identifier;
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
结合第三方面,在第三方面的第一种实现方式中,接收端实体向服务端实体发送通知取消指示,包括:With reference to the third aspect, in a first implementation manner of the third aspect, the receiving-end entity sends a notification cancellation indication to the server-end entity, including:
接收端实体向服务端实体发送更新消息,更新消息携带通知取消指示;或者The receiving-end entity sends an update message to the server-end entity, and the update message carries the notification cancellation indication; or
接收端实体向服务端实体发送通知响应消息,通知响应消息携带通知取消指示;或者The receiver entity sends a notification response message to the server entity, and the notification response message carries the notification cancellation indication; or
接收端实体向服务端实体发送通知请求消息,通知请求消息携带通知取消指示。The receiver entity sends a notification request message to the server entity, and the notification request message carries a notification cancellation indication.
第四方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In a fourth aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
订阅端实体接收服务端实体发送的通知取消指示,通知取消指示是接收端实体向服务端实体发送的;The subscriber entity receives the notification cancellation instruction sent by the server entity, and the notification cancellation instruction is sent by the receiver entity to the server entity;
订阅端实体根据通知取消指示向服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知统一资源标识符;The subscriber entity sends an update request message to the server entity according to the notification cancellation instruction, so that the server entity can modify the resource attribute according to the update request message, and the resource attribute includes the notification uniform resource identifier;
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
第五方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In a fifth aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
服务端实体接收接收端实体发送的通知修改指示;The server entity receives the notification modification instruction sent by the receiver entity;
当接收端实体有权限时,服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;When the receiver entity has the authority, the server entity modifies the resource attribute according to the notification modification instruction, and sends a notification to the receiver entity based on the modified resource attribute, and the resource attribute includes the notification sending rule;
服务端实体向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改;The server entity sends a subscription modification notification message to the subscriber entity, and the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。Among them, the subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第五方面,在第五方面的第一种实现方式中,服务端实体根据通知修改指示对资源属性进行修改,包括:With reference to the fifth aspect, in the first implementation manner of the fifth aspect, the server entity modifies the resource attribute according to the notification modification instruction, including:
服务端实体根据通知修改指示中的参数,将资源属性修改为参数对应的值。The server entity modifies the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
结合第五方面及其上述实现方式,在第五方面的第二种实现方式中,服务端实体接收接收端实体发送的通知修改指示,包括:With reference to the fifth aspect and the above-mentioned implementation manner, in the second implementation manner of the fifth aspect, the server entity receives the notification modification instruction sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知修改指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知修改指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知修改指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification modification indication.
结合第五方面及其上述实现方式,在第五方面的第三种实现方式中,在服务端实体接收接收端实体发送的通知修改指示之前,该方法还包括:With reference to the fifth aspect and the above implementation manners thereof, in a third implementation manner of the fifth aspect, before the server entity receives the notification modification instruction sent by the receiver entity, the method further includes:
服务端实体向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。The server entity sends the resource attribute to the receiver entity, so that the receiver entity can generate a notification modification instruction according to the resource attribute.
结合第五方面及其上述实现方式,在第五方面的第四种实现方式中,发送规则包括发送周期、信息类型和到期时间中的一种或多种。With reference to the fifth aspect and the foregoing implementation manners thereof, in a fourth implementation manner of the fifth aspect, the sending rule includes one or more of a sending period, an information type, and an expiration time.
第六方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In a sixth aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
服务端实体接收接收端实体发送的通知修改指示;The server entity receives the notification modification instruction sent by the receiver entity;
当接收端实体没有权限时,服务端实体向订阅端实体发送通知修改指示;When the receiver entity has no authority, the server entity sends a notification modification instruction to the subscriber entity;
服务端实体接收订阅端实体根据通知修改指示发送的更新请求消息;The server entity receives the update request message sent by the subscriber entity according to the notification modification instruction;
服务端实体根据更新请求消息修改资源属性,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;The server entity modifies the resource attribute according to the update request message, and sends a notification to the receiver entity based on the modified resource attribute, and the resource attribute includes the notification sending rule;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。Among them, the subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第六方面,在第六方面的第一种实现方式中,服务端实体根据通知修改指示对资源属性进行修改,包括:With reference to the sixth aspect, in the first implementation manner of the sixth aspect, the server entity modifies the resource attributes according to the notification modification instruction, including:
服务端实体根据通知修改指示中的参数,将资源属性修改为参数对应的值。The server entity modifies the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
结合第六方面及其上述实现方式,在第六方面的第二种实现方式中,服务端实体接收接收端实体发送的通知修改指示,包括:In combination with the sixth aspect and the above-mentioned implementation manners, in the second implementation manner of the sixth aspect, the server entity receives the notification modification instruction sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知修改指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知修改指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知修改指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification modification indication.
结合第六方面及其上述实现方式,在第六方面的第三种实现方式中,在服务端实体接收接收端实体发送的通知修改指示之前,该方法还包括:In combination with the sixth aspect and the above-mentioned implementation manner, in a third implementation manner of the sixth aspect, before the server entity receives the notification modification instruction sent by the receiver entity, the method further includes:
服务端实体向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。The server entity sends the resource attribute to the receiver entity, so that the receiver entity can generate a notification modification instruction according to the resource attribute.
结合第六方面及其上述实现方式,在第六方面的第四种实现方式中,发送规则包括发送周期、信息类型和到期时间中的一种或多种。With reference to the sixth aspect and the above-mentioned implementation manners, in a fourth implementation manner of the sixth aspect, the sending rule includes one or more of a sending period, an information type, and an expiration time.
第七方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In a seventh aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
接收端实体生成通知修改指示;The recipient entity generates a notification modification indication;
接收端实体向服务端实体发送通知修改指示,以便于服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;The receiver entity sends a notification modification instruction to the server entity, so that the server entity modifies the resource attribute according to the notification modification instruction, and sends a notification to the receiver entity based on the modified resource attribute, and the resource attribute includes the notification sending rule;
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
结合第七方面,在第七方面的第一种实现方式中,接收端实体向服务端实体发送通知修改指示,包括:With reference to the seventh aspect, in a first implementation manner of the seventh aspect, the receiving-end entity sends a notification modification instruction to the server-end entity, including:
接收端实体向服务端实体发送更新消息,更新消息携带通知修改指示;或者The receiving-end entity sends an update message to the server-end entity, and the update message carries the notification modification indication; or
接收端实体向服务端实体发送通知响应消息,通知响应消息携带通知修改指示;或者The receiver entity sends a notification response message to the server entity, and the notification response message carries the notification modification indication; or
接收端实体向服务端实体发送通知请求消息,通知请求消息携带通知修改指示。The receiver entity sends a notification request message to the server entity, and the notification request message carries a notification modification indication.
结合第七方面及其上述实现方式,在第七方面的第二种实现方式中,在接收端实体生成通知修改指示之前,该方法还包括:In combination with the seventh aspect and the above-mentioned implementation manner, in the second implementation manner of the seventh aspect, before the receiving-end entity generates the notification modification instruction, the method further includes:
接收端实体接收服务端实体发送的资源属性;The receiving-end entity receives the resource attributes sent by the server-end entity;
接收端实体生成通知修改指示,包括:The receiving entity generates notification modification instructions, including:
接收端实体根据资源属性,生成通知修改指示。The receiving-end entity generates a notification modification instruction according to the resource attribute.
第八方面,本发明实施例提供了一种机器通信系统中订阅通知的方法,包括:In an eighth aspect, an embodiment of the present invention provides a method for subscribing to notifications in a machine communication system, including:
订阅端实体接收服务端实体发送的通知修改指示,通知修改指示是接收端实体向服务端实体发送的;The subscriber entity receives the notification modification instruction sent by the server entity, and the notification modification instruction is sent by the receiver entity to the server entity;
订阅端实体根据通知修改指示向服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知的发送规则;The subscriber entity sends an update request message to the server entity according to the notification modification instruction, so that the server entity can modify the resource attribute according to the update request message, and the resource attribute includes the notification sending rule;
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
第九方面,本发明实施例提供了一种机器通信系统中用于订阅通知的服务端实体,包括:In a ninth aspect, an embodiment of the present invention provides a server entity for subscribing to notifications in a machine communication system, including:
接收单元,用于接收接收端实体发送的通知取消指示;a receiving unit, configured to receive a notification cancellation instruction sent by the receiving-end entity;
处理单元,当接收端实体有权限时,用于根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;The processing unit, when the receiving-end entity has the authority, is used to modify the resource attribute according to the notification cancellation instruction, and stop sending the notification to the receiving-end entity, and the resource attribute includes the notification uniform resource identifier;
发送单元,用于向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改;a sending unit, configured to send a subscription modification notification message to the subscriber entity, and the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。Among them, the subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第九方面,在第九方面的第一种实现方式中,处理单元具体用于,根据通知取消指示,删除通知统一资源标识符中的接收端实体的标识。With reference to the ninth aspect, in a first implementation manner of the ninth aspect, the processing unit is specifically configured to, according to the notification cancellation indication, delete the identifier of the receiving end entity in the notification uniform resource identifier.
结合第九方面及其上述实现方式,在第九方面的第二种实现方式中,接收单元具体用于,In conjunction with the ninth aspect and the above-mentioned implementation manner, in the second implementation manner of the ninth aspect, the receiving unit is specifically used for,
接收接收端实体发送的更新消息,更新消息携带通知取消指示;或者Receive an update message sent by the receiver entity, and the update message carries a notification cancellation indication; or
接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示;或者Receive a notification response message sent by the receiver entity, and the notification response message carries a notification cancellation indication; or
接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。Receive a notification request message sent by the receiver entity, where the notification request message carries a notification cancellation indication.
第十方面,本发明实施例提供了一种机器通信系统中用于订阅通知的服务端实体,包括:In a tenth aspect, an embodiment of the present invention provides a server entity for subscribing to notifications in a machine communication system, including:
第一接收单元,用于接收接收端实体发送的通知取消指示;a first receiving unit, configured to receive a notification cancellation indication sent by the receiving-end entity;
发送单元,当接收端实体没有权限时,用于向订阅端实体发送通知取消指示;The sending unit, when the receiving-end entity has no authority, is used to send a notification cancellation instruction to the subscribing-end entity;
第二接收单元,用于接收订阅端实体根据通知取消指示发送的更新请求消息;a second receiving unit, configured to receive an update request message sent by the subscriber entity according to the notification cancellation indication;
处理单元,用于根据更新请求消息修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;a processing unit, configured to modify the resource attribute according to the update request message, and stop sending the notification to the receiver entity, where the resource attribute includes the notification uniform resource identifier;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。Among them, the subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第十方面,在第十方面的第一种实现方式中,处理单元具体用于,根据通知取消指示,删除通知统一资源标识符中的接收端实体的标识。With reference to the tenth aspect, in a first implementation manner of the tenth aspect, the processing unit is specifically configured to delete the identifier of the receiving end entity in the notification uniform resource identifier according to the notification cancellation indication.
结合第十方面及其上述实现方式,在第十方面的第二种实现方式中,第一接收单元具体用于,In combination with the tenth aspect and the above-mentioned implementation manner, in the second implementation manner of the tenth aspect, the first receiving unit is specifically configured to:
接收接收端实体发送的更新消息,更新消息携带通知取消指示;或者Receive an update message sent by the receiver entity, and the update message carries a notification cancellation indication; or
接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示;或者Receive a notification response message sent by the receiver entity, and the notification response message carries a notification cancellation indication; or
接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。Receive a notification request message sent by the receiver entity, where the notification request message carries a notification cancellation indication.
第十一方面,本发明实施例提供了一种机器通信系统中用于订阅通知的接收端实体,包括:In an eleventh aspect, an embodiment of the present invention provides a receiver entity for subscribing to notifications in a machine communication system, including:
生成单元,用于生成通知取消指示;a generating unit for generating a notification cancellation instruction;
发送单元,用于向服务端实体发送通知取消指示,以便于服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;a sending unit, configured to send a notification cancellation instruction to the server entity, so that the server entity can modify the resource attribute according to the notification cancellation instruction, and stop sending the notification to the receiving end entity, and the resource attribute includes the notification uniform resource identifier;
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
结合第十一方面,在第十一方面的第一种实现方式中,发送单元具体用于,In conjunction with the eleventh aspect, in the first implementation manner of the eleventh aspect, the sending unit is specifically configured to:
向服务端实体发送更新消息,更新消息携带通知取消指示;或者Send an update message to the server entity, and the update message carries the notification cancellation indication; or
向服务端实体发送通知响应消息,通知响应消息携带通知取消指示;或者Send a notification response message to the server entity, and the notification response message carries the notification cancellation indication; or
向服务端实体发送通知请求消息,通知请求消息携带通知取消指示。Send a notification request message to the server entity, where the notification request message carries a notification cancellation indication.
第十二方面,本发明实施例提供了一种机器通信系统中用于订阅通知的订阅端实体,包括:In a twelfth aspect, an embodiment of the present invention provides a subscriber entity for subscribing to notifications in a machine communication system, including:
接收单元,用于接收服务端实体发送的通知取消指示,通知取消指示是接收端实体向服务端实体发送的;a receiving unit, configured to receive a notification cancellation instruction sent by the server entity, where the notification cancellation instruction is sent by the receiver entity to the server entity;
发送单元,用于根据通知取消指示向服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知统一资源标识符;a sending unit, configured to send an update request message to the server entity according to the notification cancellation instruction, so that the server entity can modify the resource attribute according to the update request message, and the resource attribute includes the notification uniform resource identifier;
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
第十三方面,本发明实施例提供了一种机器通信系统中订阅通知的服务端实体,包括:In a thirteenth aspect, an embodiment of the present invention provides a server entity for subscribing to notifications in a machine communication system, including:
接收单元,用于接收接收端实体发送的通知修改指示;a receiving unit, configured to receive a notification modification instruction sent by the receiving end entity;
处理单元,当接收端实体有权限时,用于根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;The processing unit, when the receiving-end entity has the authority, is used to modify the resource attribute according to the notification modification instruction, and send a notification to the receiving-end entity based on the modified resource attribute, and the resource attribute includes the sending rule of the notification;
发送单元,用于向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改;a sending unit, configured to send a subscription modification notification message to the subscriber entity, and the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。Among them, the subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第十三方面,在第十三方面的第一种实现方式中,处理单元具体用于,根据通知修改指示中的参数,将资源属性修改为参数对应的值。With reference to the thirteenth aspect, in a first implementation manner of the thirteenth aspect, the processing unit is specifically configured to modify the resource attribute to a value corresponding to the parameter according to the parameter in the notification modification instruction.
结合第十三方面及其上述实现方式,在第十三方面的第二种实现方式中,接收单元具体用于,In conjunction with the thirteenth aspect and the above-mentioned implementation manner, in the second implementation manner of the thirteenth aspect, the receiving unit is specifically configured to:
接收接收端实体发送的更新消息,更新消息携带通知修改指示;或者Receive an update message sent by the receiver entity, and the update message carries a notification modification indication; or
接收接收端实体发送的通知响应消息,通知响应消息携带通知修改指示;或者Receive a notification response message sent by the receiver entity, and the notification response message carries a notification modification indication; or
接收接收端实体发送的通知请求消息,通知请求消息携带通知修改指示。Receive a notification request message sent by the receiver entity, where the notification request message carries a notification modification indication.
结合第十三方面及其上述实现方式,在第十三方面的第三种实现方式中,发送单元还用于,向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。In combination with the thirteenth aspect and the above-mentioned implementation manner, in a third implementation manner of the thirteenth aspect, the sending unit is further configured to send the resource attribute to the receiving-end entity, so that the receiving-end entity can generate a notification modification according to the resource attribute instruct.
结合第十三方面及其上述实现方式,在第十三方面的第四种实现方式中,发送规则包括发送周期、信息类型和到期时间中的一种或多种。With reference to the thirteenth aspect and the foregoing implementation manners thereof, in a fourth implementation manner of the thirteenth aspect, the sending rule includes one or more of a sending period, an information type, and an expiration time.
第十四方面,本发明实施例提供了一种机器通信系统中用于订阅通知的服务端实体,包括:In a fourteenth aspect, an embodiment of the present invention provides a server entity for subscribing to notifications in a machine communication system, including:
第一接收单元,用于接收接收端实体发送的通知修改指示;a first receiving unit, configured to receive a notification modification instruction sent by the receiving-end entity;
发送单元,当接收端实体没有权限时,用于向订阅端实体发送通知修改指示;The sending unit, when the receiving-end entity has no authority, is used to send a notification modification instruction to the subscribing-end entity;
第二接收单元,用于接收订阅端实体根据通知修改指示发送的更新请求消息;a second receiving unit, configured to receive an update request message sent by the subscriber entity according to the notification modification instruction;
处理单元,用于根据更新请求消息修改资源属性,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;a processing unit, configured to modify the resource attribute according to the update request message, and send a notification to the receiver entity based on the modified resource attribute, where the resource attribute includes a notification sending rule;
其中,订阅端实体与接收端实体为两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方,且不是通知的订阅发起方。The subscriber entity and the receiver entity are two different entities, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification, and is not the subscription initiator of the notification.
结合第十四方面,在第十四方面的第一种实现方式中,处理单元具体用于,根据通知修改指示中的参数,将资源属性修改为参数对应的值。With reference to the fourteenth aspect, in a first implementation manner of the fourteenth aspect, the processing unit is specifically configured to modify the resource attribute to a value corresponding to the parameter according to the parameter in the notification modification instruction.
结合第十四方面及其上述实现方式,在第十四方面的第二种实现方式中,第一接收单元具体用于,In combination with the fourteenth aspect and the above-mentioned implementation manner, in the second implementation manner of the fourteenth aspect, the first receiving unit is specifically configured to:
接收接收端实体发送的更新消息,更新消息携带通知修改指示;或者Receive an update message sent by the receiver entity, and the update message carries a notification modification indication; or
接收接收端实体发送的通知响应消息,通知响应消息携带通知修改指示;或者Receive a notification response message sent by the receiver entity, and the notification response message carries a notification modification indication; or
接收接收端实体发送的通知请求消息,通知请求消息携带通知修改指示。Receive a notification request message sent by the receiver entity, where the notification request message carries a notification modification indication.
结合第十四方面及其上述实现方式,在第十四方面的第三种实现方式中,发送单元还用于,向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。In combination with the fourteenth aspect and the above-mentioned implementation manner, in a third implementation manner of the fourteenth aspect, the sending unit is further configured to send the resource attribute to the receiving-end entity, so that the receiving-end entity can generate a notification modification according to the resource attribute instruct.
结合第十四方面及其上述实现方式,在第十四方面的第四种实现方式中,发送规则包括发送周期、信息类型和到期时间中的一种或多种。With reference to the fourteenth aspect and the foregoing implementation manners thereof, in a fourth implementation manner of the fourteenth aspect, the sending rule includes one or more of a sending period, an information type, and an expiration time.
第十五方面,本发明实施例提供了一种机器通信系统中用于订阅通知的接收端实体,包括:In a fifteenth aspect, an embodiment of the present invention provides a receiver entity for subscribing to notifications in a machine communication system, including:
生成单元,用于生成通知修改指示;a generating unit for generating a notification modification instruction;
发送单元,用于向服务端实体发送通知修改指示,以便于服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;The sending unit is used to send a notification modification instruction to the server entity, so that the server entity can modify the resource attribute according to the notification modification instruction, and send a notification to the receiving end entity based on the modified resource attribute, and the resource attribute includes the notification sending rule ;
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
结合第十五方面,在第十五方面的第一种实现方式中,发送单元具体用于,In conjunction with the fifteenth aspect, in the first implementation manner of the fifteenth aspect, the sending unit is specifically configured to:
向服务端实体发送更新消息,更新消息携带通知修改指示;或者Send an update message to the server entity, and the update message carries the notification modification indication; or
向服务端实体发送通知响应消息,通知响应消息携带通知修改指示;Send a notification response message to the server entity, and the notification response message carries the notification modification indication;
向服务端实体发送通知请求消息,通知请求消息携带通知修改指示。Send a notification request message to the server entity, where the notification request message carries the notification modification indication.
结合第十五方面及其上述实现方式,在第十五方面的第二种实现方式中,该实体还包括接收单元,In conjunction with the fifteenth aspect and the above-mentioned implementation manner, in a second implementation manner of the fifteenth aspect, the entity further includes a receiving unit,
接收单元,用于接收服务端实体发送的资源属性;a receiving unit, configured to receive the resource attribute sent by the server entity;
生成单元具体用于,根据资源属性,生成通知修改指示。The generating unit is specifically configured to generate the notification modification instruction according to the resource attribute.
第十六方面,本发明实施例提供了一种机器通信系统中用于订阅通知的订阅端实体,包括:In a sixteenth aspect, an embodiment of the present invention provides a subscriber entity for subscribing to notifications in a machine communication system, including:
接收单元,用于接收服务端实体发送的通知修改指示,通知修改指示是接收端实体向服务端实体发送的;a receiving unit, configured to receive a notification modification instruction sent by the server entity, where the notification modification instruction is sent by the receiver entity to the server entity;
发送单元,用于根据通知修改指示向服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知的发送规则;a sending unit, configured to send an update request message to the server entity according to the notification modification instruction, so that the server entity can modify the resource attribute according to the update request message, and the resource attribute includes the sending rule of the notification;
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
基于上述技术方案,在具有权限时,接收端实体可以向服务端实体发起对资源属性的修改。接着,服务端实体根据通知取消指示对资源属性进行修改,并向订阅端实体通知具体的修改内容。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solutions, when having the authority, the receiving-end entity can initiate the modification of the resource attributes to the server-end entity. Next, the server entity modifies the resource attribute according to the notification cancellation instruction, and notifies the subscriber entity of the specific modification content. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings that need to be used in the embodiments of the present invention. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.
图1示出了根据本发明实施例的统一机器到机器系统的示意性框架图。FIG. 1 shows a schematic frame diagram of a unified machine-to-machine system according to an embodiment of the present invention.
图2是本发明一个实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to an embodiment of the present invention.
图3是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 3 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图4是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 4 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图5是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 5 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图6是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 6 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图7是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 7 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图8是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 8 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图9是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 9 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图10是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 10 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图11是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 11 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图12是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 12 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图13是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 13 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
图14是本发明一个实施例的机器通信系统中服务端实体的示意性框图。FIG. 14 is a schematic block diagram of a server entity in a machine communication system according to an embodiment of the present invention.
图15是本发明另一实施例的机器通信系统中服务端实体的示意性框图。FIG. 15 is a schematic block diagram of a server entity in a machine communication system according to another embodiment of the present invention.
图16是本发明一个实施例的机器通信系统中接收端实体的示意性框图。FIG. 16 is a schematic block diagram of a receiver entity in a machine communication system according to an embodiment of the present invention.
图17是本发明一个实施例的机器通信系统中订阅端实体的示意性框图。FIG. 17 is a schematic block diagram of a subscriber entity in a machine communication system according to an embodiment of the present invention.
图18是本发明另一实施例的机器通信系统中服务端实体的示意性框图。FIG. 18 is a schematic block diagram of a server entity in a machine communication system according to another embodiment of the present invention.
图19是本发明另一实施例的机器通信系统中服务端实体的示意性框图。FIG. 19 is a schematic block diagram of a server entity in a machine communication system according to another embodiment of the present invention.
图20是本发明另一实施例的机器通信系统中接收端实体的示意性框图。FIG. 20 is a schematic block diagram of a receiver entity in a machine communication system according to another embodiment of the present invention.
图21是本发明另一实施例的机器通信系统中订阅端实体的示意性框图。FIG. 21 is a schematic block diagram of a subscriber entity in a machine communication system according to another embodiment of the present invention.
图22是本发明另一实施例的机器通信系统中服务端实体的示意性框图。FIG. 22 is a schematic block diagram of a server entity in a machine communication system according to another embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
图1示出了根据本发明实施例的统一机器到机器系统的示意性框架图。如图1所示,该oneM2M系统分为应用层、公共服务层以及网络服务层。其中,应用层由应用实体(Application Entity,简称为“AE”)管理负责应用的有关操作与存储,应用层中包含的是实例化的端到端oneM2M解决方案。公共服务层由公共服务实体(Common Services Entity,简称为“CSE”)管理负责汇聚应用层信息形成资源池,同时协调底层网络传输,是oneM2M中的核心层起到平台的作用,公共服务层包括一系列实例化的公共服务功能。网络层由网络服务实体(Network Services Entity,简称为“NSE”)管理负责底层网络传输,并向公共服务层提供底层网络可以提供的能力。FIG. 1 shows a schematic frame diagram of a unified machine-to-machine system according to an embodiment of the present invention. As shown in Figure 1, the oneM2M system is divided into an application layer, a public service layer and a network service layer. Among them, the application layer is managed by an application entity (Application Entity, "AE" for short) and is responsible for the relevant operation and storage of the application, and the application layer contains the instantiated end-to-end oneM2M solution. The public service layer is managed by the Common Services Entity (CSE for short), which is responsible for aggregating application layer information to form a resource pool, and at the same time coordinating the underlying network transmission. It is the core layer in oneM2M that plays the role of a platform. A series of instantiated public service functions. The network layer is managed by a network service entity (Network Services Entity, "NSE" for short), responsible for the transmission of the underlying network, and provides the public service layer with the capabilities that the underlying network can provide.
该oneM2M体系下层与层间的参考点(即接口)有3种,其中,Mca:AE与CSE之间的接口,负责AE到CSE或CSE到AE间的通信;Mcc/Mcc’:两个CSE间的接口,负责CSE间的通信;Mcn:CSE与NSE之间的接口,负责CSE到NSE或NSE到CSE间的通信。还有一个Mch参考点(图中并未画出),是oneM2M系统与计费系统间的接口。There are three types of reference points (ie interfaces) between the lower layers and the layers of the oneM2M system. Among them, Mca: the interface between the AE and the CSE, responsible for the communication between the AE and the CSE or between the CSE and the AE; Mcc/Mcc': two CSEs Interface between CSEs, responsible for communication between CSEs; Mcn: interface between CSE and NSE, responsible for communication between CSE to NSE or NSE to CSE. There is also a Mch reference point (not shown in the figure), which is the interface between the oneM2M system and the billing system.
oneM2M系统构架主要分为两个域:基础设施域(Infrastructure Domain,简称为“IN”)以及场域(Field Domain),其中场域包括中间节点(Middle Node,简称为“MN”)、应用服务节点(Application Service Node,简称为“ASN”)以及应用专用节点(ApplicationDedicated Node,简称为“AND”),基础设施域包括公共节点。其中除ADN节点只包含AE外其他节点都包含CSE。The oneM2M system architecture is mainly divided into two domains: infrastructure domain (Infrastructure Domain, referred to as "IN") and field domain (Field Domain). A node (Application Service Node, referred to as "ASN" for short) and an application dedicated node (Application Dedicated Node, referred to as "AND" for short), the infrastructure domain includes public nodes. Except that the ADN node only includes AE, all other nodes include CSE.
应理解,在本发明实施例中,该oneM2M系统中所有的实体,比如AE和CSE的信息以及数据信息等都可以以资源来表示。资源结构则详细定义了资源的表示方式,同时定义了获取这些资源的方式。这些资源都是独立可寻址的。订阅端实体(originator)可以为接收端实体(notification receiver)向服务端实体(hosting CSE)订阅资源或子资源改变的通知。例如,订阅端实体向服务端实体发送订阅创建请求,该订阅创建请求中携带服务端实体下的资源或子资源的标识地址、接收端实体的标识(notificationURI)、通知的内容和类型(notificationContentType)以及触发通知的条件(eventNotificationCriteria)等。接收端实体根据订阅创建请求,在本地创建订阅子资源。本发明实施例提供了一种订阅资源的方法和实体,能够提高前述订阅过程中订阅修改的灵活性。It should be understood that, in this embodiment of the present invention, all entities in the oneM2M system, such as AE and CSE information and data information, may be represented by resources. The resource structure defines the representation of resources in detail, and defines the way to obtain these resources. These resources are individually addressable. The subscriber entity (originator) can subscribe to the server entity (hosting CSE) for notifications of resource or sub-resource changes for the receiver entity (notification receiver). For example, the subscriber entity sends a subscription creation request to the server entity, and the subscription creation request carries the identifier address of the resource or sub-resource under the server entity, the identifier of the recipient entity (notificationURI), and the content and type of the notification (notificationContentType). And the conditions that trigger the notification (eventNotificationCriteria), etc. The receiving entity creates the subscription sub-resource locally according to the subscription creation request. The embodiments of the present invention provide a method and entity for subscribing resources, which can improve the flexibility of subscription modification in the foregoing subscription process.
还应理解,在本发明实施例中,创建资源可以认为是创建不包括属性的资源,也可以认为是创建包括属性的资源,更新资源可以认为是在该资源下创建一个属性,也可以认为是更新该资源下的一个属性的属性值,还可以是删除该资源下的一个属性,并且,在本发明实施例中,“创建”属性和“更新”属性经常可以互换使用,“存储”和“创建”乃至“更新”也经常可以互换使用,资源下的属性、资源的属性以及资源包括的属性表示的是同一个含义,资源或属性可以指代已经被创建(或存储)的信息,也可以指代已经被确定但是尚未被创建(或存储)的信息,本发明对此并不限定。It should also be understood that, in this embodiment of the present invention, creating a resource can be considered as creating a resource that does not include attributes, or it can be considered as creating a resource including attributes, and updating a resource can be considered as creating an attribute under the resource, or it can be considered as creating an attribute under the resource. Updating the attribute value of an attribute under the resource may also delete an attribute under the resource, and, in this embodiment of the present invention, the "create" attribute and the "update" attribute are often used interchangeably, "storage" and "store" are often used interchangeably. "Create" and even "update" are often used interchangeably. Properties under resources, properties of resources, and properties included in resources represent the same meaning. Resources or properties can refer to information that has been created (or stored). It can also refer to information that has been determined but not yet created (or stored), which is not limited in the present invention.
本发明中的标识为实体的标识或地址标识,在本发明不做限定。The identifier in the present invention is the identifier of the entity or the address identifier, which is not limited in the present invention.
图2是本发明一个实施例的机器通信系统中订阅通知的方法的示意性流程图。图2所示的方法可以由服务端实体(Hosting CSE)执行。该方法包括:FIG. 2 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to an embodiment of the present invention. The method shown in FIG. 2 may be performed by a server entity (Hosting CSE). The method includes:
201,服务端实体接收接收端实体发送的通知取消指示。201. The server entity receives the notification cancellation indication sent by the receiver entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)不想再接收到通知时,可以主动向服务端实体发送通知取消指示。具体地,发起通知取消指示的时机可以是在接收通知的过程中,或者是在接收到通知之前,本发明实施例对此不做限定。另外可选的还可以携带接收端实体的标识或地址。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) no longer wants to receive notifications, it can actively send a notification cancellation instruction to the server entity. Specifically, the timing for initiating the notification cancellation indication may be in the process of receiving the notification, or before the notification is received, which is not limited in this embodiment of the present invention. In addition, it can also optionally carry the identifier or address of the receiving end entity.
202,当接收端实体有权限时,服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性通知统一资源标识符(notificationURI)。202 , when the receiving-end entity has the authority, the server-end entity modifies the resource attribute according to the notification cancellation instruction, and stops sending the notification to the receiving-end entity, and the resource attribute notifies a uniform resource identifier (notificationURI).
例如,服务端可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体有权限,服务端实体可以根据通知取消指示修改该接收端实体对应的资源属性。其中,资源属性包括接收端标识(notificationURI)。For example, the server can first determine whether the recipient entity has permission to modify the resource attributes. If the receiving-end entity has the right, the server-end entity may modify the resource attribute corresponding to the receiving-end entity according to the notification cancellation instruction. The resource attribute includes a receiver identifier (notificationURI).
203,服务端实体向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改。203 , the server entity sends a subscription modification notification message to the subscriber entity, where the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity.
例如,在服务端实体完成对资源属性的修改时,可以通知订阅端实体自己对接收端实体的资源属性的具体修改内容。这样,订阅端实体可以根据修改内容调整缴费等。应理解,订阅修改消息应该包括接收端实体的标识(notification receiver ID),另一种可选实现方式是订阅修改消息中包含修改后的资源属性包括接收端标识(notificationURI),这样订阅端实体可以获知是哪个接收端实体对订阅资源做了修改。For example, when the server entity completes the modification of the resource attribute, it can notify the subscriber entity of the specific modification content of the resource attribute of the receiver entity. In this way, the subscriber entity can adjust the payment according to the modified content, etc. It should be understood that the subscription modification message should include the identifier of the receiver entity (notification receiver ID). Another optional implementation is that the subscription modification message contains the modified resource attribute including the receiver ID (notificationURI), so that the subscriber entity can Know which receiver entity has modified the subscription resource.
另外,订阅修改消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the subscription modification message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(event notification criteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification criteria attribute in the subscription resource is satisfied.
基于上述技术方案,在具有权限时,接收端实体可以向服务端实体发起对资源属性的修改。接着,服务端实体根据通知取消指示对资源属性进行修改,并向订阅端实体通知具体的修改内容。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solutions, when having the authority, the receiving-end entity can initiate the modification of the resource attributes to the server-end entity. Next, the server entity modifies the resource attribute according to the notification cancellation instruction, and notifies the subscriber entity of the specific modification content. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,根据通知取消指示修改资源属性时,服务端实体根据通知取消指示,删除通知统一资源标识符中的接收端实体的标识。Optionally, as an embodiment, when modifying the resource attribute according to the notification cancellation instruction, the server entity deletes the identifier of the recipient entity in the notification uniform resource identifier according to the notification cancellation instruction.
例如,服务端实体接收到接收端实体发送的订阅取消指示(stop receivingnotification,或notification cancellation)时,将通知统一资源标识符中的接收端实体的标识(URI)删除。同时,停止向接收端实体发送通知消息。For example, when the server entity receives a subscription cancellation indication (stop receiving notification, or notification cancellation) sent by the receiver entity, it deletes the identifier (URI) of the receiver entity in the notification uniform resource identifier. At the same time, stop sending notification messages to the receiving entity.
可选地,作为另一实施例,接收接收端实体发送的通知取消指示时,接收接收端实体发送的更新消息,更新消息携带通知取消指示。或者,服务端实体接收接收端实体发送的通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知取消指示。或者,服务端实体接收接收端实体产生的通知请求消息,通知请求消息携带通知取消指示。Optionally, as another embodiment, when receiving the notification cancellation indication sent by the receiver entity, an update message sent by the receiver entity is received, and the update message carries the notification cancellation indication. Alternatively, the server entity receives a notification response message sent by the receiver entity, where the notification response is a notification response to a notification request generated by the server entity when the event rule is satisfied, and the notification response message carries a notification cancellation indication. Or, the server entity receives the notification request message generated by the receiver entity, and the notification request message carries the notification cancellation indication.
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知取消指示。或者,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知取消指示。或者,接收端实体可以向服务端实体发送通知请求(notify request)。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification cancellation indication. Or, the receiving-end entity carries the notification cancellation indication in the notification response message (notify response) of the notification request (notify request) to the server entity. Alternatively, the recipient entity may send a notify request to the server entity.
图3是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。图3所示的方法可以由服务端实体(hosting CSE)执行。该方法包括:FIG. 3 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention. The method shown in FIG. 3 may be performed by a hosting CSE. The method includes:
301,服务端实体接收接收端实体发送的通知取消指示。301. The server entity receives the notification cancellation indication sent by the receiver entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)不想再接收到通知时,可以主动向服务端实体发送通知取消指示。具体地,发起通知取消指示的时机可以是在接收通知的过程中,或者是在接收到通知之前,本发明实施例对此不做限定。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) no longer wants to receive notifications, it can actively send a notification cancellation instruction to the server entity. Specifically, the timing for initiating the notification cancellation indication may be in the process of receiving the notification, or before the notification is received, which is not limited in this embodiment of the present invention.
302,当接收端实体没有权限时,服务端实体向订阅端实体发送通知取消指示。302 , when the receiver entity has no authority, the server entity sends a notification cancellation indication to the subscriber entity.
例如,服务端实体可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送该通知取消指示。具体地,可以通过notify request消息携带该通知取消指示。For example, the server entity may first determine whether the receiver entity has permission to modify the resource attributes. If the receiving-end entity does not have permission, the server-end entity may first send the notification cancellation instruction to the subscribing-end entity. Specifically, the notification cancellation indication may be carried in the notify request message.
303,服务端实体接收订阅端实体根据通知取消指示发送的更新请求消息。303: The server entity receives the update request message sent by the subscriber entity according to the notification cancellation instruction.
另外,更新请求消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the update request message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
304,服务端实体根据更新请求消息修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符(notificationURI)。304 , the server entity modifies the resource attribute according to the update request message, and stops sending the notification to the receiver entity, where the resource attribute includes a notification uniform resource identifier (notificationURI).
需要说明的是订阅端实体接收到服务端实体通知取消指示后,确定是否执行303和304。It should be noted that the subscriber entity determines whether to execute 303 and 304 after receiving the notification cancellation instruction from the server entity.
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(eventNotificationCriteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification rule (eventNotificationCriteria) attribute in the subscription resource is satisfied.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知取消指示发送给订阅端实体。若订阅端实体接收该通知取消指示,向服务端发送订阅资源修改请求,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification cancellation indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification cancellation instruction, it sends a subscription resource modification request to the server, and the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,根据更新请求消息修改资源属性时,服务端实体根据更新请求消息,删除通知统一资源标识符中的接收端实体的标识。Optionally, as an embodiment, when the resource attribute is modified according to the update request message, the server entity deletes the identifier of the receiver entity in the notification uniform resource identifier according to the update request message.
例如,服务端实体接收到接收端实体发送的订阅取消指示(stop receivingnotification,或notification cancellation)时,当接收端实体没有权限时,服务端实体向订阅端实体发送通知取消指示,订阅端实体发送订阅资源修改请求到服务端,服务端将资源属性中的接收端实体的标识(URI)删除。同时,停止向接收端实体发送通知消息。For example, when the server entity receives a subscription cancellation instruction (stop receiving notification, or notification cancellation) sent by the receiver entity, when the receiver entity has no authority, the server entity sends a notification cancellation instruction to the subscriber entity, and the subscriber entity sends a subscription The resource modification request is sent to the server, and the server deletes the identifier (URI) of the receiver entity in the resource attribute. At the same time, stop sending notification messages to the receiving entity.
可选地,作为另一实施例,接收接收端实体发送的通知取消指示时,服务端实体接收接收端实体发送的更新消息,更新消息携带通知取消指示。或者,服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示。或者,服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。Optionally, as another embodiment, when receiving the notification cancellation indication sent by the receiver entity, the server entity receives an update message sent by the receiver entity, where the update message carries the notification cancellation indication. Or, the server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification cancellation indication. Or, the server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification cancellation indication.
例如,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知取消指示。该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知取消指示。或者服务端实体接收接收端实体产生的通知请求消息,通知响应消息携带通知取消指示。For example, the receiver entity carries a notification cancellation indication in a notify response message (notify response) of a notify request (notify request) to the server entity. The notification response is a notification response when the notification request is generated by the server entity when the event rule is satisfied, and the notification response message carries a notification cancellation indication. Or the server entity receives the notification request message generated by the receiver entity, and the notification response message carries the notification cancellation indication.
图4是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。图4所示的方法可以由接收端实体(notification receiver)执行,如AE或CSE。该方法包括:FIG. 4 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention. The method shown in Figure 4 may be performed by a notification receiver, such as AE or CSE. The method includes:
401,接收端实体生成通知取消指示。401. The receiving end entity generates a notification cancellation indication.
例如,在订阅端实体(AE或CSE)为接收端实体创建了订阅资源的场景下,若是接收端实体(AE或CSE)想要对该订阅的资源进行修改时(如不想再次接收到订阅的通知),可以先生成通知取消指示。For example, in the scenario where the subscribing entity (AE or CSE) creates a subscription resource for the receiving entity, if the receiving entity (AE or CSE) wants to modify the subscribed resource (for example, it does not want to receive the subscribed resource again) notification), a notification cancellation indication can be generated first.
402,接收端实体向服务端实体发送通知取消指示,以便于服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符。402 , the receiver entity sends a notification cancellation instruction to the server entity, so that the server entity modifies the resource attribute according to the notification cancellation instruction, and stops sending the notification to the receiver entity, where the resource attribute includes the notification uniform resource identifier.
另外,可选的,通知取消指示还可以携带接收端实体的标识或地址。In addition, optionally, the notification cancellation indication may also carry the identifier or address of the receiving end entity.
具体地,接收端实体发起通知取消指示的时机可以是在接收订阅的通知的过程中,或者是在接收到订阅通知之前,本发明实施例对此不做限定Specifically, the timing when the receiving end entity initiates the notification cancellation indication may be in the process of receiving the subscription notification, or before receiving the subscription notification, which is not limited in this embodiment of the present invention
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
基于上述技术方案,接收端实体可以主动向服务端实体发起通知取消指示,以便于服务端实体根据通知取消指示对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, the receiver entity can actively initiate a notification cancellation instruction to the server entity, so that the server entity can modify the subscription resources according to the notification cancellation instruction. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,向服务端实体发送通知取消指示时,接收端实体可以向服务端实体发送更新消息,更新消息携带通知取消指示。或者,接收端实体向服务端实体发送通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知取消指示。或者,接收端实体向服务端实体发送通知请求消息,通知响应消息携带通知取消指示。Optionally, as an embodiment, when sending the notification cancellation indication to the server entity, the receiving end entity may send an update message to the server entity, where the update message carries the notification cancellation indication. Alternatively, the receiver entity sends a notification response message to the server entity, where the notification response is a notification response to a notification request generated by the server entity when the event rule is satisfied, and the notification response message carries a notification cancellation indication. Alternatively, the receiver entity sends a notification request message to the server entity, and the notification response message carries a notification cancellation indication.
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知取消指示。或者,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知取消指示。或者接收端实体在向服务端实体发送通知请求(notify request)携带通知取消指示。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification cancellation indication. Or, the receiving-end entity carries the notification cancellation indication in the notification response message (notify response) of the notification request (notify request) to the server entity. Or the receiving-end entity sends a notification request (notify request) to the server-end entity carrying the notification cancellation indication.
图5是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。图5所示的方法可以由订阅端实体(originator)执行,如AE或CSE。该方法包括:FIG. 5 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention. The method shown in FIG. 5 may be performed by a subscriber entity (originator), such as AE or CSE. The method includes:
501,订阅端实体接收服务端实体发送的通知取消指示,通知取消指示是接收端实体向服务端实体发送的。501. The subscriber entity receives the notification cancellation indication sent by the server entity, and the notification cancellation indication is sent by the receiving end entity to the server entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对该通知进行修改时,可以主动向服务端实体发起通知取消指示。服务端可以先确定接收端实体是否有权限对订阅资源进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送通知取消指示。For example, in the scenario where the subscriber entity (AE or CSE) subscribes to the notification for the receiver entity, if the receiver entity (AE or CSE) wants to modify the notification, it can actively initiate a notification cancellation instruction to the server entity . The server can first determine whether the recipient entity has permission to modify the subscription resource. If the receiving-end entity does not have permission, the server-end entity may first send a notification cancellation instruction to the subscribing-end entity.
502,订阅端实体根据通知取消指示向述服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知统一资源标识符(notificationURI)。502 , the subscriber entity sends an update request message to the server entity according to the notification cancellation instruction, so that the server entity can modify the resource attribute according to the update request message, and the resource attribute includes a notification uniform resource identifier (notificationURI).
例如,通过更新请求消息携带更新后的通知统一资源标识符notificationURI。For example, the update request message carries the updated notification uniform resource identifier notificationURI.
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知取消指示发送给订阅端实体。若订阅端实体接收该通知取消指示,向服务端发送订阅资源修改请求,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification cancellation indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification cancellation instruction, it sends a subscription resource modification request to the server, and the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
图6是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。图6所示的方法可以由服务端实体(Hosting CSE)执行。该方法包括:FIG. 6 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention. The method shown in FIG. 6 may be performed by a server entity (Hosting CSE). The method includes:
601,服务端实体接收接收端实体发送的通知修改指示。601. The server entity receives the notification modification indication sent by the receiver entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对资源属性进行修改时,可以主动向服务端实体发起通知修改指示。具体地,发起通知修改指示的时机可以是在接收订阅通知的过程中,或者是在接收到订阅通知之前,本发明实施例对此不做限定。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) wants to modify the resource attributes, it can actively initiate a notification modification instruction to the server entity . Specifically, the timing for initiating the notification modification indication may be in the process of receiving the subscription notification, or before receiving the subscription notification, which is not limited in this embodiment of the present invention.
应理解,通知修改指示可以用于指示服务端实体删除、增加或者修改订阅资源的某一个或多个属性,本发明实施例对此不做限定。另外,在发送通知修改指示时可以同时发送订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。It should be understood that the notification modification indication may be used to instruct the server entity to delete, add, or modify one or more attributes of the subscription resource, which is not limited in this embodiment of the present invention. In addition, a subscription reference may be sent at the same time as the notification modification indication is sent. The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
602,当接收端实体有权限时,服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则。602 , when the receiver entity has the authority, the server entity modifies the resource attribute according to the notification modification instruction, and sends a notification to the receiver entity based on the modified resource attribute, where the resource attribute includes a notification sending rule.
例如,服务端可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体有权限,服务端实体可以根据通知取消指示修改该接收端实体对应的资源属性。其中,资源属性包括通知的发送规则,如发送周期、信息类型和到期时间中的一种或多种。For example, the server can first determine whether the recipient entity has permission to modify the resource attributes. If the receiving-end entity has the right, the server-end entity may modify the resource attribute corresponding to the receiving-end entity according to the notification cancellation instruction. The resource attribute includes a notification sending rule, such as one or more of a sending period, an information type, and an expiration time.
具体地,服务端实体可以将订阅资源的各个属性分别扩展为列表,包含多个值。其中列表中的每一个值分别对应一个接收端实体。这样,在服务端实体可以分别针对各个接收端实体发送的订阅修改请求修改其对应的资源属性。Specifically, the server entity may expand each attribute of the subscription resource into a list containing multiple values. Each value in the list corresponds to a receiver entity. In this way, the server entity can modify the corresponding resource attributes for the subscription modification request sent by each receiver entity respectively.
或者,服务端实体可以在订阅资源属性中创建新的属性修改策略。用该属性记载接收端实体对订阅资源的修改内容。Alternatively, the server entity can create a new attribute modification strategy in the subscription resource attribute. Use this attribute to record the modification content of the subscribed resource by the receiver entity.
603,服务端实体向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改。603: The server entity sends a subscription modification notification message to the subscriber entity, where the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity.
例如,在服务端实体完成对资源属性的修改时,可以通知订阅端实体自己对接收端实体的资源属性的具体修改内容。这样,订阅端实体可以根据修改内容调整缴费等。For example, when the server entity completes the modification of the resource attribute, it can notify the subscriber entity of the specific modification content of the resource attribute of the receiver entity. In this way, the subscriber entity can adjust the payment according to the modified content, etc.
另外,订阅修改通知消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the subscription modification notification message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(event notification criteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification criteria attribute in the subscription resource is satisfied.
基于上述技术方案,在具有权限时,接收端实体可以向服务端实体发起对资源属性的修改。接着,服务端实体根据通知修改指示对资源属性进行修改,并向订阅端实体通知具体的修改内容。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solutions, when having the authority, the receiving-end entity can initiate the modification of the resource attributes to the server-end entity. Next, the server entity modifies the resource attribute according to the notification modification instruction, and notifies the subscriber entity of the specific modification content. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,根据通知修改指示对资源属性进行修改时,服务端实体可以根据通知修改指示中的参数,将资源属性修改为参数对应的值。Optionally, as an embodiment, when modifying the resource attribute according to the notification modification instruction, the server entity may modify the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
例如,通知修改指示包括到期时间、发送周期和信息类型中的一种或多种参数,以及接收端实体的标识。这样,服务端实体根据通知修改指示中的参数,将接收端实体的订阅资源的属性修改为参数对应的值。For example, the notification modification indication includes one or more parameters of expiration time, transmission period and message type, and the identity of the recipient entity. In this way, the server entity modifies the attribute of the subscription resource of the receiver entity to the value corresponding to the parameter according to the parameter in the notification modification instruction.
可选地,作为另一实施例,接收接收端实体发送的通知修改指示时,服务端实体接收接收端实体发送的更新消息,更新消息携带通知修改指示。或者,服务端实体接收接收端实体发送的通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知修改指示。或者接收端实体向服务端实体发送通知请求消息,通知响应消息携带通知修改指示。Optionally, as another embodiment, when receiving the notification modification indication sent by the receiving end entity, the server entity receives an update message sent by the receiving end entity, where the update message carries the notification modification indication. Alternatively, the server entity receives a notification response message sent by the receiver entity, where the notification response is a notification response to a notification request generated by the server entity when the event rule is satisfied, and the notification response message carries a notification modification indication. Or the receiver entity sends a notification request message to the server entity, and the notification response message carries the notification modification indication.
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知修改指示。或者,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知修改指示。或者,接收端实体可以向服务端实体发送通知请求(notify request)携带通知修改指示。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification modification indication. Or, the receiving-end entity carries the notification modification indication in the notification response message (notify response) of the notification request (notify request) to the server entity. Alternatively, the receiving-end entity may send a notification request (notify request) to the server-end entity carrying the notification modification indication.
可选地,作为另一实施例,在接收接收端实体发送的通知修改指示之前,服务端实体向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。Optionally, as another embodiment, before receiving the notification modification instruction sent by the receiver entity, the server entity sends the resource attribute to the receiver entity, so that the receiver entity can generate the notification modification instruction according to the resource attribute.
例如,在接收端实体接收通知请求之前或之后,接收端实体向服务端实体获取订阅资源的属性,以便于接收端实体根据订阅的资源的属性,生成通知修改指示。For example, before or after the receiving-end entity receives the notification request, the receiving-end entity obtains the attributes of the subscribed resources from the server-end entity, so that the receiving-end entity can generate a notification modification instruction according to the attributes of the subscribed resources.
可选地,作为另一实施例,发送规则包括发送周期、信息类型和到期时间中的一种或多种。Optionally, as another embodiment, the sending rule includes one or more of a sending period, an information type, and an expiration time.
图7是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。图7所示的方法可以由服务端实体(Hosting CSE)执行。该方法包括:FIG. 7 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention. The method shown in FIG. 7 may be performed by a server entity (Hosting CSE). The method includes:
701,服务端实体接收接收端实体发送的通知修改指示。701. The server entity receives the notification modification indication sent by the receiver entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对资源属性进行修改时,可以主动向服务端实体发起通知修改指示。具体地,发起通知修改指示的时机可以是在接收订阅通知的过程中,或者是在接收到订阅通知之前,本发明实施例对此不做限定。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) wants to modify the resource attributes, it can actively initiate a notification modification instruction to the server entity . Specifically, the timing for initiating the notification modification indication may be in the process of receiving the subscription notification, or before receiving the subscription notification, which is not limited in this embodiment of the present invention.
应理解,通知修改指示可以用于指示服务端实体删除、增加或者修改订阅资源的某一个或多个属性,本发明实施例对此不做限定。It should be understood that the notification modification indication may be used to instruct the server entity to delete, add, or modify one or more attributes of the subscription resource, which is not limited in this embodiment of the present invention.
702,当接收端实体没有权限时,服务端实体向订阅端实体发送通知修改指示。702 , when the receiver entity has no authority, the server entity sends a notification modification indication to the subscriber entity.
例如,服务端实体可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送该通知修改指示。具体地,可以通过notify request消息携带该通知修改指示。For example, the server entity may first determine whether the receiver entity has permission to modify the resource attributes. If the receiving-end entity does not have the authority, the server-end entity may first send the notification modification indication to the subscribing-end entity. Specifically, the notification modification indication may be carried in a notify request message.
703,服务端实体接收订阅端实体根据所述通知修改指示发送的更新请求消息。703. The server entity receives an update request message sent by the subscriber entity according to the notification modification instruction.
另外,更新请求消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the update request message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
704,服务端实体根据更新请求消息修改资源属性,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则,如发送周期、信息类型和到期时间中的一种或多种。704, the server entity modifies the resource attribute according to the update request message, and sends a notification to the receiver entity based on the modified resource attribute. variety.
需要说明的是订阅端实体接收到服务端实体通知修改指示后,确定是否执行703和704。It should be noted that after receiving the modification instruction notified by the server entity, the subscriber entity determines whether to execute 703 and 704.
其中,订阅端实体与接收端实体为两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(eventNotificationCriteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification rule (eventNotificationCriteria) attribute in the subscription resource is satisfied.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知修改指示发送给订阅端实体。若订阅端实体接收该通知修改指示,向服务端发送订阅资源修改请求,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification modification indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification modification instruction, it sends a subscription resource modification request to the server, and the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,根据通知修改指示修改资源属性时,服务端实体根据通知修改指示中的参数,将资源属性修改为参数对应的值。Optionally, as an embodiment, when modifying the resource attribute according to the notification modification instruction, the server entity modifies the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
例如,通知修改指示包括到期时间(expiration time)、发送周期(notify cycle)和信息类型(notification content type)中的一种或多种参数,以及接收端实体的标识。这样,服务端实体根据通知修改指示中的参数,将接收端实体的订阅资源的属性修改为参数对应的值。For example, the notification modification indication includes one or more parameters of expiration time, notification cycle, and notification content type, as well as the identity of the recipient entity. In this way, the server entity modifies the attribute of the subscription resource of the receiver entity to the value corresponding to the parameter according to the parameter in the notification modification instruction.
可选地,作为另一实施例,服务端实体接收接收端实体发送的通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知修改指示,通知响应消息携带通知修改指示。或者服务端实体接收接收端实体产生的通知请求消息,通知响应消息携带通知修改指示。Optionally, as another embodiment, the server entity receives a notification response message sent by the receiver entity, where the notification response is a notification response to a notification request generated by the server entity when the event rule is satisfied, and the notification response message carries a notification modification instruction, The notification response message carries the notification modification indication. Or the server entity receives the notification request message generated by the receiver entity, and the notification response message carries the notification modification indication.
例如,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知修改指示。或者,接收端实体在向服务端实体发送通知请求(notify request)携带通知修改指示。For example, the receiving-end entity carries a notification modification indication in a notify response message (notify response) of a notify request (notify request) to the server-end entity. Alternatively, the receiving-end entity sends a notification request (notify request) to the server-end entity carrying the notification modification indication.
可选地,作为另一实施例,在服务端实体接收接收端实体发送的通知修改指示之前,服务端实体向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。Optionally, as another embodiment, before the server entity receives the notification modification instruction sent by the receiver entity, the server entity sends the resource attribute to the receiver entity, so that the receiver entity can generate the notification modification instruction according to the resource attribute.
例如,在接收端实体接收通知请求之前或之后,接收端实体向服务端实体获取订阅资源的属性,以便于接收端实体根据订阅的资源的属性,生成通知修改指示。For example, before or after the receiving-end entity receives the notification request, the receiving-end entity obtains the attributes of the subscribed resources from the server-end entity, so that the receiving-end entity can generate a notification modification instruction according to the attributes of the subscribed resources.
图8是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。图8所示的方法可以由接收端实体(notification receiver)执行,如AE或CSE。该方法包括:FIG. 8 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention. The method shown in Figure 8 may be performed by a notification receiver, such as AE or CSE. The method includes:
801,接收端实体生成通知修改指示。801. The receiving end entity generates a notification modification indication.
例如,在订阅端实体(AE或CSE)为接收端实体创建了订阅资源的场景下,若是接收端实体(AE或CSE)想要对该订阅的资源进行修改时(,可以先生成通知修改指示。For example, in the scenario where the subscriber entity (AE or CSE) creates a subscription resource for the receiver entity, if the receiver entity (AE or CSE) wants to modify the subscribed resource (a notification modification indication can be generated first) .
应理解,通知修改指示可以用于指示服务端实体删除、增加或者修改订阅资源的某一个或多个属性,本发明实施例对此不做限定。It should be understood that the notification modification indication may be used to instruct the server entity to delete, add, or modify one or more attributes of the subscription resource, which is not limited in this embodiment of the present invention.
802,接收端实体向服务端实体发送通知修改指示,以便于服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则。802, the receiving-end entity sends a notification modification instruction to the server-end entity, so that the server-end entity can modify the resource attribute according to the notification modification instruction, and send a notification to the receiving-end entity based on the modified resource attribute, and the resource attribute includes the notification sending rule. .
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
基于上述技术方案,接收端实体可以主动向服务端实体发起通知修改指示,以便于服务端实体根据通知修改指示对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, the receiving-end entity can actively initiate a notification modification instruction to the server-end entity, so that the server-end entity can modify the subscription resource according to the notification modification instruction. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,向服务端实体发送通知修改指示时,接收端实体向服务端实体发送更新消息,更新消息携带通知修改指示。或者,接收端实体向服务端实体发送通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知修改指示。或者服务端实体接收接收端实体产生的通知请求消息,通知响应消息携带通知修改指示。Optionally, as an embodiment, when the notification modification indication is sent to the server entity, the receiving end entity sends an update message to the server entity, and the update message carries the notification modification indication. Alternatively, the receiver entity sends a notification response message to the server entity, where the notification response is a notification response to a notification request generated by the server entity when the event rule is satisfied, and the notification response message carries a notification modification indication. Or the server entity receives the notification request message generated by the receiver entity, and the notification response message carries the notification modification indication.
可选地,在接收端实体生成通知修改指示之前,接收端实体接收服务端实体发送的资源属性。这种情况下,生成通知修改指示时,接收端实体根据资源属性,生成通知修改指示。Optionally, before the receiving-end entity generates the notification modification indication, the receiving-end entity receives the resource attribute sent by the server-end entity. In this case, when the notification modification instruction is generated, the receiving-end entity generates the notification modification instruction according to the resource attribute.
例如,在接收端实体接收通知请求之前或之后,接收端实体向服务端实体获取订阅资源的属性,以便于接收端实体根据订阅的资源的属性,生成通知修改指示。For example, before or after the receiving-end entity receives the notification request, the receiving-end entity obtains the attributes of the subscribed resources from the server-end entity, so that the receiving-end entity can generate a notification modification instruction according to the attributes of the subscribed resources.
图9是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。图9所示的方法可以由订阅端实体(originator)执行,如AE或CSE。该方法包括:FIG. 9 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention. The method shown in FIG. 9 may be performed by a subscriber entity (originator), such as AE or CSE. The method includes:
901,订阅端实体接收服务端实体发送的通知修改指示,通知修改指示是接收端实体向服务端实体发送的。901 , the subscriber entity receives the notification modification indication sent by the server entity, and the notification modification indication is sent by the receiver entity to the server entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对该通知进行修改时,可以主动向服务端实体发起通知修改指示。服务端可以先确定接收端实体是否有权限对订阅资源进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送通知修改指示。For example, in the scenario where the subscriber entity (AE or CSE) subscribes to the notification for the receiver entity, if the receiver entity (AE or CSE) wants to modify the notification, it can actively initiate a notification modification instruction to the server entity . The server can first determine whether the recipient entity has permission to modify the subscription resource. If the receiving-end entity does not have permission, the server-end entity may first send a notification modification indication to the subscribing-end entity.
902,订阅端实体根据所述通知修改指示向所述服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知的发送规则。902. The subscriber entity sends an update request message to the server entity according to the notification modification instruction, so that the server entity can modify a resource attribute according to the update request message, where the resource attribute includes a notification sending rule.
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知修改指示发送给订阅端实体。若订阅端实体接收该通知修改指示,向服务端发送订阅资源修改请求,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification modification indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification modification instruction, it sends a subscription resource modification request to the server, and the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
下面将结合具体的例子详细描述本发明实施例。应注意,这些例子只是为了帮助本领域技术人员更好地理解本发明实施例,而非限制本发明实施例的范围。The embodiments of the present invention will be described in detail below with reference to specific examples. It should be noted that these examples are only for helping those skilled in the art to better understand the embodiments of the present invention, rather than limiting the scope of the embodiments of the present invention.
图10是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 10 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
S1001,服务端实体向接收端实体发送通知请求(notify request)。S1001, the server entity sends a notification request (notify request) to the receiver entity.
例如,订阅端实体为接收端实体订阅通知时,服务端实体在本地创建订阅资源。在满足订阅资源中的eventnotificationcriteria时,服务端实体产生通知消息向接收端实体发送通知请求。For example, when a subscriber entity subscribes to notifications for a receiver entity, the server entity creates subscription resources locally. When the eventnotificationcriteria in the subscription resource is satisfied, the server entity generates a notification message and sends a notification request to the receiver entity.
S1002,接收端实体向服务端实体发送通知响应。其中,通知响应携带通知取消指示(stop receiving notification或notification cancellation)。另外,通知响应还可以携带订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。S1002, the receiver entity sends a notification response to the server entity. The notification response carries a notification cancellation indication (stop receiving notification or notification cancellation). In addition, the notification response may also carry a subscription reference. The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
例如,接收端实体不想再接收到订阅通知时,在通知响应中携带通知取消指示,以请求服务端实体停止向其发送通知消息。可选的,携带接收端标识或地址标识(URI)。For example, when the receiving-end entity no longer wants to receive the subscription notification, a notification cancellation indication is carried in the notification response to request the server-end entity to stop sending notification messages to it. Optionally, it carries a receiving end identifier or an address identifier (URI).
S1003,服务端实体向订阅端实体发送通知消息,通知消息中携带通知取消指示(notification cancellation),用于向订阅端实体通知接收端实体取消接收通知消息。另外,通知消息还可携带订阅参考标识(subscriptionreference)及接收端标识或地址标识(URI)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。S1003 , the server entity sends a notification message to the subscriber entity, where the notification message carries a notification cancellation indication (notification cancellation), which is used to notify the subscriber entity that the receiver entity cancels receiving the notification message. In addition, the notification message may also carry a subscription reference identifier (subscription reference) and a recipient identifier or address identifier (URI). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
S1004,在接收到通知消息后,订阅端实体向服务端实体发送响应消息。S1004, after receiving the notification message, the subscriber entity sends a response message to the server entity.
S1005,订阅端实体向服务端实体发送订阅更新请求,以请求服务端实体停止向接收端实体发送订阅通知。S1005, the subscriber entity sends a subscription update request to the server entity to request the server entity to stop sending subscription notifications to the receiver entity.
S1006,服务端实体根据订阅更新请求删除资源属性中的接收端实体的标识。服务端实体向订阅端实体返回响应消息。这样,服务端实体不会再向接收端实体发送订阅通知。S1006, the server entity deletes the identifier of the receiver entity in the resource attribute according to the subscription update request. The server entity returns a response message to the subscriber entity. In this way, the server entity will no longer send subscription notifications to the receiver entity.
需要说明的是订阅端实体接收到服务端实体通知消息后,确定是否执行S1005和S1006。It should be noted that after receiving the notification message of the server entity, the subscriber entity determines whether to execute S1005 and S1006.
这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
图11是本发明另一实施例的订阅通知的方法的示意性流程图。FIG. 11 is a schematic flowchart of a method for subscribing to a notification according to another embodiment of the present invention.
S1101,接收端实体向服务端实体发送通知取消指示。S1101, the receiver entity sends a notification cancellation indication to the server entity.
例如,接收端实体不想再接收到订阅通知时,在notify request消息中携带通知取消指示,以请求服务端实体停止向其发送订阅通知。For example, when the receiving-end entity no longer wants to receive subscription notifications, a notification cancellation indication is carried in the notify request message to request the server-end entity to stop sending subscription notifications to it.
S1102,服务端实体向接收端实体发送通知取消指示的响应消息。S1102, the server entity sends a response message notifying the cancellation indication to the receiving entity.
S1103,服务端实体向订阅端实体发送通知消息,通知消息中携带通知取消指示(notification cancellation),用于向订阅端实体通知接收端实体取消接收通知消息。另外,通知消息还可携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。S1103 , the server entity sends a notification message to the subscriber entity, where the notification message carries a notification cancellation indication (notification cancellation), which is used to notify the subscriber entity that the receiver entity cancels receiving the notification message. In addition, the notification message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
S1104,在接收到通知消息后,订阅端实体向服务端实体发送响应消息。S1104, after receiving the notification message, the subscriber entity sends a response message to the server entity.
S1105,订阅端实体向服务端实体发送订阅更新请求,以请求服务端实体停止向接收端实体发送订阅通知。S1105, the subscriber entity sends a subscription update request to the server entity to request the server entity to stop sending subscription notifications to the receiver entity.
S1106,服务端实体根据订阅更新请求删除资源属性中的接收端实体的标识。服务端实体向订阅端实体返回响应消息。这样,服务端实体不会再向接收端实体发送订阅通知。S1106, the server entity deletes the identifier of the receiver entity in the resource attribute according to the subscription update request. The server entity returns a response message to the subscriber entity. In this way, the server entity will no longer send subscription notifications to the receiver entity.
需要说明的是订阅端实体接收到服务端实体通知消息后,确定是否执行S1105和S1106。It should be noted that after receiving the notification message of the server entity, the subscriber entity determines whether to execute S1105 and S1106.
这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
图12是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 12 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
S1201,接收端实体向服务端实体发送更新请求消息。该更新请求消息携带需要修改的资源属性。可选地,在步骤S1201之前,接收端实体可以先获取服务端实体上的订阅资源的属性信息。这种情况下,接收端实体可以根据服务端实体上的订阅资源的属性信息,确定需要修改的资源属性。S1201, the receiving-end entity sends an update request message to the server-end entity. The update request message carries the resource attribute that needs to be modified. Optionally, before step S1201, the receiving-end entity may first obtain attribute information of the subscription resource on the server-end entity. In this case, the receiving-end entity may determine the resource attribute to be modified according to the attribute information of the subscription resource on the server-end entity.
例如,订阅端实体请求服务端实体创建订阅资源时,服务端实体在本地创建订阅资源。这时,服务端实体可以先向接收端实体发送订阅资源的属性,或者接收者通过获取订阅资源属性的请求获取服务端实体上的订阅资源的属性,以便于接收端实体根据订阅资源的属性生成更新请求消息。For example, when the subscriber entity requests the server entity to create a subscription resource, the server entity creates the subscription resource locally. At this time, the server entity can first send the properties of the subscription resource to the receiver entity, or the receiver can obtain the properties of the subscription resource on the server entity through a request to obtain the properties of the subscription resource, so that the receiver entity can generate the properties of the subscription resource according to the properties of the subscription resource. Update request message.
S1202,服务端实体向接收端实体发送更新响应消息。S1202, the server entity sends an update response message to the receiver entity.
S1203,服务端实体根据更新请求消息中携带的需要修改的资源属性,修改对应的资源属性。例如,服务端实体根据通知修改指示中的参数,将资源属性修改为参数对应的值。S1203, the server entity modifies the corresponding resource attribute according to the resource attribute to be modified carried in the update request message. For example, the server entity modifies the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
S1204,服务端实体向订阅端实体发送通知消息,以便于通知订阅端实体对订阅资源做了修改。另外,通知消息还可以携带接收端实体的标识,修改的属性值及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。S1204, the server entity sends a notification message to the subscriber entity, so as to notify the subscriber entity that the subscription resource has been modified. In addition, the notification message may also carry the identifier of the receiving end entity, the modified attribute value and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
S1205,订阅端实体向服务端实体发送对通知消息的响应消息。S1205, the subscriber entity sends a response message to the notification message to the server entity.
这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
图13是本发明另一实施例的机器通信系统中订阅通知的方法的示意性流程图。FIG. 13 is a schematic flowchart of a method for subscribing to notifications in a machine communication system according to another embodiment of the present invention.
S1301,接收端实体向订阅端实体发送通知请求消息。该请求消息携带需要修改的资源属性。可选地,在步骤S1301之前,接收端实体可以先获取服务端实体上的订阅资源的属性信息。这种情况下,接收端实体可以根据服务端实体上的订阅资源的属性信息,确定需要修改的资源属性。S1301, the receiver entity sends a notification request message to the subscriber entity. The request message carries the resource attribute that needs to be modified. Optionally, before step S1301, the receiving-end entity may first obtain attribute information of the subscription resource on the server-end entity. In this case, the receiving-end entity may determine the resource attribute to be modified according to the attribute information of the subscription resource on the server-end entity.
具体地,接收端实体可以直接向订阅端实体发送通知请求消息,或者可以选择通过一个CSE实体转发通知请求消息。Specifically, the receiver entity may directly send the notification request message to the subscriber entity, or may choose to forward the notification request message through a CSE entity.
S1302,订阅端实体向接收端实体发送通知响应消息。S1302, the subscriber entity sends a notification response message to the receiver entity.
S1303,订阅端实体向服务端实体发送更新请求消息,通知请求消息中携带需要修改的资源属性,以请求服务端实体修改相应的资源属性。S1303, the subscriber entity sends an update request message to the server entity, notifying that the request message carries the resource attribute that needs to be modified, so as to request the server entity to modify the corresponding resource attribute.
S1304,服务端实体向订阅端实体发送更新请求的响应消息。S1304, the server entity sends a response message of the update request to the subscriber entity.
S1305,服务端实体根据更新请求消息,修改相应的资源属性。S1305, the server entity modifies the corresponding resource attribute according to the update request message.
需要说明的是订阅端实体接收到接收端实体通知消息后,确定是否执行S1303,S1304及S1305。It should be noted that after receiving the notification message of the receiving end entity, the subscriber entity determines whether to execute S1303, S1304 and S1305.
这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
图14是本发明一个实施例的机器通信系统中服务端实体的示意性框图。如图14所示,服务端实体140包括接收单元1401、处理单元1402和发送单元1403。FIG. 14 is a schematic block diagram of a server entity in a machine communication system according to an embodiment of the present invention. As shown in FIG. 14 , the
接收单元1401,用于接收接收端实体发送的通知取消指示。The receiving
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)不想再接收到通知时,可以主动向服务端实体发送通知取消指示。具体地,发起通知取消指示的时机可以是在接收通知的过程中,或者是在接收到通知之前,本发明实施例对此不做限定。另外可选的还可以携带接收端实体的标识或地址。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) no longer wants to receive notifications, it can actively send a notification cancellation instruction to the server entity. Specifically, the timing for initiating the notification cancellation indication may be in the process of receiving the notification, or before the notification is received, which is not limited in this embodiment of the present invention. In addition, it can also optionally carry the identifier or address of the receiving end entity.
处理单元1402,当接收端实体有权限时,用于根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符(notificationURI)。The
例如,服务端可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体有权限,服务端实体可以根据通知取消指示修改该接收端实体对应的资源属性。其中,资源属性包括通知统一资源标识符(notificationURI)。For example, the server can first determine whether the recipient entity has permission to modify the resource attributes. If the receiving-end entity has the right, the server-end entity may modify the resource attribute corresponding to the receiving-end entity according to the notification cancellation instruction. The resource attribute includes a notification uniform resource identifier (notificationURI).
发送单元1403,用于向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改。The sending
例如,在服务端实体完成对资源属性的修改时,可以通知订阅端实体自己对接收端实体的资源属性的具体修改内容。这样,订阅端实体可以根据修改内容调整缴费等。应理解,订阅修改消息应该包括接收端实体的标识(notification receiver ID),另一种可选实现方式是订阅修改消息中包含修改后的资源属性包括接收端标识(notificationURI),这样订阅端实体可以获知是哪个接收端实体对订阅资源做了修改。For example, when the server entity completes the modification of the resource attribute, it can notify the subscriber entity of the specific modification content of the resource attribute of the receiver entity. In this way, the subscriber entity can adjust the payment according to the modified content, etc. It should be understood that the subscription modification message should include the identifier of the receiver entity (notification receiver ID). Another optional implementation is that the subscription modification message contains the modified resource attribute including the receiver ID (notificationURI), so that the subscriber entity can Know which receiver entity has modified the subscription resource.
另外,订阅修改消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the subscription modification message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(event notification criteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification criteria attribute in the subscription resource is satisfied.
基于上述技术方案,在具有权限时,接收端实体可以向服务端实体发起对资源属性的修改。接着,服务端实体根据通知取消指示对资源属性进行修改,并向订阅端实体通知具体的修改内容。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solutions, when having the authority, the receiving-end entity can initiate the modification of the resource attributes to the server-end entity. Next, the server entity modifies the resource attribute according to the notification cancellation instruction, and notifies the subscriber entity of the specific modification content. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,处理单元1402具体用于,根据通知取消指示,删除通知统一资源标识符中的接收端实体的标识。Optionally, as an embodiment, the
例如,服务端实体接收到接收端实体发送的订阅取消指示(stop receivingnotification,或notification cancellation)时,将通知统一资源标识符中的接收端实体的标识(URI)删除。同时,停止向接收端实体发送通知消息。For example, when the server entity receives a subscription cancellation indication (stop receiving notification, or notification cancellation) sent by the receiver entity, it deletes the identifier (URI) of the receiver entity in the notification uniform resource identifier. At the same time, stop sending notification messages to the receiving entity.
可选地,作为另一实施例,接收单元1402具体用于,接收接收端实体发送的更新消息,更新消息携带通知取消指示。或者,接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示。Optionally, as another embodiment, the receiving
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知取消指示。或者,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知取消指示。或者,接收端实体可以向服务端实体发送通知请求(notify request)。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification cancellation indication. Or, the receiving-end entity carries the notification cancellation indication in the notification response message (notify response) of the notification request (notify request) to the server entity. Alternatively, the recipient entity may send a notify request to the server entity.
图15是本发明另一实施例的机器通信系统中服务端实体的示意性框图。图15所示的服务端实体包括第一接收单元1501、发送单元1502、第二接收单元1503和处理单元1504。FIG. 15 is a schematic block diagram of a server entity in a machine communication system according to another embodiment of the present invention. The server entity shown in FIG. 15 includes a first receiving unit 1501 , a sending
第一接收单元1501,用于接收接收端实体发送的通知取消指示。The first receiving unit 1501 is configured to receive the notification cancellation indication sent by the receiving end entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)不想再接收到通知时,可以主动向服务端实体发送通知取消指示。具体地,发起通知取消指示的时机可以是在接收通知的过程中,或者是在接收到通知之前,本发明实施例对此不做限定。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) no longer wants to receive notifications, it can actively send a notification cancellation instruction to the server entity. Specifically, the timing for initiating the notification cancellation indication may be in the process of receiving the notification, or before the notification is received, which is not limited in this embodiment of the present invention.
发送单元1502,当接收端实体没有权限时,用于向订阅端实体发送通知取消指示。The sending
例如,服务端实体可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送该通知取消指示。具体地,可以通过notify request消息携带该通知取消指示。For example, the server entity may first determine whether the receiver entity has permission to modify the resource attributes. If the receiving-end entity does not have permission, the server-end entity may first send the notification cancellation instruction to the subscribing-end entity. Specifically, the notification cancellation indication may be carried in the notify request message.
第二接收单元1503,用于接收订阅端实体根据通知取消指示发送的更新请求消息。The second receiving unit 1503 is configured to receive an update request message sent by the subscriber entity according to the notification cancellation instruction.
另外,更新请求消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the update request message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
处理单元1504,若指示消息表示接受通知取消指示,用于根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括资源属性包括通知统一资源标识符(notificationURI)。The processing unit 1504, if the instruction message indicates that the notification cancellation instruction is accepted, is configured to modify the resource attribute according to the notification cancellation instruction, and stop sending the notification to the recipient entity, where the resource attribute includes a notification uniform resource identifier (notificationURI).
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(eventNotificationCriteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification rule (eventNotificationCriteria) attribute in the subscription resource is satisfied.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知取消指示发送给订阅端实体。若订阅端实体接收该通知取消指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification cancellation indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification cancellation instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,处理单元1504具体用于,根据更新请求消息,删除通知统一资源标识符中的接收端实体的标识。Optionally, as an embodiment, the processing unit 1504 is specifically configured to, according to the update request message, delete the identifier of the recipient entity in the notification uniform resource identifier.
例如,服务端实体接收到接收端实体发送的订阅取消指示(stop receivingnotification,或notification cancellation)时,当接收端实体没有权限时,服务端实体向订阅端实体发送通知取消指示,订阅端实体发送订阅资源修改请求到服务端,服务端将资源属性中的接收端实体的标识(URI)删除。同时,停止向接收端实体发送通知消息。For example, when the server entity receives a subscription cancellation instruction (stop receiving notification, or notification cancellation) sent by the receiver entity, when the receiver entity has no authority, the server entity sends a notification cancellation instruction to the subscriber entity, and the subscriber entity sends a subscription The resource modification request is sent to the server, and the server deletes the identifier (URI) of the receiver entity in the resource attribute. At the same time, stop sending notification messages to the receiving entity.
可选地,作为另一实施例,第一接收单元1501具体用于,接收接收端实体发送的更新消息,更新消息携带通知取消指示。或者,接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示。或者,服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。Optionally, as another embodiment, the first receiving unit 1501 is specifically configured to receive an update message sent by the receiving end entity, where the update message carries a notification cancellation indication. Or, receive a notification response message sent by the receiving-end entity, where the notification response message carries a notification cancellation indication. Or, the server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification cancellation indication.
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知取消指示。该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知取消指示。或者服务端实体接收接收端实体产生的通知请求消息,通知响应消息携带通知取消指示。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification cancellation indication. The notification response is a notification response when the notification request is generated by the server entity when the event rule is satisfied, and the notification response message carries a notification cancellation indication. Or the server entity receives the notification request message generated by the receiver entity, and the notification response message carries the notification cancellation indication.
图16是本发明一个实施例的机器通信系统中接收端实体的示意性框图。图16所示的接收端实体160包括生成单元1601和发送单元1602。FIG. 16 is a schematic block diagram of a receiver entity in a machine communication system according to an embodiment of the present invention. The receiving-
生成单元1601,用于生成通知取消指示。The
例如,在订阅端实体(AE或CSE)为接收端实体创建了订阅资源的场景下,若是接收端实体(AE或CSE)想要对该订阅的资源进行修改时(如不想再次接收到订阅的通知),可以先生成通知取消指示。For example, in the scenario where the subscribing entity (AE or CSE) creates a subscription resource for the receiving entity, if the receiving entity (AE or CSE) wants to modify the subscribed resource (for example, it does not want to receive the subscribed resource again) notification), a notification cancellation indication can be generated first.
发送单元1602,用于向服务端实体发送通知取消指示,以便于服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符。The sending
另外,可选的,通知取消指示还可以携带接收端实体的标识或地址。In addition, optionally, the notification cancellation indication may also carry the identifier or address of the receiving end entity.
具体地,接收端实体发起通知取消指示的时机可以是在接收订阅的通知的过程中,或者是在接收到订阅通知之前,本发明实施例对此不做限定Specifically, the timing when the receiving end entity initiates the notification cancellation indication may be in the process of receiving the subscription notification, or before receiving the subscription notification, which is not limited in this embodiment of the present invention
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
基于上述技术方案,接收端实体可以主动向服务端实体发起通知取消指示,以便于服务端实体根据通知取消指示对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, the receiver entity can actively initiate a notification cancellation instruction to the server entity, so that the server entity can modify the subscription resources according to the notification cancellation instruction. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,发送单元1602具体用于,向服务端实体发送更新消息,更新消息携带通知取消指示。或者,向服务端实体发送通知响应消息,通知响应消息携带通知取消指示该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知取消指示。或者,接收端实体向服务端实体发送通知请求消息,通知响应消息携带通知取消指示。Optionally, as an embodiment, the sending
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知取消指示。或者,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知取消指示。或者接收端实体在向服务端实体发送通知请求(notify request)携带通知取消指示。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification cancellation indication. Or, the receiving-end entity carries the notification cancellation indication in the notification response message (notify response) of the notification request (notify request) to the server entity. Or the receiving-end entity sends a notification request (notify request) to the server-end entity carrying the notification cancellation indication.
图17是本发明一个实施例机器通信系统中的订阅端实体的示意性框图。图17所示的订阅端实体170包括接收单元1701和发送单元1702。FIG. 17 is a schematic block diagram of a subscriber entity in a machine communication system according to an embodiment of the present invention. The
接收单元1701,用于接收服务端实体发送的通知取消指示,通知取消指示是接收端实体向服务端实体发送的。The receiving
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对该通知进行修改时,可以主动向服务端实体发起通知取消指示。服务端可以先确定接收端实体是否有权限对订阅资源进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送通知取消指示。For example, in the scenario where the subscriber entity (AE or CSE) subscribes to the notification for the receiver entity, if the receiver entity (AE or CSE) wants to modify the notification, it can actively initiate a notification cancellation instruction to the server entity . The server can first determine whether the recipient entity has permission to modify the subscription resource. If the receiving-end entity does not have permission, the server-end entity may first send a notification cancellation instruction to the subscribing-end entity.
发送单元1702,用于根据通知取消指示向述服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知统一资源标识符(notificationURI)。The sending
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知取消指示发送给订阅端实体。若订阅端实体接收该通知取消指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification cancellation indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification cancellation instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
图18是本发明另一实施例的机器通信系统中服务端实体的示意性框图。图18所示的服务端实体180包括接收单元1801、处理单元1802和发送单元1803。FIG. 18 is a schematic block diagram of a server entity in a machine communication system according to another embodiment of the present invention. The
接收单元1801,用于接收接收端实体发送的通知修改指示。The receiving
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对资源属性进行修改时,可以主动向服务端实体发起通知修改指示。具体地,发起通知修改指示的时机可以是在接收订阅通知的过程中,或者是在接收到订阅通知之前,本发明实施例对此不做限定。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) wants to modify the resource attributes, it can actively initiate a notification modification instruction to the server entity . Specifically, the timing for initiating the notification modification indication may be in the process of receiving the subscription notification, or before receiving the subscription notification, which is not limited in this embodiment of the present invention.
应理解,通知修改指示可以用于指示服务端实体删除、增加或者修改订阅资源的某一个或多个属性,本发明实施例对此不做限定。另外,在发送通知修改指示时可以同时发送订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。It should be understood that the notification modification indication may be used to instruct the server entity to delete, add, or modify one or more attributes of the subscription resource, which is not limited in this embodiment of the present invention. In addition, a subscription reference may be sent at the same time as the notification modification indication is sent. The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
处理单元1802,当接收端实体有权限时,服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则。The
例如,服务端可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体有权限,服务端实体可以根据通知取消指示修改该接收端实体对应的资源属性。其中,资源属性包括通知的发送规则,如发送周期、信息类型和到期时间中的一种或多种。For example, the server can first determine whether the recipient entity has permission to modify the resource attributes. If the receiving-end entity has the right, the server-end entity may modify the resource attribute corresponding to the receiving-end entity according to the notification cancellation instruction. The resource attribute includes a notification sending rule, such as one or more of a sending period, an information type, and an expiration time.
具体地,服务端实体可以将订阅资源的各个属性分别扩展为列表,包含多个值。其中列表中的每一个值分别对应一个接收端实体。这样,在服务端实体可以分别针对各个接收端实体发送的订阅修改请求修改其对应的资源属性。Specifically, the server entity may expand each attribute of the subscription resource into a list containing multiple values. Each value in the list corresponds to a receiver entity. In this way, the server entity can modify the corresponding resource attributes for the subscription modification request sent by each receiver entity respectively.
或者,服务端实体可以在订阅资源属性中创建新的属性修改策略。用该属性记载接收端实体对订阅资源的修改内容。Alternatively, the server entity can create a new attribute modification strategy in the subscription resource attribute. Use this attribute to record the modification content of the subscribed resource by the receiver entity.
发送单元1803,用于向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改。The sending
例如,在服务端实体完成对资源属性的修改时,可以通知订阅端实体自己对接收端实体的资源属性的具体修改内容。这样,订阅端实体可以根据修改内容调整缴费等。For example, when the server entity completes the modification of the resource attribute, it can notify the subscriber entity of the specific modification content of the resource attribute of the receiver entity. In this way, the subscriber entity can adjust the payment according to the modified content, etc.
另外,订阅修改通知消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the subscription modification notification message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(event notification criteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification criteria attribute in the subscription resource is satisfied.
基于上述技术方案,在具有权限时,接收端实体可以向服务端实体发起对资源属性的修改。接着,服务端实体根据通知修改指示对资源属性进行修改,并向订阅端实体通知具体的修改内容。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solutions, when having the authority, the receiving-end entity can initiate the modification of the resource attributes to the server-end entity. Next, the server entity modifies the resource attribute according to the notification modification instruction, and notifies the subscriber entity of the specific modification content. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,处理单元1802具体用于,根据通知修改指示中的参数,将资源属性修改为参数对应的值。Optionally, as an embodiment, the
例如,通知修改指示包括到期时间、发送周期和信息类型中的一种或多种参数,以及接收端实体的标识。这样,服务端实体根据通知修改指示中的参数,将接收端实体的订阅资源的属性修改为参数对应的值。For example, the notification modification indication includes one or more parameters of expiration time, transmission period and message type, and the identity of the recipient entity. In this way, the server entity modifies the attribute of the subscription resource of the receiver entity to the value corresponding to the parameter according to the parameter in the notification modification instruction.
可选地,作为另一实施例,接收单元1801具体用于,接收接收端实体发送的更新消息,更新消息携带通知修改指示。或者,接收接收端实体发送的通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知修改指示。或者接收端实体向服务端实体发送通知请求消息,通知响应消息携带通知修改指示。Optionally, as another embodiment, the receiving
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知取消指示。或者,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知修改指示。或者,接收端实体可以向服务端实体发送通知请求(notify request)携带通知修改指示。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification cancellation indication. Or, the receiving-end entity carries the notification modification indication in the notification response message (notify response) of the notification request (notify request) to the server entity. Alternatively, the receiving-end entity may send a notification request (notify request) to the server-end entity carrying the notification modification indication.
可选地,作为另一实施例,发送单元1803还用于,向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。Optionally, as another embodiment, the sending
例如,在接收端实体接收通知请求之前或之后,接收端实体向服务端实体获取订阅资源的属性,以便于接收端实体根据订阅的资源的属性,生成通知修改指示。For example, before or after the receiving-end entity receives the notification request, the receiving-end entity obtains the attributes of the subscribed resources from the server-end entity, so that the receiving-end entity can generate a notification modification instruction according to the attributes of the subscribed resources.
可选地,作为另一实施例,发送规则包括发送周期、信息类型和到期时间中的一种或多种。Optionally, as another embodiment, the sending rule includes one or more of a sending period, an information type, and an expiration time.
图19是本发明另一实施例的机器通信系统中服务端实体的示意性框图。图19所示的服务端实190包括第一接收单元1901、发送单元1902、第二接收单元1903和处理单元1904。FIG. 19 is a schematic block diagram of a server entity in a machine communication system according to another embodiment of the present invention. The
第一接收单元1901,用于接收接收端实体发送的通知修改指示。The first receiving unit 1901 is configured to receive the notification modification indication sent by the receiving end entity.
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对资源属性进行修改时,可以主动向服务端实体发起通知修改指示。具体地,发起通知修改指示的时机可以是在接收订阅通知的过程中,或者是在接收到订阅通知之前,本发明实施例对此不做限定。For example, in a scenario where the subscriber entity (AE or CSE) subscribes to notifications for the receiver entity, if the receiver entity (AE or CSE) wants to modify the resource attributes, it can actively initiate a notification modification instruction to the server entity . Specifically, the timing for initiating the notification modification indication may be in the process of receiving the subscription notification, or before receiving the subscription notification, which is not limited in this embodiment of the present invention.
应理解,通知修改指示可以用于指示服务端实体删除、增加或者修改订阅资源的某一个或多个属性,本发明实施例对此不做限定。It should be understood that the notification modification indication may be used to instruct the server entity to delete, add, or modify one or more attributes of the subscription resource, which is not limited in this embodiment of the present invention.
发送单元1902,当接收端实体没有权限时,用于向订阅端实体发送通知修改指示。The sending
例如,服务端实体可以先确定接收端实体是否有权限对资源属性进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送该通知修改指示。具体地,可以通过notify request消息携带该通知修改指示。For example, the server entity may first determine whether the receiver entity has permission to modify the resource attributes. If the receiving-end entity does not have the authority, the server-end entity may first send the notification modification indication to the subscribing-end entity. Specifically, the notification modification indication may be carried in a notify request message.
第二接收单元1903,用于接收订阅端实体根据所述通知修改指示发送的更新请求消息。The second receiving unit 1903 is configured to receive an update request message sent by the subscriber entity according to the notification modification instruction.
另外,更新请求消息还可以携带接收端实体的标识及订阅参考标识(subscriptionreference)。订阅参考标识指示出订阅资源,这样订阅端实体在有订阅了多个资源场景下,就可以知道是对于哪个订阅资源的请求。In addition, the update request message may also carry the identifier of the receiving end entity and the subscription reference identifier (subscription reference). The subscription reference identifier indicates the subscription resource, so that the subscribing entity can know which subscription resource is requested in the scenario of subscribing to multiple resources.
处理单元1904,用于根据更新请求消息修改资源属性,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则,如发送周期、信息类型和到期时间中的一种或多种。The processing unit 1904 is configured to modify the resource attribute according to the update request message, and send a notification to the receiver entity based on the modified resource attribute. The resource attribute includes the sending rule of the notification, such as one of the sending period, information type and expiration time or more.
其中,订阅端实体与接收端实体为两个不同的实体。订阅端实体为通知的订阅发起方,例如,订阅端实体为请求服务端实体创建订阅资源的一方。接收端实体为通知的接收方,且不是通知的订阅发起方,例如为满足订阅资源中事件通知规则(eventNotificationCriteria)属性时所产生的通知消息的接收方。The subscriber entity and the receiver entity are two different entities. The subscriber entity is the subscription initiator of the notification, for example, the subscriber entity is the party that requests the server entity to create subscription resources. The receiver entity is the receiver of the notification and not the subscription initiator of the notification, for example, the receiver of the notification message generated when the event notification rule (eventNotificationCriteria) attribute in the subscription resource is satisfied.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知修改指示发送给订阅端实体。若订阅端实体接收该通知修改指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification modification indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification modification instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,处理单元1904具体用于,根据通知修改指示中的参数,将资源属性修改为参数对应的值。Optionally, as an embodiment, the processing unit 1904 is specifically configured to modify the resource attribute to a value corresponding to the parameter according to the parameter in the notification modification instruction.
例如,通知修改指示包括到期时间(expiration time)、发送周期(notify cycle)和信息类型(notification content type)中的一种或多种参数,以及接收端实体的标识。这样,服务端实体根据通知修改指示中的参数,将接收端实体的订阅资源的属性修改为参数对应的值。For example, the notification modification indication includes one or more parameters of expiration time, notification cycle, and notification content type, as well as the identity of the recipient entity. In this way, the server entity modifies the attribute of the subscription resource of the receiver entity to the value corresponding to the parameter according to the parameter in the notification modification instruction.
可选地,作为另一实施例,服务端实体接收接收端实体发送的通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知修改指示,通知响应消息携带通知修改指示。或者服务端实体接收接收端实体产生的通知请求消息,通知响应消息携带通知修改指示。Optionally, as another embodiment, the server entity receives a notification response message sent by the receiver entity, where the notification response is a notification response to a notification request generated by the server entity when the event rule is satisfied, and the notification response message carries a notification modification instruction, The notification response message carries the notification modification indication. Or the server entity receives the notification request message generated by the receiver entity, and the notification response message carries the notification modification indication.
例如,接收端实体可以向服务端实体发送更新消息(update request),更新消息携带通知取消指示。或者,接收端实体在对服务端实体的通知请求(notify request)的通知响应消息(notify response)中携带通知取消指示。For example, the receiving-end entity may send an update message (update request) to the server-end entity, and the update message carries the notification cancellation indication. Or, the receiving-end entity carries the notification cancellation indication in the notification response message (notify response) of the notification request (notify request) to the server entity.
可选地,作为另一实施例,发送单元1902还用于,向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。Optionally, as another embodiment, the sending
例如,在接收端实体接收通知请求之前或之后,接收端实体向服务端实体获取订阅资源的属性,以便于接收端实体根据订阅的资源的属性,生成通知修改指示。或者,接收端实体在向服务端实体发送通知请求(notify request)携带通知修改指示。For example, before or after the receiving-end entity receives the notification request, the receiving-end entity obtains the attributes of the subscribed resources from the server-end entity, so that the receiving-end entity can generate a notification modification instruction according to the attributes of the subscribed resources. Alternatively, the receiving-end entity sends a notification request (notify request) to the server-end entity carrying the notification modification indication.
图20是本发明另一实施例的机器通信系统中接收端实体的示意性框图。图20所示的接收端实体200包括生成单元2001和发送单元2002。FIG. 20 is a schematic block diagram of a receiver entity in a machine communication system according to another embodiment of the present invention. The receiving-
生成单元2001,用于生成通知修改指示。The
例如,在订阅端实体(AE或CSE)为接收端实体创建了订阅资源的场景下,若是接收端实体(AE或CSE)想要对该订阅的资源进行修改时(,可以先生成通知修改指示。For example, in the scenario where the subscriber entity (AE or CSE) creates a subscription resource for the receiver entity, if the receiver entity (AE or CSE) wants to modify the subscribed resource (a notification modification indication can be generated first) .
应理解,通知修改指示可以用于指示服务端实体删除、增加或者修改订阅资源的某一个或多个属性,本发明实施例对此不做限定。It should be understood that the notification modification indication may be used to instruct the server entity to delete, add, or modify one or more attributes of the subscription resource, which is not limited in this embodiment of the present invention.
发送单元2002,用于向服务端实体发送通知修改指示,以便于服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则。The sending
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
基于上述技术方案,接收端实体可以主动向服务端实体发起通知修改指示,以便于服务端实体根据通知修改指示对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, the receiving-end entity can actively initiate a notification modification instruction to the server-end entity, so that the server-end entity can modify the subscription resource according to the notification modification instruction. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,发送单元2002具体用于,向服务端实体发送更新消息,更新消息携带通知修改指示。或者,向服务端实体发送通知响应消息,该通知响应为事件规则满足时服务端实体产生的通知请求时通知响应,通知响应消息携带通知修改指示。或者服务端实体接收接收端实体产生的通知请求消息,通知响应消息携带通知修改指示。Optionally, as an embodiment, the sending
可选地,作为另一实施例,接收端实体200还包括接收单元2003。接收单元2003,用于接收服务端实体发送的资源属性。这种情况下,生成单元2001具体用于,根据资源属性,生成通知修改指示。Optionally, as another embodiment, the receiving-
图21是本发明另一实施例的机器通信系统中订阅端实体的示意性框图。图21所示的订阅端实体210包括接收单元2101和发送单元2102。FIG. 21 is a schematic block diagram of a subscriber entity in a machine communication system according to another embodiment of the present invention. The
接收单元2101,用于接收服务端实体发送的通知修改指示,通知修改指示是接收端实体向服务端实体发送的。The receiving
例如,在订阅端实体(AE或CSE)为接收端实体订阅了通知的场景下,若是接收端实体(AE或CSE)想要对该通知进行修改时,可以主动向服务端实体发起通知修改指示。服务端可以先确定接收端实体是否有权限对订阅资源进行修改。如果接收端实体没有权限,服务端实体可以先向订阅端实体发送通知修改指示。For example, in the scenario where the subscriber entity (AE or CSE) subscribes to the notification for the receiver entity, if the receiver entity (AE or CSE) wants to modify the notification, it can actively initiate a notification modification instruction to the server entity . The server can first determine whether the recipient entity has permission to modify the subscription resource. If the receiving-end entity does not have permission, the server-end entity may first send a notification modification indication to the subscribing-end entity.
发送单元2102,用于根据所述通知修改指示向所述服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知的发送规则。The sending
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知修改指示发送给订阅端实体。若订阅端实体接收该通知修改指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification modification indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification modification instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
图22是本发明另一实施例的机器通信系统中实体的示意性框图。FIG. 22 is a schematic block diagram of entities in a machine communication system according to another embodiment of the present invention.
图22的实体220可用于实现上述方法实施例中各步骤及方法。图22的实施例中,实体220包括天线2201、发射机2202、接收机2203、处理器2204和存储器2205。处理器2204控制实体220的操作,并可用于处理信号。存储器2205可以包括只读存储器和随机存取存储器,并向处理器2204提供指令和数据。发射机2202和接收机2203可以耦合到天线2201。实体220的各个组件通过总线系统2206耦合在一起,其中总线系统2206除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图中将各种总线都标为总线系统2206。例如,实体220可以为服务端实体、订阅段实体或者接收端实体。The
可选地,实体220为服务端实体时,存储器2205可存储执行以下过程的指令:Optionally, when the
服务端实体接收接收端实体发送的通知取消指示;The server entity receives the notification cancellation instruction sent by the receiver entity;
当接收端实体有权限时,服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;When the receiver entity has the authority, the server entity modifies the resource attribute according to the notification cancellation instruction, and stops sending the notification to the receiver entity, and the resource attribute includes the notification uniform resource identifier;
服务端实体向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改;The server entity sends a subscription modification notification message to the subscriber entity, and the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification.
基于上述技术方案,在具有权限时,接收端实体可以向服务端实体发起对资源属性的修改。接着,服务端实体根据通知取消指示对资源属性进行修改,并向订阅端实体通知具体的修改内容。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solutions, when having the authority, the receiving-end entity can initiate the modification of the resource attributes to the server-end entity. Next, the server entity modifies the resource attribute according to the notification cancellation instruction, and notifies the subscriber entity of the specific modification content. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体根据通知取消指示修改资源属性,包括:The server entity modifies the resource attributes according to the notification cancellation instruction, including:
服务端实体根据通知取消指示,删除通知统一资源标识符中的接收端实体的标识。The server entity deletes the identifier of the receiver entity in the notification uniform resource identifier according to the notification cancellation instruction.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体接收接收端实体发送的通知取消指示,包括:The server entity receives the notification cancellation instruction sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知取消指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification cancellation indication.
可选地,实体220为服务端实体时,存储器2205可存储执行以下过程的指令:Optionally, when the
服务端实体接收接收端实体发送的通知取消指示;The server entity receives the notification cancellation instruction sent by the receiver entity;
当接收端实体没有权限时,服务端实体向订阅端实体发送通知取消指示;When the receiver entity has no authority, the server entity sends a notification cancellation instruction to the subscriber entity;
服务端实体接收订阅端实体根据通知取消指示发送的更新请求消息;The server entity receives the update request message sent by the subscriber entity according to the notification cancellation instruction;
服务端实体根据更新请求消息修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;The server entity modifies the resource attribute according to the update request message, and stops sending notifications to the receiver entity, and the resource attribute includes the notification uniform resource identifier;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知取消指示发送给订阅端实体。若订阅端实体接收该通知取消指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification cancellation indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification cancellation instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体根据更新请求消息修改资源属性,包括:The server entity modifies the resource attributes according to the update request message, including:
服务端实体根据更新请求消息,删除通知统一资源标识符中的接收端实体的标识。The server entity deletes the identifier of the receiver entity in the notification uniform resource identifier according to the update request message.
可选地,作为另一实施例,存储器2205还可存储执行以下过程的指令:Optionally, as another embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体接收接收端实体发送的通知取消指示,包括:The server entity receives the notification cancellation instruction sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知取消指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知取消指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification cancellation indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知取消指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification cancellation indication.
可选地,实体220为接收端实体时,存储器2205可存储执行以下过程的指令:Optionally, when the
接收端实体生成通知取消指示;The recipient entity generates a notification cancellation indication;
接收端实体向服务端实体发送通知取消指示,以便于服务端实体根据通知取消指示修改资源属性,并停止向接收端实体发送通知,资源属性包括通知统一资源标识符;The receiver entity sends a notification cancellation instruction to the server entity, so that the server entity modifies the resource attribute according to the notification cancellation instruction, and stops sending the notification to the receiver entity, and the resource attribute includes the notification uniform resource identifier;
其中,接收端实体为机器通信系统中通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification in the machine communication system, and is not the subscription initiator of the notification.
基于上述技术方案,接收端实体可以主动向服务端实体发起通知取消指示,以便于服务端实体根据通知取消指示对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, the receiver entity can actively initiate a notification cancellation instruction to the server entity, so that the server entity can modify the subscription resources according to the notification cancellation instruction. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
接收端实体向服务端实体发送通知取消指示,包括:The receiving-end entity sends a notification cancellation instruction to the server-end entity, including:
接收端实体向服务端实体发送更新消息,更新消息携带通知取消指示;或者The receiving-end entity sends an update message to the server-end entity, and the update message carries the notification cancellation indication; or
接收端实体向服务端实体发送通知响应消息,通知响应消息携带通知取消指示;或者The receiver entity sends a notification response message to the server entity, and the notification response message carries the notification cancellation indication; or
接收端实体向服务端实体发送通知请求消息,通知请求消息携带通知取消指示。The receiver entity sends a notification request message to the server entity, and the notification request message carries a notification cancellation indication.
可选地,实体220为订阅端实体时,存储器2205可存储执行以下过程的指令:Optionally, when the
订阅端实体接收服务端实体发送的通知取消指示,通知取消指示是接收端实体向服务端实体发送的;The subscriber entity receives the notification cancellation instruction sent by the server entity, and the notification cancellation instruction is sent by the receiver entity to the server entity;
订阅端实体根据所述通知取消指示向所述服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知统一资源标识符;The subscriber entity sends an update request message to the server entity according to the notification cancellation instruction, so that the server entity can modify the resource attribute according to the update request message, and the resource attribute includes the notification uniform resource identifier;
其中,订阅端实体为机器通信系统中通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification in the machine communication system, and is not the recipient of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知取消指示发送给订阅端实体。若订阅端实体接收该通知取消指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification cancellation indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification cancellation instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体根据通知修改指示对资源属性进行修改,包括:The server entity modifies the resource attributes according to the notification modification instruction, including:
服务端实体根据通知修改指示中的参数,将资源属性修改为参数对应的值。The server entity modifies the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
可选地,作为另一实施例,存储器2205还可存储执行以下过程的指令:Optionally, as another embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体接收接收端实体发送的通知修改指示,包括:The server entity receives the notification modification instruction sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知修改指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知修改指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知修改指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification modification indication.
可选地,作为另一实施例,存储器2205还可存储执行以下过程的指令:Optionally, as another embodiment, the memory 2205 may also store instructions for performing the following processes:
在服务端实体接收接收端实体发送的通知修改指示之前,该方法还包括:服务端实体向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。Before the server entity receives the notification modification instruction sent by the receiver entity, the method further includes: the server entity sends the resource attribute to the receiver entity, so that the receiver entity can generate the notification modification instruction according to the resource attribute.
可选地,实体220为服务端实体时,存储器2205可存储执行以下过程的指令:Optionally, when the
服务端实体接收接收端实体发送的通知修改指示;The server entity receives the notification modification instruction sent by the receiver entity;
当接收端实体有权限时,服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;When the receiver entity has the authority, the server entity modifies the resource attribute according to the notification modification instruction, and sends a notification to the receiver entity based on the modified resource attribute, and the resource attribute includes the notification sending rule;
服务端实体向订阅端实体发送订阅修改通知消息,订阅修改通知消息用于向订阅端实体通知服务端实体对资源属性的修改;The server entity sends a subscription modification notification message to the subscriber entity, and the subscription modification notification message is used to notify the subscriber entity of the modification of the resource attribute by the server entity;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification.
基于上述技术方案,在具有权限时,接收端实体可以向服务端实体发起对资源属性的修改。接着,服务端实体根据通知修改指示对资源属性进行修改,并向订阅端实体通知具体的修改内容。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solutions, when having the authority, the receiving-end entity can initiate the modification of the resource attributes to the server-end entity. Next, the server entity modifies the resource attribute according to the notification modification instruction, and notifies the subscriber entity of the specific modification content. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体根据通知修改指示对资源属性进行修改,包括:The server entity modifies the resource attributes according to the notification modification instruction, including:
服务端实体根据通知修改指示中的参数,将资源属性修改为参数对应的值。The server entity modifies the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
可选地,作为另一实施例,存储器2205还可存储执行以下过程的指令:Optionally, as another embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体接收接收端实体发送的通知修改指示,包括:The server entity receives the notification modification instruction sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知修改指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知修改指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知修改指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification modification indication.
可选地,作为另一实施例,存储器2205还可存储执行以下过程的指令:Optionally, as another embodiment, the memory 2205 may also store instructions for performing the following processes:
在服务端实体接收接收端实体发送的通知修改指示之前,服务端实体向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。Before the server entity receives the notification modification instruction sent by the receiver entity, the server entity sends the resource attribute to the receiver entity, so that the receiver entity can generate the notification modification instruction according to the resource attribute.
可选地,实体220为服务端实体时,具体地,存储器2205可存储执行以下过程的指令:Optionally, when the
服务端实体接收接收端实体发送的通知修改指示;The server entity receives the notification modification instruction sent by the receiver entity;
当接收端实体没有权限时,服务端实体向订阅端实体发送通知修改指示;When the receiver entity has no authority, the server entity sends a notification modification instruction to the subscriber entity;
服务端实体接收订阅端实体根据所述通知修改指示发送的更新请求消息;The server entity receives the update request message sent by the subscriber entity according to the notification modification instruction;
服务端实体根据更新请求消息修改资源属性,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;The server entity modifies the resource attribute according to the update request message, and sends a notification to the receiver entity based on the modified resource attribute, and the resource attribute includes the notification sending rule;
其中,订阅端实体与接收端实体为机器通信系统中两个不同的实体,订阅端实体为通知的订阅发起方,接收端实体为通知的接收方。The subscriber entity and the receiver entity are two different entities in the machine communication system, the subscriber entity is the subscription initiator of the notification, and the receiver entity is the receiver of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知修改指示发送给订阅端实体。若订阅端实体接收该通知修改指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification modification indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification modification instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体根据通知修改指示对资源属性进行修改,包括:The server entity modifies the resource attributes according to the notification modification instruction, including:
服务端实体根据通知修改指示中的参数,将资源属性修改为参数对应的值。The server entity modifies the resource attribute to the value corresponding to the parameter according to the parameter in the notification modification instruction.
可选地,作为另一实施例,存储器2205还可存储执行以下过程的指令:Optionally, as another embodiment, the memory 2205 may also store instructions for performing the following processes:
服务端实体接收接收端实体发送的通知修改指示,包括:The server entity receives the notification modification instruction sent by the receiver entity, including:
服务端实体接收接收端实体发送的更新消息,更新消息携带通知修改指示;或者The server entity receives the update message sent by the receiver entity, and the update message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知响应消息,通知响应消息携带通知修改指示;或者The server entity receives the notification response message sent by the receiver entity, and the notification response message carries the notification modification indication; or
服务端实体接收接收端实体发送的通知请求消息,通知请求消息携带通知修改指示。The server entity receives the notification request message sent by the receiver entity, and the notification request message carries the notification modification indication.
可选地,作为另一实施例,存储器2205还可存储执行以下过程的指令:Optionally, as another embodiment, the memory 2205 may also store instructions for performing the following processes:
在服务端实体接收接收端实体发送的通知修改指示之前,服务端实体向接收端实体发送资源属性,以便于接收端实体根据资源属性,生成通知修改指示。Before the server entity receives the notification modification instruction sent by the receiver entity, the server entity sends the resource attribute to the receiver entity, so that the receiver entity can generate the notification modification instruction according to the resource attribute.
可选地,实体220为接收端实体时,存储器2205可存储执行以下过程的指令:Optionally, when the
接收端实体生成通知修改指示;The recipient entity generates a notification modification indication;
接收端实体向服务端实体发送通知修改指示,以便于服务端实体根据通知修改指示对资源属性进行修改,并基于修改后的资源属性向接收端实体发送通知,资源属性包括通知的发送规则;The receiver entity sends a notification modification instruction to the server entity, so that the server entity modifies the resource attribute according to the notification modification instruction, and sends a notification to the receiver entity based on the modified resource attribute, and the resource attribute includes the notification sending rule;
其中,接收端实体为通知的接收方,且不是通知的订阅发起方。The receiver entity is the receiver of the notification and is not the subscription initiator of the notification.
基于上述技术方案,接收端实体可以主动向服务端实体发起通知修改指示,以便于服务端实体根据通知修改指示对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, the receiving-end entity can actively initiate a notification modification instruction to the server-end entity, so that the server-end entity can modify the subscription resource according to the notification modification instruction. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
接收端实体向服务端实体发送通知修改指示,包括:The receiving-end entity sends a notification modification instruction to the server-end entity, including:
接收端实体向服务端实体发送更新消息,更新消息携带通知修改指示;或者,接收端实体向服务端实体发送通知响应消息,通知响应消息携带通知修改指示,或者,接收端实体向服务端实体发送通知请求消息,通知请求消息携带通知修改指示。The receiver entity sends an update message to the server entity, and the update message carries the notification modification indication; or, the receiver entity sends a notification response message to the server entity, and the notification response message carries the notification modification indication, or the receiver entity sends a notification modification instruction to the server entity. The notification request message carries the notification modification indication.
可选地,作为一个实施例,存储器2205还可存储执行以下过程的指令:Optionally, as an embodiment, the memory 2205 may also store instructions for performing the following processes:
在接收端实体生成通知修改指示之前,接收端实体接收服务端实体发送的资源属性;Before the receiving-end entity generates the notification modification indication, the receiving-end entity receives the resource attribute sent by the server-end entity;
接收端实体生成通知修改指示,包括:The receiving entity generates notification modification instructions, including:
接收端实体根据资源属性,生成通知修改指示。The receiving-end entity generates a notification modification instruction according to the resource attribute.
可选地,实体220为订阅端实体时,存储器2205可存储执行以下过程的指令:Optionally, when the
订阅端实体接收服务端实体发送的通知修改指示,通知修改指示是接收端实体向服务端实体发送的;The subscriber entity receives the notification modification instruction sent by the server entity, and the notification modification instruction is sent by the receiver entity to the server entity;
订阅端实体根据所述通知修改指示向所述服务端实体发送更新请求消息,以便于服务端实体根据更新请求消息修改资源属性,资源属性包括通知的发送规则;The subscriber entity sends an update request message to the server entity according to the notification modification instruction, so that the server entity can modify the resource attribute according to the update request message, and the resource attribute includes the notification sending rule;
其中,订阅端实体为通知的订阅发起方,且不是通知的接收方。The subscriber entity is the subscription initiator of the notification, and is not the recipient of the notification.
基于上述技术方案,在接收端不具有权限时,服务端实体可以将接收端实体发送的通知修改指示发送给订阅端实体。若订阅端实体接收该通知修改指示,服务端实体根据请求对订阅资源进行修改。这样,本发明实施例提供了一种接收端实体修改订阅资源的方法,提高了订阅修改的灵活性,同时提升了用户体验。Based on the above technical solution, when the receiver does not have the authority, the server entity may send the notification modification indication sent by the receiver entity to the subscriber entity. If the subscriber entity receives the notification modification instruction, the server entity modifies the subscription resource according to the request. In this way, the embodiments of the present invention provide a method for a receiving end entity to modify subscription resources, which improves the flexibility of subscription modification and improves user experience.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, rather than the embodiments of the present invention. implementation constitutes any limitation.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions in the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-OnlyMemory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or a part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, referred to as: ROM), random access memory (English: Random Access Memory, referred to as: RAM), magnetic disks or optical disks, etc. A medium that can store program code.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited to this. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed by the present invention. Modifications or substitutions should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims (46)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2015/070478 WO2016109983A1 (en) | 2015-01-09 | 2015-01-09 | Method and entity for subscribing notifications in machine to machine (m2m) communication system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107113225A CN107113225A (en) | 2017-08-29 |
| CN107113225B true CN107113225B (en) | 2020-01-17 |
Family
ID=56355440
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201580072676.4A Active CN107113225B (en) | 2015-01-09 | 2015-01-09 | Method and entity for subscribing to notifications in a machine communication system |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN107113225B (en) |
| WO (1) | WO2016109983A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2023092504A1 (en) * | 2021-11-26 | 2023-06-01 | Oppo广东移动通信有限公司 | Subscription control method and apparatus, and computer device and storage medium |
| CN116933291B (en) * | 2023-08-15 | 2025-09-19 | 北京火山引擎科技有限公司 | Data authority management and control method and device, computer equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102014144A (en) * | 2009-09-04 | 2011-04-13 | 华为技术有限公司 | Method and device for submitting terminal data |
| CN102217261A (en) * | 2011-05-12 | 2011-10-12 | 华为技术有限公司 | Interaction method between equipments and machine to machine communication network syste |
| CN103618800A (en) * | 2013-12-05 | 2014-03-05 | 华为技术有限公司 | Implementation method and device for subscription notification |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101115023A (en) * | 2006-07-25 | 2008-01-30 | 华为技术有限公司 | Methods of subscribing, modifying, revoking subscription authority and unsubscribing of CBCS business |
| CN101127941B (en) * | 2006-08-18 | 2010-11-03 | 华为技术有限公司 | A method and management center server for subscribing mobile service for groups |
| EP2360871B1 (en) * | 2010-02-15 | 2016-04-06 | Accenture Global Services Limited | Machine to machine architecture |
| US8942191B2 (en) * | 2010-05-03 | 2015-01-27 | Mformation Software Technologies Llc | Providing dynamic group subscriptions for M2M device communication |
| MX344082B (en) * | 2012-09-03 | 2016-12-02 | Ericsson Telefon Ab L M | Methods and apparatuses for automatic provisioning of external identifiers used for machine type devices in a 3gpp network. |
-
2015
- 2015-01-09 CN CN201580072676.4A patent/CN107113225B/en active Active
- 2015-01-09 WO PCT/CN2015/070478 patent/WO2016109983A1/en active Application Filing
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102014144A (en) * | 2009-09-04 | 2011-04-13 | 华为技术有限公司 | Method and device for submitting terminal data |
| CN102217261A (en) * | 2011-05-12 | 2011-10-12 | 华为技术有限公司 | Interaction method between equipments and machine to machine communication network syste |
| CN103618800A (en) * | 2013-12-05 | 2014-03-05 | 华为技术有限公司 | Implementation method and device for subscription notification |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107113225A (en) | 2017-08-29 |
| WO2016109983A1 (en) | 2016-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110049070B (en) | Event notification method and related equipment | |
| KR102389684B1 (en) | Event Subscription Methods, Devices, and Systems | |
| WO2022011862A1 (en) | Method and system for communication between o-ran and mec | |
| CN110366145B (en) | Communication method, device and system | |
| CN111615217B (en) | Session establishment method and device | |
| CN110366144A (en) | Method and device for subscribing service | |
| CN110830983B (en) | A management method and device for local area network communication | |
| CN109644330A (en) | Method and apparatus for providing the terminal with network service by using slice | |
| CN107241683B (en) | Apparatus, system and method for customizing a custom mobile network | |
| US20170374668A1 (en) | Facilitation of efficient software downloads for vehicles | |
| CN101841888A (en) | Resource control method, related equipment and related system | |
| CN114071649B (en) | Method and device for accessing local network | |
| WO2020135536A1 (en) | Communication method and apparatus | |
| WO2021068830A1 (en) | Multicast transport method and apparatus | |
| JP2023543825A (en) | Method and system for dynamically triggering access and mobility policy changes | |
| CN107113225B (en) | Method and entity for subscribing to notifications in a machine communication system | |
| WO2018127068A1 (en) | Network management method and apparatus | |
| CN112954668B (en) | Communication method, device and equipment | |
| WO2024027484A1 (en) | Method and apparatus for service management | |
| CN102647709B (en) | Method and device for mobile number portability | |
| US20210377394A1 (en) | Systems and methods for providing policy control of parallel signaling in a fifth generation (5g) network | |
| US20240244401A1 (en) | Systems and methods for optimized propagation of shared policy data | |
| WO2025140225A1 (en) | Model registration method and apparatus, and storage medium | |
| CN102929692A (en) | Method for providing flow operation in software and application control management object | |
| WO2025038015A1 (en) | Usage of policy counters based on network slice information |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |