WO2014127512A1 - 机器通信操作触发方法和装置 - Google Patents

机器通信操作触发方法和装置 Download PDF

Info

Publication number
WO2014127512A1
WO2014127512A1 PCT/CN2013/071704 CN2013071704W WO2014127512A1 WO 2014127512 A1 WO2014127512 A1 WO 2014127512A1 CN 2013071704 W CN2013071704 W CN 2013071704W WO 2014127512 A1 WO2014127512 A1 WO 2014127512A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
active
expression
dependent
representation
Prior art date
Application number
PCT/CN2013/071704
Other languages
English (en)
French (fr)
Inventor
殷佳欣
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority to EP19166077.8A priority Critical patent/EP3570572B1/en
Priority to PCT/CN2013/071704 priority patent/WO2014127512A1/zh
Priority to CN201710882558.0A priority patent/CN107613011A/zh
Priority to AU2013379634A priority patent/AU2013379634B2/en
Priority to EP20182309.3A priority patent/EP3780677A1/en
Priority to JP2015558320A priority patent/JP6201243B2/ja
Priority to EP13875708.3A priority patent/EP2945340B1/en
Priority to CN201380000052.2A priority patent/CN104662858B/zh
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to ES13875708T priority patent/ES2735021T3/es
Publication of WO2014127512A1 publication Critical patent/WO2014127512A1/zh
Priority to US14/825,972 priority patent/US9936029B2/en
Priority to US15/910,592 priority patent/US10681153B2/en
Priority to US16/876,833 priority patent/US11089116B2/en
Priority to US17/385,685 priority patent/US11563819B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/18Service support devices; Network management devices

Definitions

  • the present invention relates to the field of computers, and in particular, to a method and apparatus for triggering machine communication operations. Background technique
  • Machine-to-Machine Communications is a networked application and service centered on machine intelligence interaction. It embeds wireless or wired communication modules and application processing logic inside the machine to realize data communication without manual intervention to meet the information needs of users in monitoring, command scheduling, data collection and measurement.
  • M2M Machine-to-Machine Communications
  • Various M2M terminals (such as sensors, microcontrollers, etc.) are remotely connected to the M2M service platform directly or through the M2M gateway, and various M2M applications (such as power meter reading, intelligent transportation, etc.) are provided through the M2M service platform.
  • M2M Mobility Management Entity
  • ETSI European Telecommunication Standardization Institute
  • REST the abbreviation of Representational State Transfer
  • RESTf l the architectural style of RESTf l. It is characterized by the fact that everything consists of resources, a piece of text that exists on the network, or a variety of other media forms.
  • Each resource has a unique universal resource identifier (: Uniform Resource Identifier, hereinafter referred to as URI).
  • URI Uniform Resource Identifier
  • the application or business capability middleware can access this resource via a URI. Access to each resource is also fixed, including Create, Update, Delete, and retrieve. And in the RESTf architecture, both the client and the server are stateless.
  • Embodiments of the present invention provide a method and apparatus for triggering a machine communication operation, which are used to improve the stability of a trigger operation in an M2M system.
  • a first aspect of the present invention provides a method for triggering a machine communication operation, where a service capability middleware stores an expression of an active resource, where the representation of the active resource includes content of an active resource and information of an operation resource associated with the active resource. , the method includes:
  • the service capability middleware obtains a change result of the content of the active resource stored in the service capability middleware;
  • the service capability middleware obtains a representation of the operation resource associated with the active resource according to the information about the operation resource associated with the active resource, where the representation of the operation resource includes a condition and a location for sending an operation request to the target resource. a generic resource identifier of the target resource;
  • the service capability middleware determines that the change result satisfies a condition for sending an operation request to the target resource in the expression of the operation resource, and constructs an operation request for the target resource;
  • the source sends the operation request.
  • the information about the operation resource associated with the active resource is a representation of the operation resource associated with the active resource
  • the service capability middleware is based on the information of the operation resource associated with the active resource.
  • the information of the operation resource associated with the active resource is a universal resource identifier of the operation resource associated with the active resource
  • the service capability middleware obtains the active resource according to the information of the operation resource associated with the active resource.
  • the expression of the associated operation resource includes: the service capability middleware acquiring a representation of the operation resource associated with the active resource according to the universal resource identifier of the operation resource included in the expression of the active resource;
  • the information about the operation resource associated with the active resource is an operation resource associated with the active resource.
  • a representation of the operational resource associated with the active resource according to the information of the operational resource associated with the active resource, where the service capability middleware includes: the service capability middleware according to And a representation of the operation resource associated with the active resource, where the representation of the operation resource associated with the active resource is The representation of the operational resources contained in the operational resource set.
  • the service capability middleware before the service capability middleware obtains the change result of the expression of the active resource stored in the service capability middleware, the service capability middleware further includes: the service capability middleware receiving An active resource update request, where the active resource update request includes a description of a new active resource and a universal resource identifier of the active resource to be updated, where the representation of the new active resource includes information about the operating resource associated with the active resource And the service capability middleware updates the representation of the stored active resource according to the universal resource identifier of the active resource to be updated as a description of the new active resource;
  • the service capability middleware receives an operation resource creation request, where the operation resource creation request includes a representation of an operation resource associated with the active resource and a universal resource of an operation resource set to which the operation resource associated with the active resource belongs And an identifier, where the service capability middleware adds the expression of the operation resource in the operation resource set according to the universal resource identifier of the operation resource set to which the operation resource belongs.
  • the expression of the operation resource further includes an input operation type and an input parameter of the operation request, and the type of the operation request is creation or update;
  • the constructing the operation request for the target resource includes:
  • the service capability middleware obtains a representation of the new target resource from the parameter resource pointed to by the universal resource identifier of the parameter resource, and constructs a representation of the universal resource identifier including the target resource and the new target resource.
  • An operation request for a target resource in an expression of an operation resource; or, when the input parameter is a representation of the new target resource, constructing a universal resource identifier including the target resource and the new target resource An operational request for a target resource in the representation of an operational resource.
  • the capability middleware further includes: before acquiring the change result of the content of the active resource stored in the service capability middleware:
  • the service capability middleware receives an operation resource update request, the operation resource update request includes a representation of a new operation resource, and the representation of the new operation resource includes a resource-dependent representation or the resource-dependent universal resource identifier.
  • the expression of the operational resource updated by the service capability middleware is a representation of the new operational resource;
  • the service capability middleware receives a dependent resource creation request, where the dependent resource creation request includes the representation of the dependent resource and the universal resource identifier of the dependent resource set to which the resource belongs, the service capability middleware is based on The universal resource identifier of the dependent resource set dependent on the resource belongs to save the representation of the dependent resource in the dependent resource set, and the universal resource identifier of the dependent resource set is added in the expression of the operating resource.
  • the service capability middleware constructs an operation request for the target resource before:
  • the service capability middleware obtains a representation of the dependent resource associated with the operation resource according to the expression of the operation resource;
  • the service capability middleware acquires a representation of the condition resource indicated by the universal resource identifier in the representation of the resource dependent;
  • the service capability middleware confirms that the condition in the representation of the dependent resource is satisfied according to the expression of the condition resource.
  • the foregoing dependent resource type is divided into a sufficient condition type and a necessary condition type, and the number of the dependent resources is at least one, and the service capability middleware constructs a target resource in the expression of the operation resource.
  • the method further includes:
  • the foregoing service capability middleware obtains a resource-dependent representation associated with the operation resource according to the expression of the operation resource, including:
  • the service capability middleware acquires a representation of the dependent resource associated with the operation resource according to the resource-dependent representation included in the expression of the operation resource;
  • the service capability middleware acquires a representation of the dependent resource associated with the operation resource according to the resource-dependent universal resource identifier included in the expression of the operation resource; or The service capability middleware acquires a representation of the resource dependent table dependent resource associated with the operation resource according to the universal resource identifier of the dependent resource set dependent on the resource belonging in the expression of the operation resource.
  • the service capability middleware sequentially constructs an operation request for the target resource expressed by each of the operation resources according to a priority in the representation of the operation resource.
  • the foregoing description of the operation resource further includes an execution result of the operation, where the method further includes:
  • the service capability middleware receives an operation response returned by the target resource, and saves the operation response to an execution result of the operation in the expression of the operation resource;
  • the expression of the operation resource further includes an address of the operation execution result and an execution result of the operation, the method further comprising: the service capability middleware receiving an operation response returned by the target resource, and performing an operation result according to the embodiment The address obtains the operation result corresponding to the operation request, and saves the operation result corresponding to the operation request to the execution result of the operation.
  • a second aspect of the present invention provides a machine communication operation triggering apparatus, including an acquisition module, a construction module, and a transmission module:
  • the obtaining module is configured to acquire, when the content of the active resource changes, a change result of the content of the active resource stored in the service capability middleware, and obtain information about the operation resource according to the active resource associated with the active resource.
  • An expression of an operation resource associated with an active resource where the representation of the operation resource includes a condition for sending an operation request to a target resource and a universal resource identifier of the target resource, where the service capability middleware stores an expression of the active resource
  • the representation of the active resource includes the content of the active resource and the information of the operating resource associated with the active resource; the obtaining module is further configured to send the change result and the expression of the operating resource to the building module ;
  • a building module configured to receive the change result and the representation of the operation resource associated with the active resource, and determine that the change result meets the target resource in the representation of the operation resource
  • a sending module configured to receive the operation request, and send the operation request to the target resource according to the universal resource identifier of the target resource.
  • the information about the operation resource associated with the active resource is a representation of the operation resource associated with the active resource, and the obtaining module acquires the operation resource associated with the active resource according to the information of the operation resource associated with the active resource.
  • the expression is specifically: obtaining, according to the expression of the operation resource associated with the active resource included in the expression of the active resource, an expression of an operation resource associated with the active resource; or
  • the information about the operation resource associated with the active resource is a universal resource identifier of the operation resource associated with the active resource, and the obtaining module acquires the operation resource associated with the active resource according to the information of the operation resource associated with the active resource.
  • the expression is specifically: obtaining, according to the universal resource identifier of the operation resource included in the expression of the active resource, a representation of an operation resource associated with the active resource; or
  • the information about the operation resource associated with the active resource is a universal resource identifier of the operation resource set to which the operation resource associated with the active resource belongs, and the obtaining module acquires the active resource according to the information of the operation resource associated with the active resource.
  • the expression of the resource-related operation resource is specifically: obtaining, according to the universal resource identifier of the operation resource set to which the operation resource belongs, which is included in the expression of the active resource, a representation of the operation resource associated with the active resource, where The expression of the active resource association operation resource is a representation of the operation resource included in the operation resource set.
  • the foregoing apparatus further includes a receiving module, where the receiving module is configured to: before the obtaining module acquires a change result of the content of the active resource stored in the device Receiving an active resource update request, where the active resource update request includes a representation of a new active resource and a universal resource identifier of the active resource to be updated, where the expression of the new active resource includes the operation resource associated with the active resource And the receiving module updates, according to the universal resource identifier of the active resource to be updated, a representation of the stored active resource as a representation of the new active resource; or
  • the receiving module is configured to: before the obtaining module acquires a change result of the content of the active resource stored in the device, receive an operation resource creation request, and the operation resource creation request packet a representation of the operational resource associated with the active resource and a universal resource identifier of the operational resource set to which the operational resource belongs, the receiving module according to the universal resource identifier of the operational resource set to which the operational resource belongs
  • the operation resource concentrates the expression of the operation resource.
  • the expression of the foregoing operation resource further includes an input operation type and an input parameter of the operation request, and the type of the operation request is creation or update;
  • the operation request of the building module for the target resource is specifically: acquiring a new one from a parameter resource pointed to by the universal resource identifier of the parameter resource a representation of the target resource, the operation request including the universal resource identifier of the target resource and the representation of the new target resource for the target resource in the representation of the operational resource; or
  • the operation request of the building module to construct the target resource is specifically: constructing a universal resource identifier including the target resource and the new target resource An operational request for a target resource in the representation of an operational resource.
  • the foregoing receiving module is further configured to: acquire, by the acquiring module, content of an active resource stored in the service capability middleware Before the change result, receiving an operation resource update request, where the operation resource update request includes a representation of a new operation resource, where the representation of the new operation resource includes a resource-dependent representation or the resource-dependent universal resource identifier, and The expression of the updated operational resource is a representation of the new operational resource; or,
  • the receiving module is further configured to: before the acquiring module acquires a change result of the content of the active resource stored in the service capability middleware, receive a dependent resource creation request, where the dependent resource creation request includes the resource dependent And a generic resource identifier of the dependent resource set dependent on the resource belonging, and a generic resource identifier for the dependent resource set according to the dependent resource attribution, storing the representation of the dependent resource in the dependent resource set, and The generic resource identifier of the dependent resource set is added to the representation of the operational resource.
  • the foregoing apparatus may further include a confirmation module, where the obtaining module is further configured to acquire, according to the expression of the operation resource, a representation of the dependent resource associated with the operation resource, and obtain the resource dependent The conditional resource pointed to by the universal resource identifier in the representation Identification module
  • the confirmation module is configured to receive the expression of the condition resource, and confirm, according to the expression of the condition resource, a condition that satisfies the expression of the dependent resource.
  • the foregoing dependent resource type is divided into a sufficient condition type and a necessary condition type, and the number of the dependent resources is at least one, and the building module constructs an operation request for the target resource in the expression of the operation resource. Previously, further used to: determine that at least one sufficient condition type of resource dependent condition is satisfied; or
  • the building module constructs an operation request for the target resource in the representation of the operation resource: determining that the condition of the dependent resource specified in all the required condition types is satisfied, the business capability middleware constructing the target resource in the representation of the operation resource Operation request.
  • the obtaining module may further obtain, according to the expression of the operation resource, a representation of the dependent resource associated with the operation resource, specifically:
  • determining that the operation resource associated with the active resource is at least two, in the foregoing machine communication operation triggering device, the operation resource associated with the active resource is at least And the operation request of the operation resource further includes: according to the priority in the expression of the operation resource, sequentially constructing An operation request for a target resource expressed by each operation resource.
  • the expression of the operation resource further includes an execution result of the operation, where
  • the receiving module is further configured to receive an operation response returned by the target resource, and save the operation response to an execution result of the operation in the expression of the operation resource; or
  • the expression of the operation resource further includes an address of the operation execution result and an execution result of the operation, and the receiving module is further configured to receive an operation response returned by the target resource;
  • the obtaining module is further configured to acquire an operation result corresponding to the operation request according to the address that reflects the execution result of the operation, and save the operation result corresponding to the operation request to the execution result of the operation.
  • a third aspect of the present invention provides another machine communication operation triggering apparatus including a network interface, a processor, and a memory;
  • the network interface is configured to communicate with an external device, where the memory is used to store an application, and the processor is configured to invoke an application stored in the memory, and acquire, when the content of the active resource changes, acquire the middleware stored in the service capability.
  • the representation of the operational resource associated with the active resource is obtained according to the information of the operational resource associated with the active resource, where the representation of the operational resource includes a condition and a location for sending an operation request to the target resource Determining, by the universal resource identifier of the target resource, that the change result satisfies a condition for sending an operation request to the target resource in the expression of the operation resource, and constructing an operation request for the target resource, where the service capability middleware
  • the representation of the active resource is stored, where the representation of the active resource includes the content of the active resource and the information of the operating resource associated with the active resource; the target resource sends the operation request.
  • the information about the operation resource associated with the active resource is a representation of the operation resource associated with the active resource
  • the processor acquires the association with the active resource according to the expression of the active resource.
  • the expression of the operation resource is specifically: obtaining, according to the expression of the operation resource included in the expression of the active resource, a representation of an operation resource associated with the active resource,
  • the information about the operation resource associated with the active resource is a universal resource identifier of the operation resource associated with the active resource
  • the representation of the operation resource associated with the active resource by the processor according to the expression of the active resource is specifically: Obtaining, according to the universal resource identifier of the operation resource included in the expression of the active resource, a representation of an operation resource associated with the active resource; or
  • the information of the operation resource associated with the active resource is a universal resource identifier of the operation resource set to which the operation resource associated with the active resource belongs, and the processor acquires the operation resource associated with the active resource according to the expression of the active resource.
  • the expression is specifically as follows: According to the expression of the active resource Generating, by the universal resource identifier of the operation resource set to which the operation resource belongs, a representation of the operation resource associated with the active resource, where the representation of the operation resource associated with the active resource is an operation resource included in the operation resource set Expression.
  • the network interface is further configured to receive an active resource update request, where the active resource update request includes a representation of a new active resource and a universal resource of the active resource to be updated.
  • An identifier where the representation of the new active resource includes information about the operation resource associated with the active resource, and the processor calling the memory storage application updates the stored according to the universal resource identifier of the active resource to be updated.
  • the representation of the active resource is a representation of the new active resource; or,
  • the network interface is further configured to receive an operation resource creation request, where the operation resource creation request includes a representation of an operation resource associated with the active resource and a universal resource identifier of an operation resource set to which the operation resource associated with the active resource belongs
  • the processor calls the memory stored application, and adds the expression of the operation resource in the operation resource set according to the universal resource identifier of the operation resource set to which the operation resource belongs.
  • the expression of the foregoing operation resource further includes an input operation type and an input parameter of the operation request, and the type of the operation request is creation or update;
  • the processor acquires a representation of the new target resource from the parameter resource pointed to by the universal resource identifier of the parameter resource, and constructs the target resource.
  • the processor constructs a target resource in a representation of the operational resource including a generic resource identifier of the target resource and a representation of the new target resource Operation request.
  • the network interface is further configured to receive an operation resource update request, where the operation resource update request includes a new operation resource resource identifier;
  • the processor calls the memory stored application, and the expression of the updated stored operational resource is a representation of the new operational resource;
  • the network interface is further configured to receive a dependent resource creation request, where the dependent resource creation request packet
  • the resource-dependent representation and the universal resource identifier of the dependent resource set dependent on the resource attribution the processor invoking a memory-stored application, and according to the universal resource identifier of the dependent resource set to which the dependent resource belongs
  • the representation of the dependent resource is saved in the dependent resource set, and the universal resource identifier of the dependent resource set is added in the representation of the operating resource.
  • the processor further acquires a representation of the dependent resource associated with the operation resource according to the expression of the operation resource, and obtains the condition resource pointed to by the universal resource identifier in the representation of the dependent resource.
  • the expression, and the condition in the representation of the dependent resource is confirmed according to the expression of the condition resource.
  • the foregoing dependent resource type is divided into a sufficient condition type and a necessary condition type, and the number of the dependent resources is at least one, and the processor constructs an operation request for the target resource in the expression of the operation resource. Previously, further determining that at least one sufficient condition type of resource dependent condition is satisfied; or
  • the processor acquires, according to the resource-dependent representation included in the expression of the operation resource, a representation of a dependent resource associated with the operation resource; or according to a resource-dependent resource-dependent resource Expression; or,
  • the operation resource associated with the active resource is at least two, and the representation of the operation resource further includes a priority, and the processor is configured according to the operation resource.
  • the priority in the representation constructs an operation request for the target resource expressed by each operation resource.
  • the foregoing operation resource further includes an execution result of the operation, where the network interface is further configured to receive an operation response returned by the target resource, and the processor The operation response is saved in an execution result of the operation in the expression of the operation resource;
  • the foregoing operation resource includes an address and an execution result of the operation, and the network interface is further configured to receive an operation response returned by the target resource;
  • the operation result corresponding to the operation request is obtained according to the address that reflects the operation execution result, and the operation result corresponding to the operation request is saved in the execution result of the operation.
  • the service capability middleware in the foregoing embodiment of the present invention may be a middleware on an M2M platform or a gateway, and the M2M platform and the gateway belong to a capable node in the network, and there is no problem of limited capability, which is advantageous for solving a restricted environment. A situation in which the business cannot proceed.
  • the representation of the operation resource associated with the active resource is obtained according to the representation of the active resource, so that the operation trigger relationship between the resources may be distributed to each node (M2M platform or gateway). On top, the complexity of a single application is avoided.
  • FIG. 1 is a schematic flowchart of a method for triggering an M2M operation according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a resource structure in an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of an operation triggering method in a specific embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a configuration operation trigger in an embodiment of the present invention.
  • FIG. 5 is a structural diagram 1 of an operation resource TurnOnAC according to an embodiment of the present invention.
  • FIG. 6 is an architectural diagram of a resource-dependent MemberAtHome in an embodiment of the present invention.
  • FIG. 7 is a system architecture diagram of an embodiment of the present invention.
  • FIG. 8 is a structural diagram 1 of an operation resource CloseWindow according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of association between active resources and operational resources according to an embodiment of the present invention.
  • FIG. 10 is a schematic flowchart of operation triggering in an embodiment of the present invention.
  • FIG. 11 is a schematic flowchart of acquiring input parameters in an embodiment of the present invention.
  • FIG. 12 is a second structural diagram of an operation resource TurnOnAC according to an embodiment of the present invention.
  • FIG. 13 is a second structural diagram of an operation resource CloseWindow according to an embodiment of the present invention
  • FIG. 14 is a schematic flowchart of a condition detection process according to a dependent resource according to an embodiment of the present invention
  • FIG. 15 is a schematic flowchart of obtaining an operation result according to an embodiment of the present invention
  • FIG. 16 is a schematic structural diagram 1 of a device communication operation triggering device according to an embodiment of the present invention
  • FIG. 17 is a second schematic structural diagram of a device communication operation triggering device according to an embodiment of the present invention.
  • the operation triggering method of the M2M has the defects of high maintenance cost and poor stability.
  • the embodiment of the present invention provides a technical solution, in which the service capability middleware stores the expression of the active resource, and the expression of the active resource.
  • the M2M triggering operation method provided by the embodiment of the present invention includes the following steps:
  • Step 101 When a representation change of the active resource occurs, the service capability middleware obtains a change result of the content of the active resource stored in the middleware of the service capability;
  • Step 102 The service capability middleware obtains, according to information about the operation resource associated with the active resource, a description of the operation resource associated with the active resource.
  • the representation of the operational resource includes a condition for transmitting an operation request to the target resource and a universal resource identifier of the target resource;
  • Step 103 The service capability middleware determines that the change result satisfies a condition for sending an operation request to the target resource in the expression of the operation resource, and constructs an operation request for the target resource; Operation request.
  • the service capability middleware that stores the result of the change of the content of the active resource acquires and actively resources according to the information of the operation resource associated with the active resource.
  • the representation of the associated operational resource and build on the operation
  • the operation request of the target resource represented by the resource and finally the operation request is sent to the target resource expressed by the operation resource.
  • the service capability middleware in the foregoing embodiment of the present invention may be a middleware on an M2M platform or a gateway, and the M2M platform and the gateway belong to a capable node in the network, and there is no problem of limited capability, which is advantageous for solving a restricted environment. A situation in which the business cannot proceed.
  • the information about the operation resource that can be associated with the active resource acquires the representation of the operation resource associated with the active resource, that is, establishes an association between the active resource and the operation resource, so that the resource can be used.
  • the operational trigger relationship between the nodes is distributed on each node (M2M platform or gateway), such as each node that stores active resources, avoiding the complexity of a single application.
  • the operation of turning off the air conditioner can be used as an operation resource, and detecting whether the owner can exist as an active resource at home and indoor temperatures respectively.
  • the operating resource for turning off the air conditioner can be stored in the air conditioner.
  • the two active resources for detecting whether the owner is at home or indoor temperature are respectively stored in the service capability middleware of different gateways, and the association between the active resources and the operational resources distributed on different platforms is also established.
  • the operation trigger function can be implemented.
  • the technical solution provided by the embodiments of the present invention can enhance the capabilities of the M2M platform and the gateway middleware, making it possible to deploy a richer application.
  • the introduction of the above operational resources makes it more suitable for the RESTf l architecture.
  • the information about the operation resource associated with the active resource is a representation of the operation resource associated with the active resource
  • the service capability middleware in the foregoing step 102 is obtained according to the information of the operation resource associated with the active resource.
  • the representation of the operational resource associated with the active resource may include:
  • the service capability middleware obtains a representation of the operation resource associated with the active resource according to the representation of the operation resource that is associated with the active resource in the representation of the active resource;
  • the information of the operation resource associated with the active resource is a universal resource identifier of the operation resource associated with the active resource
  • the service capability middleware obtains the active resource according to the information of the operation resource associated with the active resource.
  • the representation of the associated operational resource includes:
  • the service capability middleware acquires a representation of the operation resource associated with the active resource according to the universal resource identifier of the operation resource included in the expression of the active resource;
  • the information of the operation resource associated with the active resource is a universal resource identifier of an operation resource set to which the operation resource associated with the active resource belongs, and the service capability middleware is based on the active resource
  • the information about the resource resource associated with the operation resource is obtained from the operation resource group that is associated with the active resource according to the representation of the active resource.
  • the representation of the operational resource associated with the active resource is obtained, wherein the representation of the operational resource associated with the active resource is a representation of the operational resource included in the operational resource set.
  • the association between the active resource and the operating resource may be established in the above three manners by the expression of the active resource in the expression of the active resource and the universal resource identifier of the operating resource set to which the source of the active resource belongs.
  • the method before the service capability middleware obtains the change result of the content of the active resource stored in the service capability middleware, the method further includes:
  • the service capability middleware receives an active resource update request, where the active resource update request includes a description of a new active resource and a universal resource identifier of the active resource to be updated, where the expression of the new active resource includes the active resource.
  • the information of the resource-related operating resource the service capability middleware updating the stored active resource representation according to the universal resource identifier of the active resource to be updated, and expressing the new active resource;
  • the active resource update request also includes the expression of the active resource before the update.
  • the service capability middleware receives an operation resource creation request, where the operation resource creation request includes a representation of an operation resource associated with the active resource and a universal resource of an operation resource set to which the operation resource associated with the active resource belongs And an identifier, where the service capability middleware adds the expression of the operation resource in the operation resource set according to the universal resource identifier of the operation resource set to which the operation resource belongs.
  • the representation of the operation resource may further include the type of the operation request, and the type of the operation request constructed may be any one of creation, update, acquisition, or deletion.
  • the type of the operation request is created or updated, that is, the operation request is used to create or update the representation of the target resource
  • the created operation request also needs to carry the expression of the new target resource of the operation resource.
  • the input parameter of the operation may be further included in the expression of the operation resource, and the input parameter of the operation may be a URI of the parameter resource, or a representation that directly saves the new target resource in the input parameter of the operation.
  • the constructing the operation request for the target resource includes:
  • the service capability middleware obtains a representation of the new target resource from the parameter resource pointed to by the universal resource identifier of the parameter resource, and constructs a representation of the universal resource identifier including the target resource and the new target resource.
  • An operation request for a target resource in an expression of an operation resource; or, when the input parameter is a representation of the new target resource, constructing a universal resource identifier including the target resource and the new target resource An operational request for a target resource in the representation of an operational resource.
  • the service capability middleware further includes: before acquiring the change result of the content of the active resource stored in the service capability middleware:
  • the service capability middleware receives an operation resource update request, the operation resource update request includes a representation of a new operation resource, and the representation of the new operation resource includes a resource-dependent representation or the resource-dependent universal resource identifier.
  • the expression of the operational resource updated by the service capability middleware is a representation of the new operational resource; it is worth noting that the operational resource update request is in addition to the representation of the operational resource.
  • the service capability middleware receives a dependent resource creation request, where the dependent resource creation request includes the representation of the dependent resource and the universal resource identifier of the dependent resource set to which the resource belongs, the service capability middleware according to the A generic resource identifier of the dependent resource set dependent on the resource is stored in the dependent resource set to store the representation of the dependent resource, and the universal resource identifier of the dependent resource set is added in the representation of the operational resource.
  • the service capability middleware obtains a representation of the dependent resource associated with the operation resource according to the expression of the operation resource;
  • the service capability middleware acquires a representation of the condition resource indicated by the universal resource identifier in the representation of the resource dependent;
  • the service capability middleware confirms that the condition in the representation of the dependent resource is satisfied according to the expression of the condition resource.
  • the above-mentioned dependent resources can be divided into dependent types of sufficient condition types and necessary condition types.
  • the source, and the number of dependent resources is at least one, before the service capability middleware constructs an operation request for the target resource in the representation of the operation resource, the method further includes:
  • the service capability middleware constructs an operation request for the target resource in the representation of the operation resource when further determining that the condition of the resource-dependent provision of the at least one sufficient condition type is satisfied; or the service capability middleware further determines all necessary conditions When the condition of the type dependent resource specification is satisfied, an operation request for the target resource in the representation of the operation resource is constructed.
  • the service capability middleware obtains the resource-dependent representation associated with the operation resource according to the expression of the operation resource, including:
  • the service capability middleware acquires a representation of the dependent resource associated with the operation resource according to the resource-dependent representation included in the expression of the operation resource;
  • the service capability middleware acquires a representation of the dependent resource associated with the operation resource according to the resource-dependent universal resource identifier included in the expression of the operation resource;
  • the service capability middleware acquires a representation of the resource dependent resource associated with the operation resource according to the universal resource identifier of the dependent resource set dependent on the resource resource included in the expression of the operation resource.
  • the representation of the operation resource includes the representation of the dependent resource
  • the representation of the operation resource includes the universal resource identifier of the dependent resource and the generic resource of the dependent resource set in which the dependent resource belongs.
  • the identifier establishes the association between the operational resource and the dependent resource in three ways.
  • the representation of the operation resource may further include a priority, where the service capability middleware constructs a target resource in the representation of the operation resource.
  • the operation request can include:
  • the service capability middleware sequentially constructs an operation request for the target resource in each of the operation resource representations according to the priority in the representation of the operation resource.
  • the expression of the operation resource may further include an execution result of the operation, and the method further includes:
  • the service capability middleware receives an operation response returned by the target resource, and the operation is ringing It should be saved in the execution result of the operation in the expression of the operation resource.
  • the foregoing description of the operation resource may further include an address and an execution result of the operation that reflect the operation execution result, and the method further includes:
  • the service capability middleware receives the operation response returned by the target resource, acquires an operation result corresponding to the operation request according to the address that reflects the operation execution result, and saves the operation result corresponding to the operation request to the execution of the operation.
  • the address that reflects the execution result of the operation may be a URI of a resource, and the operation result corresponding to accessing the corresponding resource according to the URI and obtaining the operation request may be obtained.
  • FIG. 2 is a schematic diagram of a resource structure in the embodiment of the present invention.
  • the resource element structure of the RESTf l is extended, and multiple operations are performed. Resources are grouped together to form an operational resource set.
  • the relationship between the active resource, the operation resource, and the operation resource set may be as shown in FIG. 2, where a box represents a resource, and a round frame represents an attribute, and a black solid line indicates that two resources or resources have an association relationship with the attribute.
  • the resources and attributes in this embodiment are only an exemplary division manner, and the division manner may be different according to different application scenarios.
  • a subject resource which may be any resource in the RESTf l architecture.
  • the active resource may be a resource that causes an operation to trigger an event.
  • An operational resource set ( Operations ) that contains one or more operational resources (Operation), each of which corresponds to an action triggered by an active resource.
  • the operational resource set is associated with the active resource, and the association may be represented by a URI containing the operational resource set in the representation of the active resource.
  • Operational resource which represents an operation.
  • This operational resource can contain a range of attributes and resources.
  • the round frame represents the attribute, that is, the attributes of the operation resource are: Priority, Rule, Object Resource, Method, Input, and the operation result.
  • a dependent resource can also contain several attributes, such as logic, URI, and /condition.
  • One or more operational resources are included in the operational resource set, and an association is generated by manipulating the resource set active resources.
  • the active resource representation includes a universal resource identifier URI of the operation resource set
  • all the operation resources under the operation resource set are operation resources associated with the active resource. Therefore, when the active resource changes, the operation All operational resources under the resource set, and determine whether operations in the operational resource need to be performed.
  • Priority indicates the priority of the operational resource.
  • the service capability middleware according to the priority in the representation of the operational resource , operate the operations in the resources in order of priority from high to low.
  • a condition indicates the condition required to perform an operation in the operation resource.
  • the target resource (Object Resource), which can be specifically represented by the URI of the target resource.
  • the operation request for the target resource is commonly sent and sent to the URI of the target resource.
  • Method indicates the kind of operation request for the operation resource.
  • the RESTful structure generally defines the types of limited operation requests. For example, for ETSI M2M, there are four types of operation requests, namely Create, Retrieve, Update, and Delete.
  • Input represents an input parameter for an operation request for the operational resource.
  • the two types of operation requests for updating and creating in the RESTf method need to carry input parameters.
  • the input parameter carried in the creation request is a representation of the new target resource, and the entire target resource is created by using the representation of the new target resource carried in the operation request.
  • the representation of the original target resource is replaced with the representation of the new target resource carried in the update request.
  • the value of the input parameter in the description of the operation resource may also be a URI, where the URI points to a parameter resource, and the expression of the parameter resource is a representation of a new target resource that the operation request needs to carry; the input parameter may also be a segment.
  • the Output URI represents the address that reflects the result of the operation.
  • the operation execution result needs to be fed back through the state of other resources, for example, determining whether the light is turned on requires obtaining the value of the light sensor under the light, and the address of the data of the light sensor is the address indicating the execution result of the operation.
  • Imput is not required for every operation resource, but can be expressed in the operation resources of some classes. To not include Imput.
  • Result represents the execution result of the operation and is a piece of text.
  • the Result is stored as a representation of the resource obtained from the Output URI.
  • the Result is stored as an operation response that is fed back after the operation request is sent.
  • Dependencies represent a collection of dependent resources (Dependency ), that is, dependent resource sets.
  • Dependent resources indicate that the execution of the operational resource also depends on the dependency condition of the dependent resource definition.
  • Dependency represents a dependency resource.
  • Three attributes can be saved in a dependent resource, a URI, a condition (Rule), and the last one is logic (Logic).
  • the dependent resource refers to whether the representation of the conditional resource pointed to by the URI in the dependent resource satisfies the condition defined by the Rule in the representation of the dependent resource. And if the parameter in the Logic is AND, it indicates that the condition defined by the Rule in the representation of the dependent resource is a necessary condition for executing the request for sending the operation. If the parameter in the Logic is OR, the rule defined by the resource in the representation of the dependent resource is defined. Conditional satisfaction is a sufficient condition for performing an operation.
  • FIG. 3 is a schematic flowchart of an operation triggering method according to an embodiment of the present invention. As shown in FIG. 3, the following steps are included:
  • Step 201 Configure an active resource to trigger an action on the target resource when the content of the active resource changes.
  • the active resource may be configured by the application to perform one or more operations on one or more target resources when the representation of the active resource changes.
  • the method of configuration is to associate the active resource with at least one operational resource.
  • the operation resource set association may be performed, or multiple operation resources may be directly associated with the active resource.
  • the active resource is configured, and the application creates a request by using an operation resource to send an operation resource set associated with the active resource, so as to newly create an operation resource in the operation resource set.
  • the operation resource creation request defines which target resource (Object Resource) to perform when the active resource changes (Rule), and the operation parameter required for the operation request of the operation. (Input ) Whether or not the condition defined by the Rule in the resource needs to be satisfied before the operation is performed. In addition, you can also send the operating capital by the application.
  • a source creation request is created by an entity that receives an operation resource creation request, such as platform middleware. It is also possible that the application directly sends an operation resource creation request to the middleware storing the active resource, and the middleware creates the operation resource in the representation of the active resource. For the specific configuration process, refer to the embodiment shown in FIG. 4.
  • Step 202 Obtain a change result of the content of the active resource.
  • the active resource may be any resource stored in the service capability middleware of the M2M system. Specifically, it may be a resource that causes an operation to trigger an event. For example, in an operation triggering event in which an air conditioner switch is caused when the indoor temperature changes, the resource for completing the indoor temperature state detection is an active resource.
  • the content of the active resource may be a text segment having a specific structure stored in the business capability middleware, a record of the database, a file, and the like, and the text segment may be changed by a process of deserialization.
  • the representation of the active resource may also be a data structure directly stored in the memory of the business capability middleware.
  • the change of the content of the active resource may be caused by any situation.
  • the content of the active resource may be changed by sending a request by another application, or the content of the active resource may be changed by a process inside the service capability middleware.
  • the business capability middleware that holds the active resource detects the change result of the content of the active resource by the program that listens to the active resource.
  • Step 203 Obtain a representation of the operation resource associated with the active resource, and determine that a change result of the content of the active resource satisfies a condition defined by a Rule in the representation of the operation resource.
  • the active resource and the operational resource are associated by operating the resource set.
  • the expression of the active resource may include the respective operation resource representations in FIG. 2, or the URI of each operation resource in FIG. 2, or the URI of the operation resource set to which the operation resource belongs in FIG. 2.
  • An operational resource set is a collection type resource that contains at least one operational resource.
  • Each operational resource contains a Rule attribute that defines the conditions that need to be met for changes in the content of the active resource associated with the operational resource.
  • the service capability middleware judges the Rule conditions of its associated operation resources one by one according to the change result of the contents of the active resources, and finally selects the operation resources that satisfy the Rule condition.
  • this step 203 reference may be made to the embodiment shown in FIG.
  • Step 204 Select, for the operation resource associated with the active resource determined in the foregoing step, the operation resource according to the priority of the operation resource.
  • the priority attribute is defined in the operation resource to indicate the priority of the operation resource.
  • the representation of the priority may be a number, and the higher the value, the higher the priority or other form. Prioritize the importance and sequence of operational resources by priority.
  • step 203 if the determined operation resource is related to the active resource, and the content of the active resource changes to meet the Rule condition of the operation resource, the operation capability is at least two, and in this step, the service capability middleware is according to the The priority in the representation of the operation resource, in turn, the operation request for the target resource expressed by each operation resource is constructed in order to be able to perform the operations described in each operation resource in order.
  • Step 205 Determine that there are dependent resources associated with the operation resources selected according to the priority in step 204, and determine that the conditions of the Rule definition in the associated dependent resources can be satisfied.
  • the dependent resource associated with the operating resource may be a representation of the dependent resource included in the operating resource representation (as shown by the dependent resource in FIG. 2), or may be one or more included in the operating resource representation.
  • the identity of the dependent resource, or the identity of the dependent resource set contained in the operational resource representation are not limited herein.
  • the dependency resource contains three attributes: URI, Logic, and Rule. After determining that there is a dependent resource related to the operation resource, the condition defined by the rule in the dependent resource can be satisfied as follows: According to the URI of the resource-dependent URI, the representation of the condition resource indicated by the URI is obtained, and whether the representation of the condition resource can satisfy the dependency is determined. The condition defined by the rule in the resource, if the representation of the conditional resource can satisfy the condition defined by the rule in the dependent resource, and further check whether the type of the dependent resource defined in the Logic is a sufficient condition type or a necessary condition type.
  • step 206 is directly executed. For the specific implementation process of this step, refer to the embodiment shown in FIG.
  • Step 206 Acquire an input parameter of the operation request according to the type of the operation request in the expression of the operation resource selected in step 204, and construct an operation request.
  • the type of the operation request defined by the Method in the expression of the operation resource is Create or Update.
  • the input parameter of the operation is obtained according to the value of the Input in the operation resource, and the input parameter of the operation is a representation of the target resource to be created, or a representation of the target resource to be updated.
  • the Input contains a URI
  • the input parameter needs to be obtained. (Retrieve) requesting to obtain the representation of the resource indicated by the URI as a representation of the new target resource; the value of the Input can also directly save the representation of the new target resource, and directly use the expression of the new target resource. Create an operation request.
  • the operation request to be sent is constructed according to the type of the operation request, the target resource, and the input parameter defined in the operation resource.
  • the specific implementation process of the step 206 refer to the embodiment shown in FIG.
  • Step 207 Send the operation request created in step 206 to the URI of the target resource, and receive the operation response returned by the device where the target resource is located.
  • the platform middleware storing the active resource is configured to obtain the execution result corresponding to the operation request according to the Output URI in the expression of the currently executed operation resource, and save the result in the Result.
  • the execution result corresponding to the operation request needs to be obtained from the resource indicated by the Output URI.
  • the service capability middleware storing the active resource further sends a Retrieve request to the Output URI to obtain the representation of the resource indicated by the Output URI, and saves the representation of the resource indicated by the obtained Output URI.
  • the execution result (Result) attribute in the representation of the operation resource is a
  • step 207 If the expression of the operation resource does not provide an Output URI, it indicates that the execution result of the operation does not need to be represented by other resources. At this time, after the execution of step 207, the operation response corresponding to the operation request in step 207 is received. The content of the response of the operation is saved to the execution result (Result) in the representation of the operation resource.
  • Result For the specific implementation process of this step 208, reference may be made to the embodiment shown in FIG.
  • Step 209 Determine whether it is the last operational resource selected? If it is the last operation resource, that is, the operation of determining the plurality of operation resources selected in step 203 has been performed, proceed to step 210, otherwise return to step 204, and the manner of determining whether the operation of the operation resource is performed in this step may be judged. Whether the corresponding operation response is received.
  • Step 210 the end.
  • an operation resource is configured for a temperature value of a temperature sensor, so as to trigger an air conditioner to be turned on when a temperature is higher than 30 ° C and a family member is at home.
  • the system architecture diagram can be as shown in Figure 7.
  • M2M network application (hereinafter referred to as: NA) server, through the mla interface, various M2M applications (such as power meter reading, intelligent transportation, etc.) are registered to the network service capability layer of the M2M service platform (Network Service Capability Layer).
  • NSCL Network Service Capability Layer
  • ⁇ 2 ⁇ service platform accesses the data collected by the ⁇ 2 ⁇ device through the mid interface, and also performs remote device management on the M2M device through the interface
  • M2M device d (M2M device) passes M2M
  • the gateway (M2M Gateway) is connected to the NSCL of the M2M service platform; the M2M device domain is connected to the NSCL of the M2M service platform through the mid interface.
  • M2M device D is a traditional device that does not comply with the ETSI M2M specification; M2M device D is a device that conforms to the ETSI M2M specification.
  • the M2M device D has a Service Capability Layer (hereinafter referred to as SCL) defined by the ETSI M2M standard, and a device D, which does not have an SCL defined by the ETSI M2M standard.
  • SCL Service Capability Layer
  • the M2M gateway uses the Gateway Interworking Proxy (GIP) to communicate with M2M legacy devices through wireless or wired communication (eg, Zigbee, Bluetooth, DLMS/COSEM, Zwave, BACnet, ANSI C12, mBus, etc.).
  • GIP Gateway Interworking Proxy
  • M2M device D interconnected.
  • the mid interface between the M2M gateway or the M2M device D and the M2M platform generally uses wired or wireless wide area network communication (eg, Xdsl, HFC, satellite, GERAN, UTRAN, eUTRAN, W-LAN and WiMAX, etc.).
  • D'Al is a temperature sensor application, which continuously stores the temperature value in the temperature resource in the GSCL1 resource tree of the gateway service capability layer.
  • the URI of the active resource Temperature resource is: http://gscll/temperature.
  • NA1 is a smart home application that is used to create representations of operational resources associated with temperature resources.
  • D, A5 is an air conditioning application that controls the air conditioner by monitoring the expression value of the air conditioning status (AirCondition) resource in the GSCL2. For example, when the expression value of the air conditioning status resource is ON, the air conditioner is turned on, and when it is OFF, the air conditioner is turned off.
  • the URI of the air conditioning status resource is: http!.//gscl2/airCondition 0
  • NA2 is the host location application, which saves the owner's location information in the HostLocation resource in NSCL.
  • the URI of the owner location resource is: littp://nscl/hostLocation.
  • the GSCL1 needs to send a request to GSCL2 to change the air conditioning status resource to ON, thereby completing the purpose of turning on the air conditioner.
  • NA1 accomplishes this by creating a representation of the operational resources associated with the temperature resource.
  • Step 301 Create a representation of the operation resource.
  • the NA1 build operation resource in the web application server turns on the air conditioner (TumOnAC), which is used to express the conditions that trigger the operation of turning on the air conditioner. This step can be repeated multiple times to create a representation of multiple operational resources, depending on the needs of the business logic.
  • the architecture of the operational resource TumOnAC is shown in Figure 5: Step 302: Send an operation resource creation request.
  • the NA1 in the network application server encapsulates the representation of the constructed operational resource TumOnAC according to the standard of the RESTf architecture to be sent to the gateway service capability layer GSCL1 on the interface, so that the operational resource TumOnAC is created by the GSCL1 to be associated with the temperature resource.
  • the URI of the operational resource set is http://gscl 1 /temperature/Operations. Also; It is said that the operation resource creation request carries the URI of the operation resource set and the representation of the constructed operation resource.
  • the operating resource creation request may carry the URI of the temperature resource or the URI of the GSCL1, and the operating resource is created by the GSCL1, as created under the expression of the temperature resource. Operate the resource, or create an operation resource separately, and include the URI of the operation resource in the representation of the temperature resource.
  • the embodiment of the present invention is described by taking an example of a URI carrying an operation resource set in an operation resource creation request.
  • Step 303 Create an operation resource.
  • the gateway service capability layer GSCL1 After receiving the operation resource creation request sent by NA1, the gateway service capability layer GSCL1 creates the operation resource TumOnAC in the operation resource request under the operation resource set (Operation) associated with the temperature resource, and adds the expression of the operation resource TumOnAC to The operation resources are concentrated to associate the operation resource TumOnAC with the temperature resource. After the gateway service capability layer creates the operation resource TumOnAC, it returns a creation response to NA1.
  • Step 304 Create a representation of the dependent resource.
  • NA1 starts to create dependent resources for different operational resource execution according to business needs.
  • whether the air conditioner is turned on depends on the location of the owner, that is, the state of the host location resource HostLocation, and the host location resource HostLocatio is the dependent resource of the operation resource TumOnAC, so the dependent resource MemberAtHome is created, and the dependent resource MemberAtHome is expressed.
  • the value of the mock Logic is OR, indicating the sufficient condition type for the type of the dependent resource, the URI is the URI of the owner's location resource, and the condition Rule is the home location state at home.
  • Step 305 Send a dependency resource creation request.
  • NA1 after step 304, encapsulates the representation of the constructed dependency resource MemberAtHome according to the standard of the RESTful architecture to be sent to the gateway service capability layer GSCL1 on the interface, so that the dependent resource MemberAtHome is created by GSCL1 in the dependent resource associated with the operation resource TumOnAC.
  • the URI of the dependent resource set is Http://gscll/temperature/Operations/TurnOnAC/Dependencies. That is to say, the dependent resource creation request contains a URI that depends on the resource set.
  • the dependent resource creation request may further include a URI of the operation resource, indicating that the resource does not depend on the resource or the dependent resource set, so that the GSCL1 directly saves the representation of the dependent resource in the operation resource TumOnAC.
  • a URI that depends on a resource set in a resource-dependent creation request as an example.
  • the request can be created in accordance with the standard defined dependency creation (Create).
  • Step 306 Create a dependent resource.
  • GSCL1 After receiving the dependency resource creation request sent by NA1, GSCL1 adds the representation of the dependent resource MemberAtHome in the dependent resource creation request to the dependent resource set associated with the operation resource TumOnAC, that is, associates the dependent resource MemberAtHome with the dependent resource set. Up, thus also correlating the dependent resource MemberAtHome with the operational resource TumOnAC. Create a dependency and return to create a response when the resource is complete.
  • the system architecture described in FIG. 7 further includes a windowing controller application D'A4 that controls the window by monitoring the value of the Window resource in the gateway service capability layer GSCL2, for example, when the representation of the Window resource is ON. , is OFF when closing the window.
  • the URI of the Window resource is: http: //gscl2/window.
  • Close the window operation resources CloseWindow's architecture diagram can be as shown in Figure 8, operating resources
  • the input parameter of CloseWindow Input is a URI, which is different from the input parameter of TumOnAC.
  • the resource The CloseWindow's Output URI is http://gscl2/allWindowStatus , which is the URI of the allWindowStatus resource.
  • the expression of the allWindowStatus resource is used to indicate the closed state of the window in the home, ON indicates that the window is open, and OFF indicates that the window has been closed.
  • the operation resources CloseWindow and the operation resource TumOnAC are respectively associated with the active resource Temperature.
  • the specific association diagram can be as shown in Figure 9.
  • the temperature resource Temperature is used as an active resource, and its expression changes.
  • the result of the content acquired by GSCL1 is 31 degrees.
  • Step 402 GSCL 1 determines that there is an operation resource associated with the temperature resource Temperature
  • TumOnAC and operation resource The URI of the operation resource set to which CloseWindow belongs.
  • the architecture diagram of the temperature resource may be as shown in FIG. 9.
  • the operation resources associated with the temperature resource determined in this step are TumOnAC and CloseWindow.
  • Step 403 Determine that the change result of the content of the temperature resource satisfies the condition defined by the Rule in the expressions of the operation resources TumOnAC and CloseWindow determined in step 402.
  • the Rule defines the method for matching the representation of the resource.
  • Rule is the filterCriteria attribute defined by it.
  • the rule defined by Rule is >30 °C, and the expression of temperature resource has changed to 31 °C. Therefore, the conditions defined by the Rule of TumOnAC and CloseWindow are satisfied, and the above two operation resources are selected in this step. In the subsequent steps, the corresponding operation resources are performed one by one.
  • Step 404 The foregoing two operating resource representations include a priority (Priority) of the operating resource.
  • the priority of the operation resource CloseWindow is 2
  • the priority of the operation resource TumOnAC is 1, so the priority of the operation resource CloseWindow is higher than the priority of the operation resource TumOnAC, so this step first selects the operation with high priority.
  • the operation corresponding to the resource CloseWindow is the priority of the operation resource CloseWindow.
  • Step 405 Determine the condition of the Rule defined in the dependent resource of the operation resource CloseWindow. For the specific steps, refer to the embodiment shown in FIG. 14.
  • Step 406 Acquire an input parameter required to create an operation request for the operation resource CloseWindow.
  • Step 407 Construct an operation request to be sent according to the request type (Method), the target resource (Object Resource), and the input parameter obtained in step 406 included in the expression of the operation resource CloseWindow.
  • the type of the operation request is Create
  • the URI of the target resource is http://gscl3/window
  • the obtained input parameter (Input) is OFF.
  • the operations transmitted on the standard RESTf interface can be built according to the above attributes. Make a request.
  • Step 408 Send the operation request constructed in step 407 to GSCL3, specifically by using the standard RESTful interface defined by the M2M system, and receiving the operation in the operation request by the GSCL3 through the window device, such as closing the window and returning the operation response.
  • Step 409 Acquire an execution result corresponding to the operation request.
  • Step 409 Acquire an execution result corresponding to the operation request.
  • Step 410 Select, according to the priority of the operation resource selected in step 403, the remaining operation resources with the highest priority, and continue to perform the following steps.
  • the operation resource TurnOnAC is selected in this step.
  • Step 411 Determining the operation resource The condition of the rule definition in the representation of the resource dependent in the representation of the TurnOnAC is satisfied. For the detailed steps, refer to the embodiment shown in FIG. 14.
  • Step 412 Acquire an input parameter required to create an operation request for TurnOnAC. For detailed steps, refer to the embodiment shown in FIG.
  • Step 413 Construct an operation request to be sent according to the type (Method), the target resource (Object Resource) included in the operation resource TurnOnAC, and the input parameter acquired in step 406.
  • an operation request transmitted on a standard RESTful interface can be constructed.
  • Step 414 Send the operation request created in step 413 to the GSCL2, and specifically send it through the standard REST1 interface defined by the M2M system, and receive the operation response.
  • Step 415 Acquire an execution result of the operation. For the specific steps, refer to the embodiment shown in FIG. 15.
  • GSCL2, GSCL1, and GSCL3 may be the same GSCL, or may be different GSCLs, which are not limited herein.
  • the Input contained in the expression of the operation resource represents the input parameters required to construct the operation request.
  • steps 406 and 412 in the above-described example shown in FIG. 10 input parameters are acquired when constructing operation requests for the operation resources Close Window and TurnOnAC, respectively.
  • the specific process is shown in Figure 12, where the resources used to save the input parameters
  • the process of determining whether to obtain an input parameter may include the following steps:
  • Step 501 The process starts, and determines an operation corresponding to the operation resource that needs to be executed, for example, an operation corresponding to the operation resource CloseWindow or an operation corresponding to the operation resource TurnOnA C.
  • Step 502 Determine an operation in the expression of the operation resource being executed.
  • the request type (Method) in the expressions of the operation resources CloseWindow and TumOnAC in this embodiment, the request type (Method) is created (Create), step 503 is executed, and the request type is deleted or retrieved (Retrieve).
  • the operation request is constructed, the input parameter does not need to be considered, and step 506 can be directly executed;
  • Step 503 Determine whether the URI of the parameter resource is saved in the input parameter Input of the expression of the operation resource being executed.
  • a URI has its own fixed format, which consists of a schema, host, port, and path. For details, see IETF RFC3305.
  • the URI stored in the input parameter Input indicates that the input parameter required to construct the operation request is a representation of the resource parameter pointed to by the URI.
  • the input parameter Input in the expression stores a URI: http://gscl2/OFF. If the URI is saved in the input parameter, then step 505 is entered. If the URI is not stored in the input parameter, the representation of the resource is directly saved, and as a representation of the new target resource, the process proceeds to step 504.
  • Step 504 When the expression of the new target resource is directly saved in the input parameter in the expression of the operation resource being executed, the expression of the target resource may be a text segment. If the input parameter in the expression of the operation resource TumOnAC saves ⁇ textContent>ON ⁇ textContent>, the text fragment is the input parameter required to create an operation request for the operation resource TumOnAC.
  • Step 505 When the input parameter in the representation of the operation resource being executed is a URI, the request to send the request to the URI to obtain the representation of the resource pointed by the URI as a new target resource is required.
  • the URI of the input parameter Input is http://gscl3/OFF, indicating that GSCL1 (the service capability middleware where Temperature is located) needs to send a get request (Retrieve) to GSCL3 (http://gscl3/OFF where The service capability middleware) obtains the representation of the resource indicated by http://gscl3/QFF as a representation of the new target resource.
  • Step 506 When constructing the operation request of the deletion or acquisition type, the parameter does not need to be input, and the process proceeds directly to step 507. Step 507, performing the next step of step 406 and step 412 in the embodiment shown in FIG.
  • step 405 and step 411 in the embodiment shown in FIG. 10 it is also necessary to judge that the condition defined by the Rule in the representation of the dependent resource in the operation resource is satisfied before the operation is performed.
  • D A2 is the bedroom window magnetic sensor application, used to detect whether the bedroom window is closed
  • the application uses the representation of the BedroomWindowStatus resource in GSCL1 to illustrate the current bedroom window.
  • the URI of the BedroomWindowStatus resource is: http://gscll/bedroomWindowStatusappli
  • D'A3 is the living room window magnetic sensor application that detects if the window in the living room is closed.
  • the application uses the representation of the LivingroomWindowStatus resource in GSCL1 to indicate the current The status of the living room window.
  • the URI of the LivingroomWindowStatus resource is: http://gscll/livingroomWindowStatus
  • the window needs to be closed first, then the air conditioner is turned on.
  • the determination of whether the condition defined by the Rule in the representation of the dependent resource associated with it is satisfied may include the steps as shown in Figure 14:
  • Step 601 start.
  • Step 602 GSCL1 determines all dependent resources associated with the operating resource, wherein the dependent resources associated with the operating resource TurnOnAC include MemberAtHome, LivingroomWindowClosed, and BedroomWindowClosed; and the dependent resources associated with the operating resource CloseWindow include LivingroomWindowOpen and BedroomWindowOpen.
  • Step 603 For each operation resource, sequentially select a dependent resource associated with the operation resource. Performing the following steps 604-610 for each dependent resource;
  • Step 604 Obtain a representation of the conditional resource pointed to by the URI according to the URI in the representation of the dependent resource; if the representation of the conditional resource pointed to by the URI is obtained according to http:/Aiscl/hospLocation, the location of the owner is obtained.
  • Step 605 determining whether the representation of the conditional resource satisfies the condition defined by the rule in the dependent resource, if the execution step 606 is satisfied, otherwise step 607 is performed;
  • Step 606 determining the type of the sufficient condition type of the dependent resource, or the necessary condition type, if it is a sufficient condition type, performing step 609, if it is a necessary condition type, performing step 608;
  • the type of the resource-dependent Member At Home is and, which is a necessary condition type, and it is also necessary to determine whether other resource-dependent conditions are satisfied.
  • Step 607 Determine whether the type of the dependent resource is a sufficient condition type or a necessary condition type, if it is a necessary condition type, perform step 610, if it is a sufficient condition type, perform step 608;
  • Step 608 confirm whether it is the last dependent resource, if not step 603, if yes, then in two cases, if it is determined in the above step 605 that the representation of the conditional resource satisfies the condition defined by the rule in the resource, step 609 is performed. When it is determined in the above step 605 that the representation of the conditional resource is not satisfied, the step 610 is executed according to the condition defined by the rule in the resource;
  • Step 609 proceeding to the next step, that is, step 406 and step 412 in the embodiment shown in FIG. 10; Step 610, terminating the operation for the operation resource.
  • the dependent resource selected first in step 603 is LivingroomWindowOpen; and further, in step 604, according to the URI of the dependent resource LivingroomWindowOpen: http://gscl 1/livingroomWindowStatus, whether the living room window is opened or not is obtained.
  • the representation of the resource that is, the closed state (Closed), and in step 605, it is judged whether the representation of the resource indicating whether the living room window is opened in step 604 satisfies the condition defined by the Rule in the representation of the resource LivingroomWindowOpen, and the dependent resource LivingroomWindowOpen
  • the condition defined by Rule is the open state (Open)
  • step 607 it is determined that the dependent resource type defined by the Logic (Logic) in the representation of the dependent resource LivingroomWindowOpen is Sub-condition type (OR)
  • step 608 is further performed; in step 608, it is determined that there is no other resource dependent for the operation resource CloseWindow, so the process returns to step 603, and in step 603, the next dependent resource BedroomWindowOpen is selected, and
  • step 604 according to the URI of the dependent resource BedroomWindowOpen: htt ://gscl 1 /bedroomWindowStatus , the expression indicating whether the bedroom window is open
  • step 605 it is judged whether the representation of the resource indicating whether the bedroom window is opened in the step 604 satisfies the condition of the definition of the Rule in the representation of the resource BedroomWindowOpen, and the condition of the definition of the Rule in the representation of the resource BedroomWindowOpen is the open state (Open Therefore, if the result of the determination is satisfied, step 606 is performed.
  • step 606 it is determined that the type of the dependent resource defined by the logic (Logic) in the expression dependent on the resource BedroomWindowOpen is a sufficient condition type, and step 609 is performed.
  • step 603 the dependent resource LivingroomWindowClosed is first selected, and in step 604, according to the URI of the dependent resource LivingroomWindowClosed: htt ://gscl 1 /livingroomWindowStatus, the representation of the resource indicating whether the living room window is open is obtained, that is, the closed state (Closed).
  • step 605 it is determined whether the representation of the resource indicating whether the living room window is opened in step 604 satisfies the definition condition of the Rule in the expression of LivingroomWindowOpen, and the condition defined by the Rule in the expression of the dependent resource LivingroomWindowOpen is the closed state (Closed). If the judgment result is satisfied, step 606 is performed.
  • step 606 it is determined that the dependent resource type defined by the Logic of the representation of the resource LivingroomWindowOpen is a necessary condition type (AND), and further step 608 is performed; in step 608, it is determined whether there is a dependency associated with the operating resource TurnOnAC. The resource is not judged. Since there is still a dependency resource BedroomWindowClosed, step 603 is executed, and the dependent resource BedroomWindowClosed is selected. In step 604, according to the URI of the dependent resource BedroomWindowClosed: http://gscll/bedroomWindowStatus, the resource indicating whether the bedroom window is open is obtained. The expression is closed (Closed).
  • step 605 it is judged whether the representation of the resource indicating whether the bedroom window is opened in step 604 satisfies the condition defined by the Rule in the representation of the resource BedroomWindowOpen, and the condition defined by the Rule in the representation of the resource BedroomWindowOpen is the closed state (Closed). Therefore, if the judgment result is not satisfied, step 607 is performed. Further determining the dependency in step 607 The type logic (Logic) of the dependent resource defined in the representation of the source MemberAtHome is a necessary condition type, and step 610 is directly executed.
  • Logic type logic
  • the Output URI of the operation resource TumOnAC is empty, and the Output URI of the operation resource CloseWindow is http://gscl2/ allWindowStatus.
  • the specific process of obtaining the execution result of the operation may include the steps shown in FIG. 15:
  • Step 701 referring to step 409 and step 415 in the embodiment shown in FIG. 10, starting after sending an operation request for the operation resource CloseWindow and the operation resource TumOnAC, and receiving an operation response.
  • Step 702 The GSCL1 determines whether the address (Output URI) of the execution result of the operation in the representation of the operation resource is empty.
  • the Output URI item in the expression of the operation resource TumOnAC is empty, and step 703 is performed, and the operation resource is executed.
  • the Output URI in the representation of CloseWindow is not empty, and step 704 is performed.
  • Step 703 As shown in step 415 in the embodiment shown in FIG. 10, the process of obtaining the execution result of the operation occurs after the operation request is sent and the operation response is received, and the Output URI item in the expression of the operation resource is empty. The operation is saved directly to the execution result Result.
  • the operation response of the corresponding Create type operation request is OK, so the OK: is saved in the Result of the operation resource TumOnAC.
  • Step 704 If the Output URI of the operation resource is not empty, the output URI stores an address that reflects the execution result of the operation, that is, a URI of the resource storing the execution result of the operation, and therefore sends the resource that obtains the request to the operation execution result. URI to get a representation of the resource.
  • the URI of the resource that obtains the request to the storage operation execution result is sent: http://gscl2/allWindowStatus, and the get response is received, and the get response includes the representation of the allWindowStatus resource, that is, all windows are closed (Closed) ).
  • Step 705 Save the expression of the allWindowStatus resource obtained in step 704 to the execution result Result in the expression of the operation resource CloseWindow.
  • FIG. 16 is a schematic structural diagram 1 of a device communication operation triggering device according to an embodiment of the present invention.
  • the device stores a representation of an active resource, where the representation of the active resource includes an active resource.
  • the content of the content and the operational resources associated with the active resource as shown in Figure 16:
  • the device includes an obtaining module 11, a building module 12, and a sending module 13, where the obtaining module 11 is configured to acquire, when the content of the active resource changes, a change result of the content of the stored active resource, and according to the active resource Obtaining, by the information of the associated operation resource, a representation of the operation resource associated with the active resource, where the representation of the operation resource includes a condition for sending an operation request to the target resource and a universal resource identifier of the target resource; And the sending module 12 is configured to send the representation of the change result and the operation resource associated with the active resource, and determine the change.
  • the result is that when the condition for sending the operation request to the target resource in the expression of the operation resource is satisfied, an operation request for the target resource is constructed, and the operation request is sent to the sending module; and the sending module 13 is configured to receive the An operation request, according to the universal resource identifier of the target resource The target resource sends the operation request.
  • the device that stores the result of the change of the content of the active resource acquires the association with the active resource according to the information of the operation resource associated with the active resource.
  • An operation request of the operation resource, and an operation request for the target resource expressed by the operation resource is constructed, and the operation request is sent to the target resource of the operation resource.
  • the device communication operation triggering device in the foregoing embodiment of the present invention may be on the M2M platform or the gateway.
  • the middleware, and the M2M platform and the gateway are all capable nodes in the network, and there is no problem of limited capacity, which is beneficial to solve the situation that the business cannot be performed in the restricted environment.
  • the information about the operation resource associated with the active resource is the representation of the operation resource associated with the active resource
  • the acquiring module acquires the operation resource associated with the active resource according to the information of the operation resource associated with the active resource.
  • the expression is specifically: obtaining, according to the representation of the operation resource associated with the active resource, the representation of the operation resource associated with the active resource; or the information of the operation resource associated with the active resource And the obtaining, by the obtaining module, the operation resource associated with the active resource according to the information about the operating resource associated with the active resource, according to the information about the operating resource associated with the active resource, according to the active resource.
  • the universal resource identifier of the operational resource contained in the representation is obtained with the primary The representation of the operation resource associated with the active resource; or the information of the operation resource associated with the active resource is a universal resource identifier of the operational resource set to which the operational resource associated with the active resource belongs, and the obtaining module is associated with the active resource according to the active resource
  • the information of the operational resource is obtained by the universal resource identifier of the operational resource set to which the operating resource belongs, and the active resource is obtained according to the operating resource set that is included in the expression of the active resource.
  • a representation of the associated operational resource wherein the representation of the operational resource associated with the active resource is a representation of the operational resource included in the operational resource set.
  • the device communication operation processing device may further include a receiving module, wherein the receiving module is configured to receive before the obtaining module acquires a change result of the content of the active resource stored in the device An active resource update request, where the active resource update request includes a description of a new active resource and a universal resource identifier of the active resource to be updated, where the representation of the new active resource includes information about the operating resource associated with the active resource And the receiving module updates, according to the universal resource identifier of the active resource to be updated, a representation of the stored active resource as a representation of the new active resource; or
  • the receiving module is configured to: before the acquiring module acquires a change result of the content of the active resource stored in the device, receive an operation resource creation request, where the operation resource creation request includes an operation associated with the active resource a representation of the resource and a universal resource identifier of the operation resource set to which the operation resource belongs, the receiving module adding the operation resource to the operation resource set according to the universal resource identifier of the operation resource set to which the operation resource belongs Expression.
  • the expression of the operation resource further includes an operation request type and an input parameter of the operation request, and the type of the operation request is creation or update; and the input parameter is a parameter resource.
  • the operation request of the building module for the target resource is specifically: obtaining a representation of a new target resource from a parameter resource pointed to by the universal resource identifier of the parameter resource, and constructing a device a general resource identifier of the target resource and an operation request of the target resource in the representation of the operation resource of the new target resource; or
  • the operation request of the building module to construct the target resource is specifically: constructing a universal resource identifier including the target resource and the new target resource An operational request for a target resource in the representation of an operational resource.
  • the receiving module of the device communication operation triggering device is further configured to: before the acquiring module acquires a change result of the content of the active resource stored in the service capability middleware, receive an operation resource update request, the operation resource The update request includes a description of the new operation resource, the character, and the expression for updating the stored operation resource is a representation of the new operation resource; or the receiving module is further configured to acquire the acquisition module Receiving a dependent resource creation request, where the dependent resource creation request includes the representation of the dependent resource and the universal resource of the dependent resource set dependent on the resource belonging, before the result of the change of the content of the active resource of the service capability middleware is received An identifier, and a universal resource identifier for a dependent resource set according to the dependent resource attribution, storing the representation of
  • the device may further include a confirmation module, where the obtaining module is further configured to acquire, according to the expression of the operation resource, a representation of the dependent resource associated with the operation resource, and acquire the Declaring a conditional resource pointed to by the universal resource identifier in the representation of the dependent resource, and transmitting the condition in the expression of the conditional resource and the representation of the dependent resource to the confirmation module; the confirmation module is configured to receive the condition The expression of the resource confirms the condition in the expression that satisfies the dependent resource based on the expression of the condition resource.
  • the foregoing dependent resource type is divided into a sufficient condition type and a necessary condition type, and the number of the dependent resources is at least one.
  • the foregoing building module constructs an operation request for the target resource in the expression of the operation resource, further used for: determining At least one sufficient condition type of resource-dependent condition is satisfied; or, the above building module constructs an operation request for the target resource in the representation of the operation resource, and further determines that the condition of the resource-dependent condition of all the necessary condition types is satisfied.
  • the association between the operation resource and the dependent resource may be implemented in three ways.
  • the obtaining module obtains the dependency resource associated with the operation resource according to the expression of the operation resource, which is specifically as follows:
  • the representation of the dependent resource included in the expression of the operation resource acquires a representation of the dependent resource associated with the operation resource; or obtains and refers to the resource-dependent universal resource identifier included in the expression of the operation resource
  • the representation of the dependent resource associated with the operational resource is a representation of the dependent resource included in the dependent resource set.
  • the operation resource associated with the active resource is at least two, and the representation of the operation resource may further include a priority, and the building module constructs an operation request for the target resource in the expression of the operation resource. Specifically, the operation request for the target resource expressed by each operation resource is sequentially constructed according to the priority in the expression of the operation resource.
  • the expression of the operation resource further includes an execution result of the operation
  • the receiving module is further configured to receive an operation response returned by the target resource, and save the operation response to the expression of the operation resource.
  • the expression of the operation resource further includes an address that reflects an operation execution result and an execution result of the operation, where
  • the receiving module is further configured to receive an operation response returned by the target resource
  • the obtaining module is further configured to acquire an operation result corresponding to the operation request according to the address that reflects the execution result of the operation, and save the operation result corresponding to the operation request to the execution result of the operation.
  • FIG. 17 is a schematic structural diagram of a device communication operation triggering device according to an embodiment of the present invention.
  • the machine communication operation triggering device includes a network. Interface 21, processor 22 and memory 23, wherein
  • the network interface 21 is configured to communicate with an external device, where the memory 23 is configured to store an application and store a representation of an active resource, where the representation of the active resource includes content of an active resource and an operation resource associated with the active resource.
  • the processor 22 is configured to invoke a memory storage application to acquire a change result of the content of the active resource stored in the memory when the content of the active resource changes, according to the operation resource associated with the active resource.
  • the information obtains a representation of the operation resource associated with the active resource, where the representation of the operation resource includes a condition for sending an operation request to the target resource and a universal resource identifier of the target resource, and determining that the change result satisfies the operation resource
  • the representation of the operation resource includes a condition for sending an operation request to the target resource and a universal resource identifier of the target resource, and determining that the change result satisfies the operation resource
  • the network interface 21, the processor 22, and The memory 23 can be connected through the system bus 24.
  • the service capability middleware storing the result of the change of the content of the active resource is associated with the active resource according to the information of the operation resource associated with the active resource.
  • the operation resource is expressed by the M2M platform or the gateway, and the computer device in the above embodiment of the present invention may be an M2M platform or a gateway, and the M2M is used to generate the operation request for the target resource of the operation resource.
  • the platform and the gateway are all capable nodes in the network, and there is no problem of limited capacity, which is beneficial to solve the situation that the business cannot be performed in the restricted environment.
  • the information of the operation resource associated with the active resource is a representation of the operation resource associated with the active resource
  • the processor obtains the expression of the operation resource associated with the active resource according to the expression of the active resource.
  • the representation of the operation resource associated with the active resource according to the representation of the active resource is: a universal resource identifier of the operation resource included in the representation of the active resource And obtaining a representation of the operation resource associated with the active resource; or the information of the operation resource associated with the active resource is a universal resource identifier of an operation resource set to which the operation resource associated with the active resource belongs
  • the processor according to the The representation of the active resource is associated with the active resource
  • the representation of the resource is specifically: obtaining a representation of the operation resource associated with the active resource according to the universal resource
  • the foregoing network interface is further configured to receive an active resource update request, where the active resource update request includes a representation of a new active resource and a universal resource identifier of the active resource to be updated, where the expression of the new active resource includes The information about the operation resource associated with the active resource, the processor calling the memory storage application to update the stored active resource representation according to the universal resource identifier of the active resource to be updated, and the expression of the new active resource
  • the network interface is further configured to receive an operation resource creation request, where the operation resource creation request includes a representation of the operation resource associated with the active resource and a common operation resource set to which the operation resource associated with the active resource belongs a resource identifier, the processor invoking a memory stored application, and adding the common resource identifier in the operational resource set according to the universal resource identifier of the operational resource set to which the operational resource belongs The representation of operational resources.
  • the expression of the operation resource further includes an operation request type and an input parameter of the operation request, and the type of the operation request is creation or update;
  • the processor acquires a representation of the new target resource from the parameter resource pointed to by the universal resource identifier of the parameter resource, and constructs the target resource.
  • the processor constructs a target resource in a representation of the operational resource including a generic resource identifier of the target resource and a representation of the new target resource Operation request.
  • the network interface is further configured to receive an operation resource update request, where the operation resource update request includes a representation of a new operation resource, and the application resource of the new operation resource is stored in an application, Updating the stored operational resource as a representation of the new operational resource; or the network interface is further configured to receive a dependent resource creation request, the dependent resource creation request including the dependent resource representation and the dependent resource attribution a generic resource identifier of the dependent resource set, the processor calling the memory stored application, and saving the representation of the dependent resource in the dependent resource set according to the universal resource identifier of the dependent resource set to which the dependent resource belongs And adding the universal resource identifier of the dependent resource set to the representation of the operational resource.
  • the processor in the foregoing embodiment further acquires a representation of the dependent resource associated with the operation resource according to the expression of the operation resource, and obtains a representation of the condition resource pointed to by the universal resource identifier in the representation of the dependent resource. And confirming that the condition in the representation of the dependent resource is satisfied according to the expression of the condition resource.
  • the above-mentioned dependent resource type is divided into a sufficient condition type and a necessary condition type, and the number of the dependent resources is at least one, and the processor further determines at least one sufficient condition before constructing an operation request for the target resource in the expression of the operation resource.
  • the condition of the type dependent resource specification is satisfied (that is, the processor constructs an operation request for the target resource in the representation of the operation resource when further determining that the condition of the dependent resource specification of the at least one sufficient condition type is satisfied); or, Before the processor builds an operation request for the target resource in the representation of the operation resource, it further determines that the condition of the resource-dependent condition of all necessary condition types is satisfied (that is, the processor determines all necessary items) When the condition of the type-dependent resource is satisfied, an operation request for the target resource in the representation of the operation resource is constructed.
  • the processor acquires a representation of the dependent resource associated with the operation resource according to the representation of the resource dependent in the expression of the operation resource; or the resource-dependent universal resource included in the expression of the operation resource Obtaining, by the identifier, a representation of the dependent resource associated with the operating resource; or acquiring a dependent resource associated with the operating resource according to the universal resource identifier of the dependent resource set of the dependent resource belonging in the representation of the operating resource
  • the representation of the dependent resource associated with the operational resource is a representation of the dependent resource included in the dependent resource set.
  • the operation resource associated with the active resource is at least two, and the representation of the operation resource further includes a priority, and the processor sequentially constructs each operation resource according to the priority in the representation of the operation resource. An operational request for the stated target resource.
  • the foregoing operation resource further includes an execution result of the operation
  • the network interface is further configured to receive an operation response returned by the target resource, and the processor saves the operation response to the operation of the operation resource.
  • the execution result In the execution result;
  • the expression of the operation resource further includes an address that reflects an operation execution result and an execution result of the operation, where the network interface is further configured to receive an operation response returned by the target resource; and the processor executes according to the implementation operation.
  • the result address obtains the operation result corresponding to the operation request, and saves the operation result corresponding to the operation request into the execution result of the operation.
  • the method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)
  • Selective Calling Equipment (AREA)

Abstract

本发明提供一种机器通信操作触发方法和装置,其中方法包括:在主动资源的内容发生变化时,业务能力中间件获取存储于所述业务能力中间件的主动资源的内容的变化结果;所述业务能力中间件根据所述与所述主动资源关联的操作资源的信息获取与所述主动资源关联的操作资源的表述,所述操作资源的表述包含向目标资源发送操作请求的条件和所述目标资源的通用资源标识符;所述业务能力中间件确定所述变化结果满足所述操作资源的表述中向目标资源发送操作请求的条件,构建针对所述目标资源的操作请求;所述业务能力中间件根据所述目标资源的通用资源标识符向所述目标资源发送所述操作请求。本发明的技术方案能够提高M2M系统中触发操作的稳定性。

Description

机器通信操作触发方法和装置
技术领域
本发明涉及计算机领域, 尤其涉及一种机器通信操作触发方法和装置。 背景技术
机器通信 ( Machine-to-Machine Communications,以下简称: M2M )是一 种以机器智能交互为核心的、 网络化的应用与服务。 它通过在机器内部嵌入 无线或有线通信模块以及应用处理逻辑, 实现无需人工干预的数据通信, 以 满足用户对监控、 指挥调度、 数据釆集和测量等方面的信息化需求。 现有典 型的 M2M应用网络架构中。 各种 M2M终端(如传感器、 微控制器等)直接 或经过 M2M网关远程接入到 M2M业务平台, 而各种 M2M应用 (如电力抄 表、 智能交通等)则通过 M2M业务平台所提供的业务能力获取 M2M终端釆 集的数据或对 M2M终端进行远程的控制和管理
欧洲 电信标准组织 ( European Telecommunication Standardization Institute , 以下简称: ETSI ) Μ2Μ釆用 RESTful 的架构风格。 REST, 即 Representational State Transfer的缩写,意即"表述性状态转移"。如果一个架构 是 REST的, 那么就称它为 RESTf l的架构风格。 它的特点是一切皆由资源 ( Resource )组成, 资源是存在在网络上一个文字片段, 或其他多种媒体形 式。每个资源都有一个唯一的通用资源标识符(: Uniform Resource Identifier, 以下简称: URI )。 应用程序或业务能力中间件可以通过 URI访问这个资源。 对每个资源的访问方式也是固定的, 包括创建(Create ) 、 更新 (Update ) 、 删除( Delete )和读取( Retrieve )等几种方式。 而且在 RESTf l的架构中 , 客户端和服务器都是无状态的。
在 M2M系统中, 广泛存在着这样的场景, 即当一个设备的状态变化时, 另一个或多个设备可以根据该变化是否满足条件, 从而进行单一的或者一系 列的操作。 现有技术中, 上述操作触发的动作都是由安装在特定的设备上的 应用程序 (如直接执行操作的设备) 实现。 但是对于一些受限环境中设备需 要定期休眠时, 应用程序将会随着设备的休眠而中断, 使得资源之间的操作 触发无法进行。 对于一些设备需要经常离线外出的场景, 应用程序也会随着 设备的离线而使服务中断。 因此, 现有技术的 M2M 系统中使用应用程序触 发操作存在的稳定性差的缺陷。 发明内容 本发明实施例提供了一种机器通信操作触发方法和装置,用于提高 M2M 系统中触发操作的稳定性。
本发明的第一个方面是提供一种机器通信操作触发方法, 业务能力中间 件存储主动资源的表述, 所述主动资源的表述包括主动资源的内容以及与所 述主动资源关联的操作资源的信息, 该方法包括:
在主动资源的内容发生变化时, 业务能力中间件获取存储于所述业务能 力中间件的主动资源的内容的变化结果;
所述业务能力中间件根据所述与所述主动资源关联的操作资源的信息获 取与所述主动资源关联的操作资源的表述, 所述操作资源的表述包含向目标 资源发送操作请求的条件和所述目标资源的通用资源标识符;
所述业务能力中间件确定所述变化结果满足所述操作资源的表述中向目 标资源发送操作请求的条件, 构建针对所述目标资源的操作请求;
源发送所述操作请求。
结合本发明第一方面的第一可能, 所述主动资源关联的操作资源的信息 为与主动资源关联的操作资源的表述, 所述业务能力中间件根据与所述主动 资源关联的操作资源的信息获取与所述主动资源关联的操作资源的表述包 括: 所述业务能力中间件根据所述主动资源的表述中包含的与所述主动资源 关联的操作资源的表述获取与所述主动资源关联的操作资源的表述;
或, 所述主动资源关联的操作资源的信息为与主动资源关联的操作资源 的通用资源标识符, 所述业务能力中间件根据与所述主动资源关联的操作资 源的信息获取与所述主动资源关联的操作资源的表述包括: 所述业务能力中 间件根据所述主动资源的表述中包含的所述操作资源的通用资源标识符获取 与所述主动资源关联的操作资源的表述;
或, 所述主动资源关联的操作资源的信息为与主动资源关联的操作资源 归属的操作资源集的通用资源标识符, 所述业务能力中间件根据与所述主动 资源关联的操作资源的信息获取与所述主动资源关联的操作资源的表述包 括: 所述业务能力中间件根据所述主动资源的表述中包含的所述操作资源归 属的操作资源集的通用资源标识符获取与所述主动资源关联的操作资源的表 述, 其中与所述主动资源关联操作资源的表述为所述操作资源集包含的操作 资源的表述。
结合本发明第一方面或第一可能的第二可能, 在上述业务能力中间件在 获取存储于所述业务能力中间件的主动资源的表述的变化结果之前还包括: 所述业务能力中间件接收主动资源更新请求, 所述主动资源更新请求包 括新的主动资源的表述以及待更新的主动资源的通用资源标识符, 所述新的 主动资源的表述中包含所述主动资源关联的操作资源的信息, 所述业务能力 中间件根据所述待更新的主动资源的通用资源标识符更新存储的主动资源的 表述为所述新的主动资源的表述;
或, 所述业务能力中间件接收操作资源创建请求, 所述操作资源创建请 求包括与所述主动资源关联的操作资源的表述和与所述主动资源关联的操作 资源归属的操作资源集的通用资源标识符, 所述业务能力中间件根据所述操 作资源归属的操作资源集的通用资源标识符在所述操作资源集中添加所述操 作资源的表述。
结合第一方面, 或第一或第二可能的第三可能, 所述操作资源的表述中 还包括操作请求的种类和操作请求的输入参数, 所述操作请求的种类为创建 或更新;
在所述输入参数为参数资源的通用资源标识符时, 所述构建针对所述目 标资源的操作请求包括:
所述业务能力中间件从所述参数资源的通用资源标识符所指向的参数资 源中获取新的目标资源的表述, 构建包括所述目标资源的通用资源标识符和 所述新的目标资源的表述的针对操作资源的表述中的目标资源的操作请求; 或, 在所述输入参数为所述新的目标资源的表述时, 构建包括所述目标 资源的通用资源标识符和所述新的目标资源的表述的针对操作资源的表述中 的目标资源的操作请求。
结合第一方面, 或第一至第三可能的任一可能的第四可能, , 其中业务 能力中间件在获取存储于所述业务能力中间件的主动资源的内容的变化结果 之前还包括:
所述业务能力中间件接收操作资源更新请求, 所述操作资源更新请求包 括新的操作资源的表述, 所述新的操作资源的表述包含依赖资源的表述或所 述依赖资源的通用资源标识符, 所述业务能力中间件更新存储的操作资源的 表述为所述新的操作资源的表述;
或, 所述业务能力中间件接收依赖资源创建请求, 所述依赖资源创建请 求包括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用资源标 识符, 所述业务能力中间件根据所述依赖资源归属的依赖资源集的通用资源 标识符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集 的通用资源标识符添加在所述操作资源的表述中。
结合第四可能的第五可能, 所述业务能力中间件构建针对所述目标资源 的操作请求之前包括:
所述业务能力中间件根据操作资源的表述获取与所述操作资源相关联的 依赖资源的表述;
所述业务能力中间件获取所述依赖资源的表述中的通用资源标识符所指 向的条件资源的表述;
所述业务能力中间件根据所述条件资源的表述确认满足所述依赖资源的 表述中的条件。
结合第五可能的第六可能, 上述依赖资源类型分为充分条件类型和必要 条件类型, 所述依赖资源的数目为至少一个, 所述业务能力中间件构建针对 操作资源的表述中的目标资源的操作请求之前, 该方法进一步包括:
确定至少一个充分条件类型的依赖资源规定的条件满足; 或,
确定所有必要条件类型的依赖资源规定的条件满足。
结合第五可能的第七可能, 上述业务能力中间件根据操作资源的表述获 取与所述操作资源相关联的依赖资源的表述包括:
所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资源的 表述获取与所述操作资源关联的依赖资源的表述; 或,
所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资源的 通用资源标识符获取与所述操作资源关联的依赖资源的表述; 或, 所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资源归 属的依赖资源集的通用资源标识符获取与所述操作资源关联的依赖资源的表 依赖资源的表述。
结合第一方面, 或上述任一可能的第八可能, 确定与所述主动资源关联 的操作资源为至少两个, 所述操作资源的表述中还包括优先级, 所述业务能 力中间件构建针对操作资源的表述中的目标资源的操作请求包括:
所述业务能力中间件根据所述操作资源的表述中的优先级, 依次构建针 对每一个所述操作资源表述的目标资源的操作请求。
结合第一方面, 或上述任一可能的第九可能, 上述操作资源的表述中还 包括操作的执行结果, 所述方法还包括:
所述业务能力中间件接收所述目标资源返回的操作响应, 将所述操作响 应保存到所述操作资源的表述中操作的执行结果中; 或,
所述操作资源的表述中还包括体现操作执行结果的地址和操作的执行结 果, 所述方法还包括: 所述业务能力中间件接收所述目标资源返回的操作响应, 根据所述体现 操作执行结果的地址获取所述操作请求对应的操作结果, 并将所述操作请求 对应的操作结果保存到操作的执行结果中。
本发明的第二个方面是提供了一种机器通信操作触发装置, 包括获取模 块、 构建模块和发送模块:
所述获取模块, 用于在主动资源的内容发生变化时, 获取存储于所述业 务能力中间件的主动资源的内容的变化结果, 以及根据与所述主动资源关联 的操作资源的信息获取与所述主动资源关联的操作资源的表述, 所述操作资 源的表述包含向目标资源发送操作请求的条件和所述目标资源的通用资源标 识符, 其中, 所述业务能力中间件中存储主动资源的表述, 所述主动资源的 表述包括主动资源的内容以及与所述主动资源关联的操作资源的信息; 所述 获取模块还用于将所述变化结果以及所述操作资源的表述发送给所述构建模 块;
构建模块, 用于接收所述变化结果和所述与所述主动资源关联的操作资 源的表述, 确定所述变化结果满足所述操作资源的表述中的向目标资源发送 操作请求的条件时, 构建针对所述目标资源的操作请求, 并将所述操作请求 发送给所述发送模块;
发送模块, 用于接收所述操作请求, 根据所述目标资源的通用资源标识 符向所述目标资源发送所述操作请求。
结合本发明第二方面的第一可能,
所述主动资源关联的操作资源的信息为所述与主动资源关联的操作资源 的表述, 所述获取模块根据与所述主动资源关联的操作资源的信息获取与所 述主动资源关联的操作资源的表述具体为: 根据所述主动资源的表述中包含 的与所述主动资源关联的操作资源的表述获取与所述主动资源关联的操作资 源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源的通 用资源标识符, 所述获取模块根据与所述主动资源关联的操作资源的信息获 取与所述主动资源关联的操作资源的表述具体为: 根据所述主动资源的表述 中包含的所述操作资源的通用资源标识符获取与所述主动资源关联的操作资 源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源归属 的操作资源集的通用资源标识符, 所述获取模块根据与所述主动资源关联的 操作资源的信息获取与所述主动资源关联的操作资源的表述具体为: 根据所 述主动资源的表述中包含的所述操作资源归属的操作资源集的通用资源标识 符获取与所述主动资源关联的操作资源的表述, 其中与所述主动资源关联操 作资源的表述为所述操作资源集包含的操作资源的表述。
结合本发明第二方面或第一可能的第二可能,上述装置还包括接收模块; 所述接收模块, 用于, 在所述获取模块获取存储于所述装置的主动资源的内 容的变化结果之前, 接收主动资源更新请求, 所述主动资源更新请求包括新 的主动资源的表述以及待更新的主动资源的通用资源标识符, 所述新的主动 资源的表述中包含所述主动资源关联的操作资源的信息, 所述接收模块根据 所述待更新的主动资源的通用资源标识符更新存储的主动资源的表述为所述 新的主动资源的表述; 或,
所述接收模块, 用于, 在所述获取模块获取存储于所述装置的主动资源 的内容的变化结果之前, 接收操作资源创建请求, 所述操作资源创建请求包 括与所述主动资源关联的操作资源的表述和所述操作资源归属的操作资源集 的通用资源标识符, 所述接收模块根据所述操作资源归属的操作资源集的通 用资源标识符在所述操作资源集中添加所述操作资源的表述。
结合第二方面, 或第一或第二可能的第三可能, 上述操作资源的表述中 还包括操作请求的种类和操作请求的输入参数, 所述操作请求的种类为创建 或更新;
在所述输入参数为参数资源的通用资源标识符时, 所述构建模块构建针 对所述目标资源的操作请求具体为: 从所述参数资源的通用资源标识符所指 向的参数资源中获取新的目标资源的表述, 构建包括所述目标资源的通用资 源标识符和所述新的目标资源的表述的针对操作资源的表述中的目标资源的 操作请求; 或,
在所述输入参数为所述新的目标资源的表述时, 所述构建模块构建针对 所述目标资源的操作请求具体为: 构建包括所述目标资源的通用资源标识符 和所述新的目标资源的表述的针对操作资源的表述中的目标资源的操作请 求。
结合第二方面, 或第一至第三可能的任一可能的第四可能, 上述的接收 模块, 还用于, 在所述获取模块获取存储于所述业务能力中间件的主动资源 的内容的变化结果之前, 接收操作资源更新请求, 所述操作资源更新请求包 括新的操作资源的表述, 所述新的操作资源的表述包含依赖资源的表述或所 述依赖资源的通用资源标识符, 以及用于更新存储的操作资源的表述为所述 新的操作资源的表述; 或,
所述接收模块还用于, 在所述获取模块获取存储于所述业务能力中间件 的主动资源的内容的变化结果之前, 接收依赖资源创建请求, 所述依赖资源 创建请求包括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用 资源标识符, 以及用于根据所述依赖资源归属的依赖资源集的通用资源标识 符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的通 用资源标识符添加在操作资源的表述中。
结合第四可能的第五可能, 上述装置还可以包括确认模块, 所述获取模 块还用于根据操作资源的表述获取与所述操作资源相关联的依赖资源的表 述, 以及获取所述依赖资源的表述中的通用资源标识符所指向的条件资源的 认模块;
所述确认模块, 用于接收所述条件资源的表述, 根据所述条件资源的表 述确认满足所述依赖资源的表述中的条件。
结合第五可能的第六可能, 上述依赖资源类型分为充分条件类型和必要 条件类型, 所述依赖资源的数目为至少一个, 所述构建模块构建针对操作资 源的表述中的目标资源的操作请求之前, 进一步用于: 确定至少一个充分条 件类型的依赖资源规定的条件满足; 或,
所述构建模块构建针对操作资源的表述中的目标资源的操作请求之前: 确定在所有必要条件类型的依赖资源规定的条件满足, 所述业务能力中间件 构建针对操作资源的表述中的目标资源的操作请求。
结合第五可能的第七可能, 其中的获取模块还可以根据操作资源的表述 获取与所述操作资源相关联的依赖资源的表述具体为:
根据所述操作资源的表述中包含的所述依赖资源的表述获取与所述操作 资源关联的依赖资源的表述; 或, 与所述操作资源关联的依赖资源的表述; 或,
根据所述操作资源的表述中包含的所述依赖资源归属的依赖资源集的通 用资源标识符获取与所述操作资源关联的依赖资源的表述; 其中, 与所述操 作资源关联的依赖资源的表述为所述依赖资源集包含的依赖资源的表述。
结合第二方面, 或上述任一可能的第八可能, 确定与所述主动资源关联 的操作资源为至少两个, 上述的机器通信操作触发装置中, 与所述主动资源 关联的操作资源为至少两个, 所述操作资源的表述中还包括优先级, 所述构 建模块构建针对操作资源的表述中的目标资源的操作请求具体为: 根据所述 操作资源的表述中的优先级, 依次构建针对每一个操作资源表述的目标资源 的操作请求。
结合第二方面, 或上述任一可能的第九可能, 所述操作资源的表述中还 包括操作的执行结果, 所述
接收模块还用于接收所述目标资源返回的操作响应, 将所述操作响应保 存到所述操作资源的表述中操作的执行结果中; 或, 所述操作资源的表述中还包括体现操作执行结果的地址和操作的执行结 果, 所述接收模块还用于接收所述目标资源返回的操作响应;
所述获取模块还用于根据所述体现操作执行结果的地址获取所述操作请 求对应的操作结果, 并将所述操作请求对应的操作结果保存到操作的执行结 果中。
本发明的第三个方面提供了另一种机器通信操作触发装置 , 包括网络接 口、 处理器和存储器;
所述网络接口用于与外部设备进行通信,所述存储器用于存储应用程序, 所述处理器用于调用存储器存储的应用程序, 在主动资源的内容发生变化时, 获取存储于业务能力中间件的主动资源的内容的变化结果, 根据与所述主动 资源关联的操作资源的信息获取与所述主动资源关联的操作资源的表述, 所 述操作资源的表述包含向目标资源发送操作请求的条件和所述目标资源的通 用资源标识符, 确定所述变化结果满足所述操作资源的表述中向目标资源发 送操作请求的条件时, 构建针对所述目标资源的操作请求, 其中, 所述业务 能力中间件中存储主动资源的表述, 所述主动资源的表述包括主动资源的内 容以及与所述主动资源关联的操作资源的信息; 标资源发送所述操作请求。
结合本发明第三方面的第一可能, 所述主动资源关联的操作资源的信息 为与主动资源关联的操作资源的表述, 上述处理器根据所述主动资源的表述 获取与所述主动资源关联的操作资源的表述具体为: 根据所述主动资源的表 述中包含的所述操作资源的表述获取与所述主动资源关联的操作资源的表 述 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源的通 用资源标识符, 所述处理器根据所述主动资源的表述获取与所述主动资源关 联的操作资源的表述具体为: 根据所述主动资源的表述中包含的所述操作资 源的通用资源标识符获取与所述主动资源关联的操作资源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源归属 的操作资源集的通用资源标识符, 所述处理器根据所述主动资源的表述获取 与所述主动资源关联的操作资源的表述具体为: 根据所述主动资源的表述中 包含的所述操作资源归属的操作资源集的通用资源标识符获取与所述主动资 源关联的操作资源的表述, 其中与所述主动资源关联操作资源的表述为所述 操作资源集包含的操作资源的表述。
结合本发明第三方面或第一可能的第二可能, 其中的网络接口还用于接 收主动资源更新请求, 所述主动资源更新请求包括新的主动资源的表述以及 待更新的主动资源的通用资源标识符, 所述新的主动资源的表述中包含所述 主动资源关联的操作资源的信息, 所述处理器调用存储器存储的应用程序根 据所述待更新的主动资源的通用资源标识符更新存储的主动资源的表述为所 述新的主动资源的表述; 或,
所述网络接口还用于接收操作资源创建请求, 所述操作资源创建请求包 括与所述主动资源关联的操作资源的表述和与所述主动资源关联的操作资源 归属的操作资源集的通用资源标识符, 所述处理器调用存储器存储的应用程 序, 并根据所述操作资源归属的操作资源集的通用资源标识符在所述操作资 源集中添加所述操作资源的表述。
结合第三方面, 或第一或第二可能的第三可能, 上述操作资源的表述中 还包括操作请求的种类和操作请求的输入参数, 所述操作请求的种类为创建 或更新;
在所述输入参数为参数资源的通用资源标识符时, 所述处理器从所述参 数资源的通用资源标识符所指向的参数资源中获取新的目标资源的表述, 构 建包括所述目标资源的通用资源标识符和所述新的目标资源的表述的针对操 作资源的表述中的目标资源的操作请求; 或,
在所述输入参数为所述新的目标资源的表述时, 所述处理器构建包括所 述目标资源的通用资源标识符和所述新的目标资源的表述的针对操作资源的 表述中的目标资源的操作请求。
结合第三方面, 或第一至第三可能的任一可能的第四可能, 上述网络接 口还用于接收操作资源更新请求, 所述操作资源更新请求包括新的操作资源 用资源标识符; 所述处理器调用存储器存储的应用程序, 更新存储的操作资 源的表述为所述新的操作资源的表述; 或,
所述网络接口还用于接收依赖资源创建请求, 所述依赖资源创建请求包 括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用资源标识 符, 所述处理器调用存储器存储的应用程序, 并根据所述依赖资源归属的依 赖资源集的通用资源标识符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的通用资源标识符添加在操作资源的表述中。
结合第四可能的第五可能, 上述处理器还根据操作资源的表述获取与所 述操作资源相关联的依赖资源的表述, 获取所述依赖资源的表述中的通用资 源标识符所指向的条件资源的表述, 以及根据所述条件资源的表述确认满足 所述依赖资源的表述中的条件。
结合第五可能的第六可能, 上述依赖资源类型分为充分条件类型和必要 条件类型, 所述依赖资源的数目为至少一个, 所述处理器构建针对操作资源 的表述中的目标资源的操作请求之前, 进一步确定至少一个充分条件类型的 依赖资源规定的条件满足; 或,
确定在所有必要条件类型的依赖资源规定的条件满足。
结合第五可能的第七可能, 上述处理器根据所述操作资源的表述中包含 的所述依赖资源的表述获取与所述操作资源关联的依赖资源的表述; 或根据 作资源关联的依赖资源的表述; 或,
根据所述操作资源的表述中包含的所述依赖资源归属的依赖资源集的通 用资源标识符获取与所述操作资源关联的依赖资源的表述, 其中, 与所述操 作资源关联的依赖资源的表述为所述依赖资源集包含的依赖资源的表述。
结合第一方面, 或上述任一可能的第八可能, 与所述主动资源关联的操 作资源为至少两个, 所述操作资源的表述中还包括优先级, 所述处理器根据 所述操作资源的表述中的优先级, 依次构建针对每一个操作资源表述的目标 资源的操作请求。
结合第一方面, 或上述任一可能的第九可能, 上述操作资源的表述中还 包括操作的执行结果, 所述网络接口还用于接收所述目标资源返回的操作响 应, 所述处理器将所述操作响应保存到所述操作资源的表述中操作的执行结 果中; 或,
上述操作资源的表述中还包括体现操作执行结果的地址和操作的执行结 果, 所述网络接口还用于接收所述目标资源返回的操作响应; 所述处理器根 据所述体现操作执行结果的地址获取所述操作请求对应的操作结果, 并将所 述操作请求对应的操作结果保存到操作的执行结果中。
本发明上述实施例中的业务能力中间件可以为 M2M平台或网关上的中 间件, 而 M2M平台和网关在网络中都属于有能力的节点, 不存在能力受限 的问题, 利于解决受限环境中业务无法进行的情形。 同时, 本发明上述实施 例中, 能够根据所述主动资源的表述获取与所述主动资源关联的操作资源的 表述, 使得可以将资源之间的操作触发关系分布在各个节点(M2M平台或网 关)上, 避免了单一应用程序的复杂性。 本发明上述实施例提供的技术方案 能够加强 M2M平台和网关中间件的能力, 使得部署更加丰富的应用成为可 能。 上述操作资源的引入, 使其更加适用于 RESTful架构。 附图说明 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见 地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员 来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的 附图。
图 1为本发明实施例中 M2M触发操作方法的流程示意图;
图 2为本发明实施例中资源结构的示意图;
图 3为本发明具体实施例中操作触发方法流程示意图;
图 4为本发明实施例中配置操作触发的流程示意图;
图 5为本发明实施例中操作资源 TurnOnAC的架构图一;
图 6为本发明实施例中依赖资源 MemberAtHome的架构图;
图 7为本发明实施例中的系统架构图;
图 8为本发明实施例中操作资源 CloseWindow的架构图一;
图 9为本发明实施例中主动资源与操作资源的关联示意图;
图 10为本发明实施例中操作触发的流程示意图;
图 11为本发明实施例中获取输入参数的流程示意图;
图 12为本发明实施例中操作资源 TurnOnAC的架构图二;
图 13为本发明实施例中操作资源 CloseWindow的架构图二; 图 14为本发明实施例中根据依赖资源进行条件检测流程示意图; 图 15为本发明实施例中获取操作结果的流程示意图;
图 16为本发明实施例中机器通信操作触发装置的结构示意图一; 图 17为本发明实施例中机器通信操作触发装置的结构示意图二。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
针对现有技术中, M2M的操作触发方法存在维护成本高和稳定性差的缺 陷, 本发明实施例提供了一种技术方案, 其中在业务能力中间件存储主动资 源的表述, 所述主动资源的表述包括主动资源的内容以及与所述主动资源关 联的操作资源的信息, 如图 1所示的, 本发明实施例提供的 M2M触发操作 方法包括如下的步骤:
步骤 101、在发生主动资源的表述变化时, 业务能力中间件获取存储于所 述业务能力中间件的主动资源的内容的变化结果;
步骤 102、 所述业务能力中间件根据与所述主动资源关联的操作资源的 信息获取与所述主动资源关联的操作资源的表述;
所述操作资源的表述包含向目标资源发送操作请求满足的条件和所述目 标资源的通用资源标示符;
步骤 103、 所述业务能力中间件确定所述变化结果满足所述操作资源的 表述中的向目标资源发送操作请求的条件时, 构建针对所述目标资源的操作 请求; 所述目标资源发送所述操作请求。
本发明上述实施例提供的技术方案,其中在发生主动资源的内容变化时, 由存储主动资源的内容的变化结果的业务能力中间件根据与所述主动资源关 联的操作资源的信息获取与主动资源关联的操作资源的表述, 并构建针对操 作资源表述的目标资源的操作请求, 最后向操作资源表述的目标资源发送该 操作请求。
本发明上述实施例中的业务能力中间件可以为 M2M平台或网关上的中 间件, 而 M2M平台和网关在网络中都属于有能力的节点, 不存在能力受限 的问题, 利于解决受限环境中业务无法进行的情形。 同时, 本发明上述实施 例中, 能够与所述主动资源关联的操作资源的信息获取与所述主动资源关联 的操作资源的表述, 即建立主动资源和操作资源之间的关联, 使得可以将资 源之间的操作触发关系分布在各个节点(M2M平台或网关)上, 如存储主动 资源的各个节点上, 避免了单一应用程序的复杂性。 例如关闭空调的操作可 以作为一个操作资源, 而检测主人是否在家和室内温度分别都可以作为主动 资源而存在, 根据本发明的实施例中, 其中的关闭空调这一操作资源可以保 存在空调归属的网关的业务能力中间件上, 而检测主人是否在家和室内温度 这两个主动资源分别保存在不同网关的业务能力中间件上, 通过建立分布在 不同平台上的主动资源和操作资源的关联, 也可以实现操作触发功能。 本发 明实施例提供的技术方案能够加强 M2M平台和网关中间件的能力, 使得部 署更加丰富的应用成为可能。上述操作资源的引入,使其更加适用于 RESTf l 架构。
本发明上述实施例中, 所述主动资源关联的操作资源的信息为与主动资 源关联的操作资源的表述, 上述步骤 102中的业务能力中间件根据与所述主 动资源关联的操作资源的信息获取与所述主动资源关联的操作资源的表述可 以包括:
所述业务能力中间件根据所述主动资源的表述中包含与所述主动资源关 联的所述操作资源的表述获取与所述主动资源关联的操作资源的表述;
或, 所述主动资源关联的操作资源的信息为与主动资源关联的操作资源 的通用资源标识符, 所述业务能力中间件根据与所述主动资源关联的操作资 源的信息获取与所述主动资源关联的操作资源的表述包括:
所述业务能力中间件根据所述主动资源的表述中包含的所述操作资源的 通用资源标识符获取与所述主动资源关联的操作资源的表述;
或, 所述主动资源关联的操作资源的信息为与主动资源关联的操作资源 归属的操作资源集的通用资源标识符, 所述业务能力中间件根据与所述主动 资源关联的操作资源的信息获取与所述主动资源关联的操作资源的表述包 括: 所述业务能力中间件根据所述主动资源的表述中包含的所述操作资源归 属的操作资源集的通用资源标识符获取与所述主动资源关联的操作资源的表 述, 其中与所述主动资源关联操作资源的表述为所述操作资源集包含的操作 资源的表述。
即可以通过主动资源的表述中包含所述操作资源的表述、 主动资源的表 源归属的操作资源集的通用资源标识符上述三种方式建立主动资源和操作资 源的关联。
本发明上述实施例中, 其中在步骤 101业务能力中间件在获取存储于所 述业务能力中间件的主动资源的内容的变化结果之前还包括:
所述业务能力中间件接收主动资源更新请求, 所述主动资源更新请求包 括新的主动资源的表述以及待更新的主动资源的通用资源标识符, 所述新的 主动资源的表述中包含所述主动资源关联的操作资源的信息, 所述业务能力 中间件根据所述待更新的主动资源的通用资源标识符更新存储的主动资源的 表述为所述新的主动资源的表述; 值得说明的是, 该主动资源更新请求中除 了操作资源的表述或操作资源的通用资源标识符, 还包括更新前的主动资源 的表述。
或, 所述业务能力中间件接收操作资源创建请求, 所述操作资源创建请 求包括与所述主动资源关联的操作资源的表述和与所述主动资源关联的操作 资源归属的操作资源集的通用资源标识符, 所述业务能力中间件根据所述操 作资源归属的操作资源集的通用资源标识符在所述操作资源集中添加所述操 作资源的表述。
另外, 本发明上述实施例中, 其中的操作资源的表述还可以包括操作请 求的种类, 而构建的操作请求的种类可以为创建、 更新、 获取或删除中的任 一种。 其中对于操作请求的种类为创建或更新时, 即该操作请求是用于创建 或更新目标资源的表述时, 在创建的操作请求中还需要携带操作资源新的目 标资源的表述。 具体的, 可以在操作资源的表述中进一步包括操作的输入参 数, 该操作的输入参数可以为参数资源的 URI, 或者是上述操作的输入参数 中直接保存新的目标资源的表述。 具体的, 在所述输入参数为参数资源的通用资源标识符时, 所述构建针 对所述目标资源的操作请求包括:
所述业务能力中间件从所述参数资源的通用资源标识符所指向的参数资 源中获取新的目标资源的表述, 构建包括所述目标资源的通用资源标识符和 所述新的目标资源的表述的针对操作资源的表述中的目标资源的操作请求; 或, 在所述输入参数为所述新的目标资源的表述时, 构建包括所述目标 资源的通用资源标识符和所述新的目标资源的表述的针对操作资源的表述中 的目标资源的操作请求。
在本发明上述实施例中, 其中的业务能力中间件在获取存储于业务能力 中间件的主动资源的内容的变化结果之前还包括:
所述业务能力中间件接收操作资源更新请求, 所述操作资源更新请求包 括新的操作资源的表述, 所述新的操作资源的表述包含依赖资源的表述或所 述依赖资源的通用资源标识符, 所述业务能力中间件更新存储的操作资源的 表述为所述新的操作资源的表述; 值得说明的是, 操作资源更新请求中除了 操作资源的表述。
所述业务能力中间件接收依赖资源创建请求, 所述依赖资源创建请求包 括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用资源标识 符, 所述业务能力中间件根据所述依赖资源归属的依赖资源集的通用资源标 识符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的 通用资源标识符添加在所述操作资源的表述中。
本发明上述实施例中, 在存在依赖资源时, 本发明上述实施例中的业务 能力中间件构建针对所述目标资源的操作请求之前包括:
所述业务能力中间件根据操作资源的表述获取与所述操作资源相关联的 依赖资源的表述;
所述业务能力中间件获取所述依赖资源的表述中的通用资源标识符所指 向的条件资源的表述;
所述业务能力中间件根据所述条件资源的表述确认满足所述依赖资源的 表述中的条件。
具体的, 上述依赖资源可以分为充分条件类型和必要条件类型的依赖资 源, 而依赖资源的数目为至少一个, 所述业务能力中间件构建针对操作资源 的表述中的目标资源的操作请求之前, 该方法进一步包括:
确定至少一个充分条件类型的依赖资源规定的条件满足; 或
确定所有必要条件类型的依赖资源规定的条件满足。
也就是说, 业务能力中间件在进一步确定至少一个充分条件类型的依赖 资源规定的条件满足时, 构建针对操作资源的表述中的目标资源的操作请求; 或业务能力中间件在进一步确定所有必要条件类型的依赖资源规定的条件满 足时, 构建针对操作资源的表述中的目标资源的操作请求。
具体的, 上述实施例中, 所述业务能力中间件根据操作资源的表述获取 与所述操作资源相关联的依赖资源的表述包括:
所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资源的 表述获取与所述操作资源关联的依赖资源的表述;
或, 所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资 源的通用资源标识符获取与所述操作资源关联的依赖资源的表述;
或, 所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资 源归属的依赖资源集的通用资源标识符获取与所述操作资源关联的依赖资源 的依赖资源的表述。
即可以通过操作资源的表述中包含所述依赖资源的表述、 操作资源的表 述中包含所述依赖资源的通用资源标识符和操作资源的表述中包含所述依赖 资源归属的依赖资源集的通用资源标识符三种方式建立操作资源和依赖资源 之间的关联。
本发明上述实施例中, 确定与所述主动资源关联的操作资源为至少两个 时, 其中操作资源的表述中还可以包括优先级, 其中业务能力中间件构建针 对操作资源的表述中的目标资源的操作请求可以包括:
所述业务能力中间件根据所述操作资源的表述中的优先级, 依次构建针 对每一个所述操作资源表述中目标资源的操作请求。
本发明上述实施例中, 其中的操作资源的表述中还可以包括操作的执行 结果, 所述方法还包括:
所述业务能力中间件接收所述目标资源返回的操作响应, 将所述操作响 应保存到所述操作资源的表述中操作的执行结果中。
或者是, 上述的操作资源的表述中还可以包括体现操作执行结果的地址 和操作的执行结果, 上述方法进一步包括:
所述业务能力中间件接收所述目标资源返回的操作响应, 根据所述体现 操作执行结果的地址获取所述操作请求对应的操作结果, 并将所述操作请求 对应的操作结果保存到操作的执行结果中。 具体, 上述所述体现操作执行结 果的地址可以为一个资源的 URI, 可以从根据该 URI访问相应资源并获取操 作请求对应的操作结果。
以下具体实施例将对本发明的操作触发方法进行进一步的详细说明, 图 2为本发明实施例中资源结构的示意图, 本实施例中, 是对 RESTf l的资源 元结构进行扩展, 将多个操作资源组合在一起构成一个操作资源集。
其中, 上述主动资源、操作资源以及操作资源集的关系可以如图 2所示, 其中方框代表资源, 而圓框代表属性, 黑实线表示两个资源或资源与属性之 间存在关联关系, 且本实施例中的资源和属性仅为一种示例性的划分方式, 才艮据不同的应用场景, 其划分方式也可以有所不同。
主动资源 ( Subject Resource ) , 其可能是 RESTf l架构中的任意一种资 源, 在本实施例中, 主动资源可以为引起一次操作触发事件的资源。
操作资源集 ( Operations ) , 它包含一个或多个操作资源 (Operation ) , 每一个操作资源对应一个由主动资源触发的操作。 操作资源集与主动资源相 关联, 该关联的表示方式可以是主动资源的表述中包含操作资源集的 URI。
操作资源 (Operation ) , 表示一个操作。 该操作资源可以包含一系列属 性和资源。 其中如上描述, 圓框代表属性, 即操作资源的属性为: 优先级 ( Priority )、条件 ( Rule )、 目标资源( Object Resource )、请求种类( Method )、 输入参数( Input )体现操作执行结果的地址( Output URI )和执行结果( Result ) 中的几项或全部; 同样如上描述, 方框代理资源, 即操作资源中的资源为: 依赖资源集( Dependencies )中包含的依赖资源。 具体的, 依赖资源还可以包 含几个属性, 如逻辑, URI和 /条件。 一个或多个操作资源包含在操作资源集 中, 并通过操作资源集主动资源产生关联。 也就是说, 如果主动资源表述中 包含的是操作资源集的通用资源标识符 URI, 则该操作资源集下的所有操作 资源都是主动资源关联的操作资源。 因此, 在主动资源发生变化时, 该操作 资源集下的所有操作资源, 并确定是否需要执行操作资源中的操作。
优先级(Priority )表示该操作资源的优先级。 当与主动资源关联的操作 资源有多个, 如两个或两个以上时, 并且有多个操作资源中的操作都需要执 行时, 业务能力中间件根据所述操作资源的表述中的优先级, 按照优先级从 高到低的顺序依次操作资源中的操作。
条件 (Rule )表示执行该操作资源中的操作所需的条件。 当与操作资源 相关联的主动资源的内容的变化结果满足 Rule定义的条件时,执行该操作资 源中的操作。
目标资源 ( Object Resource ) , 具体的可以用目标资源的 URI表示。 当 与操作资源相关联的主动资源的内容的变化结果满足操作资源的表述中 Rule 定义的条件时则将常见针对该目标资源的操作请求并发送至目标资源的 URI。
Method表示针对该操作资源的操作请求的种类。 RESTful结构中一般定 义有限操作请求的种类, 例如对 ETSI M2M来讲, 操作请求的种类有四种, 即创建(Create ) 、 获取 ( Retrieve ) 、 更新(Update )和删除(Delete ) 。
Input表示针对该操作资源的操作请求的输入参数。在 RESTf l方法中的 更新和创建这两个种类的操作请求需要携带输入参数。 在创建请求中, 该创 建请求中携带的输入参数即是新的目标资源的表述, 使用操作请求中携带的 新的目标资源的表述创建整个目标资源。 在更新请求中, 使用更新请求中携 带的新的目标资源的表述替换原来的目标资源的表述。 具体的, 操作资源的 描述中输入参数的值还可以是一个 URI, 该 URI指向一个参数资源, 该参数 资源的表述即是操作请求需要携带的新的目标资源的表述; 输入参数也可以 是一段文本,用来直接保存上述新的目标资源的表述。 Imput不是每个操作资 源所必须的, 在操作资源的表述中, 操作请求的种类为删除或获取时, 由于 操作请求中不需要携带输入参数, 因此该类操作资源的表述中可以不包括 Imput„
Output URI表示体现操作执行结果的地址。 在一些场景中, 操作执行结 果需要通过其他资源的状态来反馈, 例如确定灯是否开启需要获取灯下的光 照传感器的数值, 光照传感器的数据的地址即为上述体现操作执行结果的地 址。 Imput也不是每个操作资源所必须的, 在一些类的操作资源的表述中可 以不包括 Imput。
Result表示操作的执行结果, 是一段文本。 在存在 Output URI的情况下, 即操作执行的结果由 Output URI所指向的资源来体现时, Result中保存的是 从 Output URI中获取的资源的表述。 当没有提供 Output URI时, Result中保 存的是操作请求发送后反馈的操作响应。
Dependencies表示依赖资源 (Dependency ) 的集合, 即依赖资源集。 依 赖资源表示该操作资源的执行还需要依赖于依赖资源定义的依赖条件。
Dependency表示一个依赖资源。 依赖资源中可以保存三个属性, 一个 URI, 一个是条件(Rule ) , 最后一个是逻辑(Logic ) 。 具体的, 该依赖资 源是指要判断依赖资源中的 URI指向的条件资源的表述是否满足依赖资源的 表述中 Rule定义的条件。且如果 Logic中的参数是 AND, 则说明该依赖资源 的表述中 Rule定义的条件满足是执行发送操作请求的必要条件, 如果 Logic 中的参数是 OR, 则说明该依赖资源的表述中 Rule定义的条件满足是执行操 作的充分条件。
结合图 2所示的资源架构图, 本发明实施例提供了完整的操作触发方法 流程, 图 3为本发明具体实施例中操作触发方法流程示意图, 如图 3所示, 包括如下的步骤:
步骤 201、 对主动资源进行配置以便当主动资源的内容发生变化时对目 标资源触发的操作。
根据 M2M应用的业务需求, 可以由应用程序对主动资源进行配置, 以 便于主动资源的表述发生变化时, 对一个或多个目标资源进行一个或多个操 作。 配置的方法是将主动资源和至少一个操作资源关联起来。 具体的, 可以 通过操作资源集关联, 也可以直接将多个操作资源与主动资源关联。 本发明 实施例在此不作限定。
具体的, 对主动资源进行配置, 可以是应用程序通过发送操作资源创建 请求到与主动资源相关联的操作资源集, 以便在操作资源集中新建操作资源。 其中, 操作资源创建请求中定义了当主动资源发生何种变化(Rule ) 时, 对 哪个目标资源 (Object Resource ) , 进行何种操作 ( Method ) , 针对该操作 的操作请求需要带有的输入参数(Input ) , 在执行该操作之前是否需要依赖 资源中的 Rule定义的条件是否满足。 此外, 还可以应用程序通过发送操作资 源创建请求, 由收到操作资源创建请求的实体(如平台中间件)创建操作资 源。还可以是应用程序直接向存储主动资源的中间件发送操作资源创建请求, 由中间件在主动资源的表述中创建操作资源。 具体配置过程可以参见图 4所 示的实施例。
步骤 202、 获取主动资源的内容的变化结果
主动资源可以是任意一个存储在 M2M系统的业务能力中间件中的资源, 具体的, 其可以为引起一次操作触发事件中资源。 例如在室内温度变化时引 起空调开关这一操作触发事件中,完成室内温度状态检测的资源是主动资源。 具体的, 主动资源的内容可以是存储在业务能力中间件的一个拥有特定结构 的一个文字片段、 数据库的记录、 一个文件, 该文字片段等可以通过反序列 化的过程将存储的文字片段等变成一个数据结构。 该主动资源的表述也可以 是直接保存在业务能力中间件内存中的一个数据结构。
主动资源的内容发生变化可以是任意情况引起, 例如可以是由其他应用 发送请求改变了该主动资源的内容, 或者是因为业务能力中间件内部的流程 改变了主动资源的内容。 保存该主动资源的业务能力中间件通过监听该主动 资源的程序检测到了该主动资源的内容的变化结果。
步骤 203、 获取与所述主动资源关联的操作资源的表述, 且确定主动资 源的内容的变化结果满足操作资源的表述中 Rule定义的条件。
如图 2所述, 主动资源与操作资源通过操作资源集进行关联。
然而, 本实施中还可以是主动资源的表述中包含图 2中的各个操作资源 表述, 或图 2中的各个操作资源的 URI, 或图 2中的操作资源归属的操作资 源集的 URI。 操作资源集是一种集合类型的资源, 包含至少一个操作资源。 每个操作资源中都包含一个 Rule属性, 其中定义了与操作资源相关联的主动 资源的内容的变化结果需要满足的条件。 业务能力中间件根据主动资源的内 容的变化结果, 逐一的对与其相关联的操作资源的 Rule条件进行判断, 最终 选择那些满足 Rule条件的操作资源。 本步骤 203的具体实施流程可以参见图 10所示的实施例。
步骤 204、 对上述步骤中确定的与主动资源相关联的操作资源, 根据操 作资源的优先级选择操作资源。
操作资源中定义了优先级这一属性, 用来表明该操作资源的优先级。 具体的讲, 该优先级的表示形式可以是一个数字, 数值越大的优先级越高或 者其他形式。 通过优先级将操作资源的重要性和先后顺序进行排位。
具体的, 在步骤 203 中, 确定的与主动资源相关, 且主动资源的内容的 变化结果满足操作资源中 Rule条件的操作资源为至少两个, 则在此步骤中, 业务能力中间件根据所述操作资源的表述中的优先级, 依次构建针对每一个 操作资源表述的目标资源的操作请求, 以便能够按照先后次序执行各操作资 源中描述的操作。
步骤 205、 确定存在与步骤 204 中根据优先级选择的操作资源相关联的 依赖资源, 且确定相关联的依赖资源中的 Rule定义的条件都能够满足。
具体的, 对步骤 204中选择出来的操作资源, 确定存在有与其相关联的 依赖资源。 具体的, 与操作资源相关联的依赖资源可以是包含在操作资源表 述中的依赖资源的表述(如图 2中的依赖资源所示) , 还可以是在操作资源 表述中的包含的一个或多个依赖资源的标识, 或在操作资源表述中的包含的 依赖资源集的标识。 本发明实施例在此不做限定。
依赖资源中包含 URI、 Logic, Rule三个属性。 确定存在与操作资源相关 的依赖资源后, 上述依赖资源中 Rule定义的条件都能够满足具体为: 根据依 赖资源的 URI获取 URI所指示的条件资源的表述,判断该条件资源的表述是 否能够满足依赖资源中 Rule定义的条件, 如果该条件资源的表述能够满足依 赖资源中 Rule定义的条件, 并进一步检查 Logic中定义的该依赖资源的类型 为充分条件类型还是必要条件类型。 如果是必要条件类型则继续检查其他未 检查的依赖资源中 Rule定义的条件是否能够满足,如果是充分条件类型则直 接执行步骤 206。 本步骤的具体实现过程可以参见图 14所示的实施例。
步骤 206、 根据步骤 204中选择的操作资源的表述中的操作请求的种类, 获取操作请求的输入参数, 并构建操作请求。
具体的,本步骤中首先确定操作资源的表述中 Method定义的操作请求的 种类为创建(Create )或者更新 (Update ) 。 根据操作资源中的 Input的值来 获取操作的输入参数, 该操作的输入参数为要创建的目标资源的表述, 或要 更新的目标资源的表述,当 Input包含的是是 URI时,需要通过获取( Retrieve ) 请求获取该 URI所指示的资源的表述作为新的目标资源的表述; Input的值也 可以直接保存新的目标资源的表述, 此时直接使用该新的目标资源的表述创 建操作请求。
根据操作资源中定义的操作请求的种类、 目标资源、 输入参数构建待发 送的操作请求, 该步骤 206的具体实现过程可以参见图 11所示的实施例。
步骤 207、 发送步骤 206中创建的操作请求到目标资源的 URI, 并接收 目标资源所在的设备返回的操作响应。 具体的, 存储主动资源的平台中间件 步骤 208、 根据当前执行的操作资源的表述中的 Output URI获取所述操 作请求对应的执行结果, 保存在 Result中。
具体的, 当操作资源的表述中包括 Output URI时, 则操作请求对应的执 行结果需要从该 Output URI指示的资源获取。 在步骤 207发送完请求后, 存 储主动资源的业务能力中间件进一步发送获取 ( Retrieve )请求到 Output URI 以获取该 Output URI指示的资源的表述,并将获取的 Output URI指示的资源 的表述保存在该操作资源的表述中的执行结果(Result )属性中。
如果操作资源的表述没有提供 Output URI, 说明该操作的执行结果不需 要其他资源的表述来体现, 此时在步骤 207执行以后, 接收步骤 207中操作 请求对应的操作响应。 保存该操作响应的内容到操作资源的表述中的执行结 果(Result ) 中。 本步骤 208的具体实现过程可以参见图 15所示的实施例。
步骤 209、 确定是否是选择的最后一个操作资源? 如果是最后一个操作 资源, 即确定步骤 203选择的多个操作资源的操作已经执行完, 则进入步骤 210, 否则回到步骤 204, 本步骤中判断操作资源的操作是否执行完的方式可 以是判断是否接收到对应的操作响应。
步骤 210、 结束。
图 4为本发明实施例中配置操作触发的流程示意图, 本实施例中, 是为 温度传感器的温度值配置操作资源, 以便于触发空调在温度高于 30°C且有家 庭成员在家时打开。 其系统架构图可以如图 7所示。
其中 , M2M网络应用 (Network application, 以下简称: NA)服务器 , 通 过 mla接口将各种 M2M应用 (如电力抄表、 智能交通等 ) , 注册到 M2M业 务平台的网络业务能力层 ( Network Service Capability Layer , 以下简称: NSCL ) , Μ2Μ业务平台通过 mid接口接入 Μ2Μ设备釆集的数据, 还通过 该接口对 M2M设备进行远程设备管理; M2M设备 d(M2M device)通过 M2M 网关( M2M Gateway )连接到 M2M业务平台的 NSCL; M2M设备 D (M2M device domain), 通过 mid接口连接 M2M业务平台的 NSCL。
其中, M2M设备 D, 为不符合 ETSI M2M规范的传统设备; M2M设备 D为符合 ETSI M2M规范的设备。 其中 M2M设备 D具有 ETSI M2M标准定 义的业务能力层( Service Capability Layer , 以下简称: SCL ) , Μ2Μ设备 D, 不具有 ETSI M2M标准定义的 SCL。
M2M网关使用网关互联代理功能( Gateway Interworking Proxy , 以下简 称: GIP )通过无线或有线通信方式 (例如, Zigbee、 Bluetooth, DLMS/COSEM、 Zwave、 BACnet、 ANSI C12、 mBus等)与 M2M传统设备 d和 M2M设备 D, 互联。而 M2M网关或 M2M设备 D与 M2M平台之间的 mid接口一般釆用有 线或无线的广域局域网通信 (如: Xdsl, HFC , satellite, GERAN, UTRAN, eUTRAN, W-LAN and WiMAX等) 。
其中 D'Al 为温度传感器应用, 其不断的把温度的数值保存在网关业务 能力层 GSCL1资源树中的温度( Temperature )资源中。主动资源 Temperature 资源的 URI是: http://gscll/temperature。 NA1为智能家居应用程序, 该 NA1 用于创建与温度资源相关联的操作资源的表述。 D,A5为空调应用程序, 其通 过监视 GSCL2 中空调状况( AirCondition ) 资源的表述值对空调进行控制, 例如当空调状况资源的表述值是 ON时打开空调, 是 OFF时关闭空调。 空调 状况资源的 URI是: http!.//gscl2/airCondition0
NA2为主人位置应用程序, 该应用程序将主人的位置信息保存在 NSCL 中的主人位置 ( HostLocation ) 资源中。 主人位置资源的 URI 是: littp://nscl/hostLocation。
当温度资源的表述值大于 30摄氏度时, 需要 GSCL1发送请求到 GSCL2 改变空调状况资源的表述为 ON, 从而完成打开空调的目的。 NA1通过创建 与温度资源关联的操作资源的表述, 完成这一过程。
如图 4所示, 包括如下的步骤:
步骤 301、 创建操作资源的表述。
网络应用服务器中 NA1构建操作资源打开空调 (TumOnAC ) , 用来表 达触发打开空调的操作的条件。 根据业务逻辑的需求, 可以重复这一步骤多 次以创建多个操作资源的表述。 操作资源 TumOnAC的架构如图 5所示: 步骤 302、 发送操作资源创建请求。
网络应用服务器中 NA1在步骤 301之后将构建好的操作资源 TumOnAC 的表述按照 RESTf l 架构的标准封装成在接口上发送至网关业务能力层 GSCL1 ,以由 GSCL1将操作资源 TumOnAC创建在与温度资源关联的操作资 源集下,该操作资源集的 URI为 http://gscl 1 /temperature/Operations。也; It是说 操作资源创建请求中携带操作资源集的 URI以及构建好的操作资源的表述。 如果还不存在与该主动资源, 如温度资源相关的操作资源集, 则操作资源创 建请求中则可以携带温度资源的 URI或 GSCL1的 URI, 由 GSCL1创建操作 资源, 如在温度资源的表述下创建操作资源, 或另行创建操作资源, 并将操 作资源的 URI包含在温度资源的表述中。 本发明实施例以操作资源创建请求 中携带操作资源集的 URI为例进行说明。
步骤 303、 创建操作资源。
网关业务能力层 GSCL1在收到 NA1发来的操作资源创建请求后, 把操 作资源请求中的操作资源 TumOnAC 创建在与温度资源关联的操作资源集 ( Operations )下,即将操作资源 TumOnAC的表述添加到上述操作资源集中, 以将操作资源 TumOnAC和温度资源关联起来, 网关业务能力层创建完操作 资源 TumOnAC后 , 向 NA1返回创建响应。
步骤 304、 创建依赖资源的表述。
NA1根据业务需求开始创建不同操作资源执行的依赖资源。 在本实施例 中, 是否打开空调依赖于主人的位置, 即主人位置资源 HostLocation的状态, 该主人位置资源 HostLocatio即为操作资源资 TumOnAC的依赖资源, 因此创 建依赖资源 MemberAtHome, 该依赖资源 MemberAtHome的表述可用于表明 是否有成员在家。 如图 6所示, 在依赖资源 MemberAtHome中, 逗辑 Logic 的值是 OR,表明该依赖资源的类型时充分条件类型, URI是主人位置资源的 URI, 条件 Rule为主人位置状态为在家。
步骤 305、 发送依赖资源创建请求。
NA1在步骤 304之后将构建好的依赖资源 MemberAtHome的表述按照 RESTful 架构的标准封装成在接口上发送至网关业务能力层 GSCL1 , 以由 GSCL1将该依赖资源 MemberAtHome创建在与操作资源 TumOnAC关联的依 赖 资 源 集 下 , 该 依 赖 资 源 集 的 URI 为 http://gscll/temperature/Operations/TurnOnAC/Dependencies。 也就是说依赖资 源创建请求中包含依赖资源集的 URI。 此外, 参考步骤 302, 该依赖资源创 建请求中还可以包含操作资源的 URI, 表明该操作资源下还没有依赖资源或 依赖资源集,以便于 GSCL1直接在操作资源 TumOnAC中保存依赖资源的表 述。 本实施例以依赖资源创建请求中包含依赖资源集的 URI为例进行说明。 此外, 可以按照标准定义的依赖资源创建(Create )请求发送。
步骤 306、 创建依赖资源。
GSCL1在收到 NA1发来的依赖资源创建请求以后, 把依赖资源创建请 求中的依赖资源 MemberAtHome的表述添加到与操作资源 TumOnAC关联的 依赖资源集下, 即把该依赖资源 MemberAtHome和依赖资源集关联起来, 从 而也把依赖资源 MemberAtHome和操作资源 TumOnAC关联起来。创建依赖 资源完成后返回创建响应。
在图 4所示实施例的基础上, 当温度高于 30摄氏度的时候除了打开空调 之外还需要关上窗户, 即触发两个操作。 NA1可以定义关上窗户的优先级高 于打开空调的优先级, 需要先关上窗户再打开空调。 如错误! 未找到引用源。 图 7所述的系统架构中, 还包括关窗控制器应用程序 D'A4, 其通过监视网关 业务能力层 GSCL2中 Window资源的值对窗户进行控制,例如当 Window资 源的表述是 ON时打开窗户, 是 OFF时关闭窗户。 Window资源的 URI是: http: //gscl2/window。
关闭窗户的操作资源 CloseWindow的架构图可以如图 8所示, 操作资源
CloseWindow的输入参数 Input的值是一个 URI, 不同于 TumOnAC的 Input 中直接保存了输入参数。 操作资源 CloseWindow 的 Output URI 是 http://gscl2/allWindowStatus , 即 allWindowStatus 资 源 的 URI 。 该 allWindowStatus资源的表述用于表示家中窗户的关闭状态, ON表示有窗户 开启, OFF表示窗户已经全部关闭。
操作资源 CloseWindow 和操作资源 TumOnAC 都分别和主动资源 Temperature关联, 具体的关联示意图可以如图 9所示。
当温度资源的表述为大于 30度时,会触发操作资源 TumOnAC和操作资 源 CloseWindow的两个操作。 本实施例中, 温度资源 Temperature保存在网 关业务能力层 GSCL1上, 操作资源 TumOnAC和操作资源 CloseWindow均 保存在网关业务能力层 GSCL2上, 其具体过程包括如图 10所示的步骤: 步骤 401、 GSCL1获取温度资源的内容的变化结果。
具体的, 温度资源 Temperature作为主动资源, 其表述发生变化。 GSCL1 获取的内容的变化结果为 31度。
步骤 402、 GSCL 1确定有与温度资源 Temperature相关联的操作资源,
TumOnAC和操作资源 CloseWindow归属的操作资源集的 URI。在实施例中, 温度资源的架构图可以如图 9所示, 本步骤中确定的与温度资源相关联的操 作资源为 TumOnAC和 CloseWindow。
步骤 403、 判断温度资源的内容的变化结果满足步骤 402 中确定的操作 资源 TumOnAC和 CloseWindow的表述中的 Rule定义的条件。 Rule中定义 了对资源的表述进行匹配的方法, 在 ETSI M2M 中 Rule 即是其定义的 filterCriteria属性。 在本实施例中 TumOnAC和 CloseWindow的表述中 Rule 定义的条件是 >30°C , 而温度资源的表述已变化为 31 °C。 因此 TumOnAC和 CloseWindow的 Rule定义的条件都已满足,本步骤中选中上述两个操作资源。 在后续的步骤中将逐一对选中的操作资源执行相应的操作。
步骤 404、 上述两个操作资源的表述中都包括了操作资源的优先级 ( Priority ) 。 在本实施例中操作资源 CloseWindow的优先级是 2, 操作资源 TumOnAC的优先级是 1 , 因此操作资源 CloseWindow的优先级高于操作资 源 TumOnAC 的优先级, 因此本步骤首先选择执行优先级高的操作资源 CloseWindow对应的操作。
步骤 405、确定操作资源 CloseWindow的依赖资源中 Rule定义的条件满 足, 具体步骤可以参见如图 14所示的实施例。
步骤 406、 获取创建针对操作资源 CloseWindow的操作请求时所需要的 输入参数, 具体步骤可以参见图 11所示的实施例。
步骤 407、 根据操作资源 CloseWindow 的表述中包含的请求种类 ( Method ) 、 目标资源 (Object Resource ) 以及步骤 406中获取的输入参数 构建待发送的操作请求。 在本实施例中, 操作请求的种类是创建(Create ) , 目标资源的 URI是 http://gscl3/window, 获取的输入参数 ( Input )是 OFF。 在 ETSI M2M标准中, 根据上述属性可以构建在标准 RESTf l接口上传输的操 作请求。
步骤 408、发送步骤 407中构建的操作请求到 GSCL3 ,具体可以通过 M2M 系统定义的标准 RESTful接口发送,并接收 GSCL3通过窗户设备执行完操作 请求中的操作, 如关闭窗户, 后返回的操作响应。
步骤 409、 获取所述操作请求对应的执行结果, 详细步骤可以参见图 15 所示的实施例。
步骤 410、 针对在步骤 403 中已选中的操作资源的优先级, 选择剩余的 优先级最高的操作资源, 继续执行下述步骤。 本实施例中, 本步骤中选中操 作资源 TurnOnAC。
步骤 411、 确定操作资源 TurnOnAC的表述中依赖资源的表述中 Rule定 义的条件满足, 详细步骤可以参见图 14所示的实施例。
步骤 412、 获取创建针对 TurnOnAC的操作请求时所需要的输入参数, 详细步骤可以参见图 11所示的实施例。
步骤 413、 根据操作资源 TurnOnAC中包含的种类 (Method ) 、 目标资 源 ( Object Resource ) 以及步骤 406获取的输入参数构建待发送的操作请求。
Figure imgf000030_0001
准, 根据上述属性可以构建在标准 RESTful接口上传输的操作请求。
步骤 414、 将步骤 413中创建的操作请求发送到 GSCL2, 具体的可以通 过 M2M系统定义的标准 RESTf l接口发送, 并接收操作响应。
步骤 415、 获取操作的执行结果, 具体的步骤可以参见图 15所示的实施 例。
在图 10的实施例中, GSCL2, GSCL1, GSCL3可以是同一个 GSCL,也可 以是不同的 GSCL, 本发明实施例在此不做限定。
操作资源的表述中包含的 Input表示构建操作请求时需要的输入参数,在
RESTful规定的操作请求的种类中, 删除(Delete )和获取(Retrieve ) 不需 要输入参数, 创建(Create )和更新(Update )需要携带目标资源的表述分别 用来创建目标资源和更新目标资源。在上述图 10所示实例中的步骤 406和步 骤 412中, 分别在构建针对操作资源 Close Window和 TurnOnAC的操作请求 时获取了输入参数。 其具体的流程如 12图所示, 其中用于保存输入参数的资 源的 URI http://gscl3/OFF资源,其所在的业务能力中间件是 GSCL3。如图 11 所示, 确定是否需要获取输入参数的流程可以包括如下的步骤:
步骤 501、 流程开始, 确定需要执行的操作资源所对应的操作, 例如是 操作资源 CloseWindow所对应的操作或操作资源 TurnOnA C所对应的操作; 步骤 502、判断正在执行的操作资源的表述中的操作请求种类(Method ) , 本实施例中操作资源 CloseWindow和 TumOnAC的表述中请求种类( Method ) 都是创建(Create ) , 执行步骤 503 , 另外对于请求种类是删除(Delete )或 者获取( Retrieve ) , 在构建操作请求时不需要考虑输入参数, 可以直接执行 步骤 506;
步骤 503、 判断正在执行的操作资源的表述的输入参数 Input中保存的是 否是一个参数资源的 URI。
URI有其固定的格式, 由 schema, host, port, path等部分组成, 具体可以 参见 IETF RFC3305。 输入参数 Input中保存的 URI表明构建操作请求所需的 输入参数为该 URI 所指向的资源参数的表述。 例如本实施例中的操作资源 CloseWindow, 其表述中的输入参数 Input中保存有 URI: http://gscl2/OFF。 如果输入参数中保存的是 URI, 则进入步骤 505。 如果输入参数中保存的不 是 URI,而是直接保存资源的表述,作为新的目标资源的表述,进入步骤 504。
步骤 504、 正在执行的操作资源的表述中的输入参数中直接保存了新的 目标资源的表述时, 该目标资源的表述的保存形式可以是一个文本片段。 如 操作 资 源 TumOnAC 的 表 述 中 的 输 入 参 数 中 保 存 的 是 <textContent>ON<textContent> , 该文本片段即为创建针对操作资源 TumOnAC的操作请求时所需的输入参数。
步骤 505、 正在执行的操作资源的表述中的输入参数是 URI时, 需要发 送获取请求到该 URI以获取该 URI指向的资源的表述作为新的目标资源的 表述。 例如操作资源 CloseWindow的表述中输入参数 Input保存的 URI是 http://gscl3/OFF, 表明 GSCL1 ( Temperature所在业务能力中间件 )需要发送 获取请求( Retrieve )到 GSCL3 ( http://gscl3/OFF所在业务能力中间件 )获取 http://gscl3/QFF指示的资源的表述作为新的目标资源的表述。
步骤 506、 在构建删除或获取类型的操作请求时, 不需要输入参数, 直 接进入步骤 507。 步骤 507、 执行图 10所示实施例中步骤 406和步骤 412的下一步。
在图 10所示实施例中的步骤 405和步骤 411 , 在执行操作之前还需要 判断操作资源中的依赖资源的表述中 Rule定义的条件满足。在本实施例中, 即是判断操作资源 TurnOnAC和 CloseWindow中的各个依赖资源的表述中 Rule定义的条件是否能够满足。 在如图 7所示的系统架构图中, 其中 D,A2 为卧室窗磁感应器应用程序, 用来检测卧室的窗户是否关闭, 该应用程序 通过 GSCL1中的 BedroomWindowStatus资源的表述来说明当前卧室窗户的 状 态 , BedroomWindowStatus 资 源 的 URI 为 : http://gscll/bedroomWindowStatus„ D'A3 为客厅窗磁感应器应用程序, 用 来检测客厅的窗户 是否关闭 , 该应用程序通过 GSCL1 中 的 LivingroomWindowStatus 资源的表述来说明当前客厅窗户的状态。 LivingroomWindowStatus 资 源 的 URI 为 : http://gscll/livingroomWindowStatus„ 在当前的实施例, 当温度资源的表述 大于 30°C时, 需要首先关闭窗户, 再打开空调。 在关闭窗户的操作执行之 前, 需要首先判断当前客厅和卧室的窗户是否已经关闭, 意即操作资源 CloseWindow 的操作 的执行还依赖 于 BedroomWindowStatus 和 LivingroomWindowStatus 这两个依赖资源的表述, 如果有一个窗户没有关 闭时都需要执行关闭窗户的操作。
同时, 在确保所有窗户都关闭以后, 并且确认主人在家后, 才执行打开 空调的操作。 综上, 更新后的打开空调的操作资源 TurnOnAC和关闭窗口的 操作资源 CloseWindow的依赖资源集的架构图可以如图 12和图 13所示。
对每个操作资源而言, 判断与其关联的依赖资源的表述中 Rule定义的条 件是否满足可以包括如 14图所示的步骤:
步骤 601、 开始。
步骤 602、 GSCL1确定所有与操作资源关联的依赖资源, 其中与操作资 源 TurnOnAC 关 联 的 依 赖 资 源 包 括 MemberAtHome 、 LivingroomWindowClosed 和 BedroomWindowClosed ; 与 操作 资 源 CloseWindow 关 联 的 依赖 资 源 包 括 LivingroomWindowOpen 和 BedroomWindowOpen。
步骤 603、 对于每一个操作资源, 依次选择与其关联的一个依赖资源, 针对每个依赖资源, 分别执行下述的步骤 604-步骤 610;
步骤 604、 根据依赖资源的表述中的 URI获取 URI所指向的条件资源的 表述; 如根据 http:/Aiscl/hospLocation获取该 URI指向的条件资源的表述, 即 获取主人的位置。
步骤 605、 判断上述条件资源的表述是否满足依赖资源中 Rule定义的条 件, 若是满足执行步骤 606, 否则执行步骤 607;
本实施例中, 假设主人的位置为 at home. 则条件资源的表述满足依赖资 源中 Rule定义的条件。
步骤 606、 判断依赖资源的类型充分条件类型, 还是必要条件类型, 如 果是充分条件类型, 执行步骤 609, 若果是必要条件类型执行步骤 608;
本实施例中,依赖资源 Member At Home的类型为 and,为必要条件类型, 还需要判断其它的依赖资源的条件是否满足。
步骤 607、 判断判断依赖资源的类型为充分条件类型, 还是必要条件类 型, 如果是必要条件类型, 执行步骤 610, 如果是充分条件类型, 执行步骤 608;
步骤 608、 确认是否是最后一条依赖资源, 如果不是执行步骤 603 , 如果 是, 则分两种情况, 若在上述步骤 605 中判断条件资源的表述满足依赖资源 中 Rule定义的条件时执行步骤 609, 在上述步骤 605中判断条件资源的表述 不满足时依赖资源中 Rule定义的条件执行步骤 610;
步骤 609、继续执行下一步骤,即图 10所示实施例中步骤 406和步骤 412; 步骤 610、 终止针对操作资源的操作。
具体的, 针对操作资源 Close Window, 其在步骤 603中首先选中的依赖 资源是 LivingroomWindowOpen ; 并进一步在步骤 604 中根据依赖资源 LivingroomWindowOpen 的 URI: http://gscl 1/livingroomWindowStatus , 获取 表示客厅窗户是否开启的资源的表述, 即关闭状态(Closed ) , 并在步骤 605 中判断步骤 604中获取的表示客厅窗户是否开启的资源的表述是否满足依赖 资源 LivingroomWindowOpen 的表述中 Rule 定义的条件, 而该依赖资源 LivingroomWindowOpen的表述中 Rule定义的条件为开启状态 (Open ) , 因 此判断结果为不满足, 则执行步骤 607 , 在步骤 607 中确定依赖资源 LivingroomWindowOpen 的表述中逗辑(Logic )定义的该依赖资源类型是充 分条件类型 (OR ) , 则进一步执行步骤 608; 在步骤 608中确定对于操作资 源 CloseWindow, 还存在其他的依赖资源未进行判断, 因此返回步骤 603、 在步骤 603中选择下一个依赖资源 BedroomWindowOpen,并在步骤 604中根 据依赖资源 BedroomWindowOpen的 URI: htt ://gscl 1 /bedroomWindowStatus , 获取表示卧室窗户是否开启的资源的表述, 即为开启状态 (Open ) 。 在步骤 605 中判断步骤 604 中获取的表示卧室窗户是否开启的资源的表述是否满足 依赖资源 BedroomWindowOpen 的表述中 Rule 的定义的条件, 而依赖资源 BedroomWindowOpen的表述中 Rule的定义的条件为开启状态 ( Open ) , 因 此判断结果为满足, 则执行步骤 606 , 在步骤 606 中判断依赖资源 BedroomWindowOpen 的表述中逻辑(Logic )定义的该依赖资源的类型是充 分条件类型, 则执行步骤 609。
针对操作资源 TurnOnAC , 上述步骤 603 中首先选中依赖资源 LivingroomWindowClosed , 并 在 步 骤 604 中 根 据 依 赖 资 源 LivingroomWindowClosed的 URI: htt ://gscl 1 /livingroomWindowStatus , 获取 表示客厅窗户是否开启的资源的表述, 即关闭状态 (Closed ) 。 在步骤 605 中判断步骤 604 中获取的表示客厅窗户是否开启的资源的表述是否满足 LivingroomWindowOpen 的表述中 Rule 的定义条件, 而该依赖资源 LivingroomWindowOpen的表述中 Rule定义的条件为关闭状态 (Closed ) , 因此判断结果为满足, 执行步骤 606。 在步骤 606 中确定依赖资源 LivingroomWindowOpen 的表述的逗辑(Logic )定义的该依赖资源类型是必 要条件类型 (AND ) , 进一步执行步骤 608; 在步骤 608中确定是否还有与 操作资源 TurnOnAC 关联的依赖资源未进行判断, 由于还存在依赖资源 BedroomWindowClosed , 因 此执行步骤 603 , 并选 中依赖 资源 BedroomWindowClosed , 在步骤 604中根据依赖资源 BedroomWindowClosed 的 URI: http://gscll/bedroomWindowStatus, 获取表示卧室窗户是否开启的资 源的表述, 即为关闭状态 (Closed ) 。 在步骤 605 中判断步骤 604中获取的 表示 卧室 窗户 是否开启 的 资源 的表述是否 满足依赖 资源 BedroomWindowOpen 的表述中 Rule 定义的条件, 而依赖资源 BedroomWindowOpen的表述中 Rule的定义的条件为关闭状态 (Closed ) , 因此判断结果为不满足, 则执行步骤 607。 在步骤 607 中进一步判断依赖资 源 MemberAtHome的表述中定义的该依赖资源的类型逻辑( Logic )是必要条 件类型, 直接执行步骤 610。
以下为主动资源变化触发操作后如何获取操作请求的执行结果的实施 例, 具体的可以参见图 10所示实施例中的步骤 409和步骤 415 , 分别在针对 操作资源 CloseWindow和操作资源 TumOnAC的操作请求发送以后需要获取 操作的执行结果。 如图 5所示的操作资源 TumOnAC的资源结构图和图 8所 示的 CloseWindow的资源结构图所示, 操作资源 TumOnAC的 Output URI 是空,而操作资源 CloseWindow的 Output URI是 http://gscl2/allWindowStatus。 获取操作的执行结果的具体过程可以包括如图 15所示的步骤:
步骤 701、 参见图 10中所示实施例中的步骤 409和步骤 415 , 在发送针 对操作资源 CloseWindow和操作资源 TumOnAC的操作请求, 并接收操作响 应后开始。
步骤 702、 GSCL1 确定操作资源的表述中体现操作的执行结果的地址 ( Output URI )是否为空,本实施例中,操作资源 TumOnAC的表述中的 Output URI项为空,执行步骤 703 ,而操作资源 CloseWindow的表述中的 Output URI 不为空, 执行步骤 704。
步骤 703、 如图 10所示实施例中步骤 415所示, 获取操作的执行结果的 过程发生在发送操作请求并接收到操作响应之后, 对于操作资源的表述中的 Output URI项为空的情形, 直接保存该操作响应到执行结果 Result中。 对操 作资源 TumOnAC而言, 对应的创建( Create )种类的操作请求的操作响应是 OK, 因此在操作资源 TumOnAC的表述的 Result中保存 OK:。
步骤 704、对于操作资源的 Output URI不为空的情况, Output URI中保 存的是体现操作的执行结果的地址, 即一个存储操作执行结果的资源的 URI, 因此发送获取请求到操作执行结果的资源的 URI, 以获取该资源的表述。 对 操作资源 CloseWindow 而言, 发送获取请求到存储操作执行结果的资源的 URI: http://gscl2/allWindowStatus , 接收获取响应, 该获取响应中包括 allWindowStatus资源的表述, 即所有窗户都已关闭 (Closed ) 。
步骤 705、 将在步骤 704中获取的 allWindowStatus资源的表述保存到操 作资源 CloseWindow的表述中的执行结果 Result中。
步骤 706、 结束。 本发明实施例还提供了与上述的方法对应的装置, 图 16为本发明实施例 中机器通信操作触发装置的结构示意图一, 该装置存储主动资源的表述, 所 述主动资源的表述包括主动资源的内容以及与所述主动资源关联的操作资源 的信息, 如图 16所示:
该装置包括获取模块 11、 构建模块 12和发送模块 13 , 其中获取模块 11 用于在所述主动资源的内容发生变化时, 获取存储的主动资源的内容的变化 结果, 以及根据与所述主动资源关联的操作资源的信息获取与所述主动资源 关联的操作资源的表述, 所述操作资源的表述包含向目标资源发送操作请求 的条件和所述目标资源的通用资源标识符; 所述获取模块还用于将所述变化 结果以及所述操作资源的表述发送给所述构建模块;构建模块 12用于接收所 述变化结果和所述与所述主动资源关联的操作资源的表述, 确定所述变化结 果满足所述操作资源的表述中的向目标资源发送操作请求的条件时, 构建针 对所述目标资源的操作请求, 并将所述操作请求发送给所述发送模块; 发送 模块 13用于接收所述操作请求,根据所述目标资源的通用资源标识符向所述 目标资源发送所述操作请求。
本发明上述实施例提供的技术方案, 其中在发生主动资源的内容的变化 时, 由存储主动资源的内容的变化结果的装置根据与所述主动资源关联的操 作资源的信息获取与主动资源关联的操作资源的表述, 并构建针对操作资源 表述的目标资源的操作请求, 最后向操作资源表述的目标资源发送该操作请 求, 本发明上述实施例中的机器通信操作触发装置可以为 M2M平台或网关 上的中间件, 而 M2M平台和网关在网络中都属于有能力的节点, 不存在能 力受限的问题, 利于解决受限环境中业务无法进行的情形。
进一步的, 上述主动资源关联的操作资源的信息所述为与主动资源关联 的操作资源的表述, 上述获取模块根据与所述主动资源关联的操作资源的信 息获取与所述主动资源关联的操作资源的表述具体为: 根据所述主动资源的 表述中包含的与所述主动资源关联的操作资源的表述获取与所述主动资源关 联的操作资源的表述; 或所述主动资源关联的操作资源的信息为与主动资源 关联的操作资源的通用资源标识符, 所述获取模块根据与所述主动资源关联 的操作资源的信息获取与所述主动资源关联的操作资源的表述具体为: 根据 所述主动资源的表述中包含的所述操作资源的通用资源标识符获取与所述主 动资源关联的操作资源的表述; 或所述主动资源关联的操作资源的信息为与 主动资源关联的操作资源归属的操作资源集的通用资源标识符, 所述获取模 块根据与所述主动资源关联的操作资源的信息获取与所述主动资源关联的操 作资源的表述具体为: 根据所述主动资源的表述中包含的所述操作资源归属 的操作资源集的通用资源标识符获取与所述主动资源关联的操作资源的表 述, 其中与所述主动资源关联操作资源的表述为所述操作资源集包含的操作 资源的表述。
本发明上述实施例提供的机器通信操作处理装置, 其还可以进一步的包 括接收模块, 其中接收模块用于, 在所述获取模块获取存储于所述装置的主 动资源的内容的变化结果之前, 接收主动资源更新请求, 所述主动资源更新 请求包括新的主动资源的表述以及待更新的主动资源的通用资源标识符, 所 述新的主动资源的表述中包含所述主动资源关联的操作资源的信息, 所述接 收模块根据所述待更新的主动资源的通用资源标识符更新存储的主动资源的 表述为所述新的主动资源的表述; 或,
所述接收模块, 用于, 在所述获取模块获取存储于所述装置的主动资源 的内容的变化结果之前, 接收操作资源创建请求, 所述操作资源创建请求包 括与所述主动资源关联的操作资源的表述和所述操作资源归属的操作资源集 的通用资源标识符, 所述接收模块根据所述操作资源归属的操作资源集的通 用资源标识符在所述操作资源集中添加所述操作资源的表述。
另外, 在本发明的上述实施例中, 其中的操作资源的表述中还包括操作 请求的种类和操作请求的输入参数, 所述操作请求的种类为创建或更新; 在所述输入参数为参数资源的通用资源标识符时, 所述构建模块构建针 对所述目标资源的操作请求具体为: 从所述参数资源的通用资源标识符所指 向的参数资源中获取新的目标资源的表述, 构建包括所述目标资源的通用资 源标识符和所述新的目标资源的表述的针对操作资源的表述中的目标资源的 操作请求; 或,
在所述输入参数为所述新的目标资源的表述时, 所述构建模块构建针对 所述目标资源的操作请求具体为: 构建包括所述目标资源的通用资源标识符 和所述新的目标资源的表述的针对操作资源的表述中的目标资源的操作请 求。 另外, 上述的机器通信操作触发装置的接收模块还用于, 在所述获取模 块获取存储于所述业务能力中间件的主动资源的内容的变化结果之前, 接收 操作资源更新请求, 所述操作资源更新请求包括新的操作资源的表述, 所述 符, 以及用于更新存储的操作资源的表述为所述新的操作资源的表述; 或, 所述接收模块还用于, 在所述获取模块获取存储于所述业务能力中间件 的主动资源的内容的变化结果之前, 接收依赖资源创建请求, 所述依赖资源 创建请求包括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用 资源标识符, 以及用于根据所述依赖资源归属的依赖资源集的通用资源标识 符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的通 用资源标识符添加在操作资源的表述中。
进一步的, 在存在依赖资源的技术方案中, 上述装置还可以进一步包括 确认模块, 所述获取模块还用于根据操作资源的表述获取与所述操作资源相 关联的依赖资源的表述, 以及获取所述依赖资源的表述中的通用资源标识符 所指向的条件资源的表述, 并将所述条件资源的表述以及依赖资源的表述中 的条件发送给所述确认模块; 确认模块用于接收所述条件资源的表述, 根据 所述条件资源的表述确认满足所述依赖资源的表述中的条件。
具体的, 上述依赖资源类型分为充分条件类型和必要条件类型, 所述依 赖资源的数目为至少一个, 上述构建模块构建针对操作资源的表述中的目标 资源的操作请求之前, 进一步用于: 确定至少一个充分条件类型的依赖资源 规定的条件满足; 或, 上述构建模块构建针对操作资源的表述中的目标资源 的操作请求之前, 进一步用于确定所有必要条件类型的依赖资源规定的条件 满足。
针对上述操作资源和依赖资源之间的关联关系,可以通过三种方式实现, 具体的, 上述获取模块根据操作资源的表述获取与所述操作资源相关联的依 赖资源的表述具体为: 根据所述操作资源的表述中包含的所述依赖资源的表 述获取与所述操作资源关联的依赖资源的表述; 或根据所述操作资源的表述 中包含的所述依赖资源的通用资源标识符获取与所述操作资源关联的依赖资 源的表述; 或根据所述操作资源的表述中包含的所述依赖资源归属的依赖资 源集的通用资源标识符获取与所述操作资源关联的依赖资源的表述; 其中, 与所述操作资源关联的依赖资源的表述为所述依赖资源集包含的依赖资源的 表述。
本发明上述实施例中,其中与所述主动资源关联的操作资源为至少两个, 操作资源的表述中还可以包括优先级, 所述构建模块构建针对操作资源的表 述中的目标资源的操作请求具体为: 根据所述操作资源的表述中的优先级, 依次构建针对每一个操作资源表述的目标资源的操作请求。
本发明上述实施例中, 其中操作资源的表述中还包括操作的执行结果, 所述 接收模块还用于接收所述目标资源返回的操作响应, 将所述操作响应保存到 所述操作资源的表述中操作的执行结果中;
或, 所述操作资源的表述中还包括体现操作执行结果的地址和操作的执 行结果, 所述
接收模块还用于接收所述目标资源返回的操作响应;
所述获取模块还用于根据所述体现操作执行结果的地址获取所述操作请 求对应的操作结果, 并将所述操作请求对应的操作结果保存到操作的执行结 果中。
另外, 本发明实施例还提供了另一种机器通信操作触发装置, 图 17为本 发明实施例中机器通信操作触发装置的结构示意图二, 如图 17所示, 该机器 通信操作触发装置包括网络接口 21、 处理器 22和存储器 23 , 其中
所述网络接口 21用于与外部设备进行通信, 所述存储器 23用于存储应 用程序以及存储主动资源的表述, 所述主动资源的表述包括主动资源的内容 以及与所述主动资源关联的操作资源的信息,所述处理器 22用于调用存储器 存储的应用程序, 在主动资源的内容发生变化时,获取存储于存储器的主动资 源的内容的变化结果, 根据与所述主动资源关联的操作资源的信息获取与所 述主动资源关联的操作资源的表述, 所述操作资源的表述包含向目标资源发 送操作请求的条件和所述目标资源的通用资源标识符, 确定所述变化结果满 足所述操作资源的表述中向目标资源发送操作请求的条件时, 构建针对所述 目标资源的操作请求; 述目标资源发送所述操作请求。
本发明上述实施例提供的技术方案, 其中的网络接口 21、 处理器 22和 存储器 23可以通过系统总线 24连接, 在发生主动资源的内容的变化时, 由 存储主动资源的内容的变化结果的业务能力中间件根据与所述主动资源关联 的操作资源的信息获取与主动资源关联的操作资源的表述, 并构建针对操作 资源表述的目标资源的操作请求, 最后向操作资源表述的目标资源发送该操 作请求 ,本发明上述实施例中的计算机设备可以为 M2M平台或网关,而 M2M 平台和网关在网络中都属于有能力的节点, 不存在能力受限的问题, 利于解 决受限环境中业务无法进行的情形。
本发明上述实施例中, 其中的主动资源关联的操作资源的信息为与主动 资源关联的操作资源的表述, 处理器根据所述主动资源的表述获取与所述主 动资源关联的操作资源的表述具体为: 根据所述主动资源的表述中包含的所 述操作资源的表述获取与所述主动资源关联的操作资源的表述; 或所述主动 资源关联的操作资源的信息为与主动资源关联的操作资源的通用资源标识 符, 所述处理器根据所述主动资源的表述获取与所述主动资源关联的操作资 源的表述具体为: 根据所述主动资源的表述中包含的所述操作资源的通用资 源标识符获取与所述主动资源关联的操作资源的表述; 或所述主动资源关联 的操作资源的信息为与主动资源关联的操作资源归属的操作资源集的通用资 源标识符, 所述处理器根据所述主动资源的表述获取与所述主动资源关联的 操作资源的表述具体为: 根据所述主动资源的表述中包含的所述操作资源归 属的操作资源集的通用资源标识符获取与所述主动资源关联的操作资源的表 述, 其中与所述主动资源关联操作资源的表述为所述操作资源集包含的操作 资源的表述。
另外, 上述的网络接口还用于接收主动资源更新请求, 所述主动资源更 新请求包括新的主动资源的表述以及待更新的主动资源的通用资源标识符, 所述新的主动资源的表述中包含所述主动资源关联的操作资源的信息, 所述 处理器调用存储器存储的应用程序根据所述待更新的主动资源的通用资源标 识符更新存储的主动资源的表述为所述新的主动资源的表述; 或所述网络接 口还用于接收操作资源创建请求, 所述操作资源创建请求包括与所述主动资 源关联的操作资源的表述和与所述主动资源关联的操作资源归属的操作资源 集的通用资源标识符, 所述处理器调用存储器存储的应用程序, 并根据所述 操作资源归属的操作资源集的通用资源标识符在所述操作资源集中添加所述 操作资源的表述。
本发明上述实施例中, 其中操作资源的表述中还包括操作请求的种类和 操作请求的输入参数, 所述操作请求的种类为创建或更新;
在所述输入参数为参数资源的通用资源标识符时, 所述处理器从所述参 数资源的通用资源标识符所指向的参数资源中获取新的目标资源的表述, 构 建包括所述目标资源的通用资源标识符和所述新的目标资源的表述的针对操 作资源的表述中的目标资源的操作请求; 或,
在所述输入参数为所述新的目标资源的表述时, 所述处理器构建包括所 述目标资源的通用资源标识符和所述新的目标资源的表述的针对操作资源的 表述中的目标资源的操作请求。
本发明上述实施例中,其中所述网络接口还用于接收操作资源更新请求, 所述操作资源更新请求包括新的操作资源的表述, 所述新的操作资源的表述 储器存储的应用程序, 更新存储的操作资源的表述为所述新的操作资源的表 述; 或所述网络接口还用于接收依赖资源创建请求, 所述依赖资源创建请求 包括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用资源标识 符, 所述处理器调用存储器存储的应用程序, 并根据所述依赖资源归属的依 赖资源集的通用资源标识符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的通用资源标识符添加在所述操作资源的表述中。
进一步的, 上述实施例中的处理器还根据操作资源的表述获取与所述操 作资源相关联的依赖资源的表述, 获取所述依赖资源的表述中的通用资源标 识符所指向的条件资源的表述, 以及根据所述条件资源的表述确认满足所述 依赖资源的表述中的条件。
而上述依赖资源类型分为充分条件类型和必要条件类型, 所述依赖资源 的数目为至少一个, 所述处理器构建针对操作资源的表述中的目标资源的操 作请求之前, 进一步确定至少一个充分条件类型的依赖资源规定的条件满足 (也就是处理器在进一步确定在至少一个充分条件类型的依赖资源规定的条 件满足时, 构建针对操作资源的表述中的目标资源的操作请求) ; 或, 所述 处理器建针对操作资源的表述中的目标资源的操作请求之前, 进一步确定所 有必要条件类型的依赖资源规定的条件满足(也就是处理器确定所有必要条 件类型的依赖资源规定的条件满足时, 构建针对操作资源的表述中的目标资 源的操作请求) 。
上述处理器根据所述操作资源的表述中包含的所述依赖资源的表述获取 与所述操作资源关联的依赖资源的表述; 或根据所述操作资源的表述中包含 的所述依赖资源的通用资源标识符获取与所述操作资源关联的依赖资源的表 述; 或根据所述操作资源的表述中包含的所述依赖资源归属的依赖资源集的 通用资源标识符获取与所述操作资源关联的依赖资源的表述, 其中, 与所述 操作资源关联的依赖资源的表述为所述依赖资源集包含的依赖资源的表述。
另外, 与所述主动资源关联的操作资源为至少两个, 上述操作资源的表 述中还包括优先级, 所述处理器根据所述操作资源的表述中的优先级, 依次 构建针对每一个操作资源表述的目标资源的操作请求。
上述操作资源的表述中还包括操作的执行结果, 所述网络接口还用于接 收所述目标资源返回的操作响应, 所述处理器将所述操作响应保存到所述操 作资源的表述中操作的执行结果中;
或, 所述操作资源的表述中还包括体现操作执行结果的地址和操作的执 行结果, 所述网络接口还用于接收所述目标资源返回的操作响应; 所述处理 器根据所述体现操作执行结果的地址获取所述操作请求对应的操作结果, 并 将所述操作请求对应的操作结果保存到操作的执行结果中。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM, RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要 求 书
1、 一种机器通信操作触发方法, 其特征在于, 业务能力中间件存储主动 资源的表述, 所述主动资源的表述包括主动资源的内容以及与所述主动资源 关联的操作资源的信息, 该方法包括:
在主动资源的内容发生变化时, 业务能力中间件获取存储于所述业务能 力中间件的主动资源的内容的变化结果;
所述业务能力中间件根据所述与所述主动资源关联的操作资源的信息获 取与所述主动资源关联的操作资源的表述, 所述操作资源的表述包含向目标 资源发送操作请求的条件和所述目标资源的通用资源标识符;
所述业务能力中间件确定所述变化结果满足所述操作资源的表述中向目 标资源发送操作请求的条件时, 构建针对所述目标资源的操作请求; 源发送所述操作请求。
2、 根据权利要求 1所述的机器通信操作触发方法, 其特征在于, 所述主动资源关联的操作资源的信息为所述与主动资源关联的操作资源 的表述, 所述业务能力中间件根据与所述主动资源关联的操作资源的信息获 取与所述主动资源关联的操作资源的表述包括: 所述业务能力中间件根据所 述主动资源的表述中包含的与所述主动资源关联的操作资源的表述获取与所 述主动资源关联的操作资源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源的通 用资源标识符, 所述业务能力中间件根据与所述主动资源关联的操作资源的 信息获取与所述主动资源关联的操作资源的表述包括: 所述业务能力中间件 根据所述主动资源的表述中包含的所述操作资源的通用资源标识符获取与所 述主动资源关联的操作资源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源归属 的操作资源集的通用资源标识符, 所述业务能力中间件根据与所述主动资源 关联的操作资源的信息获取与所述主动资源关联的操作资源的表述包括: 所 述业务能力中间件根据所述主动资源的表述中包含的所述操作资源归属的操 作资源集的通用资源标识符获取与所述主动资源关联的操作资源的表述, 其 中与所述主动资源关联操作资源的表述为所述操作资源集包含的操作资源的 表述。
3、 根据权利要求 1或 2所述的机器通信操作触发方法, 其特征在于, 所 述业务能力中间件在获取存储于所述业务能力中间件的主动资源的内容的变 化结果之前还包括:
所述业务能力中间件接收主动资源更新请求, 所述主动资源更新请求包 括新的主动资源的表述以及待更新的主动资源的通用资源标识符, 所述新的 主动资源的表述中包含所述主动资源关联的操作资源的信息, 所述业务能力 中间件根据所述待更新的主动资源的通用资源标识符更新存储的主动资源的 表述为所述新的主动资源的表述; 或,
所述业务能力中间件接收操作资源创建请求, 所述操作资源创建请求包 括与所述主动资源关联的操作资源的表述和与所述主动资源关联的操作资源 归属的操作资源集的通用资源标识符, 所述业务能力中间件根据所述操作资 源归属的操作资源集的通用资源标识符在所述操作资源集中添加所述操作资 源的表述。
4、 根据权利要求 1-3任一所述的机器通信操作触发方法, 其特征在于, 所述操作资源的表述中还包括操作请求的种类和操作请求的输入参数, 所述 操作请求的种类为创建或更新;
在所述输入参数为参数资源的通用资源标识符时, 所述构建针对所述目 标资源的操作请求包括:
所述业务能力中间件从所述参数资源的通用资源标识符所指向的参数资 源中获取新的目标资源的表述, 构建包括所述目标资源的通用资源标识符和 所述新的目标资源的表述的针对操作资源的表述中的目标资源的操作请求; 或,
在所述输入参数为所述新的目标资源的表述时, 构建包括所述目标资源 的通用资源标识符和所述新的目标资源的表述的针对操作资源的表述中的目 标资源的操作请求。
5、 根据权利要求 1-4任一所述的机器通信操作触发方法, 其特征在于, 所述业务能力中间件在获取存储于所述业务能力中间件的主动资源的内容的 变化结果之前还包括:
所述业务能力中间件接收操作资源更新请求, 所述操作资源更新请求包 括新的操作资源的表述, 所述新的操作资源的表述包含依赖资源的表述或所 述依赖资源的通用资源标识符, 所述业务能力中间件更新存储的操作资源的 表述为所述新的操作资源的表述; 或,
所述业务能力中间件接收依赖资源创建请求, 所述依赖资源创建请求包 括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用资源标识 符, 所述业务能力中间件根据所述依赖资源归属的依赖资源集的通用资源标 识符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的 通用资源标识符添加在所述操作资源的表述中。
6、 根据权利要求 5所述的机器通信操作触发方法, 其特征在于, 所述业 务能力中间件构建针对所述目标资源的操作请求之前包括:
所述业务能力中间件根据操作资源的表述获取与所述操作资源相关联的 依赖资源的表述;
所述业务能力中间件获取所述依赖资源的表述中的通用资源标识符所指 向的条件资源的表述;
所述业务能力中间件根据所述条件资源的表述确认满足所述依赖资源的 表述中的条件。
7、 根据权利要求 6所述的机器通信操作触发方法, 其特征在于, 所述依 赖资源类型分为充分条件类型和必要条件类型, 所述依赖资源的数目为至少 一个, 所述业务能力中间件构建针对操作资源的表述中的目标资源的操作请 求之前, 该方法进一步包括: :
确定至少一个充分条件类型的依赖资源规定的条件满足; 或,
确定所有必要条件类型的依赖资源规定的条件满足。
8、 根据权利要求 6所述的机器通信操作触发方法, 其特征在于, 所述业 务能力中间件根据操作资源的表述获取与所述操作资源相关联的依赖资源的 表述包括:
所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资源的 表述获取与所述操作资源关联的依赖资源的表述; 或,
所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资源的 通用资源标识符获取与所述操作资源关联的依赖资源的表述; 或,
所述业务能力中间件根据所述操作资源的表述中包含的所述依赖资源归 属的依赖资源集的通用资源标识符获取与所述操作资源关联的依赖资源的表 依赖资源的表述。
9、 根据权利要求 1-8任一所述的机器通信操作触发方法, 其特征在于, 该方法进一步包括:
确定与所述主动资源关联的操作资源为至少两个, 所述操作资源的表述 中还包括优先级, 所述业务能力中间件构建针对操作资源的表述中的目标资 源的操作请求包括:
所述业务能力中间件根据所述操作资源的表述中的优先级, 依次构建针 对每一个操作资源表述的目标资源的操作请求。
10、 根据权利要求 1-9任一所述的机器通信操作触发方法, 其特征在于, 所述操作资源的表述中还包括操作的执行结果, 所述方法还包括:
所述业务能力中间件接收所述目标资源返回的操作响应, 将所述操作响 应保存到所述操作资源的表述中操作的执行结果中;
或, 所述操作资源的表述中还包括体现操作执行结果的地址和操作的执 行结果, 所述方法还包括:
所述业务能力中间件接收所述目标资源返回的操作响应, 根据所述体现 操作执行结果的地址获取所述操作请求对应的操作结果, 并将所述操作请求 对应的操作结果保存到操作的执行结果中。
1 1、 一种机器通信操作触发装置, 其特征在于, 该装置存储主动资源的 表述, 所述主动资源的表述包括主动资源的内容以及与所述主动资源关联的 操作资源的信息, 该装置包括获取模块、 构建模块和发送模块:
所述获取模块, 用于在所述主动资源的内容发生变化时, 获取存储的主 动资源的内容的变化结果, 以及根据与所述主动资源关联的操作资源的信息 获取与所述主动资源关联的操作资源的表述, 所述操作资源的表述包含向目 标资源发送操作请求的条件和所述目标资源的通用资源标识符; 所述获取模 块还用于将所述变化结果以及所述操作资源的表述发送给所述构建模块; 构建模块, 用于接收所述变化结果和所述与所述主动资源关联的操作资 源的表述, 确定所述变化结果满足所述操作资源的表述中的向目标资源发送 操作请求的条件时, 构建针对所述目标资源的操作请求, 并将所述操作请求 发送给所述发送模块;
发送模块, 用于接收所述操作请求, 根据所述目标资源的通用资源标识 符向所述目标资源发送所述操作请求。
12、 根据权利要求 1 1所述的机器通信操作触发装置, 其特征在于, 所述主动资源关联的操作资源的信息为所述与主动资源关联的操作资源 的表述, 所述获取模块根据与所述主动资源关联的操作资源的信息获取与所 述主动资源关联的操作资源的表述具体为: 根据所述主动资源的表述中包含 的与所述主动资源关联的操作资源的表述获取与所述主动资源关联的操作资 源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源的通 用资源标识符, 所述获取模块根据与所述主动资源关联的操作资源的信息获 取与所述主动资源关联的操作资源的表述具体为: 根据所述主动资源的表述 中包含的所述操作资源的通用资源标识符获取与所述主动资源关联的操作资 源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源归属 的操作资源集的通用资源标识符, 所述获取模块根据与所述主动资源关联的 操作资源的信息获取与所述主动资源关联的操作资源的表述具体为: 根据所 述主动资源的表述中包含的所述操作资源归属的操作资源集的通用资源标识 符获取与所述主动资源关联的操作资源的表述, 其中与所述主动资源关联操 作资源的表述为所述操作资源集包含的操作资源的表述。
13、根据权利要求 1 1或 12所述的机器通信操作触发装置, 其特征在于, 所述装置还包括接收模块;
所述接收模块, 用于, 在所述获取模块获取存储于所述装置的主动资源 的内容的变化结果之前, 接收主动资源更新请求, 所述主动资源更新请求包 括新的主动资源的表述以及待更新的主动资源的通用资源标识符, 所述新的 主动资源的表述中包含所述主动资源关联的操作资源的信息, 所述接收模块 根据所述待更新的主动资源的通用资源标识符更新存储的主动资源的表述为 所述新的主动资源的表述; 或,
所述接收模块, 用于, 在所述获取模块获取存储于所述装置的主动资源 的内容的变化结果之前, 接收操作资源创建请求, 所述操作资源创建请求包 括与所述主动资源关联的操作资源的表述和所述操作资源归属的操作资源集 的通用资源标识符, 所述接收模块根据所述操作资源归属的操作资源集的通 用资源标识符在所述操作资源集中添加所述操作资源的表述。
14、 根据权利要求 1 1-13任一所述的机器通信操作触发装置, 其特征在 于, 所述操作资源的表述中还包括操作请求的种类和操作请求的输入参数, 所述操作请求的种类为创建或更新;
在所述输入参数为参数资源的通用资源标识符时, 所述构建模块构建针 对所述目标资源的操作请求具体为: 从所述参数资源的通用资源标识符所指 向的参数资源中获取新的目标资源的表述, 构建包括所述目标资源的通用资 源标识符和所述新的目标资源的表述的针对操作资源的表述中的目标资源的 操作请求; 或,
在所述输入参数为所述新的目标资源的表述时, 所述构建模块构建针对 所述目标资源的操作请求具体为: 构建包括所述目标资源的通用资源标识符 和所述新的目标资源的表述的针对操作资源的表述中的目标资源的操作请 求。
15、 根据权利要求 1 1-14任一所述的机器通信操作触发装置, 其特征在 于,
所述接收模块, 还用于, 在所述获取模块获取存储于所述业务能力中间 件的主动资源的内容的变化结果之前, 接收操作资源更新请求, 所述操作资 源更新请求包括新的操作资源的表述, 所述新的操作资源的表述包含依赖资 源的表述或所述依赖资源的通用资源标识符, 以及用于更新存储的操作资源 的表述为所述新的操作资源的表述; 或,
所述接收模块, 还用于, 在所述获取模块获取存储于所述业务能力中间 件的主动资源的内容的变化结果之前, 接收依赖资源创建请求, 所述依赖资 源创建请求包括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通 用资源标识符, 以及用于根据所述依赖资源归属的依赖资源集的通用资源标 识符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的 通用资源标识符添加在操作资源的表述中。
16、 根据权利要求 15所述的机器通信操作触发装置, 其特征在于, 该装 置还包括确认模块, 所述获取模块还用于根据操作资源的表述获取与所述操作资源相关联的 依赖资源的表述, 以及获取所述依赖资源的表述中的通用资源标识符所指向 发送给所述确认模块;
所述确认模块, 用于接收所述条件资源的表述, 根据所述条件资源的表 述确认满足所述依赖资源的表述中的条件。
17、 根据权利要求 16所述的机器通信操作触发装置, 其特征在于, 所述 依赖资源类型分为充分条件类型和必要条件类型, 所述依赖资源的数目为至 少一个;
所述构建模块构建针对操作资源的表述中的目标资源的操作请求之前, 进一步用于确定至少一个充分条件类型的依赖资源规定的条件满足时; 或, 所述构建模块构建针对操作资源的表述中的目标资源的操作请求具之 前, 进一步用于确定: 所有必要条件类型的依赖资源规定的条件满足。
18、 根据权利要求 16所述的机器通信操作触发装置, 其特征在于, 所述 获取模块根据操作资源的表述获取与所述操作资源相关联的依赖资源的表述 具体为:
根据所述操作资源的表述中包含的所述依赖资源的表述获取与所述操作 资源关联的依赖资源的表述; 或, 与所述操作资源关联的依赖资源的表述; 或,
根据所述操作资源的表述中包含的所述依赖资源归属的依赖资源集的通 用资源标识符获取与所述操作资源关联的依赖资源的表述; 其中, 与所述操 作资源关联的依赖资源的表述为所述依赖资源集包含的依赖资源的表述。
19、 根据权利要求 11-18任一所述的机器通信操作触发装置, 其特征在 于, 与所述主动资源关联的操作资源为至少两个, 所述操作资源的表述中还 包括优先级, 所述构建模块构建针对操作资源的表述中的目标资源的操作请 求具体为: 根据所述操作资源的表述中的优先级, 依次构建针对每一个操作 资源表述的目标资源的操作请求。
20、 根据权利要求 11-19任一所述的机器通信操作触发装置, 其特征在 于, 所述操作资源的表述中还包括操作的执行结果, 所述接收模块还用于接 收所述目标资源返回的操作响应, 将所述操作响应保存到所述操作资源的表 述中操作的执行结果中; 或,
所述操作资源的表述中还包括体现操作执行结果的地址和操作的执行结 果, 所述接收模块还用于接收所述目标资源返回的操作响应;
所述获取模块, 还用于根据所述体现操作执行结果的地址获取所述操作 请求对应的操作结果, 并将所述操作请求对应的操作结果保存到操作的执行 结果中。
21、 一种机器通信操作触发装置, 其特征在于, 包括网络接口、 处理器 和存储器;
所述网络接口用于与外部设备进行通信, 所述存储器用于存储应用程序 以及存储主动资源的表述, 所述主动资源的表述包括主动资源的内容以及与 所述主动资源关联的操作资源的信息;
所述处理器用于调用存储器存储的应用程序, 在主动资源的内容发生变 化时,获取存储于存储器的主动资源的内容的变化结果, 根据与所述主动资源 关联的操作资源的信息获取与所述主动资源关联的操作资源的表述, 所述操 作资源的表述包含向目标资源发送操作请求的条件和所述目标资源的通用资 源标识符, 确定所述变化结果满足所述操作资源的表述中向目标资源发送操 作请求的条件时, 构建针对所述目标资源的操作请求; 标资源发送所述操作请求。
22、 根据权利要求 21所述的机器通信操作触发装置, 其特征在于, 所述 主动资源关联的操作资源的信息为与主动资源关联的操作资源的表述, 所述 处理器根据所述主动资源的表述获取与所述主动资源关联的操作资源的表述 具体为: 根据所述主动资源的表述中包含的所述操作资源的表述获取与所述 主动资源关联的操作资源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源的通 用资源标识符, 所述处理器根据所述主动资源的表述获取与所述主动资源关 联的操作资源的表述具体为: 根据所述主动资源的表述中包含的所述操作资 源的通用资源标识符获取与所述主动资源关联的操作资源的表述; 或,
所述主动资源关联的操作资源的信息为与主动资源关联的操作资源归属 的操作资源集的通用资源标识符, 所述处理器根据所述主动资源的表述获取 与所述主动资源关联的操作资源的表述具体为: 根据所述主动资源的表述中 包含的所述操作资源归属的操作资源集的通用资源标识符获取与所述主动资 源关联的操作资源的表述, 其中与所述主动资源关联操作资源的表述为所述 操作资源集包含的操作资源的表述。
23、根据权利要求 21或 22所述的机器通信操作触发装置, 其特征在于, 所述网络接口还用于接收主动资源更新请求, 所述主动资源更新请求包 括新的主动资源的表述以及待更新的主动资源的通用资源标识符, 所述新的 主动资源的表述中包含所述主动资源关联的操作资源的信息, 所述处理器调 用存储器存储的应用程序根据所述待更新的主动资源的通用资源标识符更新 存储的主动资源的表述为所述新的主动资源的表述; 或,
所述网络接口还用于接收操作资源创建请求, 所述操作资源创建请求包 括与所述主动资源关联的操作资源的表述和与所述主动资源关联的操作资源 归属的操作资源集的通用资源标识符, 所述处理器调用存储器存储的应用程 序, 并根据所述操作资源归属的操作资源集的通用资源标识符在所述操作资 源集中添加所述操作资源的表述。
24、 根据权利要求 21-23任一所述的机器通信操作触发装置, 其特征在 于, 所述操作资源的表述中还包括操作请求的种类和操作请求的输入参数, 所述操作请求的种类为创建或更新;
在所述输入参数为参数资源的通用资源标识符时, 所述处理器从所述参 数资源的通用资源标识符所指向的参数资源中获取新的目标资源的表述, 构 建包括所述目标资源的通用资源标识符和所述新的目标资源的表述的针对操 作资源的表述中的目标资源的操作请求; 或,
在所述输入参数为所述新的目标资源的表述时, 所述处理器构建包括所 述目标资源的通用资源标识符和所述新的目标资源的表述的针对操作资源的 表述中的目标资源的操作请求。
25、 根据权利要求 21-24任一所述的机器通信操作触发装置, 其特征在 于, 所述网络接口还用于接收操作资源更新请求, 所述操作资源更新请求包 括新的操作资源的表述, 所述新的操作资源的表述包含依赖资源的表述或所 述依赖资源的通用资源标识符; 所述处理器调用存储器存储的应用程序, 更 新存储的操作资源的表述为所述新的操作资源的表述; 或,
所述网络接口还用于接收依赖资源创建请求, 所述依赖资源创建请求包 括所述依赖资源的表述和所述依赖资源归属的依赖资源集的通用资源标识 符, 所述处理器调用存储器存储的应用程序, 并根据所述依赖资源归属的依 赖资源集的通用资源标识符在所述依赖资源集中保存所述依赖资源的表述, 且将所述依赖资源集的通用资源标识符添加在所述操作资源的表述中。
26、 根据权利要求 25所述的机器通信操作触发装置, 其特征在于, 所述 处理器还根据操作资源的表述获取与所述操作资源相关联的依赖资源的表 述,获取所述依赖资源的表述中的通用资源标识符所指向的条件资源的表述, 以及根据所述条件资源的表述确认满足所述依赖资源的表述中的条件。
27、 根据权利要求 26所述的计算机设备, 其特征在于, 所述依赖资源类 型分为充分条件类型和必要条件类型, 所述依赖资源的数目为至少一个, 所 述处理器在至少一个充分条件类型的依赖资源规定的条件满足时, 构建针对 操作资源的表述中的目标资源的操作请求; 或,
所述处理器在所有必要条件类型的依赖资源规定的条件满足时, 构建针 对操作资源的表述中的目标资源的操作请求。
28、 根据权利要求 26所述的机器通信操作触发装置, 其特征在于, 所述 处理器根据所述操作资源的表述中包含的所述依赖资源的表述获取与所述操 作资源关联的依赖资源的表述; 或, 与所述操作资源关联的依赖资源的表述; 或,
根据所述操作资源的表述中包含的所述依赖资源归属的依赖资源集的通 用资源标识符获取与所述操作资源关联的依赖资源的表述, 其中, 与所述操 作资源关联的依赖资源的表述为所述依赖资源集包含的依赖资源的表述。
29、 根据权利要求 21-28任一所述的机器通信操作触发装置, 其特征在 于, 与所述主动资源关联的操作资源为至少两个, 所述操作资源的表述中还 包括优先级, 所述处理器根据所述操作资源的表述中的优先级, 依次构建针 对每一个操作资源表述的目标资源的操作请求。
30、 根据权利要求 23-29任一所述的机器通信操作触发装置, 其特征在 于, 所述操作资源的表述中还包括操作的执行结果, 所述网络接口还用于接 收所述目标资源返回的操作响应, 所述处理器将所述操作响应保存到所述操 作资源的表述中操作的执行结果中; 或,
所述操作资源的表述中还包括体现操作执行结果的地址和操作的执行结 果, 所述网络接口还用于接收所述目标资源返回的操作响应; 所述处理器根 据所述体现操作执行结果的地址获取所述操作请求对应的操作结果, 并将所 述操作请求对应的操作结果保存到操作的执行结果中。
PCT/CN2013/071704 2013-02-20 2013-02-20 机器通信操作触发方法和装置 WO2014127512A1 (zh)

Priority Applications (13)

Application Number Priority Date Filing Date Title
EP13875708.3A EP2945340B1 (en) 2013-02-20 2013-02-20 Operation trigger method and device for machine-to-machine communications
CN201710882558.0A CN107613011A (zh) 2013-02-20 2013-02-20 机器通信操作触发方法和装置
AU2013379634A AU2013379634B2 (en) 2013-02-20 2013-02-20 Operation trigger method and device for machine-to-machine communications
EP20182309.3A EP3780677A1 (en) 2013-02-20 2013-02-20 Operation triggering method and apparatus for machine-to-machine communications
JP2015558320A JP6201243B2 (ja) 2013-02-20 2013-02-20 マシン・ツー・マシン通信のための動作トリガ方法および装置
EP19166077.8A EP3570572B1 (en) 2013-02-20 2013-02-20 Operation triggering method and apparatus for machine-to-machine communications
CN201380000052.2A CN104662858B (zh) 2013-02-20 2013-02-20 机器通信操作触发方法和装置
PCT/CN2013/071704 WO2014127512A1 (zh) 2013-02-20 2013-02-20 机器通信操作触发方法和装置
ES13875708T ES2735021T3 (es) 2013-02-20 2013-02-20 Método y dispositivo de activación de operación para comunicaciones máquina a máquina
US14/825,972 US9936029B2 (en) 2013-02-20 2015-08-13 Operation triggering method and apparatus for machine-to-machine communications
US15/910,592 US10681153B2 (en) 2013-02-20 2018-03-02 Operation triggering method and apparatus for machine-to-machine communications
US16/876,833 US11089116B2 (en) 2013-02-20 2020-05-18 Operation triggering method and apparatus for machine-to-machine communications
US17/385,685 US11563819B2 (en) 2013-02-20 2021-07-26 Operation triggering method and apparatus for machine-to-machine communications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/071704 WO2014127512A1 (zh) 2013-02-20 2013-02-20 机器通信操作触发方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/825,972 Continuation US9936029B2 (en) 2013-02-20 2015-08-13 Operation triggering method and apparatus for machine-to-machine communications

Publications (1)

Publication Number Publication Date
WO2014127512A1 true WO2014127512A1 (zh) 2014-08-28

Family

ID=51390472

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071704 WO2014127512A1 (zh) 2013-02-20 2013-02-20 机器通信操作触发方法和装置

Country Status (7)

Country Link
US (4) US9936029B2 (zh)
EP (3) EP3780677A1 (zh)
JP (1) JP6201243B2 (zh)
CN (2) CN104662858B (zh)
AU (1) AU2013379634B2 (zh)
ES (1) ES2735021T3 (zh)
WO (1) WO2014127512A1 (zh)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2756697B1 (en) * 2011-09-13 2019-04-17 Nokia Solutions and Networks Oy Authentication mechanism
JP6279718B2 (ja) 2013-09-20 2018-02-14 コンヴィーダ ワイヤレス, エルエルシー 関心に基づく拡張m2mコンテンツ管理
CN105100002B (zh) * 2014-05-05 2019-05-07 中兴通讯股份有限公司 属性的操作方法及装置
CN105528434A (zh) * 2015-12-15 2016-04-27 无锡天脉聚源传媒科技有限公司 一种资源处理方法和装置
US9860906B2 (en) * 2015-12-15 2018-01-02 At&T Intellectual Property I, L.P. Method, computer-readable storage device and apparatus for processing machine-to-machine communications
US10129852B2 (en) * 2016-06-01 2018-11-13 Lg Electronics Inc. Method for broadcasting to unspecified entity in wireless communication system and device for the same
KR102436888B1 (ko) * 2016-11-14 2022-08-26 콘비다 와이어리스, 엘엘씨 M2m iot 서비스 계층에서 유연한 과금을 가능하게 하는 방법들
KR101999314B1 (ko) * 2017-07-06 2019-07-12 한국전력공사 검침 데이터 수집 시스템, 방법, 및 이를 저장한 기록 매체
CN108092959B (zh) * 2017-12-05 2020-12-29 武汉虹信技术服务有限责任公司 一种基于配置的BACnet协议解析方法
CN108848159A (zh) * 2018-06-14 2018-11-20 电子科技大学 一种物联网设备互操作调度方法
TWI681648B (zh) * 2018-07-26 2020-01-01 宇曜智能股份有限公司 模擬物件、裝置及其管理系統
KR20200101496A (ko) * 2019-01-29 2020-08-28 삼성전자주식회사 가속 컴퓨팅 환경을 제공하는 서버 및 제어 방법

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201590145U (zh) * 2009-07-31 2010-09-22 宁波家天下智能系统有限公司 一种智能家居控制系统
WO2011001370A1 (en) * 2009-06-29 2011-01-06 Avraham Ben-David Intelligent home automation
CN102136933A (zh) * 2010-09-30 2011-07-27 华为技术有限公司 设备管理方法、中间件及机器通信平台、设备和系统
CN102185802A (zh) * 2011-04-27 2011-09-14 南京航空航天大学 一种智能家居嵌入式网关

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005130423A (ja) * 2003-09-30 2005-05-19 Sanyo Electric Co Ltd コントローラ、プログラムおよび記憶媒体
CN101730123A (zh) * 2009-12-22 2010-06-09 中兴通讯股份有限公司 M2m平台系统、汇接终端以及终端控制方法
JP5799108B2 (ja) * 2010-11-19 2015-10-21 インターデイジタル パテント ホールディングス インコーポレイテッド リソースの公表および公表取消しのためのマシン間(m2m)インタフェース手順
US9426222B2 (en) * 2011-02-11 2016-08-23 Interdigital Patent Holdings, Inc. Systems, methods and apparatus for managing machine-to-machine (M2M) entities
CN102740452B (zh) * 2011-04-02 2017-05-10 中兴通讯股份有限公司 机器类通信终端触发方法及装置
EP3425942A1 (en) * 2012-01-13 2019-01-09 Iot Holdings, Inc. Method and apparatus for supporting machine-to-machine communications
WO2014037055A1 (en) * 2012-09-10 2014-03-13 Telefonaktiebolaget L M Ericsson (Publ) Method and system for communication between machine to machine m2m service provider networks
KR101432128B1 (ko) * 2013-01-29 2014-08-21 주식회사 케이티 M2m 네트워크상에서의 리소스를 디바이스 오브젝트로 추상화하는 m2mm 플랫폼
EP2954705B1 (en) * 2013-02-07 2020-01-01 Iot Holdings, Inc. Methods and apparatuses for restful batch services
US9292832B2 (en) 2013-02-25 2016-03-22 Qualcomm Incorporated Collaborative intelligence and decision-making in an IoT device group

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011001370A1 (en) * 2009-06-29 2011-01-06 Avraham Ben-David Intelligent home automation
CN201590145U (zh) * 2009-07-31 2010-09-22 宁波家天下智能系统有限公司 一种智能家居控制系统
CN102136933A (zh) * 2010-09-30 2011-07-27 华为技术有限公司 设备管理方法、中间件及机器通信平台、设备和系统
CN102185802A (zh) * 2011-04-27 2011-09-14 南京航空航天大学 一种智能家居嵌入式网关

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2945340A4 *

Also Published As

Publication number Publication date
ES2735021T3 (es) 2019-12-13
AU2013379634A1 (en) 2015-08-27
JP2016509313A (ja) 2016-03-24
US10681153B2 (en) 2020-06-09
EP3570572B1 (en) 2020-08-05
EP3570572A1 (en) 2019-11-20
EP3780677A1 (en) 2021-02-17
CN104662858A (zh) 2015-05-27
US9936029B2 (en) 2018-04-03
US20150350348A1 (en) 2015-12-03
EP2945340A1 (en) 2015-11-18
US20210352154A1 (en) 2021-11-11
EP2945340A4 (en) 2015-11-25
US20200280611A1 (en) 2020-09-03
JP6201243B2 (ja) 2017-09-27
US11563819B2 (en) 2023-01-24
CN107613011A (zh) 2018-01-19
US11089116B2 (en) 2021-08-10
EP2945340B1 (en) 2019-05-15
US20180191842A1 (en) 2018-07-05
CN104662858B (zh) 2017-10-17
AU2013379634B2 (en) 2016-05-05

Similar Documents

Publication Publication Date Title
WO2014127512A1 (zh) 机器通信操作触发方法和装置
US11071013B2 (en) Method and system for group communication, group server, and group member device
WO2018108082A1 (zh) 物联网网关联动控制方法及物联网网关
US9998566B2 (en) Intelligent gateway with a common data format
WO2011137788A1 (zh) 设备管理方法、中间件及机器通信平台、设备和系统
US10432731B2 (en) Electronic device and method of controlling sensors connected through network
WO2015168981A1 (zh) 属性的操作方法及装置
Sai et al. Smart Home Messenger Notifications System using IoT
JP2008028477A (ja) 通信制御装置および通信制御方法
US20220103634A1 (en) Device registration mechanism
JP6320569B2 (ja) 宅内制御装置および宅内制御システム
WO2024041081A1 (zh) 数据处理方法、装置、设备及可读存储介质
JP2017050733A (ja) 機器制御装置及び機器管理システム
CN117596157A (zh) 物模型的动态构成方法
CN115720221A (zh) 基于规则的属性发现
Yan et al. Design of Smart Home System Based on Service Encapsulation and Device Abstraction

Legal Events

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

Ref document number: 13875708

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013875708

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2015558320

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2013379634

Country of ref document: AU

Date of ref document: 20130220

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: IDP00201505805

Country of ref document: ID