WO2016109972A1 - 机器到机器系统中宣告属性的方法、公共服务实体和应用实体 - Google Patents

机器到机器系统中宣告属性的方法、公共服务实体和应用实体 Download PDF

Info

Publication number
WO2016109972A1
WO2016109972A1 PCT/CN2015/070424 CN2015070424W WO2016109972A1 WO 2016109972 A1 WO2016109972 A1 WO 2016109972A1 CN 2015070424 W CN2015070424 W CN 2015070424W WO 2016109972 A1 WO2016109972 A1 WO 2016109972A1
Authority
WO
WIPO (PCT)
Prior art keywords
attribute
target
cse
announcement
parameter
Prior art date
Application number
PCT/CN2015/070424
Other languages
English (en)
French (fr)
Inventor
陶源
殷佳欣
于琦
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580072687.2A priority Critical patent/CN107113532B/zh
Priority to PCT/CN2015/070424 priority patent/WO2016109972A1/zh
Publication of WO2016109972A1 publication Critical patent/WO2016109972A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W68/00User notification, e.g. alerting and paging, for incoming communication, change of service or the like

Definitions

  • the present invention relates to the field of communications, and more particularly to a method, a public service entity, and an application entity for announcing attributes in a machine-to-machine system.
  • Machine-to-Machine Communications is a networked application and service centered on machine intelligent interaction. It embeds wireless or wired communication modules and application processing logic inside the machine. Realize data communication without manual intervention to meet the information needs of users in monitoring, command and dispatch, data acquisition and measurement.
  • the overall goal of the machine-to-machine (one machine to machine, one-to-one: oneM2M) standard organization is to establish an open standard for the business layer of M2M communication to facilitate the establishment of a future network that integrates various devices and services. Interoperability between M2M services also enables M2M applications to share basic services and be independent of the network.
  • the oneM2M standard uses a layered functional architecture, including the application layer, the common service layer, and the network service layer.
  • the application layer is responsible for the operation and storage of the application by the application entity (English: Application Entity, AE for short).
  • the application layer contains the instantiated one-to-one oneM2M solution;
  • the public service layer is composed of the public service entity ( English: Common Services Entity, referred to as: CSE) Management is responsible for aggregating application layer information to form a resource pool while coordinating the underlying transport network.
  • the core layer of oneM2M acts as a platform, and the public service layer includes a series of instantiated public service functions;
  • the network layer is managed by the underlying network service entity (English: Underlying Network Services Entity, NSE) to be responsible for the underlying network transmission.
  • NSE Underlying Network Services Entity
  • the Mca reference point is an interface between the AE and the CSE.
  • the reference point enables the M2M application to use the services provided by the CSE and enables the CSE to communicate with the application in reverse.
  • the service provided by the Mca reference point depends on the CSE support. Function, AE and CSE are not necessarily on the same physical device.
  • the Mcc reference point is the interface for communication between CSEs. This reference point enables one CSE to use the functions provided by another CSE (possibly not available to the former).
  • the Mcc reference point between the two CSEs needs to be different from M2M. Physical entity support.
  • the Mcn reference point is the interface between the CSE and the NSE. This reference point enables the CSE to use the bearer network to provide services to the upper layer. The actualization depends on the capabilities provided by the underlying network.
  • oneM2M system requirements are based on a unified interface and is compatible with different underlying access network (including, but not limited to, Third Generation Partnership Project partners (English: 3 rd Generation Partnership Project, referred to as: 3GPP), wireless fidelity (English: Wireless Fidelity , referred to as: WiFi), Bluetooth (Blue Tooth).
  • M2M communication can be based on a wired method or a wireless method, and a 3GPP cellular network is a widely used method.
  • the oneM2M system adopts a resource-oriented architecture that conforms to the principle of Representational State Transfer (REST). All entities in the system, such as AE and CSE information and data information, can be represented by resources. These resources are described by resource structure and are independently addressable with a unique universal resource identifier (English: Uniform Resource Identifier, URI for short). Each resource has its corresponding attribute, which is used to indicate information about the resource.
  • REST Representational State Transfer
  • All entities in the system such as AE and CSE information and data information, can be represented by resources. These resources are described by resource structure and are independently addressable with a unique universal resource identifier (English: Uniform Resource Identifier, URI for short). Each resource has its corresponding attribute, which is used to indicate information about the resource.
  • the oneM2M standard defines a set of announcement mechanisms that can advertise a resource and its attributes to one or more remote CSEs (Remote CSE) so that the remote CSE knows the existence of the resource and its attributes and establish
  • the AE or CSE as an initiator notifies the registrant CSE (Registrar CSE) of the resources to be announced by setting two attributes of "announceTo" and "announced attribute”. Its properties are declared to the remote CSE (Remote CSE). For different remote CSEs, the attributes of the resource declared by the registrant CSE are the same. Therefore, if the initiator needs to announce different attributes to different remote CSEs, the existing announcement scheme cannot be implemented.
  • the present invention proposes a scheme for resource declaration in an M2M system, which can announce different attributes of the same resource to different remote CSEs.
  • a method for declaring an attribute in an M2M system comprising: determining a target public service entity CSE to be announced and a target attribute corresponding to the target CSE; transmitting the target attribute to the target CSE; receiving the A notification message sent by the target CSE for notifying that the target attribute is created on the target CSE.
  • the method further includes: receiving an announcement attribute of the target resource sent by the application entity AE or the public service entity CSE, the announcement The attribute includes identification information for indicating the target CSE and identification information for indicating the target attribute; wherein the determining the target public service entity CSE to be announced and the target attribute corresponding to the target CSE include: according to the announcement attribute Determine the target CSE and the target attribute.
  • the determining the target public service entity CSE to be announced and the target attribute corresponding to the target CSE including: the declared attribute according to the locally stored target resource Determining the target CSE and the target attribute, wherein the announcement attribute includes identification information indicating the target CSE and identification information indicating the target attribute.
  • the announcement attribute is a first announcement attribute
  • the first announcement attribute is used to indicate to the The target CSE sends the target attribute
  • the first announcement attribute includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute
  • the first The declarative attribute includes a tuple consisting of a first parameter and a second parameter, the first parameter being used to indicate the target CSE, and the second parameter is used to indicate the target attribute.
  • the announcement attribute includes a second announcement attribute, a third announcement attribute, and a fourth announcement attribute.
  • the second announcement attribute includes to-be-advertised CSE information for indicating at least one CSE to be announced
  • the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-advertised attribute, the second announced attribute and the third Declaring an attribute, configured to send the at least one to-be-declared attribute to the at least one to-be-advertised CSE
  • the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE
  • the fourth announcement attribute includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute, or the fourth announcement
  • the attribute includes a two-tuple consisting of a first parameter for indicating the target CSE and a
  • the method further includes: creating or updating the including the announcement The target resource of the attribute.
  • the method further includes: receiving, by the target CSE Attribute identification information indicating that the target attribute is at the target A location or attribute value on the CSE; the announcement attribute of the target resource is updated according to the attribute identification information.
  • the method further includes: sending the attribute identification information to the AE or the CSE.
  • a method for declaring an attribute in an M2M system comprising: determining a target CSE to be announced and a target attribute corresponding to the target CSE; and transmitting, to the registrant CSE, an announcement attribute of the target resource, the announcement attribute Identification information for indicating the target CSE and identification information for indicating the target attribute are included.
  • the advertised attribute is a first advertised attribute, where the first advertised attribute is used to indicate that the registrant CSE sends the target attribute to the target CSE, where
  • the first announcement attribute includes a first entry for indicating the target CSE, and a second entry for indicating the target attribute, or the first announcement attribute includes the first parameter
  • a second group consisting of a second parameter the first parameter is used to indicate the target CSE, and the second parameter is used to indicate the target attribute.
  • the announcement attribute includes a second announcement attribute, a third announcement attribute, and a fourth announcement attribute
  • the second announcement attribute includes at least one to be instructed Declaring CSE information to be announced by the CSE
  • the third announcement attribute includes to-be-declared attribute information for indicating at least one to-be-declared attribute
  • the second announcement attribute and the third announcement attribute are used to indicate to the at least one to-be-advertised CSE Transmitting the at least one to-be-declared attribute
  • the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE, and the target attribute is different from the at least one to-be-declared attribute
  • the fourth announced attribute includes An entry and a second entry, the first entry is used to indicate the target CSE, the second entry is used to indicate the target attribute, or the fourth announcement attribute includes a first parameter and a second parameter The two-group, the first parameter is used to indicate the target CSE, and
  • the method further includes: receiving attribute identification information sent by the registrant CSE, where The attribute identification information is used to indicate the location or attribute value of the target attribute on the target CSE.
  • a third aspect provides a method for accessing resources in an M2M system, the method comprising: receiving an access request sent by an AE or a CSE, the access request is used to request access to a target resource; and determining a target of the target resource that is allowed to be accessed Attribute; access control for this target attribute.
  • determining the target attribute of the target resource that is allowed to access includes: determining an access control policy, where the access control policy is used to indicate the permission of the target resource The set of attributes accessed; the target attribute is determined based on the access control policy.
  • the determining the access control policy includes: determining the access control according to an access permission attribute of the access control policy resource a policy, where the access rights attribute includes a four-tuple consisting of a first parameter, a second parameter, a third parameter, and a fourth parameter, the first parameter indicating an entity requesting access, and the second parameter indicating an access condition, the The third parameter indicates an attribute that is allowed to be accessed, and the fourth parameter indicates an access mode, and the access right attribute is used to indicate that the entity that allows the request to access accesses the attribute that is allowed to access in the access mode under the access condition.
  • the access rights attribute includes a four-tuple consisting of a first parameter, a second parameter, a third parameter, and a fourth parameter, the first parameter indicating an entity requesting access, and the second parameter indicating an access condition
  • the The third parameter indicates an attribute that is allowed to be accessed
  • the fourth parameter indicates an access mode
  • the access right attribute is used to indicate that the entity that allows the request to access accesses
  • a public service entity CSE includes: a determining module, configured to determine a target public service entity CSE to be announced and a target attribute corresponding to the target CSE; and a sending module, configured to the determining module The determined target CSE sends the target attribute determined by the determining module, and the receiving module is configured to receive a notification message sent by the target CSE for notifying that the target attribute is created on the target CSE.
  • the receiving module is further configured to receive an announcement attribute of the target resource sent by the application entity AE or the public service entity CSE, where the announcement attribute includes The identification information of the target CSE and the identification information used to indicate the target attribute; the determining module is specifically configured to determine the target CSE and the target attribute according to the announcement attribute received by the receiving module.
  • the determining module is specifically configured to determine the target CSE and the target attribute according to an announcement attribute of the locally stored target resource, where the announcement attribute Identification information for indicating the target CSE and identification information for indicating the target attribute are included.
  • the advertised attribute is a first advertised attribute, where the first advertised attribute is used to indicate that The target CSE sends the target attribute, where the first announcement attribute includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute, or the first
  • the declarative attribute includes a tuple consisting of a first parameter and a second parameter, the first parameter being used to indicate the target CSE, and the second parameter is used to indicate the target attribute.
  • the announcement attribute includes a second announcement attribute, a third announcement attribute, and a fourth announcement attribute
  • the second announcement attribute includes to-be-advertised CSE information for indicating at least one CSE to be announced
  • the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-advertised attribute, the second announced attribute and the third Declaring an attribute, configured to send the at least one to-be-declared attribute to the at least one to-be-advertised CSE
  • the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE
  • the fourth announcement attribute includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute, or the fourth announcement
  • the attribute includes a two-tuple consisting of a first parameter for indicating the target CSE and a
  • the CSE further includes: creating a module, for creating The target resource including the announcement attribute; and an update module, configured to update the target resource including the announcement attribute.
  • the receiving module is further configured to: Receiving the attribute identification information sent by the target CSE, where the attribute identification information is used to indicate the location or attribute value of the target attribute on the target CSE; the update module is further configured to update according to the attribute identification information received by the receiving module The declared attribute of the target resource.
  • the sending module is further configured to send the attribute identification information to the AE or the CSE.
  • the fifth aspect provides an application entity or a public service entity, where the application entity or the public service entity includes: a determining module, configured to determine a target CSE to be announced and a target attribute corresponding to the target CSE; and a sending module, configured to: An announcement attribute of the target resource is transmitted to the registrant CSE, the announcement attribute including identification information indicating the target CSE and identification information indicating the target attribute.
  • the advertised attribute is a first advertised attribute, where the first advertised attribute is used to indicate that the registrant CSE sends the target attribute to the target CSE,
  • the first announcement attribute includes a first entry for indicating the target CSE, and a second entry for indicating the target attribute, or the first announcement attribute includes A two-tuple consisting of a first parameter and a second parameter, the first parameter is used to indicate the target CSE, and the second parameter is used to indicate the target attribute.
  • the announcement attribute includes a second announcement attribute, a third announcement attribute, and a fourth announcement attribute
  • the second announcement attribute includes at least one to be instructed Declaring CSE information to be announced by the CSE
  • the third announcement attribute includes to-be-declared attribute information for indicating at least one to-be-declared attribute
  • the second announcement attribute and the third announcement attribute are used to indicate to the at least one to-be-advertised CSE Transmitting the at least one to-be-declared attribute
  • the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE, and the target attribute is different from the at least one to-be-declared attribute
  • the fourth announced attribute includes An entry and a second entry, the first entry is used to indicate the target CSE, the second entry is used to indicate the target attribute, or the fourth announcement attribute includes a first parameter and a second parameter The two-group, the first parameter is used to indicate the target CSE, and
  • the method further includes: a receiving module, configured to receive, sent by the registrant CSE Attribute identification information indicating the location or attribute value of the target attribute on the target CSE.
  • a public service entity includes: a receiving module, configured to receive an access request sent by an AE or a CSE, where the access request is used to request access to a target resource; and a determining module, configured to determine the a target attribute of the target resource that is allowed to access; a control module, configured to perform access control on the target attribute determined by the determining module.
  • the determining module is specifically configured to determine an access control policy, where the access control policy is used to indicate that the attribute of the target resource is allowed to be combined; Access the control policy to determine the target attribute.
  • the determining module is further configured to determine the access control policy according to an access permission attribute of the access control policy resource,
  • the access permission attribute includes a quad group consisting of a first parameter, a second parameter, a third parameter, and a fourth parameter, where the first parameter represents an entity requesting access, the second parameter represents an access condition, and the third parameter
  • the parameter indicates an attribute that is allowed to be accessed, and the fourth parameter indicates an access mode, and the access permission attribute is used to indicate that the entity that allows the request to access accesses the attribute that is allowed to access in the access mode under the access condition.
  • a method for declaring attributes in a machine-to-machine system can solve the problem that the same to-be-advertised attribute can be sent to all the CSEs to be announced in the prior art by sending the target attribute corresponding to the target CSE to the different target CSEs, thereby implementing the same resource.
  • Different attributes are declared to different CSEs.
  • FIG. 1 is a schematic block diagram of a machine to machine system in accordance with an embodiment of the present invention.
  • FIG. 2 is a schematic flow diagram of a method of declaring attributes in a machine-to-machine system in accordance with an embodiment of the present invention.
  • FIG. 3 is another schematic flow diagram of a method of declaring attributes in a machine-to-machine system in accordance with an embodiment of the present invention.
  • FIG. 4 is a further schematic flow diagram of a method of declaring attributes in a machine-to-machine system in accordance with an embodiment of the present invention.
  • FIG. 5 is still another schematic flow diagram of a method of declaring attributes in a machine-to-machine system in accordance with an embodiment of the present invention.
  • FIG. 6 is a schematic flow chart of a method of declaring attributes in a machine-to-machine system in accordance with another embodiment of the present invention.
  • FIG. 7 is another schematic flow diagram of a method of declaring attributes in a machine-to-machine system in accordance with another embodiment of the present invention.
  • FIG. 8 is a schematic flow diagram of a method of accessing resources in a machine-to-machine system in accordance with an embodiment of the present invention.
  • FIG. 9 is another schematic flow diagram of a method of accessing resources in a machine-to-machine system in accordance with an embodiment of the present invention.
  • FIG. 10 is a schematic flow diagram of a method of declaring attributes in a machine-to-machine system in accordance with one embodiment of the present invention.
  • FIG. 11 is a schematic flow diagram of a method of announcing attributes in a machine-to-machine system in accordance with one embodiment of the present invention.
  • FIG. 12 is a diagram of a method for announcing attributes in a machine-to-machine system in accordance with one embodiment of the present invention. Schematic flow chart.
  • FIG. 13 is a schematic flow diagram of a method of declaring attributes in a machine-to-machine system in accordance with one embodiment of the present invention.
  • FIG. 14 is a schematic flow diagram of a method of accessing resources in a machine-to-machine system in accordance with one embodiment of the present invention.
  • Figure 15 is a schematic block diagram of a public service entity in accordance with one embodiment of the present invention.
  • 16 is another schematic block diagram of a public service entity in accordance with one embodiment of the present invention.
  • 17 is a schematic block diagram of an application entity or a public service entity, in accordance with one embodiment of the present invention.
  • Figure 18 is a schematic block diagram of an application entity or a public service entity, in accordance with one embodiment of the present invention.
  • 19 is a schematic block diagram of a public service entity in accordance with one embodiment of the present invention.
  • 20 is a schematic block diagram of a public service entity in accordance with one embodiment of the present invention.
  • 21 is a schematic block diagram of an application entity or a public service entity, in accordance with one embodiment of the present invention.
  • 22 is a schematic block diagram of a public service entity in accordance with one embodiment of the present invention.
  • FIG. 1 shows a schematic block diagram of a machine to machine system in accordance with an embodiment of the present invention.
  • the machine-to-machine system uses the oneM2M system as an example.
  • the oneM2M system is divided into an application layer, a common service layer, and a network service layer.
  • the application layer is managed by the application entity (English: Application Entity, AE for short) and is responsible for the operation and storage of the application.
  • the application layer contains the instantiated one-to-one oneM2M solution.
  • the public service layer is managed by the Common Service Entity (CSE) to collect the application layer information to form a resource pool and coordinate the underlying network transmission.
  • CSE Common Service Entity
  • the core layer of oneM2M functions as a platform, and the public service layer includes A series of instantiated public service features.
  • the network layer is composed of network service entities (English: Network Services Entity (NSE) manages the underlying network transport and provides the public service layer with the capabilities that the underlying network can provide.
  • NSE Network Services Entity
  • Mca the interface between AE and CSE, responsible for communication between AE to CSE or CSE to AE
  • Mcc/Mcc' two CSEs Inter-interface, responsible for communication between CSE
  • Mcn interface between CSE and NSE, responsible for communication between CSE to NSE or NSE to CSE.
  • Mcch reference point (not shown) that is the interface between the oneM2M system and the billing system.
  • the oneM2M system architecture is mainly divided into two domains: an infrastructure domain (English: Infrastructure Domain, abbreviated as: IN) and a field domain (Field Domain), wherein the field includes an intermediate node (English: Middle Node, MN for short), application An Application Service Node (ASN) and an Application Dedicated Node (AND: AND), and the infrastructure domain includes a common node. All nodes except the ADN node only contain AEs contain CSE.
  • the embodiment of the present invention is described by taking only oneM2M system as an example, but the present invention is not limited thereto. It should also be understood that in the embodiment of the present invention, all entities in the oneM2M system, such as information of AE and CSE, and data information, etc., may be represented by resources.
  • the resource structure defines in detail how the resources are represented and defines how to get them. These resources are all independently addressable.
  • the method for declaring an attribute in the embodiment of the present invention is applicable to all scenarios in which an attribute needs to be announced.
  • the method for accessing resources in the embodiment of the present invention is applicable to all scenarios that need to access resources.
  • creating a resource may be considered as creating a resource that does not include an attribute, and may also be considered as creating a resource including an attribute.
  • the update resource may be considered as creating an attribute under the resource, and may also be considered as Updating the attribute value of an attribute under the resource may also be deleting an attribute under the resource, and in the embodiment of the present invention, the “create” attribute and the “update” attribute are often used interchangeably, “storage” and “Create” and even “update” are often used interchangeably.
  • the attributes under the resource, the attributes of the resource, and the attributes included in the resource represent the same meaning.
  • the resource or attribute can refer to the information that has been created (or stored). Information that has been determined but not yet created (or stored) may also be referred to, and the invention is not limited thereto.
  • creating (or updating) a resource may be considered as sending a create (or update) request message requesting to create (or update) a resource on another entity, or may be considered to be based on creation (or update). Requesting a message to create (or update) a resource locally, the present invention Not limited.
  • FIG. 2 shows a schematic flow diagram of a method 100 of declaring attributes in a machine-to-machine system in accordance with an embodiment of the present invention.
  • the method 100 can be performed by a public service entity CSE. As shown in Figure 2, the method includes:
  • the performer CSE determines the target CSE to be announced and the target attribute corresponding to the target CSE, and transmits the target attribute to the target CSE. After receiving the target attribute, the target CSE sends a notification message to the performer CSE for notifying that the target attribute is created on the target CSE.
  • the executor CSE can advertise different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the performer CSE may be the CSE registered by the initiator AE or the CSE of the resource to be announced.
  • the registrant CSE or the original resource.
  • the recipient of the (original resource) CSE hosting CSE. It should be understood that the registrant CSE is only a title and there is no direct relationship with whether the initiator AE or CSE is registered on it.
  • the to-be-declared resource is also referred to in the text as the original resource or the target resource (for the part related to the attribute declaration), and the to-be-declared resource may be a resource that has been created on the registrant CSE, or may be a resource created at the same time as the announcement is performed. It can also be a resource created after the announcement.
  • the to-be-declared resource may be an ⁇ AE> resource, a ⁇ Container> resource, or other resources that need to be announced, and the present invention is not limited thereto.
  • the registrant CSE may be located on the same entity device as the initiator AE or CSE, or may be located on a different entity device from the initiator AE or CSE, for example, the initiation
  • the AE may be located at the same application service node as the registrant CSE, or the initiator AE is located at the application-specific node and the registrant CSE is located at the intermediate node, which is not limited by the present invention.
  • the target CSE may be a CSE that is not registered by the initiator AE or CSE, and the target CSE may be a remote CSE, and the target CSE may be located in the domain or in the infrastructure. The domain is not limited by the present invention.
  • the registrant CSE determines the target CSE to be announced, and determines the target attribute of the resource to be announced corresponding to the target CSE. It can be understood that the attribute value of the target attribute is known to the registrant CSE, or the attribute value of the target attribute is known to the target CSE, for example, the registrant CSE has been created.
  • the to-be-advertised resource including the attribute value of the target attribute, or the registrant CSE receives the information including the attribute value, but the present invention is not limited thereto.
  • the registrant CSE may send identification information indicating the target attribute, such as an attribute name, to the target CSE, and then assign a value to the target attribute through an update request message, or may obtain the target attribute attribute value after the target attribute is obtained.
  • the attribute name of the attribute is sent to the target CSE together with the attribute value, and the registrant CSE can also send the identification information of the target attribute to the target CSE, and the target CSE assigns the target attribute by other means, which is not limited by the present invention. .
  • the target CSE may create an announcement resource (the original resource created on the remote CSE and the announced original resource) corresponding to the original resource according to the target attribute.
  • the resource retains some characteristics of the original resource, and may also update the created announcement resource according to the target attribute, for example, creating the target attribute under the created announcement resource, but the present invention does not Limited to this.
  • the target CSE may send a notification message to the registrant CSE for notifying that the target attribute is created on the target CSE.
  • the notification message may include address information of the target attribute such as a URI, so that the registrant CSE knows the location of the target attribute on the target CSE, or the notification message may include an attribute of the target attribute on the target CSE.
  • address information of the target attribute such as a URI
  • the notification message may include an attribute of the target attribute on the target CSE.
  • the name and/or attribute value so that the registrant CSE confirms that the target attribute is declared successful, but the invention is not limited.
  • the target CSE may be one or multiple; the target attribute may be one or multiple.
  • the target attribute may include one or more of the following attributes: "app name” (appName), “application identifier” (App-ID), “application entity identifier” "(AE-ID), "access point” (pointOfAccess), “ontologyRef", "node link” (nodeLink);
  • the target attribute may include the following attributes One or more of them: “state tag” (stateTag), “maximum number of instances” (maxNrOfInstances), “maximum byte size” (maxByteSize), “maximum effect of instance” (maxInstanceAge), “number of current instances” ” (CurrentNrOfInstances), “current byte size” (currentByteSize), “location identifier” (
  • the target attribute is generally an optional attribute (English: optional announced attribute, referred to as OA).
  • the target attribute may be sent together with other attributes, or may be sent separately.
  • the target attribute may be placed in a message with a mandatory attribute (MA: for example). It is sent in the creation request message of the creation of the announcement resource, and may also be sent outside the mandatory attribute by another message (for example, an update request message for updating the announcement resource), but the present invention is not limited thereto.
  • the target attributes sent by the registrant CSE may be the same or different for different target CSEs.
  • the registrant CSE may only send its application ID to one target CSE, and send an application ID and an application name to another target CSE, or the registrant CSE may target one target.
  • the CSE transmits the application ID and the application name, and transmits the application entity ID and pointOfAccess to the other target CSE, but the present invention is not limited thereto.
  • the registrant CSE can advertise different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the method 100 further includes:
  • S140 Receive an announcement attribute of a target resource sent by an application entity AE or a public service entity CSE, where the announcement attribute includes identifier information used to indicate the target CSE and identifier information used to indicate the target attribute.
  • the S110 includes:
  • the initiator AE or the CSE of the target resource sends an announcement attribute of the target resource to the registrant CSE, where the announcement attribute includes identifier information for indicating the target CSE to be announced, and And indicating the identification information of the target attribute to be announced.
  • the registrant CSE determines the target CSE and the target attribute based on the announcement attribute.
  • the identifier information used to indicate the target CSE may be a CSE-ID or a URI of the target CSE.
  • the identifier information is used.
  • the identifier of the target attribute may be the attribute name of the target attribute, or may be the attribute name and the attribute value of the target attribute; However, the invention is not limited to this.
  • the registrant CSE determines the target CSE according to the identification information included in the announcement attribute for indicating the target CSE, and determines the target attribute according to the identification information used to indicate the target attribute, and the The target attribute is sent to the target CSE.
  • the registrant CSE can advertise different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the S110 includes:
  • S112. Determine the target CSE and the target attribute according to an announcement attribute of the locally stored target resource, where the announcement attribute includes identifier information for indicating the target CSE and identifier information for indicating the target attribute.
  • the registrant CSE may determine the target CSE to be announced and the target attribute to be announced according to the announcement attribute under the locally stored target resource, and send the target attribute to the target CSE.
  • the announcement attribute under the target resource includes identification information indicating the target CSE and identification information indicating the target attribute, and the target CSE corresponds to the target attribute.
  • the announcement attribute can be created or updated according to local policies.
  • the registrant CSE can advertise different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the announcement attribute of the target resource is used to indicate the target CSE to be announced and the target attribute to be announced corresponding to the target CSE.
  • the announcement attribute may be a first announcement attribute (which may be referred to as an “announceElement attribute”), and the first announcement attribute may be used to indicate to the target CSE to send one or the need to announce to the target CSE.
  • the first announcement attribute can be used to replace the announceTo and announcedAttribute attributes in the prior art, and for different target CSEs, the target attribute indicated by the announceElement attribute can be identical, partially identical, or completely Different, but the invention is not limited thereto.
  • the first announcement attribute of the embodiment of the present invention is also applicable to the case where the mandatory attribute is declared only to the CSE to be announced. Accordingly, for the CSE to be announced that does not need to declare the optional attribute, the corresponding target attribute is “none”. ".
  • the first declared attribute can be represented in a variety of ways, for example:
  • the first announcement attribute may be a list including a first entry and a second entry, and the second entry
  • the first entry is used to indicate the target CSE to be announced
  • the second entry is used to indicate the target attribute that needs to be announced to the target CSE.
  • the first entry may be set as the identification information of the target CSE.
  • the second entry may be set as the identification information of the target attribute; or
  • the first announcement attribute may be a two-tuple consisting of a first parameter and a second parameter, which may be referred to as an "announcement CSE" (announcement CSE) for indicating the target CSE to be announced.
  • the second parameter (referred to as "announceAtrributeName") is used to indicate the target attribute.
  • the first parameter may be set as the identification information of the target CSE, and the second parameter may be set to the The identification information of the target attribute.
  • first entry or the second entry may be one or multiple, and the first parameter or the second parameter may be one or multiple, but the present invention is not limited thereto.
  • the first entry or the first parameter may be used to indicate the CSE, and accordingly, the second entry or the second parameter may be If it is empty, it may be "none", and the present invention is not limited.
  • the announcement attribute may further include a second announcement attribute, a third announcement attribute, and a fourth announcement attribute, wherein the second announcement attribute includes a to-be-informed at least one to be announced CSE Declaring CSE information, the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-declared attribute, the second announcement attribute and the third announcement attribute are used to indicate that the at least one to be announced is sent to the at least one to-be-advertised CSE An attribute to be declared, the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE, and the target attribute is different from the at least one to-be-declared attribute.
  • the second announcement attribute may be In the prior art, the announceTo attribute may be an announcedAttribute attribute in the prior art.
  • the fourth announcement attribute (which may be referred to as an "announceSpecial" attribute) is used to indicate the target CSE and the target attribute corresponding to the target CSE.
  • the target attribute is different from the at least one to-be-declared attribute indicated in the third announcement attribute.
  • the corresponding target attribute set may be indicated by the third announcement attribute.
  • the true subset of the to-be-advertised attribute set may also be a superset of the to-be-declared attribute set indicated by the third announcement attribute, and may not intersect with the to-be-declared attribute set indicated by the third announcement attribute, optionally,
  • the to-be-advertised CSE indicated by the second announcement attribute may include the target CSE (using And indicating that the target attribute and the at least one to-be-declared attribute indicated by the third announcement attribute are simultaneously sent to the target CSE, but the invention is not limited thereto.
  • the fourth announcement attribute and the second announcement attribute may exist from the third announcement attribute, and the second announcement attribute is used to indicate the to-be-advertised attribute indicated to the second announcement attribute.
  • Declaring a mandatory attribute the fourth announcement attribute is used to send a target attribute corresponding to the target CSE to the target CSE; and when the second announcement attribute, the third announcement attribute, and the fourth announcement attribute are simultaneously present, the fourth announcement attribute It can be used to indicate that only a mandatory attribute is declared to a specific CSE, that is, the corresponding target attribute is "None" for the specific CSE, but the present invention is not limited thereto.
  • the announceSpecial attribute can be considered as a complement to the prior art annouceTo attribute and the announcedAttribute attribute to implement different attributes for the same resource to be declared to different CSEs.
  • the fourth declared attribute can also be represented in a variety of forms, such as:
  • the fourth announcement attribute may be a list, where the list includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute, specifically, The first entry may be set as the identification information of the target CSE, and the second entry may be set as the identification information of the target attribute; or
  • the second announcement attribute may be a dual group consisting of a first parameter and a second parameter, the first parameter is used to indicate the target CSE to be announced, and the second parameter is used to indicate the target attribute, specifically,
  • the first parameter may be set as the identification information of the target CSE, and the second parameter may be set as the identification information of the target attribute.
  • first entry or the second entry may be one or multiple, and the first parameter or the second parameter may be one or multiple, but the present invention is not limited thereto.
  • first entry or the first parameter may be used to indicate the CSE, optionally, the second entry or the second parameter. It may be empty or "none", and the present invention is not limited.
  • the registrant CSE can advertise different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the method 100 further includes:
  • the registrant CSE can locally create or update a target that includes the declared attribute.
  • Resources The target resource may be created before the execution of the announcement, or may be created after the execution of the announcement.
  • the announcement attribute may be created before the execution of the announcement, or may be created after the execution of the announcement.
  • the registrant CSE may The target resource is updated, for example, the announcement attribute is created or updated under the target resource, but the invention is not limited thereto.
  • the registrant CSE can advertise different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the method 100 further includes:
  • S160 Receive attribute identification information sent by the target CSE, where the attribute identification information is used to indicate a location or attribute value of the target attribute on the target CSE.
  • the target CSE may place the target attribute as an attribute of the locally created announcement resource under the announcement resource, and send the identifier under the announcement resource to the registrant CSE.
  • Attribute identification information of the target attribute the attribute identification information may be address information such as a URI, used to indicate the location of the target attribute on the target CSE, or the attribute identification information may be an attribute name of the target attribute on the target CSE and The attribute value is such that the registrant CSE confirms that the target attribute is declared correct, but the present invention is not limited thereto.
  • the registrant CSE updates the announcement attribute of the target resource according to the attribute identification information.
  • the attribute identification information may be a URI and/or an attribute value of the target attribute under the announcement resource, and the registrant CSE may receive the URI and/or the attribute value after receiving the URI and/or the attribute value.
  • the target resource is updated accordingly, for example, by updating the URI and/or attribute value to the corresponding announcement attribute, but the invention is not limited thereto.
  • the address information and/or the attribute value is only a specific example of the attribute identification information, and the attribute identification information may also be other information.
  • the target attribute may be created together with the announcement resource, and after the target CSE creates the announcement resource and the target attribute, the identification information of the announcement resource, such as a URI or a resource ID (resource) -ID) is sent to the registrant CSE together with address information of the target attribute under the announcement resource, such as a URI and/or an attribute value; the registrant CSE receives the identification information of the announcement resource and the address information of the target attribute and / or after the attribute value, the target resource can be updated accordingly.
  • the identification information of the announcement resource such as a URI or a resource ID (resource) -ID
  • the method for declaring attributes in the machine-to-machine system of the embodiment of the present invention the registrant CSE Different attributes of the same resource can be declared to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the method 100 further includes:
  • the registrant CSE may send the attribute identification information, for example, the URI and/or attribute value of the target attribute under the announcement resource to the target resource.
  • the initiator AE or the CSE, the target resource created by the AE or CSE request may or may not include the announcement attribute, and the present invention is not limited thereto.
  • the registrant CSE can advertise different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • a method 200 of declaring attributes in a machine system As shown in FIG. 6, the executor of the method may be an AE or a CSE, and the method 200 includes:
  • the initiator AE or CSE of the target resource determines the target CSE to be announced and the target attribute corresponding to the target CSE, and sends the target to the registrant CSE.
  • An announcement attribute of the resource the announcement attribute including identification information indicating the target CSE and identification information indicating the target attribute. After the registrant CSE receives the announcement attribute, the target attribute can be announced to the target CSE according to the announcement attribute.
  • the initiator AE or the CSE can implement different attributes of the same resource by instructing the registrant CSE to send the target attribute corresponding to the target CSE to different target CSEs. Declare a different CSE.
  • the manner in which the initiator AE or CSE sends the announcement attribute to the registrant CSE may be various.
  • the initiator AE or CSE may send the announcement attribute through a create request message for creating a target resource, or may send the announcement attribute through an update request message for updating the target resource.
  • the initiator AE or CSE may be created by sending to the registrant CSE.
  • the initiator AE or CSE may request the registrant CSE to create or send an update request message to the registrant CSE Update the announcement attribute under the target resource. It can be understood that the creation request message or the update request message should include the announcement attribute.
  • the announcement attribute may be a first announcement attribute
  • the first announcement attribute may be used to indicate that the registrant CSE sends all optional attributes that need to be announced to the target CSE to the target CSE. Therefore, for different target CSEs, the target attributes may be identical, partially identical, or completely different, and the present invention is not limited thereto.
  • the first declared attribute can be represented in a variety of ways, for example:
  • the first announcement attribute may be a list, where the list includes a first entry and a second entry, the first entry is used to indicate the target CSE to be announced, and the second entry is used to indicate that the need to be announced to the
  • the target attribute of the target CSE specifically, the first entry may be set as the identification information of the target CSE, and the second entry may be set as the identification information of the target attribute; or
  • the first announcement attribute may be a dual group consisting of a first parameter and a second parameter, the first parameter is used to indicate the target CSE to be announced, and the second parameter is used to indicate the target attribute, specifically,
  • the first parameter may be set as the identification information of the target CSE, and the second parameter may be set as the identification information of the target attribute.
  • first entry or the second entry may be one or multiple, and the first parameter or the second parameter may be one or multiple, but the present invention is not limited thereto.
  • the first entry or the first parameter may be used to indicate the CSE, and accordingly, the second entry or the second parameter may be If it is empty, it may be "none", and the present invention is not limited.
  • the announcement attribute may further include a second announcement attribute, a third announcement attribute, and a fourth announcement attribute, where the second announcement attribute includes a to-be-advertised CSE for indicating at least one CSE to be announced.
  • the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-declared attribute
  • the second announcement attribute and the third announcement attribute are used to indicate that the at least one to-be-declared is sent to the at least one to-be-advertised CSE
  • the second announcement attribute may be an announceTo attribute in the prior art
  • the third announcement attribute may be an announceAttribute attribute in the prior art.
  • the fourth announcement attribute (may be referred to as announceSpecial) is used to indicate the target CSE and the target attribute corresponding to the target CSE.
  • announceSpecial The at least one to-be-declared attribute indicated in the sex is different, but the invention is not limited.
  • the announceSpecial attribute can be considered as a complement to the prior art announceTo attribute and the announcedAttribute attribute to indicate to different CSEs to advertise different attributes of the same resource.
  • the fourth declared attribute can also be represented in a variety of forms, such as:
  • the fourth announcement attribute may be a list, where the list includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute, specifically, The first entry may be set as the identification information of the target CSE, and the second entry may be set as the identification information of the target attribute; or
  • the second announcement attribute may be a dual group consisting of a first parameter and a second parameter, the first parameter is used to indicate the target CSE to be announced, and the second parameter is used to indicate the target attribute, specifically,
  • the first parameter may be set as the identification information of the target CSE, and the second parameter may be set as the identification information of the target attribute.
  • first entry or the second entry may be one or multiple, and the first parameter or the second parameter may be one or multiple, but the present invention is not limited thereto.
  • first entry or the first parameter may be used to indicate the CSE, and correspondingly, the second entry or the second parameter may be empty, and It may be "none", and the present invention is not limited.
  • the initiator AE or the CSE can implement different attributes of the same resource by instructing the registrant CSE to send the target attribute corresponding to the target CSE to different target CSEs. Declare a different CSE.
  • the method 200 further includes:
  • the registrant CSE sends the target attribute to the target CSE according to the announcement attribute, and receives attribute identification information returned by the target CSE, where the attribute identification information may be address information of the target attribute on the target CSE, for example a URI indicating a location of the target attribute on the target CSE, or the attribute identification information may be an attribute value of the target attribute on the target CSE, for confirming that the target attribute is declared, but the invention is not limited thereto this.
  • the registrant CSE may send the attribute identification information to the initiator AE or CSE.
  • the initiator AE Or the CSE may advertise the different attributes of the same resource to different CSEs by instructing the registrant CSE to send the target attributes corresponding to the target CSE to different target CSEs.
  • the method 300 can be performed by a CSE, and the method 300 includes:
  • S310 Receive an access request sent by an AE or a CSE, where the access request is used to request access to a target resource.
  • the performer CSE receives an access request sent by the AE or the CSE, the access request is used to request the performer CSE to access the target resource, and the performer CSE determines the target attribute of the target resource that is allowed to access, and allows access.
  • the target attribute is controlled by access.
  • the method for accessing attributes in the machine-to-machine system of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • the performer CSE may be the receiver CSE of the resource to be accessed, which may be referred to as the receiver CSE in the following, and the to-be-accessed resource is the target resource in the method 300.
  • the target resource may be an original resource, such as the ⁇ AE> or ⁇ Container> resource in the above, or may be a declaring resource (a resource created on the remote CSE related to the original resource being advertised, the resource retaining part of the original resource) Feature), such as ⁇ AEAnnc> or ⁇ ContainerAnnc> resource ("Annc" indicates that the resource is an announcement resource, ⁇ AEAnnc> is an announcement resource related to the ⁇ AE> resource, and ⁇ ContainerAnnc> is an announcement related to the ⁇ Container> resource
  • the resource may be other resources that are accessible, and the present invention is not limited thereto.
  • the access request may be requested by the access request in multiple ways (including but not limited to "create”, “acquire”, “update”, “delete” in the existing standard, for example, the access request may be used to request acquisition.
  • the request for obtaining the target resource may also be an update request for requesting to update the target resource, or may be another type of access request, which is not limited by the present invention.
  • the S330 includes performing a corresponding operation on the target attribute according to the access request, for example, when the access request is an “acquisition” request, the target attribute may be sent to the AE or CSE when the access request is an “update” request.
  • the target attribute may be updated according to the access request, but the present invention is not limited thereto.
  • the S320 includes:
  • S321. Determine an access control policy, where the access control policy is used to indicate permission of the target resource. a collection of properties accessed;
  • the recipient CSE determines an access control policy for indicating a set of attributes of the target resource that are allowed to access.
  • the set of attributes indicated by the access control policy may be the same or different, and the attribute set may include all attributes of the target resource, or may only include partial attributes of the target resource, and the attribute set may also be It is an empty set, and the present invention is not limited thereto. It can be understood that the last determined target attribute should fall within the set of attributes that are allowed to access. In other words, attributes outside the set of attributes are forbidden to access.
  • the method for accessing attributes in the machine-to-machine system of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • the S321 includes:
  • the access permission attribute includes a quad group consisting of a first parameter, a second parameter, a third parameter, and a fourth parameter, where the first parameter represents an entity requesting access, the second parameter represents an access condition, and the third parameter
  • the parameter indicates an attribute that is allowed to be accessed, and the fourth parameter indicates an access mode, and the access permission attribute is used to indicate that the entity that allows the request to access accesses the attribute that is allowed to access in the access mode under the access condition.
  • the receiver CSE determines the access control policy by querying the access authority attribute under the access control policy resource, and then determines the target attribute.
  • the access rights attribute is used to indicate that a particular entity is allowed to access a particular target attribute in a particular access mode under a particular access condition.
  • the access rights attribute can be a four-tuple whose four parameters correspond to the particular entity, the particular access condition, the particular target attribute, and the particular access mode.
  • the entity that requests access may be an AE, or may be a CSE (including an external CSE and the receiver CSE); the access condition may be time information or other information; the access The manner may be "create”, “acquire”, “update”, “delete”, etc., but the invention is not limited thereto.
  • the embodiment of the present invention can be regarded as refining the access authority attributes (privileges attribute and selfPrivileges attribute) under the access control policy resource in the prior art. Expanded from the original triple to a quad.
  • the first parameter can be regarded as the "access controlOriginators" in the prior art.
  • the second parameter can be regarded as prior art.
  • the access control policy (access control contexts), the fourth parameter can be regarded as the "access controlOperations" in the prior art, and the third parameter is a newly defined parameter in the embodiment of the present invention, which may be called For the access control attribute (accessControlAttributes), the third parameter can be used to list the attributes that are allowed to access, for example, the identification information of the attribute that is allowed to be accessed, and the third parameter is used to implement access control under the resource granularity.
  • the attribute listed in the third parameter may be one, or may be multiple, or may be “null”, indicating that access to any attribute under the resource is not allowed. It may also be "all" ("all”), indicating that any attribute under the resource can be accessed, but the invention is not limited thereto.
  • the access permission attribute of the access control policy resource is known to the receiver CSE, and the access control policy resource may be stored locally or may be stored in an external entity, for example.
  • the receiver CSE can obtain the location of the access control policy resource by using the access control policy identifier (accessControlPolicyIDs) attribute of the target resource, and then determine the location according to the access permission attribute of the access control policy resource.
  • Access control policies but the invention is not limited thereto.
  • the access rights attribute under the access control policy resource may be determined and created by the receiver CSE, or may be determined by an external entity such as the initiator AE or CSE of the target resource but created by the receiver CSE, but the present invention Not limited to this.
  • the present invention is not limited to the decision maker and the creator of the access authority attribute.
  • the method for accessing attributes in the machine-to-machine system of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • a method for declaring attributes in a machine-to-machine system is described from the perspective of a registrant CSE and an initiator AE or CSE, respectively, from the perspective of the recipient CSE.
  • a method of accessing attributes in a machine-to-machine system of an embodiment of the invention is described from the perspective of a registrant CSE and an initiator AE or CSE, respectively, from the perspective of the recipient CSE.
  • a method of declaring attributes in a machine-to-machine system and a method of accessing attributes in a machine-to-machine system according to an embodiment of the present invention will be described in detail below in connection with a specific example from the perspective of AE and CSE interaction. It should be noted that these examples are only intended to assist those skilled in the art to better understand the embodiments of the present invention and not to limit the scope of the embodiments of the present invention.
  • FIG. 10 is a schematic diagram of a method of declaring attributes in a machine-to-machine system in accordance with one embodiment of the present invention.
  • the method is triggered by the initiator AE or the CSE.
  • the AE is used as an initiator.
  • the target resource to be announced is exemplified by ⁇ AE>.
  • the initiator AE sends a create request message for creating an ⁇ AE> resource to the registrant CSE, where the create request message includes an announcement attribute of the ⁇ AE> resource, such as an announceElement attribute.
  • the announceElement attribute is used to indicate that the two attributes "AE-ID” and “ontologyRef" are announced to the remote CSE1, and the two attributes "AE-ID” and “appName” are announced to the remote CSE2.
  • the registrant CSE creates an ⁇ AE> resource according to the creation request message, and uses the announceElement attribute as an attribute of the ⁇ AE> resource.
  • the registrant CSE sends a create request message to the remote CSE1 and the remote CSE2, respectively, and announces the ⁇ AE> resource and all mandatory attributes under the resource to the remote CSE1 and the remote CSE2, and according to the announceElement attribute, in S431.
  • the registrant CSE announces two attributes "AE-ID” and "ontologyRef” to the remote CSE1, and in S432, the registrant CSE announces two attributes "AE-ID” and "appName” to the remote CSE2.
  • the remote CSE1 creates an ⁇ AE1Annc> resource, and creates all mandatory attributes under the resource, and two attributes "AE-ID” and "ontologyRef”.
  • the remote CSE2 creates an ⁇ AE2Annc> resource, and creates all mandatory attributes under the resource, and two attributes "AE-ID” and "appName”.
  • the remote CSE1 sends the created URI of the ⁇ AE1Annc> and all the mandatory attributes under it and the URIs of the two attributes "AE-ID” and "ontologyRef” to the registrant CSE; in S452, the remote CSE2 will The URI of the created ⁇ AE2Annc> and all the mandatory attributes under it and the URIs of the two attributes "AE-ID” and "appName” are sent to the registrant CSE.
  • the registrant CSE updates all the URIs received in S451 and S452 to the announceElement attribute under the ⁇ AE> resource created in S420.
  • the registrant CSE stores all the URIs received in S451 and S452 in the announceElement attribute and replies to the initiator AE.
  • the resource to be announced may also be other resources that need to be announced, such as a ⁇ container> resource.
  • the announceElement may be used to indicate that the maxInstanceAge and the locationID are to be used.
  • the attribute is announced to the remote CSE1, and the two attributes maxatioAge and ontologyRef are announced to the remote CSE2, and a person skilled in the art can easily infer the corresponding announcement process.
  • FIG. 11 is a schematic diagram of a method of declaring attributes in a machine-to-machine system in accordance with another embodiment of the present invention.
  • the method is triggered by the registrant CSE.
  • the target resource to be announced has been created on the registrant CSE, and the target resource is exemplified by ⁇ AE>.
  • the registrant CSE creates or updates an announcement attribute under the locally stored ⁇ AE> resource, and the announcement attribute takes an announceElement as an example.
  • the announceElement attribute is used to indicate that the two attributes "AE-ID” and “ontologyRef” are announced to the remote CSE1, and the two attributes "AE-ID” and “appName” are announced to the remote CSE2.
  • the registrant CSE sends a create request message to the remote CSE1 and the remote CSE2, respectively, and announces the ⁇ AE> resource and all mandatory attributes under the resource to the remote CSE1 and the remote CSE2, and according to the announceElement attribute, in S521.
  • the registrant CSE announces two attributes "AE-ID” and "ontologyRef” to the remote CSE1, and in S522, the registrant CSE announces two attributes "AE-ID” and "appName” to the remote CSE2.
  • the remote CSE1 creates an ⁇ AE1Annc> resource, and creates all mandatory attributes and "AE-ID” and “ontologyRef” attributes under the resource.
  • the remote CSE2 creates an ⁇ AE2Annc> resource, and creates all mandatory attributes and "AE-ID” and "appName” attributes under the resource.
  • the remote CSE1 sends the created URI of the ⁇ AE1Annc> and all the mandatory attributes under it and the URIs of the two attributes "AE-ID” and "ontologyRef” to the registrant CSE; in S542, the remote CSE2 will The URI of the created ⁇ AE2Annc> and all the mandatory attributes under it and the URIs of the two attributes "AE-ID” and "appName” are sent to the registrant CSE.
  • the registrant CSE updates all the URIs received in S541 and S542 to the announceElement attribute under the locally stored ⁇ AE> resource.
  • the resource to be announced may also be other resources that need to be announced, such as a ⁇ container> resource.
  • the announceElement may be used to indicate that the maxInstanceAge and the locationID are to be used.
  • the attribute is announced to the remote CSE1, and the two attributes maxatioAge and ontologyRef are announced to the remote CSE2, and a person skilled in the art can easily infer the corresponding announcement process.
  • FIG. 12 is a schematic diagram of a method of declaring attributes in a machine-to-machine system in accordance with another embodiment of the present invention.
  • the method is triggered by the initiator AE or CSE, in the embodiment of the present invention.
  • the initiator AE or CSE
  • the target resource to be announced is exemplified by ⁇ AE>.
  • the initiator AE sends a create request message for creating an ⁇ AE> resource to the registrant CSE, where the request message includes an announceTo attribute, an announcedAttribute attribute, and an announceSpecial attribute, where the announceTo attribute indicates the remote CSE1 and the remote CSE2,
  • the announcedAttribute attribute indicates an "appName” attribute and an "AE-ID” attribute indicating that the "ontologyRef" attribute is declared to the remote CSE2.
  • the registrant CSE creates an ⁇ AE> resource, and uses the announceTo attribute, the announcedAttribute attribute, and the announceSpecial attribute in S610 as the announcement attribute of the ⁇ AE> resource.
  • the registrant CSE sends a create request message to the remote CSE1 and the remote CSE2 according to the two attributes of announceTo and announcedAttribute, and the ⁇ AE> resource and all mandatory attributes under the resource and the "appName" attribute indicated by the announced attribute attribute.
  • the "AE-ID" attribute is announced to the remote CSE1 and the remote CSE2, and, in particular, in S632, the registrant CSE announces the "ontologyRef" attribute to the Remote CSE2 according to the announceSpecial attribute.
  • the remote CSE1 creates an ⁇ AE1Annc> resource, and creates all mandatory attributes and "appName", AE-ID” attributes under the resource according to S631; in S642, the remote CSE2 creates an ⁇ AE2Annc> resource, and according to S632 creates all mandatory attributes and "AE-ID” and "appName” attributes under the resource. In particular, the remote CSE2 creates an "ontologyRef" attribute under the ⁇ AE2Annc> resource according to the announceSpecial attribute in S642.
  • the remote CSE1 and the remote CSE2 respectively reply ⁇ AE1Annc> and ⁇ AE2Annc> created in S641 and S642 and the URIs of all attributes created under them to the registrant CSE.
  • the registrant CSE updates all the URIs received in S651 and S652 to the announceTo, anouncedAttribute, and announceSpecial attributes.
  • the registrant CSE stores all the URIs received in S651 and S652 in the three attributes of announceTo, anouncedAttribute, and announceSpecial and sends them to the initiator AE.
  • the resource to be announced may also be other resources that need to be announced, such as a ⁇ container> resource.
  • the announceTo, anounceAttribute, and announceSpecial may be used to indicate that the maxInstanceAge will be used.
  • locationID The two attributes are announced to the remote CSE1, and the two attributes maxatioAge and ontologyRef are announced to the remote CSE2, and a person skilled in the art can easily infer the corresponding announcement process.
  • FIG. 13 is a schematic diagram of a method of declaring attributes in a machine-to-machine system in accordance with one embodiment of the present invention.
  • the method is triggered by the registrant CSE.
  • the target resource to be announced has been created on the registrant CSE, and the target resource is exemplified by ⁇ AE>.
  • the registrant CSE creates or updates an announceSpecial attribute under the locally stored ⁇ AE> resource, which indicates that the "ontologyRef" attribute is advertised to the remote CSE2.
  • the registrant CSE announces the "ontologyRef" attribute to the remote CSE2 according to the announceSpecial attribute.
  • the remote CSE2 creates an accessRef attribute under the locally stored ⁇ AE2Annc> resource.
  • the remote CSE 2 replies the URI of the topologyRef attribute under the ⁇ AE2Annc> resource to the registrant CSE.
  • the registrant CSE updates the URI received in S740 correspondingly to the announceSpecial attribute under the locally stored ⁇ AE> resource.
  • the resource to be announced may also be other resources that need to be announced, such as a ⁇ container> resource.
  • the announceSpecial may be used to indicate that the topologyRef attribute is declared to the remote. CSE2, one of ordinary skill in the art can easily infer the corresponding announcement process.
  • the size of the sequence number of the above process does not mean the order of execution sequence, and the execution order of each process is determined by its function and internal logic, and should not be constituted by the implementation process of the embodiment of the present invention. Any restrictions.
  • the method for declaring resources in the machine-to-machine system of the embodiment of the present invention can realize different attributes of the same resource to different remote CSEs by defining new announcement attributes (announceElement and announceSpecial).
  • FIG. 14 is a schematic diagram of a method of accessing resources in a machine-to-machine system, in accordance with one embodiment of the present invention.
  • the CSE creates a resource, which is exemplified by ⁇ AEAnnc>.
  • AE1 and AE2 respectively send a request message for accessing the ⁇ AEAnnc> resource to the CSE, the request message being used to request an "get" operation on the ⁇ AEAnnc> resource.
  • the CSE searches for an access control policy resource by using an accessControlPolicyIDs attribute of the ⁇ AEAnnc> resource, and queries an access control policy of the ⁇ AEAnnc> resource in the access control policy resource, where the access control policy indicates the current Under the access condition, AE1 may perform an "acquisition" operation on the AE-ID attribute of the ⁇ AEAnnc> resource, and AE2 may perform an "acquire" operation on the attributeRef attribute and the AE-ID attribute of the ⁇ AEAnnc> resource.
  • the CSE provides an attribute value of the AE-ID attribute to the AE1 according to the access control policy in S830, and in S842, the CSE provides the ontoRef attribute and the AE-ID attribute to the AE2 according to the access control policy in S830. Property value.
  • the size of the sequence number of the above process does not mean the order of execution sequence, and the execution order of each process is determined by its function and internal logic, and should not constitute any implementation process of the embodiment of the present invention. limited.
  • the method for accessing resources in the machine-to-machine system of the embodiment of the present invention can realize access control of resource granularity by defining new access control parameters.
  • Figure 15 shows a schematic block diagram of a public service entity CSE 10 in accordance with an embodiment of the present invention.
  • the CSE 10 includes:
  • a determining module 11 configured to determine a target public service entity CSE to be announced and a target attribute corresponding to the target CSE;
  • the sending module 12 is configured to send the target attribute determined by the determining module 11 to the target CSE determined by the determining module 11;
  • the receiving module 13 is configured to receive a notification message sent by the target CSE for notifying that the target attribute is created on the target CSE.
  • the CSE 10 determines a target CSE to be announced and a target attribute corresponding to the target CSE, and transmits the target attribute to the target CSE. After receiving the target attribute, the target CSE sends a notification message to the CSE 10 for notifying that the target attribute is created on the target CSE.
  • the CSE 10 may be the CSE registered by the initiator AE or the CSE of the target resource to be announced; the CSE 10 may be located on the same physical device as the initiator AE or CSE, and may also be The initiator is located on different physical devices; the target CSE may be one or multiple, and the target attribute may be one or multiple; the target attribute may be sent together with other attributes, or may be sent separately.
  • the target attributes may be identical, partially identical, or completely different; the invention is not limited.
  • the CSE of the embodiment of the present invention can announce different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the receiving module 13 is further configured to receive an announcement attribute of the target resource sent by the application entity AE or the public service entity CSE, where the announcement attribute includes identifier information used to indicate the target CSE, and The identification information indicating the target attribute.
  • the determining module 11 is specifically configured to determine the target CSE and the target attribute according to the announcement attribute received by the receiving module 13.
  • the determining module 11 is configured to determine the target CSE and the target attribute according to the declared attribute of the locally stored target resource, where the announcement attribute includes an identifier for indicating the target CSE. Information and identification information used to indicate the target attribute.
  • the announcement attribute may be a first announcement attribute, where the first announcement attribute is used to indicate that the target attribute is sent to the target CSE.
  • the first announcement attribute may be in a plurality of forms.
  • the first announcement attribute may be a list, where the list includes a first entry and a second entry, where the first entry is used to indicate the target CSE.
  • the second entry is used to indicate the target attribute; or the first announcement attribute includes a dual group consisting of a first parameter and a second parameter, the first parameter is used to indicate the target CSE, and the second parameter is used for Indicates the target attribute.
  • the announcement attribute may include a second announcement attribute, a third announcement attribute, and a fourth announcement attribute, where the second announcement attribute includes the to-be-advertised CSE information for indicating at least one CSE to be announced.
  • the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-advertised attribute, the second announcement attribute and the third announcement attribute are used to indicate that the at least one to-be-advertised attribute is sent to the at least one to-be-advertised CSE
  • the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE, and the target attribute is different from the at least one to-be-declared attribute.
  • the fourth announcement attribute may be represented in various forms, for example, the fourth announcement attribute may be a list including a first entry for indicating the target CSE, and a second entry for indicating the target attribute, or the fourth declared attribute is included by the first A two-tuple consisting of a parameter and a second parameter, the first parameter is used to indicate the target CSE, and the second parameter is used to indicate the target attribute.
  • the CSE 10 further includes:
  • the update module 15 is configured to update the target resource including the announcement attribute.
  • the receiving module 13 is further configured to receive the attribute identification information sent by the target CSE, where the attribute identification information is used to indicate a location or attribute value of the target attribute on the target CSE;
  • the update module 15 is further configured to update the announcement attribute of the target resource according to the attribute identification information received by the receiving module 13.
  • the sending module 12 is further configured to send the attribute identification information to the AE or the CSE.
  • the CSE of the embodiment of the present invention can reproduce different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • FIG. 17 shows a schematic block diagram of an application entity AE or a public service entity CSE 20 in accordance with an embodiment of the present invention.
  • the AE or CSE 20 includes:
  • a determining module 21 configured to determine a target CSE to be announced and a target attribute corresponding to the target CSE
  • the sending module 22 is configured to send, to the registrant CSE, an announcement attribute of the target resource, where the announcement attribute includes identifier information for indicating the target CSE and identifier information for indicating the target attribute.
  • the AE or CSE 20 of the embodiment of the present invention determines, as the initiator of the target resource, the target CSE to be announced and the target attribute corresponding to the target CSE, and sends the announcement attribute of the target resource to the registrant CSE, the announcement
  • the attribute includes identification information indicating the target CSE and identification information indicating the target attribute.
  • the registrant CSE can announce the target attribute to the target CSE according to the announcement attribute.
  • the AE or CSE of the embodiment of the present invention indicates to the registrant CSE to different targets
  • the CSE sends the target attribute corresponding to the target CSE, so that different attributes of the same resource can be declared to different CSEs.
  • the announcement attribute sent by the sending module 22 may be a first announcement attribute, where the first announcement attribute is used to indicate that the registrant CSE sends the target attribute to the target CSE.
  • the declaration attribute can be expressed in a variety of ways, such as:
  • the first announcement attribute is a list, where the list includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute, or the first
  • the announcement attribute includes a two-tuple consisting of a first parameter for indicating the target CSE and a second parameter for indicating the target attribute.
  • the announcement attribute sent by the sending module 22 may include a second announcement attribute, a third announcement attribute, and a fourth announcement attribute, where the second announcement attribute includes at least one CSE to be announced.
  • the CSE information to be announced the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-advertised attribute
  • the second announcement attribute and the third announcement attribute are used to indicate that the at least one to-be-advertised CSE is sent
  • the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE, and the target attribute is different from the at least one to-be-declared attribute.
  • the fourth declared attribute can also be represented in a variety of forms, such as:
  • the fourth announcement attribute is a list, where the list includes a first entry for indicating the target CSE, and a second entry for indicating the target attribute, or the fourth The announcement attribute includes a two-tuple consisting of a first parameter for indicating the target CSE and a second parameter for indicating the target attribute.
  • the AE or the CSE of the embodiment of the present invention can announce different attributes of the same resource to different CSEs by instructing the registrant CSE to send target attributes corresponding to the target CSE to different target CSEs.
  • the AE or CSE 20 further includes:
  • the receiving module 23 is configured to receive attribute identification information sent by the registrant CSE, where the attribute identification information is used to indicate a location or attribute value of the target attribute on the target CSE.
  • the registrant CSE sends the target genus to the target CSE according to the announcement attribute. And receiving the attribute identification information sent by the target CSE, where the attribute identification information may be address information of the target attribute on the target CSE, such as a URI, used to indicate the location of the target attribute on the target CSE, or may be The attribute value of the target attribute on the target CSE is used to confirm that the target attribute is declared unambiguously, but the present invention is not limited thereto.
  • the registrant CSE sends the attribute identification information to the initiator AE or CSE.
  • the AE or the CSE of the embodiment of the present invention can announce different attributes of the same resource to different CSEs by instructing the registrant CSE to send target attributes corresponding to the target CSE to different target CSEs.
  • FIG. 19 shows a schematic block diagram of a public service entity CSE 30 in accordance with an embodiment of the present invention.
  • the CSE 30 includes:
  • the receiving module 31 is configured to receive an access request sent by the AE or the CSE, where the access request is used to request access to the target resource;
  • a determining module 32 configured to determine a target attribute of the target resource that is allowed to access
  • the control module 33 is configured to perform access control on the target attribute determined by the determining module 32.
  • the CSE 30 of the embodiment of the present invention receives an access request sent by an AE or a CSE, where the access request is used to request the CSE 30 to access a target resource, and the CSE 30 determines a target attribute of the target resource that is allowed to access, and allows the Access target properties for access control.
  • the CSE 30 of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • the determining module 32 is specifically configured to determine an access control policy, where the access control policy is used to indicate a set of attributes of the target resource that is allowed to access; and determine the target according to the access control policy. Attributes.
  • the CSE 30 of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • the determining module 32 is further configured to determine the access control policy according to an access permission attribute of the access control policy resource.
  • the access permission attribute includes a quad group consisting of a first parameter, a second parameter, a third parameter, and a fourth parameter, where the first parameter represents an entity requesting access, the second parameter represents an access condition, and the third parameter
  • the parameter indicates an attribute that is allowed to be accessed, and the fourth parameter indicates an access mode, and the access permission attribute is used to indicate that the entity that allows the request to access accesses the attribute that is allowed to access in the access mode under the access condition.
  • the CSE of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • an embodiment of the present invention further provides a public service entity 40, which includes a processor 41, a memory 42, a bus system 43, a receiver 44, and a transmitter 45.
  • the processor 41, the memory 42, the receiver 44 and the transmitter 45 are connected by a bus system 43 for storing instructions for executing instructions stored in the memory 42 for controlling the receiver 44 to receive.
  • the processor 41 is configured to determine a target public service entity CSE to be announced and a target attribute corresponding to the target CSE; the transmitter 45 is configured to determine the processor 41 The target CSE sends the target attribute determined by the processor 41; the receiver 44 is configured to receive a notification message sent by the target CSE for notifying that the target attribute is created on the target CSE.
  • the CSE 40 of the embodiment of the present invention can announce different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • the processor 41 may be a central processing unit (English: Central Processing Unit, CPU for short), and the processor 41 may also be other general-purpose processors and digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 42 can include read only memory and random access memory and provides instructions and data to the processor 41. A portion of the memory 42 may also include a non-volatile random access memory.
  • the bus system 43 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as the bus system 43 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 41 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 42, and the processor 41 reads the information in the memory 42 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the receiver 44 is further configured to receive an announcement attribute of the target resource sent by the application entity AE or the public service entity CSE, where the announcement attribute includes identifier information used to indicate the target CSE and is used to indicate The identification information of the target attribute.
  • the processor 41 is specifically configured to determine the target CSE and the target attribute according to the announcement attribute received by the receiver 44.
  • the processor 41 is configured to determine the target CSE and the target attribute according to an announcement attribute of the locally stored target resource, where the announcement attribute includes identifier information for indicating the target CSE and Identification information used to indicate the target attribute.
  • the announcement attribute may be a first announcement attribute, where the first announcement attribute is used to indicate that the target attribute is sent to the target CSE.
  • the first announcement attribute may be in a plurality of forms.
  • the first announcement attribute may be a list, where the list includes a first entry and a second entry, where the first entry is used to indicate the target CSE.
  • the second entry is used to indicate the target attribute; or the first announcement attribute includes a dual group consisting of a first parameter and a second parameter, the first parameter is used to indicate the target CSE, and the second parameter is used for Indicates the target attribute.
  • the announcement attribute may include a second announcement attribute, a third announcement attribute, and a fourth announcement attribute, where the second announcement attribute includes the to-be-advertised CSE information for indicating at least one to be announced CSE.
  • the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-advertised attribute, the second announcement attribute and the third announcement attribute are used to indicate that the at least one to-be-advertised attribute is sent to the at least one to-be-advertised CSE
  • the fourth announcement attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE, and the target attribute is different from the at least one to-be-advertised attribute;
  • the fourth announcement attribute may be in various forms.
  • the fourth announcement attribute may be a list, where the list includes a first entry and a second entry, where the first entry is used to indicate the target CSE.
  • the second entry is used to indicate the target attribute
  • the fourth announcement attribute includes a dual group consisting of a first parameter and a second parameter, the first parameter is used to indicate the target CSE, and the second parameter is used for Indicates the target attribute.
  • the processor 41 is configured to create or update a target resource including the announcement attribute.
  • the receiver 44 is further configured to receive the sending by the target CSE. Attribute identification information, the attribute identification information is used to indicate the location or attribute value of the target attribute on the target CSE; the processor 41 is further configured to update the target resource according to the attribute identification information received by the receiver 44. Declare attributes.
  • the transmitter 45 is further configured to send the attribute identification information to an initiator AE or a CSE of the target resource.
  • the public service entity CSE 40 may correspond to the public service entity 10 provided by the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the CSE 40 are respectively implemented in order to implement FIG. 2 to FIG. 5 .
  • the corresponding process of the method 100 in the following is omitted for brevity.
  • the CSE of the embodiment of the present invention can reproduce different attributes of the same resource to different CSEs by sending target attributes corresponding to the target CSE to different target CSEs.
  • an embodiment of the present invention further provides an application entity or public service entity 50.
  • the AE or CSE 50 includes a processor 51, a memory 52, a bus system 53, a receiver 54, and a transmitter 55.
  • the processor 51, the memory 52, the receiver 54, and the transmitter 55 are connected by a bus system 53 for storing instructions for executing instructions stored in the memory 55 to control the receiver 54 to receive.
  • Signaling and controlling the transmitter 55 to transmit a signal wherein the processor 51 is configured to determine a target CSE to be announced and a target attribute corresponding to the target CSE; the transmitter 55 is configured to send an announcement attribute of the target resource to the registrant CSE
  • the announcement attribute includes identification information indicating the target CSE and identification information indicating the target attribute.
  • the registrant CSE can announce the target attribute to the target CSE according to the announcement attribute.
  • the AE or CSE 50 of the embodiment of the present invention can announce different attributes of the same resource to different CSEs by instructing the registrant CSE to send target attributes corresponding to the target CSE to different target CSEs.
  • the processor 51 may be a central processing unit (English: Central Processing Unit, CPU for short), and the processor 51 may also be other general-purpose processors and digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 52 can include read only memory and random access memory and provides instructions and data to the processor 51. A portion of the memory 52 may also include a non-volatile random access memory.
  • the bus system 53 may include a power bus and a control bus in addition to the data bus. And status signal bus, etc. However, for clarity of description, various buses are labeled as the bus system 53 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 51 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 52, and the processor 51 reads the information in the memory 52 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the announcement attribute sent by the sender 55 may be a first announcement attribute, where the first announcement attribute is used to indicate that the registrant CSE sends the target attribute to the target CSE.
  • the declaration attribute can be expressed in a variety of ways, such as:
  • the first announcement attribute is a list, where the list includes a first entry and a second entry, where the first entry is used to indicate the target CSE, and the second entry is used to indicate the target attribute, or the first
  • the announcement attribute includes a two-tuple consisting of a first parameter for indicating the target CSE and a second parameter for indicating the target attribute.
  • the announcement attribute sent by the sender 55 may include a second announcement attribute, a third announcement attribute, and a fourth announcement attribute, where the second announcement attribute includes indicating at least one to be announced.
  • the third announcement attribute includes to-be-advertised attribute information for indicating at least one to-be-advertised attribute
  • the second announcement attribute and the third announcement attribute are used to indicate to send to the at least one to-be-advertised CSE
  • the at least one to-be-declared attribute is used to indicate the target CSE and the target attribute corresponding to the target CSE, and the target attribute is different from the at least one to-be-declared attribute.
  • the fourth declared attribute can also be represented in a variety of forms, such as:
  • the fourth announcement attribute is a list, where the list includes a first entry for indicating the target CSE, and a second entry for indicating the target attribute, or the fourth The announcement attribute includes a two-tuple consisting of a first parameter for indicating the target CSE and a second parameter for indicating the target attribute.
  • the AE or CSE 50 of the embodiment of the present invention can announce different attributes of the same resource to different CSEs by instructing the registrant CSE to send target attributes corresponding to the target CSE to different target CSEs.
  • the receiver 54 is configured to receive attribute identification information sent by the registrant CSE, where the attribute identification information is used to indicate a location or attribute value of the target attribute on the target CSE.
  • the AE or CSE 50 may correspond to the AE or CSE 20 provided by the embodiments of the present invention, and the above and other operations and/or functions of the respective modules in the AE or CSE 50 are respectively implemented to implement FIG. 6 or FIG. 7 .
  • the corresponding process of the method 200 in the following is omitted for brevity.
  • the AE or CSE 50 of the embodiment of the present invention can implement different attributes of the same resource to different CSEs by instructing the registrant CSE to send target attributes corresponding to the target CSE to different target CSEs.
  • an embodiment of the present invention further provides a public service entity 60, which includes a processor 61, a memory 62, a bus system 63, a receiver 66, and a transmitter 65.
  • the processor 61, the memory 62, the receiver 66 and the transmitter 65 are connected by a bus system 63 for storing instructions for executing instructions stored by the memory 66 for controlling the receiver 66 to receive.
  • the CSE 60 of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • the processor 61 may be a central processing unit (English: Central Processing Unit, CPU for short), and the processor 61 may also be other general-purpose processors and digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 62 can include read only memory and random access memory and provides instructions and data to the processor 61. A portion of the memory 62 may also include a non-volatile random access memory.
  • the bus system 63 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 63 in the figure.
  • each step of the above method may be integrated by hardware in the processor 61.
  • the logic circuit or the instruction in the form of software is completed.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 62, and the processor 61 reads the information in the memory 62 and, in conjunction with its hardware, performs the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the processor 61 is configured to determine an access control policy, where the access control policy is used to indicate a set of attributes of the target resource that is allowed to access, and the processor 61 determines the target according to the access control policy. Attributes.
  • the processor 61 determines the access control policy according to an access permission attribute of the access control policy resource, where the access permission attribute includes the first parameter, the second parameter, the third parameter, and the fourth A quaternion composed of parameters, the first parameter represents an entity requesting access, the second parameter represents an access condition, the third parameter represents an attribute that is allowed to be accessed, and the fourth parameter represents an access mode, and the access permission attribute is used to indicate The entity that the request is allowed to access accesses the attribute that is allowed to access in the access mode under the access condition.
  • public service entity CSE 60 may correspond to the public service entity 30 provided by the embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the CSE 60 are respectively implemented in order to implement FIG. 8 and FIG.
  • the corresponding process of the method 300 in the following is omitted for brevity.
  • the CSE of the embodiment of the present invention can implement access control of attribute granularity by setting different access rights for different attributes under the same resource.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • system and “network” are often used interchangeably herein.
  • the term “and/or” in this context is merely an association that describes an associated object, indicating that there can be three relationships. For example, A and/or B may indicate that A exists separately, and A and B exist simultaneously, and B cases exist alone.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • B corresponding to A means that B is associated with A, and B can be determined according to A.
  • determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separated, and the 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 objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method of various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, and the like.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明实施例提供了一种机器到机器系统中宣告属性的方法、公共服务实体和应用实体。该方法包括:确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性;向该目标CSE发送该目标属性;接收该目标CSE发送的用于通知该目标属性在该目标CSE上创建完成的通知消息。本发明实施例提供的宣告属性的方法,能够实现将同一资源的不同属性宣告到不同的CSE。

Description

机器到机器系统中宣告属性的方法、公共服务实体和应用实体 技术领域
本发明涉及通信领域,尤其涉及机器到机器系统中宣告属性的方法、公共服务实体和应用实体。
背景技术
机器通信(英文:Machine-to-Machine Communications,简称:M2M)是一种以机器智能交互为核心的、网络化的应用与服务,其通过在机器内部嵌入无线或有线通信模块以及应用处理逻辑,实现无需人工干预的数据通信,以满足用户对监控、指挥调度、数据采集和测量等方面的信息化需求。机器通信的统一机器到机器(英文:one Machine to Machine,简称:oneM2M)标准组织的总体目标是建立M2M通信的业务层的开放标准,以促进建立一个集成各种设备和服务的未来网络,使得M2M业务之间实现互操作,也使得M2M应用可以共享基础业务并能独立于网络实现。
oneM2M标准采用分层的功能架构,包括应用层、公共服务层和网络服务层。其中,应用层由应用实体(英文:Application Entity,简称:AE)管理负责应用的有关操作与存储,应用层中包含的是实例化的端到端oneM2M解决方案;公共服务层由公共服务实体(英文:Common Services Entity,简称:CSE)管理负责汇聚应用层信息形成资源池同时协调底层传输网络,是oneM2M中的核心层起到平台的作用,公共服务层包括一系列实例化的公共服务功能;网络层则由底层网络服务实体(英文:Underlying Network Services Entity,简称:NSE)管理负责底层网络传输。
oneM2M系统中的层与层之间的通信通过统一的接口(也称“参考点”)完成。其中,Mca参考点是AE和CSE之间的接口,该参考点使M2M应用能够使用CSE提供的业务,并使CSE能够反向与应用通信,通过Mca参考点提供的业务取决于CSE所支持的功能,AE和CSE并不一定位于同一个实体设备上。Mcc参考点是CSE之间通信的接口,该参考点使一个CSE能使用另一个CSE所提供的功能(可能是前者自身不具备的),两个CSE之间的Mcc参考点需要被不同的M2M物理实体支持。Mcn参考点是CSE与NSE之间的接口,该参考点使得CSE能使用承载网络提供给上层的业务,其实 例化取决于底层网络提供的能力。oneM2M系统要求基于统一的接口并同时兼容不同的底层接入网络(包括但不局限于第三代合作项目伙伴(英文:3rd Generation Partnership Project,简称:3GPP),无线保真(英文:Wireless Fidelity,简称:WiFi),蓝牙(Blue Tooth))。目前M2M通信可以基于有线方式,也可基于无线方式,其中3GPP蜂窝网是广泛使用的一种方式。
oneM2M系统采用了面向资源的符合表示层状态转化(英文:Representational State Transfer,简称:REST)原则的架构,系统中的所有实体,比如AE和CSE的信息以及数据信息等都可以以资源来表示。这些资源用资源结构来描述,是独立可寻址的,具有唯一的通用资源标识符(英文:Uniform Resource Identifier,简称:URI)。每个资源有其对应的属性,用于指示该资源的相关信息。目前,oneM2M标准定义了一套宣告机制,可以将一个资源及其属性宣告到一个或多个远程CSE(Remote CSE),以使该远程CSE获知该资源及其属性的存在,并建立相应的宣告资源(announced resource)。当CSE上创建了宣告资源,外部实体就可以根据访问控制策略对该宣告资源和其包含的属性进行相应的操作。
在现有技术中,AE或CSE作为发起者(Originator)通过设置“宣告目标”(announceTo)和“宣告的属性”(announcedAttribute)两个属性通知注册者CSE(Registrar CSE)将待宣告的资源及其属性宣告到远程CSE(Remote CSE)。对不同的远程CSE而言,注册者CSE宣告的该资源的属性是相同的。因此,如果发起者需要向不同的远程CSE宣告不同的属性,现有的宣告方案是无法实现的。
发明内容
有鉴于此,本发明提出一种M2M系统中资源宣告的方案,能够将同一资源的不同属性宣告到不同的远程CSE。
第一方面,提供了一种M2M系统中宣告属性的方法,该方法包括:确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性;向该目标CSE发送该目标属性;接收该目标CSE发送的用于通知该目标属性在该目标CSE上创建完成的通知消息。
结合第一方面,在第一方面的第一种可能的实现方式中,该方法还包括:接收应用实体AE或公共服务实体CSE发送的目标资源的宣告属性,该宣告 属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息;其中,该确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性,包括:根据该宣告属性确定该目标CSE以及该目标属性。
结合第一方面,在第一方面的第二种可能的实现方式中,该确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性,包括:根据本地存储的目标资源的宣告属性,确定该目标CSE和该目标属性,其中,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
结合第一方面的第一种或第二种可能的实现方式,在第一方面的第三种可能的实现方式中,该宣告属性为第一宣告属性,该第一宣告属性用于指示向该目标CSE发送该目标属性,该第一宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第一宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第一方面的第一种或第二种可能的实现方式,在第一方面的第四种可能的实现方式中,该宣告属性包括第二宣告属性、第三宣告属性和第四宣告属性,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同,该第四宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第一方面的第一至第四种可能的实现方式中的任一种可能的实现方式,在第一方面的第五种可能的实现方式中,该方法还包括:创建或更新包括该宣告属性的目标资源。
结合第一方面的第一至第五种可能的实现方式中的任一种可能的实现方式,在第一方面的第六种可能的实现方式中,该方法还包括:接收该目标CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标 CSE上的位置或属性值;根据该属性标识信息,更新该目标资源的该宣告属性。
结合第一方面的第六种可能的实现方式,在第一方面的第七种可能的实现方式中,该方法还包括:向AE或CSE发送该属性标识信息。
第二方面,提供了一种M2M系统中宣告属性的方法,该方法包括:确定待宣告的目标CSE以及与该目标CSE对应的目标属性;向注册者CSE发送目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
结合第二方面,在第二方面的第一种可能的实现方式中,该宣告属性为第一宣告属性,该第一宣告属性用于指示该注册者CSE向该目标CSE发送该目标属性,该第一宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第一宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第二方面,在第二方面的第二种可能的实现方式中,该宣告属性包括第二宣告属性、第三宣告属性和第四宣告属性,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同,该第四宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第二方面、第二方面的第一或第二种可能的实现方式,在第二方面的第三种可能的实现方式中,该方法还包括:接收注册者CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值。
第三方面,提供了一种M2M系统中访问资源的方法,该方法包括:接收AE或CSE发送的访问请求,该访问请求用于请求对目标资源进行访问;确定该目标资源的允许访问的目标属性;对该目标属性进行访问控制。
结合第三方面,在第三方面的第一种可能的实现方式中,该确定该目标资源的允许访问的目标属性,包括:确定访问控制策略,该访问控制策略用于指示该目标资源的允许访问的属性集合;根据该访问控制策略,确定该目标属性。
结合第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,该确定该访问控制策略,包括:根据访问控制策略资源的访问权限属性,确定该访问控制策略,其中,该访问权限属性包括由第一参数、第二参数、第三参数、第四参数组成的四元组,该第一参数表示请求访问的实体,该第二参数表示访问条件,该第三参数表示允许访问的属性,该第四参数表示访问方式,该访问权限属性用于指示允许该请求访问的实体在该访问条件下以该访问方式对该允许访问的属性进行访问。
第四方面,提供了一种公共服务实体CSE,该CSE包括:确定模块,用于确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性;发送模块,用于向该确定模块确定的该目标CSE发送该确定模块确定的该目标属性;接收模块,用于接收该目标CSE发送的用于通知该目标属性在该目标CSE上创建完成的通知消息。
结合第四方面,在第四方面的第一种可能的实现方式中,该接收模块还用于接收应用实体AE或公共服务实体CSE发送的目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息;该确定模块具体用于,根据该接收模块接收的该宣告属性确定该目标CSE以及该目标属性。
结合第四方面,在第四方面的第二种可能的实现方式中,该确定模块具体用于,根据本地存储的目标资源的宣告属性,确定该目标CSE和该目标属性,其中,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
结合第四方面的第一种或第二种可能的实现方式,在第四方面的第三种可能的实现方式中,该宣告属性为第一宣告属性,该第一宣告属性用于指示向该目标CSE发送该目标属性,该第一宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第一宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第四方面的第一种或第二种可能的实现方式,在第四方面的第四种可能的实现方式中,该宣告属性包括第二宣告属性、第三宣告属性和第四宣告属性,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同,该第四宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第四方面的第一至第四种可能的实现方式中的任一种可能的实现方式,在第四方面的第五种可能的实现方式中,该CSE还包括:创建模块,用于创建包括该宣告属性的目标资源;更新模块,用于更新包括该宣告属性的目标资源。
结合第四方面或第四方面的第一至第五种可能的实现方式中的任一种可能的实现方式,在第四方面的第六种可能的实现方式中,该接收模块还用于,接收该目标CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值;该更新模块还用于,根据该接收模块接收的该属性标识信息,更新该目标资源的该宣告属性。
结合第四方面的第六种可能的实现方式,在第四方面的第七种可能的实现方式中,该发送模块还用于,向AE或CSE发送该属性标识信息。
第五方面,提供了一种应用实体或公共服务实体,该应用实体或公共服务实体包括:确定模块,用于确定待宣告的目标CSE以及与该目标CSE对应的目标属性;发送模块,用于向注册者CSE发送目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
结合第五方面,在第五方面的第一种可能的实现方式中,该宣告属性为第一宣告属性,该第一宣告属性用于指示该注册者CSE向该目标CSE发送该目标属性,该第一宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第一宣告属性包括由 第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第五方面,在第五方面的第二种可能的实现方式中,该宣告属性包括第二宣告属性、第三宣告属性和第四宣告属性,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同,该第四宣告属性包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
结合第五方面、第五方面的第一或第二种可能的实现方式,在第五方面的第三种可能的实现方式中,该方法还包括:接收模块,用于接收注册者CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值。
第六方面,提供了一种公共服务实体CSE,该CSE包括:接收模块,用于接收AE或CSE发送的访问请求,该访问请求用于请求对目标资源进行访问;确定模块,用于确定该目标资源的允许访问的目标属性;控制模块,用于对该确定模块确定的该目标属性进行访问控制。
结合第六方面,在第六方面的第一种可能的实现方式中,该确定模块具体用于,确定访问控制策略,该访问控制策略用于指示该目标资源的允许访问的属性结合;根据该访问控制策略,确定该目标属性。
结合第六方面的第一种可能的实现方式,在第六方面的第二种可能的实现方式中,该确定模块还具体用于,根据访问控制策略资源的访问权限属性确定该访问控制策略,其中,该访问权限属性包括由第一参数、第二参数、第三参数、第四参数组成的四元组,该第一参数表示请求访问的实体,该第二参数表示访问条件,该第三参数表示允许访问的属性,该第四参数表示访问方式,该访问权限属性用于指示允许该请求访问的实体在该访问条件下以该访问方式对该允许访问的属性进行访问。
基于上述方案,本发明实施例的机器到机器系统中宣告属性的方法、公 共服务实体和应用实体,通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以解决现有技术中只能对所有待宣告CSE发送相同的待宣告属性的问题,从而实现将同一资源的不同属性宣告到不同的CSE。
附图说明
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获取其他的附图。
图1是根据本发明实施例的机器到机器系统的示意性框架图。
图2是根据本发明实施例的机器到机器系统中宣告属性的方法的示意性流程图。
图3是根据本发明实施例的机器到机器系统中宣告属性的方法的另一示意性流程图。
图4是根据本发明实施例的机器到机器系统中宣告属性的方法的再一示意性流程图。
图5是根据本发明实施例的机器到机器系统中宣告属性的方法的再一示意性流程图。
图6是根据本发明另一实施例的机器到机器系统中宣告属性的方法的示意性流程图。
图7是根据本发明另一实施例的机器到机器系统中宣告属性的方法的另一示意性流程图。
图8是根据本发明实施例的机器到机器系统中访问资源的方法的示意性流程图。
图9是根据本发明实施例的机器到机器系统中访问资源的方法的另一示意性流程图。
图10是根据本发明一个实施例的机器到机器系统中宣告属性的方法的示意性流程图。
图11是根据本发明一个实施例的机器到机器系统中宣告属性的方法的示意性流程图。
图12是根据本发明一个实施例的机器到机器系统中宣告属性的方法的 示意性流程图。
图13是根据本发明一个实施例的机器到机器系统中宣告属性的方法的示意性流程图。
图14是根据本发明一个实施例的机器到机器系统中访问资源的方法的示意性流程图。
图15是根据本发明一个实施例的公共服务实体的示意性框图。
图16是根据本发明一个实施例的公共服务实体的另一示意性框图。
图17是根据本发明一个实施例的应用实体或公共服务实体的示意性框图。
图18是根据本发明一个实施例的应用实体或公共服务实体的示意性框图。
图19是根据本发明一个实施例的公共服务实体的示意性框图。
图20是根据本发明一个实施例的公共服务实体的示意性框图。
图21是根据本发明一个实施例的应用实体或公共服务实体的示意性框图。
图22是根据本发明一个实施例的公共服务实体的示意性框图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。
图1示出了根据本发明实施例的机器到机器系统的示意性框架图。如图1所示,该机器到机器系统以oneM2M系统为例。该oneM2M系统分为应用层、公共服务层以及网络服务层。其中,应用层由应用实体(英文:Application Entity,简称:AE)管理负责应用的有关操作与存储,应用层中包含的是实例化的端到端oneM2M解决方案。公共服务层由公共服务实体(英文:Common Services Entity,简称:CSE)管理负责汇聚应用层信息形成资源池,同时协调底层网络传输,是oneM2M中的核心层起到平台的作用,公共服务层包括一系列实例化的公共服务功能。网络层由网络服务实体(英文: Network Services Entity,简称:NSE)管理负责底层网络传输,并向公共服务层提供底层网络可以提供的能力。
该oneM2M体系下层与层间的参考点(即接口)有3种,其中,Mca:AE与CSE之间的接口,负责AE到CSE或CSE到AE间的通信;Mcc/Mcc’:两个CSE间的接口,负责CSE间的通信;Mcn:CSE与NSE之间的接口,负责CSE到NSE或NSE到CSE间的通信。还有一个Mch参考点(图中并未画出),是oneM2M系统与计费系统间的接口。
该oneM2M系统构架主要分为两个域:基础设施域(英文:Infrastructure Domain,简称:IN)以及场域(Field Domain),其中场域包括中间节点(英文:Middle Node,简称:MN)、应用服务节点(Application Service Node,简称:ASN)以及应用专用节点(英文:Application Dedicated Node,简称:AND),基础设施域包括公共节点。其中除ADN节点只包含AE外其他节点都包含CSE。
应理解,本发明实施例仅以应用于oneM2M系统为例进行说明,但本发明并不限于此。还应理解,在本发明实施例中,该oneM2M系统中所有的实体,比如AE和CSE的信息以及数据信息等都可以以资源来表示。资源结构则详细定义了资源的表示方式,同时定义了获取这些资源的方式。这些资源都是独立可寻址的。本发明实施例的宣告属性的方法,适用于所有需要宣告属性的场景。本发明实施例的访问资源的方法,适用于所有需要访问资源的场景。
还应理解,在本发明实施例中,创建资源可以认为是创建不包括属性的资源,也可以认为是创建包括属性的资源,更新资源可以认为是在该资源下创建一个属性,也可以认为是更新该资源下的一个属性的属性值,还可以是删除该资源下的一个属性,并且,在本发明实施例中,“创建”属性和“更新”属性经常可以互换使用,“存储”和“创建”乃至“更新”也经常可以互换使用,资源下的属性、资源的属性以及资源包括的属性表示的是同一个含义,资源或属性可以指代已经被创建(或存储)的信息,也可以指代已经被确定但是尚未被创建(或存储)的信息,本发明对此并不限定。
还应理解,在本发明实施例中,创建(或更新)资源可以认为是发送创建(或更新)请求消息请求在其它实体上创建(或更新)资源,也可以认为是根据创建(或更新)请求消息在本地创建(或更新)资源,本发明对此并 不限定。
图2示出了根据本发明实施例的机器到机器系统中宣告属性的方法100的示意性流程图。该方法100可以由公共服务实体CSE执行。如图2所示,该方法包括:
S110,确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性;
S120,向该目标CSE发送该目标属性;
S130,接收该目标CSE发送的用于通知该目标属性在该目标CSE上创建完成的通知消息。
具体而言,执行者CSE确定待宣告的目标CSE以及与该目标CSE对应的目标属性,并向该目标CSE发送该目标属性。该目标CSE收到该目标属性之后,向该执行者CSE发送用于通知该目标属性在该目标CSE上创建完成的通知消息。
因此,本发明实施例的机器到机器系统中宣告属性的方法,执行者CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
应理解,在本发明实施例中,该执行者CSE可以是待宣告资源的发起者AE或CSE所注册的CSE,为便于区分,在后文中,我们不妨称之为注册者CSE,或者原资源(original resource)的接收者CSE(hosting CSE)。应理解,该注册者CSE仅是一个称谓,和该发起者AE或CSE是否在其上注册无直接关系。该待宣告资源在文中也称原资源或目标资源(针对涉及属性宣告的部分),该待宣告资源可以是已经在该注册者CSE上创建的资源,也可以是在执行宣告的同时创建的资源,还可以是在宣告之后才创建的资源。该待宣告资源可以是<AE>资源,也可以是<Container>资源,还可以是其它需要宣告的资源,本发明并不限定。
还应理解,在本发明实施例中,该注册者CSE可以和该发起者AE或CSE位于同一个实体设备上,也可以和该发起者AE或CSE位于不同的实体设备上,例如,该发起者AE可以和该注册者CSE位于同一个应用服务节点,或者,该发起者AE位于应用专用节点而该注册者CSE位于中间节点,本发明并不限定。该目标CSE可以是该发起者AE或CSE未注册的CSE,该目标CSE可以是远程CSE,该目标CSE可以位于场域,也可以位于基础设施 域,本发明并不限定。
在本发明实施例中,注册者CSE确定待宣告到的目标CSE,并确定与该目标CSE对应的待宣告的资源的目标属性。可以理解,该目标属性的属性值对于该注册者CSE来说是可获知的,或者,该目标属性的属性值对于该目标CSE来说是可获知的,例如,该注册者CSE上已创建了包括该目标属性的属性值的待宣告资源,或者,该注册者CSE收到包括该属性值的信息,但本发明并不限于此。该注册者CSE可以将用于指示该目标属性的标识信息例如属性名发送给该目标CSE,再通过更新请求消息给该目标属性赋值,也可以在获知该目标属性的属性值之后,将该目标属性的属性名和属性值一起发送给该目标CSE,该注册者CSE还可以仅向该目标CSE发送该目标属性的标识信息,该目标CSE通过其它途径给该目标属性赋值,本发明对此不限定。
在本发明实施例中,该目标CSE在收到该目标属性之后,可以根据该目标属性创建一个和原资源对应的包括该目标属性的宣告资源(在远程CSE上创建的与被宣告的原资源相关的资源,该资源保持原资源的部分特性),也可以根据该目标属性对已创建的该宣告资源进行更新,例如,在已创建的该宣告资源下创建该目标属性,但本发明并不限于此。在创建或更新包括该目标属性的该宣告资源之后,该目标CSE可以向该注册者CSE发送用于通知该目标属性在该目标CSE上创建完成的通知消息。优选地,该通知消息可包括该目标属性的地址信息例如URI,以便该注册者CSE获知该目标属性在该目标CSE上的位置,或者该通知消息可包括该目标CSE上的该目标属性的属性名和/或属性值,以便该注册者CSE确认该目标属性宣告成功,但本发明并不限定。
应理解,在本发明实施例中,该目标CSE可以是一个,也可以是多个;该目标属性可以是一个,也可以是多个。例如,当待宣告的资源为<AE>资源时,该目标属性可以包括以下属性中的一个或多个:“应用名”(appName)、“应用标识”(App-ID)、“应用实体标识”(AE-ID)、“访问点”(pointOfAccess)、“本体参考”(ontologyRef)、“节点链接”(nodeLink);当待宣告的资源为<container>资源时,该目标属性可以包括以下属性中的一个或多个:“状态标签”(stateTag)、“最大实例数量”(maxNrOfInstances)、“最大的字节大小”(maxByteSize)、“实例的最大实效”(maxInstanceAge)、“当前实例的数量” (CurrentNrOfInstances)、“当前的字节大小”(currentByteSize)、“位置标识”(locationID)、“本体参考”(ontologyRef),但本发明并不限于此。
在本发明实施例中,该目标属性一般为可选属性(英文:optional announced attribute,简称:OA)。可选地,该目标属性可以和其它属性一起发送,也可以单独发送,例如,在S120中,该目标属性可以和强制属性(英文:mandatory announced attribute,简称:MA)放在一个消息(例如用于创建宣告资源的创建请求消息)中发送,也可以在强制属性之外用另一个消息(例如用于更新宣告资源的更新请求消息)发送,但本发明并不限于此。
应注意,在本发明实施例中,对于不同的目标CSE,该注册者CSE发送的目标属性可以是相同的,也可以是不同的。例如,当该待宣告资源为<AE>资源时,该注册者CSE可以对一个目标CSE只发送其应用ID,对另一个目标CSE发送应用ID和应用名,或者,注册者CSE可以对一个目标CSE发送应用ID和应用名,对另一个目标CSE发送应用实体ID和pointOfAccess,但本发明并不限于此。
因此,本发明实施例的机器到机器系统中宣告属性的方法,注册者CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,可选地,如图3所示,该方法100还包括:
S140,接收应用实体AE或公共服务实体CSE发送的目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息;
其中,该S110包括:
S111,根据该宣告属性确定该目标CSE以及该目标属性。
具体而言,在本发明实施例中,目标资源的发起者AE或CSE向注册者CSE发送该目标资源的宣告属性,该宣告属性包括用于指示该待宣告到的目标CSE的标识信息和用于指示该待宣告的该目标属性的标识信息。该注册者CSE根据该宣告属性确定该目标CSE和该目标属性。
在S140中,可选地,该用于指示该目标CSE的标识信息可以是该目标CSE的CSE-ID或URI,当该目标CSE上已建立与该目标资源对应的宣告资源时,该标识信息还可以是该宣告资源的URI;该用于指示该目标属性的标识信息可以是该目标属性的属性名,也可以是该目标属性的属性名和属性值; 但本发明并不限于此。
在本发明实施例中,该注册者CSE根据该宣告属性包括的用于指示该目标CSE的标识信息确定该目标CSE,根据该用于指示该目标属性的标识信息确定该目标属性,并将该目标属性发送给该目标CSE。
因此,本发明实施例的机器到机器系统中宣告属性的方法,注册者CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,可选地,如图4所示,该S110包括:
S112,根据本地存储的目标资源的宣告属性,确定该目标CSE和该目标属性,其中,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
具体而言,在本发明实施例中,该注册者CSE可以根据本地存储的目标资源下的宣告属性,确定待宣告的目标CSE和待宣告的目标属性,并向该目标CSE发送该目标属性。该目标资源下的宣告属性中包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息,并且该目标CSE和该目标属性对应。该宣告属性可以根据本地策略创建或更新。
因此,本发明实施例的机器到机器系统中宣告属性的方法,注册者CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,该目标资源的宣告属性用于指示待宣告的目标CSE和与该目标CSE对应的待宣告的目标属性。可选地,该宣告属性可以是第一宣告属性(不妨称之为“宣告要素”(announceElement)属性),该第一宣告属性可用于指示向该目标CSE发送需要向该目标CSE宣告的一个或多个可选属性。可以理解,该第一宣告属性可用于替代现有技术中的announceTo和announcedAttribute属性,并且,对不同的目标CSE来说,该announceElement属性指示的目标属性可以完全相同,也可以部分相同,还可以完全不同,但本发明并不限于此。本发明实施例的该第一宣告属性还适用于仅向待宣告CSE宣告强制属性的情形,相应地,对于该不需宣告可选属性的待宣告CSE来说,其对应的目标属性为“无”。
该第一宣告属性的表现形式可以有多种,例如:
该第一宣告属性可以是一个列表,该列表包括第一表项和第二表项,该 第一表项用于指示该待宣告的目标CSE,该第二表项用于指示需要宣告给该目标CSE的目标属性,具体地,该第一表项可以设置为该目标CSE的标识信息,该第二表项可以设置为该目标属性的标识信息;或
该第一宣告属性可以是一个由第一参数和第二参数组成的二元组,该第一参数(不妨称之为“宣告目标CSE”(announceTargetCSE))用于指示该待宣告的目标CSE,该第二参数(不妨称之为“宣告属性名称”(announceAtrributeName))用于指示该目标属性,具体地,该第一参数可以设置为该目标CSE的标识信息,该第二参数可以设置为该目标属性的标识信息。
应理解,该第一表项或第二表项可以是一个,也可以是多个,该第一参数或第二参数,可以是一个,也可以是多个,但本发明并不限于此。在本发明实施例中,可选地,对于不需要宣告目标属性的待宣告CSE,该第一表项或第一参数可用于指示该CSE,相应地,该第二表项或第二参数可以为空,也可以为“无”,本发明并不限定。
可选地,作为另一个实施例,该宣告属性还可以同时包括第二宣告属性、第三宣告属性和第四宣告属性,其中,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同,简言之,该第二宣告属性可以是现有技术中的announceTo属性,该第三宣告属性可以是现有技术中的announcedAttribute属性,
该第四宣告属性(不妨称之为“宣告特殊项”(announceSpecial)属性)用于指示该目标CSE和与该目标CSE对应的该目标属性。一般而言,该目标属性和该第三宣告属性中指示的该至少一个待宣告属性不同,例如,对于一个特定的目标CSE来说,其对应的目标属性集合可以是该第三宣告属性所指示的待宣告属性集合的真子集,也可以是该第三宣告属性所指示的待宣告属性集合的超集,还可以和该第三宣告属性所指示的待宣告属性集合无交集,可选地,当该目标属性集合和该第三宣告属性所指示的待宣告属性集合无交集时,该第二宣告属性所指示的待宣告CSE可以包括该目标CSE(用 于指示同时向该目标CSE发送该目标属性和该第三宣告属性所指示的该至少一个待宣告属性),但本发明并不限于此。
应理解,在本发明实施例中,该第四宣告属性和该第二宣告属性可以脱离于该第三宣告属性存在,此时,该第二宣告属性用于指示向其所指示的待宣告属性宣告强制属性,该第四宣告属性用于指示向目标CSE发送与该目标CSE对应的目标属性;当该第二宣告属性、第三宣告属性、第四宣告属性同时存在时,该第四宣告属性可用于指示向特定的CSE仅宣告强制属性,即对该特定的CSE来说该对应的目标属性为“无”,但本发明并不限于此。简言之,该announceSpecial属性可认为是对现有技术的annouceTo属性和announcedAttribute属性的一个补充,用以实现向不同的CSE宣告同一资源的不同属性。
该第四宣告属性的表现形式也可以有多种,例如:
该第四宣告属性可以是一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,具体地,该第一表项可以设置为该目标CSE的标识信息,该第二表项可以设置为该目标属性的标识信息;或
该第二宣告属性可以是一个由第一参数和第二参数组成的二元组,该第一参数用于指示该待宣告的目标CSE,该第二参数用于指示该目标属性,具体地,该第一参数可以设置为该目标CSE的标识信息,该第二参数可以设置为该目标属性的标识信息。
应理解,该第一表项或第二表项可以是一个,也可以是多个,该第一参数或第二参数,可以是一个,也可以是多个,但本发明并不限于此。在本发明实施例中,可选地,对于不需要宣告目标属性的待宣告CSE,该第一表项或第一参数可用于指示该CSE,可选地,该第二表项或第二参数可以为空,也可以为“无”,本发明并不限定。
因此,本发明实施例的机器到机器系统中宣告属性的方法,注册者CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,可选地,如图5所示,该方法100还包括:
S150,创建或更新包括该宣告属性的目标资源。
具体而言,注册者CSE可以在本地创建或更新包括该宣告属性的目标 资源。该目标资源可以在执行宣告之前创建,也可以在执行宣告之后创建,该宣告属性可以在执行宣告之前创建,也可以在执行宣告之后创建,当该目标资源已经创建时,该注册者CSE可以对该目标资源进行更新,例如在该目标资源下创建或更新该宣告属性,但本发明并不限于此。
因此,本发明实施例的机器到机器系统中宣告属性的方法,注册者CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,优选地,如图5所示,该方法100还包括:
S160,接收该目标CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值;
S170,根据该属性标志,更新该目标资源的该宣告属性。
具体而言,该目标CSE在收到该目标属性之后,可以将该目标属性作为本地创建的宣告资源的一个属性置于该宣告资源之下,并向该注册者CSE发送该宣告资源下的该目标属性的属性标识信息,该属性标识信息可以是地址信息例如URI,用于指示该目标属性在该目标CSE上的位置,或者该属性标识信息可以是该目标CSE上的该目标属性的属性名和属性值,以便该注册者CSE确认该目标属性宣告无误,但本发明并不限于此。该注册者CSE在收到该属性标识信息之后,根据该属性标识信息对该目标资源的宣告属性进行相应的更新。在本发明实施例中,可选地,该属性标识信息可以是该宣告资源下的该目标属性的URI和/或属性值,该注册者CSE在收到该URI和/或属性值之后,可以对该目标资源进行相应的更新,例如将该URI和/或属性值更新到相应的宣告属性中,但本发明并不限于此。
应理解,在本发明实施例中,该地址信息和/或属性值仅为该属性标识信息的一个具体举例,该属性标识信息还可以是其它信息。例如,在本发明实施例中,该目标属性可以和该宣告资源一起被创建,该目标CSE在创建该宣告资源和该目标属性之后,可以将该宣告资源的标识信息例如URI或资源ID(resource-ID)和该宣告资源下的该目标属性的地址信息例如URI和/或属性值一起发送给该注册者CSE;该注册者CSE在接收该宣告资源的标识信息和该目标属性的地址信息和/或属性值之后,可以对该目标资源进行相应的更新。
因此,本发明实施例的机器到机器系统中宣告属性的方法,注册者CSE 通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,可选的,如图5所示,该方法100还包括:
S180,向AE或CSE发送该属性标识信息。
具体而言,该注册者CSE在接收该目标CSE发送的该属性标识信息之后,可以将该属性标识信息,例如该宣告资源下的该目标属性的URI和/或属性值发送给该目标资源的发起者AE或CSE,该AE或CSE请求创建的该目标资源可以包括该宣告属性,也可以不包括该宣告属性,本发明并不限定。
因此,本发明实施例的机器到机器系统中宣告属性的方法,注册者CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
以上从注册者CSE的角度描述了根据本发明实施例的机器到机器系统中宣告属性的方法,下面将从待宣告资源的发起者AE或CSE的角度描述根据本发明另一实施例的机器到机器系统中宣告属性的方法200。如图6所示,该方法的执行主体可以是AE,也可以是CSE,该方法200包括:
S210,确定待宣告的目标CSE以及与该目标CSE对应的目标属性;
S220,向注册者CSE发送目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
具体而言,在本发明实施例中,该目标资源(即待宣告资源)的发起者AE或CSE确定待宣告的目标CSE以及与该目标CSE对应的目标属性,并向注册者CSE发送该目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。该注册者CSE接到该宣告属性之后,可以根据该宣告属性将该目标属性宣告给该目标CSE。
因此,本发明实施例的机器到机器系统中宣告属性的方法,发起者AE或CSE通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
应理解,在本发明实施例中,该发起者AE或CSE向该注册者CSE发送该宣告属性的方式可以是多种多样的。例如,该发起者AE或CSE可以通过用于创建目标资源的创建请求消息发送该宣告属性,也可以通过用于更新该目标资源的更新请求消息发送该宣告属性。具体地,当注册者CSE上尚未创建该目标资源时,发起者AE或CSE可以通过向注册者CSE发送创建 请求消息,请求注册者CSE创建包括该宣告属性的目标资源;当注册者CSE上已创建该目标资源时,发起者AE或CSE可以通过向注册者CSE发送更新请求消息,请求注册者CSE创建或更新该目标资源下的宣告属性。可以理解,该创建请求消息或该更新请求消息应包括该宣告属性。
在本发明实施例中,可选地,该宣告属性可以是第一宣告属性,该第一宣告属性可用于指示该注册者CSE向该目标CSE发送需要向该目标CSE宣告的所有可选属性。因此,对不同的目标CSE来说,该目标属性可以完全相同,也可以部分相同,还可以完全不同,本发明对此并不限定。
该第一宣告属性的表现形式可以有多种,例如:
该第一宣告属性可以是一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该待宣告的目标CSE,该第二表项用于指示需要宣告给该目标CSE的目标属性,具体地,该第一表项可以设置为该目标CSE的标识信息,该第二表项可以设置为该目标属性的标识信息;或
该第一宣告属性可以是一个由第一参数和第二参数组成的二元组,该第一参数用于指示该待宣告的目标CSE,该第二参数用于指示该目标属性,具体地,该第一参数可以设置为该目标CSE的标识信息,该第二参数可以设置为该目标属性的标识信息。
应理解,该第一表项或第二表项可以是一个,也可以是多个,该第一参数或第二参数,可以是一个,也可以是多个,但本发明并不限于此。在本发明实施例中,可选地,对于不需要宣告目标属性的待宣告CSE,该第一表项或第一参数可用于指示该CSE,相应地,该第二表项或第二参数可以为空,也可以为“无”,本发明并不限定。
可选地,作为另一个实施例,该宣告属性还可以同时包括第二宣告属性、第三宣告属性和第四宣告属性,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,简言之,该第二宣告属性可以是现有技术中的announceTo属性,该第三宣告属性可以是现有技术中的announceAttribute属性,
该第四宣告属性(不妨称之为announceSpecial)用于指示该目标CSE和与该目标CSE对应的该目标属性。一般而言,该目标属性和该第三宣告属 性中指示的该至少一个待宣告属性不同,但本发明并不限定。该announceSpecial属性可认为是对现有技术的announceTo属性和announcedAttribute属性的一个补充,用以指示向不同的CSE宣告同一资源的不同属性。
该第四宣告属性的表现形式也可以有多种,例如:
该第四宣告属性可以是一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,具体地,该第一表项可以设置为该目标CSE的标识信息,该第二表项可以设置为该目标属性的标识信息;或
该第二宣告属性可以是一个由第一参数和第二参数组成的二元组,该第一参数用于指示该待宣告的目标CSE,该第二参数用于指示该目标属性,具体地,该第一参数可以设置为该目标CSE的标识信息,该第二参数可以设置为该目标属性的标识信息。
应理解,该第一表项或第二表项可以是一个,也可以是多个,该第一参数或第二参数,可以是一个,也可以是多个,但本发明并不限于此。在本发明实施例中,对于不需要宣告目标属性的待宣告CSE,该第一表项或第一参数可用于指示该CSE,相应地,该第二表项或第二参数可以为空,也可以为“无”,本发明并不限定。
因此,本发明实施例的机器到机器系统中宣告属性的方法,发起者AE或CSE通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
可选地,在本发明实施例中,如图7所示,该方法200还包括:
S230,接收注册者CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值。
具体而言,该注册者CSE根据该宣告属性向该目标CSE发送该目标属性,并接收该目标CSE返回的属性标识信息,该属性标识信息可以是该目标CSE上的该目标属性的地址信息例如URI,用于指示该目标属性在该目标CSE上的位置,或者该属性标识信息可以是该目标CSE上的该目标属性的属性值,用于确认该目标属性宣告无误,但本发明并不限于此。该注册者CSE可以将该属性标识信息发送给该发起者AE或CSE。
因此,本发明实施例的机器到机器系统中宣告属性的方法,发起者AE 或CSE通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
上文描述了根据本发明实施例的机器到机器系统中宣告属性的方法100和200,下面将描述根据本发明实施例的机器到机器系统中访问属性的方法300。如图8所示,该方法300可以由CSE执行,该方法300包括:
S310,接收AE或CSE发送的访问请求,该访问请求用于请求对目标资源进行访问;
S320,确定该目标资源的允许访问的目标属性;
S330,对该目标属性进行访问控制。
具体而言,执行者CSE接收AE或CSE发送的访问请求,该访问请求用于请求该执行者CSE对目标资源进行访问,执行者CSE确定该目标资源的允许访问的目标属性,并对允许访问的目标属性进行访问控制。
因此,本发明实施例的机器到机器系统中访问属性的方法,通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
应理解,在本发明实施例中,该执行者CSE可以是待访问资源的接收者CSE,在后文中我们不妨称之为接收者CSE,该待访问资源即为该方法300中的目标资源,该目标资源可以是原资源,例如上文中的<AE>或<Container>资源,也可以是宣告资源(在远程CSE上创建的与被宣告的原资源相关的资源,该资源保持原资源的部分特性),例如<AEAnnc>或<ContainerAnnc>资源(“Annc”表示该资源是一个宣告资源,<AEAnnc>是与<AE>资源相关的宣告资源,<ContainerAnnc>是与<Container>资源相关的宣告资源),还可以是其它可供访问的资源,本发明对此并不限定。该访问请求所请求的访问方式可以有多种(包括但不限于现有标准中的“创建”、“获取”、“更新”、“删除”),例如,该访问请求可以是用于请求获取目标资源的获取请求,也可以是用于请求更新目标资源的更新请求,还可以是其它方式的访问请求,本发明并不限定。该S330包括根据该访问请求对该目标属性进行相应的操作,例如,当该访问请求为“获取”请求时,可以将该目标属性发送给该AE或CSE,当该访问请求为“更新”请求时,可以根据该访问请求更新该目标属性,但本发明并不限于此。
在本发明实施例中,可选地,如图9所示,该S320包括:
S321,确定访问控制策略,该访问控制策略用于指示该目标资源的允许 访问的属性集合;
S322,根据该访问控制策略,确定该目标属性。
具体而言,该接收者CSE确定访问控制策略,该访问控制策略用于指示该目标资源的允许访问的属性集合。对于不同的访问请求,该访问控制策略指示的该属性集合可以相同,也可以不同,该属性集合可以包括该目标资源的所有属性,也可以只包括该目标资源的部分属性,该属性集合还可以是空集,本发明对此并不限定。可以理解,最后确定的该目标属性应落在该允许访问的属性集合内。换言之,该属性集合之外的属性被禁止访问。
因此,本发明实施例的机器到机器系统中访问属性的方法,通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
在本发明实施例中,可选地,该S321包括:
根据访问控制策略资源的访问权限属性,确定该访问控制策略,
其中,该访问权限属性包括由第一参数、第二参数、第三参数、第四参数组成的四元组,该第一参数表示请求访问的实体,该第二参数表示访问条件,该第三参数表示允许访问的属性,该第四参数表示访问方式,该访问权限属性用于指示允许该请求访问的实体在该访问条件下以该访问方式对该允许访问的属性进行访问。
具体而言,该接收者CSE在接到AE或CSE的访问请求之后,通过查询访问控制策略资源下的访问权限属性,确定该访问控制策略,进而确定该目标属性。该访问权限属性用于指示允许特定实体在特定访问条件下以特定的访问方式对特定的目标属性进行访问。该访问权限属性可以是一个四元组,该四元组的四个参数分别对应于该特定实体、该特定访问条件、该特定目标属性、该特定访问方式。当该AE或CSE发送的该访问请求同时满足该四元组限定的条件时,该接收者CSE可以根据该访问请求对该目标属性进行相应的操作。
应理解,在本发明实施例中,该请求访问的实体可以是AE,也可以是CSE(包括外部CSE和该接收者CSE);该访问条件可以是时间信息,也可以是其它信息;该访问方式可以是“创建”、“获取”、“更新”、“删除”等,但本发明并不限于此。
简言之,本发明实施例可看作是将现有技术中的访问控制策略资源下的访问权限属性(privileges属性和selfPrivileges属性)进行了细化,使其分别 由原来的三元组扩展成了一个四元组,该第一参数可看做是现有技术中的“访问控制发起者”(accessControlOriginators),该第二参数可看做是现有技术中的“访问控制策略环境”(accessControlContexts),该第四参数可看做是现有技术中的“访问控制策略操作”(accessControlOperations),该第三参数为本发明实施例新定义的参数,不妨称之为“访问控制策略属性”(accessControlAttributes),可以通过该第三参数列出允许访问的属性,例如列出该允许访问的属性的标识信息,该第三参数用于实现资源粒度下的访问控制。应理解,在本发明实施例中,该第三参数列出的属性可以是一个,也可以是多个,还可以是“无”(“null”),表示不允许访问该资源下的任何属性,还可以是“全部”(“all”),表示该资源下的任何属性都可以被访问,但本发明并不限于此。
还应理解,在本发明实施例中,该访问控制策略资源的该访问权限属性对该接收者CSE来说是可获知的,该访问控制策略资源可以存储在本地,也可以存储在外部实体例如发起者CSE上,该接收者CSE可以通过该目标资源下的“访问控制策略标识”(accessControlPolicyIDs)属性来获取该访问控制策略资源所在的位置,进而根据该访问控制策略资源的访问权限属性确定该访问控制策略,但本发明并不限于此。该访问控制策略资源下的该访问权限属性可以由该接收者CSE决策并创建,也可以由外部实体例如该目标资源的发起者AE或CSE来决策但是由该接收者CSE来创建,但本发明并不限于此。本发明对该访问权限属性的决策者和创建者均不限定。
因此,本发明实施例的机器到机器系统中访问属性的方法,通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
上文中结合图2至图7,分别从注册者CSE和发起者AE或CSE的角度描述了根据本发明实施例的机器到机器系统中宣告属性的方法,从接收者CSE的角度描述了根据本发明实施例的机器到机器系统中访问属性的方法。
下面将结合具体的例子从AE和CSE交互的角度详细描述根据本发明实施例的机器到机器系统中宣告属性的方法,以及机器到机器系统中访问属性的方法。应注意,这些例子只是为了帮助本领域技术人员更好地理解本发明实施例,而非限制本发明实施例的范围。
图10是根据本发明一个实施例的机器到机器系统中宣告属性的方法的示意图。
如图10所示,该方法由发起者AE或CSE触发宣告,在本发明实施例中,以AE作为发起者为例;该待宣告的目标资源以<AE>为例。
在S410中,发起者AE向注册者CSE发送用于创建<AE>资源的创建请求消息,该创建请求消息中包含该<AE>资源的宣告属性,例如announceElement属性。该announceElement属性用于指示将“AE-ID”和“ontologyRef”两个属性宣告到远程CSE1,将“AE-ID”和“appName”两个属性宣告到远程CSE2。
在S420中,注册者CSE根据该创建请求消息创建<AE>资源,并将该announceElement属性作为<AE>资源的属性。
在S431和S432中,注册者CSE分别向远程CSE1和远程CSE2发送创建请求消息,将<AE>资源和该资源下的所有强制属性宣告到远程CSE1与远程CSE2,同时,根据announceElement属性,在S431中,注册者CSE将“AE-ID”与“ontologyRef”两个属性宣告到远程CSE1,在S432中,注册者CSE将“AE-ID”与“appName”两个属性宣告到远程CSE2。
在S441中,远程CSE1创建<AE1Annc>资源,并在该资源下创建所有强制属性,和“AE-ID”、“ontologyRef”两个属性。在S442中,远程CSE2创建<AE2Annc>资源,并在该资源下创建所有强制属性,和“AE-ID”、“appName”两个属性。
在S451中,远程CSE1将所创建的<AE1Annc>的URI以及其下的所有强制属性和“AE-ID”、“ontologyRef”两个属性的URI发送给注册者CSE;在S452中,远程CSE2将所创建的<AE2Annc>的URI以及其下的所有强制属性和“AE-ID”、“appName”两个属性的URI发送给注册者CSE。
在S460中,注册者CSE将S451和S452中接收到的所有URI相应的更新至S420中创建的<AE>资源下的announceElement属性中。
在S470中,注册者CSE将S451和S452中接收到的所有URI存放在announceElement属性中回复给发起者AE。
可以理解,在本发明实施例中,该待宣告的资源也可以是其它需要宣告的资源,例如<container>资源,相应地,作为一个具体的例子,该announceElement可用于指示将maxInstanceAge和locationID两个属性宣告到远程CSE1,将maxInstanceAge和ontologyRef两个属性宣告到远程CSE2,本领域普通技术人员可轻易推知相应的宣告流程。
图11是根据本发明另一个实施例的机器到机器系统中宣告属性的方法的示意图。
如图11所示,该方法由注册者CSE触发宣告,在本发明实施例中,该待宣告的目标资源已经在注册者CSE上创建,该目标资源以<AE>为例,
在S510中,注册者CSE创建或更新本地存储的<AE>资源下的宣告属性,该宣告属性以announceElement为例。该announceElement属性用于指示将“AE-ID”和“ontologyRef”两个属性宣告到远程CSE1,将“AE-ID”和“appName”两个属性宣告到远程CSE2。
在S521和S522中,注册者CSE分别向远程CSE1和远程CSE2发送创建请求消息,将<AE>资源和该资源下的所有强制属性宣告到远程CSE1与远程CSE2,同时,根据announceElement属性,在S521中,注册者CSE将“AE-ID”与“ontologyRef”两个属性宣告到远程CSE1,在S522中,注册者CSE将“AE-ID”与“appName”两个属性宣告到远程CSE2。
在S531中,远程CSE1创建<AE1Annc>资源,并在该资源下创建所有强制属性和“AE-ID”、“ontologyRef”两个属性。在S532中,远程CSE2创建<AE2Annc>资源,并在该资源下创建所有强制属性和“AE-ID”、“appName”两个属性。
在S541中,远程CSE1将所创建的<AE1Annc>的URI以及其下的所有强制属性和“AE-ID”、“ontologyRef”两个属性的URI发送给注册者CSE;在S542中,远程CSE2将所创建的<AE2Annc>的URI以及其下的所有强制属性和“AE-ID”、“appName”两个属性的URI发送给注册者CSE。
在S550中,注册者CSE将S541和S542中接收到的所有URI相应的更新至本地存储的<AE>资源下的announceElement属性中。
可以理解,在本发明实施例中,该待宣告的资源也可以是其它需要宣告的资源,例如<container>资源,相应地,作为一个具体的例子,该announceElement可用于指示将maxInstanceAge和locationID两个属性宣告到远程CSE1,将maxInstanceAge和ontologyRef两个属性宣告到远程CSE2,本领域普通技术人员可轻易推知相应的宣告流程。
图12是根据本发明另一个实施例的机器到机器系统中宣告属性的方法的示意图。
如图12所示,该方法由发起者AE或CSE触发宣告,在本发明实施例 中,以AE作为发起者为例;该待宣告的目标资源以<AE>为例。
在S610中,发起者AE向注册者CSE发送用于创建<AE>资源的创建请求消息,该请求消息中包含announceTo属性、announcedAttribute属性和announceSpecial属性,其中,该announceTo属性指示远程CSE1和远程CSE2,该announcedAttribute属性指示“appName”属性和“AE-ID”属性,该announceSpecial属性指示将“ontologyRef”属性宣告到远程CSE2。
在S620中,注册者CSE创建<AE>资源,并将S610中的announceTo属性、announcedAttribute属性和announceSpecial属性作为<AE>资源的宣告属性。
在S631和S632中,注册者CSE根据announceTo和announcedAttribute两个属性向远程CSE1和远程CSE2发送创建请求消息,将<AE>资源和该资源下的所有强制属性以及announcedAttribute属性指示的“appName”属性和“AE-ID”属性宣告到远程CSE1和远程CSE2,并且,特别地,在S632中,注册者CSE根据announceSpecial属性,将“ontologyRef”属性宣告到Remote CSE2。
在S641中,远程CSE1创建<AE1Annc>资源,并根据S631在该资源下创建所有强制属性和“appName”、AE-ID”两个属性;在S642中,远程CSE2创建<AE2Annc>资源,并根据S632在该资源下创建所有强制属性和“AE-ID”、“appName”两个属性,特别地,远程CSE2根据S642中的announceSpecial属性,在<AE2Annc>资源下创建“ontologyRef”属性。
在S651和S652中,远程CSE1与远程CSE2分别将S641和S642中创建的<AE1Annc>和<AE2Annc>以及其下创建的所有属性的URI回复给注册者CSE。
在S660中,注册者CSE将S651和S652中接收的所有URI相应的更新至announceTo、anouncedAttribute、announceSpecial三个属性中。
在S670中,注册者CSE将S651和S652中接收的所有URI存放在announceTo、anouncedAttribute、announceSpecial三个属性中发送给发起者AE。
可以理解,在本发明实施例中,该待宣告的资源也可以是其它需要宣告的资源,例如<container>资源,相应地,作为一个具体的例子,该announceTo、anounceAttribute、announceSpecial可用于指示将maxInstanceAge和locationID 两个属性宣告到远程CSE1,将maxInstanceAge和ontologyRef两个属性宣告到远程CSE2,本领域普通技术人员可轻易推知相应的宣告流程。
图13是根据本发明一个实施例的机器到机器系统中宣告属性的方法的示意图。
如图13所示,该方法由注册者CSE触发宣告。在本发明实施例中,该待宣告的目标资源已经在注册者CSE上创建,该目标资源以<AE>为例。
在S710中,注册者CSE创建或更新本地存储的<AE>资源下的announceSpecial属性,该announceSpecial属性指示将“ontologyRef”属性宣告到远程CSE2。
在S720中,注册者CSE根据该announceSpecial属性,将“ontologyRef”属性宣告给远程CSE2。
在S730中,远程CSE2在本地存储的<AE2Annc>资源下创建ontologyRef属性。
在S740中,远程CSE2将<AE2Annc>资源下的ontologyRef属性的URI回复给注册者CSE。
在S750中,注册者CSE将S740中接收的URI相应的更新至本地存储的<AE>资源下的announceSpecial属性中。
可以理解,在本发明实施例中,该待宣告的资源也可以是其它需要宣告的资源,例如<container>资源,相应地,作为一个具体的例子,该announceSpecial可用于指示将ontologyRef属性宣告到远程CSE2,本领域普通技术人员可轻易推知相应的宣告流程。
应理解,在本发明各实施例中,上述过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
因此,本发明实施例的机器到机器系统中宣告资源的方法,通过定义新的宣告属性(announceElement和announceSpecial),可以实现将同一资源的不同属性宣告到不同的远程CSE。
图14是根据本发明一个实施例的机器到机器系统中访问资源的方法的示意图。
如图14所示,在S810中,CSE创建了一个资源,该资源以<AEAnnc>为例。
在S821和S822中,AE1和AE2分别向该CSE发送用于访问该<AEAnnc>资源的请求消息,该请求消息用于请求对该<AEAnnc>资源进行“获取”操作。
在S830中,该CSE通过该<AEAnnc>资源下的accessControlPolicyIDs属性查找访问控制策略资源,并在该访问控制策略资源中查询到该<AEAnnc>资源的访问控制策略,该访问控制策略指示在当前的访问条件下AE1可以对该<AEAnnc>资源的AE-ID属性进行“获取”操作,AE2可以对该<AEAnnc>资源的ontologyRef属性和AE-ID属性进行“获取”操作。
在S841中,该CSE根据S830中的该访问控制策略向AE1提供AE-ID属性的属性值,在S842中,该CSE根据S830中的该访问控制策略向AE2提供ontologyRef属性和AE-ID属性的属性值。
应理解,在本发明实施例中,上述过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
因此,本发明实施例的机器到机器系统中访问资源的方法,通过定义新的访问控制参数,可以实现资源粒度的访问控制。
上文结合图2到图14详细描述了根据本发明实施例的机器到机器系统中宣告属性的方法和访问资源的方法,下面将结合图15到图22详细描述根据本发明实施例的应用实体和公共服务实体。
图15示出了根据本发明实施例的公共服务实体CSE10的示意性框图。
如图15所示,该CSE10包括:
确定模块11,用于确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性;
发送模块12,用于向该确定模块11确定的该目标CSE发送该确定模块11确定的该目标属性;
接收模块13,用于接收该目标CSE发送的用于通知该目标属性在该目标CSE上创建完成的通知消息。
具体而言,该CSE10确定待宣告的目标CSE以及与该目标CSE对应的目标属性,并向该目标CSE发送该目标属性。该目标CSE收到该目标属性之后,向该CSE10发送用于通知该目标属性在该目标CSE上创建完成的通知消息。
应理解,在本发明实施例中,该CSE10可以是待宣告的目标资源的发起者AE或CSE所注册的CSE;该CSE10可以和该发起者AE或CSE位于同一个实体设备上,也可以和该发起者位于不同的实体设备上;该目标CSE可以是一个,也可以是多个,该目标属性可以是一个,也可以是多个;该目标属性可以和其它属性一起发送,也可以单独发送;对不同的目标CSE,该目标属性可以完全相同,也可以部分相同,也可以完全不同;本发明并不限定。
因此,本发明实施例的CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,可选地,该接收模块13还用于接收应用实体AE或公共服务实体CSE发送的目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。相应地,该确定模块11具体用于,根据该接收模块13接收的该宣告属性确定该目标CSE以及该目标属性。
在本发明实施例中,可选地,该确定模块11用于根据本地存储的目标资源的宣告属性,确定该目标CSE和该目标属性,其中,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
在本发明实施例中,可选地,该宣告属性可以是第一宣告属性,该第一宣告属性用于指示向该目标CSE发送该目标属性。该第一宣告属性的表现形式可以有多种,例如:该第一宣告属性可以是一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性;或该第一宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
可选地,作为另一个实施例,该宣告属性可以同时包括第二宣告属性、第三宣告属性和第四宣告属性,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同,
该第四宣告属性的表现形式可以有多种,例如:该第四宣告属性可以是 一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
在本发明实施例中,可选地,如图16所示,该CSE10还包括:
创建模块14,用于创建包括该宣告属性的目标资源;
更新模块15,用于更新包括该宣告属性的目标资源。
在本发明实施例中,可选地,该接收模块13还用于,接收该目标CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值;该更新模块15还用于,根据该接收模块13接收的该属性标识信息,更新该目标资源的该宣告属性。
在本发明实施例中,可选地,该发送模块12还用于,向AE或CSE发送该属性标识信息。
应理解,根据本发明实施例的公共服务实体CSE10中的各个模块的上述和其它操作和/或功能分别为了实现图2到图5中的方法100的相应流程,为了简洁,在此不再赘述。
因此,本发明实施例的CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
图17示出了根据本发明实施例的应用实体AE或公共服务实体CSE20的示意性框图。
如图17所示,该AE或CSE20包括:
确定模块21,用于确定待宣告的目标CSE以及与该目标CSE对应的目标属性;
发送模块22,用于向注册者CSE发送目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
具体而言,本发明实施例的AE或CSE20作为该目标资源的发起者确定待宣告的目标CSE以及与该目标CSE对应的目标属性,并向注册者CSE发送该目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。该注册者CSE可以根据该宣告属性将该目标属性宣告给该目标CSE。
因此,本发明实施例的AE或CSE通过指示注册者CSE向不同的目标 CSE发送与该目标CSE对应的目标属性,可实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,可选地,该发送模块22发送的该宣告属性可以为第一宣告属性,该第一宣告属性用于指示该注册者CSE向该目标CSE发送该目标属性。该宣告属性的表现形式可以有多种,例如:
该第一宣告属性为一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第一宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
可选地,作为另一个实施例,该发送模块22发送的该宣告属性可以包括第二宣告属性、第三宣告属性和第四宣告属性,该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同。该第四宣告属性的表现形式也可以有多种,例如:
该第四宣告属性为一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
应理解,根据本发明实施例的AE或CSE10中的各个模块的上述和其它操作和/或功能分别为了实现图6或图7中的方法200的相应流程,为了简洁,在此不再赘述。
因此,本发明实施例的AE或CSE通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可实现将同一资源的不同属性宣告到不同的CSE。
在本发明实施例中,可选地,该AE或CSE20还包括:
接收模块23,用于接收注册者CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值。
具体而言,该注册者CSE根据该宣告属性向该目标CSE发送该目标属 性,并接收该目标CSE发送的属性标识信息,该属性标识信息可以是该目标CSE上的该目标属性的地址信息例如URI,用于指示该目标属性在该目标CSE上的位置,也可以是该目标CSE上的该目标属性的属性值,用于确认该目标属性宣告无误,但本发明并不限于此。该注册者CSE收到该属性标识信息之后,将该属性标识信息发送给该发起者AE或CSE。
因此,本发明实施例的AE或CSE通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可实现将同一资源的不同属性宣告到不同的CSE。
图19示出了根据本发明实施例的公共服务实体CSE30的示意性框图。
如图19所示,该CSE30包括:
接收模块31,用于接收AE或CSE发送的访问请求,该访问请求用于请求对目标资源进行访问;
确定模块32,用于确定该目标资源的允许访问的目标属性;
控制模块33,用于对该确定模块32确定的该目标属性进行访问控制。
具体而言,本发明实施例的CSE30接收AE或CSE发送的访问请求,该访问请求用于请求该CSE30对目标资源进行访问,该CSE30确定该目标资源的允许访问的目标属性,并对该允许访问的目标属性进行访问控制。
因此,本发明实施例的CSE30通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
可选地,在本发明实施例中,该确定模块32具体用于,确定访问控制策略,该访问控制策略用于指示该目标资源的允许访问的属性集合;根据该访问控制策略,确定该目标属性。
因此,本发明实施例的CSE30通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
可选地,在本发明实施例中,该确定模块32还具体用于,根据访问控制策略资源的访问权限属性确定该访问控制策略,
其中,该访问权限属性包括由第一参数、第二参数、第三参数、第四参数组成的四元组,该第一参数表示请求访问的实体,该第二参数表示访问条件,该第三参数表示允许访问的属性,该第四参数表示访问方式,该访问权限属性用于指示允许该请求访问的实体在该访问条件下以该访问方式对该允许访问的属性进行访问。
应理解,根据本发明实施例的CSE30中的各个模块的上述和其它操作和/或功能分别为了实现图7和图8中的方法300的相应流程,为了简洁,在此不再赘述。
因此,本发明实施例的CSE通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
如图20所示,本发明实施例还提供了一种公共服务实体40,该公共服务实体40包括处理器41、存储器42、总线系统43、接收器44和发送器45。其中,处理器41、存储器42、接收器44和发送器45通过总线系统43相连,该存储器44用于存储指令,该处理器41用于执行该存储器42存储的指令,以控制接收器44接收信号,并控制发送器45发送信号;其中该处理器41用于确定待宣告的目标公共服务实体CSE以及与该目标CSE对应的目标属性;该发送器45用于向该处理器41确定的该目标CSE发送该处理器41确定的该目标属性;该接收器44用于接收该目标CSE发送的用于通知该目标属性在该目标CSE上创建完成的通知消息。
因此,本发明实施例的CSE40通过向不同的目标CSE发送与该目标CSE对应的目标属性,可实现将同一资源的不同属性宣告到不同的CSE。
应理解,在本发明实施例中,该处理器41可以是中央处理单元(英文:Central Processing Unit,简称:CPU),该处理器41还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该存储器42可以包括只读存储器和随机存取存储器,并向处理器41提供指令和数据。存储器42的一部分还可以包括非易失性随机存取存储器。
该总线系统43除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统43。
在实现过程中,上述方法的各步骤可以通过处理器41中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。 该存储介质位于存储器42,处理器41读取存储器42中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
可选地,作为一个实施例,该接收器44还用于接收应用实体AE或公共服务实体CSE发送的目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。相应地,该处理器41具体用于,根据该接收器44接收的该宣告属性确定该目标CSE以及该目标属性。
可选地,作为一个实施例,该处理器41用于根据本地存储的目标资源的宣告属性,确定该目标CSE和该目标属性,其中,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。
可选地,作为一个实施例,该宣告属性可以是第一宣告属性,该第一宣告属性用于指示向该目标CSE发送该目标属性。该第一宣告属性的表现形式可以有多种,例如:该第一宣告属性可以是一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性;或该第一宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
可选地,作为一个实施例,该宣告属性可以同时包括第二宣告属性、第三宣告属性和第四宣告属性,其中该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同;
该第四宣告属性的表现形式可以有多种,例如:该第四宣告属性可以是一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
可选地,作为一个实施例,该处理器41用于创建或更新包括该宣告属性的目标资源。
可选地,作为一个实施例,该接收器44还用于接收该目标CSE发送的 属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值;该处理器41还用于根据该接收器44接收的该属性标识信息,更新该目标资源的该宣告属性。
可选地,作为一个实施例,该发送器45还用于向该目标资源的发起者AE或CSE发送该属性标识信息。
应理解,根据本发明实施例的公共服务实体CSE40可以对应于本发明实施例提供的公共服务实体10,并且CSE40中的各个模块的上述和其它操作和/或功能分别为了实现图2到图5中的方法100的相应流程,为了简洁,在此不再赘述。
因此,本发明实施例的CSE通过向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
如图21所示,本发明实施例还提供了一种应用实体或公共服务实体50,该AE或CSE50包括处理器51、存储器52、总线系统53、接收器54和发送器55。其中,处理器51、存储器52、接收器54和发送器55通过总线系统53相连,该存储器52用于存储指令,该处理器51用于执行该存储器55存储的指令,以控制接收器54接收信号,并控制发送器55发送信号;其中,该处理器51用于确定待宣告的目标CSE以及与该目标CSE对应的目标属性;该发送器55用于向注册者CSE发送目标资源的宣告属性,该宣告属性包括用于指示该目标CSE的标识信息和用于指示该目标属性的标识信息。该注册者CSE可以根据该宣告属性将该目标属性宣告给该目标CSE。
因此,本发明实施例的AE或CSE50通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可实现将同一资源的不同属性宣告到不同的CSE。
应理解,在本发明实施例中,该处理器51可以是中央处理单元(英文:Central Processing Unit,简称:CPU),该处理器51还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该存储器52可以包括只读存储器和随机存取存储器,并向处理器51提供指令和数据。存储器52的一部分还可以包括非易失性随机存取存储器。
该总线系统53除包括数据总线之外,还可以包括电源总线、控制总线 和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统53。
在实现过程中,上述方法的各步骤可以通过处理器51中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器52,处理器51读取存储器52中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
在本发明实施例中,可选地,该发送器55发送的该宣告属性可以为第一宣告属性,该第一宣告属性用于指示该注册者CSE向该目标CSE发送该目标属性。该宣告属性的表现形式可以有多种,例如:
该第一宣告属性为一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第一宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
可选地,作为另一个实施例,该发送器55发送的该宣告属性可以包括第二宣告属性、第三宣告属性和第四宣告属性,其中该第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,该第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,该第二宣告属性和该第三宣告属性用于指示向该至少一个待宣告CSE发送该至少一个待宣告属性,该第四宣告属性用于指示该目标CSE和与该目标CSE对应的该目标属性,并且该目标属性和该至少一个待宣告属性不同。该第四宣告属性的表现形式也可以有多种,例如:
该第四宣告属性为一个列表,该列表包括第一表项和第二表项,该第一表项用于指示该目标CSE,该第二表项用于指示该目标属性,或该第四宣告属性包括由第一参数和第二参数组成的二元组,该第一参数用于指示该目标CSE,该第二参数用于指示该目标属性。
因此,本发明实施例的AE或CSE50通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可实现将同一资源的不同属性宣告到不同的CSE。
可选地,作为一个实施例,该接收器54用于接收该注册者CSE发送的属性标识信息,该属性标识信息用于指示该目标属性在该目标CSE上的位置或属性值。
应理解,根据本发明实施例的AE或CSE50可以对应于本发明实施例提供的AE或CSE20,并且AE或CSE50中的各个模块的上述和其它操作和/或功能分别为了实现图6或图7中的方法200的相应流程,为了简洁,在此不再赘述。
因此,本发明实施例的AE或CSE50通过指示注册者CSE向不同的目标CSE发送与该目标CSE对应的目标属性,可以实现将同一资源的不同属性宣告到不同的CSE。
如图22所示,本发明实施例还提供了一种公共服务实体60,该公共服务实体60包括处理器61、存储器62、总线系统63、接收器66和发送器65。其中,处理器61、存储器62、接收器66和发送器65通过总线系统63相连,该存储器66用于存储指令,该处理器61用于执行该存储器66存储的指令,以控制接收器66接收信号,并控制发送器65发送信号;其中该接收器64用于接收AE或CSE发送的访问请求,该访问请求用于请求对目标资源进行访问;该处理器61用于确定该目标资源的允许访问的目标属性,并用于对该目标属性进行访问控制。
因此,本发明实施例的CSE60通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
应理解,在本发明实施例中,该处理器61可以是中央处理单元(英文:Central Processing Unit,简称:CPU),该处理器61还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
该存储器62可以包括只读存储器和随机存取存储器,并向处理器61提供指令和数据。存储器62的一部分还可以包括非易失性随机存取存储器。
该总线系统63除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统63。
在实现过程中,上述方法的各步骤可以通过处理器61中的硬件的集成 逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器62,处理器61读取存储器62中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
可选地,作为一个实施例,该处理器61用于确定访问控制策略,该访问控制策略用于指示该目标资源的允许访问的属性集合,该处理器61根据该访问控制策略,确定该目标属性。
可选地,作为一个实施例,该处理器61根据访问控制策略资源的访问权限属性确定该访问控制策略,其中,该访问权限属性包括由第一参数、第二参数、第三参数、第四参数组成的四元组,该第一参数表示请求访问的实体,该第二参数表示访问条件,该第三参数表示允许访问的属性,该第四参数表示访问方式,该访问权限属性用于指示允许该请求访问的实体在该访问条件下以该访问方式对该允许访问的属性进行访问。
应理解,根据本发明实施例的公共服务实体CSE60可以对应于本发明实施例提供的公共服务实体30,并且CSE60中的各个模块的上述和其它操作和/或功能分别为了实现图8和图9中的方法300的相应流程,为了简洁,在此不再赘述。
因此,本发明实施例的CSE通过对同一资源下的不同属性设置不同的访问权限,可实现属性粒度的访问控制。
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。
应理解,本文中术语“系统”和“网络”经常可互换使用。本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系, 例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。
应理解,在本发明实施例中,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例该方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (30)

  1. 一种机器到机器M2M系统中宣告属性的方法,其特征在于,包括:
    确定待宣告的目标公共服务实体CSE以及与所述目标CSE对应的目标属性;
    向所述目标CSE发送所述目标属性;
    接收所述目标CSE发送的用于通知所述目标属性在所述目标CSE上创建完成的通知消息。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    接收应用实体AE或公共服务实体CSE发送的目标资源的宣告属性,所述宣告属性包括用于指示所述目标CSE的标识信息和用于指示所述目标属性的标识信息;
    其中,所述确定待宣告的目标公共服务实体CSE以及与所述目标CSE对应的目标属性,包括:
    根据所述宣告属性确定所述目标CSE以及所述目标属性。
  3. 根据权利要求1所述的方法,其特征在于,所述确定待宣告的目标公共服务实体CSE以及与所述目标CSE对应的目标属性,包括:
    根据本地存储的目标资源的宣告属性,确定所述目标CSE和所述目标属性,其中,所述宣告属性包括用于指示所述目标CSE的标识信息和用于指示所述目标属性的标识信息。
  4. 根据权利要求2或3所述的方法,其特征在于,所述宣告属性为第一宣告属性,所述第一宣告属性用于指示向所述目标CSE发送所述目标属性,
    所述第一宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第一宣告属性包括由第一参数和第二参数组成的二元组,所述第一参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  5. 根据权利要求2或3所述的方法,其特征在于,所述宣告属性包括第二宣告属性、第三宣告属性和第四宣告属性,
    所述第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,所述第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息, 所述第二宣告属性和所述第三宣告属性用于指示向所述至少一个待宣告CSE发送所述至少一个待宣告属性,
    所述第四宣告属性用于指示所述目标CSE和与所述目标CSE对应的所述目标属性,并且所述目标属性和所述至少一个待宣告属性不同,
    所述第四宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第四宣告属性包括由第一参数和第二参数组成的二元组,所述第一参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  6. 根据权利要求2至5中任一项所述的方法,其特征在于,所述方法还包括:
    创建或更新包括所述宣告属性的目标资源。
  7. 根据权利要求2至6中任一项所述的方法,其特征在于,在所述向所述目标CSE发送所述目标属性之后,所述方法还包括:
    接收所述目标CSE发送的属性标识信息,所述属性标识信息用于指示所述目标属性在所述目标CSE上的位置或属性值;
    根据所述属性标识信息,更新所述目标资源的所述宣告属性。
  8. 根据权利要求7所述的方法,其特征在于,在所述接收所述目标CSE发送的属性标识信息之后,所述方法还包括:
    向AE或CSE发送所述属性标识信息。
  9. 一种M2M系统中宣告属性的方法,其特征在于,包括:
    确定待宣告的目标CSE以及与所述目标CSE对应的目标属性;
    向注册者CSE发送目标资源的宣告属性,所述宣告属性包括用于指示所述目标CSE的标识信息和用于指示所述目标属性的标识信息。
  10. 根据权利要求9所述的方法,其特征在于,所述宣告属性为第一宣告属性,所述第一宣告属性用于指示所述注册者CSE向所述目标CSE发送所述目标属性,
    所述第一宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第一宣告属性包括由第一参数和第二参数组成的二元组,所述第一 参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  11. 根据权利要求9所述的方法,其特征在于,所述宣告属性包括第二宣告属性、第三宣告属性和第四宣告属性,
    所述第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,所述第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,所述第二宣告属性和所述第三宣告属性用于指示向所述至少一个待宣告CSE发送所述至少一个待宣告属性,
    所述第四宣告属性用于指示所述目标CSE和与所述目标CSE对应的所述目标属性,并且所述目标属性和所述至少一个待宣告属性不同,
    所述第四宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第四宣告属性包括由第一参数和第二参数组成的二元组,所述第一参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  12. 根据权利要求9至11中任一项所述的方法,其特征在于,在所述向注册者CSE发送目标资源的宣告属性之后,所述方法还包括:
    接收注册者CSE发送的属性标识信息,所述属性标识信息用于指示所述目标属性在所述目标CSE上的位置或属性值。
  13. 一种M2M系统中访问资源的方法,其特征在于,包括:
    接收AE或CSE发送的访问请求,所述访问请求用于请求对目标资源进行访问;
    确定所述目标资源的允许访问的目标属性;
    对所述目标属性进行访问控制。
  14. 根据权利要求13所述的方法,其特征在于,所述确定所述目标资源的允许访问的目标属性,包括:
    确定访问控制策略,所述访问控制策略用于指示所述目标资源的允许访问的属性集合;
    根据所述访问控制策略,确定所述目标属性。
  15. 根据权利要求14所述的方法,其特征在于,所述确定访问控制策略,包括:
    根据访问控制策略资源的访问权限属性,确定所述访问控制策略,
    其中,所述访问权限属性包括由第一参数、第二参数、第三参数、第四参数组成的四元组,所述第一参数表示请求访问的实体,所述第二参数表示访问条件,所述第三参数表示允许访问的属性,所述第四参数表示访问方式,所述访问权限属性用于指示允许所述请求访问的实体在所述访问条件下以所述访问方式对所述允许访问的属性进行访问。
  16. 一种公共服务实体CSE,其特征在于,包括:
    确定模块,用于确定待宣告的目标公共服务实体CSE以及与所述目标CSE对应的目标属性;
    发送模块,用于向所述确定模块确定的所述目标CSE发送所述确定模块确定的所述目标属性;
    接收模块,用于接收所述目标CSE发送的用于通知所述目标属性在所述目标CSE上创建完成的通知消息。
  17. 根据权利要求16所述的CSE,其特征在于,所述接收模块还用于接收应用实体AE或公共服务实体CSE发送的目标资源的宣告属性,所述宣告属性包括用于指示所述目标CSE的标识信息和用于指示所述目标属性的标识信息;
    所述确定模块具体用于,根据所述接收模块接收的所述宣告属性确定所述目标CSE以及所述目标属性。
  18. 根据权利要求16所述的CSE,其特征在于,所述确定模块具体用于,根据本地存储的目标资源的宣告属性,确定所述目标CSE和所述目标属性,其中,所述宣告属性包括用于指示所述目标CSE的标识信息和用于指示所述目标属性的标识信息。
  19. 根据权利要求17或18所述的CSE,其特征在于,所述宣告属性为第一宣告属性,所述第一宣告属性用于指示向所述目标CSE发送所述目标属性,
    所述第一宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第一宣告属性包括由第一参数和第二参数组成的二元组,所述第一参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  20. 根据权利要求17或18所述的CSE,其特征在于,所述宣告属性包 括第二宣告属性、第三宣告属性和第四宣告属性,
    所述第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,所述第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,所述第二宣告属性和所述第三宣告属性用于指示向所述至少一个待宣告CSE发送所述至少一个待宣告属性,
    所述第四宣告属性用于指示所述目标CSE和与所述目标CSE对应的所述目标属性,并且所述目标属性和所述至少一个待宣告属性不同,
    所述第四宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第四宣告属性包括由第一参数和第二参数组成的二元组,所述第一参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  21. 根据权利要求17至20中任一项所述的CSE,其特征在于,所述CSE还包括:
    创建模块,用于创建包括所述宣告属性的目标资源;
    更新模块,用于更新包括所述宣告属性的目标资源。
  22. 根据权利要求16至21中任一项所述的CSE,其特征在于,所述接收模块还用于,接收所述目标CSE发送的属性标识信息,所述属性标识信息用于指示所述目标属性在所述目标CSE上的位置或属性值;
    所述更新模块还用于,根据所述接收模块接收的所述属性标识信息,更新所述目标资源的所述宣告属性。
  23. 根据权利要求22所述的CSE,其特征在于,所述发送模块还用于,向AE或CSE发送所述接收模块接收的所述属性标识信息。
  24. 一种应用实体或公共服务实体,其特征在于,包括:
    确定模块,用于确定待宣告的目标CSE以及与所述目标CSE对应的目标属性;
    发送模块,用于向注册者CSE发送目标资源的宣告属性,所述宣告属性包括用于指示所述目标CSE的标识信息和用于指示所述目标属性的标识信息。
  25. 根据权利要求24所述的AE或CSE,其特征在于,所述宣告属性为第一宣告属性,所述第一宣告属性用于指示所述注册者CSE向所述目标 CSE发送所述目标属性,
    所述第一宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第一宣告属性包括由第一参数和第二参数组成的二元组,所述第一参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  26. 根据权利要求24所述的AE或CSE,其特征在于,所述宣告属性包括第二宣告属性、第三宣告属性和第四宣告属性,
    所述第二宣告属性包括用于指示至少一个待宣告CSE的待宣告CSE信息,所述第三宣告属性包括用于指示至少一种待宣告属性的待宣告属性信息,所述第二宣告属性和所述第三宣告属性用于指示向所述至少一个待宣告CSE发送所述至少一个待宣告属性,
    所述第四宣告属性用于指示所述目标CSE和与所述目标CSE对应的所述目标属性,并且所述目标属性和所述至少一个待宣告属性不同,
    所述第四宣告属性包括第一表项和第二表项,所述第一表项用于指示所述目标CSE,所述第二表项用于指示所述目标属性,
    所述第四宣告属性包括由第一参数和第二参数组成的二元组,所述第一参数用于指示所述目标CSE,所述第二参数用于指示所述目标属性。
  27. 根据权利要求24至26中任一项所述的AE或CSE,其特征在于,所述AE或CSE还包括:
    接收模块,用于接收注册者CSE发送的属性标识信息,所述属性标识信息用于指示所述目标属性在所述目标CSE上的位置或属性值。
  28. 一种公共服务实体CSE,其特征在于,包括:
    接收模块,用于接收AE或CSE发送的访问请求,所述访问请求用于请求对目标资源进行访问;
    确定模块,用于确定所述目标资源的允许访问的目标属性;
    控制模块,用于对所述确定模块确定的所述目标属性进行访问控制。
  29. 根据权利要求28所述的CSE,其特征在于,所述确定模块具体用于,
    确定访问控制策略,所述访问控制策略用于指示所述目标资源的允许访 问的属性集合;
    根据所述访问控制策略,确定所述目标属性。
  30. 根据权利要求29所述的CSE,其特征在于,所述确定模块还具体用于,根据访问控制策略资源的访问权限属性确定所述访问控制策略,
    其中,所述访问权限属性包括由第一参数、第二参数、第三参数、第四参数组成的四元组,所述第一参数表示请求访问的实体,所述第二参数表示访问条件,所述第三参数表示允许访问的属性,所述第四参数表示访问方式,所述访问权限属性用于指示允许所述请求访问的实体在所述访问条件下以所述访问方式对所述允许访问的属性进行访问。
PCT/CN2015/070424 2015-01-09 2015-01-09 机器到机器系统中宣告属性的方法、公共服务实体和应用实体 WO2016109972A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580072687.2A CN107113532B (zh) 2015-01-09 2015-01-09 机器到机器系统中宣告属性的方法、公共服务实体和应用实体
PCT/CN2015/070424 WO2016109972A1 (zh) 2015-01-09 2015-01-09 机器到机器系统中宣告属性的方法、公共服务实体和应用实体

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/070424 WO2016109972A1 (zh) 2015-01-09 2015-01-09 机器到机器系统中宣告属性的方法、公共服务实体和应用实体

Publications (1)

Publication Number Publication Date
WO2016109972A1 true WO2016109972A1 (zh) 2016-07-14

Family

ID=56355429

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/070424 WO2016109972A1 (zh) 2015-01-09 2015-01-09 机器到机器系统中宣告属性的方法、公共服务实体和应用实体

Country Status (2)

Country Link
CN (1) CN107113532B (zh)
WO (1) WO2016109972A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018095021A1 (zh) * 2016-11-22 2018-05-31 中兴通讯股份有限公司 注册状态的确定方法、装置及系统、cse

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104093118A (zh) * 2014-03-05 2014-10-08 中兴通讯股份有限公司 一种资源通告的方法、机器对机器节点和系统
CN104104713A (zh) * 2014-02-24 2014-10-15 中兴通讯股份有限公司 设备触发消息处理方法、承载网网元、m2m节点及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI642290B (zh) * 2011-02-11 2018-11-21 美商IoT控股公司 用於管理機器對機器(m2m)實體的m2m伺服器、以及在m2m伺服器中實施的方法
EP2957085B1 (en) * 2013-02-15 2020-09-16 Convida Wireless, LLC Service layer resource propagation across domains

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104713A (zh) * 2014-02-24 2014-10-15 中兴通讯股份有限公司 设备触发消息处理方法、承载网网元、m2m节点及系统
CN104093118A (zh) * 2014-03-05 2014-10-08 中兴通讯股份有限公司 一种资源通告的方法、机器对机器节点和系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018095021A1 (zh) * 2016-11-22 2018-05-31 中兴通讯股份有限公司 注册状态的确定方法、装置及系统、cse

Also Published As

Publication number Publication date
CN107113532B (zh) 2020-09-08
CN107113532A (zh) 2017-08-29

Similar Documents

Publication Publication Date Title
US11064033B2 (en) Systems and methods for service layer session migration and sharing
KR102095436B1 (ko) 서비스 계층에서의 요청 처리
WO2015081786A1 (zh) 订阅通知的实现方法和装置
US10085244B2 (en) Method for guaranteeing operation of control message in wireless communication system and device for same
US20180063879A1 (en) Apparatus and method for interoperation between internet-of-things devices
EP3977792A1 (en) Systems and methods for supporting traffic steering through a service function chain
CN111436160A (zh) 一种局域网通信方法、装置及系统
JP2020537449A (ja) 通信ネットワークにおけるサービス登録
WO2017206183A1 (zh) 一种网络切片的确定方法、装置及系统
US10193709B2 (en) Method for processing request messages in wireless communication system, and device for same
EP4072098A1 (en) Service processing method, device and system
WO2020034927A1 (zh) 一种局域网通信的管理方法及装置
KR102500594B1 (ko) 통신 네트워크에서의 서비스 계층 메시지 템플릿들
WO2018000653A1 (zh) M2m应用的信息方法、cse及ae
US11044327B2 (en) Systems and methods for wireless service migration
KR20200005492A (ko) 리소스 관리 방법 및 장치
WO2016173077A1 (zh) 用于终端直连通信的设备发现方法、装置和终端
WO2016109972A1 (zh) 机器到机器系统中宣告属性的方法、公共服务实体和应用实体
US20240056321A1 (en) Dynamic membership for an application group in a mobile communication system
US9537713B2 (en) Method of setting PN on the basis of personal network usage information in heterogeneous network
KR20180025174A (ko) 사물인터넷 디바이스 연동 장치 및 방법
US20220124008A1 (en) Automated Service Layer Message Flow Management In A Communications Network
US9491246B2 (en) Method for managing personal network
US11606672B2 (en) Information transmission method, network element selector, and controller
WO2022267692A1 (zh) 数据处理方法、文件服务系统、终端设备以及存储介质

Legal Events

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

Ref document number: 15876480

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15876480

Country of ref document: EP

Kind code of ref document: A1