CN115943616A - Attribute subscription method, device and equipment of Zigbee equipment - Google Patents

Attribute subscription method, device and equipment of Zigbee equipment Download PDF

Info

Publication number
CN115943616A
CN115943616A CN202080103385.8A CN202080103385A CN115943616A CN 115943616 A CN115943616 A CN 115943616A CN 202080103385 A CN202080103385 A CN 202080103385A CN 115943616 A CN115943616 A CN 115943616A
Authority
CN
China
Prior art keywords
resource
ocf
attribute
cluster
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202080103385.8A
Other languages
Chinese (zh)
Inventor
包永明
吕小强
张军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN115943616A publication Critical patent/CN115943616A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application discloses an attribute subscription method, an attribute subscription device, attribute subscription equipment and an attribute subscription storage medium of Zigbee equipment, and belongs to the technical field of Internet of things. The method comprises the following steps: the method comprises the steps that an OCF client sends a resource subscription request to gateway equipment, wherein the resource subscription request is a request for subscribing resource attributes of a first OCF resource of first OCF equipment by the OCF client, and the first OCF equipment is virtual OCF equipment mapped by first Zigbee equipment; the gateway device sends a configuration report request to the first Zigbee device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster. According to the method and the device, the OCF client side can subscribe the cluster attributes in the Zigbee equipment, and the interconnection function between different protocols is enhanced.

Description

Attribute subscription method, device and equipment of Zigbee equipment Technical Field
The embodiment of the application relates to the technical field of internet of things, and in particular relates to an attribute subscription method, an attribute subscription device and attribute subscription equipment of Zigbee equipment.
Background
The integration of the Internet of things (IOT) with Artificial Intelligence (AI) is becoming more and more compact. On the one hand, the internet of things is moving from "connection" to "intelligence"; on the other hand, artificial intelligence is moving from "cloud" to "edge", and both are working together to push the Internet of things to intelligent networking (Internet of intelligence).
The OCF standard supports search and communication between intelligent devices without being restricted by manufacturers, operating systems, chips or physical transmission, and provides technical specifications for realizing seamless connection between various physical medium layers, transmission layers and application layer devices. The OCF has flexible and wide application scenes: firstly, an OCF Client (Client) (such as a mobile phone application) and an OCF device (Server) (such as an air conditioner) can interact, for example, the information such as the on-off, temperature and mode of the air conditioner can be acquired and set by using the mobile phone application; secondly, a plurality of OCF clients can control OCF equipment at the same time, for example, a user can flexibly control the same equipment at home through a smart phone, a smart television and a smart sound box; again, by Bridging (Bridging), OCF clients can interact with other standard devices, such as Zigbee (Zigbee), bluetooth, etc.; finally, the OCF device may also be controlled by other standard clients through bridging.
The Zigbee is a wireless network protocol for low-speed short-distance transmission, has the performances of high capacity, low time delay, low power consumption, high safety, high stability and the like, can carry all kinds of equipment, and provides stable and safe local area network communication for compound intelligent scenes such as whole house intelligence, hotel apartments, local product home decoration, intelligent office and the like.
However, at present, an interaction scheme between the OCF client and the Zigbee device is yet to be further researched.
Disclosure of Invention
The embodiment of the application provides an attribute subscription method, an attribute subscription device and attribute subscription equipment of Zigbee equipment. The technical scheme is as follows:
according to an aspect of the embodiment of the present application, there is provided an attribute subscription method for a Zigbee device, which is applied to a gateway device, the method including:
receiving a resource subscription request sent by an OCF client, where the resource subscription request is a request for subscribing to a resource attribute of a first OCF resource of a first OCF device by the OCF client, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
sending 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 a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of the embodiment of the present application, a method for subscribing to an attribute of a Zigbee device is provided, where the method is applied to an OCF client, and the method includes:
sending a resource subscription request to a gateway device, where the resource subscription request is a request for subscribing, by the OCF client, to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
the resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for the gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of an embodiment of the present application, there is provided an attribute subscription method for a Zigbee device, which is applied to a first Zigbee device, the method including:
receiving a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of the first Zigbee device by the gateway device;
the configuration report request is obtained by converting a resource subscription request, the resource subscription request is a request for subscribing a resource attribute of a first OCF resource of a first OCF device by an OCF client, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of an embodiment of the present application, there is provided an attribute subscription apparatus of a Zigbee device, the apparatus including:
a subscription request receiving module, configured to receive a resource subscription request sent by an OCF client, where the resource subscription request is a request for the OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a 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 for a gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of the embodiments of the present application, there is provided an attribute subscription apparatus for a Zigbee device, the apparatus including:
a subscription request sending module, configured to send a resource subscription request to a gateway device, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
the resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of the first Zigbee device by the gateway device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of an embodiment of the present application, there is provided an attribute subscription apparatus of a Zigbee device, the apparatus including:
a configuration request receiving module, configured to receive a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of a first Zigbee device by the gateway device;
the configuration report request is obtained by converting a resource subscription request, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of an embodiment of the present application, there is provided a gateway device, including a processor, a memory, and a transceiver;
the transceiver is configured to receive a resource subscription request sent by an OCF client, where the resource subscription request is a request for subscribing, by the OCF client, to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a 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 for the gateway device to perform reporting configuration on a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of an embodiment of the present application, there is provided a terminal, in which an OCF client is installed and operated, and which includes a processor, a memory, and a transceiver;
the transceiver is configured to send a resource subscription request to a gateway device, where the resource subscription request is a request for subscribing, by the OCF client, to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
the resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of the first Zigbee device by the gateway device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of an embodiment of the present application, there is provided a Zigbee device comprising a processor, a memory, and a transceiver;
the transceiver is configured to receive a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of a first Zigbee device by the gateway device;
the configuration report request is obtained by converting a resource subscription request, the resource subscription request is a request for subscribing a resource attribute of a first OCF resource of a first OCF device by an OCF client, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
According to an aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored in the storage medium, and the computer program is used for being executed by a processor of a gateway device to implement the attribute subscription method of a Zigbee device on the gateway device side.
According to an aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored in the storage medium, and the computer program is configured to be executed by a processor of a terminal, so as to implement the above method for subscribing to an attribute of a Zigbee device on an OCF client side.
According to an aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored in the storage medium, and the computer program is used for being executed by a processor of a Zigbee device, so as to implement the attribute subscription method of a Zigbee device on the first Zigbee device side.
According to an aspect of the embodiments of the present application, a chip is provided, where the chip includes a programmable logic circuit and/or a program instruction, and when the chip runs on a gateway device, the chip is configured to implement an attribute subscription method for a Zigbee device on the gateway device side.
According to an aspect of the embodiments of the present application, a chip is provided, where the chip includes a programmable logic circuit and/or a program instruction, and when the chip runs on a terminal, the chip is configured to implement the attribute subscription method for the Zigbee device on the OCF client side.
According to an aspect of an embodiment of the present application, a chip is provided, where the chip includes a programmable logic circuit and/or a program instruction, and when the chip runs on a Zigbee device, the chip is configured to implement an attribute subscription method for a Zigbee device on the first Zigbee device side.
According to an aspect of the embodiments of the present application, a computer program product is provided, which when running on a gateway device, enables the gateway device to execute an attribute subscription method of a Zigbee device on a gateway device side.
According to an aspect of the embodiments of the present application, there is provided a computer program product, which when running on a terminal, causes the terminal to execute the method for subscribing to an attribute of a Zigbee device on an OCF client side.
According to an aspect of an embodiment of the present application, a computer program product is provided, which when running on a Zigbee device, causes the Zigbee device to execute an attribute subscription method of the Zigbee device on the first Zigbee device side.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
after receiving a resource subscription request sent by an OCF client, the gateway device converts the resource subscription request into a configuration report request recognizable by Zigbee equipment, and then sends the configuration report request to the Zigbee equipment, so that the OCF client subscribes cluster attributes in the Zigbee equipment, and the interconnection function between different protocols is enhanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a device model structure of a Zigbee device according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating an implementation of interaction between an OCF client and a Zigbee device through a bridge platform according to an embodiment of the present application;
fig. 3 is a schematic diagram of a subscription flow specified by an OCF protocol according to an embodiment of the present application;
FIG. 4 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
fig. 5 is a block diagram of a gateway device according to an embodiment of the present application;
fig. 6 is a flowchart of an attribute subscription method of a Zigbee device according to an embodiment of the present application;
fig. 7 is a flowchart of an attribute subscription method of a Zigbee device according to another embodiment of the present application;
fig. 8 is a flowchart of an attribute subscription method of a Zigbee device according to another embodiment of the present application;
fig. 9 is a flowchart of an attribute subscription method of a Zigbee device according to another embodiment of the present application;
fig. 10 is a block diagram of an attribute subscription apparatus of a Zigbee device according to an embodiment of the present application;
fig. 11 is a block diagram of an attribute subscription apparatus of a Zigbee device according to another embodiment of the present application;
fig. 12 is a block diagram of an attribute subscription device of a Zigbee apparatus according to another embodiment of the present application;
fig. 13 is a schematic structural diagram of a gateway device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a Zigbee device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Fig. 1 shows a schematic diagram of a device model structure of a Zigbee device. After accessing a network, a Zigbee device becomes a Node (Node) in the Zigbee network, where the Node may have multiple endpoints (endpoints), each Endpoint may have multiple service clusters (Server clusters, referred to as "clusters"), and multiple attributes (attributes) may exist below each Cluster, and each Attribute has its own Data Type and Data content (Type & Data).
The OCF client may interact with Zigbee devices. Referring to fig. 2, it shows the interaction between an OCF client and a Zigbee device implemented by a bridge platform. The bridge platform 110 includes the following functional modules: a virtual OCF service 112, a Bridging Function (Bridging Function) 114, and a virtual Zigbee client 116. The OCF client 120 and the virtual OCF server 112 may communicate based on an OCF protocol, and the virtual Zigbee client 116 and the Zigbee device 130 may communicate based on a Zigbee protocol. For example, the Zigbee protocol may be a Zigbee 3.0 protocol or may also be a Zigbee protocol of another existing version or a later evolved version, which is not limited in this embodiment of the present application.
The bridging function 114 is used to implement conversion between the OCF protocol and the Zigbee protocol. For example, the role of the bridging function module 114 includes converting information based on the OCF protocol sent by the OCF client 120 into information based on the Zigbee protocol recognizable by the Zigbee device 130. In addition, the role of the bridging function module 114 may also include converting Zigbee protocol-based information sent by the Zigbee device 130 into OCF protocol-based information recognizable by the OCF client 120.
Optionally, 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 conversion between the information based on the OCF protocol and the information based on the Zigbee protocol. As shown in table one below, which illustrates a translation model between the Zigbee protocol and the OCF protocol.
Watch 1
Zigbee protocol Mapping count OCF protocol Mapping count
Node (Node) 1 OCF equipment (OCF Device) 1
Service Cluster (Server Cluster) 1 OCF resources (OCF Resource) n
Attribute (Attribute) 1 OCF Resource Property (OCF Resource property) 1
From the first table, 3 sets of mapping relationships between the information based on the Zigbee protocol and the information based on the OCF protocol, and the mapping count of both sides in each set of mapping relationships can be obtained. The 3 sets of mapping relationships based on table one include: the mapping relation between the Node and the OCF Device is 1 to 1; a mapping relation between a service Cluster (Server Cluster) and an OCF Resource (OCF Resource), wherein the mapping relation is a mapping relation of 1 to n; the mapping relationship between the Attribute (Attribute) and the OCF Resource Attribute (OCF Resource property), and the mapping relationship is a 1-to-1 mapping relationship.
In the following, a translation model between the Zigbee protocol and the OCF protocol is described by taking the Zigbee device as an example of the color temperature lamp. As shown in table two below:
watch two
Figure PCTCN2020123783-APPB-000001
In addition, in the OCF protocol, a subscription (Notification) function of an OCF client to an OCF server (i.e., an OCF device) is defined. As shown in fig. 3, which shows a schematic diagram of a subscription flow specified by the OCF protocol, the subscription flow may include the following steps:
1. when an OCF client needs to subscribe a certain resource in an OCF server, the OCF client sends a resource subscription Request (RETRIEVE Request) to the OCF server, wherein the resource subscription Request is used for indicating to execute subscription operation on a resource attribute of the resource;
2. an OCF server caches a resource subscription request;
3. 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 subscribeable, and then sends a resource subscription Response (RETRIEVE Response) to the OCF client;
4. the OCF server side finds that the resource attribute of the subscribed resource changes and meets the reporting condition;
5. the OCF server actively sends attribute update information of the resource to the OCF client, for example, the attribute update information may include an updated attribute value of the resource attribute.
Based on the above example of interaction between the OCF client and the Zigbee device, it can be seen that the OCF client can access the Zigbee device by establishing a mapping relationship between information of different protocols through the bridge platform. In the embodiment of the present application, in consideration of a subscription requirement of an OCF client on a cluster attribute of a Zigbee device, a technical scheme is provided for the OCF client to subscribe the cluster attribute of the Zigbee device.
The technical solution of the present application will be described below by means of several embodiments.
Referring to fig. 4, a schematic diagram of an implementation environment provided in an embodiment of the present application is shown, where 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 (such as a Mobile phone, a tablet computer, etc.), vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), mobile Station (MS), terminal Equipment (terminal device), and so on. For convenience of description, in the embodiments of the present application, the above-mentioned devices are collectively referred to as a terminal.
The Zigbee device 220 refers to an intelligent networking device with a network access capability in a Zigbee networking, for example, the Zigbee device 220 may be an intelligent home device, a terminal device, or another device with a network access capability, which is not limited in this embodiment of the present application. In an example, taking the implementation environment as a home intelligent networking system as an example, the Zigbee device 220 may be a smart television, a smart sound box, a smart air conditioner, a smart lamp, a smart door and window, a smart curtain, a smart socket, or other smart home devices.
Gateway device 230, also known as an internetwork connector, protocol converter, is a computer system or device that provides data conversion services across multiple networks. Between two systems or devices which use different communication protocols, data formats or languages, even completely different architectures, the gateway device is equivalent to a translator, and the gateway device can parse received information, repackage the information and send the information to a target system or target device so as to adapt to the requirements of the target system or target device, and meanwhile, the gateway device can also play a role in filtering and safety.
Taking an access process of the OCF client 211 to the Zigbee device 220 as an example, the gateway device 230 is respectively connected to the terminal 210 and the Zigbee device 220, and the OCF client 211 is installed in the terminal 210 and operated, and the OCF client 211 can access the Zigbee device 220 through the gateway device 230. For example, a user sends an access request to the gateway device 230 through the OCF client 211 running on the operation terminal 210, where the access request is information based on an OCF protocol, the gateway device 230 converts the access request after receiving the access request, the converted access request is information based on a Zigbee protocol, and then the gateway device 230 sends the converted access request to the Zigbee device 220, thereby completing an access process of the OCF client 211 to the Zigbee device 220.
It should be noted that, in this embodiment of the application, the "access" of the OCF client to the Zigbee device includes two modes, i.e., "obtaining" and "setting", where "obtaining" means that the OCF client obtains the state of the Zigbee device, and "setting" means that the OCF client selects, sets, updates, and the like the state of the Zigbee device. In addition, in the embodiment of the present application, the "access" of the OCF client to the Zigbee device may also be referred to as "operation" of the Zigbee device by the OCF client, but those skilled in the art can understand the meaning of the operation.
Referring to fig. 5, a block diagram of a gateway device according to an embodiment of the present application is shown. As shown in fig. 5, 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 interacts with the OCF client 301 based on an 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 interacts with the Zigbee device 302 based on the Zigbee protocol. The Zigbee device 302 may act as a Zigbee server and receive access requests from the virtual Zigbee client 330.
The bridging function module 320 is a function module in the gateway device 300 for implementing conversion between two different protocol information, that is, the bridging function module 320 is used for converting information based on the OCF protocol into information based on the Zigbee protocol, or converting information based on the Zigbee protocol into information based on the OCF protocol.
In one example, 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 based on information of the OCF protocol, and then the virtual OCF server 310 in the gateway device 300 receives the first access request, the bridging function module 320 converts the first access request into a second access request, where the second access request is based on information of the Zigbee protocol, and then the virtual Zigbee client 330 in the gateway device 300 sends the second access request to the Zigbee device 302, so as to complete the access of the Zigbee device 302 by the OCF client 301.
In addition, the gateway device 300 may also be referred to as a bridge platform, and is configured to implement an interaction function between the OCF client 301 and the Zigbee device 302.
Referring to fig. 6, a flowchart of an attribute subscription method of a Zigbee device according to an embodiment of the present application is shown, where the method may be applied in 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, where the resource subscription request is a request for the OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device.
Optionally, the resource subscription request includes: the resource address and the subscription operation indication information of the first OCF resource. 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). The subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
It should be noted that the OCF resource may be uniquely determined by a resource address (e.g., URL) of the OCF resource, and each OCF resource may contain one or more resource types. Taking a lamp as an example, the resource types may include a switch resource, a brightness resource, a color temperature resource, a hue and saturation resource, and the like, which is not limited in the 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 a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
After receiving the resource subscription request, the gateway device parses the resource subscription request to obtain the resource address of the first OCF resource and the subscription operation indication information, which indicates 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, generates and sends a configuration report request to the first Zigbee device, where the configuration report request includes the identification information of the cluster attribute of the first service cluster. The identification information of the cluster attribute of the first service cluster is used to identify the cluster attribute of the first service cluster, for example, the identification information of the cluster attribute of the first service cluster may include an ID of the first service cluster and an ID of the cluster attribute.
In this embodiment of the present application, a mapping relationship exists between the first OCF resource and the first service cluster, and a mapping relationship also exists between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster. The gateway device converts the resource subscription request into a configuration report request based on the mapping relationship, so as to request the first Zigbee device to report to the gateway device when the cluster attribute of the first service cluster meets the reporting condition, so as to fulfill the purpose of subscribing to the cluster attribute of the first service cluster.
In an exemplary embodiment, as shown in fig. 7, the step 620 further includes the following steps (630 to 650):
step 630, the first Zigbee device sends, to the gateway device, cluster attribute update information, where the cluster attribute update information includes an updated attribute value of the cluster attribute of the first service cluster.
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 may actively send cluster attribute update information to the gateway device when the reporting condition is satisfied. Optionally, the cluster attribute update information includes identification information of a cluster attribute of the first service cluster and an updated attribute value.
In 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.
After receiving the cluster attribute updating information, the gateway device analyzes the cluster attribute updating information to obtain 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 updated attribute value of the resource attribute of the first OCF resource according to the updated attribute value of the cluster attribute of the first service cluster. The gateway device generates resource attribute update information, where the resource attribute update information may include a resource address of the first OCF resource and an updated attribute value of the resource attribute of the first OCF resource.
In step 650, the gateway device sends resource attribute update information to the OCF client.
Correspondingly, after receiving the resource attribute update information, the OCF client analyzes the resource attribute update information to obtain an updated attribute value of the resource attribute of the first OCF resource.
In addition, in order to implement the above subscription to the cluster attribute of the first service cluster of the first Zigbee device, after establishing a connection with the first Zigbee device, the gateway device may perform the following steps:
1. the method includes the steps that a gateway device determines cluster attributes with reportable capacity under a first service cluster of a first Zigbee device;
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. One or more cluster attributes may be included under the first cluster of services. Some cluster attributes have a reportable capability, and some cluster attributes do not have a reportable capability. The cluster attribute with reporting capability means that when the attribute value of the cluster attribute is updated, the cluster attribute can be actively reported to a subscriber, so that the updating and reporting function of the cluster attribute is realized.
2. The gateway equipment generates an OCF resource address corresponding to the cluster attribute with the reporting capability;
the gateway device may establish a mapping relationship between the cluster attribute and the OCF resource, and generate a corresponding OCF resource address according to the identification information of the cluster attribute. 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 a resource address of the first OCF resource according to the identification information of the cluster attribute of the first service cluster.
3. The gateway device creates an OCF resource based on the OCF resource address, and sets a resource access policy of the OCF resource to be subscribeable.
By setting the resource access policy of the OCF resource to be subscribeable, the resource subscription request can be successfully responded to subsequently when the resource subscription request for the OCF resource is received.
In one example, there is a one-to-one mapping between OCF resource addresses and cluster attributes. That is, one cluster attribute corresponds to one OCF resource address, and a different cluster attribute corresponds to a different OCF resource address. For example, a first Zigbee device includes an Endpoint with an ID of 1, which is denoted as Endpoint 1. The Endpoint 1 contains a service Cluster with an ID of 6, and is marked as Cluster 6. The Cluster 6 includes 2 reportable Cluster attributes (assumed to be referred to as a first Cluster Attribute and a second Cluster Attribute), whose IDs are 9 and 10, respectively, and are denoted as Attribute9 and Attribute 10. Then, the identification information of the first Cluster Attribute may be denoted as Endpoint 1 Cluster 6 Attribute9, and the identification information of the second Cluster Attribute may be denoted as Endpoint 1 Cluster 6 Attribute 10. Assuming that the first cluster attributes are mapped to the first OCF resource and the second cluster attributes are mapped to the second OCF resource, the resource address of the first OCF resource can be represented as/ep/1/cluster/6/attr/9, and the resource address of the second OCF resource can be represented as/ep/1/cluster/6/attr/10.
In another example, there is a one-to-many mapping between OCF resource addresses and cluster attributes. That is, a plurality of cluster attributes correspond to one OCF resource address. Optionally, the same OCF resource address maps to multiple cluster attributes belonging to the same service cluster. For example, a first Zigbee device includes an Endpoint with an ID of 1, which is denoted as Endpoint 1. The Endpoint 1 contains a service Cluster with an ID of 6, and is marked as Cluster 6. The Cluster 6 includes 2 reportable Cluster attributes (assumed to be referred to as a first Cluster Attribute and a second Cluster Attribute), whose IDs are 9 and 10, respectively, and are denoted as Attribute9 and Attribute 10. Then the identification information of the first Cluster Attribute may be denoted as Endpoint 1 Cluster 6 Attribute9 and the identification information of the second Cluster Attribute may be denoted as Endpoint 1 Cluster 6 Attribute 10. Assuming that the first cluster attribute and the second cluster attribute are mapped together as the first OCF resource, the resource address of the first OCF resource can be represented as/ep/1/cluster/6/a/9/a/10.
To sum up, according to the technical solution provided in the embodiment of the present application, after receiving a resource subscription request sent by an OCF client, a gateway device converts the resource subscription request into a configuration report request that can be recognized by Zigbee equipment, and then sends the configuration report request to the Zigbee equipment, thereby implementing subscription of the OCF client to a cluster attribute in the Zigbee equipment, and enhancing an interconnection function between different protocols.
In addition, the application provides two mapping relations between OCF resource addresses and cluster attributes, wherein the first mapping relation is a one-to-one mapping relation, when the mapping relation is adopted, one cluster attribute corresponds to one OCF resource address, and when an OCF client needs to subscribe a certain cluster attribute, only a resource subscription request needs to be sent to the OCF resource address corresponding to the cluster attribute, so that the cluster attribute needing to be subscribed can be selected more flexibly; the other is a one-to-many mapping relation, when the mapping relation is adopted, a plurality of cluster attributes correspond to one OCF resource address, when an OCF client needs to subscribe a plurality of cluster attributes, if the cluster attributes just correspond to the same OCF resource address, a resource subscription request only needs to be sent to the OCF resource address, the resource subscription request does not need to be sent to the OCF resource addresses, and the purposes of simplicity and high efficiency are achieved.
Referring to fig. 8, a flowchart of a method for subscribing to an attribute of a Zigbee device according to another embodiment of the present application is shown, where the method can be applied in the implementation environment shown in fig. 4. The method can comprise the following steps (801-823):
step 801, a virtual Zigbee client discovers a 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 establishing request to the bridge function module, where the mapping relationship establishing request is used to request establishment of a mapping relationship between a first Zigbee device and a first OCF device, and the first OCF device is a virtual OCF device mapped by the first Zigbee device.
Step 804, the bridging function module sets a mapping relationship between the OCF resource and the service cluster of the first Zigbee device.
Optionally, the bridging function module determines a cluster attribute with a reportable capability in the first service cluster of the first Zigbee device, and generates an OCF resource address corresponding to the cluster attribute with the reportable capability.
For example, under Cluster 6 of Endpoint 1 of the first Zigbee device, reportable capability is provided with two Cluster attributes as follows: attribute9 (denoted as first cluster Attribute) and Attribute 10 (denoted as second cluster Attribute). Assuming that the first cluster attributes are mapped to the first OCF resource and the second cluster attributes are mapped to the second OCF resource, the resource address of the first OCF resource can be represented as/ep/1/cluster/6/attr/9, and the resource address of the second OCF resource can be represented as/ep/1/cluster/6/attr/10. Wherein, the 'attr/9' and 'attr/10' indicate that the attribute with the id value of 9 and 10 under the Cluster is reported, and the reporting setting can be carried out on the attribute. "/ep/1/Cluster/6" indicates Cluster information in which the Endpoint of the first Zigbee device is 1 and the id value thereunder is 6. In addition, the bridging function module can also set the resource access policy of the OCF resource corresponding to the resource address/ep/1/cluster/6/attr/9 and/ep/1/cluster/6/attr/10 as being subscribeable.
Step 805, the bridge 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 (i.e. a 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.
Optionally, the virtual OCF server creates an OCF resource based on the OCF resource address. For example, for the two first and second OCF resources that can be subscribed to, the virtual OCF server creates corresponding OCF resources based on the resource addresses of the two OCF resources.
In step 807, the OCF client sends an equipment resource acquisition request to the virtual OCF server, where the equipment resource acquisition request is used to request to acquire information related to the OCF resource created by the virtual OCF server.
For example, information such as a resource address and a resource access policy of each OCF resource created by the virtual OCF server is acquired.
Step 808, the virtual OCF server sends the information related to the OCF resource to the OCF client.
And step 809, the OCF client determines the OCF resources that can be subscribed based on the resource access policy of the OCF resources, and then sends a resource subscription request to the virtual OCF server, where the resource subscription request includes a resource address of the first OCF resource to be subscribed.
For example, the OCF client may know that the first OCF resource and the second OCF resource are available for subscription according to the resource access policies of the first OCF resource and the second OCF resource, and if the OCF client wants to subscribe to the first OCF resource, send a resource subscription request carrying a resource address/ep/1/cluster/6/attr/9 of the first OCF resource to the virtual OCF server. In addition, the resource subscription request may further include subscription operation indication information, which is used to indicate that an 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 bridge function module, where the resource address resolution request is used to request to resolve a resource address, and the resource address resolution request includes a resource address to be resolved (i.e. a resource address of the first OCF resource), and may carry subscription operation indication information.
Step 811, the bridge function module determines the identification information of the cluster attribute corresponding to the resource address to be resolved, and then determines that subscription operation needs to be performed on the cluster attribute according to the subscription operation indication information.
For example, the resource address resolution request includes the resource address/ep/1/cluster/6/attr/9 of the first OCF resource and the subscription operation indication information. The bridging function module determines that a Cluster attribute (denoted as a first Cluster attribute) with an id value of 9 under Cluster 6 of the first Zigbee device Endpoint 1 needs to be subscribed accordingly.
At 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.
Optionally, the configuration report execution request includes identification information of the first cluster attribute and 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 to request reporting and configuring the 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 a configuration result to the bridge function module.
Step 816, the bridge function module sends the configuration result to the virtual OCF server.
817, if the configuration result indicates that the reporting configuration of the first cluster attribute is successfully completed, it indicates 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 a case that an attribute value of a first cluster attribute of the first Zigbee device is updated, if the reporting condition is satisfied, the first Zigbee device sends cluster attribute update information to the virtual Zigbee client, where the cluster attribute update information may include identification information of the first cluster attribute and an updated attribute value.
In step 820, the virtual Zigbee client sends cluster attribute update information to the bridge 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 resource attribute update information to the virtual OCF server, where the resource attribute update information includes the resource address of the first OCF resource and the updated attribute value of the resource attribute thereof.
Step 822, the virtual OCF server updates the resource attribute of the first OCF resource.
In step 823, the virtual OCF server sends resource attribute update information to the OCF client.
Please refer to fig. 9, which illustrates a flowchart of an attribute subscription method of a Zigbee device according to another embodiment of the present application, where the method may be applied in the implementation environment illustrated in fig. 4. The method can comprise the following steps (901-936):
in step 901, the virtual Zigbee client discovers a 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 establishing request to the bridge function module, where the mapping relationship establishing request is used to request establishment of a mapping relationship between a first Zigbee device and a first OCF device, and the first OCF device is a virtual OCF device mapped by the first Zigbee device.
Step 904, the bridging function module sets a mapping relationship between the OCF resource and the service cluster of the first Zigbee device.
Optionally, the bridging function module determines a cluster attribute with a reportable capability in the first service cluster of the first Zigbee device, and generates an OCF resource address corresponding to the cluster attribute with the reportable capability.
For example, under Cluster 6 of Endpoint 1 of the first Zigbee device, reportable capability is provided with two Cluster attributes as follows: attribute9 (denoted as first cluster Attribute) and Attribute 10 (denoted as second cluster Attribute). Assuming that the first cluster attribute and the second cluster attribute map to the same OCF resource (denoted as first OCF resource), the resource address of the first OCF resource can be denoted as/ep/1/cluster/6/a/9/a/10. Wherein, "a/9/a/10" indicates that the attribute with id value of 9 and 10 under Cluster is reportable, and the reporting setting can be carried out on the attribute. "/ep/1/Cluster/6" indicates Cluster information in which the Endpoint of the first Zigbee device is 1 and the id value therebelow is 6. In addition, 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 as being subscribeable.
Step 905 is that the bridge 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 (i.e., a 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.
Optionally, the virtual OCF server creates an OCF resource based on the OCF resource address. For example, for the first OCF resource that can be subscribed to, the virtual OCF server creates a corresponding OCF resource based on the resource address of the OCF resource.
And step 907, the OCF client sends a device resource acquisition request to the virtual OCF server, wherein the device resource acquisition request is used for requesting to acquire the relevant information of the OCF resources created by the virtual OCF server.
For example, information such as a resource address and a resource access policy of each OCF resource created by the virtual OCF server is obtained.
And 908, the virtual OCF server sends the relevant information of the OCF resources to the OCF client.
Step 909, the OCF client determines the OCF resources that can be subscribed based on the resource access policy of the OCF resources, 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.
For example, the OCF client may know that the resource may be subscribed according to the resource access policy of the first OCF resource, and if the OCF client wants to subscribe to the first OCF resource, send a resource subscription request carrying a resource address/ep/1/cluster/6/a/9/a/10 of the first OCF resource to the virtual OCF server. In addition, the resource subscription request may further include subscription operation indication information, which is used to indicate that an 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 bridge function module, where the resource address resolution request is used to request to resolve a resource address, and the resource address resolution request includes a resource address to be resolved (i.e. a resource address of the first OCF resource), and may carry subscription operation indication information.
Step 911, the bridge connection function module determines the identification information of the cluster attribute corresponding to the resource address to be resolved, and then determines that the subscription operation needs to be executed on the cluster attribute according to the subscription operation indication information.
For example, the resource address resolution request includes the resource address/ep/1/cluster/6/a/9/a/10 of the first OCF resource and the subscription operation indication information. The bridging function module determines that two Cluster attributes (denoted as a first Cluster attribute and a second Cluster attribute) with id values of 9 and 10 under Cluster 6 of the first Zigbee device Endpoint 1 need to be subscribed.
Step 912, the bridge 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 a 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 perform reporting configuration on 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 a 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 reporting and configuration of a second cluster attribute of the first Zigbee device.
It should be noted that, since two cluster attributes, namely the first cluster attribute and the second cluster attribute, need to be subscribed, in an example, a configuration report execution request is sent, where the configuration report execution request includes the identification information of the first cluster attribute, the identification information of the second cluster attribute, and the subscription operation indication information. In another example, two configuration report execution requests are sent, where one of the configuration report execution requests includes the identification information of the first cluster attribute and the subscription operation indication information, and the other configuration report execution request includes the identification information of the second cluster attribute and the subscription operation indication information.
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.
In step 917, the virtual Zigbee client sends the first configuration result to the bridging function module.
Step 918, the bridge 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, indicating that the subscription of 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.
And 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 second cluster attribute is successfully completed, it indicates 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 response of successful resource subscription to the OCF client.
And 925, if the subscription of the first OCF resource fails, canceling the subscription operation of each cluster attribute under the first OCF resource.
It should be noted that, in a case that an OCF resource that needs to be subscribed corresponds to a plurality of cluster attributes, in an example, if the OCF resource corresponds to a plurality of cluster attributes, all subscriptions are successful, the OCF resource is considered to be subscribed successfully, otherwise, if at least one subscription corresponding to the plurality of cluster attributes of the OCF resource fails, the OCF resource is considered to be subscribed unsuccessfully. In another example, the OCF resource subscription is considered successful if the OCF resource subscription corresponds to at least one cluster attribute of the plurality of cluster attributes being successful; otherwise, if the subscription of the OCF resource corresponding to the plurality of cluster attributes fails, the subscription of the OCF resource is considered to be failed.
In step 926, the virtual OCF server sends a resource subscription failure response to the OCF client.
Step 927, when the attribute value of the first cluster attribute of the first Zigbee device is updated, if the reporting condition is satisfied, the first Zigbee device sends first cluster attribute update information to the virtual Zigbee client, where the first cluster attribute 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 bridge function module.
Step 929, the bridging function module finds a 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 first resource attribute update information to the virtual OCF server, where the first resource attribute update information includes the resource address of the first OCF resource and an updated attribute value of the resource attribute thereof.
Step 930, the virtual OCF server updates the resource attribute corresponding to the first cluster attribute in the first OCF resource.
Step 931, the virtual OCF server sends the first resource attribute update information to the OCF client.
Step 932, in a case that an attribute value of a second cluster attribute of the first Zigbee device is updated, if the reporting condition is satisfied, the first Zigbee device sends second cluster attribute update information to the virtual Zigbee client, where the second cluster attribute update information may include identification information of the second cluster attribute and an updated attribute value.
Step 933, the virtual Zigbee client sends the second cluster attribute update information to the bridge function module.
Step 934, the bridge 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 second resource attribute update information to the virtual OCF server, where the second resource attribute update information includes the resource address of the first OCF resource and the updated attribute value of the resource attribute thereof.
And step 935, the virtual OCF server updates the resource attribute corresponding to the second cluster attribute in the first OCF resource.
Step 936, the virtual OCF server sends the second resource attribute update information to the OCF client.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 10, a block diagram of an attribute subscription apparatus of a Zigbee device according to an embodiment of the present application is shown. The device has the function of realizing the method example of the gateway device side, and the function can be realized by hardware or by executing corresponding software by hardware. The apparatus may be the gateway device described above, or may be provided in the gateway device. As shown in fig. 10, the apparatus 1000 may include: a subscription request receiving module 1010 and a configuration request sending module 1020.
A subscription request receiving module 1010, configured to receive a resource subscription request sent by an OCF client, where the resource subscription request is a request for the OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device.
A configuration request sending module 1020, configured to send a configuration report request to the first Zigbee device, where the configuration report request is a request for a gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
In an exemplary embodiment, the resource subscription request includes:
a resource address of the first OCF resource;
and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
In an exemplary embodiment, the apparatus 1000 further comprises: a subscription request resolution module and a resource address mapping module (not shown in fig. 10).
And the subscription request analysis module is used for analyzing the resource subscription request to obtain the resource address of the first OCF resource and the subscription operation indication information.
And the resource address mapping module is used for mapping the resource address of the first OCF resource to the identification information of the cluster attribute of the first service cluster.
Wherein the configuration report request includes identification information of a cluster attribute of the first service cluster.
In an exemplary embodiment, the apparatus 1000 further comprises: a cluster attribute determination module, a resource address generation module, and an access policy setting module (not shown in fig. 10).
A cluster attribute determining module, configured to determine a cluster attribute that has a reportable capability in a first service cluster of the first Zigbee device.
And the resource address generating module is used for generating an OCF resource address corresponding to the cluster attribute with the reporting capability.
And the access policy setting module is used for creating the OCF resources based on the OCF resource addresses and setting the resource access policies of the OCF resources to be subscribeable.
In an exemplary embodiment, there is a one-to-one mapping between the OCF resource address and the cluster attribute.
In an exemplary embodiment, there is a one-to-many mapping between the OCF resource address and the cluster attribute.
In an exemplary embodiment, the same OCF resource address maps to multiple cluster attributes belonging to the same service cluster.
In an exemplary embodiment, the apparatus 1000 further comprises: an update information receiving module, an update information generating module, and an update information transmitting module (not shown in fig. 10).
An update information receiving module, configured to receive cluster attribute update information sent by the first Zigbee device, where the cluster attribute update information includes an 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 an 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.
And the update information sending module is used for sending the resource attribute update information to the OCF client.
Referring to fig. 11, a block diagram of an attribute subscription apparatus of a Zigbee device according to another embodiment of the present application is shown. The device has the function of realizing the method example at the OCF client side, and the function can be realized by hardware or by executing corresponding software by hardware. The apparatus may be the terminal described above, or may be provided in the terminal. As shown in fig. 11, the apparatus 1100 may include: a subscription request sending module 1110.
A subscription request sending module 1110, configured to send a resource subscription request to a gateway device, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device.
The resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for the gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
In an exemplary embodiment, the resource subscription request includes:
a resource address of the first OCF resource;
and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
In an exemplary embodiment, the configuration report request includes identification information of a cluster attribute of the first service cluster;
and mapping relation exists between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
In an exemplary embodiment, the apparatus 1100 further comprises: 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 an updated attribute value of a 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.
And the resource attribute updating module is used for updating 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.
Referring to fig. 12, a block diagram of an attribute subscription apparatus of a Zigbee device according to another embodiment of the present application is shown. The apparatus has a function of implementing the method example of the first Zigbee device side, and the function may be implemented by hardware or by hardware executing corresponding software. The apparatus may be the Zigbee device described above, or may be provided in the Zigbee device. As shown in fig. 12, the apparatus 1200 may include: a configuration request receiving module 1210.
A configuration request receiving module 1210 is configured to receive a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of a first Zigbee device by the gateway device.
The configuration report request is obtained by converting a resource subscription request, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
In an exemplary embodiment, the resource subscription request includes:
a resource address of the first OCF resource;
and the subscription operation indication information is used for indicating that the subscription operation is executed on the resource attribute of the first OCF resource.
In an exemplary embodiment, the configuration report request includes identification information of a cluster attribute of the first service cluster;
and a mapping relationship is formed between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
In an exemplary embodiment, the apparatus further comprises: an update information transmission 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 an updated attribute value of the cluster attribute of the first service cluster.
And after 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, sending the updated attribute value to the OCF client.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of each functional module is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to actual needs, that is, the content structure of the device may be divided into different functional modules to implement all or part of the functions described above.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Referring to fig. 13, a schematic structural diagram of a gateway device 130 according to an embodiment of the present application is shown. The gateway device 130 may be configured to implement the attribute subscription method of the Zigbee device on the gateway device side. The gateway device 130 may include: processor 131, receiver 132, transmitter 133, memory 134, and 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 one communication component, which may be a communication chip.
The memory 134 is coupled to the processor 131 by a bus 135.
The memory 134 may be used for storing a computer program, which the processor 131 is used for executing to implement the various steps performed by the gateway device in the above-described method embodiments.
Further, 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 Random Access Memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, programmable read-only memory (PROM).
In an exemplary embodiment, the gateway device includes a processor, a memory, and a transceiver (which 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 an OCF client, where the resource subscription request is a request for subscribing, by the OCF client, to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a 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 for the gateway device to perform reporting configuration on a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
In an exemplary embodiment, the resource subscription request includes:
a resource address of the first OCF resource;
and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
In an exemplary embodiment, the processor is configured to:
analyzing the resource subscription request to obtain a resource address of the first OCF resource and the subscription operation indication information;
mapping the resource address of the first OCF resource to the identification information of the cluster attribute of the first service cluster;
wherein the configuration report request includes identification information of a cluster attribute of the first service cluster.
In an exemplary embodiment, the processor is further configured to:
determining a cluster attribute with a reportable capability under a first service cluster of the first Zigbee device;
generating an OCF resource address corresponding to the reportable cluster attribute;
and creating the OCF resources based on the OCF resource addresses, and setting the resource access policy of the OCF resources to be subscribed.
In an exemplary embodiment, there is a one-to-one mapping between the OCF resource address and the cluster attribute.
In an exemplary embodiment, there is a one-to-many mapping between the OCF resource address and the cluster attribute.
In an exemplary embodiment, the same OCF resource address maps to multiple cluster attributes belonging to the same service cluster.
In an exemplary embodiment, 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 value of a cluster attribute of the first service cluster;
the processor is configured to generate resource attribute update information based on an updated attribute value of a cluster attribute of the first service cluster, where the resource attribute update information includes an updated attribute value of a resource attribute of the first OCF resource;
the transceiver is further configured to send the resource attribute update information to the OCF client.
Referring to fig. 14, a schematic structural diagram of a terminal 140 according to an embodiment of the present application is shown. The terminal 140 may be configured to implement the attribute subscription method of the Zigbee device on the OCF client side. The terminal 140 may include: processor 141, receiver 142, transmitter 143, memory 144, and 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 one communication component, which may be a communication chip.
The memory 144 is coupled to the processor 141 by a bus 145.
Memory 144 may be used to store a computer program that processor 141 uses to execute to perform the various steps performed by the OCF client in the above-described method embodiments.
Further, 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 Random Access Memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, programmable read-only memory (PROM).
In an exemplary embodiment, the terminal includes a processor, a memory, and a transceiver (which may include a receiver for receiving information and a transmitter for transmitting information);
the transceiver is configured to send a resource subscription request to a terminal, where the resource subscription request is a request for subscribing, by the OCF client, a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
the resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for the gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
In an exemplary embodiment, the resource subscription request includes:
a resource address of the first OCF resource;
and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
In an exemplary embodiment, the configuration report request includes identification information of a cluster attribute of the first service cluster;
and a mapping relationship is formed between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
In an exemplary embodiment, 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 a 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.
Please refer to fig. 15, which illustrates a schematic structural diagram of a Zigbee device 150 according to an embodiment of the present application. The Zigbee device 150 may be configured to implement the attribute subscription method of the Zigbee device on the first Zigbee device side. The Zigbee device 150 may include: processor 151, receiver 152, transmitter 153, memory 154, and 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 one communication component, which may be a communication chip.
The memory 154 is coupled to the processor 151 by a bus 155.
The memory 154 may be used for storing a computer program, and the processor 151 is used for executing the computer program to implement the steps performed by the first Zigbee device in the above method embodiment.
In addition, memory 154 may be implemented by any type or combination of volatile or non-volatile memory devices, volatile or non-volatile storage devices include, but are not limited to: magnetic or optical disks, electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), static Random Access Memory (SRAM), read-only memory (ROM), magnetic memory, flash memory, programmable read-only memory (PROM).
In an exemplary embodiment, the Zigbee devices include a processor, a memory, and a transceiver (which may include a receiver for receiving information and a transmitter for transmitting information);
the transceiver is configured to receive a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of a first Zigbee device by the gateway device;
the configuration report request is obtained by converting a resource subscription request, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
In an exemplary embodiment, the resource subscription request includes:
a resource address of the first OCF resource;
and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
In an exemplary embodiment, the configuration report request includes identification information of a cluster attribute of the first service cluster;
and mapping relation exists between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
In an exemplary embodiment, the transceiver is further configured to send cluster attribute update information to the gateway device, the cluster attribute updating information comprises an updated attribute value of the cluster attribute of the first service cluster;
and after 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, sending the updated attribute value 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 for being executed by a processor of a gateway device, so as to implement the attribute subscription method of a Zigbee device on the gateway device side.
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 for being executed by a processor of a terminal, so as to implement the above attribute subscription method for a Zigbee device on an OCF client side.
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 for being executed by a processor of a Zigbee device, so as to implement the attribute subscription method of the Zigbee device on the first Zigbee device side.
An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or a program instruction, and when the chip runs on a gateway device, the chip is configured to implement an attribute subscription method of a Zigbee device on a gateway device side.
An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or a program instruction, and when the chip runs on a terminal, the chip is configured to implement the attribute subscription method for the Zigbee device on the OCF client side.
An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or a program instruction, and when the chip runs on a Zigbee device, the chip is configured to implement the attribute subscription method for the Zigbee device on the first Zigbee device side.
An exemplary embodiment of the present application further provides a computer program product, which when run on a gateway device, enables the gateway device to execute the method for subscribing to the attribute of the Zigbee device on the gateway device side.
An exemplary embodiment of the present application further provides a computer program product, which when run on a terminal, enables the terminal to execute the method for subscribing to an attribute of a Zigbee device on the OCF client side.
An exemplary embodiment of the present application further provides a computer program product, which when running on a Zigbee device, causes the Zigbee device to execute the attribute subscription method of the Zigbee device on the first Zigbee device side.
Those skilled in the art will recognize that the functionality described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof, in one or more of the examples described above. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. 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 media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is only exemplary of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (38)

  1. An attribute subscription method of a Zigbee device, applied to a gateway device, includes:
    receiving a resource subscription request sent by an OCF client, where the resource subscription request is a request for subscribing a resource attribute of a first OCF resource of a first OCF device by the OCF client, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
    sending 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 a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  2. The method of claim 1, wherein the resource subscription request comprises:
    the first is OCF resources the resource address of (2);
    the subscription operation indication information is provided with a subscription operation indication information, the subscription operation is performed on the resource attribute of the first OCF resource.
  3. The method of claim 2, wherein after receiving the resource subscription request sent by the OCF client, the method further comprises:
    analyzing the resource subscription request to obtain a resource address of the first OCF resource and the subscription operation indication information;
    mapping the resource address of the first OCF resource to the identification information of the cluster attribute of the first service cluster;
    wherein the configuration report request includes identification information of a cluster attribute of the first service cluster.
  4. The method according to any one of claims 1 to 3, further comprising:
    determining a cluster attribute with a reportable capability under a first service cluster of the first Zigbee device;
    generating an OCF resource address corresponding to the cluster attribute with the reporting capability;
    and creating OCF resources based on the OCF resource address, and setting the resource access policy of the OCF resources as being subscribeable.
  5. The method of claim 4, wherein there is a one-to-one mapping between the OCF resource addresses and the cluster attributes.
  6. The method of claim 4, wherein there is a one-to-many mapping between the OCF resource address and the cluster attribute.
  7. The method of claim 6, wherein the same OCF resource address maps to multiple cluster attributes belonging to the same service cluster.
  8. The method of any one of claims 1-7, wherein after sending a configuration report request to the first Zigbee device, further comprising:
    receiving cluster attribute update information sent by the first Zigbee device, where the cluster attribute update information includes an updated attribute value of a cluster attribute of the first service cluster;
    generating resource attribute updating information based on the updated attribute value of the cluster attribute of the first service cluster, wherein the resource attribute updating information comprises the updated attribute value of the resource attribute of the first OCF resource;
    and sending the resource attribute updating information to the OCF client.
  9. An attribute subscription method of a Zigbee device, applied to an OCF client, includes:
    sending a resource subscription request to a gateway device, where the resource subscription request is a request for subscribing, by the OCF client, to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
    the resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for the gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  10. The method of claim 9, wherein the resource subscription request comprises:
    a resource address of the first OCF resource;
    and the subscription operation indication information is used for indicating that the subscription operation is executed on the resource attribute of the first OCF resource.
  11. The method of claim 10, wherein the configuration report request includes identification information of a cluster attribute of the first service cluster;
    and mapping relation exists between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
  12. The method according to any of claims 9 to 11, wherein after sending the resource subscription request to the gateway device, further comprising:
    receiving resource attribute updating information sent by the gateway device, wherein the resource attribute updating information comprises 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;
    and updating 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.
  13. An attribute subscription method of a Zigbee device, applied to a first Zigbee device, includes:
    receiving a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of the first Zigbee device by the gateway device;
    the configuration report request is obtained by converting a resource subscription request, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  14. The method of claim 13, wherein the resource subscription request comprises:
    a resource address of the first OCF resource;
    and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
  15. The method of claim 14, wherein the configuration report request includes identification information of a cluster attribute of the first service cluster;
    and a mapping relationship is formed between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
  16. The method according to any one of claims 13 to 15, wherein after receiving the configuration report request sent by the gateway device, the method further comprises:
    sending cluster attribute update information to the gateway device, the cluster attribute updating information comprises an updated attribute value of the cluster attribute of the first service cluster;
    and sending the updated attribute value of the cluster attribute of the first service cluster to the OCF client after 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.
  17. An attribute subscription apparatus of a Zigbee device, characterized in that the apparatus comprises:
    a subscription request receiving module, configured to receive a resource subscription request sent by an OCF client, where the resource subscription request is a request for the OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a 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 for a gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  18. The apparatus of claim 17, wherein the resource subscription request comprises:
    a resource address of the first OCF resource;
    and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
  19. The apparatus of claim 18, further comprising:
    a subscription request analysis module, configured to analyze the resource subscription request to obtain a resource address of the first OCF resource and the subscription operation indication information;
    a resource address mapping module, configured to map a resource address of the first OCF resource to identification information of a cluster attribute of the first service cluster;
    wherein the configuration report request includes identification information of a cluster attribute of the first service cluster.
  20. The apparatus of any one of claims 17 to 19, further comprising:
    a cluster attribute determining module, configured to determine a cluster attribute that has a reportable capability in a first service cluster of the first Zigbee device;
    a resource address generating module, configured to generate an OCF resource address corresponding to the cluster attribute with reportable capability;
    and the access policy setting module is used for creating the OCF resources based on the OCF resource addresses and setting the resource access policies of the OCF resources to be subscribeable.
  21. The apparatus of claim 20, wherein there is a one-to-one mapping between the OCF resource addresses and the cluster attributes.
  22. The apparatus of claim 20, wherein there is a one-to-many mapping between the OCF resource address and the cluster attribute.
  23. The apparatus of claim 22, wherein the same OCF resource address maps to a plurality of cluster attributes belonging to the same service cluster.
  24. The apparatus of any one of claims 17 to 23, further comprising:
    an update information receiving module, configured to receive cluster attribute update information sent by the first Zigbee device, where the cluster attribute update information includes an updated attribute value of a cluster attribute of the first service cluster;
    an update information generation module, configured to generate resource attribute update information based on an updated attribute value of a 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;
    and the updating information sending module is used for sending the resource attribute updating information to the OCF client.
  25. An attribute subscription apparatus of a Zigbee device, the apparatus comprising:
    a subscription request sending module, configured to send a resource subscription request to a gateway device, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
    the resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for the gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  26. The apparatus of claim 25, wherein the resource subscription request comprises:
    a resource address of the first OCF resource;
    and the subscription operation indication information is used for indicating that the subscription operation is executed on the resource attribute of the first OCF resource.
  27. The apparatus of claim 26, wherein the configuration report request comprises identification information of a cluster attribute of the first service cluster;
    and a mapping relationship is formed between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
  28. The apparatus of any one of claims 25 to 27, further comprising:
    an update information receiving module, configured to receive resource attribute update information sent by the gateway device, where the resource attribute update information includes an updated attribute value of a 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;
    and the resource attribute updating module is used for updating 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.
  29. An attribute subscription apparatus of a Zigbee device, characterized in that the apparatus comprises:
    a configuration request receiving module, configured to receive a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of a first Zigbee device by the gateway device;
    the configuration report request is obtained by converting a resource subscription request, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  30. The apparatus of claim 29, wherein the resource subscription request comprises:
    a resource address of the first OCF resource;
    and the subscription operation indication information is used for indicating that subscription operation is performed on the resource attribute of the first OCF resource.
  31. The apparatus of claim 30, wherein the configuration report request includes identification information of a cluster attribute of the first service cluster;
    and a mapping relationship is formed between the resource address of the first OCF resource and the identification information of the cluster attribute of the first service cluster.
  32. The apparatus of any one of claims 29 to 31, further comprising:
    an update information sending module, configured to send cluster attribute update information to the gateway device, where the cluster attribute update information includes an updated attribute value of a cluster attribute of the first service cluster;
    and after 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, sending the updated attribute value to the OCF client.
  33. A gateway device, characterized in that the gateway device comprises a processor, a memory and a transceiver;
    the transceiver is configured to receive a resource subscription request sent by an OCF client, where the resource subscription request is a request for subscribing, by the OCF client, to a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a 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 for the gateway device to perform reporting configuration on a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  34. A terminal is characterized in that the terminal is provided with an OCF client and comprises a processor, a memory and a transceiver;
    the transceiver is configured to send a resource subscription request to a gateway device, where the resource subscription request is a request for subscribing, by the OCF client, a resource attribute of a first OCF resource of a first OCF device, and the first OCF device is a virtual OCF device mapped by a first Zigbee device;
    the resource subscription request is converted into a configuration report request and then sent to the first Zigbee device, where the configuration report request is a request for the gateway device to report and configure a cluster attribute of a first service cluster of the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  35. A Zigbee device, wherein the Zigbee device comprises a processor, a memory, and a transceiver;
    the transceiver is configured to receive a configuration report request sent by a gateway device, where the configuration report request is a request for reporting and configuring a cluster attribute of a first service cluster of a first Zigbee device by the gateway device;
    the configuration report request is obtained by converting a resource subscription request, where the resource subscription request is a request for an OCF client to subscribe to a resource attribute of a first OCF resource of a first OCF device, the first OCF device is a virtual OCF device mapped by the first Zigbee device, and a mapping relationship exists between the first OCF resource and the first service cluster.
  36. A computer-readable storage medium, in which a computer program is stored, the computer program being for execution by a processor to implement the method for attribute subscription of a Zigbee device according to any one of claims 1 to 8.
  37. A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, and the computer program is configured to be executed by a processor to implement the method for subscribing to the attribute of a Zigbee device according to any one of claims 9 to 12.
  38. A computer-readable storage medium, in which a computer program is stored, the computer program being for execution by a processor to implement the method for attribute subscription of a Zigbee device according to any one of claims 13 to 16.
CN202080103385.8A 2020-10-26 2020-10-26 Attribute subscription method, device and equipment of Zigbee equipment Pending CN115943616A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/123783 WO2022087796A1 (en) 2020-10-26 2020-10-26 Zigbee device attribute subscription method and apparatus, and device

Publications (1)

Publication Number Publication Date
CN115943616A true CN115943616A (en) 2023-04-07

Family

ID=81381607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080103385.8A Pending CN115943616A (en) 2020-10-26 2020-10-26 Attribute subscription method, device and equipment of Zigbee equipment

Country Status (2)

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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018004677A1 (en) * 2016-07-01 2018-01-04 Intel IP Corporation Communications in internet-of-things devices
CN106657227B (en) * 2016-09-26 2019-10-25 海尔优家智能科技(北京)有限公司 The method and device of resource is subscribed in a kind of change
CN109495524B (en) * 2017-09-11 2022-03-04 华为云计算技术有限公司 Method, equipment and system for subscribing resources of Internet of things
CN108848159A (en) * 2018-06-14 2018-11-20 电子科技大学 A kind of internet of things equipment interoperability dispatching method
CN111629018B (en) * 2019-02-28 2022-07-08 Oppo广东移动通信有限公司 Resource synchronization method, device, equipment and storage medium

Also Published As

Publication number Publication date
WO2022087796A1 (en) 2022-05-05

Similar Documents

Publication Publication Date Title
US8103784B2 (en) Communication device and communication control method using efficient echonet address determination scheme
KR20180024003A (en) Discovering Wide Area Services for the Internet
WO2016019287A2 (en) Mechanism and service for device naming
US20030126239A1 (en) Mobile communication terminal, network access system and method thereof using the same
US20120317254A1 (en) Network platform in a network device ecosystem
US10148739B2 (en) M2M data querying and invoking methods, querying and invoking devices, and system
CN110413845B (en) Resource storage method and device based on Internet of things operating system
CN104683994A (en) Wireless network configuration method and wireless network devices
CN104935484A (en) Method and apparatus for calling appliance service via gateways
CN111585801A (en) ZigBee device upgrading method and related device
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN108322557B (en) Application equipment discovery method and device, computer equipment and storage medium
CN113994649A (en) Method, device, equipment and storage medium for accessing BLE Mesh equipment
WO2022087795A1 (en) Resource mapping method and apparatus, device, and storage medium
CN105050028A (en) Method and device for controlling household appliances
CN110365790B (en) Message transmission method and device, cascade networking equipment and readable storage medium
WO2015085573A1 (en) Method and device for communication using white spectrum
US20230045914A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
CN115174310B (en) PDN dialing and configuration method, system, device, equipment and storage medium
CN115943616A (en) Attribute subscription method, device and equipment of Zigbee equipment
CN110661895A (en) Network address mapping method and network address mapping equipment of server
CN110601892B (en) Main module access method, device and equipment based on object-oriented protocol
CN111314477A (en) P2P communication method, system, home gateway, electronic device and storage medium
CN115442221B (en) Distributed home equipment service management method and system
CN111107046B (en) Data stream transmission method and device

Legal Events

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