Method, apparatus, device and storage medium for subscribing to resources in the field of Internet of Things
The method and apparatus for subscribing to resources in the Internet of Things field address the inefficiencies and lack of diversity in existing subscription methods by allowing subscriptions to associated entities, enhancing resource accessibility and flexibility.
Patent Information
- Application Number
- JP2021569527
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-05-23
- Filing Date
- 2020-05-21
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2040-05-21
AI Technical Summary
Existing methods for subscribing to resources in the Internet of Things field lack efficiency and diversity in managing subscriptions to associated entities, leading to limited resource accessibility and inflexible subscription modes.
A method and apparatus for subscribing to resources that involve a service entity receiving a subscription request, determining an associated second entity, generating a subscription to the second entity, and sending a subscription response, allowing for diverse subscription modes based on the state of the second entity.
This approach enables efficient subscription to a broader range of resources by allowing subscriptions to associated entities, thereby enhancing resource accessibility and providing flexible subscription modes tailored to the state of these entities.
Smart Images

Figure 0007653371000001 
Figure 0007653371000002 
Figure 0007653371000003
Abstract
Description
[Technical field]
[0001] This application claims priority to Chinese Patent Application No. 201910433275.7, filed on May 23, 2019, the entire contents of which are incorporated herein by reference as part of this application.
[0002] The present application relates to the field of resource subscription, and in particular to a method, an apparatus, a device and a storage medium for subscribing to a resource in the field of the Internet of Things. [Background technology]
[0003] With the development of information technology, especially Internet technology, Internet of Things technology for realizing informationization, remote management control and intelligence is gradually maturing. Internet of Things uses communication technologies such as local network and Internet to connect sensors, controllers, devices, people and things in a new way, forming connections between people and things and between things and things. As Internet of Things technology develops rapidly in various application fields, more and more devices access the Internet of Things, and various new application fields such as smart home, smart transportation and smart health are emerging.
[0004] As the networking of things progresses, more and more application entities access the cloud, and the application entities are constantly digitized, forming corresponding virtual entities (called digital twins) for the application entities in the cloud. Applications can realize operations such as obtaining status and sending commands to the application entities by controlling the virtual entities in the cloud. In order for an application entity to access the cloud, it needs to access the network of things platform by registering, and the network of things platform generates corresponding resources for the application entities, and the application can obtain the state changes of the application entities by subscribing to the resources corresponding to the application entities. Summary of the Invention [Problem to be solved by the invention]
[0005] The present application provides a method, an apparatus, a device, and a storage medium for subscribing to resources in the Internet of Things field. [Means for solving the problem]
[0006] According to one aspect of the present disclosure, a method for subscribing to a resource is provided, the method for subscribing to a resource includes steps of: a service entity receiving a subscription request for a first entity from a third entity; determining a second entity related to the first entity; generating a subscription for at least the second entity; and sending a subscription response to indicate a result of the subscription.
[0007] According to one aspect of the present disclosure, a method for subscribing to another resource is provided, the method for subscribing to another resource comprising: sending a subscription request to a first entity; and receiving a subscription response to the subscription request, wherein the second entity and the first entity are associated, and the subscription response indicates at least a result of generating a subscription to the second entity.
[0008] According to another aspect of the present disclosure, an apparatus is provided for subscribing to a resource, the apparatus for subscribing to a resource including: a receiving unit for a service entity to receive a subscription request for a first entity from a third entity; a determining unit for determining a second entity related to the first entity; a generating unit for generating a subscription for at least the second entity; and a sending unit for sending a subscription response to indicate a result of the subscription.
[0009] According to yet another aspect of the present disclosure, a device for subscribing to a resource is provided, the device for subscribing to a resource including: a memory configured to store computer-readable instructions; and a processor configured to execute the computer-readable instructions stored in the memory, wherein when the processor executes the computer-readable instructions, the device performs the following steps: a service entity receives a subscription request for a first entity from a third entity; determines a second entity related to the first entity; generates a subscription for at least the second entity; and sends a subscription response to indicate a result of the subscription.
[0010] According to yet another aspect of the present disclosure, a computer-readable storage medium having computer-readable instructions stored thereon, which when executed by a computer, causes the computer to perform a method for subscribing to a resource, the method including the steps of: a service entity receiving a subscription request for a first entity from a third entity; determining a second entity related to the first entity; generating a subscription for at least the second entity; and sending a subscription response to indicate a result of the subscription. Effect of the Invention
[0011] In the above aspect of the present disclosure, a subscription to a second entity related to a first entity can be realized by sending a subscription response to a third entity to indicate a result of generating a subscription to the second entity according to a state of the second entity, thereby making the subscription resource more abundant, and creating different subscription modes according to the state of the second entity, thereby realizing the diversification of modes in different cases. [Brief description of the drawings]
[0012] The above and other objects, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail with reference to the drawings. The drawings are used to provide a further understanding of the embodiments of the present disclosure, constitute a part of the specification, and are used to explain the present disclosure together with the embodiments of the present disclosure, and are not intended to limit the present disclosure. In the drawings, the same reference numerals generally represent the same parts or steps. [Figure 1] FIG. 1 is a schematic diagram of a system for subscribing to resources for implementing an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a flowchart of a method for subscribing to a resource according to an embodiment of the present disclosure. [Diagram 3]FIG. 3 is a flowchart of a method for creating a subscription to a second entity according to an embodiment of the present disclosure. [Figure 4] FIG. 4 is a flowchart of another method for creating a subscription to a second entity according to an embodiment of the present disclosure. [Diagram 5] FIG. 5 is a flowchart of another method for subscribing to a resource according to an embodiment of the present disclosure. [Figure 6] FIG. 6 is a schematic diagram of a method for subscribing to a resource according to a first example of the present disclosure. [Figure 7] FIG. 7 is a schematic diagram of a method for subscribing to a resource according to a second embodiment of the present disclosure. [Figure 8] FIG. 8 is a schematic diagram of a method for subscribing to a resource according to a third embodiment of the present disclosure. [Figure 9] FIG. 9 is a schematic diagram of an apparatus for subscribing to a resource according to an embodiment of the present disclosure. [Figure 10] FIG. 10 is a schematic diagram of a device for subscribing to a resource according to an embodiment of the present disclosure. [Figure 11] FIG. 11 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] The technical solutions in the embodiments of the present disclosure will be described below clearly and completely with reference to the drawings in the embodiments of the present disclosure. It is clear that the described embodiments are only some embodiments of the present disclosure, and are not all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative labor belong to the protection scope of the present disclosure.
[0014] The terms "first," "second," and similar terms used in this disclosure do not denote any order, quantity, or importance, but merely distinguish between different elements. Similarly, similar terms such as "comprises" or "includes" include the elements or components appearing before the term inclusive of the elements or items listed after the term and equivalents thereof, but do not exclude other elements or components. Similar terms such as "coupled" or "connected to each other" are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
[0015] In some embodiments, typically, a sender (e.g., a subscriber) sends a request to a receiver (e.g., a service entity) to create a subscription resource, the receiver creates a subscription at the subscribed resource, and the receiver sends a subscription response to the notified party, such that the receiver has subscribed only to the target resource specified in the sender's subscription request, preventing the subscribed content from satisfying the application's requirements.
[0016] In this application, flow charts are used to describe steps of methods according to embodiments of the application. It should be understood that previous or subsequent steps do not necessarily occur in exact order. Conversely, various steps may be reversed or processed simultaneously. Also, other operations may be added to these processes, or steps or steps may be removed from these processes.
[0017] As an extension of the Internet, the Internet of Things includes the Internet and all resources on the Internet, and is compatible with all applications on the Internet. As Internet of Things technology is applied in various fields, various new smart Internet of Things application fields such as smart rooms, smart transportation, and smart health are emerging.
[0018] With the development of Internet of Things technology, more and more terminal devices, such as smoke alarms, fire alarms, manhole cover movement sensors, etc., access the Internet of Things platform. The Internet of Things platform may be realized, for example, as a Common Service Entity (CSE), and a terminal device may access the Common Service Entity by sending registration information to the Common Service Entity, and the Common Service Entity manages the accessed terminal device. The terminal device may be represented as an Application Entity (AE), and an application entity that has accessed the Common Service Entity can perform operations such as data transmission and information interaction with the Common Service Entity. It should be noted that the application entity described in this specification may be an Internet of Things terminal device, or may be an application software module, etc. in the Internet of Things terminal device, or may be an application software module in an Internet of Things server.
[0019] An Application Entity (AE) and a Common Service Entity (CSE) are logical entities, a physical device includes logical entities, a simple terminal device may include only an application entity, and a complex terminal device may include an application entity and a common service entity. For example, a server includes at least a common service entity and may include an application entity at the same time. The difference between a common service entity included in a terminal device and a common service entity included in a server lies in the difference in functions. Generally, the common service entity of a server includes more functions, such as device management. The common service entity described in this specification may be a service software module in an Internet of Things terminal device or a service software module in an Internet of Things server.
[0020] In the present disclosure, in response to a subscription request by a subscriber for a desired application entity, a subscription for an application entity associated with the desired application entity can be generated, and different subscription modes can be generated for the state of the application entity associated with the desired application entity, thereby achieving subscription diversification.
[0021] First, with reference to FIG. 1, a system for subscribing to a resource for implementing an embodiment of the present disclosure will be described.
[0022] As shown in FIG. 1, in the Internet of Things system, the initiator of the subscription request may be an application entity or a generic service entity. Taking the application entity as an example, the application entity sends a subscription request 10 for an object 11 to the generic service entity. For example, when the generic service entity receives the subscription request for the object 11, it can directly create a subscription for the object 11 and send a subscription response 16 to the application entity indicating that the subscription for the object 11 has been created. In some embodiments, as shown in FIG. 1, when the generic service entity receives the subscription request for the object 11, it determines whether there is a related object 13, and if there is a related object 13, it creates a subscription for the related object 13 or for the object 11 and the related object 13 by determining the state (14) of the related object, and then the generic service entity sends a subscription response 16 to the application entity indicating that the subscription for the related object 13 or the object 11 and the related object 13 has been created. As described above, subscriptions for related objects related to an object can be realized, thereby making the subscribing resources more abundant. For example, if an initiator of a subscription request does not know the related object or does not have the authority to know the related object, the initiator of the subscription request can realize a subscription to the related object through the system described in Fig. 1, so as to enrich the subscribing resource and improve the efficiency of the system. Note that, the second entity may be one or more entities.
[0023] Hereinafter, a method 100 for subscribing to a resource in an Internet of Things field according to an embodiment of the present disclosure will be described with reference to FIG. 2. The method may be performed by a general-purpose service entity (e.g., a retail server). The Internet of Things subscribing to a resource includes the following steps S101 to S104.
[0024] In step S101, the service entity receives a subscription request for the first entity from a third entity.
[0025] In step S102, a second entity related to the first entity is determined.
[0026] In step S103, a subscription is generated for at least the second entity.
[0027] In step S104, a subscription response is sent to indicate the result of the subscription.
[0028] 2, in step S101, the service entity receives a subscription request for the first entity from a third entity. For example, the service entity can receive a request from the third entity carrying correlation information including a subscription request for the first entity.
[0029] For example, the first entity (AE1) may be a virtual electronic tag for indicating corresponding product information managed by the service entity. This virtual electronic tag is a digital twin of a physical electronic tag, includes attributes such as an electronic tag identifier and an identifier of the product, and is associated with (or bound to) a corresponding product through the identifier (ID) of the product. For example, the first entity may be a virtual shelf electronic tag, and is associated with a corresponding product on a shelf through the identifier of the product. The third entity (AE3) may be a shelf management application or a virtual shopping terminal. For example, in this step, the general-purpose service entity receives a subscription request for the shelf electronic tag AE1 by AE3 (shelf management application or shopping terminal).
[0030] Then, in step S102, a second entity related to the first entity is determined.
[0031] For example, the second entity (AE2) may be a virtual electronic tag managed by the service entity for indicating corresponding product information. For example, the second entity may be a virtual inventory electronic tag, which is associated with the corresponding product in the inventory via the product identifier. For example, in this step, it may be determined that the inventory electronic tag AE2 is associated with the shelf electronic tag AE1.
[0032] For example, the generic service entity may determine a second entity associated with a first entity by determining whether the first entity and the second entity are for the same object, determining that the second entity is associated with the first entity if the first entity and the second entity are for the same object, and determining that the second entity is not associated with the first entity if the first entity and the second entity are for different objects.
[0033] For example, if a product associated with a first entity and a product associated with a second entity belong to the same category, the first entity and the second entity are considered to be for the same object. As one example, if a product associated with a first entity is a Fuji apple and a product associated with a second entity is a Huang Yuan Shuai apple (a type of apple in the Chinese region), it is determined that the two products belong to the same category (both belong to apples), i.e., the first entity and the second entity are considered to be for the same object. As another example, if a product associated with a first entity is a Fuji apple and a product associated with a second entity is a banana, it is determined that the two products do not belong to the same category, i.e., the first entity and the second entity are considered to be for different objects.
[0034] Also, for example, if a product associated with a first entity and a product associated with a second entity are completely the same, the first entity and the second entity are considered to be for the same object. As one example, if a product associated with a first entity is a Fuji apple and a product associated with a second entity is a Fuji apple, it can be determined that these two products are completely the same, that is, the first entity and the second entity can be considered to be for the same object.
[0035] Also, for example, the general-purpose service entity may determine a second entity related to a first entity by determining whether the first entity and the second entity belong to the same group, or by determining whether a related attribute of the first entity includes the second entity, or by determining whether a related attribute of the second entity includes the first entity. If it is determined that a condition is met, it is indicated that the first entity and the second entity are related to each other.
[0036] For example, different products are divided into different groups according to a predetermined rule, and the service entity can determine a second entity associated with the first entity by determining whether a first entity associated with (or bound to) the corresponding product and a second entity associated with (or bound to) the corresponding product belong to the same predetermined group. As an example, if apples on a shelf and bananas in stock can be divided into the same group according to a predetermined rule, and a shelf electronic tag associated with the apples on the shelf is the first entity, the service entity can determine an entity that belongs to the same group as the shelf electronic tag associated with the apples on the shelf, and determine a second entity (i.e., an inventory electronic tag) associated with the first entity.
[0037] In some embodiments, the generic service entity may determine second entities associated with said first entity according to association rules included in said subscription request.
[0038] For example, the association rule may be included in a subscription request received by the general-purpose service entity and sent by the shopping terminal. For example, the association rule may indicate that an entity bound to a product in the same category as a product associated with the first entity is the second entity. Then, the general-purpose service entity may determine the second entity associated with the first entity according to the association rule.
[0039] In some embodiments, an association strength existing between the first entity and the second entity is calculated, and if the association strength is greater than a pre-defined threshold, it is determined that the first entity and the second entity are associated.
[0040] For example, the association strength between a first entity and a second entity is obtained by determining the difference in the categories of products corresponding to the first entity and the second entity, and if the difference in the product categories is small, the association strength is indicated as high, whereas if the difference in categories is large, the association strength is indicated as low.
[0041] It should be noted that the second entity may be one or more entities.
[0042] After determining a second entity related to the first entity, then in step S103, generate a subscription for the second entity, where generating the subscription for the second entity includes one of two methods: (1) creating a subscription resource for the second entity; and (2) creating subscription resources for the first entity and the second entity.
[0043] Fig. 3 is a flowchart of a method 200 for generating a subscription to a second entity according to an embodiment of the present disclosure, and Fig. 4 is a flowchart of another method 200 for generating a subscription to a second entity according to an embodiment of the present disclosure. Hereinafter, the generating of the subscription to the second entity will be described with reference to Figs. 3-4.
[0044] As shown in Fig. 3, a flowchart of a method 200 for generating a subscription for a second entity according to an embodiment of the present disclosure is shown. As shown in Fig. 3, a subscription for the second entity can be generated by a method including: determining a subscription mode for the second entity according to a state of the second entity (S201); and generating a subscription for the second entity according to the determined subscription mode (S202).
[0045] For example, if the second entity is a virtual electronic tag in the retail field, the state of the second entity can be divided into two states: in stock and out of stock. Note that the state of the second entity is not limited thereto, and the second entity may be classified into any appropriate state according to circumstances, but is not limited here.
[0046] For example, the subscription modes include long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high-priority subscription, low-priority subscription, high-frequency message subscription, low-frequency message subscription, etc. In different subscription modes, one or more of message priority, subscription resource expiration date, notification content, number of notification messages, etc. can be different. Different subscription modes can be selected according to different cases (e.g., the state of the second entity), thereby improving the user experience. Then, each of the different subscription modes will be described in detail.
[0047] For example, depending on the length of the notification expiration period for reserving subscription resources, subscription modes can be divided into long-term subscription and short-term subscription, with the notification expiration period of long-term subscription being longer than that of short-term subscription. For example, in the case of long-term subscription mode, a long notification expiration period (e.g., one month) can be set, and if an event notification rule is satisfied within the expiration period, a notification can be sent to the notified party. On the other hand, for example, in the case of short-term subscription mode, a short notification expiration period (e.g., real-time transmission) can be set, and if an event notification rule is satisfied within the expiration period, a notification can be sent to the notified party.
[0048] For example, depending on the content of the notification for the subscription resource, the subscription mode can be divided into additional information subscription and predetermined information subscription. For example, in the case of the predetermined information subscription mode, when an event notification rule is satisfied for a certain product, detailed predetermined information such as the price, material, discount, etc. associated with the product in response to the predetermined information request can be sent to the notified party, and this predetermined information request can be included in the subscription request. For example, in the case of the additional information subscription mode, when an event notification rule is satisfied for a certain product, in addition to sending detailed predetermined information such as the price, material, discount, etc. associated with the product in response to the predetermined information request to the notified party, detailed additional information such as the price, material, discount, etc. associated with a product similar to the product can also be sent to the notified party, and this detailed additional information is not included in the subscription request.
[0049] For example, the subscription mode can be divided into high-priority subscription and low-priority subscription according to the priority of the notification for the subscribed resource, for example, in the case of the high-priority subscription mode, the notification can be sent earlier in time or multiple times to ensure that the notified party can receive the notification, compared to the low-priority subscription mode.
[0050] For example, according to the number of notification information for the subscription resource, the subscription mode can be divided into frequent message subscription and infrequent message subscription. For example, in the case of frequent information subscription mode, a short minimum notification time interval (e.g., 2 hours) can be set, and when the event notification rule is met, a notification is sent to the notified party, and the time between two consecutive notifications is not shorter than the minimum notification time interval. For example, in the case of infrequent information subscription mode, a long minimum notification time interval (e.g., 24 hours) can be set, and when the event notification rule is met, a notification is sent to the notified party, and the time between two consecutive notifications is not shorter than the minimum notification time interval.
[0051] Still referring to FIG. 3, for example, in step S301, a subscription mode for the second entity can be determined according to a state of the second entity. The state of the second entity is determined by attributes of the second entity, and the attributes of the second entity include object attributes (e.g., the object of the second entity is a product, and the object attributes are product information, including the number and size of products), and environmental attributes (e.g., people, things, objects, sounds, lights, etc. around the second entity). By determining the object attributes, the changes in the object can be adjusted in real time according to the changes in the object attributes, which can realize the diversification of the subscription mode, contribute to rapid adjustment according to environmental changes, and improve efficiency. By determining the changes in the environmental attributes, the environment of the object can be adjusted in real time, which can realize the diversification of the subscription mode, contribute to rapid adjustment according to environmental changes, and improve efficiency.
[0052] In one example, a first entity is a shelf electronic tag, a second entity related to the first entity is an inventory electronic tag, both the first entity and the second entity are for the same product A, the first entity includes the number of shelves for product A, the second entity includes the inventory quantity for product A, and if the second entity indicates that the inventory quantity for product A is zero, a long-term subscription can be selected (e.g., the notification expiration date can be set to one month, and if an event notification rule is met within the expiration date, a notification can be sent to the notified party), whereas if the second entity indicates that the inventory quantity for product A is not zero, a short-term subscription can be selected (e.g., the notification expiration date can be set to one week, and if an event notification rule is met, a notification message is sent to the notified party).
[0053] In another example, for a certain product, if the product is in stock, a subscription to specified information can be selected (e.g., when an event notification rule is satisfied, detailed specified information such as price, material, discounts, etc. associated with the product in response to a specified information request can be sent to the notified person), whereas if the product is out of stock, a subscription to additional information can be selected (e.g., in addition to sending detailed specified information such as price, material, discounts, etc. associated with the product in response to a specified information request to the notified person, detailed additional information such as price, material, discounts, etc. associated with products similar to the product can be sent to the notified person).
[0054] In one example, multiple subscription modes can be used simultaneously, where a first entity is a shelf electronic tag, a second entity related to the first entity is an inventory electronic tag, the first entity and the second entity are both for the same product A, the first entity includes the number of shelves for product A, the second entity includes the inventory quantity for product A, and when the second entity indicates that the inventory quantity for product A is zero, a long-term subscription and a low-frequency subscription can be selected (e.g., the notification expiration period can be set to one month, and when an event notification rule is met within the expiration period, processing such as caching and consolidation is performed on the event, and a notification is sent to the processed event notified entity), and while satisfying the requirements for the long-term subscription and the low-frequency subscription at the same time, when the second entity indicates that the inventory quantity for product A is not zero, a short-term subscription and a high-frequency subscription can be selected (e.g., the notification expiration period can be set to one week, and when the event notification rule is met, the event is not processed and a notification message is sent directly to the notified entity).
[0055] Similarly, one or more of high priority subscription (when the event notification rule is satisfied, a notification is sent with priority), low priority subscription (when the event notification rule is satisfied and there is no high priority event to be sent, a notification is sent directly), high frequency message subscription (when the event is not processed and the time notification rule is satisfied, a notification is sent directly), and low frequency message subscription (when the event is processed and then a notification is sent, the processing includes event caching, event integration, etc.) can be selected. It should be understood that the above subscription modes are merely examples, and one or more of long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, high frequency message subscription, low frequency message subscription, etc., or other suitable subscription modes may be selected in different cases, but will not be described again here.
[0056] After the subscription mode is determined, then in step S302, a subscription to the second entity is generated according to the determined subscription mode.
[0057] 4 shows a flowchart of another method 300 for generating a subscription for a second entity according to an embodiment of the present disclosure. As shown in FIG. 4, a subscription for the second entity may be generated by a method including: determining a subscription mode for the first entity and the second entity according to a state of the second entity (S301); and generating a subscription for the first entity and the second entity according to the determined subscription mode (S302). The selection of the subscription mode described in FIG. 4 is similar to the selection of the subscription mode described in FIG. 3 above, and will not be repeated here.
[0058] Returning to Figure 1, after the subscription to the second entity is created, in step S104, a subscription response is sent to indicate the outcome of the subscription, for example, a subscription response may be sent to a third entity or another entity, the subscription response indicating the outcome of the created subscription.
[0059] For example, when creating a subscription resource for the second entity, the subscription response is to indicate a result of creating the subscription resource for the second entity. In some embodiments, when creating subscription resources for the first entity and the second entity, the subscription response is to indicate a result of creating subscription resources for the first entity and the second entity.
[0060] After creating a subscription, if the event notification rule is satisfied, an event notification is sent to the notified party according to the subscription mode determined. The event notification rule is included in the subscription request.
[0061] Here, the subscription request may include multiple notified parties for receiving the event notification related to the subscription request. When the event notification rule of the subscriber is satisfied, the generic service entity sends the event notification to all notified parties included in the subscription request. For example, when the manhole cover is moved, the manhole cover movement sensor detects the change and sends update data to the generic service entity, and the generic service entity can determine whether the event notification rule is satisfied based on the update data of the manhole cover movement sensor. For example, when the subscription condition is manhole cover movement, the generic service entity determines that the event notification rule is satisfied and sends the event notification to all notified parties included in the subscription request requesting subscription to the event notification of the manhole cover movement, i.e., notifies all notified parties of the event that the manhole cover has been moved.
[0062] Hereinafter, another method 400 for subscribing to a resource according to an embodiment of the present disclosure will be described with reference to Fig. 5. The method may be performed by an application entity (eg, the above third entity AE3).
[0063] As shown in Fig. 5, in step S401, a subscription request is sent to a first entity. In step S402, a subscription response to the subscription request is received, where the second entity and the first entity are associated, and the subscription response is for indicating at least a result of creating a subscription to the second entity.
[0064] For example, the first entity (AE1) may be a virtual electronic tag for indicating corresponding product information managed by a service entity. The virtual electronic tag is associated with (or bound to) the corresponding product via an identifier (ID) of the product. For example, the first entity may be a virtual shelf electronic tag, and the third entity (AE3) may be a shelf management application or a virtual shopping terminal. For example, in this step, AE3 (e.g., shelf management application or shopping terminal) sends a subscription request for the shelf electronic tag AE1 to a general-purpose service entity. Then, AE3 receives a subscription response to the subscription request, where the second entity and the first entity are associated, and the subscription response is for indicating at least a result of generating a subscription to the second entity.
[0065] Here, the subscription request may include an association rule for creating an association relationship between the first application entity and the second application entity, whereby the generic service entity may further determine a second entity associated with the first entity according to the association rule included in the subscription request, for example, the association rule may indicate that the second entity is an entity bound to a product in the same category as a product associated with the first entity.
[0066] Here, the subscription response is generated based on a subscription mode for the subscription request determined according to a state of the second application entity.
[0067] For example, the subscription response is formed by determining a subscription mode for the second entity in response to a state of the second entity, and generating a subscription for the second entity in response to the determined subscription mode, the subscription response being for indicating at least a result of generating the subscription for the second entity.
[0068] In some embodiments, the subscription response may be formed by determining a subscription mode for the first entity and the second entity depending on the state of the second entity, and generating a subscription for the first entity and the second entity depending on the determined subscription mode, the subscription response for indicating a result of generating the subscription for the first entity and the second entity. The method of generating the subscription response is similar to the method described in Fig. 2, and will not be repeated here.
[0069] When the event notification rule is satisfied, the event notification is received based on the determined subscription mode.
[0070] Hereinafter, examples for subscribing to resources according to the embodiments of the present disclosure will be described in detail with reference to Figures 6 to 8. Figure 6 is a schematic diagram of a method for subscribing to resources according to a first example of the present disclosure, Figure 7 is a schematic diagram of a method for subscribing to resources according to a second example of the present disclosure, and Figure 8 is a schematic diagram of a method for subscribing to resources according to a third example of the present disclosure.
[0071] The Internet of Things may be composed of a generic service entity and a set of application entities, where the generic service entity may be a retail server, etc., and the application entities may be various sensor devices, user terminals such as mobile phones, or software modules in devices, such as mobile phone application programs, etc. The generic service entity manages the connected application entities and performs operations such as registration, data transfer, task execution, etc.
[0072] Example 1 6 illustrates a first example of subscribing to a resource according to the present disclosure. In this example, for example, a shelf management application entity of a market or supermarket initiates a subscription to adjust the cargo status of the market or supermarket in real time.
[0073] 6, for example, the retail server CSE 53 (service entity) receives registration requests from the shelf electronic tag AE1 51 (first entity), the inventory electronic tag AE2 52 (second entity), and the shelf management application AE3 54 (third entity) which is a subscriber, creates association relationships between the shelf electronic tag AE1 51, the inventory electronic tag AE2 52, and the shelf management application AE3 54, and updates these states according to changes in the states of the shelf electronic tag AE1 51, the inventory electronic tag AE2 52, and the shelf management application AE3 54 (55). Then, the retail server CSE 53 determines whether the product associated with the shelf electronic tag AE1 51 and the product associated with the inventory electronic tag AE2 52 are for products of the same category (56), and if the answer is "yes," creates an association between the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52 (57).
[0074] When the shelf management application AE3 54 sends a subscription request 59 for the shelf electronic tag AE1 51 to the retail server CSE 53, the retail server CSE 53 first determines whether the shelf electronic tag AE1 51 has an inventory electronic tag AE2 52 of a related object (numbered 60 in FIG. 6 ). If the shelf electronic tag AE1 51 has an inventory electronic tag AE2 52 of a related object, the retail server CSE 53 may create a subscription resource for the inventory electronic tag AE2 52 and send a subscription response 62 to the retail server CSE 53 (or another entity) indicating the result of creating the subscription for the inventory electronic tag AE2 52. In some embodiments, the retail server CSE 53 may create subscription resources for the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52 and send a subscription response 62 to the retail server CSE 53 (or other entity) indicating the results of creating the subscriptions for the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52.
[0075] Furthermore, when creating a subscription resource for the inventory electronic tag AE2 52, the retail server CSE 53 can determine (61) a subscription mode for the stock quantity electronic tag AE2 52 depending on the status of the inventory electronic tag AE2 52. For example, as described above, if the inventory electronic tag AE2 indicates that the item is in stock, a short-term subscription can be created, whereas if the inventory electronic tag AE2 indicates that the item is out of stock, a long-term subscription can be created.
[0076] In some embodiments, when the retail server CSE 53 creates subscription resources for the shelf tag AE1 51 and the inventory tag AE2 52, the retail server CSE 53 can determine (61) a subscription mode for the shelf tag AE1 51 and the inventory tag AE2 52 depending on the status of the inventory tag AE2 52. For example, as described above, if the inventory tag AE2 indicates in stock, a short-term subscription can be created, and if the inventory tag AE2 indicates out of stock, a long-term subscription can be created.
[0077] The retail server CSE 53 then updates (63) the status of the shelf electronic tag AE1 51. If the event notification rule is then satisfied (64), the retail server CSE 53 sends an event notification 65 to the notified party (e.g., shelf management application AE3 54) according to the subscription mode determined above.
[0078] Second Example 7 illustrates a second example of subscribing to a resource according to the present disclosure. In this example, for example, a shopping terminal (eg, a user) initiates a subscription to know the status of a product that the user wants to purchase in real time.
[0079] As shown in Fig. 7, for example, the retail server CSE 53 (service entity) receives registration requests from the shelf electronic tag AE1 51 (first entity), the inventory electronic tag AE2 52 (second entity), and the shopping terminal AE3 66 (third entity) which is a subscriber, and accordingly creates association relationships between the shelf electronic tag AE1 51, the inventory electronic tag AE2 52, and the shopping terminal AE3 66, and updates these states according to changes in the states of the shelf electronic tag AE1 51, the inventory electronic tag AE2 52, and the shopping terminal AE3 66. Then, similar to Fig. 6, the retail server CSE 53 judges whether the product associated with the shelf electronic tag AE1 51 and the product associated with the inventory electronic tag AE2 52 are for products of the same category, and if "Yes," creates an association between the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52.
[0080] When the shopping terminal AE3 66 sends a subscription request for the shelf electronic tag AE1 51 to the retail server CSE 53, the retail server CSE 53 first determines whether the shelf electronic tag AE1 51 has an inventory electronic tag AE2 52 of a related object. If the shelf electronic tag AE1 51 has an inventory electronic tag AE2 52 of a related object, the retail server CSE 53 may create a subscription resource for the inventory electronic tag AE2 52 and send a subscription response to the shopping terminal AE3 66 (or other entity) indicating the result of creating the subscription for the inventory electronic tag AE2 52. In some embodiments, the retail server CSE 53 may create subscription resources for the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52 and send a subscription response to the shopping terminal AE3 66 (or other entity) indicating the result of creating the subscription for the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52.
[0081] Furthermore, when the retail server CSE 53 creates a subscription resource for the inventory electronic tag AE2 52, it can determine a subscription mode for the inventory electronic tag AE2 52 according to the status of the inventory electronic tag AE2 52. For example, if the inventory electronic tag AE2 indicates that the item is in stock, it can create a short-term subscription, and if the inventory electronic tag AE2 indicates that the item is out of stock, it can create a long-term subscription.
[0082] In some embodiments, when the retail server CSE 53 creates subscription resources for the shelf tag AE1 51 and the inventory tag AE2 52, the retail server CSE 53 can determine the subscription mode for the shelf tag AE1 51 and the inventory tag AE2 52 depending on the status of the inventory tag AE2 52. For example, as described above, if the inventory tag AE2 indicates in stock, a short-term subscription can be created, and if the inventory tag AE2 indicates out of stock, a long-term subscription can be created.
[0083] The retail server CSE 53 then updates (63) the status of the shelf electronic tag AE1 51. Thereafter, when the event notification rule is satisfied, the retail server CSE 53 sends an event notification to the notified party (e.g., shopping terminal AE3 66) according to the subscription mode determined above.
[0084] Example 3 8 illustrates a third example of subscribing to resources according to the present disclosure, in which, for example, an association rule is included in the subscription request sent by the application entity, and the generic service entity creates associations between different objects according to the association rule.
[0085] As shown in FIG. 8, for example, a retail server CSE 53 (service entity) receives registration requests from a shelf electronic tag AE1 51 (first entity), an inventory electronic tag AE2 52 (second entity) and a subscriber shopping terminal AE3 66 (third entity), and thereby creates association relationships with the shelf electronic tag AE1 51, the inventory electronic tag AE2 52 and the shopping terminal AE3 66, and updates their status according to changes in the status of the shelf electronic tag AE1 51, the inventory electronic tag AE2 52 and the shopping terminal AE3 66.
[0086] Then, when the shopping terminal AE3 66 sends a subscription request 71 for the shelf electronic tag AE1 51 to the retail server CSE 53, the retail server CSE 53 creates an association between the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52 according to the association rule included in the subscription request. The retail server CSE 53 may then create a subscription resource for the inventory electronic tag AE2 52 and send a subscription response to the shopping terminal AE3 66 (or other entity) indicating the result of creating the subscription for the inventory electronic tag AE2 52. In some embodiments, the retail server CSE 53 may create subscription resources for the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52 and send a subscription response to the shopping terminal AE3 66 (or other entity) indicating the result of creating the subscription for the shelf electronic tag AE1 51 and the inventory electronic tag AE2 52.
[0087] Furthermore, when the retail server CSE 53 creates a subscription resource for the inventory electronic tag AE2 52, it can determine a subscription mode for the stock quantity electronic tag AE2 52 according to the status of the inventory electronic tag AE2 52. For example, as described above, if the inventory electronic tag AE2 indicates in stock, a short-term subscription can be created, and if the inventory electronic tag AE2 indicates out of stock, a long-term subscription can be created.
[0088] In some embodiments, when the retail server CSE 53 creates subscription resources for the shelf tag AE1 51 and the inventory tag AE2 52, the retail server CSE 53 can determine the subscription mode for the shelf tag AE1 51 and the inventory tag AE2 52 depending on the status of the inventory tag AE2 52. For example, as described above, if the inventory tag AE2 indicates in stock, a short-term subscription can be created, and if the inventory tag AE2 indicates out of stock, a long-term subscription can be created.
[0089] Then, the retail server CSE 53 updates the status of the shelf electronic tag AE1 51. Then, when the event notification rule is satisfied, it sends an event notification to the notified party (e.g., the shopping terminal AE3 66) according to the subscription mode determined above.
[0090] As can be seen from the above, the above method for subscribing to resources can realize subscription to a second entity related to a first entity, so as to make the resources to be subscribed more abundant, and can create different subscription modes according to the state of the second entity, so as to realize mode diversification in different cases.
[0091] Hereinafter, an apparatus 1000 for subscribing to resources according to an embodiment of the present disclosure will be described with reference to Fig. 9. Fig. 9 is a schematic diagram of an apparatus 1000 for subscribing to resources according to an embodiment of the present disclosure. The function of the apparatus for subscribing to resources in this embodiment is the same as the details of the method described above with reference to Fig. 1, so the detailed description of the same content will be omitted here for simplicity.
[0092] As shown in Fig. 9, an apparatus 1000 for subscribing to a resource according to an embodiment of the present disclosure includes a receiving unit 1001, a determining unit 1002, a generating unit 1003, and a sending unit 1004. It should be noted that, although the apparatus 1000 for subscribing to a resource in Fig. 9 is shown as including only four units, this is merely schematic, and the apparatus 1000 for subscribing to a resource may include one or more other units, which are not related to the concept of the invention and are omitted here.
[0093] The receiving unit 1001 causes the service entity to receive a subscription request for the first entity from a third entity.
[0094] For example, the first entity (AE1) may be a shelf electronic tag, and the third entity (AE3) may be a shelf management application or a shopping terminal. For example, in this step, the general-purpose service entity receives a subscription request for the shelf electronic tag AE1 by AE3 (shelf management application or shopping terminal).
[0095] Then, the determining unit 1002 determines a second entity related to the first entity.
[0096] For example, the second entity (AE2) may be an inventory electronic tag. For example, in this step, the determining unit 1002 can determine an inventory electronic tag associated with the shelf electronic tag.
[0097] For example, the determining unit 1002 may determine a second entity associated with a first entity by determining whether the first entity and the second entity are for the same object, for example, determining that the second entity is associated with the first entity if the first entity and the second entity are for the same object, and determining that the second entity is not associated with the first entity if the first entity and the second entity are for different objects.
[0098] In some embodiments, the determining unit 1002 may determine second entities related to the first entity according to association rules included in the subscription request.
[0099] For example, the association rule may be included in a subscription request sent by a shopping terminal received by the receiving unit 1001. For example, the association rule may indicate that an entity bound to a product in the same category as a product associated with the first entity is the second entity. Then, the general-purpose service entity may determine the second entity related to the first entity according to the association rule.
[0100] After the determining unit 1002 determines a second entity related to the first entity, then a generating unit 1003 generates a subscription for at least the second entity, where generating the subscription for the second entity includes one of two methods: (1) creating a subscription resource for the second entity; and (2) creating subscription resources for the first entity and the second entity.
[0101] Fig. 3 is a flowchart of a method 200 for generating a subscription for a second entity according to an embodiment of the present disclosure, and Fig. 4 is a flowchart of another method 200 for generating a subscription for a second entity according to an embodiment of the present disclosure. Hereinafter, the generating unit 1003 will be described with reference to Figs. 3-4 for generating a subscription for the second entity.
[0102] As shown in Fig. 3, a flowchart of a method 200 for generating a subscription for a second entity according to an embodiment of the present disclosure may be provided. As shown in Fig. 3, a subscription for the second entity may be generated by a method including: determining a subscription mode for the second entity according to a state of the second entity (S301); and generating a subscription for the second entity according to the determined subscription mode (S302).
[0103] For example, if the second entity is a virtual electronic tag in the retail field, the state of the second entity can be divided into two states: in stock and out of stock. Note that the state of the second entity is not limited thereto, and the second entity may be classified into any appropriate state according to the situation, but is not limited here. For example, the subscription modes include long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, high frequency message subscription, low frequency message subscription, etc. Different subscription modes have different one or more of message priority, subscription resource expiration date, notification content, number of notification messages, etc. Different subscription modes can be selected according to different cases (e.g., the state of the second entity), thereby improving the user experience. Then, each of the different subscription modes will be described in detail.
[0104] For example, depending on the length of the notification expiration period for reserving subscription resources, subscription modes can be divided into long-term subscription and short-term subscription, and the notification expiration period of long-term subscription is longer than that of short-term subscription. For example, in the case of long-term subscription mode, a long notification expiration period (e.g., one month) can be set, and if an event notification rule is satisfied within the expiration period, a notification can be sent to the notified party. However, for example, in the case of short-term subscription mode, a short notification expiration period (e.g., real-time transmission) can be set, and if an event notification rule is satisfied within the expiration period, a notification can be sent to the notified party.
[0105] For example, depending on the content of the notification for the subscription resource, the subscription mode can be divided into additional information subscription and predetermined information subscription. For example, in the case of the predetermined information subscription mode, when an event notification rule is satisfied for a certain product, detailed predetermined information such as the price, material, discount, etc. associated with the product in response to the predetermined information request is sent to the notified party, and this predetermined information request may be included in the subscription request. For example, in the case of the additional information subscription mode, when an event notification rule is satisfied for a certain product, in addition to sending detailed predetermined information such as the price, material, discount, etc. associated with the product in response to the predetermined information request to the notified party, detailed additional information such as the price, material, discount, etc. associated with a product similar to the product may be sent to the notified party, and this detailed additional information is not included in the subscription request.
[0106] For example, the subscription mode can be divided into high-priority subscription and low-priority subscription according to the priority of the notification for the subscribed resource, for example, in the case of the high-priority subscription mode, the notification can be sent earlier in time or multiple times to ensure that the notified party can receive the notification, compared to the low-priority subscription mode.
[0107] For example, according to the number of notification information for the subscription resource, the subscription mode can be divided into frequent message subscription and infrequent message subscription. For example, in the case of frequent information subscription mode, a short minimum notification time interval (e.g., 2 hours) can be set, and when the event notification rule is met, a notification is sent to the notified party, and the time between two consecutive notifications is not shorter than the minimum notification time interval. For example, in the case of infrequent information subscription mode, a long minimum notification time interval (e.g., 24 hours) can be set, and when the event notification rule is met, a notification is sent to the notified party, and the time between two consecutive notifications is not shorter than the minimum notification time interval.
[0108] Continuing to refer to FIG. 3, for example, in step S301, a subscription mode for a second entity can be determined according to a status of the second entity (eg, in-stock or out-of-stock status).
[0109] In one example, for a product, if it is out of stock, a long-term subscription can be selected (e.g., the notification expiration time can be set to one month, and if the event notification rule is met within the expiration time, a notification can be sent to the notified party), whereas if it is in stock, a short-term subscription can be selected (e.g., if the event notification rule is met, a notification message is sent in real time).
[0110] In another example, for a certain product, if the product is in stock, a subscription to specified information can be selected (e.g., when an event notification rule is satisfied, detailed specified information such as price, material, discounts, etc. associated with the product in response to a specified information request can be sent to the notified person), whereas if the product is out of stock, a subscription to additional information can be selected (e.g., in addition to sending detailed specified information such as price, material, discounts, etc. associated with the product in response to a specified information request to the notified person, detailed additional information such as price, material, discounts, etc. associated with products similar to the product can be sent to the notified person).
[0111] Similarly, one or more of high priority subscription, low priority subscription, high frequency message subscription, and low frequency message subscription may be selected. It should be understood that the above subscription modes are merely examples, and in different cases, one or more of long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, high frequency message subscription, low frequency message subscription, etc. may be selected, or other suitable subscription modes may be selected, which will not be described again here.
[0112] After the subscription mode is determined, then in step S302, the generating unit 1003 generates a subscription to the second entity according to the determined subscription mode.
[0113] 4 shows a flowchart of another method 300 for generating a subscription for a second entity according to an embodiment of the present disclosure. As shown in FIG. 4, a subscription for the second entity may be generated by a method including: determining a subscription mode for the first entity and the second entity according to a state of the second entity (S301); and generating a subscription for the first entity and the second entity according to the determined subscription mode (S302). The selection of the subscription mode described in FIG. 4 is similar to the selection of the subscription mode described in FIG. 3 above, and will not be repeated here.
[0114] After the generating unit 1003 generates the subscription to the second entity, the sending unit 1004 sends a subscription response to indicate the result of the subscription, for example, to the third entity, or to another entity, where the subscription response indicates the result of the generated subscription.
[0115] For example, when creating a subscription resource for the second entity, the subscription response is to indicate a result of creating the subscription resource for the second entity. In some embodiments, when creating subscription resources for the first entity and the second entity, the subscription response is to indicate a result of creating subscription resources for the first entity and the second entity.
[0116] After creating a subscription, if this event notification rule is satisfied, the event notification included in the subscription request is sent to the notified party according to the determined subscription mode.
[0117] Here, the subscription request may include multiple notified parties for receiving the event notification related to the subscription request. When the event notification rule of the subscriber is satisfied, the generic service entity sends the event notification to all notified parties included in the subscription request. For example, when the manhole cover is moved, the manhole cover movement sensor detects the change and sends update data to the generic service entity, and the generic service entity can determine whether the event notification rule is satisfied based on the update data of the manhole cover movement sensor. For example, when the subscription condition is manhole cover movement, the generic service entity determines that the event notification rule is satisfied and sends the event notification to all notified parties included in the subscription request requesting the event notification of the subscribed manhole cover movement, i.e., notifies all notified parties of the event that the manhole cover has been moved.
[0118] Hereinafter, a device 1100 for subscribing to resources according to an embodiment of the present disclosure will be described with reference to Fig. 10. Fig. 10 is a schematic diagram of a device 1100 for subscribing to resources according to an embodiment of the present disclosure. The function of the device for subscribing to resources in this embodiment is the same as the details of the method described above with reference to Fig. 1, so the detailed description of the same content will be omitted here for simplicity.
[0119] As shown in Fig. 10, the device 1100 for subscribing to resources includes a memory 1101 and a processor 1102. It should be noted that, although the device 1100 for subscribing to resources in Fig. 10 is shown as including only two devices, this is merely schematic, and the device 1100 for subscribing to resources may include one or more other devices, which are omitted here because they are not related to the concept of the invention.
[0120] A device for subscribing to resources of the present disclosure includes a memory 1101 configured to store computer-readable instructions, and a processor 1102 configured to execute the computer-readable instructions stored in the memory, and when the processor executes the computer-readable instructions, performs the following steps: a service entity receives a subscription request for a first entity from a third entity, determines a second entity related to the first entity, generates a subscription for at least the second entity, and sends a subscription response to indicate a result of the subscription.
[0121] FIG. 11 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present disclosure.
[0122] As shown in FIG. 11, the present disclosure further includes a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by a computer, causes the computer to perform a method for subscribing to a resource, the method including the steps of: a service entity receiving a subscription request for a first entity from a third entity; determining a second entity related to the first entity; generating a subscription for at least the second entity; and sending a subscription response to indicate a result of the generated subscription.
[0123] Those skilled in the art will appreciate that various aspects of the present application may be described and described through a number of patentable categories or contexts, including any new and useful process, machine, manufacture, or combination of matter, or any new and useful improvement thereto. Accordingly, various aspects of the present application may be implemented entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. Any of the above hardware or software may be referred to as a "data block," "module," "engine," "unit," "assembly," or "system." Various aspects of the present application may also be embodied as a computer product provided on one or more computer-readable mediums, the product including computer-readable program code.
[0124] The present application has used certain words to describe the embodiments of the present application. For example, "one embodiment," "an embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of the present application. It should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" referenced two or more times in different locations in this specification do not necessarily refer to the same embodiment. Also, some features, structures, or characteristics in one or more embodiments of the present application may be combined as appropriate.
[0125] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure pertains. It is also to be understood that terms as defined in ordinary dictionaries should be interpreted as having a meaning consistent with the meaning in the context of the relevant art, and should not be interpreted in an idealized or overly formalized sense unless expressly set forth herein.
[0126] The above is a description of the present disclosure and should not be considered as limiting thereof. Although several exemplary embodiments of the present disclosure have been described, those skilled in the art can easily understand that many modifications can be made to the exemplary embodiments without departing from the novel teachings and advantages of the present disclosure. Therefore, all such modifications are intended to be included within the scope of the present disclosure, which is limited to the scope of the claims. It should be understood that the above is a description of the present disclosure and should not be considered as limited to the specific embodiments disclosed, and modifications to the disclosed embodiments and other embodiments are intended to be included within the scope of the appended claims. The present disclosure is defined by the claims and their equivalents. [Explanation of symbols]
[0127] 51 Shelf Electronic Tag AE1 52 Inventory Electronic Tag AE2 53 Retail Server CSE 54 Shelf Management Application AE3 1000 Resource Subscription Device 1001 Receiver Unit 1002 Decision Unit 1003 Generating Units 1004 Transmitting unit 1100 Device for subscribing to resources
Claims
1. A method for subscribing to a resource in the Internet of Things field, comprising: receiving, by the service entity, a subscription request for a first object from a first entity; a service entity determining a second object related to the first object; creating a subscription by a service entity to at least the second object; and the service entity sending a subscription response to indicate a result of the subscription; The step of determining a second object related to the first object comprises: determining whether the first object and the second object are for the same object; or determining whether the first object and the second object belong to the same group; or determining whether a related attribute of the first object includes a related attribute of a second object; or determining whether a related attribute of the second object includes the first object; or determining a second object related to the first object according to an association rule included in the subscription request; The step of generating a subscription to at least the second object further comprises: creating a subscription resource for the second object; determining a subscription mode for the second object in response to a state of the second object; generating a subscription to the second object in response to the determined subscription mode; The subscription mode includes one or more of: long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, frequent message subscription, and infrequent message subscription; A method for subscribing to resources in the Internet of Things field.
2. The subscription response indicating a result of the subscription, The method of claim 1 , wherein the subscription response indicates a result of creating a subscription resource for the second object.
3. The step of determining a second object related to the first object comprises: determining that the second object and the first object are associated if the first object and the second object are for the same object.
4. The method of claim 1 , wherein the association rule dictates that the second object is an entity bound to a product in the same category as a product associated with the first object.
5. 1. A method for subscribing to a resource in the Internet of Things performed by a first entity, comprising: sending a subscription request for a first object; receiving a subscription response to the subscription request; the first object is associated with a second object, and the subscription response is for indicating a result of creating a subscription to at least the second object; The association between the first object and the second object is whether the first object and the second object are for the same object, or whether the first object and the second object belong to the same group, or whether the related attribute of the first object includes a second object; or whether the related attribute of the second object includes the first object; or an association rule included in the subscription request; It is decided by A subscription resource for the second object is created, a subscription mode for the second object is determined according to a state of the second object, and is used to create a subscription for the second object; The subscription mode includes one or more of: long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, frequent message subscription, and infrequent message subscription; A method for subscribing to resources in the Internet of Things.
6. The method of claim 5 , wherein the association rule dictates that the second object is an entity bound to a product in the same category as a product associated with the first object.
7. An apparatus for subscribing to a resource in an internet of things, comprising: a receiving unit for the service entity to receive a subscription request for the first object from the first entity; a determination unit for determining a second object related to the first object; a generating unit for generating a subscription to at least the second object; a sending unit for sending a subscription response to indicate a result of the subscription; Determining a second object related to the first object includes: determining whether the first object and the second object are for the same object; or determining whether the first object and the second object belong to the same group; or determining whether a related attribute of the first object includes a second object; or determining whether a related attribute of the second object includes the first object; or determining a second object related to the first object according to an association rule included in the subscription request; Creating a subscription to at least the second object includes: creating a subscription resource for the second object; determining a subscription mode for the second object in response to a state of the second object; generating a subscription to the second object in response to the determined subscription mode; The subscription mode includes one or more of: long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, frequent message subscription, and infrequent message subscription; A device for subscribing to resources in the Internet of Things.
8. A device for subscribing to a resource in the Internet of Things, comprising: a memory configured to store computer readable instructions; configured to execute the computer-readable instructions stored in the memory. a processor having a When the processor executes the computer-readable instructions, receiving, by the service entity, a subscription request for a first object from a first entity; determining a second object related to the first object; creating a subscription to at least the second object; sending a subscription response indicating a result of the subscription; The step of determining a second object related to the first object comprises: determining whether the first object and the second object are for the same object; or determining whether the first object and the second object belong to the same group; or determining whether a related attribute of the first object includes a related attribute of a second object; or determining whether a related attribute of the second object includes the first object; or determining a second object related to the first object according to an association rule included in the subscription request; The step of generating a subscription to at least the second object further comprises: creating a subscription resource for the second object; determining a subscription mode for the second object in response to a state of the second object; generating a subscription to the second object in response to the determined subscription mode; The subscription mode includes one or more of: long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, frequent message subscription, and infrequent message subscription; A device for subscribing to resources in the Internet of Things.
9. A computer-readable storage medium having computer-readable instructions stored thereon, the computer performing a method for subscribing to resources in the Internet of Things, when the computer-readable instructions are executed by a computer, the method comprising: receiving, by the service entity, a subscription request for a first object from a first entity; determining a second object related to the first object; creating a subscription to at least the second object; sending a subscription response indicating a result of the subscription; The step of determining a second object related to the first object comprises: determining whether the first object and the second object are for the same object; or determining whether the first object and the second object belong to the same group; or determining whether a related attribute of the first object includes a related attribute of a second object; or determining whether a related attribute of the second object includes the first object; or determining a second object related to the first object according to an association rule included in the subscription request; The step of generating a subscription to at least the second object further comprises: creating a subscription resource for the second object; determining a subscription mode for the second object in response to a state of the second object; generating a subscription to the second object in response to the determined subscription mode; The subscription mode includes one or more of: long-term subscription, short-term subscription, additional information subscription, predetermined information subscription, high priority subscription, low priority subscription, frequent message subscription, and infrequent message subscription; A computer-readable storage medium.
Citation Information
Patent Citations
Display device
JP2005352688A
Management device, control method, and program
JP2019046108A
Method and client for acquiring machine-to-machine resources and machine-to-machine resource apparatus
US20140359133A1
Product evaluation information delivering system and product evaluation information delivering method
WO2006134795A1