WO2022087795A1 - Resource mapping method and apparatus, device, and storage medium - Google Patents

Resource mapping method and apparatus, device, and storage medium Download PDF

Info

Publication number
WO2022087795A1
WO2022087795A1 PCT/CN2020/123782 CN2020123782W WO2022087795A1 WO 2022087795 A1 WO2022087795 A1 WO 2022087795A1 CN 2020123782 W CN2020123782 W CN 2020123782W WO 2022087795 A1 WO2022087795 A1 WO 2022087795A1
Authority
WO
WIPO (PCT)
Prior art keywords
ocf
resource
padding bit
identification information
padding
Prior art date
Application number
PCT/CN2020/123782
Other languages
French (fr)
Chinese (zh)
Inventor
包永明
张军
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to CN202080103386.2A priority Critical patent/CN115968543A/en
Priority to PCT/CN2020/123782 priority patent/WO2022087795A1/en
Publication of WO2022087795A1 publication Critical patent/WO2022087795A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Definitions

  • the embodiments of the present application relate to the technical field of the Internet of Things, and in particular, to a resource mapping method, apparatus, device, and storage medium.
  • the Internet of things (IOT) and artificial intelligence (Artificial Intelligence, AI) are increasingly integrated.
  • the Internet of Things is moving from “connection” to "intelligence”; on the other hand, artificial intelligence is moving from “cloud” to “edge”, and the two are working together to promote the Internet of Things to the Internet of Intelligences.
  • OCF Open Connectivity Foundation
  • the OCF standard supports search and communication between smart devices without being restricted by manufacturers, operating systems, chips or physical transmission. It provides technical specifications for realizing seamless connection between various physical medium layer, transport layer and application layer devices.
  • OCF has a wide range of flexible application scenarios: First, the OCF client (Client) (such as a mobile phone application) and OCF device (Server) (such as an air conditioner) can interact.
  • Client such as a mobile phone application
  • Server such as an air conditioner
  • OCF clients can control OCF devices at the same time, for example, users can flexibly control the same device at home through smart phones, smart TVs, and smart speakers; again, through bridging (Bridging), OCF clients can interact with other standard devices, such as Bluetooth, Zigbee (Zigbee), etc. Finally, OCF devices can also be bridged and controlled by other standard clients.
  • Embodiments of the present application provide a resource mapping method, apparatus, device, and storage medium.
  • the technical solution is as follows:
  • a resource mapping method applied to a gateway device, the method includes:
  • first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual OCF device mapped by the first physical device;
  • a resource address of the first OCF resource is generated and stored, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  • a resource mapping apparatus includes:
  • a device creation module configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual OCF mapped by the first physical device equipment;
  • a resource creation module configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first object in the first physical device has a mapping relationship;
  • An address generation module configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  • a gateway device includes a processor, a memory, and a transceiver;
  • the processor is configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual device mapped by the first physical device.
  • OCF equipment OCF equipment
  • the processor is further configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first OCF resource in the first physical device.
  • An object has a mapping relationship;
  • the processor is further configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  • a computer-readable storage medium where a computer program is stored in the storage medium, and the computer program is configured to be executed by a processor to implement the above resource mapping method.
  • a chip is provided, the chip includes a programmable logic circuit and/or program instructions, and when the chip runs on a gateway device, it is used to implement the above resource mapping method.
  • a computer program product which, when the computer program product runs on a gateway device, enables the gateway device to execute the above resource mapping method.
  • a mapping relationship between the first OCF resource and the first object in the first physical device is established by the gateway device, and the resource address of the first OCF resource is generated and stored, so as to determine the mapping relationship with the first OCF resource.
  • the first object specifies the relationship between the OCF resource address and the object under the target communication protocol, thereby enhancing the interconnection capability between the OCF protocol and other standard protocols.
  • FIG. 1 is a schematic diagram of a device model structure of a Zigbee device provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of realizing the interaction between an OCF client and a Zigbee device through a bridge platform provided by an embodiment of the present application;
  • FIG. 3 is a schematic diagram of a device model structure of a BLE mesh device provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of realizing interaction between an OCF client and a BLE mesh device through a bridge platform provided by an embodiment of the present application;
  • FIG. 5 is a schematic diagram of an implementation environment provided by an embodiment of the present application.
  • FIG. 6 is a structural block diagram of a gateway device provided by an embodiment of the present application.
  • FIG. 7 is a flowchart of a resource mapping method provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of a resource mapping method provided by another embodiment of the present application.
  • FIG. 9 is a flowchart of a resource mapping method provided by another embodiment of the present application.
  • FIG. 10 is a flowchart of a resource mapping method provided by another embodiment of the present application.
  • FIG. 11 is a block diagram of a resource mapping apparatus provided by an embodiment of the present application.
  • FIG. 12 is a structural block diagram of a gateway device provided by an embodiment of the present application.
  • Zigbee is a low-speed and short-distance transmission wireless network protocol.
  • Zigbee network has the characteristics of large capacity, low latency, low power consumption, high security and high stability.
  • Home improvement, smart office and other complex smart scenarios provide stable and secure LAN communication.
  • FIG. 1 shows a schematic diagram of a device model structure of a Zigbee device. After the Zigbee device is connected to the network, it becomes a node (Node) in the Zigbee network.
  • the node may have multiple endpoints (Endpoints), and there may be multiple service clusters (Server Cluster, referred to as "cluster") under each endpoint.
  • Server Cluster Server Cluster
  • the OCF clients can interact with Zigbee devices. Please refer to FIG. 2, which shows the interaction between the OCF client and the Zigbee device through the bridge platform.
  • the bridge platform 110 includes the following functional modules: a virtual OCF server 112 , a bridging function 114 and a virtual Zigbee client 116 .
  • the communication between the OCF client 120 and the virtual OCF server 112 may be based on the OCF protocol
  • the communication between the virtual Zigbee client 116 and the Zigbee device 130 may be based on the Zigbee protocol.
  • the above Zigbee protocol may be the Zigbee 3.0 protocol or may also be the Zigbee protocol of another existing version or a subsequent evolution version, which is not limited in this embodiment of the present application.
  • the bridge function module 114 is used to realize the conversion between the OCF protocol and the Zigbee protocol.
  • the role of the bridging function module 114 includes converting the information based on the OCF protocol sent by the OCF client 120 into the information based on the Zigbee protocol that can be recognized by the Zigbee device 130 .
  • the role of the bridging function module 114 may further include converting the Zigbee protocol-based information sent by the Zigbee device 130 into OCF protocol-based information identifiable by the OCF client 120 .
  • the bridging function module 114 may establish a mapping relationship between the information based on the OCF protocol and the information based on the Zigbee protocol, so as to realize the conversion between the information based on the OCF protocol and the information based on the Zigbee protocol. As shown in Table 1 below, it shows the translation model between the Zigbee protocol and the OCF protocol.
  • mapping relationships between the information based on the Zigbee protocol and the information based on the OCF protocol can be obtained, as well as the mapping counts of both parties in each set of mapping relationships.
  • the three groups of mapping relationships based on Table 1 include: the mapping relationship between a node (Node) and an OCF device (OCF Device), and the mapping relationship is a 1-to-1 mapping relationship; a service cluster (Server Cluster) and an OCF resource (OCF Resource), and the mapping relationship is a 1-to-n mapping relationship; the mapping relationship between attributes (Attribute) and OCF resource attributes (OCF Resource property), and the mapping relationship is a 1-to-1 mapping relationship .
  • the translation model between the Zigbee protocol and the OCF protocol is introduced. As shown in Table 2 below:
  • BLE Bluetooth Low Energy, Bluetooth Low Energy
  • BLE mesh star network
  • BLE mesh is a network support designed for large-scale nodes to communicate with each other. Its goal is to establish a trusted and secure network, fully interoperable operations, mature ecosystems, and industrial-level applications. Supports networking with a large number of nodes.
  • the way BLE mesh works is managed flood (managed flood message propagation), the flooding way makes the message propagation very reliable, easy to expand, and the performance can meet the commercial and industrial market.
  • Figure 3 shows a schematic diagram of the device model structure of a BLE mesh device. After the BLE mesh device is connected to the network, it becomes a node (Node) in the BLE mesh network.
  • the node may have multiple elements (Element), and there may be multiple service models (Server Model, referred to as "model”) under each element. , there may be multiple attributes (State, or "state”) under each model, and each attribute has its own data type and data content (Type&Data).
  • the bridge platform 110 includes the following functional modules: a virtual OCF server 112 , a bridging function module (Bridging Function) 114 and a virtual BLE mesh client 118 .
  • Communication between the OCF client 120 and the virtual OCF server 112 may be based on the OCF protocol, and communication between the virtual BLE mesh client 118 and the BLE mesh device 140 may be based on the BLE mesh protocol.
  • the bridge function module 114 is used to realize the conversion between the OCF protocol and the BLE mesh protocol.
  • the role of the bridge function module 114 includes converting the information based on the OCF protocol sent by the OCF client 120 into information based on the BLE mesh protocol that can be recognized by the BLE mesh device 140.
  • the role of the bridging function module 114 may also include converting the information based on the BLE mesh protocol sent by the BLE mesh device 140 into information based on the OCF protocol identifiable by the OCF client 120.
  • the bridging function module 114 can establish a mapping relationship between the information based on the OCF protocol and the information based on the BLE mesh protocol, so as to realize the conversion between the information based on the OCF protocol and the information based on the BLE mesh protocol. As shown in Table 3 below, it shows the translation model between the BLE mesh protocol and the OCF protocol.
  • mapping relationships between the information based on the BLE mesh protocol and the information based on the OCF protocol can be obtained, as well as the mapping counts of both parties in each set of mapping relationships.
  • the three groups of mapping relationships based on Table 3 include: the mapping relationship between the node (Node) and the OCF device (OCF Device), and the mapping relationship is a 1-to-1 mapping relationship; the service model (Server Model) and the OCF resource (OCF Resource), and the mapping relationship is a 1-to-1 mapping relationship; the mapping relationship between attributes (State) and OCF resource properties (OCF Resource property), and the mapping relationship is a 1-to-1 mapping relationship .
  • the translation model between the Zigbee protocol and the OCF protocol, and the translation model between the BLE mesh protocol and the OCF protocol only specify the mapping relationship between OCF resources and the Zigbee cluster (Cluster) and the BLE mesh model (Model).
  • the relationship between the OCF resource address and the Zigbee cluster (Cluster) and the BLE mesh model (Model) is specified, thereby enhancing the interconnection capability between the OCF protocol and other standard protocols.
  • FIG. 5 shows a schematic diagram of an implementation environment provided by an embodiment of the present application.
  • the implementation environment may include: a terminal 210 , a Zigbee device/BLE mesh device 220 , and a gateway device 230 .
  • the implementation environment may be an intelligent networked system.
  • the terminal 210 may include various handheld devices with wireless communication functions (such as mobile phones, tablet computers, etc.), in-vehicle devices, wearable devices, computing devices, or other processing devices connected to wireless modems, and various forms of user equipment (User Equipment). Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on.
  • User Equipment User Equipment
  • Equipment, UE mobile station
  • MS Mobile Station
  • terminal device terminal device
  • Zigbee device/BLE mesh device 220 refers to a smart networking device with network access capability under Zigbee networking/BLE mesh networking, such as Zigbee device/BLE mesh device 220 can be a smart home device, terminal device, or other devices with network access. This is not limited in this embodiment of the present application.
  • the Zigbee device/BLE mesh device 220 may be smart home devices such as smart TVs, smart speakers, smart air conditioners, smart lights, smart doors and windows, smart curtains, and smart sockets.
  • the gateway device 230 is also referred to as a network connector and a protocol converter, and is a computer system or device that provides data conversion services between multiple networks. Between two systems or devices that use different communication protocols, data formats or languages, or even have completely different architectures, the gateway device is equivalent to a translator. The gateway device can parse the received information, and repackage and send it to The destination system or destination device can meet the needs of the destination system or destination device, and the gateway device can also play the role of filtering and security.
  • the gateway device 230 is connected to the terminal 210 and the Zigbee device/BLE mesh device 220 respectively, and the OCF client 211 is installed and running in the terminal 210.
  • the OCF client The terminal 211 can access the Zigbee device/BLE mesh device 220 through the gateway device 230.
  • the user sends an access request to the gateway device 230 by operating the OCF client 211 running on the terminal 210.
  • the access request is information based on the OCF protocol.
  • the gateway device 230 converts the access request.
  • the access request is based on the information of the Zigbee protocol/BLE mesh protocol, and then the gateway device 230 sends the converted access request to the Zigbee device/BLE mesh device 220, thereby completing the OCF client 211 to the Zigbee device/BLE mesh device 220. access process.
  • the "access" of the OCF client to the Zigbee device/BLE mesh device includes two methods: “acquisition” and “setting”.
  • “Settings” refers to the OCF client to select, set, and update the status of the Zigbee device/BLE mesh device.
  • the "access" of the OCF client to the Zigbee device/BLE mesh device may also be referred to as the "operation" of the OCF client to the Zigbee device/BLE mesh device, but those skilled in the art can understand that meaning.
  • FIG. 6 shows a structural block diagram of a gateway device provided by an embodiment of the present application.
  • the gateway device 300 includes a virtual OCF server 310, a bridge function module 320, and a virtual Zigbee client/virtual BLE mesh client 330.
  • the virtual OCF server 310 is a functional module in the gateway device 300 for interacting with the OCF client 301 , and the virtual OCF server 310 and the OCF client 301 interact based on the OCF protocol.
  • the virtual Zigbee client/virtual BLE mesh client 330 is a functional module in the gateway device 300 for interacting with the Zigbee device/BLE mesh device 302, and the virtual Zigbee client/virtual BLE mesh client 330 communicates with the Zigbee device/BLE mesh device The interaction between 302 is based on the Zigbee protocol/BLE mesh protocol.
  • the Zigbee device/BLE mesh device 302 can act as a Zigbee server/BLE mesh server and receive an access request from a virtual Zigbee client/virtual BLE mesh client 330.
  • the bridging functional module 320 is a functional module used to realize the conversion between two different protocol information in the gateway device 300, that is, the bridging functional module 320 is used to convert the information based on the OCF protocol into the information based on the Zigbee protocol/BLE mesh protocol, Or used to convert information based on Zigbee protocol/BLE mesh protocol to information based on OCF protocol.
  • the OCF client 301 when the OCF client 301 initiates an access request to the Zigbee device/BLE mesh device 302, the OCF client 301 first sends a first access request to the gateway device 300, where the first access request is information based on the OCF protocol , then the virtual OCF server 310 in the gateway device 300 receives the first access request, and the bridging function module 320 converts the first access request into a second access request, and the second access request is based on the Zigbee protocol/BLE mesh protocol Then, the virtual Zigbee client/virtual BLE mesh client 330 in the gateway device 300 sends a second access request to the Zigbee device/BLE mesh device 302 to complete the OCF client 301 to the Zigbee device/BLE mesh device 302. access.
  • the gateway device 300 can also be called a bridge platform, which is used to realize the interaction function between the OCF client 301 and the Zigbee device/BLE mesh device 302.
  • FIG. 7 shows a flowchart of a resource mapping method provided by an embodiment of the present application, and the method can be applied to a gateway device.
  • the method may include the following steps (710-730):
  • Step 710 Create a first OCF device corresponding to the first physical device, where the first physical device is a device based on the target communication protocol, and the first OCF device is a virtual OCF device mapped by the first physical device.
  • the target communication protocol can be a certain wireless communication protocol, such as Zigbee protocol or BLE mesh protocol.
  • Step 720 Create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, and the first OCF resource and the first object in the first physical device have a mapping relationship.
  • mapping relationship between the OCF resource and the object in the physical device based on the target communication protocol.
  • the mapping relationship may be a one-to-one mapping relationship, that is, one OCF resource corresponds to one object, and different OCF resources correspond to different objects.
  • the mapping relationship may also be a one-to-many mapping relationship, that is, one OCF resource corresponds to multiple objects, and multiple different objects may correspond to the same OCF resource; or, the mapping relationship also It may be a many-to-one mapping relationship, that is, one object corresponds to multiple OCF resources, which is not limited in this embodiment of the present application.
  • Step 730 Generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine a first object that has a mapping relationship with the first OCF resource.
  • the gateway device may determine that the first object corresponding to the first OCF resource needs to perform a relevant operation.
  • the resource address of the first OCF resource is used to uniquely identify the first OCF resource, and different OCF resources have different resource addresses.
  • the resource address can be a URL (Uniform Resource Locator).
  • the gateway device may generate the resource address of the first OCF resource according to the identification information of the first object.
  • the gateway device may also generate the resource address of the first OCF resource in other manners, as long as the resource address can play a role of uniquely identifying the OCF, which is not limited in this embodiment of the present application.
  • the target communication protocol is the Zigbee protocol
  • the first physical device is the first Zigbee device
  • the first OCF resource and the first service cluster in the first physical device have a mapping relationship.
  • the resource address of the first OCF resource includes: identification information of the endpoint to which the first service cluster belongs, and identification information of the first service cluster.
  • the resource address of the first OCF resource may include the address of Endpoint 1. Identification information and identification information of Cluster 6. Among them, the identification information of the endpoint is used to uniquely identify the endpoint.
  • the identification information of the service cluster is used to uniquely identify the service cluster.
  • Different service clusters under the command line have different identification information.
  • the resource address of the first OCF resource may be represented as "/ep/1/cluster/6", where ep represents the endpoint, 1 represents the id value of the endpoint, cluster represents the service cluster, and 6 represents the id value of the service cluster.
  • the resource address of the first OCF resource further includes: identification information of the Zigbee protocol.
  • the resource address of the first OCF resource can be represented as "/eco/zigbee3.0/ep/1/cluster/6", eco represents the communication protocol, and zigbee3.0 represents the identification information of the communication protocol (that is, the representative is zigbee3. .0 protocol), ep represents the endpoint, 1 represents the id value of the endpoint, cluster represents the service cluster, and 6 represents the id value of the service cluster.
  • the first OCF resource and the first service model in the first physical device have Mapping relations.
  • the resource address of the first OCF resource includes: identification information of the element to which the first service model belongs, and identification information of the first service model.
  • the resource address of the first OCF resource can include Element2's Identification information and the identification information of Model 3.
  • the identification information of the element is used to uniquely identify the element.
  • the identification information of the service model is used to uniquely identify the service model.
  • Different service models under the element have different identification information.
  • the resource address of the first OCF resource may be represented as "/ele/2/model/3", where ele represents an element, 2 represents an id value of the element, model represents a service model, and 3 represents an id value of the service model.
  • the resource address of the first OCF resource further includes: identification information of the BLE Mesh protocol.
  • the resource address of the first OCF resource may be represented as "/eco/blemesh/ele/2/model/3", where eco represents a communication protocol, and blemesh represents identification information of the communication protocol (that is, it represents the BLE mesh protocol), ele represents the element, 2 represents the id value of the element, model represents the service model, and 3 represents the id value of the service model.
  • step 730 further includes the following steps (740-760):
  • Step 740 Receive a first access request sent by the OCF client, where the first access request is a request by the OCF client to access the first OCF resource, and the first access request includes the resource address of the first OCF resource.
  • the first access request further includes operation type indication information, which is used to indicate the operation performed on the first OCF resource.
  • the operations that can be performed on the first OCF resource include, but are not limited to, at least one of the following: read, update, delete, subscribe, and so on.
  • Step 750 Map the resource address of the first OCF resource to the identification information of the first object.
  • the gateway device After receiving the first access request, the gateway device parses the first access request and obtains the resource address of the first OCF resource, thus knowing that the OCF client wants to access the first OCF resource.
  • the operation type indication information carried in the request is also read, so as to know the operation that needs to be performed on the first OCF resource.
  • the gateway device maps the resource address of the first OCF resource to the identification information of the first object, and generates and sends a second access request to the first physical device.
  • Step 760 Send a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes identification information of the first object.
  • the first access request further includes operation type indication information, which is used to indicate the operation performed on the first object.
  • the operations that can be performed on the first object include, but are not limited to, at least one of the following: read, update, delete, subscribe, and so on.
  • a mapping relationship between the first OCF resource and the first object in the first physical device is established through the gateway device, and the resource address of the first OCF resource is generated and stored, This is used to determine the first object that has a mapping relationship with the first OCF resource, and specifies the relationship between the OCF resource address and the object under the target communication protocol, thereby enhancing the ability of the OCF protocol to interconnect with other standard protocols.
  • the relationship between the OCF resource address and the Zigbee cluster (Cluster) and the BLE mesh model (Model) is specified, thereby enhancing the interconnectivity between the OCF protocol and the Zigbee protocol/BLE mesh protocol.
  • FIG. 9 shows a flowchart of a resource mapping method provided by another embodiment of the present application, and the method can be applied to the implementation environment shown in FIG. 5 .
  • the relationship between the OCF resource address and the Zigbee cluster (Cluster) is specified.
  • the method may include the following steps (901-917):
  • Step 901 the virtual Zigbee client discovers the first Zigbee device.
  • Step 902 the virtual Zigbee client establishes a connection with the first Zigbee device.
  • Step 903 the virtual Zigbee client sends a mapping relationship establishment request to the bridging function module, where the mapping relationship establishment request is used to request the establishment of a mapping relationship between the first Zigbee device and the first OCF device, where the first OCF device is the first Zigbee device Device-mapped virtual OCF device.
  • Step 904 the bridging function module sets the mapping relationship between the OCF resource and the service cluster of the first Zigbee device.
  • the bridge function module sets the corresponding OCF resource URL according to the data model structure characteristics of the Zigbee protocol. For example, for a Zigbee 3.0 device, when a Cluster (id value 6) under the device Endpoint (id value 1) establishes a mapping relationship with an OCF resource, the OCF resource URL can be set to /ep/1/cluster/6 .
  • Step 905 the bridging function module sends a virtual OCF device creation request to the virtual OCF server, where the virtual OCF device creation request is used to request to create a virtual OCF device (ie, the first OCF device) mapped with the first Zigbee device.
  • Step 906 the virtual OCF server creates a first OCF device, and creates an OCF resource based on the OCF resource address.
  • Step 907 The OCF client sends a device resource acquisition request to the virtual OCF server, where the device resource acquisition request is used to request to acquire related information of the OCF resource created by the virtual OCF server.
  • obtain information such as resource addresses and resource access policies of each OCF resource created by the virtual OCF server.
  • Step 908 the virtual OCF server sends the related information of the OCF resource to the OCF client.
  • Step 909 the OCF client sends a first access request to the virtual OCF server, where the first access request includes the resource address of the first OCF resource to be accessed.
  • the first access request includes /ep/1/cluster/6.
  • Step 910 the virtual OCF server sends a resource address resolution request to the bridging function module, the resource address resolution request is used for requesting to resolve the resource address, and the resource address resolution request includes the resource address to be resolved (that is, the above-mentioned first OCF resource). resource address).
  • Step 911 the bridging function module determines the identification information of the service cluster corresponding to the resource address to be resolved, for example, the first OCF resource corresponds to the first service cluster.
  • the bridging function module determines which Cluster under which Endpoint of the Zigbee 3.0 device is to be accessed according to the resource address to be resolved. For example, if the first access request includes /ep/1/cluster/6, it is determined that the one to be accessed is Cluster 6 under Endpoint 1 under the Zigbee 3.0 device.
  • Step 912 the bridging function module sends a request for accessing the first service cluster to the virtual Zigbee client, where the request may include identification information of the first service cluster.
  • Step 913 The virtual Zigbee client sends a second access request to the first Zigbee device, where the second access request includes identification information of the first service cluster to be accessed.
  • Step 914 the first Zigbee device sends the first access result to the virtual Zigbee client.
  • Step 915 the virtual Zigbee client sends the first access result to the bridging function module.
  • Step 916 the bridging function module sends a second access result to the virtual OCF server, where the second access result is an access result conforming to the OCF protocol specification generated by converting the first access result based on the Zigbee protocol.
  • Step 917 the virtual OCF server sends the second access result to the OCF client.
  • FIG. 10 shows a flowchart of a resource mapping method provided by another embodiment of the present application, and the method can be applied to the implementation environment shown in FIG. 5 .
  • the relationship between the OCF resource address and the BLE mesh model (Model) is specified.
  • the method may include the following steps (1001-1017):
  • Step 1001 the virtual BLE mesh client discovers the first BLE mesh device.
  • Step 1002 the virtual BLE mesh client establishes a connection with the first BLE mesh device.
  • Step 1003 the virtual BLE mesh client sends a mapping relationship establishment request to the bridging function module, and the mapping relationship establishment request is used to request the establishment of a mapping relationship between the first BLE mesh device and the first OCF device, and the first OCF device is the first OCF device.
  • Step 1004 the bridging function module sets the mapping relationship between the OCF resource and the service model of the first BLE mesh device.
  • the bridge function module sets the corresponding OCF resource URL according to the data model structure characteristics of the BLE mesh protocol. For example, for a BLE mesh device, when the Model (id value is 3) under the device Element (id value is 2) establishes a mapping relationship with the OCF resource, the OCF resource URL can be set to /ele/2/model/3 .
  • Step 1005 the bridging function module sends a virtual OCF device creation request to the virtual OCF server, where the virtual OCF device creation request is used to request the creation of a virtual OCF device (that is, the first OCF device) mapped with the first BLE mesh device.
  • Step 1006 the virtual OCF server creates a first OCF device, and creates an OCF resource based on the OCF resource address.
  • Step 1007 the OCF client sends a device resource acquisition request to the virtual OCF server, where the device resource acquisition request is used to request to acquire related information of the OCF resource created by the virtual OCF server.
  • obtain information such as resource addresses and resource access policies of each OCF resource created by the virtual OCF server.
  • Step 1008 the virtual OCF server sends the relevant information of the OCF resource to the OCF client.
  • Step 1009 the OCF client sends a first access request to the virtual OCF server, where the first access request includes the resource address of the first OCF resource to be accessed.
  • the first access request includes /ele/2/model/3.
  • Step 1010 the virtual OCF server sends a resource address resolution request to the bridging function module, the resource address resolution request is used to request to resolve the resource address, and the resource address resolution request includes the resource address to be resolved (that is, the above-mentioned first OCF resource). resource address).
  • Step 1011 the bridging function module determines the identification information of the service model corresponding to the resource address to be resolved, for example, the first OCF resource corresponds to the first service model.
  • the bridge function module determines which Model under which Element of the BLE mesh device is to be accessed according to the resource address to be resolved. For example, if the first access request includes /ele/2/model/3, it is determined that the Model 3 under Element 2 under the BLE mesh device is to be accessed.
  • Step 1012 the bridging function module sends a request for accessing the first service model to the virtual BLE mesh client, where the request may include identification information of the first service model.
  • Step 1013 the virtual BLE mesh client sends a second access request to the first BLE mesh device, where the second access request includes identification information of the first service model to be accessed.
  • Step 1014 the first BLE mesh device sends the first access result to the virtual BLE mesh client.
  • Step 1015 the virtual BLE mesh client sends the first access result to the bridge function module.
  • Step 1016 the bridging function module sends a second access result to the virtual OCF server, where the second access result is an access result conforming to the OCF protocol specification generated after converting the first access result based on the BLE mesh protocol.
  • Step 1017 the virtual OCF server sends the second access result to the OCF client.
  • the encoding scheme of the OCF resource address is introduced through an exemplary embodiment.
  • the resource address of the first OCF resource includes: a first padding bit, a second padding bit, a third padding bit, and a fourth padding bit; wherein the first padding bit is used to pad the representation information of the object; the second padding bit The padding bit is used to pad the identification information of the first object; the third padding bit is used to pad the representation information of the service type to which the object belongs; and the fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
  • the first padding bit is used to pad the representation information of the service cluster; the second padding bit is used to pad the identification information of the service cluster; the third padding bit is used to pad the endpoint to which the service cluster belongs ; the fourth padding bit is used to fill in the identification information of the endpoint to which the service cluster belongs.
  • the first padding bit is used to pad the representation information of the service model; the second padding bit is used to pad the identification information of the service model; the third padding bit is used to pad the service model Representation information of the element to which it belongs; the fourth padding bit is used to fill the identification information of the element to which the service model belongs.
  • any two adjacent padding bits have a separator, and the separator is used to distinguish different padding bits.
  • the OCF resource URL can be expressed as "/app/x2/res/x3", from left to right: app corresponds to the third padding bit, x2 corresponds to the fourth padding bit, res corresponds to the first padding bit, and x3 corresponds to The second padding bit, "/" indicates the delimiter.
  • the resource address of the first OCF resource further includes: a fifth padding bit and a sixth padding bit, the fifth padding bit is used to pad the representation information of the communication protocol, and the sixth padding bit is used to pad the identification information of the communication protocol.
  • any two adjacent padding bits have a separator between them.
  • the OCF resource URL can be expressed as "/eco/x1/app/x2/res/x3", from left to right: eco corresponds to the fifth padding bit, x1 corresponds to the sixth padding bit, and app corresponds to the third padding bit , x2 corresponds to the fourth padding bit, res corresponds to the first padding bit, and x3 corresponds to the second padding bit, and "/" represents a separator.
  • x1 zigbee3.0
  • x2 id value of endpoint
  • x3 id value of cluster.
  • the resource address of the first OCF resource includes: a first padding bit and a second padding bit; wherein the first padding bit is used to pad the identification information of the first object; the second padding bit is used to pad the first padding bit Identification information of the service type to which the object belongs.
  • the first padding bit is used to pad the identification information of the service cluster; the second padding bit is used to pad the identification information of the endpoint to which the service cluster belongs.
  • the first padding bit is used to fill in the identification information of the service model; the second padding bit is used to fill in the identification information of the element to which the service model belongs.
  • the OCF resource URL may be expressed as "/x2/x3", from left to right: x2 corresponds to the second padding bit, x3 corresponds to the first padding bit, and "/" represents a separator.
  • the OCF resource URL is "/1/6", indicating that the id value of the endpoint is 1, and the id value of the cluster is 6.
  • the OCF resource URL is "/2/3", indicating that the id value of the element is 2, and the id value of the model is 3.
  • the OCF resource URL may be expressed as "/x2x3", in order from left to right: x2 corresponds to the second padding bit, and x3 corresponds to the first padding bit.
  • x3 id value of model.
  • the length of the first padding bit and the length of the second padding bit is predefined, for example, the length of the first padding bit is 32 bits, and the length of the second padding bit is also 32 bits.
  • the length of the first padding bit and the length of the second padding bit may be pre-defined in combination with the actual situation, and the lengths of the two may be the same or different, which are not limited in this embodiment of the present application.
  • the resource address of the first OCF resource further includes: a third padding bit, which is used to pad the identification information of the communication protocol.
  • a third padding bit which is used to pad the identification information of the communication protocol.
  • the OCF resource URL can be expressed as "/x1/x2x3", from left to right: x1 corresponds to the third padding bit, and x2 corresponds to the first padding bit. Two padding bits, x3 corresponds to the first padding bit.
  • the OCF resource URL can be expressed as "/x1x2x3", from left to right: x1 corresponds to the third padding bit, x2 corresponds to the second padding bit Padding bit, x3 corresponds to the first padding bit.
  • the method provided in this example helps to shorten the length of the OCF resource address, thereby saving the storage overhead and transmission overhead of the OCF resource address.
  • FIG. 11 shows a block diagram of a resource mapping apparatus provided by an embodiment of the present application.
  • the apparatus has the function of implementing the above-mentioned method example on the gateway device side, and the function may be implemented by hardware or by executing corresponding software in hardware.
  • the device may be the gateway device described above, or may be set in the gateway device.
  • the apparatus 1100 may include: a device creation module 1110 , a resource creation module 1120 and an address generation module 1130 .
  • a device creation module 1110 configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual device mapped by the first physical device OCF equipment;
  • a resource creation module 1120 configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first in the first physical device Objects have a mapping relationship;
  • the address generation module 1130 is configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  • the target communication protocol is the BLE Mesh protocol
  • the first OCF resource and the first service model in the first physical device have a mapping relationship.
  • the resource address of the first OCF resource includes:
  • Identification information of the element to which the first service model belongs and identification information of the first service model.
  • the resource address of the first OCF resource further includes:
  • the identification information of the BLE Mesh protocol is the identification information of the BLE Mesh protocol.
  • the first OCF resource and the first service cluster in the first physical device have a mapping relationship.
  • the resource address of the first OCF resource includes:
  • Identification information of the endpoint to which the first service cluster belongs and identification information of the first service cluster.
  • the resource address of the first OCF resource further includes:
  • the identification information of the Zigbee protocol is the identification information of the Zigbee protocol.
  • the apparatus 1110 further includes: a request receiving module, an address mapping module and a request sending module (not shown in FIG. 11 ).
  • a request receiving module configured to receive a first access request sent by an OCF client, where the first access request is a request by the OCF client to access the first OCF resource, and the first access request includes all Describe the resource address of the first OCF resource.
  • the address mapping module is configured to map the resource address of the first OCF resource to the identification information of the first object.
  • a request sending module is configured to send a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes all Describe the identification information of the first object.
  • the resource address of the first OCF resource includes: a first padding bit, a second padding bit, a third padding bit, and a fourth padding bit; wherein,
  • the first padding bit is used to pad the representation information of the object
  • the second filling bit is used to fill the identification information of the first object
  • the third padding bit is used to fill in the representation information of the service type to which the object belongs;
  • the fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
  • any two adjacent padding bits have a separator between them.
  • the resource address of the first OCF resource includes: a first padding bit and a second padding bit; wherein,
  • the first filling bit is used to fill the identification information of the first object
  • the second padding bit is used to pad the identification information of the service type to which the first object belongs.
  • the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • FIG. 12 shows a schematic structural diagram of a gateway device 120 provided by an embodiment of the present application.
  • the gateway device 120 may be used to implement the attribute subscription method of the Zigbee device on the gateway device side.
  • the gateway device 120 may include: a processor 121 , a receiver 122 , a transmitter 123 , a memory 124 and a bus 125 .
  • the processor 121 includes one or more processing cores, and the processor 121 executes various functional applications and information processing by running software programs and modules.
  • the receiver 122 and the transmitter 123 may be implemented as a communication component, which may be a communication chip.
  • the memory 124 is connected to the processor 121 through the bus 125 .
  • the memory 124 can be used to store a computer program, and the processor 121 is used to execute the computer program, so as to implement each step performed by the gateway device in the above method embodiments.
  • memory 124 may be implemented by any type or combination of volatile or non-volatile storage devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Static Anytime Access Memory (SRAM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Programmable Read Only Memory (PROM) .
  • EEPROM electrically erasable programmable Read Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • SRAM Static Anytime Access Memory
  • ROM Read Only Memory
  • Magnetic Memory Magnetic Memory
  • Flash Memory Programmable Read Only Memory
  • the gateway device includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information);
  • the processor is configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual device mapped by the first physical device.
  • OCF equipment OCF equipment
  • the processor is further configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first OCF resource in the first physical device.
  • An object has a mapping relationship;
  • the processor is further configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  • the target communication protocol is the BLE Mesh protocol
  • the first OCF resource and the first service model in the first physical device have a mapping relationship.
  • the resource address of the first OCF resource includes:
  • Identification information of the element to which the first service model belongs and identification information of the first service model.
  • the resource address of the first OCF resource further includes:
  • the identification information of the BLE Mesh protocol is the identification information of the BLE Mesh protocol.
  • the first OCF resource and the first service cluster in the first physical device have a mapping relationship.
  • the resource address of the first OCF resource includes:
  • Identification information of the endpoint to which the first service cluster belongs and identification information of the first service cluster.
  • the resource address of the first OCF resource further includes:
  • the identification information of the Zigbee protocol is the identification information of the Zigbee protocol.
  • the transceiver is configured to receive a first access request sent by an OCF client, where the first access request is a request by the OCF client to access the first OCF resource, so The first access request includes the resource address of the first OCF resource;
  • the processor is further configured to map the resource address of the first OCF resource to the identification information of the first object;
  • the transceiver is further configured to send a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes Including identification information of the first object.
  • the resource address of the first OCF resource includes: a first padding bit, a second padding bit, a third padding bit, and a fourth padding bit; wherein,
  • the first padding bit is used to pad the representation information of the object
  • the second filling bit is used to fill the identification information of the first object
  • the third padding bit is used to fill in the representation information of the service type to which the object belongs;
  • the fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
  • any two adjacent padding bits have a separator between them.
  • the resource address of the first OCF resource includes: a first padding bit and a second padding bit; wherein,
  • the first filling bit is used to fill the identification information of the first object
  • the second padding bit is used to pad the identification information of the service type to which the first object belongs.
  • An exemplary embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to be executed by a processor of a gateway device, so as to realize the resources on the side of the gateway device. mapping method.
  • An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or program instructions, and when the chip runs on a gateway device, is used to implement the above-mentioned resource mapping method on the gateway device side .
  • An exemplary embodiment of the present application further provides a computer program product, which, when the computer program product runs on the gateway device, enables the gateway device to execute the foregoing method for resource mapping on the gateway device side.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage medium can be any available medium that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to the technical field of the Internet of Things. Disclosed are a resource mapping method and apparatus, a device, and a storage medium. The method comprises: creating a first OCF device corresponding to a first physical device, wherein the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual OCF device mapped from the first physical device; creating a first OCF resource on the basis of a mapping relationship between the first OCF device and the first physical device, wherein the first OCF resource has a mapping relationship with a first object in the first physical device; and generating and storing a resource address of the first OCF resource, wherein the resource address of the first OCF resource is used to determine the first object having the mapping relationship with the first OCF resource. In the present application, the relationship between an OCF resource address and an object in a target communication protocol is specified, thereby enhancing the interconnection capacity of an OCF protocol with other standard protocols.

Description

资源映射方法、装置、设备及存储介质Resource mapping method, apparatus, device and storage medium 技术领域technical field
本申请实施例涉及物联网技术领域,特别涉及一种资源映射方法、装置、设备及存储介质。The embodiments of the present application relate to the technical field of the Internet of Things, and in particular, to a resource mapping method, apparatus, device, and storage medium.
背景技术Background technique
物联网(Internet of things,IOT)与人工智能(Artificial Intelligence,AI)的结合日渐紧密。一方面,物联网正在从“连接”走向“智能”;另一方面,人工智能正在从“云端”走向“边缘”,两者正在合力推进物联网走向智联网(Internet of Intelligences)。The Internet of things (IOT) and artificial intelligence (Artificial Intelligence, AI) are increasingly integrated. 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 the two are working together to promote the Internet of Things to the Internet of Intelligences.
全球规模最大的智联网国际标准联盟为OCF(Open Connectivity Foundation,开放式互联基金会),OCF标准支持智能设备之间的搜索与通信,而不受厂商、操作系统、芯片或物理传输的制约,为实现各种物理介质层、传输层和应用层设备间的无缝连接提供了技术规范。OCF拥有灵活广泛的应用场景:首先,OCF客户端(Client)(如手机应用程序)和OCF设备(Server)(如空调)可以进行交互,例如使用手机应用程序可以对空调的开关、温度、模式等信息进行获取和设置;其次,多个OCF客户端可以同时对OCF设备进行控制,例如用户可以在家里通过智能手机、智能电视、智能音箱灵活控制同一个设备;再次,通过桥接(Bridging),OCF客户端可以和其他标准设备进行交互,例如蓝牙、Zigbee(紫蜂)等;最后,OCF设备也可以通过桥接,被其他标准的客户端控制。The world's largest international standards alliance for the Internet of Intelligence is OCF (Open Connectivity Foundation). The OCF standard supports search and communication between smart devices without being restricted by manufacturers, operating systems, chips or physical transmission. It provides technical specifications for realizing seamless connection between various physical medium layer, transport layer and application layer devices. OCF has a wide range of flexible application scenarios: First, the OCF client (Client) (such as a mobile phone application) and OCF device (Server) (such as an air conditioner) can interact. and other information to obtain and set; secondly, multiple OCF clients can control OCF devices at the same time, for example, users can flexibly control the same device at home through smart phones, smart TVs, and smart speakers; again, through bridging (Bridging), OCF clients can interact with other standard devices, such as Bluetooth, Zigbee (Zigbee), etc. Finally, OCF devices can also be bridged and controlled by other standard clients.
但是,目前针对OCF客户端与其他标准设备之间的交互方案,还有待进一步研究。However, the current interaction scheme between the OCF client and other standard devices needs further research.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种资源映射方法、装置、设备及存储介质。所述技术方案如下:Embodiments of the present application provide a resource mapping method, apparatus, device, and storage medium. The technical solution is as follows:
根据本申请实施例的一个方面,提供了一种资源映射方法,应用于网关设备,所述方法包括:According to an aspect of the embodiments of the present application, a resource mapping method is provided, applied to a gateway device, the method includes:
创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;creating a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual OCF device mapped by the first physical device;
基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;creating a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, where the first OCF resource has a mapping relationship with the first object in the first physical device;
生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。A resource address of the first OCF resource is generated and stored, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
根据本申请实施例的一个方面,提供了一种资源映射装置,所述装置包括:According to an aspect of the embodiments of the present application, a resource mapping apparatus is provided, and the apparatus includes:
设备创建模块,用于创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;A device creation module, configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual OCF mapped by the first physical device equipment;
资源创建模块,用于基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;A resource creation module, configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first object in the first physical device has a mapping relationship;
地址生成模块,用于生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。An address generation module, configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
根据本申请实施例的一个方面,提供了一种网关设备,所述网关设备包括处理器、存储器和收发器;According to an aspect of the embodiments of the present application, a gateway device is provided, and the gateway device includes a processor, a memory, and a transceiver;
所述处理器,用于创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;The processor is configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual device mapped by the first physical device. OCF equipment;
所述处理器,还用于基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建 第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;The processor is further configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first OCF resource in the first physical device. An object has a mapping relationship;
所述处理器,还用于生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。The processor is further configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
根据本申请实施例的一个方面,提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现上述资源映射方法。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 to implement the above resource mapping method.
根据本申请实施例的一个方面,提供了一种芯片,所述芯片包括可编程逻辑电路和/或程序指令,当所述芯片在网关设备上运行时,用于实现上述资源映射方法。According to an aspect of the embodiments of the present application, a chip is provided, the chip includes a programmable logic circuit and/or program instructions, and when the chip runs on a gateway device, it is used to implement the above resource mapping method.
根据本申请实施例的一个方面,提供了一种计算机程序产品,当所述计算机程序产品在网关设备上运行时,使得网关设备执行上述资源映射方法。According to an aspect of the embodiments of the present application, a computer program product is provided, which, when the computer program product runs on a gateway device, enables the gateway device to execute the above resource mapping method.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:
通过网关设备建立第一OCF资源和第一物理设备中的第一对象之间的映射关系,生成并存储该第一OCF资源的资源地址,以此用于确定与第一OCF资源具有映射关系的第一对象,规定了OCF资源地址与目标通信协议下对象之间的关系,从而增强了OCF协议与其他标准协议之间的互联互通的能力。A mapping relationship between the first OCF resource and the first object in the first physical device is established by the gateway device, and the resource address of the first OCF resource is generated and stored, so as to determine the mapping relationship with the first OCF resource. The first object specifies the relationship between the OCF resource address and the object under the target communication protocol, thereby enhancing the interconnection capability between the OCF protocol and other standard protocols.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请一个实施例提供的Zigbee设备的设备模型结构的示意图;1 is a schematic diagram of a device model structure of a Zigbee device provided by an embodiment of the present application;
图2是本申请一个实施例提供的通过桥平台实现OCF客户端与Zigbee设备之间交互的示意图;2 is a schematic diagram of realizing the interaction between an OCF client and a Zigbee device through a bridge platform provided by an embodiment of the present application;
图3是本申请一个实施例提供的BLE mesh设备的设备模型结构的示意图;3 is a schematic diagram of a device model structure of a BLE mesh device provided by an embodiment of the present application;
图4是本申请一个实施例提供的通过桥平台实现OCF客户端与BLE mesh设备之间交互的示意图;4 is a schematic diagram of realizing interaction between an OCF client and a BLE mesh device through a bridge platform provided by an embodiment of the present application;
图5是本申请一个实施例提供的实施环境的示意图;5 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
图6是本申请一个实施例提供的网关设备的结构框图;6 is a structural block diagram of a gateway device provided by an embodiment of the present application;
图7是本申请一个实施例提供的资源映射方法的流程图;7 is a flowchart of a resource mapping method provided by an embodiment of the present application;
图8是本申请另一个实施例提供的资源映射方法的流程图;8 is a flowchart of a resource mapping method provided by another embodiment of the present application;
图9是本申请另一个实施例提供的资源映射方法的流程图;9 is a flowchart of a resource mapping method provided by another embodiment of the present application;
图10是本申请另一个实施例提供的资源映射方法的流程图;10 is a flowchart of a resource mapping method provided by another embodiment of the present application;
图11是本申请一个实施例提供的资源映射装置的框图;11 is a block diagram of a resource mapping apparatus provided by an embodiment of the present application;
图12是本申请一个实施例提供的网关设备的结构框图。FIG. 12 is a structural block diagram of a gateway device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
Zigbee是一种低速短距离传输的无线网络协议,Zigbee网络具有大容量、低时延、低功耗、高安全和高稳定等性能,能够搭载全品类设备,为全屋智能、酒店公寓、地产家装、智慧办公等复合型智慧场景提供稳定、安全的局域网通讯。Zigbee is a low-speed and short-distance transmission wireless network protocol. Zigbee network has the characteristics of large capacity, low latency, low power consumption, high security and high stability. Home improvement, smart office and other complex smart scenarios provide stable and secure LAN communication.
图1示出了Zigbee设备的设备模型结构的示意图。Zigbee设备接入网络后,成为Zigbee网络中的一个节点(Node),该节点可能具有多个端点(Endpoint),每个端点下可能存在多个服务集群(Server Cluster,简称“集群”),每个集群下面可能存在多个属性(Attribute),每个属性都具备自己的数据类型和数据内容(Type&Data)。FIG. 1 shows a schematic diagram of a device model structure of a Zigbee device. After the Zigbee device is connected to the network, it becomes a node (Node) in the Zigbee network. The node may have multiple endpoints (Endpoints), and there may be multiple service clusters (Server Cluster, referred to as "cluster") under each endpoint. There may be multiple attributes (Attribute) under a cluster, and each attribute has its own data type and data content (Type&Data).
OCF客户端可以与Zigbee设备之间进行交互。请参考图2,其示出了通过桥平台实现 OCF客户端与Zigbee设备之间的交互。桥平台110中包含如下功能模块:虚拟OCF服务端112、桥接功能模块(Bridging Function)114和虚拟Zigbee客户端116。OCF客户端120与虚拟OCF服务端112之间可以基于OCF协议进行通信,虚拟Zigbee客户端116与Zigbee设备130之间可以基于Zigbee协议进行通信。例如,上述Zigbee协议可以是Zigbee 3.0协议或者也可以是其他已有版本或者后续演进版本的Zigbee协议,本申请实施例对此不作限定。OCF clients can interact with Zigbee devices. Please refer to FIG. 2, which shows the interaction between the OCF client and the Zigbee device through the bridge platform. The bridge platform 110 includes the following functional modules: a virtual OCF server 112 , a bridging function 114 and a virtual Zigbee client 116 . The communication between the OCF client 120 and the virtual OCF server 112 may be based on the OCF protocol, and the communication between the virtual Zigbee client 116 and the Zigbee device 130 may be based on the Zigbee protocol. For example, the above Zigbee protocol may be the Zigbee 3.0 protocol or may also be the Zigbee protocol of another existing version or a subsequent evolution version, which is not limited in this embodiment of the present application.
桥接功能模块114用于实现OCF协议和Zigbee协议之间的转换。例如,桥接功能模块114的作用包括将OCF客户端120发送的基于OCF协议的信息,转换为Zigbee设备130可识别的基于Zigbee协议的信息。另外,桥接功能模块114的作用还可以包括将Zigbee设备130发送的基于Zigbee协议的信息,转换为OCF客户端120可识别的基于OCF协议的信息。The bridge function module 114 is used to realize the conversion between the OCF protocol and the Zigbee protocol. For example, the role of the bridging function module 114 includes converting the information based on the OCF protocol sent by the OCF client 120 into the information based on the Zigbee protocol that can be recognized by the Zigbee device 130 . In addition, the role of the bridging function module 114 may further include converting the Zigbee protocol-based information sent by the Zigbee device 130 into OCF protocol-based information identifiable by the OCF client 120 .
可选地,桥接功能模块114可以建立基于OCF协议的信息与基于Zigbee协议的信息之间的映射关系,以实现对基于OCF协议的信息与基于Zigbee协议的信息之间的转换。如下述表一所示,其示出了Zigbee协议与OCF协议之间的翻译模型。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 the conversion between the information based on the OCF protocol and the information based on the Zigbee protocol. As shown in Table 1 below, it shows the translation model between the Zigbee protocol and the OCF protocol.
表一Table I
Zigbee协议Zigbee Protocol 映射计数map count OCF协议OCF protocol 映射计数map count
节点(Node)Node 11 OCF设备(OCF Device)OCF Device (OCF Device) 11
服务集群(Server Cluster)Server Cluster 11 OCF资源(OCF Resource)OCF Resource nn
属性(Attribute)Attribute 11 OCF资源属性(OCF Resource property)OCF Resource property 11
从上述表一中,可以得到基于Zigbee协议的信息与基于OCF协议的信息之间的3组映射关系,以及每组映射关系中双方的映射计数。基于表一的3组映射关系包括:节点(Node)与OCF设备(OCF Device)之间的映射关系,且该映射关系为1对1的映射关系;服务集群(Server Cluster)与OCF资源(OCF Resource)之间的映射关系,且该映射关系为1对n的映射关系;属性(Attribute)与OCF资源属性(OCF Resource property)之间的映射关系,且该映射关系为1对1的映射关系。From the above Table 1, three sets of mapping relationships between the information based on the Zigbee protocol and the information based on the OCF protocol can be obtained, as well as the mapping counts of both parties in each set of mapping relationships. The three groups of mapping relationships based on Table 1 include: the mapping relationship between a node (Node) and an OCF device (OCF Device), and the mapping relationship is a 1-to-1 mapping relationship; a service cluster (Server Cluster) and an OCF resource (OCF Resource), and the mapping relationship is a 1-to-n mapping relationship; the mapping relationship between attributes (Attribute) and OCF resource attributes (OCF Resource property), and the mapping relationship is a 1-to-1 mapping relationship .
下面,以Zigbee设备为色温灯为例,介绍说明Zigbee协议与OCF协议之间的翻译模型。如下述表二所示:In the following, taking the Zigbee device as the color temperature lamp as an example, the translation model between the Zigbee protocol and the OCF protocol is introduced. As shown in Table 2 below:
表二Table II
Figure PCTCN2020123782-appb-000001
Figure PCTCN2020123782-appb-000001
Figure PCTCN2020123782-appb-000002
Figure PCTCN2020123782-appb-000002
BLE(Bluetooth Low Energy,低功耗蓝牙)相比于早前的经典蓝牙,极大程度地减少设备功耗,目前已经被广泛使用。BLE mesh(星形组网)是被设计用于大规模节点之间互相通信的网络支持,其目标是建立可信安全的网络、全部互通的操作、成熟的生态、满足工业级别的应用,以及支持大规模节点数量的组网。BLE mesh的工作方式是managed flood(有管理的泛洪消息传播),泛洪的方式使消息的传播非常可靠、易于扩展,并且性能可以满足商业与工业市场。Compared with the earlier classic Bluetooth, BLE (Bluetooth Low Energy, Bluetooth Low Energy) greatly reduces the power consumption of the device and has been widely used. BLE mesh (star network) is a network support designed for large-scale nodes to communicate with each other. Its goal is to establish a trusted and secure network, fully interoperable operations, mature ecosystems, and industrial-level applications. Supports networking with a large number of nodes. The way BLE mesh works is managed flood (managed flood message propagation), the flooding way makes the message propagation very reliable, easy to expand, and the performance can meet the commercial and industrial market.
图3示出了BLE mesh设备的设备模型结构的示意图。BLE mesh设备接入网络后,成为BLE mesh网络中的一个节点(Node),该节点可能具有多个元素(Element),每个元素下可能存在多个服务模型(Server Model,简称“模型”),每个模型下面可能存在多个属性(State,或称为“状态”),每个属性都具备自己的数据类型和数据内容(Type&Data)。Figure 3 shows a schematic diagram of the device model structure of a BLE mesh device. After the BLE mesh device is connected to the network, it becomes a node (Node) in the BLE mesh network. The node may have multiple elements (Element), and there may be multiple service models (Server Model, referred to as "model") under each element. , there may be multiple attributes (State, or "state") under each model, and each attribute has its own data type and data content (Type&Data).
OCF客户端可以与BLE mesh设备之间进行交互。请参考图4,其示出了通过桥平台实现OCF客户端与BLE mesh设备之间的交互。桥平台110中包含如下功能模块:虚拟OCF服务端112、桥接功能模块(Bridging Function)114和虚拟BLE mesh客户端118。OCF客户端120与虚拟OCF服务端112之间可以基于OCF协议进行通信,虚拟BLE mesh客户端118与BLE mesh设备140之间可以基于BLE mesh协议进行通信。OCF clients can interact with BLE mesh devices. Please refer to Figure 4, which shows the interaction between the OCF client and the BLE mesh device through the bridge platform. The bridge platform 110 includes the following functional modules: a virtual OCF server 112 , a bridging function module (Bridging Function) 114 and a virtual BLE mesh client 118 . Communication between the OCF client 120 and the virtual OCF server 112 may be based on the OCF protocol, and communication between the virtual BLE mesh client 118 and the BLE mesh device 140 may be based on the BLE mesh protocol.
桥接功能模块114用于实现OCF协议和BLE mesh协议之间的转换。例如,桥接功能模块114的作用包括将OCF客户端120发送的基于OCF协议的信息,转换为BLE mesh设备140可识别的基于BLE mesh协议的信息。另外,桥接功能模块114的作用还可以包括将BLE mesh设备140发送的基于BLE mesh协议的信息,转换为OCF客户端120可识别的基于OCF协议的信息。The bridge function module 114 is used to realize the conversion between the OCF protocol and the BLE mesh protocol. For example, the role of the bridge function module 114 includes converting the information based on the OCF protocol sent by the OCF client 120 into information based on the BLE mesh protocol that can be recognized by the BLE mesh device 140. In addition, the role of the bridging function module 114 may also include converting the information based on the BLE mesh protocol sent by the BLE mesh device 140 into information based on the OCF protocol identifiable by the OCF client 120.
可选地,桥接功能模块114可以建立基于OCF协议的信息与基于BLE mesh协议的信息之间的映射关系,以实现对基于OCF协议的信息与基于BLE mesh协议的信息之间的转换。如下述表三所示,其示出了BLE mesh协议与OCF协议之间的翻译模型。Optionally, the bridging function module 114 can establish a mapping relationship between the information based on the OCF protocol and the information based on the BLE mesh protocol, so as to realize the conversion between the information based on the OCF protocol and the information based on the BLE mesh protocol. As shown in Table 3 below, it shows the translation model between the BLE mesh protocol and the OCF protocol.
表三Table 3
BLE mesh协议BLE mesh protocol 映射计数map count OCF协议OCF protocol 映射计数map count
节点(Node)Node 11 OCF设备(OCF Device)OCF Device (OCF Device) 11
服务模型(Server Model)Server Model 11 OCF资源(OCF Resource)OCF Resource 11
属性(State)Properties (State) 11 OCF资源属性(OCF Resource property)OCF Resource property 11
从上述表三中,可以得到基于BLE mesh协议的信息与基于OCF协议的信息之间的3组映射关系,以及每组映射关系中双方的映射计数。基于表三的3组映射关系包括:节点(Node)与OCF设备(OCF Device)之间的映射关系,且该映射关系为1对1的映射关系;服务模型(Server Model)与OCF资源(OCF Resource)之间的映射关系,且该映射关系为1对1的映射关系;属性(State)与OCF资源属性(OCF Resource property)之间的映射关系,且该映射关系为1对1的映射关系。From the above Table 3, three sets of mapping relationships between the information based on the BLE mesh protocol and the information based on the OCF protocol can be obtained, as well as the mapping counts of both parties in each set of mapping relationships. The three groups of mapping relationships based on Table 3 include: the mapping relationship between the node (Node) and the OCF device (OCF Device), and the mapping relationship is a 1-to-1 mapping relationship; the service model (Server Model) and the OCF resource (OCF Resource), and the mapping relationship is a 1-to-1 mapping relationship; the mapping relationship between attributes (State) and OCF resource properties (OCF Resource property), and the mapping relationship is a 1-to-1 mapping relationship .
下面,以BLE mesh设备为色温灯为例,介绍说明BLE mesh协议与OCF协议之间的翻译模型。如下述表四所示:Next, take the BLE mesh device as the color temperature lamp as an example to introduce the translation model between the BLE mesh protocol and the OCF protocol. As shown in Table 4 below:
表四Table 4
Figure PCTCN2020123782-appb-000003
Figure PCTCN2020123782-appb-000003
Figure PCTCN2020123782-appb-000004
Figure PCTCN2020123782-appb-000004
上述Zigbee协议与OCF协议之间的翻译模型,以及BLE mesh协议与OCF协议之间的翻译模型,只规定OCF资源与Zigbee集群(Cluster)和BLE mesh模型(Model)之间的映射关系。在本申请实施例中,规定了OCF资源地址与Zigbee集群(Cluster)和BLE mesh模型(Model)之间的关系,从而增强了OCF协议与其他标准协议之间的互联互通的能力。The translation model between the Zigbee protocol and the OCF protocol, and the translation model between the BLE mesh protocol and the OCF protocol, only specify the mapping relationship between OCF resources and the Zigbee cluster (Cluster) and the BLE mesh model (Model). In the embodiment of the present application, the relationship between the OCF resource address and the Zigbee cluster (Cluster) and the BLE mesh model (Model) is specified, thereby enhancing the interconnection capability between the OCF protocol and other standard protocols.
下面,将通过几个实施例,对本申请技术方案进行介绍说明。Hereinafter, the technical solutions of the present application will be introduced and described through several embodiments.
请参考图5,其示出了本申请一个实施例提供的实施环境的示意图,该实施环境可以包括:终端210、Zigbee设备/BLE mesh设备220和网关设备230。该实施环境可以是一个智联网系统。Please refer to FIG. 5 , which shows a schematic diagram of an implementation environment provided by an embodiment of the present application. The implementation environment may include: a terminal 210 , a Zigbee device/BLE mesh device 220 , and a gateway device 230 . The implementation environment may be an intelligent networked system.
终端210可以包括各种具有无线通信功能的手持设备(如手机、平板电脑等)、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其它处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,本申请实施例中,上面提到的设备统称为终端。The terminal 210 may include various handheld devices with wireless communication functions (such as mobile phones, tablet computers, etc.), in-vehicle devices, wearable devices, computing devices, or other processing devices connected to wireless modems, and various forms of user equipment (User Equipment). Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) and so on. For convenience of description, in the embodiments of the present application, the devices mentioned above are collectively referred to as terminals.
Zigbee设备/BLE mesh设备220是指Zigbee组网/BLE mesh组网下具备网络接入能力的智联网设备,如Zigbee设备/BLE mesh设备220可以是智能家居设备、终端设备,或者其它具备网络接入能力的设备,本申请实施例对此不作限定。在一个示例中,以实施环境为家庭智联网系统为例,Zigbee设备/BLE mesh设备220可以是智能电视、智能音箱、智能空调、智能电灯、智能门窗、智能窗帘、智能插座等智能家居设备。Zigbee device/BLE mesh device 220 refers to a smart networking device with network access capability under Zigbee networking/BLE mesh networking, such as Zigbee device/BLE mesh device 220 can be a smart home device, terminal device, or other devices with network access. This 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/BLE mesh device 220 may be smart home devices such as smart TVs, smart speakers, smart air conditioners, smart lights, smart doors and windows, smart curtains, and smart sockets.
网关设备230又称为网间连接器、协议转换器,是多个网络间提供数据转换服务的计算机系统或设备。在使用不同的通信协议、数据格式或语言,甚至体系结构完全不同的两种系统或设备之间,网关设备相当于一个翻译器,网关设备可以对收到的信息进行解析,并重新打包发送给目的系统或目的设备,以适应目的系统或目的设备的需求,同时网关设备也可以起到过滤和安全的作用。The gateway device 230 is also referred to as a network connector and a protocol converter, and is a computer system or device that provides data conversion services between multiple networks. Between two systems or devices that use different communication protocols, data formats or languages, or even have completely different architectures, the gateway device is equivalent to a translator. The gateway device can parse the received information, and repackage and send it to The destination system or destination device can meet the needs of the destination system or destination device, and the gateway device can also play the role of filtering and security.
以OCF客户端211对Zigbee设备/BLE mesh设备220的访问过程为例,网关设备230分别连接终端210和Zigbee设备/BLE mesh设备220,且终端210中安装运行有OCF客户端211,该OCF客户端211可以通过网关设备230对Zigbee设备/BLE mesh设备220进行访问。例如,用户通过操作终端210上运行的OCF客户端211,向网关设备230发送访问请求,该访问请求是基于OCF协议的信息,网关设备230收到该访问请求后,转换该访问请求,转换后的访问请求是基于Zigbee协议/BLE mesh协议的信息,然后网关设备230将该转换后的访问请求发送给Zigbee设备/BLE mesh设备220,从而完成OCF客户端211对Zigbee设备/BLE mesh 设备220的访问过程。Taking the access process of the OCF client 211 to the Zigbee device/BLE mesh device 220 as an example, the gateway device 230 is connected to the terminal 210 and the Zigbee device/BLE mesh device 220 respectively, and the OCF client 211 is installed and running in the terminal 210. The OCF client The terminal 211 can access the Zigbee device/BLE mesh device 220 through the gateway device 230. For example, the user sends an access request to the gateway device 230 by operating the OCF client 211 running on the terminal 210. The access request is information based on the OCF protocol. After receiving the access request, the gateway device 230 converts the access request. The access request is based on the information of the Zigbee protocol/BLE mesh protocol, and then the gateway device 230 sends the converted access request to the Zigbee device/BLE mesh device 220, thereby completing the OCF client 211 to the Zigbee device/BLE mesh device 220. access process.
需要说明的一点是,本申请实施例中,OCF客户端对Zigbee设备/BLE mesh设备的“访问”包括“获取”和“设置”两种方式,“获取”是指OCF客户端获知Zigbee设备/BLE mesh设备的状态等,“设置”是指OCF客户端对Zigbee设备/BLE mesh设备的状态进行选择、设置、更新等。此外,在本申请实施例中,OCF客户端对Zigbee设备/BLE mesh设备的“访问”又可以称为OCF客户端对Zigbee设备/BLE mesh设备的“操作”,但本领域技术人员可以理解其含义。It should be noted that, in the embodiment of this application, the "access" of the OCF client to the Zigbee device/BLE mesh device includes two methods: "acquisition" and "setting". The status of the BLE mesh device, etc. "Settings" refers to the OCF client to select, set, and update the status of the Zigbee device/BLE mesh device. In addition, in this embodiment of the present application, the "access" of the OCF client to the Zigbee device/BLE mesh device may also be referred to as the "operation" of the OCF client to the Zigbee device/BLE mesh device, but those skilled in the art can understand that meaning.
请参考图6,其示出了本申请一个实施例提供的网关设备的结构框图。如图6所示,网关设备300包括虚拟OCF服务端310、桥接功能模块320,以及虚拟Zigbee客户端/虚拟BLE mesh客户端330。Please refer to FIG. 6 , which shows a structural block diagram of a gateway device provided by an embodiment of the present application. As shown in FIG. 6 , the gateway device 300 includes a virtual OCF server 310, a bridge function module 320, and a virtual Zigbee client/virtual BLE mesh client 330.
虚拟OCF服务端310是网关设备300中用于与OCF客户端301进行交互的功能模块,虚拟OCF服务端310与OCF客户端301之间基于OCF协议进行交互。The virtual OCF server 310 is a functional module in the gateway device 300 for interacting with the OCF client 301 , and the virtual OCF server 310 and the OCF client 301 interact based on the OCF protocol.
虚拟Zigbee客户端/虚拟BLE mesh客户端330是网关设备300中用于与Zigbee设备/BLE mesh设备302进行交互的功能模块,虚拟Zigbee客户端/虚拟BLE mesh客户端330与Zigbee设备/BLE mesh设备302之间基于Zigbee协议/BLE mesh协议进行交互。Zigbee设备/BLE mesh设备302可以作为Zigbee服务端/BLE mesh服务端,接收来自虚拟Zigbee客户端/虚拟BLE mesh客户端330的访问请求。The virtual Zigbee client/virtual BLE mesh client 330 is a functional module in the gateway device 300 for interacting with the Zigbee device/BLE mesh device 302, and the virtual Zigbee client/virtual BLE mesh client 330 communicates with the Zigbee device/BLE mesh device The interaction between 302 is based on the Zigbee protocol/BLE mesh protocol. The Zigbee device/BLE mesh device 302 can act as a Zigbee server/BLE mesh server and receive an access request from a virtual Zigbee client/virtual BLE mesh client 330.
桥接功能模块320是网关设备300中用于实现两种不同协议信息之间的转换的功能模块,即桥接功能模块320用于将基于OCF协议的信息转换为基于Zigbee协议/BLE mesh协议的信息,或者用于将基于Zigbee协议/BLE mesh协议的信息转换为基于OCF协议的信息。The bridging functional module 320 is a functional module used to realize the conversion between two different protocol information in the gateway device 300, that is, the bridging functional module 320 is used to convert the information based on the OCF protocol into the information based on the Zigbee protocol/BLE mesh protocol, Or used to convert information based on Zigbee protocol/BLE mesh protocol to information based on OCF protocol.
在一个示例中,当OCF客户端301发起对Zigbee设备/BLE mesh设备302的访问请求时,OCF客户端301先向网关设备300发送第一访问请求,该第一访问请求是基于OCF协议的信息,然后由网关设备300中的虚拟OCF服务端310接收该第一访问请求,桥接功能模块320将该第一访问请求转换为第二访问请求,该第二访问请求是基于Zigbee协议/BLE mesh协议的信息,接着由网关设备300中的虚拟Zigbee客户端/虚拟BLE mesh客户端330向Zigbee设备/BLE mesh设备302发送第二访问请求,以完成OCF客户端301对Zigbee设备/BLE mesh设备302的访问。In an example, when the OCF client 301 initiates an access request to the Zigbee device/BLE mesh device 302, the OCF client 301 first sends a first access request to the gateway device 300, where the first access request is information based on the OCF protocol , then the virtual OCF server 310 in the gateway device 300 receives the first access request, and the bridging function module 320 converts the first access request into a second access request, and the second access request is based on the Zigbee protocol/BLE mesh protocol Then, the virtual Zigbee client/virtual BLE mesh client 330 in the gateway device 300 sends a second access request to the Zigbee device/BLE mesh device 302 to complete the OCF client 301 to the Zigbee device/BLE mesh device 302. access.
另外,网关设备300也可以称为桥平台,用于实现OCF客户端301与Zigbee设备/BLE mesh设备302之间的交互功能。In addition, the gateway device 300 can also be called a bridge platform, which is used to realize the interaction function between the OCF client 301 and the Zigbee device/BLE mesh device 302.
请参考图7,其示出了本申请一个实施例提供的资源映射方法的流程图,该方法可以应用于网关设备中。该方法可以包括如下几个步骤(710~730):Please refer to FIG. 7 , which shows a flowchart of a resource mapping method provided by an embodiment of the present application, and the method can be applied to a gateway device. The method may include the following steps (710-730):
步骤710,创建与第一物理设备对应的第一OCF设备,该第一物理设备是基于目标通信协议的设备,第一OCF设备是第一物理设备映射的虚拟OCF设备。Step 710: Create a first OCF device corresponding to the first physical device, where the first physical device is a device based on the target communication protocol, and the first OCF device is a virtual OCF device mapped by the first physical device.
可选地,目标通信协议可以是某一种无线通信协议,如Zigbee协议或BLE mesh协议。Optionally, the target communication protocol can be a certain wireless communication protocol, such as Zigbee protocol or BLE mesh protocol.
步骤720,基于第一OCF设备与第一物理设备之间的映射关系,创建第一OCF资源,第一OCF资源和第一物理设备中的第一对象具有映射关系。Step 720: Create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, and the first OCF resource and the first object in the first physical device have a mapping relationship.
在本申请实施例中,OCF资源与基于目标通信协议的物理设备中的对象之间具有映射关系。可选地,该映射关系可以是一对一的映射关系,即一个OCF资源对应于一个对象,不同的OCF资源对应于不同的对象。In this embodiment of the present application, there is a mapping relationship between the OCF resource and the object in the physical device based on the target communication protocol. Optionally, the mapping relationship may be a one-to-one mapping relationship, that is, one OCF resource corresponds to one object, and different OCF resources correspond to different objects.
当然,在一些其他示例中,该映射关系也可以是一对多的映射关系,即一个OCF资源对应于多个对象,多个不同的对象可以对应到同一个OCF资源;或者,该映射关系还可以是多对一的映射关系,即一个对象对应于多个OCF资源,本申请实施例对此不作限定。Of course, in some other examples, the mapping relationship may also be a one-to-many mapping relationship, that is, one OCF resource corresponds to multiple objects, and multiple different objects may correspond to the same OCF resource; or, the mapping relationship also It may be a many-to-one mapping relationship, that is, one object corresponds to multiple OCF resources, which is not limited in this embodiment of the present application.
步骤730,生成并存储第一OCF资源的资源地址,该第一OCF资源的资源地址用于确定与第一OCF资源具有映射关系的第一对象。Step 730: Generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine a first object that has a mapping relationship with the first OCF resource.
例如,在网关设备接收到的操作请求中包含第一OCF资源的资源地址的情况下,网关设备即可确定需要对该第一OCF资源对应的第一对象执行相关操作。第一OCF资源的资源地址用于对该第一OCF资源起到唯一标识的作用,不同的OCF资源具有不同的资源地址。例如资源地址可以是一个URL(Uniform Resource Locator,统一资源定位符)。For example, if the operation request received by the gateway device includes the resource address of the first OCF resource, the gateway device may determine that the first object corresponding to the first OCF resource needs to perform a relevant operation. The resource address of the first OCF resource is used to uniquely identify the first OCF resource, and different OCF resources have different resource addresses. For example, the resource address can be a URL (Uniform Resource Locator).
可选地,网关设备可以根据第一对象的标识信息,生成第一OCF资源的资源地址。当然,在其他示例中,网关设备也可以采用其他方式生成第一OCF资源的资源地址,只要该资源地址能够起到对OCF的唯一标识作用即可,本申请实施例对此不作限定。Optionally, the gateway device may generate the resource address of the first OCF resource according to the identification information of the first object. Of course, in other examples, the gateway device may also generate the resource address of the first OCF resource in other manners, as long as the resource address can play a role of uniquely identifying the OCF, which is not limited in this embodiment of the present application.
在一个示例中,在目标通信协议为Zigbee协议的情况下,也即第一物理设备为第一Zigbee设备的情况下,第一OCF资源和第一物理设备中的第一服务集群具有映射关系。相应地,第一OCF资源的资源地址包括:第一服务集群所属的端点的标识信息,以及第一服务集群的标识信息。例如,假设第一服务集群是第一Zigbee设备下Endpoint 1(即id为1的端点)下的Cluster 6(即id为6的集群),那么第一OCF资源的资源地址中可以包括Endpoint 1的标识信息以及Cluster 6的标识信息。其中,端点的标识信息用于对端点起到唯一标识作用,在同一Zigbee设备下的不同端点,具有不同的标识信息;服务集群的标识信息用于对服务集群起到唯一标识作用,在同一端点下的不同服务集群,具有不同的标识信息。示例性地,第一OCF资源的资源地址可以表示为“/ep/1/cluster/6”,ep表示端点,1表示端点的id值,cluster表示服务集群,6表示服务集群的id值。In an example, when the target communication protocol is the Zigbee protocol, that is, when the first physical device is the first Zigbee device, the first OCF resource and the first service cluster in the first physical device have a mapping relationship. Correspondingly, the resource address of the first OCF resource includes: identification information of the endpoint to which the first service cluster belongs, and identification information of the first service cluster. For example, assuming that the first service cluster is Cluster 6 (that is, the cluster with id 6) under Endpoint 1 (that is, the endpoint whose id is 1) under the first Zigbee device, the resource address of the first OCF resource may include the address of Endpoint 1. Identification information and identification information of Cluster 6. Among them, the identification information of the endpoint is used to uniquely identify the endpoint. Different endpoints under the same Zigbee device have different identification information; the identification information of the service cluster is used to uniquely identify the service cluster. Different service clusters under the command line have different identification information. Exemplarily, the resource address of the first OCF resource may be represented as "/ep/1/cluster/6", where ep represents the endpoint, 1 represents the id value of the endpoint, cluster represents the service cluster, and 6 represents the id value of the service cluster.
可选地,第一OCF资源的资源地址还包括:Zigbee协议的标识信息。示例性地,第一OCF资源的资源地址可以表示为“/eco/zigbee3.0/ep/1/cluster/6”,eco表示通信协议,zigbee3.0表示通信协议的标识信息(即代表是zigbee3.0协议),ep表示端点,1表示端点的id值,cluster表示服务集群,6表示服务集群的id值。Optionally, the resource address of the first OCF resource further includes: identification information of the Zigbee protocol. Exemplarily, the resource address of the first OCF resource can be represented as "/eco/zigbee3.0/ep/1/cluster/6", eco represents the communication protocol, and zigbee3.0 represents the identification information of the communication protocol (that is, the representative is zigbee3. .0 protocol), ep represents the endpoint, 1 represents the id value of the endpoint, cluster represents the service cluster, and 6 represents the id value of the service cluster.
在另一个示例中,在目标通信协议为BLE Mesh协议的情况下,也即第一物理设备为第一BLE mesh设备的情况下,第一OCF资源和第一物理设备中的第一服务模型具有映射关系。相应地,第一OCF资源的资源地址包括:第一服务模型所属的元素的标识信息,以及第一服务模型的标识信息。例如,假设第一服务模型是第一BLE mesh设备下Element 2(即id为2的元素)下的Model 3(即id为3的模型),那么第一OCF资源的资源地址中可以包括Element2的标识信息以及Model 3的标识信息。其中,元素的标识信息用于对元素起到唯一标识作用,在同一BLE mesh设备下的不同元素,具有不同的标识信息;服务模型的标识信息用于对服务模型起到唯一标识作用,在同一元素下的不同服务模型,具有不同的标识信息。示例性地,第一OCF资源的资源地址可以表示为“/ele/2/model/3”,ele表示元素,2表示元素的id值,model表示服务模型,3表示服务模型的id值。In another example, when the target communication protocol is the BLE Mesh protocol, that is, when the first physical device is the first BLE mesh device, the first OCF resource and the first service model in the first physical device have Mapping relations. Correspondingly, the resource address of the first OCF resource includes: identification information of the element to which the first service model belongs, and identification information of the first service model. For example, assuming that the first service model is Model 3 (that is, the model with id 3) under Element 2 (that is, the element with id 2) under the first BLE mesh device, the resource address of the first OCF resource can include Element2's Identification information and the identification information of Model 3. Among them, the identification information of the element is used to uniquely identify the element. Different elements under the same BLE mesh device have different identification information; the identification information of the service model is used to uniquely identify the service model. Different service models under the element have different identification information. Exemplarily, the resource address of the first OCF resource may be represented as "/ele/2/model/3", where ele represents an element, 2 represents an id value of the element, model represents a service model, and 3 represents an id value of the service model.
可选地,第一OCF资源的资源地址还包括:BLE Mesh协议的标识信息。示例性地,第一OCF资源的资源地址可以表示为“/eco/blemesh/ele/2/model/3”,eco表示通信协议,blemesh表示通信协议的标识信息(即代表是BLE mesh协议),ele表示元素,2表示元素的id值,model表示服务模型,3表示服务模型的id值。Optionally, the resource address of the first OCF resource further includes: identification information of the BLE Mesh protocol. Exemplarily, the resource address of the first OCF resource may be represented as "/eco/blemesh/ele/2/model/3", where eco represents a communication protocol, and blemesh represents identification information of the communication protocol (that is, it represents the BLE mesh protocol), ele represents the element, 2 represents the id value of the element, model represents the service model, and 3 represents the id value of the service model.
在示例性实施例中,如图8所示,上述步骤730之后还包括如下步骤(740~760):In an exemplary embodiment, as shown in FIG. 8 , the above step 730 further includes the following steps (740-760):
步骤740,接收OCF客户端发送的第一访问请求,该第一访问请求是OCF客户端对第一OCF资源进行访问的请求,该第一访问请求中包括第一OCF资源的资源地址。Step 740: Receive a first access request sent by the OCF client, where the first access request is a request by the OCF client to access the first OCF resource, and the first access request includes the resource address of the first OCF resource.
可选地,第一访问请求中还包括操作类型指示信息,用于指示对该第一OCF资源所执行的操作。示例性地,对第一OCF资源可执行的操作包括但不限于以下至少一种:读取、更新、删除、订阅等等。Optionally, the first access request further includes operation type indication information, which is used to indicate the operation performed on the first OCF resource. Exemplarily, the operations that can be performed on the first OCF resource include, but are not limited to, at least one of the following: read, update, delete, subscribe, and so on.
步骤750,将第一OCF资源的资源地址,映射为第一对象的标识信息。Step 750: Map the resource address of the first OCF resource to the identification information of the first object.
网关设备在接收到第一访问请求之后,解析该第一访问请求,得到第一OCF资源的资源地址,这就知道了OCF客户端想要对第一OCF资源进行访问。可选地,还读取请求中携带的操作类型指示信息,以此获知需要对该第一OCF资源所执行的操作。然后,网关设备将第 一OCF资源的资源地址,映射为第一对象的标识信息,生成并向第一物理设备发送第二访问请求。After receiving the first access request, the gateway device parses the first access request and obtains the resource address of the first OCF resource, thus knowing that the OCF client wants to access the first OCF resource. Optionally, the operation type indication information carried in the request is also read, so as to know the operation that needs to be performed on the first OCF resource. Then, the gateway device maps the resource address of the first OCF resource to the identification information of the first object, and generates and sends a second access request to the first physical device.
步骤760,向第一物理设备发送第二访问请求,该第二访问请求是网关设备对第一对象进行访问的请求,该第二访问请求中包括第一对象的标识信息。Step 760: Send a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes identification information of the first object.
可选地,第一访问请求中还包括操作类型指示信息,用于指示对该第一对象所执行的操作。示例性地,对第一对象可执行的操作包括但不限于以下至少一种:读取、更新、删除、订阅等等。Optionally, the first access request further includes operation type indication information, which is used to indicate the operation performed on the first object. Exemplarily, the operations that can be performed on the first object include, but are not limited to, at least one of the following: read, update, delete, subscribe, and so on.
综上所述,本申请实施例提供的技术方案,通过网关设备建立第一OCF资源和第一物理设备中的第一对象之间的映射关系,生成并存储该第一OCF资源的资源地址,以此用于确定与第一OCF资源具有映射关系的第一对象,规定了OCF资源地址与目标通信协议下对象之间的关系,从而增强了OCF协议与其他标准协议之间的互联互通的能力。To sum up, in the technical solutions provided by the embodiments of the present application, a mapping relationship between the first OCF resource and the first object in the first physical device is established through the gateway device, and the resource address of the first OCF resource is generated and stored, This is used to determine the first object that has a mapping relationship with the first OCF resource, and specifies the relationship between the OCF resource address and the object under the target communication protocol, thereby enhancing the ability of the OCF protocol to interconnect with other standard protocols. .
例如,规定了OCF资源地址与Zigbee集群(Cluster)和BLE mesh模型(Model)之间的关系,从而增强了OCF协议与Zigbee协议/BLE mesh协议之间的互联互通的能力。For example, the relationship between the OCF resource address and the Zigbee cluster (Cluster) and the BLE mesh model (Model) is specified, thereby enhancing the interconnectivity between the OCF protocol and the Zigbee protocol/BLE mesh protocol.
需要说明的一点是,在本申请实施例中,只针对功能性资源URL进行关系映射,对于OCF特定资源类型URL不做此映射处理(特定资源URL,如“/oic/res”、“/oic/d”、“/oic/p”等。It should be noted that, in this embodiment of the present application, only relationship mapping is performed for functional resource URLs, and no such mapping processing is performed for OCF specific resource type URLs (specific resource URLs, such as "/oic/res", "/oic" /d", "/oic/p", etc.
请参考图9,其示出了本申请另一个实施例提供的资源映射方法的流程图,该方法可以应用于图5所示的实施环境中。在本实施例中,规定了OCF资源地址与Zigbee集群(Cluster)之间的关系。该方法可以包括如下几个步骤(901~917):Please refer to FIG. 9 , which shows a flowchart of a resource mapping method provided by another embodiment of the present application, and the method can be applied to the implementation environment shown in FIG. 5 . In this embodiment, the relationship between the OCF resource address and the Zigbee cluster (Cluster) is specified. The method may include the following steps (901-917):
步骤901,虚拟Zigbee客户端发现第一Zigbee设备。Step 901, the virtual Zigbee client discovers the first Zigbee device.
步骤902,虚拟Zigbee客户端与第一Zigbee设备建立连接。Step 902, the virtual Zigbee client establishes a connection with the first Zigbee device.
步骤903,虚拟Zigbee客户端向桥接功能模块发送映射关系建立请求,该映射关系建立请求用于请求建立第一Zigbee设备到第一OCF设备之间的映射关系,该第一OCF设备是第一Zigbee设备映射的虚拟OCF设备。Step 903, the virtual Zigbee client sends a mapping relationship establishment request to the bridging function module, where the mapping relationship establishment request is used to request the establishment of a mapping relationship between the first Zigbee device and the first OCF device, where the first OCF device is the first Zigbee device Device-mapped virtual OCF device.
步骤904,桥接功能模块设置OCF资源到第一Zigbee设备的服务集群之间的映射关系。Step 904, the bridging function module sets the mapping relationship between the OCF resource and the service cluster of the first Zigbee device.
桥接功能模块根据Zigbee协议的数据模型结构特点,设置对应OCF资源URL。例如,对于Zigbee 3.0设备而言,当设备Endpoint(id值为1)下的Cluster(id值为6)与OCF资源建立映射关系时,该OCF资源URL可设置为/ep/1/cluster/6。The bridge function module sets the corresponding OCF resource URL according to the data model structure characteristics of the Zigbee protocol. For example, for a Zigbee 3.0 device, when a Cluster (id value 6) under the device Endpoint (id value 1) establishes a mapping relationship with an OCF resource, the OCF resource URL can be set to /ep/1/cluster/6 .
步骤905,桥接功能模块向虚拟OCF服务端发送虚拟OCF设备创建请求,该虚拟OCF设备创建请求用于请求创建与第一Zigbee设备映射的虚拟OCF设备(即第一OCF设备)。Step 905, the bridging function module sends a virtual OCF device creation request to the virtual OCF server, where the virtual OCF device creation request is used to request to create a virtual OCF device (ie, the first OCF device) mapped with the first Zigbee device.
步骤906,虚拟OCF服务端创建第一OCF设备,基于OCF资源地址创建OCF资源。Step 906, the virtual OCF server creates a first OCF device, and creates an OCF resource based on the OCF resource address.
步骤907,OCF客户端向虚拟OCF服务端发送设备资源获取请求,该设备资源获取请求用于请求获取虚拟OCF服务端创建的OCF资源的相关信息。Step 907: The OCF client sends a device resource acquisition request to the virtual OCF server, where the device resource acquisition request is used to request to acquire related information of the OCF resource created by the virtual OCF server.
例如,获取虚拟OCF服务端创建的各个OCF资源的资源地址、资源访问策略等信息。For example, obtain information such as resource addresses and resource access policies of each OCF resource created by the virtual OCF server.
步骤908,虚拟OCF服务端向OCF客户端发送OCF资源的相关信息。Step 908, the virtual OCF server sends the related information of the OCF resource to the OCF client.
步骤909,OCF客户端向虚拟OCF服务端发送第一访问请求,该第一访问请求中包括所要访问的第一OCF资源的资源地址。Step 909, the OCF client sends a first access request to the virtual OCF server, where the first access request includes the resource address of the first OCF resource to be accessed.
例如,第一访问请求中包括/ep/1/cluster/6。For example, the first access request includes /ep/1/cluster/6.
步骤910,虚拟OCF服务端向桥接功能模块发送资源地址解析请求,该资源地址解析请求用于请求对资源地址进行解析,该资源地址解析请求中包括待解析的资源地址(即上述第一OCF资源的资源地址)。Step 910, the virtual OCF server sends a resource address resolution request to the bridging function module, the resource address resolution request is used for requesting to resolve the resource address, and the resource address resolution request includes the resource address to be resolved (that is, the above-mentioned first OCF resource). resource address).
步骤911,桥接功能模块确定与待解析的资源地址对应的服务集群的标识信息,如第一OCF资源对应于第一服务集群。Step 911, the bridging function module determines the identification information of the service cluster corresponding to the resource address to be resolved, for example, the first OCF resource corresponds to the first service cluster.
桥接功能模块根据待解析的资源地址,确定要访问的是Zigbee 3.0设备的哪个Endpoint 下的哪个Cluster。例如,第一访问请求中包括/ep/1/cluster/6,则确定要访问的是Zigbee 3.0设备下Endpoint 1下的Cluster 6。The bridging function module determines which Cluster under which Endpoint of the Zigbee 3.0 device is to be accessed according to the resource address to be resolved. For example, if the first access request includes /ep/1/cluster/6, it is determined that the one to be accessed is Cluster 6 under Endpoint 1 under the Zigbee 3.0 device.
步骤912,桥接功能模块向虚拟Zigbee客户端发送访问第一服务集群的请求,该请求中可以包括第一服务集群的标识信息。Step 912, the bridging function module sends a request for accessing the first service cluster to the virtual Zigbee client, where the request may include identification information of the first service cluster.
步骤913,虚拟Zigbee客户端向第一Zigbee设备发送第二访问请求,该第二访问请求中包括所要访问的第一服务集群的标识信息。Step 913: The virtual Zigbee client sends a second access request to the first Zigbee device, where the second access request includes identification information of the first service cluster to be accessed.
步骤914,第一Zigbee设备向虚拟Zigbee客户端发送第一访问结果。Step 914, the first Zigbee device sends the first access result to the virtual Zigbee client.
步骤915,虚拟Zigbee客户端向桥接功能模块发送第一访问结果。Step 915, the virtual Zigbee client sends the first access result to the bridging function module.
步骤916,桥接功能模块向虚拟OCF服务端发送第二访问结果,该第二访问结果是将基于Zigbee协议的第一访问结果进行转换后生成的符合OCF协议规范的访问结果。Step 916, the bridging function module sends a second access result to the virtual OCF server, where the second access result is an access result conforming to the OCF protocol specification generated by converting the first access result based on the Zigbee protocol.
步骤917,虚拟OCF服务端向OCF客户端发送第二访问结果。Step 917, the virtual OCF server sends the second access result to the OCF client.
请参考图10,其示出了本申请另一个实施例提供的资源映射方法的流程图,该方法可以应用于图5所示的实施环境中。在本实施例中,规定了OCF资源地址与BLE mesh模型(Model)之间的关系。该方法可以包括如下几个步骤(1001~1017):Please refer to FIG. 10 , which shows a flowchart of a resource mapping method provided by another embodiment of the present application, and the method can be applied to the implementation environment shown in FIG. 5 . In this embodiment, the relationship between the OCF resource address and the BLE mesh model (Model) is specified. The method may include the following steps (1001-1017):
步骤1001,虚拟BLE mesh客户端发现第一BLE mesh设备。Step 1001, the virtual BLE mesh client discovers the first BLE mesh device.
步骤1002,虚拟BLE mesh客户端与第一BLE mesh设备建立连接。Step 1002, the virtual BLE mesh client establishes a connection with the first BLE mesh device.
步骤1003,虚拟BLE mesh客户端向桥接功能模块发送映射关系建立请求,该映射关系建立请求用于请求建立第一BLE mesh设备到第一OCF设备之间的映射关系,该第一OCF设备是第一BLE mesh设备映射的虚拟OCF设备。Step 1003, the virtual BLE mesh client sends a mapping relationship establishment request to the bridging function module, and the mapping relationship establishment request is used to request the establishment of a mapping relationship between the first BLE mesh device and the first OCF device, and the first OCF device is the first OCF device. A virtual OCF device mapped by a BLE mesh device.
步骤1004,桥接功能模块设置OCF资源到第一BLE mesh设备的服务模型之间的映射关系。Step 1004, the bridging function module sets the mapping relationship between the OCF resource and the service model of the first BLE mesh device.
桥接功能模块根据BLE mesh协议的数据模型结构特点,设置对应OCF资源URL。例如,对于BLE mesh设备而言,当设备Element(id值为2)下的Model(id值为3)与OCF资源建立映射关系时,该OCF资源URL可设置为/ele/2/model/3。The bridge function module sets the corresponding OCF resource URL according to the data model structure characteristics of the BLE mesh protocol. For example, for a BLE mesh device, when the Model (id value is 3) under the device Element (id value is 2) establishes a mapping relationship with the OCF resource, the OCF resource URL can be set to /ele/2/model/3 .
步骤1005,桥接功能模块向虚拟OCF服务端发送虚拟OCF设备创建请求,该虚拟OCF设备创建请求用于请求创建与第一BLE mesh设备映射的虚拟OCF设备(即第一OCF设备)。Step 1005, the bridging function module sends a virtual OCF device creation request to the virtual OCF server, where the virtual OCF device creation request is used to request the creation of a virtual OCF device (that is, the first OCF device) mapped with the first BLE mesh device.
步骤1006,虚拟OCF服务端创建第一OCF设备,基于OCF资源地址创建OCF资源。Step 1006, the virtual OCF server creates a first OCF device, and creates an OCF resource based on the OCF resource address.
步骤1007,OCF客户端向虚拟OCF服务端发送设备资源获取请求,该设备资源获取请求用于请求获取虚拟OCF服务端创建的OCF资源的相关信息。Step 1007, the OCF client sends a device resource acquisition request to the virtual OCF server, where the device resource acquisition request is used to request to acquire related information of the OCF resource created by the virtual OCF server.
例如,获取虚拟OCF服务端创建的各个OCF资源的资源地址、资源访问策略等信息。For example, obtain information such as resource addresses and resource access policies of each OCF resource created by the virtual OCF server.
步骤1008,虚拟OCF服务端向OCF客户端发送OCF资源的相关信息。Step 1008, the virtual OCF server sends the relevant information of the OCF resource to the OCF client.
步骤1009,OCF客户端向虚拟OCF服务端发送第一访问请求,该第一访问请求中包括所要访问的第一OCF资源的资源地址。Step 1009, the OCF client sends a first access request to the virtual OCF server, where the first access request includes the resource address of the first OCF resource to be accessed.
例如,第一访问请求中包括/ele/2/model/3。For example, the first access request includes /ele/2/model/3.
步骤1010,虚拟OCF服务端向桥接功能模块发送资源地址解析请求,该资源地址解析请求用于请求对资源地址进行解析,该资源地址解析请求中包括待解析的资源地址(即上述第一OCF资源的资源地址)。Step 1010, the virtual OCF server sends a resource address resolution request to the bridging function module, the resource address resolution request is used to request to resolve the resource address, and the resource address resolution request includes the resource address to be resolved (that is, the above-mentioned first OCF resource). resource address).
步骤1011,桥接功能模块确定与待解析的资源地址对应的服务模型的标识信息,如第一OCF资源对应于第一服务模型。Step 1011, the bridging function module determines the identification information of the service model corresponding to the resource address to be resolved, for example, the first OCF resource corresponds to the first service model.
桥接功能模块根据待解析的资源地址,确定要访问的是BLE mesh设备的哪个Element下的哪个Model。例如,第一访问请求中包括/ele/2/model/3,则确定要访问的是BLE mesh设备下Element 2下的Model 3。The bridge function module determines which Model under which Element of the BLE mesh device is to be accessed according to the resource address to be resolved. For example, if the first access request includes /ele/2/model/3, it is determined that the Model 3 under Element 2 under the BLE mesh device is to be accessed.
步骤1012,桥接功能模块向虚拟BLE mesh客户端发送访问第一服务模型的请求,该请求中可以包括第一服务模型的标识信息。Step 1012, the bridging function module sends a request for accessing the first service model to the virtual BLE mesh client, where the request may include identification information of the first service model.
步骤1013,虚拟BLE mesh客户端向第一BLE mesh设备发送第二访问请求,该第二访问请求中包括所要访问的第一服务模型的标识信息。Step 1013, the virtual BLE mesh client sends a second access request to the first BLE mesh device, where the second access request includes identification information of the first service model to be accessed.
步骤1014,第一BLE mesh设备向虚拟BLE mesh客户端发送第一访问结果。Step 1014, the first BLE mesh device sends the first access result to the virtual BLE mesh client.
步骤1015,虚拟BLE mesh客户端向桥接功能模块发送第一访问结果。Step 1015, the virtual BLE mesh client sends the first access result to the bridge function module.
步骤1016,桥接功能模块向虚拟OCF服务端发送第二访问结果,该第二访问结果是将基于BLE mesh协议的第一访问结果进行转换后生成的符合OCF协议规范的访问结果。Step 1016, the bridging function module sends a second access result to the virtual OCF server, where the second access result is an access result conforming to the OCF protocol specification generated after converting the first access result based on the BLE mesh protocol.
步骤1017,虚拟OCF服务端向OCF客户端发送第二访问结果。Step 1017, the virtual OCF server sends the second access result to the OCF client.
下面,通过示例性实施例介绍OCF资源地址的编码方案。In the following, the encoding scheme of the OCF resource address is introduced through an exemplary embodiment.
在一个示例中,第一OCF资源的资源地址包括:第一填充位、第二填充位、第三填充位和第四填充位;其中,第一填充位用于填充对象的表示信息;第二填充位用于填充第一对象的标识信息;第三填充位用于填充对象所属服务类型的表示信息;第四填充位用于填充第一对象所属的服务类型的标识信息。In one example, the resource address of the first OCF resource includes: a first padding bit, a second padding bit, a third padding bit, and a fourth padding bit; wherein the first padding bit is used to pad the representation information of the object; the second padding bit The padding bit is used to pad the identification information of the first object; the third padding bit is used to pad the representation information of the service type to which the object belongs; and the fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
例如,对于OCF协议到Zigbee协议的映射来说,第一填充位用于填充服务集群的表示信息;第二填充位用于填充服务集群的标识信息;第三填充位用于填充服务集群所属端点的表示信息;第四填充位用于填充服务集群所属端点的标识信息。For example, for the mapping from the OCF protocol to the Zigbee protocol, the first padding bit is used to pad the representation information of the service cluster; the second padding bit is used to pad the identification information of the service cluster; the third padding bit is used to pad the endpoint to which the service cluster belongs ; the fourth padding bit is used to fill in the identification information of the endpoint to which the service cluster belongs.
又例如,对于OCF协议到BLE mesh协议的映射来说,第一填充位用于填充服务模型的表示信息;第二填充位用于填充服务模型的标识信息;第三填充位用于填充服务模型所属元素的表示信息;第四填充位用于填充服务模型所属元素的标识信息。For another example, for the mapping from the OCF protocol to the BLE mesh protocol, the first padding bit is used to pad the representation information of the service model; the second padding bit is used to pad the identification information of the service model; the third padding bit is used to pad the service model Representation information of the element to which it belongs; the fourth padding bit is used to fill the identification information of the element to which the service model belongs.
可选地,第一填充位、第二填充位、第三填充位和第四填充位中,任意两个相邻填充位之间均具有分隔符,分隔符用于对不同填充位起到区分作用。例如,OCF资源URL可表示为“/app/x2/res/x3”,从左至右依次为:app对应第三填充位、x2对应第四填充位、res对应第一填充位,以及x3对应第二填充位,“/”表示分隔符。对于Zigbee 3.0设备而言,例如app=ep(endpoint,端点),res=cluster(集群),x2=端点的id值,x3=集群的id值。对于BLE Mesh设备而言,例如app=ele(element,元素),res=model(模型),x2=元素的id值,x3=模型的id值。Optionally, in the first padding bit, the second padding bit, the third padding bit, and the fourth padding bit, any two adjacent padding bits have a separator, and the separator is used to distinguish different padding bits. effect. For example, the OCF resource URL can be expressed as "/app/x2/res/x3", from left to right: app corresponds to the third padding bit, x2 corresponds to the fourth padding bit, res corresponds to the first padding bit, and x3 corresponds to The second padding bit, "/" indicates the delimiter. For Zigbee 3.0 devices, for example, app=ep(endpoint, endpoint), res=cluster(cluster), x2=id value of endpoint, x3=id value of cluster. For BLE Mesh devices, for example, app=ele(element, element), res=model(model), x2=id value of element, x3=id value of model.
可选地,第一OCF资源的资源地址还包括:第五填充位和第六填充位,第五填充位用于填充通信协议的表示信息,第六填充位用于填充通信协议的标识信息。可选地,第一填充位、第二填充位、第三填充位、第四填充位、第五填充位和第六填充位中,任意两个相邻填充位之间均具有分隔符。例如,OCF资源URL可表示为“/eco/x1/app/x2/res/x3”,从左至右依次为:eco对应第五填充位、x1对应第六填充位、app对应第三填充位、x2对应第四填充位、res对应第一填充位,以及x3对应第二填充位,“/”表示分隔符。对于Zigbee 3.0设备而言,例如x1=zigbee3.0,app=ep(endpoint,端点),res=cluster(集群),x2=端点的id值,x3=集群的id值。对于BLE Mesh设备而言,例如x1=blemesh,app=ele(element,元素),res=model(模型),x2=元素的id值,x3=模型的id值。Optionally, the resource address of the first OCF resource further includes: a fifth padding bit and a sixth padding bit, the fifth padding bit is used to pad the representation information of the communication protocol, and the sixth padding bit is used to pad the identification information of the communication protocol. Optionally, in the first padding bit, the second padding bit, the third padding bit, the fourth padding bit, the fifth padding bit and the sixth padding bit, any two adjacent padding bits have a separator between them. For example, the OCF resource URL can be expressed as "/eco/x1/app/x2/res/x3", from left to right: eco corresponds to the fifth padding bit, x1 corresponds to the sixth padding bit, and app corresponds to the third padding bit , x2 corresponds to the fourth padding bit, res corresponds to the first padding bit, and x3 corresponds to the second padding bit, and "/" represents a separator. For Zigbee 3.0 devices, for example, x1=zigbee3.0, app=ep(endpoint, endpoint), res=cluster (cluster), x2=id value of endpoint, x3=id value of cluster. For BLE Mesh devices, for example, x1=blemesh, app=ele(element, element), res=model(model), x2=id value of element, x3=id value of model.
在另一个示例中,第一OCF资源的资源地址包括:第一填充位和第二填充位;其中,第一填充位用于填充第一对象的标识信息;第二填充位用于填充第一对象所属的服务类型的标识信息。In another example, the resource address of the first OCF resource includes: a first padding bit and a second padding bit; wherein the first padding bit is used to pad the identification information of the first object; the second padding bit is used to pad the first padding bit Identification information of the service type to which the object belongs.
例如,对于OCF协议到Zigbee协议的映射来说,第一填充位用于填充服务集群的标识信息;第二填充位用于填充服务集群所属端点的标识信息。For example, for the mapping from the OCF protocol to the Zigbee protocol, the first padding bit is used to pad the identification information of the service cluster; the second padding bit is used to pad the identification information of the endpoint to which the service cluster belongs.
又例如,对于OCF协议到BLE mesh协议的映射来说,第一填充位用于填充服务模型的标识信息;第二填充位用于填充服务模型所属元素的标识信息。For another example, for the mapping from the OCF protocol to the BLE mesh protocol, the first padding bit is used to fill in the identification information of the service model; the second padding bit is used to fill in the identification information of the element to which the service model belongs.
可选地,第一填充位和第二填充位之间具有分隔符,分隔符用于对不同填充位起到区分作用。例如,OCF资源URL可表示为“/x2/x3”,从左至右依次为:x2对应第二填充位,x3 对应第一填充位,“/”表示分隔符。对于Zigbee 3.0设备而言,例如x2=端点的id值,x3=集群的id值。示例性地,OCF资源URL为“/1/6”,表示端点的id值为1,集群的id值为6。对于BLE Mesh设备而言,例如x2=元素的id值,x3=模型的id值。示例性地,OCF资源URL为“/2/3”,表示元素的id值为2,模型的id值为3。Optionally, there is a separator between the first padding bit and the second padding bit, and the separator is used to distinguish different padding bits. For example, the OCF resource URL may be expressed as "/x2/x3", from left to right: x2 corresponds to the second padding bit, x3 corresponds to the first padding bit, and "/" represents a separator. For Zigbee 3.0 devices, for example, x2=id value of endpoint, x3=id value of cluster. Exemplarily, the OCF resource URL is "/1/6", indicating that the id value of the endpoint is 1, and the id value of the cluster is 6. For BLE Mesh devices, for example, x2=id value of element, x3=id value of model. Exemplarily, the OCF resource URL is "/2/3", indicating that the id value of the element is 2, and the id value of the model is 3.
可选地,第一填充位和第二填充位之间不具有分隔符,且第一填充位的长度和第二填充位的长度是预定义的。例如,OCF资源URL可表示为“/x2x3”,从左至右依次为:x2对应第二填充位,x3对应第一填充位。对于Zigbee 3.0设备而言,例如x2=端点的id值,x3=集群的id值。对于BLE Mesh设备而言,例如x2=元素的id值,x3=模型的id值。另外,由于第一填充位和第二填充位之间不具有分隔符,为了实现对第一填充位和第二填充位中的填充数据进行区分,第一填充位的长度和第二填充位的长度是预定义的,如第一填充位的长度为32位,且第二填充位的长度也为32位。当然,第一填充位的长度和第二填充位的长度可以结合实际情况预先进行定义,两者长度可以相同也可以不同,本申请实施例对此不作限定。Optionally, there is no separator between the first padding bit and the second padding bit, and the length of the first padding bit and the length of the second padding bit are predefined. For example, the OCF resource URL may be expressed as "/x2x3", in order from left to right: x2 corresponds to the second padding bit, and x3 corresponds to the first padding bit. For Zigbee 3.0 devices, for example, x2=id value of endpoint, x3=id value of cluster. For BLE Mesh devices, for example, x2=id value of element, x3=id value of model. In addition, since there is no separator between the first padding bit and the second padding bit, in order to distinguish the padding data in the first padding bit and the second padding bit, the length of the first padding bit and the length of the second padding bit The length is predefined, for example, the length of the first padding bit is 32 bits, and the length of the second padding bit is also 32 bits. Of course, the length of the first padding bit and the length of the second padding bit may be pre-defined in combination with the actual situation, and the lengths of the two may be the same or different, which are not limited in this embodiment of the present application.
可选地,第一OCF资源的资源地址还包括:第三填充位,用于填充通信协议的标识信息。第三填充位和第一第二填充位之间可以具有分隔符,也可以不具有分隔符,如果不具有分隔符,则第三填充位的长度也可以预定义。以第三填充位和第一第二填充位之间具有分隔符为例,OCF资源URL可表示为“/x1/x2x3”,从左至右依次为:x1对应第三填充位,x2对应第二填充位,x3对应第一填充位。以第三填充位和第一第二填充位之间不具有分隔符为例,OCF资源URL可表示为“/x1x2x3”,从左至右依次为:x1对应第三填充位,x2对应第二填充位,x3对应第一填充位。Optionally, the resource address of the first OCF resource further includes: a third padding bit, which is used to pad the identification information of the communication protocol. There may or may not be a separator between the third padding bit and the first and second padding bits. If there is no separator, the length of the third padding bit may also be predefined. Taking the separator between the third padding bit and the first and second padding bits as an example, the OCF resource URL can be expressed as "/x1/x2x3", from left to right: x1 corresponds to the third padding bit, and x2 corresponds to the first padding bit. Two padding bits, x3 corresponds to the first padding bit. Taking the third padding bit and the first and second padding bits without a separator as an example, the OCF resource URL can be expressed as "/x1x2x3", from left to right: x1 corresponds to the third padding bit, x2 corresponds to the second padding bit Padding bit, x3 corresponds to the first padding bit.
本示例提供的方式相比于上一示例提供的方式,有助于缩短OCF资源地址的长度,从而节省OCF资源地址的存储开销和传输开销。Compared with the method provided in the previous example, the method provided in this example helps to shorten the length of the OCF resource address, thereby saving the storage overhead and transmission overhead of the OCF resource address.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are apparatus embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图11,其示出了本申请一个实施例提供的资源映射装置的框图。该装置具有实现上述网关设备侧的方法示例的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该装置可以是上文介绍的网关设备,也可以设置在网关设备中。如图11所示,该装置1100可以包括:设备创建模块1110、资源创建模块1120和地址生成模块1130。Please refer to FIG. 11 , which shows a block diagram of a resource mapping apparatus provided by an embodiment of the present application. The apparatus has the function of implementing the above-mentioned method example on the gateway device side, and the function may be implemented by hardware or by executing corresponding software in hardware. The device may be the gateway device described above, or may be set in the gateway device. As shown in FIG. 11 , the apparatus 1100 may include: a device creation module 1110 , a resource creation module 1120 and an address generation module 1130 .
设备创建模块1110,用于创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;A device creation module 1110, configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual device mapped by the first physical device OCF equipment;
资源创建模块1120,用于基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;A resource creation module 1120, configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first in the first physical device Objects have a mapping relationship;
地址生成模块1130,用于生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。The address generation module 1130 is configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
在示例性实施例中,在所述目标通信协议为BLE Mesh协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务模型具有映射关系。In an exemplary embodiment, when the target communication protocol is the BLE Mesh protocol, the first OCF resource and the first service model in the first physical device have a mapping relationship.
可选地,所述第一OCF资源的资源地址包括:Optionally, the resource address of the first OCF resource includes:
所述第一服务模型所属的元素的标识信息,以及所述第一服务模型的标识信息。Identification information of the element to which the first service model belongs, and identification information of the first service model.
可选地,所述第一OCF资源的资源地址还包括:Optionally, the resource address of the first OCF resource further includes:
所述BLE Mesh协议的标识信息。The identification information of the BLE Mesh protocol.
在示例性实施例中,在所述目标通信协议为Zigbee协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务集群具有映射关系。In an exemplary embodiment, when the target communication protocol is the Zigbee protocol, the first OCF resource and the first service cluster in the first physical device have a mapping relationship.
可选地,所述第一OCF资源的资源地址包括:Optionally, the resource address of the first OCF resource includes:
所述第一服务集群所属的端点的标识信息,以及所述第一服务集群的标识信息。Identification information of the endpoint to which the first service cluster belongs, and identification information of the first service cluster.
可选地,所述第一OCF资源的资源地址还包括:Optionally, the resource address of the first OCF resource further includes:
所述Zigbee协议的标识信息。The identification information of the Zigbee protocol.
在示例性实施例中,所述装置1110还包括:请求接收模块、地址映射模块和请求发送模块(图11中未示出)。In an exemplary embodiment, the apparatus 1110 further includes: a request receiving module, an address mapping module and a request sending module (not shown in FIG. 11 ).
请求接收模块,用于接收OCF客户端发送的第一访问请求,所述第一访问请求是所述OCF客户端对所述第一OCF资源进行访问的请求,所述第一访问请求中包括所述第一OCF资源的资源地址。A request receiving module, configured to receive a first access request sent by an OCF client, where the first access request is a request by the OCF client to access the first OCF resource, and the first access request includes all Describe the resource address of the first OCF resource.
地址映射模块,用于将所述第一OCF资源的资源地址,映射为所述第一对象的标识信息。The address mapping module is configured to map the resource address of the first OCF resource to the identification information of the first object.
请求发送模块,用于向所述第一物理设备发送第二访问请求,所述第二访问请求是所述网关设备对所述第一对象进行访问的请求,所述第二访问请求中包括所述第一对象的标识信息。A request sending module is configured to send a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes all Describe the identification information of the first object.
在示例性实施例中,所述第一OCF资源的资源地址包括:第一填充位、第二填充位、第三填充位和第四填充位;其中,In an exemplary embodiment, the resource address of the first OCF resource includes: a first padding bit, a second padding bit, a third padding bit, and a fourth padding bit; wherein,
所述第一填充位用于填充对象的表示信息;The first padding bit is used to pad the representation information of the object;
所述第二填充位用于填充所述第一对象的标识信息;The second filling bit is used to fill the identification information of the first object;
所述第三填充位用于填充对象所属服务类型的表示信息;The third padding bit is used to fill in the representation information of the service type to which the object belongs;
所述第四填充位用于填充所述第一对象所属的服务类型的标识信息。The fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
可选地,所述第一填充位、所述第二填充位、所述第三填充位和所述第四填充位中,任意两个相邻填充位之间均具有分隔符。Optionally, in the first padding bit, the second padding bit, the third padding bit and the fourth padding bit, any two adjacent padding bits have a separator between them.
在示例性实施例中,所述第一OCF资源的资源地址包括:第一填充位和第二填充位;其中,In an exemplary embodiment, the resource address of the first OCF resource includes: a first padding bit and a second padding bit; wherein,
所述第一填充位用于填充所述第一对象的标识信息;The first filling bit is used to fill the identification information of the first object;
所述第二填充位用于填充所述第一对象所属的服务类型的标识信息。The second padding bit is used to pad the identification information of the service type to which the first object belongs.
可选地,所述第一填充位和所述第二填充位之间具有分隔符。Optionally, there is a separator between the first padding bits and the second padding bits.
可选地,所述第一填充位和所述第二填充位之间不具有分隔符,且所述第一填充位的长度和所述第二填充位的长度是预定义的。Optionally, there is no separator between the first padding bit and the second padding bit, and the length of the first padding bit and the length of the second padding bit are predefined.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that, when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.
请参考图12,其示出了本申请一个实施例提供的网关设备120的结构示意图。该网关设备120可以用于实现上述网关设备侧的Zigbee设备的属性订阅方法。该网关设备120可以包括:处理器121、接收器122、发射器123、存储器124和总线125。Please refer to FIG. 12 , which shows a schematic structural diagram of a gateway device 120 provided by an embodiment of the present application. The gateway device 120 may be used to implement the attribute subscription method of the Zigbee device on the gateway device side. The gateway device 120 may include: a processor 121 , a receiver 122 , a transmitter 123 , a memory 124 and a bus 125 .
处理器121包括一个或者一个以上处理核心,处理器121通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 121 includes one or more processing cores, and the processor 121 executes various functional applications and information processing by running software programs and modules.
接收器122和发射器123可以实现为一个通信组件,该通信组件可以是一块通信芯片。The receiver 122 and the transmitter 123 may be implemented as a communication component, which may be a communication chip.
存储器124通过总线125与处理器121相连。The memory 124 is connected to the processor 121 through the bus 125 .
存储器124可用于存储计算机程序,处理器121用于执行该计算机程序,以实现上述方法实施例中的网关设备执行的各个步骤。The memory 124 can be used to store a computer program, and the processor 121 is used to execute the computer program, so as to implement each step performed by the gateway device in the above method embodiments.
此外,存储器124可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),静态随时存取存储器(SRAM),只读存储器(ROM),磁存储器,快闪存储器,可编程只读存储器(PROM)。Additionally, memory 124 may be implemented by any type or combination of volatile or non-volatile storage devices including, but not limited to, magnetic or optical disks, electrically erasable programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Static Anytime Access Memory (SRAM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Programmable Read Only Memory (PROM) .
在示例性实施例中,所述网关设备包括处理器、存储器和收发器(该收发器可以包括接收器和发射器,接收器用于接收信息,发射器用于发送信息);In an exemplary embodiment, the gateway device includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information);
所述处理器,用于创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;The processor is configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual device mapped by the first physical device. OCF equipment;
所述处理器,还用于基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;The processor is further configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first OCF resource in the first physical device. An object has a mapping relationship;
所述处理器,还用于生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。The processor is further configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
在示例性实施例中,在所述目标通信协议为BLE Mesh协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务模型具有映射关系。In an exemplary embodiment, when the target communication protocol is the BLE Mesh protocol, the first OCF resource and the first service model in the first physical device have a mapping relationship.
可选地,所述第一OCF资源的资源地址包括:Optionally, the resource address of the first OCF resource includes:
所述第一服务模型所属的元素的标识信息,以及所述第一服务模型的标识信息。Identification information of the element to which the first service model belongs, and identification information of the first service model.
可选地,所述第一OCF资源的资源地址还包括:Optionally, the resource address of the first OCF resource further includes:
所述BLE Mesh协议的标识信息。The identification information of the BLE Mesh protocol.
在示例性实施例中,在所述目标通信协议为Zigbee协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务集群具有映射关系。In an exemplary embodiment, when the target communication protocol is the Zigbee protocol, the first OCF resource and the first service cluster in the first physical device have a mapping relationship.
可选地,所述第一OCF资源的资源地址包括:Optionally, the resource address of the first OCF resource includes:
所述第一服务集群所属的端点的标识信息,以及所述第一服务集群的标识信息。Identification information of the endpoint to which the first service cluster belongs, and identification information of the first service cluster.
可选地,所述第一OCF资源的资源地址还包括:Optionally, the resource address of the first OCF resource further includes:
所述Zigbee协议的标识信息。The identification information of the Zigbee protocol.
在示例性实施例中,所述收发器,用于接收OCF客户端发送的第一访问请求,所述第一访问请求是所述OCF客户端对所述第一OCF资源进行访问的请求,所述第一访问请求中包括所述第一OCF资源的资源地址;In an exemplary embodiment, the transceiver is configured to receive a first access request sent by an OCF client, where the first access request is a request by the OCF client to access the first OCF resource, so The first access request includes the resource address of the first OCF resource;
所述处理器,还用于将所述第一OCF资源的资源地址,映射为所述第一对象的标识信息;The processor is further configured to map the resource address of the first OCF resource to the identification information of the first object;
所述收发器,还用于向所述第一物理设备发送第二访问请求,所述第二访问请求是所述网关设备对所述第一对象进行访问的请求,所述第二访问请求中包括所述第一对象的标识信息。The transceiver is further configured to send a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes Including identification information of the first object.
在示例性实施例中,所述第一OCF资源的资源地址包括:第一填充位、第二填充位、第三填充位和第四填充位;其中,In an exemplary embodiment, the resource address of the first OCF resource includes: a first padding bit, a second padding bit, a third padding bit, and a fourth padding bit; wherein,
所述第一填充位用于填充对象的表示信息;The first padding bit is used to pad the representation information of the object;
所述第二填充位用于填充所述第一对象的标识信息;The second filling bit is used to fill the identification information of the first object;
所述第三填充位用于填充对象所属服务类型的表示信息;The third padding bit is used to fill in the representation information of the service type to which the object belongs;
所述第四填充位用于填充所述第一对象所属的服务类型的标识信息。The fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
可选地,所述第一填充位、所述第二填充位、所述第三填充位和所述第四填充位中,任意两个相邻填充位之间均具有分隔符。Optionally, in the first padding bit, the second padding bit, the third padding bit and the fourth padding bit, any two adjacent padding bits have a separator between them.
在示例性实施例中,所述第一OCF资源的资源地址包括:第一填充位和第二填充位;其中,In an exemplary embodiment, the resource address of the first OCF resource includes: a first padding bit and a second padding bit; wherein,
所述第一填充位用于填充所述第一对象的标识信息;The first filling bit is used to fill the identification information of the first object;
所述第二填充位用于填充所述第一对象所属的服务类型的标识信息。The second padding bit is used to pad the identification information of the service type to which the first object belongs.
可选地,所述第一填充位和所述第二填充位之间具有分隔符。Optionally, there is a separator between the first padding bits and the second padding bits.
可选地,所述第一填充位和所述第二填充位之间不具有分隔符,且所述第一填充位的长度和所述第二填充位的长度是预定义的。Optionally, there is no separator between the first padding bit and the second padding bit, and the length of the first padding bit and the length of the second padding bit are predefined.
本申请一示例性实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序用于被网关设备的处理器执行,以实现上述网关设备侧的资源映射 方法。An exemplary embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the storage medium, and the computer program is used to be executed by a processor of a gateway device, so as to realize the resources on the side of the gateway device. mapping method.
本申请一示例性实施例还提供了一种芯片,所述芯片包括可编程逻辑电路和/或程序指令,当所述芯片在网关设备上运行时,用于实现上述网关设备侧的资源映射方法。An exemplary embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or program instructions, and when the chip runs on a gateway device, is used to implement the above-mentioned resource mapping method on the gateway device side .
本申请一示例性实施例还提供了一种计算机程序产品,当所述计算机程序产品在网关设备上运行时,使得网关设备执行上述网关设备侧的资源映射方法。An exemplary embodiment of the present application further provides a computer program product, which, when the computer program product runs on the gateway device, enables the gateway device to execute the foregoing method for resource mapping on the gateway device side.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that, in one or more of the above examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. 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 medium can be any available medium that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (28)

  1. 一种资源映射方法,其特征在于,应用于网关设备,所述方法包括:A resource mapping method, characterized in that, applied to a gateway device, the method comprising:
    创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;creating a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual OCF device mapped by the first physical device;
    基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;creating a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, where the first OCF resource has a mapping relationship with the first object in the first physical device;
    生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。A resource address of the first OCF resource is generated and stored, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  2. 根据权利要求1所述的方法,其特征在于,在所述目标通信协议为BLE Mesh协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务模型具有映射关系。The method according to claim 1, wherein, when the target communication protocol is a BLE Mesh protocol, the first OCF resource and the first service model in the first physical device have a mapping relationship.
  3. 根据权利要求2所述的方法,其特征在于,所述第一OCF资源的资源地址包括:The method according to claim 2, wherein the resource address of the first OCF resource comprises:
    所述第一服务模型所属的元素的标识信息,以及所述第一服务模型的标识信息。Identification information of the element to which the first service model belongs, and identification information of the first service model.
  4. 根据权利要求3所述的方法,其特征在于,所述第一OCF资源的资源地址还包括:The method according to claim 3, wherein the resource address of the first OCF resource further comprises:
    所述BLE Mesh协议的标识信息。The identification information of the BLE Mesh protocol.
  5. 根据权利要求1所述的方法,其特征在于,在所述目标通信协议为Zigbee协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务集群具有映射关系。The method according to claim 1, wherein when the target communication protocol is the Zigbee protocol, the first OCF resource and the first service cluster in the first physical device have a mapping relationship.
  6. 根据权利要求5所述的方法,其特征在于,所述第一OCF资源的资源地址包括:The method according to claim 5, wherein the resource address of the first OCF resource comprises:
    所述第一服务集群所属的端点的标识信息,以及所述第一服务集群的标识信息。Identification information of the endpoint to which the first service cluster belongs, and identification information of the first service cluster.
  7. 根据权利要求6所述的方法,其特征在于,所述第一OCF资源的资源地址还包括:The method according to claim 6, wherein the resource address of the first OCF resource further comprises:
    所述Zigbee协议的标识信息。The identification information of the Zigbee protocol.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 7, wherein the method further comprises:
    接收OCF客户端发送的第一访问请求,所述第一访问请求是所述OCF客户端对所述第一OCF资源进行访问的请求,所述第一访问请求中包括所述第一OCF资源的资源地址;Receive a first access request sent by the OCF client, where the first access request is a request by the OCF client to access the first OCF resource, and the first access request includes the first access request of the first OCF resource. resource address;
    将所述第一OCF资源的资源地址,映射为所述第一对象的标识信息;mapping the resource address of the first OCF resource to the identification information of the first object;
    向所述第一物理设备发送第二访问请求,所述第二访问请求是所述网关设备对所述第一对象进行访问的请求,所述第二访问请求中包括所述第一对象的标识信息。Sending a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes the identifier of the first object information.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,所述第一OCF资源的资源地址包括:第一填充位、第二填充位、第三填充位和第四填充位;其中,The method according to any one of claims 1 to 8, wherein the resource address of the first OCF resource comprises: a first padding bit, a second padding bit, a third padding bit and a fourth padding bit; wherein ,
    所述第一填充位用于填充对象的表示信息;The first padding bit is used to pad the representation information of the object;
    所述第二填充位用于填充所述第一对象的标识信息;The second filling bit is used to fill the identification information of the first object;
    所述第三填充位用于填充对象所属服务类型的表示信息;The third padding bit is used to fill in the representation information of the service type to which the object belongs;
    所述第四填充位用于填充所述第一对象所属的服务类型的标识信息。The fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
  10. 根据权利要求9所述的方法,其特征在于,所述第一填充位、所述第二填充位、所述第三填充位和所述第四填充位中,任意两个相邻填充位之间均具有分隔符。The method according to claim 9, wherein among the first padding bits, the second padding bits, the third padding bits and the fourth padding bits, any two adjacent padding bits are There are separators between them.
  11. 根据权利要求1至8任一项所述的方法,其特征在于,所述第一OCF资源的资源地址包括:第一填充位和第二填充位;其中,The method according to any one of claims 1 to 8, wherein the resource address of the first OCF resource comprises: a first padding bit and a second padding bit; wherein,
    所述第一填充位用于填充所述第一对象的标识信息;The first filling bit is used to fill the identification information of the first object;
    所述第二填充位用于填充所述第一对象所属的服务类型的标识信息。The second padding bit is used to pad the identification information of the service type to which the first object belongs.
  12. 根据权利要求11所述的方法,其特征在于,所述第一填充位和所述第二填充位之间具有分隔符。The method of claim 11, wherein a separator is provided between the first padding bits and the second padding bits.
  13. 根据权利要求11所述的方法,其特征在于,所述第一填充位和所述第二填充位之间不具有分隔符,且所述第一填充位的长度和所述第二填充位的长度是预定义的。The method according to claim 11, wherein there is no separator between the first padding bit and the second padding bit, and the length of the first padding bit is the same as the length of the second padding bit. The length is predefined.
  14. 一种资源映射装置,其特征在于,所述装置包括:A resource mapping apparatus, characterized in that the apparatus comprises:
    设备创建模块,用于创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基 于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;A device creation module, configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual OCF mapped by the first physical device equipment;
    资源创建模块,用于基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;A resource creation module, configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first object in the first physical device has a mapping relationship;
    地址生成模块,用于生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。An address generation module, configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  15. 根据权利要求14所述的装置,其特征在于,在所述目标通信协议为BLE Mesh协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务模型具有映射关系。The apparatus according to claim 14, wherein when the target communication protocol is a BLE Mesh protocol, the first OCF resource and the first service model in the first physical device have a mapping relationship.
  16. 根据权利要求15所述的装置,其特征在于,所述第一OCF资源的资源地址包括:The apparatus according to claim 15, wherein the resource address of the first OCF resource comprises:
    所述第一服务模型所属的元素的标识信息,以及所述第一服务模型的标识信息。Identification information of the element to which the first service model belongs, and identification information of the first service model.
  17. 根据权利要求16所述的装置,其特征在于,所述第一OCF资源的资源地址还包括:The apparatus according to claim 16, wherein the resource address of the first OCF resource further comprises:
    所述BLE Mesh协议的标识信息。The identification information of the BLE Mesh protocol.
  18. 根据权利要求14所述的装置,其特征在于,在所述目标通信协议为Zigbee协议的情况下,所述第一OCF资源和所述第一物理设备中的第一服务集群具有映射关系。The apparatus according to claim 14, wherein when the target communication protocol is a Zigbee protocol, the first OCF resource and the first service cluster in the first physical device have a mapping relationship.
  19. 根据权利要求18所述的装置,其特征在于,所述第一OCF资源的资源地址包括:The apparatus according to claim 18, wherein the resource address of the first OCF resource comprises:
    所述第一服务集群所属的端点的标识信息,以及所述第一服务集群的标识信息。Identification information of the endpoint to which the first service cluster belongs, and identification information of the first service cluster.
  20. 根据权利要求19所述的装置,其特征在于,所述第一OCF资源的资源地址还包括:The apparatus according to claim 19, wherein the resource address of the first OCF resource further comprises:
    所述Zigbee协议的标识信息。The identification information of the Zigbee protocol.
  21. 根据权利要求14至20任一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 14 to 20, wherein the device further comprises:
    请求接收模块,用于接收OCF客户端发送的第一访问请求,所述第一访问请求是所述OCF客户端对所述第一OCF资源进行访问的请求,所述第一访问请求中包括所述第一OCF资源的资源地址;A request receiving module, configured to receive a first access request sent by an OCF client, where the first access request is a request by the OCF client to access the first OCF resource, and the first access request includes all Describe the resource address of the first OCF resource;
    地址映射模块,用于将所述第一OCF资源的资源地址,映射为所述第一对象的标识信息;An address mapping module, configured to map the resource address of the first OCF resource to the identification information of the first object;
    请求发送模块,用于向所述第一物理设备发送第二访问请求,所述第二访问请求是所述网关设备对所述第一对象进行访问的请求,所述第二访问请求中包括所述第一对象的标识信息。A request sending module is configured to send a second access request to the first physical device, where the second access request is a request by the gateway device to access the first object, and the second access request includes all Describe the identification information of the first object.
  22. 根据权利要求14至21任一项所述的装置,其特征在于,所述第一OCF资源的资源地址包括:第一填充位、第二填充位、第三填充位和第四填充位;其中,The apparatus according to any one of claims 14 to 21, wherein the resource address of the first OCF resource comprises: a first padding bit, a second padding bit, a third padding bit, and a fourth padding bit; wherein ,
    所述第一填充位用于填充对象的表示信息;The first padding bit is used to pad the representation information of the object;
    所述第二填充位用于填充所述第一对象的标识信息;The second filling bit is used to fill the identification information of the first object;
    所述第三填充位用于填充对象所属服务类型的表示信息;The third padding bit is used to fill in the representation information of the service type to which the object belongs;
    所述第四填充位用于填充所述第一对象所属的服务类型的标识信息。The fourth padding bit is used to pad the identification information of the service type to which the first object belongs.
  23. 根据权利要求22所述的装置,其特征在于,所述第一填充位、所述第二填充位、所述第三填充位和所述第四填充位中,任意两个相邻填充位之间均具有分隔符。The device according to claim 22, wherein among the first padding bit, the second padding bit, the third padding bit and the fourth padding bit, any two adjacent padding bits are between any two adjacent padding bits. There are separators between them.
  24. 根据权利要求14至21任一项所述的装置,其特征在于,所述第一OCF资源的资源地址包括:第一填充位和第二填充位;其中,The apparatus according to any one of claims 14 to 21, wherein the resource address of the first OCF resource comprises: a first padding bit and a second padding bit; wherein,
    所述第一填充位用于填充所述第一对象的标识信息;The first filling bit is used to fill the identification information of the first object;
    所述第二填充位用于填充所述第一对象所属的服务类型的标识信息。The second padding bit is used to pad the identification information of the service type to which the first object belongs.
  25. 根据权利要求24所述的装置,其特征在于,所述第一填充位和所述第二填充位之间具有分隔符。The apparatus of claim 24, wherein a separator is provided between the first padding bits and the second padding bits.
  26. 根据权利要求24所述的装置,其特征在于,所述第一填充位和所述第二填充位之间不具有分隔符,且所述第一填充位的长度和所述第二填充位的长度是预定义的。The device according to claim 24, wherein there is no separator between the first padding bit and the second padding bit, and the length of the first padding bit is the same as the length of the second padding bit. The length is predefined.
  27. 一种网关设备,其特征在于,所述网关设备包括处理器、存储器和收发器;A gateway device, characterized in that the gateway device includes a processor, a memory and a transceiver;
    所述处理器,用于创建与第一物理设备对应的第一OCF设备,所述第一物理设备是基于目标通信协议的设备,所述第一OCF设备是所述第一物理设备映射的虚拟OCF设备;The processor is configured to create a first OCF device corresponding to a first physical device, where the first physical device is a device based on a target communication protocol, and the first OCF device is a virtual device mapped by the first physical device. OCF equipment;
    所述处理器,还用于基于所述第一OCF设备与所述第一物理设备之间的映射关系,创建 第一OCF资源,所述第一OCF资源和所述第一物理设备中的第一对象具有映射关系;The processor is further configured to create a first OCF resource based on the mapping relationship between the first OCF device and the first physical device, the first OCF resource and the first OCF resource in the first physical device. An object has a mapping relationship;
    所述处理器,还用于生成并存储所述第一OCF资源的资源地址,所述第一OCF资源的资源地址用于确定与所述第一OCF资源具有映射关系的所述第一对象。The processor is further configured to generate and store a resource address of the first OCF resource, where the resource address of the first OCF resource is used to determine the first object that has a mapping relationship with the first OCF resource.
  28. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至13任一项所述的资源映射方法。A computer-readable storage medium, wherein a computer program is stored in the storage medium, and the computer program is used to be executed by a processor to implement the resource mapping method according to any one of claims 1 to 13 .
PCT/CN2020/123782 2020-10-26 2020-10-26 Resource mapping method and apparatus, device, and storage medium WO2022087795A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080103386.2A CN115968543A (en) 2020-10-26 2020-10-26 Resource mapping method, device, equipment and storage medium
PCT/CN2020/123782 WO2022087795A1 (en) 2020-10-26 2020-10-26 Resource mapping method and apparatus, device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/123782 WO2022087795A1 (en) 2020-10-26 2020-10-26 Resource mapping method and apparatus, device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022087795A1 true WO2022087795A1 (en) 2022-05-05

Family

ID=81381581

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/123782 WO2022087795A1 (en) 2020-10-26 2020-10-26 Resource mapping method and apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN115968543A (en)
WO (1) WO2022087795A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175109A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Method and device for sending control command, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657227A (en) * 2016-09-26 2017-05-10 海尔优家智能科技(北京)有限公司 Method and device for changing subscription resources
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
WO2019075317A1 (en) * 2017-10-12 2019-04-18 Convida Wireless, Llc Interworking service for the restful internet of things
WO2019112734A1 (en) * 2017-12-06 2019-06-13 Intel Corporation Plugin management for internet of things (iot) network optimization
CN111034156A (en) * 2017-09-08 2020-04-17 康维达无线有限责任公司 Automatic service registration in machine-to-machine communication networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
CN106657227A (en) * 2016-09-26 2017-05-10 海尔优家智能科技(北京)有限公司 Method and device for changing subscription resources
CN111034156A (en) * 2017-09-08 2020-04-17 康维达无线有限责任公司 Automatic service registration in machine-to-machine communication networks
WO2019075317A1 (en) * 2017-10-12 2019-04-18 Convida Wireless, Llc Interworking service for the restful internet of things
WO2019112734A1 (en) * 2017-12-06 2019-06-13 Intel Corporation Plugin management for internet of things (iot) network optimization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
G. CAMARILLO A. MONRAD ERICSSON: "Mapping of Media Streams to Resource Reservation Flows; rfc3524.txt", MAPPING OF MEDIA STREAMS TO RESOURCE RESERVATION FLOWS; RFC3524.TXT, 1 April 2003 (2003-04-01), pages 1 - 7, XP015009306 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115175109A (en) * 2022-05-30 2022-10-11 青岛海尔科技有限公司 Method and device for sending control command, storage medium and electronic device
CN115175109B (en) * 2022-05-30 2024-01-26 青岛海尔科技有限公司 Control command sending method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN115968543A (en) 2023-04-14
CN115968543A8 (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN103327689B (en) A kind of intelligent stage lighting Shekinah terminal control system
JP2020523830A (en) Method and apparatus for determining transport block size
WO2016070628A1 (en) Power line carrier communication terminal control device, system and method
CN110366153B (en) Bluetooth ad hoc network method
WO2018066907A1 (en) Method for transferring signaling messages of terminal between network functions
CN103931144B (en) A kind of method, apparatus and system communicated in virtual Domain
JP5994190B2 (en) Packet transfer method and system
US10601648B2 (en) Network nodes with intelligent integration
CN104683994A (en) Wireless network configuration method and wireless network devices
CN115486038B (en) Internet of things configuration method, internet of things configuration device, computer equipment and storage medium
WO2022087795A1 (en) Resource mapping method and apparatus, device, and storage medium
WO2021102694A1 (en) Ble mesh device access method and apparatus, device and storage medium
CN106657377B (en) A kind of WIA-PA/ interconnects manufacture network information service adapter and implementation method entirely
CN107567065B (en) Transparent data transmission method and system based on wireless self-organizing network
CN107113207B (en) Network system, address management device, and address management method
WO2021147357A1 (en) Method, device, and system for distributing routing information
CN107181614B (en) Wifi network, networking method thereof and data transmission method
WO2021035652A1 (en) Communication method, communication apparatus, and system
WO2015058413A1 (en) Data configuration method and network management server
CN115174310B (en) PDN dialing and configuration method, system, device, equipment and storage medium
WO2022087796A1 (en) Zigbee device attribute subscription method and apparatus, and device
CN113794994B (en) Information gathering method and device based on multicast domain name system and application thereof
WO2019136655A1 (en) Data replication transmission function configuration method and related product
CN114124275B (en) Time synchronization method, device, equipment and storage medium
WO2023138256A1 (en) Communication method and communication apparatus

Legal Events

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

Ref document number: 20958960

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20958960

Country of ref document: EP

Kind code of ref document: A1