WO2022087796A1 - Procédé et appareil d'abonnement à un attribut de dispositif zigbee, et dispositif - Google Patents

Procédé et appareil d'abonnement à un attribut de dispositif zigbee, et dispositif Download PDF

Info

Publication number
WO2022087796A1
WO2022087796A1 PCT/CN2020/123783 CN2020123783W WO2022087796A1 WO 2022087796 A1 WO2022087796 A1 WO 2022087796A1 CN 2020123783 W CN2020123783 W CN 2020123783W WO 2022087796 A1 WO2022087796 A1 WO 2022087796A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
ocf
attribute
cluster
request
Prior art date
Application number
PCT/CN2020/123783
Other languages
English (en)
Chinese (zh)
Inventor
包永明
吕小强
张军
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2020/123783 priority Critical patent/WO2022087796A1/fr
Priority to CN202080103385.8A priority patent/CN115943616A/zh
Publication of WO2022087796A1 publication Critical patent/WO2022087796A1/fr

Links

Images

Definitions

  • the embodiments of the present application relate to the technical field of the Internet of Things, and in particular, to a method, an apparatus, and a device for subscribing properties of a Zigbee device.
  • the Internet of things (IOT) and artificial intelligence (Artificial Intelligence, AI) are increasingly integrated.
  • the Internet of Things is moving from “connection” to "intelligence”; on the other hand, artificial intelligence is moving from “cloud” to “edge”, and the two are working together to promote the Internet of Things to the Internet of Intelligences.
  • OCF Open Connectivity Foundation
  • the OCF standard supports search and communication between smart devices without being restricted by manufacturers, operating systems, chips or physical transmissions. It provides technical specifications for realizing seamless connection between various physical medium layer, transport layer and application layer devices.
  • OCF has a wide range of flexible application scenarios: First, the OCF client (Client) (such as a mobile phone application) and OCF device (Server) (such as an air conditioner) can interact.
  • Client such as a mobile phone application
  • Server such as an air conditioner
  • OCF clients can control OCF devices at the same time, for example, users can flexibly control the same device at home through smartphones, smart TVs, and smart speakers; thirdly, through bridging, OCF clients can interact with other standard devices, such as Zigbee (Zigbee), Bluetooth, etc. Finally, OCF devices can also be bridged and controlled by other standard clients.
  • Zigbee Zigbee
  • Bluetooth Bluetooth
  • Zigbee is a low-speed and short-distance transmission wireless network protocol.
  • Zigbee network has the characteristics of large capacity, low latency, low power consumption, high security and high stability.
  • Home improvement, smart office and other complex smart scenarios provide stable and secure LAN communication.
  • Embodiments of the present application provide a method, apparatus, and device for subscribing properties of a Zigbee device.
  • the technical solution is as follows:
  • a method for subscribing properties of a Zigbee device is provided, which is applied to a gateway device, and the method includes:
  • the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device, the first OCF resource and There is a mapping relationship between the first service clusters.
  • a method for subscribing properties of a Zigbee device is provided, which is applied to an OCF client, and the method includes:
  • the gateway device Send a resource subscription request to the gateway device, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, where the first OCF device is mapped by the first Zigbee device Virtual OCF device;
  • the resource subscription request is converted into a configuration report request and sent to the first Zigbee device, and the configuration report request is that the gateway device reports the cluster attribute of the first service cluster of the first Zigbee device For the configuration request, there is a mapping relationship between the first OCF resource and the first service cluster.
  • a method for subscribing properties of a Zigbee device which is applied to a first Zigbee device, and the method includes:
  • a configuration report request sent by a gateway device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device;
  • the configuration report request is converted from a resource subscription request, and the resource subscription request is a request by the OCF client to subscribe the resource attribute of the first OCF resource of the first OCF device, and the first OCF device is the
  • the virtual OCF device mapped by the first Zigbee device has a mapping relationship between the first OCF resource and the first service cluster.
  • a device for subscribing properties of a Zigbee device includes:
  • a subscription request receiving module configured to receive a resource subscription request sent by the OCF client, where the resource subscription request is a request by the OCF client to subscribe the resource attribute of the first OCF resource of the first OCF device, the first The OCF device is a virtual OCF device mapped by the first Zigbee device;
  • a configuration request sending module configured to send a configuration report request to the first Zigbee device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device, the There is a mapping relationship between the first OCF resource and the first service cluster.
  • a device for subscribing properties of a Zigbee device includes:
  • a subscription request sending module is configured to send a resource subscription request to the gateway device, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, where the first OCF device is the first OCF device.
  • a virtual OCF device mapped by a Zigbee device;
  • the resource subscription request is converted into a configuration report request and sent to the first Zigbee device, and the configuration report request is that the gateway device reports the cluster attribute of the first service cluster of the first Zigbee device For the configuration request, there is a mapping relationship between the first OCF resource and the first service cluster.
  • a device for subscribing properties of a Zigbee device includes:
  • a configuration request receiving module configured to receive a configuration report request sent by the gateway device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device;
  • the configuration report request is converted from a resource subscription request, and the resource subscription request is a request by the OCF client to subscribe the resource attribute of the first OCF resource of the first OCF device, and the first OCF device is the
  • the virtual OCF device mapped by the first Zigbee device has a mapping relationship between the first OCF resource and the first service cluster.
  • a gateway device includes a processor, a memory, and a transceiver;
  • the transceiver is configured to receive a resource subscription request sent by the OCF client, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, the first The OCF device is a virtual OCF device mapped by the first Zigbee device;
  • the transceiver is further configured to send a configuration report request to the first Zigbee device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device , there is a mapping relationship between the first OCF resource and the first service cluster.
  • a terminal is provided, the terminal is installed with an OCF client, and the terminal includes a processor, a memory, and a transceiver;
  • the transceiver is configured to send a resource subscription request to the gateway device, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, the first OCF device is the virtual OCF device mapped by the first Zigbee device;
  • the resource subscription request is converted into a configuration report request and sent to the first Zigbee device, and the configuration report request is that the gateway device reports the cluster attribute of the first service cluster of the first Zigbee device For the configuration request, there is a mapping relationship between the first OCF resource and the first service cluster.
  • a Zigbee device includes a processor, a memory, and a transceiver;
  • the transceiver configured to receive a configuration report request sent by the gateway device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device;
  • the configuration report request is converted from a resource subscription request, and the resource subscription request is a request by the OCF client to subscribe the resource attribute of the first OCF resource of the first OCF device, and the first OCF device is the
  • the virtual OCF device mapped by the first Zigbee device has a mapping relationship between the first OCF resource and the first service cluster.
  • a computer-readable storage medium where a computer program is stored in the storage medium, and the computer program is configured to be executed by a processor of a gateway device to implement the above-mentioned gateway device-side Attribute subscription method for Zigbee devices.
  • a computer-readable storage medium where a computer program is stored in the storage medium, and the computer program is used to be executed by a processor of a terminal to implement the above-mentioned OCF client side. Attribute subscription method for Zigbee devices.
  • a computer-readable storage medium where a computer program is stored in the storage medium, and the computer program is used to be executed by a processor of a Zigbee device, so as to realize the above-mentioned first Zigbee device Attribute subscription method on the Zigbee device side.
  • a chip is provided.
  • the chip includes a programmable logic circuit and/or program instructions.
  • the chip runs on a gateway device, it is used to implement the Zigbee device on the gateway device side. 's property subscription method.
  • a chip is provided.
  • the chip includes a programmable logic circuit and/or program instructions.
  • the chip runs on a terminal, it is used to implement the Zigbee device on the OCF client side. 's property subscription method.
  • a chip is provided, the chip includes a programmable logic circuit and/or program instructions, and when the chip runs on a Zigbee device, it is used to implement the above-mentioned first Zigbee device side Attribute subscription method for Zigbee devices.
  • a computer program product is provided, when the computer program product runs on the gateway device, the gateway device is made to execute the attribute subscription method of the Zigbee device on the gateway device side.
  • a computer program product when the computer program product is run on a terminal, the terminal is made to execute the above-mentioned method for subscribing properties of a Zigbee device on the OCF client side.
  • a computer program product which when the computer program product runs on a Zigbee device, enables the Zigbee device to execute the above-mentioned attribute subscription method of the Zigbee device on the first Zigbee device side.
  • the gateway device After receiving the resource subscription request sent by the OCF client, the gateway device converts the resource subscription request into a configuration report request identifiable by the Zigbee device, and then sends the configuration report request to the Zigbee device, thereby realizing the OCF client to Zigbee
  • the subscription of cluster attributes in the device enhances the interconnection function between different protocols.
  • FIG. 1 is a schematic diagram of a device model structure of a Zigbee device provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of realizing the interaction between an OCF client and a Zigbee device through a bridge platform provided by an embodiment of the present application;
  • FIG. 3 is a schematic diagram of a subscription process specified by an OCF protocol provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
  • FIG. 5 is a structural block diagram of a gateway device provided by an embodiment of the present application.
  • FIG. 6 is a flowchart of a method for subscribing properties of a Zigbee device provided by an embodiment of the present application
  • FIG. 7 is a flowchart of a method for subscribing properties of a Zigbee device provided by another embodiment of the present application.
  • FIG. 8 is a flowchart of a method for subscribing properties of a Zigbee device provided by another embodiment of the present application.
  • FIG. 9 is a flowchart of a method for subscribing properties of a Zigbee device provided by another embodiment of the present application.
  • FIG. 10 is a block diagram of a device for subscribing properties of a Zigbee device provided by an embodiment of the present application.
  • FIG. 11 is a block diagram of a device for subscribing properties of a Zigbee device provided by another embodiment of the present application.
  • FIG. 12 is a block diagram of a device for subscribing properties of a Zigbee device provided by another embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a gateway device provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a Zigbee device provided by an embodiment of the present application.
  • FIG. 1 shows a schematic diagram of a device model structure of a Zigbee device. After the Zigbee device is connected to the network, it becomes a node (Node) in the Zigbee network.
  • the node may have multiple endpoints (Endpoints), and there may be multiple service clusters (Server Cluster, referred to as "cluster") under each endpoint.
  • Server Cluster Server Cluster
  • the OCF clients can interact with Zigbee devices. Please refer to FIG. 2 , which shows the interaction between the OCF client and the Zigbee device through the bridge platform.
  • the bridge platform 110 includes the following functional modules: a virtual OCF server 112 , a bridging function 114 and a virtual Zigbee client 116 .
  • the communication between the OCF client 120 and the virtual OCF server 112 may be based on the OCF protocol
  • the communication between the virtual Zigbee client 116 and the Zigbee device 130 may be based on the Zigbee protocol.
  • the above Zigbee protocol may be the Zigbee 3.0 protocol or may also be the Zigbee protocol of another existing version or a subsequent evolution version, which is not limited in this embodiment of the present application.
  • the bridge function module 114 is used to realize the conversion between the OCF protocol and the Zigbee protocol.
  • the role of the bridging function module 114 includes converting the information based on the OCF protocol sent by the OCF client 120 into the information based on the Zigbee protocol that can be recognized by the Zigbee device 130 .
  • the role of the bridging function module 114 may further include converting the Zigbee protocol-based information sent by the Zigbee device 130 into OCF protocol-based information identifiable by the OCF client 120 .
  • the bridging function module 114 may establish a mapping relationship between the information based on the OCF protocol and the information based on the Zigbee protocol, so as to realize the conversion between the information based on the OCF protocol and the information based on the Zigbee protocol. As shown in Table 1 below, it shows the translation model between the Zigbee protocol and the OCF protocol.
  • mapping relationships between the information based on the Zigbee protocol and the information based on the OCF protocol can be obtained, as well as the mapping counts of both parties in each set of mapping relationships.
  • the three groups of mapping relationships based on Table 1 include: the mapping relationship between a node (Node) and an OCF device (OCF Device), and the mapping relationship is a 1-to-1 mapping relationship; a service cluster (Server Cluster) and an OCF resource (OCF Resource), and the mapping relationship is a 1-to-n mapping relationship; the mapping relationship between attributes (Attribute) and OCF resource attributes (OCF Resource property), and the mapping relationship is a 1-to-1 mapping relationship .
  • the translation model between the Zigbee protocol and the OCF protocol is introduced. As shown in Table 2 below:
  • the subscription (Notification) function of the OCF client to the OCF server ie, the OCF device
  • Figure 3 shows a schematic diagram of the subscription process specified by the OCF protocol, which may include the following steps:
  • the OCF client When the OCF client needs to subscribe to a resource in the OCF server, the OCF client sends a resource subscription request (RETRIEVE Request) to the OCF server.
  • the resource subscription request is used to instruct the resource attribute of the resource to subscribe. operate;
  • the OCF server caches resource subscription requests
  • the OCF server determines the resource to be subscribed based on the resource subscription request, sets the resource access policy of the resource to be subscribed, and then sends a resource subscription response (RETRIEVE Response) to the OCF client;
  • the OCF server finds that the resource attributes of the subscribed resources have changed, and the reporting conditions are met;
  • the OCF server actively sends the attribute update information of the resource to the OCF client, for example, the attribute update information may include the updated attribute value of the resource attribute.
  • the bridge platform establishes a mapping relationship between information of different protocols, so that the OCF client can access the Zigbee device.
  • the OCF client considering the subscription requirement of the OCF client to the cluster attribute of the Zigbee device, a technical solution is provided for the OCF client to subscribe to the cluster attribute of the Zigbee device.
  • FIG. 4 shows a schematic diagram of an implementation environment provided by an embodiment of the present application.
  • the implementation environment may include: a terminal 210 , a Zigbee device 220 , and a gateway device 230 .
  • the implementation environment may be an intelligent networked system.
  • the terminal 210 may include various handheld devices with wireless communication functions (such as mobile phones, tablet computers, etc.), in-vehicle devices, wearable devices, computing devices, or other processing devices connected to wireless modems, and various forms of user equipment (User Equipment). Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on.
  • User Equipment User Equipment
  • Equipment, UE mobile station
  • MS Mobile Station
  • terminal device terminal device
  • Zigbee device 220 refers to an intelligent networking device with network access capability under Zigbee networking.
  • Zigbee device 220 may be a smart home device, terminal device, or other device with network access capability, which is not limited in this embodiment of the present application .
  • the Zigbee device 220 may be smart home devices such as smart TVs, smart speakers, smart air conditioners, smart lamps, smart doors and windows, smart curtains, and smart sockets.
  • the gateway device 230 is also referred to as a network connector and a protocol converter, and is a computer system or device that provides data conversion services between multiple networks. Between two systems or devices that use different communication protocols, data formats or languages, or even have completely different architectures, the gateway device is equivalent to a translator. The gateway device can parse the received information, and repackage and send it to The destination system or destination device can meet the needs of the destination system or destination device, and the gateway device can also play the role of filtering and security.
  • the gateway device 230 is respectively connected to the terminal 210 and the Zigbee device 220, and the terminal 210 is installed and running with the OCF client 211, and the OCF client 211 can be accessed through the gateway 230.
  • Zigbee device 220 to access For example, the user sends an access request to the gateway device 230 by operating the OCF client 211 running on the terminal 210.
  • the access request is information based on the OCF protocol.
  • the gateway device 230 converts the access request.
  • the access request is based on the Zigbee protocol information, and then the gateway device 230 sends the converted access request to the Zigbee device 220, thereby completing the access process of the OCF client 211 to the Zigbee device 220.
  • the "access" of the OCF client to the Zigbee device includes two methods: “acquisition” and “setting”.
  • “Acquisition” means that the OCF client knows the status of the Zigbee device, etc.
  • "Setting” means that the OCF client selects, sets, and updates the status of the Zigbee device.
  • the "access" of the OCF client to the Zigbee device may also be referred to as the "operation" of the OCF client to the Zigbee device, but those skilled in the art can understand the meaning.
  • FIG. 5 shows a structural block diagram of a gateway device provided by an embodiment of the present application.
  • the gateway device 300 includes a virtual OCF server 310 , a bridging function module 320 and a virtual Zigbee client 330 .
  • the virtual OCF server 310 is a functional module in the gateway device 300 for interacting with the OCF client 301 , and the virtual OCF server 310 and the OCF client 301 interact based on the OCF protocol.
  • the virtual Zigbee client 330 is a functional module in the gateway device 300 for interacting with the Zigbee device 302 , and the virtual Zigbee client 330 and the Zigbee device 302 interact based on the Zigbee protocol.
  • the Zigbee device 302 can serve as a Zigbee server and receive an access request from the virtual Zigbee client 330 .
  • the bridging functional module 320 is a functional module in the gateway device 300 used to realize the conversion between two different protocol information, that is, the bridging functional module 320 is used to convert the information based on the OCF protocol into the information based on the Zigbee protocol, or is used to convert the information based on the OCF protocol into the information based on the Zigbee protocol.
  • the information based on the Zigbee protocol is converted into the information based on the OCF protocol.
  • the OCF client 301 when the OCF client 301 initiates an access request to the Zigbee device 302, the OCF client 301 first sends a first access request to the gateway device 300, where the first access request is information based on the OCF protocol, and then the gateway The virtual OCF server 310 in the device 300 receives the first access request, and the bridging function module 320 converts the first access request into a second access request.
  • the second access request is based on the information of the Zigbee protocol, and then the gateway device 300
  • the virtual Zigbee client 330 in the device sends a second access request to the Zigbee device 302 to complete the access of the OCF client 301 to the Zigbee device 302 .
  • the gateway device 300 may also be called a bridge platform, which is used to implement the interaction function between the OCF client 301 and the Zigbee device 302 .
  • FIG. 6 shows a flowchart of a method for subscribing properties of a Zigbee device provided by an embodiment of the present application, and the method can be applied to the implementation environment shown in FIG. 4 .
  • the method may include the following steps (610-620):
  • Step 610 the OCF client sends a resource subscription request to the gateway device, the resource subscription request is a request by the OCF client to subscribe the resource attributes of the first OCF resource of the first OCF device, and the first OCF device is the first Zigbee device mapping virtual OCF device.
  • the resource subscription request includes: a resource address of the first OCF resource and subscription operation indication information.
  • the resource address of the first OCF resource is used to identify the first OCF resource, for example, the resource address may be a URL (Uniform Resource Locator, uniform resource locator).
  • the subscription operation indication information is used to instruct to perform a subscription operation on the resource attribute of the first OCF resource.
  • the OCF resource may be uniquely determined by the resource address (eg URL) of the OCF resource, and each OCF resource may contain one or more resource types.
  • the resource types thereof may include switch resources, brightness resources, color temperature resources, hue and saturation resources, etc., which are not limited in this embodiment of the present application.
  • Step 620 the gateway device sends a configuration report request to the first Zigbee device, where the configuration report request is a request for the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device, the first OCF resource and the first service cluster There is a mapping relationship between them.
  • the gateway device After receiving the resource subscription request, the gateway device parses the resource subscription request, and obtains the resource address of the first OCF resource and the subscription operation indication information, which knows that the OCF client wants to perform a subscription operation on the first OCF resource. Then, the gateway device maps the resource address of the first OCF resource to the identification information of the cluster attribute of the first service cluster, and generates and sends a configuration report request to the first Zigbee device, where the configuration report request includes the cluster of the first service cluster Identification information for the property.
  • the identification information of the cluster attribute of the first service cluster is used to identify the cluster attribute of the first service cluster.
  • the identification information of the cluster attribute of the first service cluster may include the ID and cluster of the first service cluster. The ID of the property.
  • the gateway device converts the resource subscription request to generate a configuration report request, thereby requesting the first Zigbee device to report to the gateway device when the cluster attribute of the first service cluster satisfies the reporting condition, so as to achieve the first Zigbee device.
  • the subscription purpose of the cluster properties of the service cluster is a mapping relationship between the first OCF resource and the first service cluster.
  • step 620 further includes the following steps (630-650):
  • Step 630 The first Zigbee device sends cluster attribute update information to the gateway device, where the cluster attribute update information includes the updated attribute value of the cluster attribute of the first service cluster.
  • the gateway device After the gateway device successfully subscribes to the cluster attribute of the first service cluster, if the cluster attribute of the first service cluster is updated, the first Zigbee device will actively send the cluster attribute update information to the gateway device if the reporting conditions are met.
  • the cluster attribute update information includes identification information and an updated attribute value of the cluster attribute of the first service cluster.
  • Step 640 The gateway device generates resource attribute update information based on the updated attribute value of the cluster attribute of the first service cluster, where the resource attribute update information includes the updated attribute value of the resource attribute of the first OCF resource.
  • the gateway device After receiving the cluster attribute update information, the gateway device parses the cluster attribute update information, and obtains the identification information and the updated attribute value of the cluster attribute of the first service cluster. Then, the gateway device maps the identification information of the cluster attribute of the first service cluster to the resource address of the first OCF resource, and determines the resource attribute of the first OCF resource according to the updated attribute value of the cluster attribute of the first service cluster. The updated property value. The gateway device generates resource attribute update information, where the resource attribute update information may include the resource address of the first OCF resource and the updated attribute value of the resource attribute of the first OCF resource.
  • Step 650 the gateway device sends the resource attribute update information to the OCF client.
  • the OCF client parses the resource attribute update information to obtain the updated attribute value of the resource attribute of the first OCF resource.
  • the gateway device may perform the following steps after establishing a connection with the first Zigbee device:
  • the gateway device determines that under the first service cluster of the first Zigbee device, there is a cluster attribute with reportable capability
  • the first Zigbee device may include one or more service clusters, and the first service cluster may be any service cluster of the first Zigbee device.
  • the first service cluster may include one or more cluster attributes. Among them, some cluster attributes are reportable, and some cluster attributes are not reportable.
  • the so-called reportable cluster attribute means that when the attribute value of the cluster attribute is updated, it can be actively reported to the subscriber, thereby realizing the update reporting function of the cluster attribute.
  • the gateway device generates an OCF resource address corresponding to the reportable cluster attribute
  • the gateway device can establish a mapping relationship between cluster attributes and OCF resources, and generate corresponding OCF resource addresses according to the identification information of the cluster attributes. For example, the gateway device establishes a mapping relationship between the cluster attribute of the first service cluster and the first OCF resource, and generates the resource address of the first OCF resource according to the identification information of the cluster attribute of the first service cluster.
  • the gateway device creates the OCF resource based on the OCF resource address, and sets the resource access policy of the OCF resource to be subscribed.
  • the resource subscription request can be successfully responded to.
  • the first Zigbee device contains an endpoint whose ID is 1, which is recorded as Endpoint 1.
  • the Endpoint 1 contains a service cluster with an ID of 6, denoted as Cluster 6.
  • the Cluster 6 includes two cluster attributes with reportable capabilities (assumed to be called the first cluster attribute and the second cluster attribute), and the IDs of these two cluster attributes are 9 and 10, respectively, denoted as Attribute 9 and Attribute 10.
  • the identification information of the first cluster attribute can be expressed as Endpoint 1 Cluster 6 Attribute 9
  • the identification information of the second cluster attribute can be expressed as Endpoint 1 Cluster 6 Attribute 10.
  • the resource address of the first OCF resource can be expressed as /ep/1/cluster/6/attr/9
  • the second OCF resource The resource address of a resource can be represented as /ep/1/cluster/6/attr/10.
  • the first Zigbee device contains an endpoint whose ID is 1, which is recorded as Endpoint 1.
  • the Endpoint 1 contains a service cluster with an ID of 6, denoted as Cluster 6.
  • the Cluster 6 includes two cluster attributes with reportable capabilities (assumed to be called the first cluster attribute and the second cluster attribute), and the IDs of these two cluster attributes are 9 and 10, respectively, denoted as Attribute 9 and Attribute 10.
  • the identification information of the first cluster attribute can be expressed as Endpoint 1 Cluster 6 Attribute 9
  • the identification information of the second cluster attribute can be expressed as Endpoint 1 Cluster 6 Attribute 10.
  • the resource address of the first OCF resource may be represented as /ep/1/cluster/6/a/9/a/10.
  • the resource subscription request after receiving the resource subscription request sent by the OCF client through the gateway device, the resource subscription request is converted into a configuration report request identifiable by the Zigbee device, and then sent to the Zigbee device.
  • the configuration report request By sending the configuration report request, the OCF client subscribes to the cluster attributes in the Zigbee device, and the interconnection function between different protocols is enhanced.
  • this application provides two mapping relationships between OCF resource addresses and cluster attributes.
  • the first one is a one-to-one mapping relationship.
  • one cluster attribute corresponds to one OCF resource address.
  • an OCF client needs to subscribe to a certain cluster attribute, it only needs to send a resource subscription request to the OCF resource address corresponding to the cluster attribute, so that it can more flexibly select the cluster attribute to be subscribed to; the other is a pair of There are multiple mapping relationships.
  • multiple cluster attributes correspond to one OCF resource address.
  • FIG. 8 shows a flowchart of a method for subscribing properties of a Zigbee device provided by another embodiment of the present application, and the method can be applied to the implementation environment shown in FIG. 4 .
  • the method may include the following steps (801-823):
  • Step 801 the virtual Zigbee client discovers the first Zigbee device.
  • Step 802 the virtual Zigbee client establishes a connection with the first Zigbee device.
  • Step 803 the virtual Zigbee client sends a mapping relationship establishment request to the bridging function module, and the mapping relationship establishment request is used to request the establishment of a mapping relationship between the first Zigbee device and the first OCF device, and the first OCF device is the first Zigbee device.
  • Device-mapped virtual OCF device
  • Step 804 the bridging function module sets the mapping relationship between the OCF resource and the service cluster of the first Zigbee device.
  • the bridging function module determines a cluster attribute with reportable capability under the first service cluster of the first Zigbee device, and generates an OCF resource address corresponding to the cluster attribute with reportable capability.
  • Attribute 9 (denoted as the first cluster attribute) and Attribute 10 (denoted as the second cluster attribute).
  • the resource address of the first OCF resource can be expressed as /ep/1/cluster/6/attr/9
  • the second OCF resource The resource address of a resource can be represented as /ep/1/cluster/6/attr/10.
  • "attr/9” and “attr/10” indicate that the attributes with id values of 9 and 10 under the Cluster can be reported, and can be reported and set.
  • "/ep/1/cluster/6” indicates the cluster information of the first Zigbee device whose endpoint is 1 and whose lower id value is 6.
  • the bridging function module can also set the resource access policy of the OCF resources corresponding to the resource addresses /ep/1/cluster/6/attr/9 and /ep/1/cluster/6/attr/10 to be subscribed.
  • Step 805 the bridging function module sends a virtual OCF device creation request to the virtual OCF server, where the virtual OCF device creation request is used to request to create a virtual OCF device (ie, the first OCF device) mapped with the first Zigbee device.
  • Step 806 the virtual OCF server creates a first OCF device, and creates an OCF resource based on the OCF resource address.
  • the virtual OCF server creates an OCF resource based on the OCF resource address. For example, for the above two subscribed first OCF resources and second OCF resources, the virtual OCF server creates corresponding OCF resources based on the resource addresses of the two OCF resources.
  • Step 807 the OCF client sends a device resource acquisition request to the virtual OCF server, where the device resource acquisition request is used to request to acquire the relevant information of the OCF resource created by the virtual OCF server.
  • obtain information such as resource addresses and resource access policies of each OCF resource created by the virtual OCF server.
  • Step 808 the virtual OCF server sends the relevant information of the OCF resource to the OCF client.
  • Step 809 the OCF client determines OCF resources that can be subscribed based on the resource access policy of the OCF resource, and then sends a resource subscription request to the virtual OCF server, where the resource subscription request includes the resource address of the first OCF resource to be subscribed to.
  • the OCF client knows that these two resources can be subscribed according to the resource access policies of the first OCF resource and the second OCF resource. If the OCF client wants to subscribe to the first OCF resource, it sends a message to the virtual OCF server.
  • a resource subscription request carrying the resource address /ep/1/cluster/6/attr/9 of the first OCF resource.
  • the resource subscription request may further include subscription operation indication information, which is used to indicate that the operation to be performed on the first OCF resource is a subscription operation.
  • Step 810 the virtual OCF server sends a resource address resolution request to the bridging function module, the resource address resolution request is used to request to resolve the resource address, and the resource address resolution request includes the resource address to be resolved (that is, the above-mentioned first OCF resource). resource address), and can carry subscription operation indication information.
  • Step 811 the bridging function module determines the identification information of the cluster attribute corresponding to the resource address to be resolved, and then determines that a subscription operation needs to be performed on the cluster attribute according to the subscription operation indication information.
  • the resource address resolution request includes the resource address /ep/1/cluster/6/attr/9 of the first OCF resource and subscription operation indication information. Accordingly, the bridging function module determines that it is necessary to subscribe to the cluster attribute with the id value of 9 (referred to as the first cluster attribute) under the Cluster 6 of the first Zigbee device Endpoint 1.
  • Step 812 the bridging function module sends a configuration report execution request to the virtual Zigbee client, where the configuration report execution request is used to request the virtual Zigbee client to send a configuration report request to the first Zigbee device.
  • the configuration report execution request includes the identification information of the first cluster attribute and the subscription operation indication information.
  • Step 813 The virtual Zigbee client sends a configuration report request to the first Zigbee device, where the configuration report request is used for requesting to report and configure the above-mentioned first cluster attribute of the first Zigbee device.
  • Step 814 The first Zigbee device sends a configuration result to the virtual Zigbee client, where the configuration result is used to indicate whether the reporting configuration of the first cluster attribute is successfully completed.
  • Step 815 the virtual Zigbee client sends the configuration result to the bridging function module.
  • Step 816 the bridging function module sends the configuration result to the virtual OCF server.
  • Step 817 if the configuration result indicates that the reporting configuration of the first cluster attribute is successfully completed, it means that the subscription to the first OCF resource is successful, and the virtual OCF server stores the configuration result.
  • Step 818 the virtual OCF server sends a resource subscription response to the OCF client.
  • Step 819 In the case where the attribute value of the first cluster attribute of the first Zigbee device is updated, if the reporting conditions are met, the first Zigbee device sends the cluster attribute update information to the virtual Zigbee client, and the cluster attribute update information may The identification information of the first cluster attribute and the updated attribute value are included.
  • Step 820 the virtual Zigbee client sends the cluster attribute update information to the bridging function module.
  • Step 821 the bridging function module finds the resource address of the corresponding first OCF resource from the mapping relationship according to the identification information of the first cluster attribute, and then sends the resource attribute update information to the virtual OCF server, where the resource attribute update information includes the first OCF resource.
  • Step 822 the virtual OCF server updates the resource attribute of the first OCF resource.
  • Step 823 the virtual OCF server sends the resource attribute update information to the OCF client.
  • FIG. 9 shows a flowchart of a method for subscribing properties of a Zigbee device provided by another embodiment of the present application, and the method can be applied to the implementation environment shown in FIG. 4 .
  • the method may include the following steps (901-936):
  • Step 901 the virtual Zigbee client discovers the first Zigbee device.
  • Step 902 the virtual Zigbee client establishes a connection with the first Zigbee device.
  • Step 903 the virtual Zigbee client sends a mapping relationship establishment request to the bridging function module, where the mapping relationship establishment request is used to request the establishment of a mapping relationship between the first Zigbee device and the first OCF device, where the first OCF device is the first Zigbee device Device-mapped virtual OCF device.
  • Step 904 the bridging function module sets the mapping relationship between the OCF resource and the service cluster of the first Zigbee device.
  • the bridging function module determines a cluster attribute with reportable capability under the first service cluster of the first Zigbee device, and generates an OCF resource address corresponding to the cluster attribute with reportable capability.
  • Attribute9 (denoted as the first cluster attribute) and Attribute 10 (denoted as the second cluster attribute).
  • the resource address of the first OCF resource can be expressed as /ep/1/cluster/6/a/9/a/ 10.
  • "a/9/a/10" indicates that the attributes with id values of 9 and 10 under the Cluster can be reported, and can be reported and set.
  • /ep/1/cluster/6 indicates the cluster information of the first Zigbee device whose endpoint is 1 and whose lower id value is 6.
  • the bridging function module can also set the resource access policy of the OCF resource corresponding to the resource address /ep/1/cluster/6/a/9/a/10 to be subscribed.
  • Step 905 the bridging function module sends a virtual OCF device creation request to the virtual OCF server, where the virtual OCF device creation request is used to request to create a virtual OCF device (ie, the first OCF device) mapped with the first Zigbee device.
  • Step 906 the virtual OCF server creates a first OCF device, and creates an OCF resource based on the OCF resource address.
  • the virtual OCF server creates an OCF resource based on the OCF resource address. For example, for the above-mentioned first OCF resource that can be subscribed, the virtual OCF server creates a corresponding OCF resource based on the resource address of the OCF resource.
  • Step 907 The OCF client sends a device resource acquisition request to the virtual OCF server, where the device resource acquisition request is used to request to acquire related information of the OCF resource created by the virtual OCF server.
  • obtain information such as resource addresses and resource access policies of each OCF resource created by the virtual OCF server.
  • Step 908 the virtual OCF server sends the related information of the OCF resource to the OCF client.
  • Step 909 the OCF client determines the OCF resource that can be subscribed based on the resource access policy of the OCF resource, and then sends a resource subscription request to the virtual OCF server, where the resource subscription request includes the resource address of the first OCF resource to be subscribed to.
  • the OCF client knows that the resource can be subscribed according to the resource access policy of the first OCF resource. If the OCF client wants to subscribe to the first OCF resource, it sends a message carrying the first OCF resource to the virtual OCF server.
  • the resource subscription request may further include subscription operation indication information, which is used to indicate that the operation to be performed on the first OCF resource is a subscription operation.
  • Step 910 the virtual OCF server sends a resource address resolution request to the bridging function module, the resource address resolution request is used to request to resolve the resource address, and the resource address resolution request includes the resource address to be resolved (that is, the above-mentioned first OCF resource). resource address), and can carry subscription operation indication information.
  • Step 911 the bridging function module determines the identification information of the cluster attribute corresponding to the resource address to be resolved, and then determines that a subscription operation needs to be performed on the cluster attribute according to the subscription operation indication information.
  • the resource address resolution request includes the resource address /ep/1/cluster/6/a/9/a/10 of the first OCF resource and subscription operation indication information. Accordingly, the bridging function module determines that it is necessary to subscribe to two cluster attributes with id values of 9 and 10 (referred to as the first cluster attribute and the second cluster attribute) under the Cluster 6 of the first Zigbee device Endpoint 1.
  • Step 912 the bridging function module sends a first configuration report execution request to the virtual Zigbee client, where the first configuration report execution request is used to request the virtual Zigbee client to send the first configuration report request to the first Zigbee device.
  • Step 913 The virtual Zigbee client sends a first configuration report request to the first Zigbee device, where the first configuration report request is used to request to report and configure the first cluster attribute of the first Zigbee device.
  • Step 914 the bridging function module sends a second configuration report execution request to the virtual Zigbee client, where the second configuration report execution request is used to request the virtual Zigbee client to send the second configuration report request to the first Zigbee device.
  • Step 915 the virtual Zigbee client sends a second configuration report request to the first Zigbee device, where the second configuration report request is used to request to report and configure the second cluster attribute of the first Zigbee device.
  • a configuration report execution request is sent, and the configuration report execution request includes the above-mentioned first cluster attribute. Identification information, identification information of the second cluster attribute, and subscription operation indication information.
  • two configuration report execution requests are sent, wherein one configuration report execution request includes the identification information of the first cluster attribute and the subscription operation indication information, and the other configuration report execution request includes the above second cluster attribute. Identification information and subscription operation instructions.
  • Step 916 The first Zigbee device sends a first configuration result to the virtual Zigbee client, where the first configuration result is used to indicate whether the reporting configuration of the first cluster attribute is successfully completed.
  • Step 917 the virtual Zigbee client sends the first configuration result to the bridging function module.
  • Step 918 the bridging function module sends the first configuration result to the virtual OCF server.
  • Step 919 if the first configuration result indicates that the reporting configuration of the first cluster attribute is successfully completed, it means that the subscription to the resource attribute corresponding to the first cluster attribute under the first OCF resource is successful, and the virtual OCF server stores the first configuration. result.
  • Step 920 The first Zigbee device sends a second configuration result to the virtual Zigbee client, where the second configuration result is used to indicate whether the reporting configuration of the second cluster attribute is successfully completed.
  • Step 921 the virtual Zigbee client sends the second configuration result to the bridging function module.
  • Step 922 the bridging function module sends the second configuration result to the virtual OCF server.
  • Step 923 if the second configuration result indicates that the reporting configuration of the above-mentioned second cluster attribute is successfully completed, it means that the subscription of the resource attribute corresponding to the second cluster attribute under the first OCF resource is successful, and the virtual OCF server stores the second configuration. result.
  • Step 924 the virtual OCF server sends a resource subscription success response to the OCF client.
  • Step 925 if the subscription to the first OCF resource fails, cancel the subscription operation of each cluster attribute under the first OCF resource.
  • the OCF resource to be subscribed corresponds to multiple cluster attributes
  • the OCF resource corresponding to multiple cluster attributes is subscribed successfully, the OCF resource is considered to be subscribed successfully, otherwise , if at least one of the cluster attributes corresponding to the OCF resource fails to subscribe to a cluster attribute, the OCF resource is considered to have failed to subscribe.
  • the subscription of the OCF resource corresponding to at least one cluster attribute of the plurality of cluster attributes is successful, the subscription of the OCF resource is considered to be successful; otherwise, if the subscription of the OCF resource corresponding to the plurality of cluster attributes fails, then The OCF resource subscription is considered to have failed.
  • Step 926 the virtual OCF server sends a resource subscription failure response to the OCF client.
  • Step 927 In the case where the attribute value of the first cluster attribute of the first Zigbee device is updated, if the reporting conditions are met, the first Zigbee device sends the first cluster attribute update information to the virtual Zigbee client, the first cluster attribute
  • the update information may include the identification information of the first cluster attribute and the updated attribute value.
  • Step 928 the virtual Zigbee client sends the first cluster attribute update information to the bridging function module.
  • Step 929 the bridging function module finds the resource address of the corresponding first OCF resource from the mapping relationship according to the identification information of the first cluster attribute, and then sends the first resource attribute update information to the virtual OCF server, the first resource attribute update information It includes the resource address of the first OCF resource and the updated attribute value of its resource attribute.
  • Step 930 the virtual OCF server updates the resource attributes corresponding to the first cluster attributes under the first OCF resource.
  • Step 931 the virtual OCF server sends the first resource attribute update information to the OCF client.
  • Step 932 when the attribute value of the second cluster attribute of the first Zigbee device is updated, if the reporting condition is satisfied, the first Zigbee device sends the second cluster attribute update information to the virtual Zigbee client, the second cluster attribute
  • the update information may include the identification information of the second cluster attribute and the updated attribute value.
  • Step 933 the virtual Zigbee client sends the second cluster attribute update information to the bridging function module.
  • Step 934 the bridging function module finds the resource address of the corresponding first OCF resource from the mapping relationship according to the identification information of the second cluster attribute, and then sends the second resource attribute update information to the virtual OCF server, the second resource attribute update information It includes the resource address of the first OCF resource and the updated attribute value of its resource attribute.
  • Step 935 the virtual OCF server updates the resource attribute corresponding to the second cluster attribute under the first OCF resource.
  • Step 936 the virtual OCF server sends the second resource attribute update information to the OCF client.
  • FIG. 10 shows a block diagram of an apparatus for subscribing properties of a Zigbee device provided by an embodiment of the present application.
  • the apparatus has the function of implementing the above-mentioned method example on the gateway device side, and the function may be implemented by hardware or by executing corresponding software in hardware.
  • the device may be the gateway device described above, or may be set in the gateway device.
  • the apparatus 1000 may include: a subscription request receiving module 1010 and a configuration request sending module 1020 .
  • a subscription request receiving module 1010 is configured to receive a resource subscription request sent by the OCF client, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, the An OCF device is the virtual OCF device mapped by the first Zigbee device.
  • a configuration request sending module 1020 is configured to send a configuration report request to the first Zigbee device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device, so There is a mapping relationship between the first OCF resource and the first service cluster.
  • the resource subscription request includes:
  • the subscription operation indication information is used to instruct to perform a subscription operation on the resource attribute of the first OCF resource.
  • the apparatus 1000 further includes: a subscription request parsing module and a resource address mapping module (not shown in FIG. 10 ).
  • a subscription request parsing module configured to parse the resource subscription request to obtain the resource address of the first OCF resource and the subscription operation indication information.
  • a resource address mapping module configured to map the resource address of the first OCF resource to the identification information of the cluster attribute of the first service cluster.
  • the configuration report request includes identification information of the cluster attribute of the first service cluster.
  • the apparatus 1000 further includes: a cluster attribute determination module, a resource address generation module and an access policy setting module (not shown in FIG. 10 ).
  • the cluster attribute determination module is configured to determine the cluster attribute with reportable capability under the first service cluster of the first Zigbee device.
  • a resource address generation module configured to generate an OCF resource address corresponding to the reportable cluster attribute.
  • An access policy setting module configured to create an OCF resource based on the OCF resource address, and set a resource access policy of the OCF resource to be subscribed.
  • the same OCF resource address is mapped to multiple cluster attributes belonging to the same service cluster.
  • the apparatus 1000 further includes: an update information receiving module, an update information generating module and an update information sending module (not shown in FIG. 10 ).
  • the update information receiving module is configured to receive the cluster attribute update information sent by the first Zigbee device, where the cluster attribute update information includes the updated attribute value of the cluster attribute of the first service cluster.
  • an update information generation module configured to generate resource attribute update information based on the updated attribute value of the cluster attribute of the first service cluster, where the resource attribute update information includes the updated attribute of the resource attribute of the first OCF resource value.
  • An update information sending module configured to send the resource attribute update information to the OCF client.
  • FIG. 11 shows a block diagram of an apparatus for subscribing properties of a Zigbee device provided by another embodiment of the present application.
  • the apparatus has the function of implementing the above-mentioned method example on the OCF client side, and the function may be implemented by hardware or by executing corresponding software in hardware.
  • the device may be the terminal described above, or may be set in the terminal.
  • the apparatus 1100 may include: a subscription request sending module 1110.
  • a subscription request sending module 1110 is configured to send a resource subscription request to the gateway device, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, where the first OCF device is The virtual OCF device mapped by the first Zigbee device.
  • the resource subscription request is converted into a configuration report request and sent to the first Zigbee device, and the configuration report request is that the gateway device reports the cluster attribute of the first service cluster of the first Zigbee device For the configuration request, there is a mapping relationship between the first OCF resource and the first service cluster.
  • the resource subscription request includes:
  • the subscription operation indication information is used to instruct to perform a subscription operation on the resource attribute of the first OCF resource.
  • the configuration report request includes identification information of the cluster attribute of the first service cluster
  • the apparatus 1100 further includes: an update information receiving module and a resource attribute updating module (not shown in FIG. 11 ).
  • an update information receiving module configured to receive resource attribute update information sent by the gateway device, where the resource attribute update information includes the updated attribute value of the resource attribute of the first OCF resource; wherein the first OCF resource The updated attribute value of the resource attribute is determined based on the updated attribute value of the cluster attribute of the first service cluster.
  • a resource attribute updating module configured to update the attribute value of the resource attribute of the first OCF resource based on the updated attribute value of the resource attribute of the first OCF resource.
  • FIG. 12 shows a block diagram of an apparatus for subscribing properties of a Zigbee device provided by another embodiment of the present application.
  • the apparatus has the function of implementing the above-mentioned first Zigbee device-side method example, and the function may be implemented by hardware or by executing corresponding software in hardware.
  • the device may be the Zigbee device described above, or may be set in the Zigbee device.
  • the apparatus 1200 may include: a configuration request receiving module 1210 .
  • the configuration request receiving module 1210 is configured to receive a configuration report request sent by the gateway device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device.
  • the configuration report request is converted from a resource subscription request, and the resource subscription request is a request by the OCF client to subscribe the resource attribute of the first OCF resource of the first OCF device, and the first OCF device is the
  • the virtual OCF device mapped by the first Zigbee device has a mapping relationship between the first OCF resource and the first service cluster.
  • the resource subscription request includes:
  • the subscription operation indication information is used to instruct to perform a subscription operation on the resource attribute of the first OCF resource.
  • the configuration report request includes identification information of the cluster attribute of the first service cluster
  • the apparatus further includes: an update information sending module (not shown in FIG. 12 ).
  • An update information sending module configured to send cluster attribute update information to the gateway device, where the cluster attribute update information includes the updated attribute value of the cluster attribute of the first service cluster.
  • the updated attribute value of the cluster attribute of the first service cluster is converted into the updated attribute value of the resource attribute of the first OCF resource, and then sent to the OCF client.
  • the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • FIG. 13 shows a schematic structural diagram of a gateway device 130 provided by an embodiment of the present application.
  • the gateway device 130 can be used to implement the attribute subscription method of the Zigbee device on the gateway device side.
  • the gateway device 130 may include: a processor 131 , a receiver 132 , a transmitter 133 , a memory 134 and a bus 135 .
  • the processor 131 includes one or more processing cores, and the processor 131 executes various functional applications and information processing by running software programs and modules.
  • the receiver 132 and the transmitter 133 may be implemented as a communication component, which may be a communication chip.
  • the memory 134 is connected to the processor 131 through the bus 135 .
  • the memory 134 can be used to store a computer program, and the processor 131 is used to execute the computer program, so as to implement various steps performed by the gateway device in the above method embodiments.
  • memory 134 may be implemented by any type or combination of volatile or non-volatile storage devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Static Anytime Access Memory (SRAM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Programmable Read Only Memory (PROM) .
  • EEPROM electrically erasable programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • SRAM Static Anytime Access Memory
  • ROM Read Only Memory
  • Magnetic Memory Magnetic Memory
  • Flash Memory Programmable Read Only Memory
  • the gateway device includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information);
  • the transceiver is configured to receive a resource subscription request sent by the OCF client, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, the first The OCF device is a virtual OCF device mapped by the first Zigbee device;
  • the transceiver is further configured to send a configuration report request to the first Zigbee device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device , there is a mapping relationship between the first OCF resource and the first service cluster.
  • the resource subscription request includes:
  • the subscription operation indication information is used to instruct to perform a subscription operation on the resource attribute of the first OCF resource.
  • the processor is used to:
  • the configuration report request includes identification information of the cluster attribute of the first service cluster.
  • the processor is further configured to:
  • the same OCF resource address is mapped to multiple cluster attributes belonging to the same service cluster.
  • the transceiver is further configured to receive cluster attribute update information sent by the first Zigbee device, where the cluster attribute update information includes an updated attribute of the cluster attribute of the first service cluster value;
  • the processor is configured to generate resource attribute update information based on the updated attribute value of the cluster attribute of the first service cluster, where the resource attribute update information includes the updated attribute of the resource attribute of the first OCF resource value;
  • the transceiver is further configured to send the resource attribute update information to the OCF client.
  • FIG. 14 shows a schematic structural diagram of a terminal 140 provided by an embodiment of the present application.
  • the terminal 140 may be used to implement the attribute subscription method of the Zigbee device on the OCF client side.
  • the terminal 140 may include: a processor 141 , a receiver 142 , a transmitter 143 , a memory 144 and a bus 145 .
  • the processor 141 includes one or more processing cores, and the processor 141 executes various functional applications and information processing by running software programs and modules.
  • the receiver 142 and the transmitter 143 may be implemented as a communication component, which may be a communication chip.
  • the memory 144 is connected to the processor 141 through the bus 145 .
  • the memory 144 can be used to store a computer program, and the processor 141 is used to execute the computer program, so as to implement various steps performed by the OCF client in the above method embodiments.
  • the memory 144 may be implemented by any type or combination of volatile or non-volatile storage devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Static Anytime Access Memory (SRAM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Programmable Read Only Memory (PROM) .
  • EEPROM electrically erasable programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • SRAM Static Anytime Access Memory
  • ROM Read Only Memory
  • Magnetic Memory Magnetic Memory
  • Flash Memory Programmable Read Only Memory
  • the terminal includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information);
  • the transceiver is configured to send a resource subscription request to the terminal, where the resource subscription request is a request by the OCF client to subscribe to the resource attribute of the first OCF resource of the first OCF device, where the first OCF device is The virtual OCF device mapped by the first Zigbee device;
  • the resource subscription request is converted into a configuration report request and sent to the first Zigbee device, and the configuration report request is that the gateway device reports the cluster attribute of the first service cluster of the first Zigbee device For the configuration request, there is a mapping relationship between the first OCF resource and the first service cluster.
  • the resource subscription request includes:
  • the subscription operation indication information is used to instruct to perform a subscription operation on the resource attribute of the first OCF resource.
  • the configuration report request includes identification information of the cluster attribute of the first service cluster
  • the transceiver is further configured to receive resource attribute update information sent by the gateway device, where the resource attribute update information includes an updated attribute value of the resource attribute of the first OCF resource; Wherein, the updated attribute value of the resource attribute of the first OCF resource is determined based on the updated attribute value of the cluster attribute of the first service cluster;
  • the processor is configured to update the attribute value of the resource attribute of the first OCF resource based on the updated attribute value of the resource attribute of the first OCF resource.
  • FIG. 15 shows a schematic structural diagram of a Zigbee device 150 provided by an embodiment of the present application.
  • the Zigbee device 150 may be used to implement the above-mentioned attribute subscription method of the Zigbee device on the side of the first Zigbee device.
  • the Zigbee device 150 may include: a processor 151 , a receiver 152 , a transmitter 153 , a memory 154 and a bus 155 .
  • the processor 151 includes one or more processing cores, and the processor 151 executes various functional applications and information processing by running software programs and modules.
  • the receiver 152 and the transmitter 153 may be implemented as a communication component, which may be a communication chip.
  • the memory 154 is connected to the processor 151 through the bus 155 .
  • the memory 154 can be used to store a computer program, and the processor 151 is used to execute the computer program, so as to implement each step performed by the first Zigbee device in the above method embodiment.
  • memory 154 may be implemented by any type or combination of volatile or non-volatile storage devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Static Anytime Access Memory (SRAM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Programmable Read Only Memory (PROM) .
  • EEPROM electrically erasable programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • SRAM Static Anytime Access Memory
  • ROM Read Only Memory
  • Magnetic Memory Magnetic Memory
  • Flash Memory Programmable Read Only Memory
  • the Zigbee device includes a processor, a memory, and a transceiver (the transceiver may include a receiver and a transmitter, the receiver for receiving information and the transmitter for transmitting information);
  • the transceiver configured to receive a configuration report request sent by the gateway device, where the configuration report request is a request by the gateway device to report and configure the cluster attribute of the first service cluster of the first Zigbee device;
  • the configuration report request is converted from a resource subscription request, and the resource subscription request is a request by the OCF client to subscribe the resource attribute of the first OCF resource of the first OCF device, and the first OCF device is the
  • the virtual OCF device mapped by the first Zigbee device has a mapping relationship between the first OCF resource and the first service cluster.
  • the resource subscription request includes:
  • the subscription operation indication information is used to instruct to perform a subscription operation on the resource attribute of the first OCF resource.
  • the configuration report request includes identification information of the cluster attribute of the first service cluster
  • the transceiver is further configured to send cluster attribute update information to the gateway device, where the cluster attribute update information includes an updated attribute value of the cluster attribute of the first service cluster;
  • the updated attribute value of the cluster attribute of the first service cluster is converted into the updated attribute value of the resource attribute of the first OCF resource, and then sent to the OCF client.
  • An exemplary embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to be executed by a processor of a gateway device to implement the Zigbee on the gateway device side.
  • the device's property subscription method is not limited to:
  • An exemplary embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to be executed by a processor of a terminal, so as to implement the Zigbee on the OCF client side.
  • the device's property subscription method is described in detail below.
  • An exemplary embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to be executed by a processor of a Zigbee device, so as to implement the above-mentioned first Zigbee device side Attribute subscription method for Zigbee devices.
  • An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or program instructions, when the chip runs on a gateway device, it is used to implement the Zigbee device on the gateway device side. Attribute subscription method.
  • An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or program instructions, when the chip runs on a terminal, it is used to implement the above-mentioned function of the Zigbee device on the OCF client side. Attribute subscription method.
  • An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or program instructions, and when the chip runs on a Zigbee device, it is used to implement the Zigbee on the side of the first Zigbee device.
  • the device's property subscription method when the chip runs on a Zigbee device, it is used to implement the Zigbee on the side of the first Zigbee device.
  • An exemplary embodiment of the present application also provides a computer program product, which, when the computer program product runs on the gateway device, enables the gateway device to execute the foregoing method for subscribing properties of the Zigbee device on the gateway device side.
  • An exemplary embodiment of the present application further provides a computer program product, which, when the computer program product runs on a terminal, enables the terminal to execute the above-mentioned attribute subscription method of the Zigbee device on the OCF client side.
  • An exemplary embodiment of the present application further provides a computer program product, which when the computer program product runs on a Zigbee device, enables the Zigbee device to execute the above-mentioned attribute subscription method of the Zigbee device on the first Zigbee device side.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

La présente demande se rapporte au domaine technique de l'Internet des Objets, et divulgue un procédé et un appareil d'abonnement à un attribut de dispositif Zigbee, un dispositif et un support d'enregistrement. Le procédé comprend les étapes suivantes : un client OCF envoie une requête d'abonnement à une ressource à un dispositif de passerelle, la requête d'abonnement à une ressource étant une requête pour que le client OCF s'abonne à l'attribut de ressource d'une première ressource OCF d'un premier dispositif OCF, et le premier dispositif OCF étant un dispositif OCF virtuel mis en correspondance par un premier dispositif Zigbee ; le dispositif de passerelle envoie une requête de rapport de configuration au premier dispositif Zigbee, la requête de rapport de configuration étant une requête pour que le dispositif client rapporte la configuration d'un attribut de groupe d'un premier groupe de services du premier dispositif Zigbee, et une relation de mise en correspondance existant entre la première ressource OCF et le premier groupe de services. La présente invention met en œuvre l'abonnement du client OCF à l'attribut de groupe dans le dispositif Zigbee, et améliore l'interconnexion et la fonction d'interfonctionnement entre différents protocoles.
PCT/CN2020/123783 2020-10-26 2020-10-26 Procédé et appareil d'abonnement à un attribut de dispositif zigbee, et dispositif WO2022087796A1 (fr)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/123783 WO2022087796A1 (fr) 2020-10-26 2020-10-26 Procédé et appareil d'abonnement à un attribut de dispositif zigbee, et dispositif
CN202080103385.8A CN115943616A (zh) 2020-10-26 2020-10-26 Zigbee设备的属性订阅方法、装置及设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/123783 WO2022087796A1 (fr) 2020-10-26 2020-10-26 Procédé et appareil d'abonnement à un attribut de dispositif zigbee, et dispositif

Publications (1)

Publication Number Publication Date
WO2022087796A1 true WO2022087796A1 (fr) 2022-05-05

Family

ID=81381607

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/123783 WO2022087796A1 (fr) 2020-10-26 2020-10-26 Procédé et appareil d'abonnement à un attribut de dispositif zigbee, et dispositif

Country Status (2)

Country Link
CN (1) CN115943616A (fr)
WO (1) WO2022087796A1 (fr)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657227A (zh) * 2016-09-26 2017-05-10 海尔优家智能科技(北京)有限公司 一种变更订阅资源的方法及装置
CN108848159A (zh) * 2018-06-14 2018-11-20 电子科技大学 一种物联网设备互操作调度方法
US20190260707A1 (en) * 2016-07-01 2019-08-22 Intel IP Corporation Communications in internet-of-things devices
US20200213244A1 (en) * 2017-09-11 2020-07-02 Huawei Technologies Co., Ltd. Internet of Things Resource Subscription Method, Device, and System
CN111629018A (zh) * 2019-02-28 2020-09-04 Oppo广东移动通信有限公司 资源同步方法、装置、设备及存储介质

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
WO2019009928A1 (fr) * 2017-07-05 2019-01-10 Intel Corporation Établissement de connexions entre des dispositifs ido à l'aide de jetons d'authentification
US11025627B2 (en) * 2017-07-10 2021-06-01 Intel Corporation Scalable and secure resource isolation and sharing for IoT networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190260707A1 (en) * 2016-07-01 2019-08-22 Intel IP Corporation Communications in internet-of-things devices
CN106657227A (zh) * 2016-09-26 2017-05-10 海尔优家智能科技(北京)有限公司 一种变更订阅资源的方法及装置
US20200213244A1 (en) * 2017-09-11 2020-07-02 Huawei Technologies Co., Ltd. Internet of Things Resource Subscription Method, Device, and System
CN108848159A (zh) * 2018-06-14 2018-11-20 电子科技大学 一种物联网设备互操作调度方法
CN111629018A (zh) * 2019-02-28 2020-09-04 Oppo广东移动通信有限公司 资源同步方法、装置、设备及存储介质

Also Published As

Publication number Publication date
CN115943616A (zh) 2023-04-07

Similar Documents

Publication Publication Date Title
JP2020515126A (ja) モノのインターネット通信方法、モノのインターネット装置、及びモノのインターネットシステム
US11388580B2 (en) Method for transferring signaling messages of terminal between network functions
CN110366153B (zh) 一种蓝牙自组网的方法
JP6629345B2 (ja) M2mサービスを追加するためのデバイスおよび方法
US10798779B2 (en) Enhanced CoAP group communications with selective responses
US11336513B2 (en) Network nodes with intelligent integration
US11917523B2 (en) Polymorphic network control system and method supporting mobile access of terminal
CN104683994A (zh) 无线网络的配置方法和无线网络设备
WO2023000936A1 (fr) Procédé de traitement de données, dispositif de fonction et support de stockage lisible
WO2020214469A1 (fr) Transmission de message efficace et évitement de boucle dans un réseau rpl
WO2021102694A1 (fr) Procédé et appareil d'accès à un dispositif maillé bluetooth à faible énergie (ble), dispositif et support de stockage
CN108322557B (zh) 一种应用设备发现方法、装置、计算机设备及存储介质
CN104601561A (zh) 网络的注册方法、注册终端、注册设备和家庭网络
WO2022087795A1 (fr) Procédé et appareil de mappage de ressources, dispositif, et support de stockage
CN110365790B (zh) 消息传输方法、装置、级联组网设备以及可读存储介质
WO2022087796A1 (fr) Procédé et appareil d'abonnement à un attribut de dispositif zigbee, et dispositif
CN115174310B (zh) Pdn拨号及配置方法、系统、装置、设备及存储介质
WO2015085573A1 (fr) Procédé et dispositif de communication utilisant un spectre blanc
CN110753135A (zh) 一种ip地址配置方法、配置设备及存储介质
WO2022000579A1 (fr) Terminal à liaisons multiples, procédé et appareil associés pour exécuter une commutation de liaison, et support de stockage
CN111314477A (zh) P2p通信方法、系统、家庭网关、电子设备和存储介质
WO2023165359A1 (fr) Procédé de connexion p2p wi-fi, appareil et système
WO2022116191A1 (fr) Procédé et appareil d'établissement de connexion, et dispositif et support de stockage
CN111107046B (zh) 一种数据流的传输方法及装置
WO2024031681A1 (fr) Procédé et appareil de liaison de dispositif, et dispositif, support de stockage et produit-programme

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20958961

Country of ref document: EP

Kind code of ref document: A1