Information notification method, apparatus, and system
11456889 · 2022-09-27
Assignee
Inventors
Cpc classification
H04L12/2834
ELECTRICITY
H04W4/20
ELECTRICITY
H04L67/12
ELECTRICITY
H04W8/18
ELECTRICITY
H04W4/70
ELECTRICITY
H04L12/2825
ELECTRICITY
International classification
Abstract
The present application discloses an information notification method and apparatus. The method is used for a first entity, and includes: determining a first resource feature; determining whether a structure of resources satisfies the first resource feature; and transmitting a notification message to a second entity if the structure of the resources satisfies the first resource feature.
Claims
1. An information notification method performed by a first entity, the method comprising: receiving a creation request which comprises information for indicating a first resource feature from a second entity; determining the first resource feature, wherein the first resource feature comprises a resource relationship and a resource type, and wherein the resource relationship is used to represent a connection relationship between resources and other various resources, and the resource type is used to represent a type of the resources and the other various resources; receiving a resource operation request or a resource creation request transmitted by a third entity; determining the resources in response to receiving the resource operation request or the resource creation request transmitted by the third entity; determining whether a structure of the resources satisfies the resource relationship and the resource type; and transmitting a notification message to the second entity if the structure of the resources satisfies the resource relationship and the resource type, wherein before transmitting the notification message to the second entity, the method further comprises: creating a second subscribed resource in the resources if the structure of the resources satisfies a reference resource feature; and transmitting the notification message to the second entity comprises: transmitting the notification message to the second entity according to the second subscribed resource.
2. The method according to claim 1, wherein the first resource feature is one or more resource structures.
3. The method according to claim 1, wherein the first resource feature is one or more resource structures, and determining whether a structure of resources satisfies the resource relationship and the resource type comprises: determining whether the structure of the resources satisfies any of the one or more resource structures.
4. The method according to claim 1, wherein the first resource feature is one or more resource structures described by at least one semantic descriptor, and determining whether a structure of resources satisfies the resource relationship and the resource type comprises: determining whether the structure of the resources satisfies any of the one or more resource structures.
5. The method according to claim 1, wherein the first resource feature is at least one index which points to one or more resource structures, and determining whether a structure of resources satisfies the resource relationship and the resource type comprises: determining whether the structure of the resources satisfies any of the one or more resource structures.
6. The method according to claim 1, wherein the first resource feature is at least one index, which points to one or more resource structures described by at least one resource descriptor, and determining whether a structure of resources satisfies the first resource feature comprises: determining whether the structure of the resources satisfies any of the one or more resource structures.
7. The method according to claim 1, wherein before determining the first resource feature, the method further comprises: creating a first subscribed resource which comprises the information for indicating the first resource feature; and determining a first resource feature comprises: determining the first resource feature according to the first subscribed resource.
8. The method according to claim 7, wherein after creating the first subscribed resource, the method further comprises: setting an enabling attribute of the first subscribed resource to be true.
9. The method according to claim 7, wherein the resource operation request comprises a resource acquisition request, a resource update request, a resource notification request, a resource discovery request, or a resource deletion request.
10. The method according to claim 1, wherein after transmitting the notification message to the second entity, the method further comprises: creating a second subscribed resource in the resources; and transmitting a notification message to the second entity according to the second subscribed resource when the resources are changed.
11. The method according to claim 7, wherein creating the first subscribed resource comprises: creating the first subscribed resource according to the creation request.
12. The method according to claim 9, wherein creating the first subscribed resource comprises: creating the first subscribed resource according to the creation request.
13. An information notification device for a first entity, the information notification device comprising: a processor; a memory, configured to be coupled to the processor and to store instructions that, when executed on the processor, cause the processor to be configured to: receive a creation request which comprises information for indicating a first resource feature from a second entity; determine the first resource feature, wherein the first resource feature comprises a resource relationship and a resource type, and wherein the resource relationship is used to represent a connection relationship between resources and other various resources, and the resource type is used to represent a type of the resources and the other various resources; receive a resource operation request or a resource creation request transmitted by a third entity; determine the resources in response to receiving the resource operation request or the resource creation request transmitted by the third entity; determine whether a structure of the resources satisfies the resource relationship and the resource type; and transmit a notification message to the second entity when the structure of the resources satisfies the resource relationship and the resource type, wherein before transmit the notification message to the second entity, the processor is further configured to: create a second subscribed resource in the resources if the structure of the resources satisfies a reference resource feature; and transmit the notification message to the second entity comprises: transmitting the notification message to the second entity according to the second subscribed resource.
Description
BRIEF DESCRIPTION OF THE ACCOMPANYING DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22) The embodiments of the present application have been illustrated by the above-described accompanying drawings, and will be described in more detail hereinafter. These accompanying drawings and the literal description are not intended to limit the scope of the concept of the present application in any way, and the concept of the present application will be described for those skilled in the art with reference to specific embodiments.
DETAILED DESCRIPTION
(23) In order to make the purposes, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings. It is apparent that the embodiments described are only a part of the embodiments of the present application, instead of all the embodiments.
(24)
(25) The second entity B and the third entity C may perform information interaction with the first entity A. For example, the second entity B may transmit information to the first entity A, and the third entity C may also transmit information to the first entity A. The first entity A may store the received information. For example, the first entity A may manage at least two resources D, and the resources D comprise a resource D1 having the information transmitted by the second entity B, and a resource D2 having the information transmitted by the third entity C. The resources D may further comprise a resource D3 having information transmitted by another entity.
(26) For example, the second entity B may be an Application Entity (AE) or a Common Service Entity (CSE), the third entity C may also comprise an AE or a CSE, and the first entity A may comprise a CSE.
(27)
(28) In step 101, a second entity transmits a creation request for indicating a first resource to a first entity.
(29) The second entity may transmit the creation request for indicating the first resource to the first entity when the second entity needs to acquire a change condition of information on the first resource.
(30) In step 102, the first entity creates a subscribed resource in the first resource according to the creation request.
(31) After receiving the creation request, the first entity may directly create the subscribed resource in the first resource.
(32) In step 103, the first entity determines whether the first resource has been changed. Step 104 is performed if the first resource has been changed; and step 106 is performed if the first resource has not been changed.
(33) After the first entity creates the subscribed resource, the first entity may determine whether the first resource has been changed in real time. Step 104 is performed, that is, a notification message is directly transmitted to the second entity according to the subscribed resource, if the first resource has been changed. Step 106 is performed, that is, the notification message is prohibited from being transmitted to the second entity, if the first resource has not been changed.
(34) In step 104, the first entity transmits a notification message to the second entity according to the subscribed resource.
(35) In step 105, the second entity transmits a notification response to the first entity.
(36) In step 106, the first entity is prohibited from transmitting the notification message to the second entity.
(37) However, since the first entity may manage multiple resources in the related art, and there is often a large number of the multiple resources, if the second entity needs to acquire a change condition of information in each resource, the second entity needs to transmit a creation request to the first entity multiple times, and the first entity also needs to create multiple subscribed resources, which results in cumbersome information notification steps and inefficient information notification.
(38) As shown in
(39) In step 201, a first resource feature is determined.
(40) In step 202, it is determined whether a structure of resources satisfies the first resource feature.
(41) In step 203, a notification message is transmitted to the second entity if the structure of the resources satisfies the first resource feature.
(42) In summary, in the information notification method according to the embodiments of the present application, before the first entity transmits the notification message to the second entity, the first entity only needs to determine whether the resources managed by itself satisfy the first resource feature, and therefore as long as the resources satisfy the first resource feature, the first entity transmits the notification message to the second entity without the second entity requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(43) In an example, the first resource feature is at least one resource structure, and step 202 may comprise: determining whether the structure of the resources satisfies any of the at least one resource structure.
(44) In an example, the first resource feature is at least one resource structure described by at least one semantic descriptor, and step 202 may comprise: determining whether the structure of the resources satisfies any of the at least one resource structure.
(45) In an example, the first resource feature is at least one index, which points to at least one resource structure, and step 202 may comprise: determining whether the structure of the resources satisfies any of the at least one resource structure.
(46) In an example, the first resource feature is at least one index, which points to at least one resource structure described by at least one resource descriptor, and step 202 may comprise: determining whether the structure of the resources satisfies any of the at least one resource structure.
(47) In an example, before step 201, the information notification method may further comprise: creating a first subscribed resource which comprises information for indicating the first resource feature; and
(48) step 201 may comprise:
(49) determining the first resource feature according to the first subscribed resource.
(50) In an example, after the first subscribed resource is created, the information notification method may further comprise: setting an enabling attribute of the first subscribed resource to be true.
(51) In an example, before step 202, the information notification method may further comprise:
(52) receiving a resource operation request transmitted by a third entity, wherein the resource operation request comprises a resource acquisition request, a resource update request, a resource notification request, a resource discovery request, or a resource deletion request; or
(53) receiving a resource creation request transmitted by the third entity and creating resources.
(54) In an example, before step 203, the information notification method may further comprise:
(55) creating a second subscribed resource in the resources if the structure of the resources satisfies a reference resource feature; and
(56) step 203 may comprise: transmitting a notification message to the second entity according to the second subscribed resource.
(57) In an example, after step 203, the information notification method may further comprise:
(58) creating a second subscribed resource in the resources; and
(59) transmitting a notification message to the second entity according to the second subscribed resource when the resources are changed.
(60) In an example, the structure of the resources comprises a resource relationship and a resource type.
(61) In an example, before the first subscribed resource is created, the information notification method may further comprise:
(62) receiving a creation request transmitted by the second entity; and
(63) creating a first subscribed resource comprises:
(64) creating the first subscribed resource according to the creation request.
(65) In summary, in the information notification method according to the embodiments of the present application, before the first entity transmits the notification message to the second entity, the first entity only needs to determine whether the resources managed by itself satisfy the first resource feature, and therefore as long as the resources satisfy the first resource feature, the first entity transmits the notification message to the second entity without the second entity requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(66) As shown in
(67) In step 301, a creation request is transmitted to the first entity, so that the first entity creates a first subscribed resource according to the creation request, determines a first resource feature according to the first subscribed resource, and determines whether a structure of resources satisfies the first resource feature.
(68) In step 302, a notification message which is transmitted by the first entity when determining that the resources satisfy the first resource feature is received.
(69) In summary, in the information notification method according to the embodiments of the present application, the second entity transmits a creation request to the first entity in advance, so that the first entity creates a first subscribed resource, determines a first resource feature according to the first subscribed resource, determines whether resources satisfy the first resource feature, and transmits a notification message to the second entity when the resources satisfy the first resource feature. That is, in the embodiments of the present application, the second entity may trigger the first entity to transmit multiple notification messages about the resources to the second entity without requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(70)
(71) In step 401, the first entity determines a first resource feature.
(72) For example, the first entity determines the first resource feature in the following aspects.
(73) In a first aspect,
(74) In step 4011a, the second entity transmits a creation request to the first entity.
(75) the second entity may generate a creation request for creating a first subscribed resource when the second entity needs to receive a notification message transmitted by the first entity, and transmit the generated creation request to the first entity.
(76) It should be illustrated that the creation request may comprise two parts. On one hand, one part of the request may comprise an instruction for creating a subscribed resource, and the other part of the request may be empty; and on the other hand, one part of the request may comprise an instruction for creating a subscribed resource, and the other part of the request may comprise information for creating the subscribed resource, for example, information of the first resource feature. For example, the creation request may be used for creating a resource <structured Based Subscription>, i.e., creating a “structure-based resource.”
(77) In step 4012a, the first entity creates a first subscribed resource according to the creation request.
(78) After the first entity receives the creation request, the first entity may create a first subscribed resource according to a pre-stored first resource feature if the creation request only comprises an instruction for creating a subscribed resource, wherein the first subscribed resource may comprise information for indicating the first resource feature. The first entity may directly create the first subscribed resource according to the information for indicating the first resource feature in the creation request if the creation request comprises not only the instruction for creating the subscribed resource, but also comprises the information for indicating the first resource feature, so that the created first subscribed resource comprises the information for indicating the first resource feature.
(79) Specifically, the information contained in the first subscribed resource may be information contained in the first subscribed resource in the following implementations.
(80) In a first implementation, the first resource feature may comprise at least one resource structure, and the information for indicating the first resource feature in the first subscribed resource may be a list of structures comprising at least one resource structure. For example, the list of structures may be as shown in Table 1. The list of structures may comprise a resource structure 1, a resource structure 2, and a resource structure 3, that is, the information contained in the first subscribed resource is a list of structures.
(81) TABLE-US-00001 TABLE 1 Resource structure 1 Resource structure 2 Resource structure 3
(82) In the first implementation, the first subscribed resource <structured Based Subscription> created by the first entity may comprise: <Subscription> (indicating that <structured Based Subscription> may be subscribed) and a list of structures, which comprises multiple <AE>/container>/<container> (a resource structure used to represent <AE>/container>/<container>).
(83) In a second implementation, the first resource feature may comprise at least one resource structure described by at least one semantic descriptor, and each of the at least one semantic descriptor may be used to describe a resource feature. Information for indicating the first resource feature in the first subscribed resource may be a list of descriptors comprising the at least one semantic descriptor, and each of the at least one semantic descriptor may be used to describe a resource structure. For example, the list of descriptors may be as shown in Table 2. The list of descriptors may comprise a semantic descriptor 1 for describing the resource structure 1, a semantic descriptor 2 for describing the resource structure 2, and a semantic description 3 for describing the resource structure 3, that is, the information contained in the first subscribed resource is a list of descriptors.
(84) TABLE-US-00002 TABLE 2 Semantic descriptor 1 Semantic descriptor 2 Semantic descriptor 3
(85) In the second implementation, the first subscribed resource <Structured Based Subscription> may comprise: <Subscription> and a list of descriptors, and the list of descriptors may comprise multiple <AE>/<Semantic Descriptor> (a semantic description of which a framework may be a Resource Description Framework (RDF)).
(86) In a third implementation, the first resource feature may comprise at least one index, which points to at least one resource structure, and the information for indicating the first resource feature in the first subscribed resource may be a list of indexes. The list of indexes comprises at least one index, which may be used to point to at least one resource structure, and the at least one resource structure may constitute a list of structures. For example, the list of indexes may be as shown in Table 3. The list of indexes may comprise an index 1 for pointing to the resource structure 1, an index 2 for pointing to the resource structure 2, and an index 3 for pointing to the resource structure 3. The first subscribed resource may comprise the list of indexes. The resource structure 1, the resource structure 2, and the resource structure 3 may constitute the list of structures as shown in Table 1. That is, the information contained in the first subscribed resource is a list of indexes.
(87) TABLE-US-00003 TABLE 3 Index 1 Index 2 Index 3
(88) In the third implementation, the first subscribed resource <Structured Based Subscription> may comprise: <Subscription> and a list of indexes, wherein the list of indexes may comprise multiple subscribed resource indexes (or Subscribed Resource Refs), which are used to point to multiple resource structures, and the resource structures to which the multiple subscribed resource indexes point may be <AE1>/<container>.
(89) In a fourth implementation, the first resource feature may comprise at least one resource structure described by at least one semantic descriptor to which at least one index points, wherein each of the at least one index may be used to point to a semantic descriptor, and each of the at least one semantic descriptor may be used to describe a resource feature. The information for pointing to the first resource feature in the first subscribed resource may be a list of indexes, which may comprise the at least one index. For example, the list of indexes may be as shown in Table 4. The list of indexes may comprise an index 4 for pointing to the semantic descriptor 1, an index 5 for pointing to the semantic descriptor 2, and an index 6 for pointing to the semantic descriptor 3. The first subscribed resource may comprise the list of indexes. The semantic descriptor 1, the semantic descriptor 2, and the semantic descriptor 3 may constitute the list of descriptors as shown in Table 2. That is, the information contained in the first subscribed resource is a list of indexes.
(90) TABLE-US-00004 TABLE 4 Index 5 Index 6 Index 7
(91) In the fourth implementation, the first subscribed resource <Structured Based Subscription> may comprise: <Subscription> and a list of indexes, wherein the list of indexes may comprise multiple subscribed resource indexes (or Subscribed Resource Refs) for pointing to multiple semantic descriptors.
(92) It should be illustrated that the structure of the resources in the embodiments of the present application comprises a resource relationship and a resource type, and the resource relationship is used to represent a connection relationship among various types of resources in the resources.
(93) In step 4013a, the first entity transmits a creation response to the second entity.
(94) For example, after the first entity creates the first subscribed resource, the first entity may further transmit, to the second entity, a creation response for indicating that the first subscribed resource has been created, so that, after receiving the creation response, the second entity may determine that the first entity has created the first subscribed resource.
(95) In step 4014a, the first entity determines the first resource feature according to the first subscribed resource.
(96) After the first entity creates the first subscribed resource, the first entity may determine the first resource feature according to the first subscribed resource. That is, the first entity determines a resource structure and a resource type in the first resource feature.
(97) It should be illustrated that, in each of the four implementations described in step 4012a, the first subscribed resource comprises one type of information, which may be used to indicate at least one resource structure. In practical applications, the first subscribed resource may further comprise at least two types of information among four types of information (comprising information contained in the first subscribed resource in all the four implementations described above), and one type of information may be selected from the two types of information using a preset rule, and a first resource feature indicated by the information is used as the first resource feature obtained in step 4014a when the first resource feature is determined in step 4014a.
(98) In a second aspect,
(99) In step 4011b, the first entity creates a first subscribed resource.
(100) For example, in the method shown in
(101) It should be illustrated that the information contained in the first subscribed resource created by the first entity in step 4011b may be known with reference to the specific description of the information contained in the first subscribed resource in step 4012a, and will not be described in detail here in the embodiments of the present application.
(102) In step 4012b, the first entity determines the first resource feature according to the first subscribed resource.
(103) After creating the first subscribed resource, the first entity may directly determine the first resource feature according to the first subscribed resource. Alternatively, before creating the first subscribed resource, the first entity may determine the first resource feature according to the pre-stored first resource feature.
(104) In step 402, the first entity determines resources.
(105) For example, the first entity may determine the resources in the following aspects.
(106) In a first aspect,
(107) In step 4021a, a third entity transmits a resource operation request to the first entity.
(108) For example, the third entity may be the third entity C in the scenario diagram shown in
(109) In step 4022a, the first entity changes the resources managed by itself according to the resource operation request.
(110) After receiving the resource operation request, the first entity may change the resources managed by itself according to the resource operation request, for example, transmit information contained in a certain resource managed by itself to the third entity according to the resource operation request, or update information contained in a certain resource managed by itself according to the resource operation request, or delete a certain resource managed by itself and information contained in the resource according to the resource operation request.
(111) In step 4023a, the first entity transmits a change response to the third entity.
(112) After the first entity changes the resources corresponding to the resource operation request transmitted by the third entity according to the resource operation request, the first entity may transmit a change response for indicating that the change is completed to the third entity, so that the third entity may determine that the first entity has changed the resources according to the resource operation request after receiving the change response.
(113) In step 4024a, the first entity determines the changed resources.
(114) In the embodiment shown in
(115) Further, the embodiments shown in
(116) It should be illustrated that, in step 4021a, the third entity may further transmit a resource creation request to the first entity, in step 4022a, the first entity may create resources in the resources managed by itself according to the resource creation request, in step 4023a, the first entity transmits a creation response to the third entity, and in 4024a, the first entity may determine the created resources.
(117) In a second aspect,
(118) In step 4021b, the first entity determines, among at least two resources managed by itself, non-subscribed resources corresponding to the second entity.
(119) In the embodiment shown in
(120) In step 4022b, the first entity determines any of the non-subscribed resources corresponding to the second entity.
(121) After determining the non-subscribed resources corresponding to the second entity, the first entity may directly determine any of the non-subscribed resources corresponding to the second entity.
(122) In an example, when the resource feature is a resource structure, in step 4022b, the first entity may further directly determine, among the non-subscribed resources corresponding to the second entity, a resource having a level less than or equal to that of the resource structure recorded in the first subscribed resource. Alternatively, in step 4022b, the first entity may further directly determine, among the non-subscribed resources corresponding to the second entity, a resource having a level equal to that of the resource structure recorded in the first subscribed resource.
(123) In a third aspect,
(124) In step 4021c, the first entity determines any non-subscribed resource among at least two resources managed by itself.
(125) In step 4021c, after the first entity determines the first resource feature, the first entity may directly determine any non-subscribed resource among the at least two resources managed by itself.
(126) In an example, when the resource feature is a resource structure, in step 4021c, the first entity may further directly determine, among the at least two resources managed by itself, a resource having a level less than or equal to that of the resource structure recorded in the first subscribed resource. Alternatively, in step 4021c, the first entity may further directly determine, among the at least two resources managed by itself, a resource having a level equal to that of the resource structure recorded in the first subscribed resource.
(127) In step 403, the first entity determines whether the determined resource satisfies the first resource feature. Step 404 is performed if the determined resource satisfies the first resource feature; and step 406 is performed if the determined resource does not satisfy the first resource feature.
(128) After determining the first resource feature and the resource, the first entity may determine whether the resource satisfies (that is, has) the first resource feature. For example, the first resource feature may be a resource structure, and the first entity may compare the structure of the determined resource with the resource structures indicated by the information in the first subscribed resource, to determine whether the structure of the determined resource belongs to the resource structures indicated by the information in the first subscribed resource, i.e., determining whether there is a resource structure existing in the resource structures indicated by the information in the first subscribed resource, which is the same as the structure of the determined resource.
(129) The first entity may determine that the determined resource satisfies the first resource feature if there is a resource structure existing in the resource structures indicated by the information in the first subscribed resource, which is the same as the structure of the determined resource; and the first entity may determine that the determined resource does not satisfy the first resource feature if there is no resource structure existing in the resource structures indicated by the information in the first subscribed resource, which is the same as the structure of the determined resource.
(130) In step 404, the first entity transmits a notification message to the second entity.
(131) For example, the first entity may transmit the notification message to the second entity in the following aspects.
(132) In a first aspect,
(133) In step 4041a, the first entity creates a second subscribed resource in the determined resource.
(134) In the embodiment shown in
(135) In step 4042a, the first entity transmits a notification message to the second entity according to the second subscribed resource.
(136) After creating the second subscribed resource, the first entity may directly transmit a notification message to the second entity according to the second subscribed resource. For example, the notification message may be used to indicate information contained in the determined resource, or to indicate a change condition of the information contained in the determined resource.
(137) It should be illustrated that, after step 4042a, the first entity may further monitor whether the determined resource has been changed in real time, and transmit a notification message to the second entity in real time when the determined resource has been changed. For example, the determined resource may be: <AE1>/container>/<container>, and the second subscribed resource created in the determined resource may be: <AE1>/container>/<container>/<subscription>. The first entity may transmit a notification message to the second entity according to the second subscribed resource when the determined resource has been changed.
(138) In a second aspect,
(139) In step 4041b, the first entity creates a second subscribed resource in the determined resource.
(140) A specific step of the first entity creating a second subscribed resource in step 4041b may be known with reference to the specific step in step 4041a in the embodiment shown in
(141) In step 4042b, the first entity determines whether the determined resource has been changed. Step 4043b is performed if the determined resource has been changed; and Step 406 is performed if the determined resource has not been changed.
(142) In step 4042b, the first entity needs to determine whether the determined resource has been changed within a time period in which a current time point is located. Step 4043b is performed if the determined resource has been changed.
(143) In step 4043b, the first entity transmits a notification message to the second entity according to the second subscribed resource.
(144) Specifically, the second subscribed resource may comprise information for indicating an address of the second entity, and the first entity may transmit a notification message to the second entity according to the second subscribed resource.
(145) In a third aspect,
(146) In step 4041c, the first entity transmits a notification message to the second entity.
(147) In the embodiment shown in
(148) In step 405, the second entity transmits a notification response to the first entity.
(149) After receiving the notification message, the second entity may transmit, to the first entity, a notification response for indicating that the notification message has been received, so that, after receiving the notification response, the first entity may know that the second entity has received the notification message transmitted by the first entity.
(150) In step 406, the first entity is prohibited from transmitting the notification message to the second entity.
(151) For example, the process of the first entity notifying the second entity of a change of information of one determined resource is merely briefly described in the embodiment shown in
(152) It should be illustrated that, the first entity may further set an enabling attribute of the first subscribed resource to be true after the first subscribed resource is created in step 4012a or step 4011b if step 402 is implemented in the manner shown in
(153) If the first entity transmits the notification message to the second entity in step 404 in the manner shown in
(154) Further, in the information notification method shown in
(155) In summary, in the information notification method according to the embodiments of the present application, before the first entity transmits the notification message to the second entity, the first entity only needs to determine whether the resources managed by itself satisfy the first resource feature, and therefore as long as the resources satisfy the first resource feature, the first entity transmits the notification message to the second entity without the second entity requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(156) As shown in
(157) a determination unit 1301 configured to determine a first resource feature;
(158) a judgment unit 1302 configured to determine whether a structure of resources satisfies the first resource feature;
(159) a first transmission unit 1303 configured to transmit a notification message to the second entity when the structure of the resources satisfies the first resource feature.
(160) In summary, in the information notification method according to the embodiments of the present application, before the first transmission unit in the first entity transmits the notification message to the second entity, the judgment unit only needs to determine whether the resources managed by the first entity satisfy the first resource feature, and therefore as long as the resources satisfy the first resource feature, the first transmission unit transmits the notification message to the second entity without the second entity requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(161) In an example, the first resource feature is at least one resource structure, and the judgment unit 1302 is further configured to determine whether the structure of the resources satisfies any of the at least one resource structure.
(162) In an example, the first resource feature is at least one resource structure described by at least one semantic descriptor, and the judgment unit 1302 is further configured to determine whether the structure of the resources satisfies any of the at least one resource structure.
(163) In an example, the first resource feature is at least one index, which points to at least one resource structure, and the judgment unit 1302 is further configured to determine whether the structure of the resources satisfies any of the at least one resource structure.
(164) In an example, the first resource feature is at least one index, which points to at least one resource structure described by at least one resource descriptor, and the judgment unit 1302 is further configured to determine whether the structure of the resources satisfies any of the at least one resource structure.
(165) In an example,
(166) a first creation unit 1304 configured to create a first subscribed resource which comprises information for indicating the first resource feature; and
(167) the determination unit 1301 is further configured to determine the first resource feature according to the first subscribed resource.
(168) In an example,
(169) a setting unit 1305 configured to set an enabling attribute of the first subscribed resource to be true.
(170) In an example,
(171) a first receiving unit 1306 configured to receive a resource operation request transmitted by a third entity, wherein the resource operation request comprises a resource acquisition request, a resource update request, a resource notification request, a resource discovery request, or a resource deletion request; or
(172)
(173) a second receiving unit 1307 configured to receive a resource creation request transmitted by the third entity and create resources.
(174) In an example,
(175) a second creation unit 1308 configured to create a second subscribed resource in the resources when the structure of the resources satisfies a reference resource feature; and
(176) the first transmission unit 1303 is further configured to transmit a notification message to the second entity according to the second subscribed resource.
(177) In an example,
(178) a third creation unit 1309 configured to create a second subscribed resource in the resources; and
(179) a second transmission unit 1310 configured to transmit a notification message to the second entity according to the second subscribed resource when the resources are changed.
(180) In an example, the structure of the resources comprises a resource relationship and a resource type.
(181) As shown in
(182) a third receiving unit 1311 configured to receive a creation request transmitted by the second entity; and
(183) the first creation unit 1304 is further configured to create the first subscribed resource according to the creation request.
(184) In summary, in the information notification apparatus according to the embodiments of the present application, before the first transmission unit in the first entity transmits the notification message to the second entity, the judgment unit only needs to determine whether the resources managed by the first entity satisfy the first resource feature, and therefore as long as the resources satisfy the first resource feature, the first transmission unit transmits the notification message to the second entity without the second entity requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(185)
(186) a transmission unit 2001 configured to transmit a creation request to the first entity, so that the first entity creates a first subscribed resource according to the creation request, determines a first resource feature according to the first subscribed resource, and determines whether a structure of resources satisfies the first resource feature; and
(187) a receiving unit 2002 configured to receive a notification message which is transmitted by the first entity when determining that the resources satisfy the first resource feature.
(188) In summary, in the present embodiment, the transmission unit in the second entity transmits a creation request to the first entity in advance, so that the first entity creates a first subscribed resource, determines a first resource feature according to the first subscribed resource, determines whether resources satisfy the first resource feature, and transmits a notification message to the second entity when the resources satisfy the first resource feature. That is, in the embodiments of the present application, the second entity may trigger the first entity to transmit multiple notification messages about the resources to the second entity without requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(189) The embodiments of the present application provide an information notification system, which may comprise the first entity A, the second entity B, and the third entity C as shown in
(190) In an example, the first entity may be a CSE, the second entity may be an AE or a CSE, and the third entity may be an AE or a CSE. For example, the first entity may be an Internet of Things management device, which may comprise a CSE, the second entity may be a mobile phone, which comprises an AE or a CSE, and the third entity may be a smart home device, which comprises an AE or a CSE.
(191) In summary, in the information notification system according to the embodiments of the present application, before the first entity transmits the notification message to the second entity, the first entity only needs to determine whether the resources managed by the first entity satisfy the first resource feature, and therefore as long as the resources satisfy the first resource feature, the first entity transmits the notification message to the second entity without the second entity requesting the first entity to create multiple subscribed resources, thereby reducing a number of information notification steps and improving the efficiency of the subscription notification.
(192) All entities (comprising an AE, a CSE, data, etc.) according to the embodiments of the present application are represented by resources. Each of the resources may be uniquely identified, and comprises an attribute and a child resource, wherein the attribute is used to store resource-related information, and the child resource is a lower-level resource of the resource. The resource comprises an index pointing to the child resource.
(193) The present disclosure supports the following two definitions of a resource structure:
(194) First definition of the resource structure: The resource structure refers to a tree-shaped structure composed of resources according to a certain logical relationship. For a certain resource, an upper-level resource is a parent resource, and a lower-level resource is a child resource. For a root resource, it does not have a parent resource but only has a child-resource. The resource and the child resource constitute a two-level resource structure, and the parent resource, the resource, and the child resource constitute a three-level resource structure. The resource structures are the same when resource structures have the same tree-shaped structure. For example, The two resource structures are the same when each of two resource structures comprises a root resource, a resource, and a child resource.
(195) Second definition of the resource structure: The resource structure refers to a tree-shaped structure composed of various types of resources according to a certain logical relationship. For a certain resource, an upper-level resource is a parent resource, and a lower-level resource is a child resource. For a root resource, it does not have a parent resource but only has a child-resource. The resource and the child resource constitute a two-level resource structure, and the parent resource, the resource, and the child resource constitute a three-level resource structure. the resource structures are the same when resource structures have the same tree-shaped structure and resources in each layer have the same type. For example, a resource (type B), and a child resource (type C), the two resource structures are the same when each of two resource structures comprise a root resource (type A).
(196) It should be illustrated that the embodiments of the information notification method, the embodiments of the information notification apparatus, and the embodiments of the information notification system according to the embodiments of the present application may refer to each other, and will not be described in detail here in the embodiments of the present application.
(197) The above description is merely optional embodiments of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall fall within the protection scope of the present application.