CN106775995B - Method and device for matching resources - Google Patents

Method and device for matching resources Download PDF

Info

Publication number
CN106775995B
CN106775995B CN201510807438.5A CN201510807438A CN106775995B CN 106775995 B CN106775995 B CN 106775995B CN 201510807438 A CN201510807438 A CN 201510807438A CN 106775995 B CN106775995 B CN 106775995B
Authority
CN
China
Prior art keywords
control information
hardware resource
information set
target hardware
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510807438.5A
Other languages
Chinese (zh)
Other versions
CN106775995A (en
Inventor
李惠云
陈剑峰
李炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510807438.5A priority Critical patent/CN106775995B/en
Priority to PCT/CN2016/106178 priority patent/WO2017084595A1/en
Publication of CN106775995A publication Critical patent/CN106775995A/en
Application granted granted Critical
Publication of CN106775995B publication Critical patent/CN106775995B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for matching resources, wherein the method is executed in a system comprising a management device and at least one hardware resource, the at least one hardware resource comprises a target hardware resource matched with a first control information set in at least one control information set, each control information set in the at least one control information set comprises at least one piece of control information for controlling the matched hardware resource, and the method comprises the following steps: the management equipment acquires a second control information set, wherein the control information included in the second control information set is different from the control information included in the first control information set; and the management equipment performs re-matching processing aiming at the target hardware resource according to the second control information set so as to enable the target hardware resource to be matched with the second control information set. The method and the device for matching resources can improve the function exertion and the user experience of hardware resources.

Description

Method and device for matching resources
Technical Field
The present invention relates to the field of communications, and more particularly, to a method and apparatus for matching resources in the field of communications.
Background
Currently, an intelligent hardware resource control technology (e.g., an internet of things technology) is known, and a control information set is matched for a hardware resource, so that intelligent control on the hardware resource can be realized based on control information in the control information set.
However, in the prior art, the above-mentioned process of matching the hardware resource with the control information set is performed only once at the time of registering the hardware resource, that is, after the hardware resource is registered and a matching control information set is obtained (hereinafter, referred to as a first control information set for easy understanding and distinction), the hardware resource can be controlled only according to the first control information set. The hardware resource function and the user experience are seriously influenced, and the development of the internet of things technology and the like is restricted.
Disclosure of Invention
The embodiment of the invention provides a method and a device for matching resources, which can improve the function exertion of hardware resources and the user experience.
In a first aspect, a method of matching resources is provided, the method being performed in a system comprising a management device and at least one hardware resource, wherein the at least one hardware resource comprises a target hardware resource that has been matched with a first set of control information of at least one set of control information, each set of control information of the at least one set of control information comprising at least one piece of control information for controlling the matched hardware resource, the method comprising: the management equipment acquires a second control information set, wherein the control information included in the second control information set is different from the control information included in the first control information set; and the management equipment performs re-matching processing aiming at the target hardware resource according to the second control information set so as to enable the target hardware resource to be matched with the second control information set.
With reference to the first aspect, in a first implementation manner of the first aspect, the system further includes an external server configured to provide the control information set to the management device, where a refComplete attribute value of each hardware resource is stored in the external server, where if the refComplete value of a first hardware resource is a first preset value, the external server can determine, according to the refComplete value, that after the control information set matched with the first hardware resource is updated, the updated control information set needs to be sent to the management device; if the refComplete value of the first hardware resource is the second preset value, the external server can determine, according to the refComplete value, that after the control information set matched with the first hardware resource is updated, the updated control information set does not need to be sent to the management device, and the method further includes: when the management device determines that the second control information set includes all control information that the target hardware resource can support, sending first indication information to the external device, where the first indication information is used to indicate the external device to set a refComplete value of the target hardware resource to the second preset value; or when the management device determines that the second control information set does not include all control information that the target hardware resource can support, sending second indication information to the external device, where the second indication information is used to indicate the external server to set the refComplete value of the target hardware resource to the first preset value.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in a second implementation manner of the first aspect, the acquiring, by the management device, the second control information set includes: the management device determining the first set of control information; the management device determining whether the first set of control information is updated; and the management device takes the updated first control information set as the second control information set after determining that the first control information set is updated.
With reference to the first aspect and the foregoing implementation manner, in a third implementation manner of the first aspect, in that a mapping table entry is stored in the management device, where the mapping table entry is used to record a one-to-one mapping relationship between a plurality of universal resource identifiers URIs and a plurality of sets of control information, the system further includes a terminal device, where the terminal device is used to send a semantic request for the at least one hardware resource to the management device to control the at least one hardware device corresponding to the at least one hardware resource, and the management device determines the first set of control information, where the method includes: the management device receives a semantic request aiming at the target hardware resource, which is sent by the terminal device, wherein the semantic request comprises resource information of the target hardware resource, and the resource information of the target hardware resource can uniquely indicate the target hardware resource in the system; the management equipment determines the target hardware resource from the at least one hardware resource according to the resource information of the target hardware resource; the management equipment determines a control information set corresponding to the URI of the target hardware resource from the mapping table item according to the URI of the target hardware resource; the management device determines a control information set corresponding to the URI of the target hardware resource as the first control information set.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the performing, by the management device, a re-matching process for the target hardware resource according to the second control information set includes: the management device changes the URI of the target hardware resource to the URI corresponding to the second set of control information.
With reference to the first aspect and the foregoing implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the second control information set is a subclass of the first control information set.
In a second aspect, an apparatus for matching resources is provided, which is applied in a system including at least one hardware resource, where the at least one hardware resource includes a target hardware resource that has been matched with a first control information set in at least one control information set, and each control information set in the at least one control information set includes at least one piece of control information for controlling the matched hardware resource, and the apparatus includes: the acquisition module is used for acquiring a second control information set, wherein the control information included in the second control information set is different from the control information included in the first control information set; and the matching module is used for performing re-matching processing aiming at the target hardware resource according to the second control information set acquired by the acquisition module so as to match the target hardware resource with the second control information set.
With reference to the second aspect, in a first implementation manner of the second aspect, the system further includes an external server configured to provide the control information set to the device, where a refComplete attribute value of each hardware resource is stored in the external server, where if the refComplete value of a first hardware resource is a first preset value, the external server can determine, according to the refComplete value, that after the control information set matched with the first hardware resource is updated, the updated control information set needs to be sent to the device; if the refComplete value of the first hardware resource is the second preset value, the external server can determine, according to the refComplete value, that after the control information set matched with the first hardware resource is updated, the updated control information set does not need to be sent to the device, and the device further includes: a first determining module, configured to determine whether the second control information set acquired by the acquiring module includes all control information that can be supported by the target hardware resource; and, the apparatus further comprises: a sending module, configured to send, to the external server, first indication information when it is determined that the second control information set does not include all control information that the target hardware resource can support, where the first indication information is used to indicate the external server to set a refComplete value of the target hardware resource to the second preset value; or sending second indication information to the external server when it is determined that the second control information set includes all control information that the target hardware resource can support, where the second indication information is used to indicate the external server to set the refComplete value of the target hardware resource to the second preset value.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in a second implementation manner of the second aspect, the apparatus further includes: a second determining module for determining the first set of control information; for determining whether the first set of control information is updated; and the controller is used for determining the updated first control information set as the second control information set after the first control information set is updated.
With reference to the second aspect and the foregoing implementation manner, in a third implementation manner of the second aspect, a mapping table entry is stored in the apparatus, where the mapping table entry is used to record a one-to-one mapping relationship between a plurality of universal resource identifiers URIs and a plurality of sets of control information, the system further includes a terminal device, where the terminal device is used to send a semantic request for the at least one hardware resource to the management device to control the at least one hardware device corresponding to the at least one hardware resource, and the apparatus further includes: a receiving module, configured to receive a semantic request for the target hardware resource sent by the terminal device, where the semantic request includes resource information of the target hardware resource, and the resource information of the target hardware resource can uniquely indicate the target hardware resource in the system; the second determining module is specifically configured to determine the target hardware resource from the at least one hardware resource according to the resource information of the target hardware resource; the control information set corresponding to the URI of the target hardware resource is determined from the mapping table item according to the URI of the target hardware resource; and the control information set is used for determining the control information set corresponding to the URI of the target hardware resource as the first control information set.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the apparatus further includes: and the processing module is used for changing the URI of the target hardware resource into the URI corresponding to the second control information set determined by the second determining module.
With reference to the second aspect and the foregoing implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the second set of control information is a subclass of the first set of control information.
According to the method and the device for matching resources, the management equipment acquires the second control information set different from the first control information set matched with the target hardware resource, and performs the re-matching processing aiming at the target hardware resource according to the second control information set, so that the target hardware resource is matched with the second control information set, and the function exertion of the hardware resource and the user experience can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic block diagram of an example of a system to which the method and apparatus for matching resources are applied.
Fig. 2 is a schematic diagram of semantic annotation in oneM2M system.
FIG. 3 is a schematic flow chart diagram of a method of matching resources in accordance with an embodiment of the present invention.
FIG. 4 is an interaction diagram of a method of matching resources according to an embodiment of the invention.
FIG. 5 is an interaction diagram of a method of matching resources according to an embodiment of the invention.
FIG. 6 is an interaction diagram of a method of matching resources according to an embodiment of the invention.
Fig. 7 is a schematic block diagram of an apparatus for matching resources according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of an apparatus for matching resources according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without any inventive step, are within the scope of the present invention.
The technical solution of the embodiment of the present invention can be implemented in a system including a management device and at least one hardware resource. For example, a unified Machine-to-Machine (oneM 2M) system, a Machine-to-Machine (M2M) system, etc.
For convenience of understanding and description, the following description illustrates, by way of example and not by way of limitation, implementation procedures and actions of the method and apparatus for matching resources in the oneM2M system according to embodiments of the present invention.
It should be understood that in the oneM2M system, the process of "semantically labeling" the resource may be regarded as an example of a method of "matching the resource" according to an embodiment of the present invention.
Correspondingly, a semantic engine in the oneM2M system, a Common Service Entity (CSE) or a Common Service Function CSF (CSF) of a Function module of the CSE, etc. may be considered as an example of the management device in the embodiment of the present invention. "class" is an example of "control information set" in the embodiment of the present invention, and "AE" is an example of "hardware resource" in the embodiment of the present invention.
The terminal device may be a User terminal, a mobile device, a wireless communication device, a User Equipment or User Equipment (UE), a handheld device having wireless local area network (e.g., Wi-Fi) communication capability, a computing device, or other processing device connected to a wireless modem.
FIG. 1 shows a schematic architecture diagram of a unified machine to machine system according to an embodiment of the invention. As shown in fig. 1, the oneM2M system is divided into an application layer, a common service layer, and a network service layer. Wherein, the Application layer provides the Application logic of the oneM2M solution from end to end by an Application Entity (AE). The Common service layer is managed by a Common Service Entity (CSE) and is responsible for aggregating application layer information to form a resource pool, and meanwhile, coordinating underlying network transmission, a core layer in oneM2M plays a role of a platform, and the Common service layer comprises a series of instantiated Common service functions. The Network layer is managed by a Network Service Entity (NSE) and is responsible for the transmission of the underlying Network, and provides the capability which can be provided by the underlying Network for the public service layer.
Under the oneM2M system, there are 3 communication interfaces (also called reference points) between layers, where the Mca reference point is the interface between AE and CSE and is responsible for communication from AE to CSE or from CSE to AE; the Mcc reference point or Mcc' reference point is an interface between two CSEs and is responsible for communication between the CSEs; the Mcn reference point is the interface between the CSE and NSE, and is responsible for CSE to NSE or NSE to CSE communications.
It should be understood that all entities in oneM2M system, such as AE, CSE, data, etc., may be represented in the form of resources. The resource structure defines in detail the way resources are represented and the way resources are acquired, which are individually addressable.
In the prior art, semantic annotation is a method for adding semantic information to a resource, and after adding semantics to the resource, an application program can know data contained in the resource and meanings of the data. Simply, through semantic annotation, consistent data translation can be provided for resources, data interoperation between heterogeneous applications can be achieved, and the resources added with the semantic annotation can be sensed and controlled by an application which knows what data and data meaning are provided.
Fig. 2 shows a schematic diagram of semantic annotation in oneM2M system. When a hardware device is registered as a hardware resource in the oneM2M system, the hardware resource is registered as AE without loss of generality. At this time, the semantic engine in oneM2M system starts related functions, and for the AE to find the closest ontology in the ontology library of oneM2M system, the ontology becomes the reference ontology of the AE. The ontology includes concepts such as classes, operations, and the like, and relationships between the concepts, and more precisely, AE refers to the classes in the ontology. For example, as shown in FIG. 2, the semantic engine finds the closest ontology A for an AE, which becomes the reference ontology for the AE, and more specifically, the AE references class B in ontology A. According to the resource structure in the oneM2M system, the ontology of the AE records a Universal Resource Identifier (URI) of class B by referring to the ontologyRef value, and the semantic description corresponding to the AE is also described according to class B. By semantically labeling the AE, the hardware device corresponding to the AE can be controlled by the semantic command of the oneM2M system.
However, if the reference ontology a of the AE changes, for example, a subclass D is added below class B. If the AE is an instance that is closer to class D, that is, class D provides more attributes, data or operations, etc. that the hardware device can support. If the oneM2M system cannot provide a synchronous update mechanism of semantic annotation, at this time, the ontologyRef value of the AE still holds the URI of class B, and the semantic description of the AE is still obtained according to B, so that the operation, attribute or data and the like newly provided by class D and provided by class B cannot be used through a semantic command, and the user experience is not good enough.
For ease of understanding, the above problems are exemplified. Assume that a light with adjustable brightness is installed in the bedroom. Whether registered with oneM2M platform or not, we can adjust its brightness by physical key or knob of the lamp, etc. At this time, if the lighting module is registered as a resource on the oneM2M platform supporting semantics, the model of the lighting on the platform only has simple operations of turning on/off, so we can only turn on/off the lighting through the semantics platform, but cannot adjust the brightness of the lighting. If a lamp model is newly added to the platform, the lamp model comprises both on/off operation and brightness adjustment operation, but during registration, the lamp in the bedroom is already corresponding to the model only with the on/off operation, and if the corresponding relation cannot be updated in time, the brightness adjustment service of the lamp still cannot be acquired through the semantic platform.
The method for matching resources according to the embodiment of the present invention is described in detail below with reference to fig. 3 to 6.
Fig. 3 shows a schematic flow chart of a method 100 of matching resources according to an embodiment of the invention. As shown in fig. 3, the method 100 includes:
s110, the management device acquires a second control information set, wherein the control information included in the second control information set is different from the control information included in the first control information set;
s120, the management device performs a re-matching process on the target hardware resource according to the second control information set, so that the target hardware resource is matched with the second control information set.
According to the embodiment of the present invention, the management device performs the re-matching process on the target hardware resource by acquiring the second control information set different from the first control information set matched with the target hardware resource, and according to the second control information set, so that the target hardware resource is matched with the second control information set. Then, through the terminal device, according to the control information in the second control information set, the relevant data and attributes of the hardware device corresponding to the target hardware resource can be obtained or the relevant operation on the hardware device can be executed to control the hardware device, so that the exertion of the hardware resource function can be improved, and the user experience can be improved.
It should be understood that, in the embodiment of the present invention, the "first control information set" and the "second control information set" are only used for distinguishing different control information sets, and do not set any limit to the scope of the embodiment of the present invention.
The control information included in the second control information set may include a part of or all of the control information different from the control information included in the first control information set.
Specifically, in the embodiment of the present invention, three ways of acquiring the second control information set are provided, which are way 1, way 2, and way 3, respectively. For convenience of explanation, the above three modes are described in detail below.
Mode 1
Optionally, the system further comprises an external server for providing the set of control information to the management device, in which external server the reference integrity refComplete attribute value of each of the hardware resources is stored, wherein,
if the refComplete value of the first hardware resource is the first preset value, the external server can determine that the updated control information set needs to be sent to the management device after the control information set matched with the first hardware resource is updated according to the refComplete value;
if the refComplete value of the first hardware resource is the second preset value, the external server can determine that the updated control information set does not need to be sent to the management device after the control information set matched with the first hardware resource is updated according to the refComplete value,
and, the method further comprises:
when the management device determines that the second control information set includes all control information that the target hardware resource can support, sending first indication information to the external device, where the first indication information is used to indicate the external device to set a refComplete value of the target hardware resource to the second preset value; or
When the management device determines that the second control information set does not include all control information that the target hardware resource can support, sending second indication information to the external device, where the second indication information is used to instruct the external server to set the refComplete value of the target hardware resource to the first preset value.
In the embodiment of the present invention, the system creates a new attribute for the hardware resource, that is, a refComplete attribute, where the refComplete value is used to indicate whether the hardware resource completely matches with the currently matched control information set. In other words, the refComplete value of a hardware resource indicates whether the current matching control information set of the hardware resource includes all the control information that the hardware resource can support. If the control information set includes all the control information that the hardware resource can support, it can also be said that the hardware resource and the control information set are completely matched; if the control information set includes part, but not all, of the control information that the hardware resource can support, it can also be said that a complete match between the hardware resource and the control information set is not achieved.
Specifically, the refComplete value of the hardware resource a (i.e., an example of the hardware resource) indicates whether the hardware resource a completely matches the currently matched control information set M (i.e., an example of the first control information set), so that when the control information set in the system is changed, the external server can determine whether the attribute information of the hardware resource a needs to be transmitted to the management device through the refComplete value of the hardware resource a, so that the management device can compare the attribute information of the hardware resource a with the changed control information set and determine whether the hardware resource a needs to be re-matched. Obviously, if a hardware resource has already been completely matched, even if there is a change in the control information set in the system, for the hardware resource, since all the control information is already included in the currently matched control information set, the terminal device is used, and the parameters, data, attributes, and the like of the hardware device can be controlled or obtained through the control information in the first control information set, so that the hardware resource does not need to be re-matched. Correspondingly, if a hardware resource is not completely matched, when a control information set in the system is changed, the management device needs to judge whether there is control information that the hardware resource can support but the current matched control information set does not have in the changed control information set, if so, the management device needs to change the matching relationship of the hardware resource and re-match the hardware resource, so that more functions of the hardware device can be used through the terminal device.
It should be understood that, in the embodiment of the present invention, the first preset value is used to indicate that the hardware resource does not completely match the currently matching control information set, and the second preset value is used to indicate that the hardware resource completely matches the currently matching control information set.
It should also be understood that, in the embodiment of the present invention, the refComplete attribute is applied to the re-matching process, but the management device may also use the refComplete attribute when the resource is first matched, thereby improving the efficiency of the re-matching.
It should be noted that the first preset value and the second preset value may be one value, or may be in other forms based on a preset rule, and the present invention is not limited thereto.
Therefore, in the embodiment of the present invention, by creating the refComplete attribute for the hardware resource, when the management device determines whether the hardware resource needs to be re-matched, the efficiency of determination is improved.
Hereinafter, the method for matching resources according to an embodiment of the present invention described in equation 1 will be described in detail, taking the oneM2M system as an example and not as a limitation.
FIG. 4 shows a schematic interaction diagram of a method of matching resources according to an embodiment of the invention. The oneM2M system in fig. 4 includes an external server, a semantic engine, a generic service entity. As shown in fig. 4, the method includes:
s201, the semantic engine subscribes to the reference ontology of the AE.
It should be understood that an AE herein refers to an AE for which a perfect match has not been achieved, for which the semantic engine no longer needs to subscribe to the reference ontology of that AE.
For example, if the refComplete attribute value of the first AE (i.e., an example of AE) is 0, the semantic engine subscribes to the reference ontology of the AE, and the semantic engine knows the reference ontology once it is changed.
S202, a new class is added below the reference ontology.
For example, class A below the reference ontology adds a new subclass B.
S203, the external server sends the related attributes of the AE and the related attributes of the new class to a semantic engine.
It should be understood that the related attributes of the above-mentioned AEs refer to the "store local resource links" attribute of the AE. An AE corresponding to each hardware device in the oneM2M system has a local resource pointed to by the content attribute of the AE.
S204, the semantic engine returns a response message to the external server.
S205, the semantic engine analyzes whether the AE needs synchronous semantic annotation, and further judges whether the new class can realize complete semantic annotation to the AE if the AE needs to be synchronous.
Specifically, the semantic engine determines whether or not a re-matching process for the AE is necessary, and actually determines whether or not the AE is an instance of the new class. More specifically, the semantic engine compares the local resource pointed to by the content attribute with the new class to determine whether a re-matching process for the AE is required to match the AE with the new added class. If the AE is an instance of the new added class, the AE is re-matched so that the AE is matched with the new class, and further, the semantic engine judges whether the new added class can be used for completely semantically labeling the AE. If the complete semantic annotation can be realized, the semantic engine sends first indication information to an external server, and the external server sets the refComplete value of the AE to be 1; if the new class can not realize the complete semantic annotation of the AE, the semantic engine sends second indication information to an external server, and the external server sets the refComplete value of the AE to 0, so that when the reference body of the AE is changed, the semantic engine performs the re-matching on the AE again.
S206, the semantic engine sends a re-matching request to the general service entity, where the re-matching request is used to change the ontology reference ontologyRef value of the AE.
Specifically, the semantic engine determines that if the AE is an instance of the new class, the ontologyRef value of the AE is changed to the URI of the new class.
S207, the general service entity sends a response message to the semantic engine.
S208, the semantic engine sends a sub-resource updating request message to the general service entity, wherein the sub-resource updating request message is used for requesting to update the attribute of the related sub-resource of the AE;
specifically, attributes of related sub-resources of the AE are updated, including updating the AE sub-resource containers continainer and contentInstance. According to the resource structure in oneM2M system, the child resources contiainer and contentInstance of AE each have an ontologyRef attribute, and the ontologyRef value of contiainer and the ontologyRef value of contentInstance are consistent with the ontologyRef value of the associated AE unless otherwise specified. Therefore, in the embodiment of the present invention, after the ontogyref attribute value of the AE is updated, the ontogyref values of the child resources continainer and contentInstance thereof also need to be updated, that is, the updated ontogyref value of the AE is consistent with the updated ontogyref value of the AE.
S209, the universal service entity returns a response message to the semantic engine;
s210, if the refComplete attribute value of the AE is 1, the semantic engine cancels the subscription of the reference ontology of the AE;
s211, the terminal device then sends a semantic request to the oneM2M system, where the semantic request is used to execute a relevant operation on the hardware device corresponding to the AE.
It should be understood that, in the embodiment of the present invention, the refComplete attribute values are only illustrated as 0 and 1, and the present invention is not limited thereto. For example, the refComplete attribute value may be other values based on convention, or other forms, etc.
In the method 1, the semantic engine may subscribe the reference ontology of the hardware resource that has not yet reached the complete matching through the refComplete attribute created by the system for the hardware resource, so that the change information may be obtained when the reference ontology is changed, and it is determined whether to perform the re-matching processing on the hardware resource according to the change information.
Therefore, according to the method for matching resources in the embodiment of the present invention, the efficiency of matching can be improved by creating a refComplete attribute for a hardware resource in the system.
Mode 2
Optionally, the acquiring, by the management device, the second control information set includes:
the management device determining the first set of control information;
the management device determining whether the first set of control information is updated;
and the management device takes the updated first control information set as a second control information set after determining that the first control information set is updated.
Specifically, firstly, the management device determines a first control information set, then, the management device determines whether the first control information set is updated, when it is determined whether the first control information set is updated, the management device may periodically query the ontology library to know whether the first control information set is changed, and when it is determined that the first control information set is updated, the management device determines the updated first control information set as a second control information set, and determines whether the target hardware resources matched with the first control information set need to be re-matched, so that matching between resources and the control information sets can be automatically synchronized, exertion of hardware resource functions is improved, and user experience is improved.
Compared with the resource matching process in the prior art, in the embodiment of the invention, after the first matching, the second matching only needs to determine whether the previously matched control information set is updated, if so, the updated control information set is determined as the second control information set, and the re-matching is performed, so that the efficiency of the re-matching can be improved.
FIG. 5 shows a schematic interaction diagram of a method of matching resources according to an embodiment of the invention. The oneM2M system in FIG. 5 comprises a terminal device, a semantic engine and a general service entity. As shown in fig. 5, the method includes:
s301, a new class is added below the reference body.
S302, the semantic engine queries the ontology base regularly to obtain the changed reference ontology and obtain the relevant attributes of the new class and the direct parent class of the new class.
S303, the semantic engine sends a query request to the universal service entity, queries the hardware resource of which the ontologyRef value is the URI of the direct parent class of the new class and the refComplete attribute value is 0.
S304, the universal service entity inquires the registered hardware resources meeting the conditions and returns the resource information of the hardware resources meeting the conditions to the semantic engine.
S305, the semantic engine requests the attribute of the storage local resource link of the hardware resource indicated by the resource information to the general service entity through the resource information of the hardware resource obtained in the above steps.
It should be noted that, in the embodiment of the present invention, the resource information is used to uniquely indicate one hardware resource in the system. Therefore, the semantic engine can uniquely determine the target hardware resource according to the resource information, and further, the semantic engine can query the attribute of the target hardware resource.
S306, the general service entity returns the attribute of the local resource link of the hardware resource requested by the semantic engine.
S307, the semantic engine analyzes whether the hardware resource needs synchronous semantic annotation according to the attribute of the stored local resource link, and further judges whether the new class can realize the complete semantic annotation of the hardware resource if the hardware resource needs to be synchronized.
S308, the semantic engine sends a re-matching request to the general service entity, and the re-matching request is used for re-matching the target hardware resource.
It should be appreciated that when the semantic engine determines that the target hardware resource is an instance of the new class, the semantic engine sends a re-matching request to the common service entity to re-match the target hardware resource.
S309, the general service entity returns a response message to the semantic engine.
S310, the semantic engine sends a sub-resource updating request message to the general service entity, wherein the sub-resource updating request message is used for requesting to update the attribute of the related sub-resource of the hardware resource.
It should be noted that the attribute of the sub-resource related to updating the hardware resource is the same as the description in S208, and for brevity, the description is omitted here.
S311, the general service entity returns a response message to the semantic engine.
S312, the terminal device sends a semantic request to the oneM2M system.
In the mode 2, the semantic engine can acquire the changed body by periodically and automatically querying the body library, and perform the re-matching processing on the hardware resource referring to the changed body, and synchronize the matching relationship between the hardware resource and the control information set, so that the terminal device can use more functions of the hardware device corresponding to the hardware resource according to the control information provided by the re-matched control information set through the semantic command of the system, thereby improving the user experience.
Mode 3
Optionally, a mapping table entry is stored in the management device, the mapping table entry is used for recording a one-to-one mapping relationship between a plurality of universal resource identifiers, URIs, and a plurality of sets of control information, the system further includes a terminal device, the terminal device is used for sending a semantic request for the at least one hardware resource to the management device so as to control the at least one hardware device corresponding to the at least one hardware resource,
and the management device determining the first set of control information, including:
the management equipment receives a semantic request aiming at the target hardware resource, which is sent by a terminal equipment, wherein the semantic request comprises resource information of the target hardware resource, and the resource information of the target hardware resource can uniquely indicate the target hardware resource in the system;
the management equipment determines the target hardware resource from at least one hardware resource according to the resource information of the target hardware resource;
the management equipment determines a control information set corresponding to the URI of the target hardware resource from the mapping table item according to the URI of the target hardware resource;
the management device determines a control information set corresponding to the URI of the target hardware resource as a first control information set.
FIG. 6 shows a schematic interaction diagram of a method of matching resources according to an embodiment of the invention. As shown in fig. 6, the method includes:
s401, the semantic engine receives a semantic request aiming at the target hardware resource sent by the terminal equipment.
Specifically, the semantic request includes resource information of the target hardware resource, where the resource information can uniquely determine the target hardware resource in the system, and the semantic request is used to request to acquire parameters, data, attributes, and the like of a hardware device corresponding to the target hardware resource, and also may be used to request to execute a related operation on the hardware device. .
S402, the semantic engine analyzes the semantic request and acquires the resource information of the target hardware resource from the semantic request.
Specifically, the resource information may include a "resource Type" (resource Type) and a "tag" (label) of the target hardware resource.
And S403, the semantic engine sends a query request to the general service entity, wherein the query request is used for requesting to query the resource information in the semantic request.
S404, the universal service entity inquires the resource information registered under the universal service entity and returns the resource information meeting the conditions to the semantic engine.
It should be understood that qualified resource information refers to resource information of a queried target hardware resource from which the semantic engine can uniquely determine the target hardware resource.
S405, the semantic engine requests the general service entity to inquire the attribute of the storage local resource link of the hardware resource corresponding to the resource information according to the received resource information.
S406, the general service entity returns the attribute of the storage local resource link of the hardware resource to the semantic engine.
S407, the semantic engine screens out the hardware resources related to the semantic request and determines the hardware resources as target hardware resources. When the semantic engine determines that the refComplete value of the target hardware resource is 0, the subsequent steps are continued.
S408, the semantic engine requests the general service entity to query the class referred by the hardware resource and the new added class of the class from the ontology library according to the ontologyRef attribute of the target hardware resource.
S409, the general service entity queries the ontology base and determines the class currently referred to by the target hardware resource and the new added class of the class.
S410, the general service entity returns the query result to the semantic engine.
S411, the semantic engine analyzes whether the target hardware resource needs to carry out synchronous semantic annotation according to the attribute of the storage local resource link. Further, if synchronization is required, the semantic engine continues to determine whether the newly added class can achieve full semantic annotation of the target hardware resource.
It should be understood that a full semantic annotation refers to the target hardware resource being an instance of the newly added subclass, and not an instance of any other subclass.
S412, the semantic engine sends an update request to the universal service entity, where the update request is used to change the ontologyRef value of the target hardware resource. And if the new additive class can realize the complete semantic annotation of the target hardware resource, setting the refComplete value of the target hardware resource to be 1, otherwise, continuously keeping to be 0.
Specifically, if the new additive class can realize the complete semantic annotation of the target hardware resource, the semantic engine sends first indication information to the external server, wherein the first indication information is used for indicating the external server to set the refComplete of the target hardware resource to 1; if the new additive class can not realize the complete semantic annotation of the target hardware resource, the semantic engine sends second indication information to the external server, wherein the second indication information is used for indicating the external server to set the refComplete of the target hardware resource to 0.
S413, the generic service entity returns a response message to the semantic engine.
S414, the semantic engine requests to update the attribute of the related sub-resource of the target hardware resource.
S415, the universal service entity returns a response message to the semantic engine.
It should be noted that the attribute of the sub-resource related to updating the hardware resource is the same as the description in S208, and for brevity, the description is omitted here.
S416, the semantic engine sends updating/obtaining and other requests to the related sub-resources to complete the semantic request.
S417, the general service entity returns the result of the semantic request to the semantic engine.
S418, the semantic engine returns the result of the semantic request to the terminal equipment.
In the mode 3, the system performs the re-matching processing on the hardware resources in the system in a triggering mode. Specifically, the semantic engine first receives a semantic request for a target hardware resource sent by the terminal device, and then, according to resource information of the target hardware resource, the semantic engine may determine the target hardware resource, and further determine a first control information set corresponding to the target hardware resource.
It should be understood that subsequently, the semantic engine may query whether the first control information set is updated, and if so, take the updated first control information set as a second control information set, and perform a re-matching process on the target hardware resource so that the target hardware resource is matched with the second control information set.
Optionally, the performing, by the management device, a re-matching process for the target hardware resource according to the second control information set includes:
the management device changes the URI of the target resource to the URI corresponding to the second set of control information.
Specifically, at least one control information set in the system has a one-to-one mapping relationship with at least one URI, and each hardware resource stores the URI of the matched control information set. Therefore, the re-matching of the target hardware resource by the management device includes changing the URI of the target hardware resource to the URI of the newly matched control information set, that is, changing the URI corresponding to the first control information set stored in the target hardware resource to the URI corresponding to the second control information set.
Optionally, the second set of control information is a sub-class of the first set of control information.
It should be appreciated that in the oneM2M system, a subclass of a class inherits all the parameters and operations of its immediate parent class and adds new parameters or operations. Therefore, if a subclass is added to a class referred to by a hardware resource, the management device re-matches the hardware resource to match the added subclass, or after the hardware resource refers to the newly added subclass, the management device may use the terminal device to use more functions of the hardware device corresponding to the hardware resource through the oneM2M platform.
In the embodiment of the present invention, the second set of control information is different from the second set of control information, and a case where the second set of control information includes the first set of control information and the control information in the second set of control information is more than the control information in the first set of control information is also included. Also in this case, more functions of the hardware device can be used by the terminal device.
Therefore, according to the method for matching resources in the embodiment of the present invention, the management device automatically obtains the second control information set different from the control information in the first control information set matching the target hardware resource, and performs the re-matching process for the target hardware resource, so as to match the target hardware resource with the second control information set, thereby automatically synchronizing the matching between the target hardware resource and the control information set, and improving the performance of hardware resource functions and user experience.
The method for matching resources according to the embodiment of the present invention is described in detail above with reference to fig. 1 to 6, and the apparatus for matching resources according to the embodiment of the present invention is described below with reference to fig. 7.
Fig. 7 illustrates an apparatus 500 for matching resources according to an embodiment of the present invention, and as shown in fig. 7, the apparatus 500 includes:
an obtaining module 510, configured to obtain a second control information set, where the second control information set includes control information different from the control information included in the first control information set;
a matching module 520, configured to perform a re-matching process on the target hardware resource according to the second control information set acquired by the acquisition module, so that the target hardware resource is matched with the second control information set.
Optionally, the system further comprises an external server for providing the set of control information to the device, in which external server the reference integrity refComplete attribute values of the respective hardware resources are stored, wherein,
if the refComplete value of the first hardware resource is the first preset value, the external server can determine that the updated control information set needs to be sent to the device after the control information set matched with the first hardware resource is updated according to the refComplete value;
if the refComplete value of the first hardware resource is the second preset value, the external server can determine that the updated control information set does not need to be sent to the device after the control information set matched with the first hardware resource is updated according to the refComplete value,
and, the apparatus further comprises:
a first determining module, configured to determine whether the second control information set acquired by the acquiring module includes all control information that can be supported by the target hardware resource;
and, the apparatus further comprises:
a sending module, configured to send, to the external server, first indication information when it is determined that the second control information set does not include all control information that the target hardware resource can support, where the first indication information is used to indicate the external server to set a refComplete value of the target hardware resource to the first preset value; or
And sending second indication information to the external server when it is determined that the second control information set includes all the control information that the target hardware resource can support, where the second indication information is used to instruct the external server to set the refComplete value of the target hardware resource to the second preset value.
Optionally, the apparatus further comprises:
a second determining module for determining the first set of control information; and
for determining whether the first set of control information is updated;
and the controller is used for determining the updated first control information set as the second control information set after the first control information set is updated.
And determining the updated first control information set as the second control information set.
Optionally, a mapping table entry is stored in the apparatus, the mapping table entry is used for recording a one-to-one mapping relationship between a plurality of universal resource identifiers, URIs, and a plurality of sets of control information, the system further includes a terminal device, the terminal device is used for sending a semantic request for the at least one hardware resource to the management device to control the at least one hardware device corresponding to the at least one hardware resource,
and, the apparatus further comprises:
a receiving module, configured to receive a semantic request for the target hardware resource sent by the terminal device, where the semantic request includes resource information of the target hardware resource, and the resource information of the target hardware resource can uniquely indicate the target hardware resource in the system;
the second determining module is specifically configured to determine the target hardware resource from the at least one hardware resource according to the resource information of the target hardware resource;
the control information set corresponding to the URI of the target hardware resource is determined from the mapping table item according to the URI of the target hardware resource;
and the control information set is used for determining the control information set corresponding to the URI of the target hardware resource as the first control information set.
Optionally, the apparatus further comprises:
and a processing module, configured to change the URI of the target hardware resource to the URI corresponding to the second control information set determined by the second determining module.
Optionally, the second set of control information is a subclass of the first set of control information.
The apparatus 500 for matching resources according to the embodiment of the present invention may correspond to a management device in the method according to the embodiment of the present invention, and each module and the other operations or functions in the apparatus 500 for matching resources are respectively for implementing the corresponding flow of the method 100 in fig. 3, and are not described herein again for brevity.
According to the device for matching resources, the second control information set which is different from the control information in the first control information set matched with the target hardware resource is automatically acquired, and the re-matching processing for the target hardware resource is performed, so that the target hardware resource is matched with the second control information set, and the function exertion of the hardware resource and the user experience can be improved.
The method for matching resources according to the embodiment of the present invention is described in detail above with reference to fig. 1 to 6, and the apparatus for matching resources according to the embodiment of the present invention is described in detail below with reference to fig. 8.
Fig. 8 illustrates an apparatus 600 for matching resources according to an embodiment of the present invention, and as shown in fig. 8, the apparatus 600 includes:
a bus 610;
a processor 620 coupled to the bus 610;
a memory 630 coupled to the bus 610;
a transceiver 640 connected to the bus 610;
the processor 620 calls a program stored in the memory 630 through the bus to obtain a second control information set, where the control information included in the second control information set is different from the control information included in the first control information set;
and the processor is configured to perform a re-matching process on a target hardware resource according to the second control information set, so that the target hardware resource is matched with the second control information set.
Optionally, the system further comprises an external server for providing the set of control information to the management device, in which external server the reference integrity refComplete attribute values of the respective hardware resources are stored, wherein,
if the refComplete value of the first hardware resource is the first preset value, the external server can determine that the updated control information set needs to be sent to the management device after the control information set matched with the first hardware resource is updated according to the refComplete value;
if the refComplete value of the first hardware resource is the second preset value, the external server can determine that the updated control information set does not need to be sent to the management device after the control information set matched with the first hardware resource is updated according to the refComplete value,
and the processor 620 is specifically configured to determine whether the second set of control information includes all control information that can be supported by the target hardware resource;
and, the processor 620 is specifically configured to send first indication information to the external server when determining that the second control information set includes all control information that can be supported by the target hardware resource, where the first indication information is used to indicate the external server to set a refComplete value of the target hardware resource to a second preset value; or
And setting the refComplete value of the target hardware resource to the first preset value when determining that the second control information set does not include all control information that can be supported by the target hardware resource.
Optionally, the processor 620 is specifically configured to determine the first control information set;
determining whether the first set of control information is updated;
and when the first control information set is determined to be updated, taking the updated first control information set as the second control information set.
Optionally, the storage 630 is specifically configured to store a mapping table entry, where the mapping table entry is used to record a one-to-one mapping relationship between a plurality of universal resource identifiers, URIs, and a plurality of control information sets, and
the system also comprises a terminal device, wherein the terminal device is used for sending a semantic request aiming at the at least one hardware resource to the management device so as to control the at least one hardware device corresponding to the at least one hardware resource, and
the transceiver 640 is specifically configured to receive a semantic request for a target hardware resource, where the semantic request includes resource information of the target hardware resource, and the resource information of the target hardware resource can uniquely indicate the target hardware resource in the system;
the processor 620 is specifically configured to determine the target hardware resource from at least one hardware resource according to the resource information of the target hardware resource;
determining a control information set corresponding to the URI of the target hardware resource from a mapping table item according to the URI of the target hardware resource;
and determining the control information set corresponding to the URI of the target hardware resource as the first control information set.
Optionally, the processor 620 is specifically configured to change the URI of the target hardware resource to the URI corresponding to the second control information set.
Optionally, the second set of control information is a subclass of the first set of control information.
In the embodiment of the present invention, the processing unit may also be referred to as a CPU. The memory may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile row random access memory (NVRAM). In a particular application, the resource-matching device may be embedded or may itself be a standard ethernet communication device such as a personal computer, and the various modules of the resource-matching device are coupled together by a bus system that includes a power bus, a control bus, and a status signal bus in addition to a data bus.
The processor may implement or perform the various steps and logic blocks disclosed in the method embodiments of the present invention. A general purpose processor may be a microprocessor or the processor may be any conventional processor, decoder, etc. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a decoding unit or a processing unit reads information in the memory and completes the steps of the method in combination with hardware of the storage medium.
It should be understood that, in the embodiments of the present invention, the processor may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
The device 600 for matching resources according to the embodiment of the present invention may correspond to a management device in the method according to the embodiment of the present invention, and each module and the other operations or functions in the device 600 for matching resources are respectively for implementing the corresponding flow of the method 100 in fig. 3, and are not described herein again for brevity.
According to the resource matching device provided by the embodiment of the invention, the second control information set which is different from the control information in the first control information set matched with the target hardware resource is automatically obtained, and the re-matching processing aiming at the target hardware resource is carried out, so that the target hardware resource is matched with the second control information set, and thus, the function exertion of the hardware resource and the user experience can be improved.
It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
This functionality, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present invention, and all such changes or substitutions are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method of matching resources, performed in a system comprising a management device and at least one hardware resource, wherein the at least one hardware resource comprises a target hardware resource that has been matched to a first set of control information of at least one set of control information, each set of control information of the at least one set of control information comprising at least one piece of control information for controlling the matched hardware resource, the method comprising:
the management equipment acquires a second control information set, wherein the control information included in the second control information set is different from the control information included in the first control information set;
the management device performs a re-matching process for the target hardware resource so that the target hardware resource matches the second control information set according to the second control information set,
wherein the content of the first and second substances,
the system further comprises an external server for providing a set of control information to the management device, in which external server a reference integrity refComplete attribute value of each of the hardware resources is held, wherein,
if the refComplete value of the first hardware resource is a first preset value, the external server can determine that the updated control information set needs to be sent to the management device after the control information set matched with the first hardware resource is updated according to the refComplete value;
if the refComplete value of the first hardware resource is the second preset value, the external server can determine that the updated control information set does not need to be sent to the management device after the control information set matched with the first hardware resource is updated according to the refComplete value,
and, the method further comprises:
when the management device determines that the second control information set includes all control information that can be supported by the target hardware resource, sending first indication information to the external device, where the first indication information is used to indicate the external device to set a refComplete value of the target hardware resource to the second preset value; or
And when the management device determines that the second control information set does not include all control information that can be supported by the target hardware resource, sending second indication information to the external device, where the second indication information is used to indicate the external server to set a refComplete value of the target hardware resource to the first preset value.
2. The method of claim 1, wherein the obtaining, by the management device, the second set of control information comprises:
the management device determining the first set of control information;
the management device determining whether the first set of control information is updated;
and the management equipment takes the updated first control information set as the second control information set after determining that the first control information set is updated.
3. The method according to claim 2, wherein a mapping table entry is stored in the management device, the mapping table entry is used for recording a one-to-one mapping relationship between a plurality of Universal Resource Identifiers (URIs) and a plurality of sets of control information, the system further comprises a terminal device, the terminal device is used for sending a semantic request for the at least one hardware resource to the management device so as to control at least one hardware device corresponding to the at least one hardware resource,
and the management device determining the first set of control information, including:
the management device receives a semantic request aiming at the target hardware resource, which is sent by the terminal device, wherein the semantic request comprises resource information of the target hardware resource, and the resource information of the target hardware resource can uniquely indicate the target hardware resource in the system;
the management equipment determines the target hardware resource from the at least one hardware resource according to the resource information of the target hardware resource;
the management equipment determines a control information set corresponding to the URI of the target hardware resource from the mapping table item according to the URI of the target hardware resource;
and the management equipment determines the control information set corresponding to the URI of the target hardware resource as the first control information set.
4. The method according to claim 3, wherein the performing, by the management device, the re-matching process for the target hardware resource according to the second control information set includes:
and the management equipment changes the URI of the target hardware resource into the URI corresponding to the second control information set.
5. The method according to any of claims 1 to 4, wherein the second set of control information is a sub-class of the first set of control information.
6. An apparatus for matching resources, configured in a system comprising at least one hardware resource, wherein the at least one hardware resource comprises a target hardware resource that has been matched with a first set of control information in at least one set of control information, each set of control information in the at least one set of control information comprising at least one piece of control information for controlling the matched hardware resource, the apparatus comprising:
an obtaining module, configured to obtain a second control information set, where control information included in the second control information set is different from control information included in the first control information set;
a matching module, configured to perform a re-matching process on the target hardware resource according to the second control information set acquired by the acquisition module, so that the target hardware resource is matched with the second control information set,
wherein the content of the first and second substances,
the system further comprises an external server for providing a set of control information to the device, in which external server a reference integrity refComplete attribute value for each of the hardware resources is maintained, wherein,
if the refComplete value of the first hardware resource is a first preset value, the external server can determine that the updated control information set needs to be sent to the device after the control information set matched with the first hardware resource is updated according to the refComplete value;
if the refComplete value of the first hardware resource is the second preset value, the external server can determine that the updated control information set does not need to be sent to the device after the control information set matched with the first hardware resource is updated according to the refComplete value,
and, the apparatus further comprises:
a first determining module, configured to determine whether the second control information set acquired by the acquiring module includes all control information that can be supported by the target hardware resource;
and, the apparatus further comprises:
a sending module, configured to send, to the external server, first indication information when it is determined that the second control information set does not include all control information that can be supported by the target hardware resource, where the first indication information is used to indicate the external server to set a refComplete value of the target hardware resource to the second preset value; or
And sending second indication information to the external server when it is determined that the second control information set includes all control information that the target hardware resource can support, where the second indication information is used to indicate the external server to set a refComplete value of the target hardware resource to the second preset value.
7. The apparatus of claim 6, further comprising:
a second determining module for determining the first set of control information;
for determining whether the first set of control information is updated;
and the controller is configured to determine the updated first control information set as the second control information set after the first control information set is updated.
8. The apparatus according to claim 7, wherein a mapping table entry is stored in the apparatus, the mapping table entry is used for recording a one-to-one mapping relationship between a plurality of Universal Resource Identifiers (URIs) and a plurality of sets of control information, the system further comprises a terminal device, the terminal device is used for sending a semantic request for the at least one hardware resource to the apparatus so as to control the at least one hardware device corresponding to the at least one hardware resource,
and, the apparatus further comprises:
a receiving module, configured to receive a semantic request for the target hardware resource sent by the terminal device, where the semantic request includes resource information of the target hardware resource, and the resource information of the target hardware resource can uniquely indicate the target hardware resource in the system;
the second determining module is specifically configured to determine the target hardware resource from the at least one hardware resource according to the resource information of the target hardware resource;
the control information set corresponding to the URI of the target hardware resource is determined from the mapping table entry according to the URI of the target hardware resource;
and the control information set corresponding to the URI of the target hardware resource is determined as the first control information set.
9. The apparatus of claim 8, further comprising:
and a processing module, configured to change the URI of the target hardware resource to the URI corresponding to the second control information set determined by the second determining module.
10. The apparatus according to any of claims 6 to 9, wherein the second set of control information is a sub-class of the first set of control information.
CN201510807438.5A 2015-11-19 2015-11-19 Method and device for matching resources Active CN106775995B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510807438.5A CN106775995B (en) 2015-11-19 2015-11-19 Method and device for matching resources
PCT/CN2016/106178 WO2017084595A1 (en) 2015-11-19 2016-11-17 Resource matching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510807438.5A CN106775995B (en) 2015-11-19 2015-11-19 Method and device for matching resources

Publications (2)

Publication Number Publication Date
CN106775995A CN106775995A (en) 2017-05-31
CN106775995B true CN106775995B (en) 2020-01-10

Family

ID=58717354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510807438.5A Active CN106775995B (en) 2015-11-19 2015-11-19 Method and device for matching resources

Country Status (2)

Country Link
CN (1) CN106775995B (en)
WO (1) WO2017084595A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115169850A (en) * 2022-06-28 2022-10-11 飞鸟鱼信息科技有限公司 Resource attribute determination method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547209A (en) * 2009-05-15 2009-09-30 杭州华三通信技术有限公司 Method and device for updating information table
CN103034540A (en) * 2012-11-16 2013-04-10 北京奇虎科技有限公司 Distributed information system, device and coordinating method thereof
CN103294555A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Method for obtaining hardware resources, and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102866941B (en) * 2011-07-04 2018-03-30 技嘉科技股份有限公司 The control method and its control system of computer apparatus
CN104539632B (en) * 2015-01-20 2017-12-12 中国人民解放军国防科学技术大学 A kind of PN device management control method based on virtual address space
CN104950839A (en) * 2015-04-30 2015-09-30 张陵 Switchboard control method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101547209A (en) * 2009-05-15 2009-09-30 杭州华三通信技术有限公司 Method and device for updating information table
CN103294555A (en) * 2012-03-05 2013-09-11 联想(北京)有限公司 Method for obtaining hardware resources, and electronic equipment
CN103034540A (en) * 2012-11-16 2013-04-10 北京奇虎科技有限公司 Distributed information system, device and coordinating method thereof

Also Published As

Publication number Publication date
CN106775995A (en) 2017-05-31
WO2017084595A1 (en) 2017-05-26

Similar Documents

Publication Publication Date Title
RU2667606C2 (en) Device control method and apparatus and terminal device
US10485034B2 (en) Method, device and system for accessing wireless network
US20170155750A1 (en) Method and Apparatus for Bluetooth Device Management
JP6768976B2 (en) Subscription renewal method, equipment, and system
US10420061B2 (en) Geographic location positioning method and apparatus
US11700141B2 (en) Control and/or registration of smart devices, locally by an assistant client device
EP3462691A1 (en) Method, device, and system for determining network slice
KR102036420B1 (en) Managing application relationships in machine-to-machine systems
WO2015082083A1 (en) Method and system for generating a virtual device resource accessible by an application
GB2441062A (en) A method for discovering the device in the different wireless computer network
CN112134784A (en) Message display method, device, terminal, server, system and storage medium
US20160241635A1 (en) M2m data querying and invoking methods, querying and invoking devices, and system
CN109918392B (en) Structured query language positioning method, device, server and storage medium
WO2016065842A1 (en) M2m group and notification resource creation and information exchange methods therefor, and storage medium
CN112586077A (en) Method and device for determining available state of designated reference signal and communication equipment
JP2017511089A (en) Method, apparatus, program and recording medium for accessing network
WO2015078410A1 (en) Method for mobile terminal to request registration with wireless communication network, mobile terminal, wireless communication network server and system
CN106716419B (en) Method and device for outputting search result and electronic equipment
CN106775995B (en) Method and device for matching resources
US10826778B2 (en) Device discovery service
CN117092926B (en) Equipment control method and electronic equipment
RU2616592C2 (en) Method and apparatus for determining location
US20180227368A1 (en) Method for operating a device, control device thereof, and proxy device
CN111201804A (en) Method for enabling data continuity services
CN105827513B (en) Video information sharing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant