WO2022011563A1 - Internet of things configuration method and apparatus, computer device, and storage medium - Google Patents

Internet of things configuration method and apparatus, computer device, and storage medium Download PDF

Info

Publication number
WO2022011563A1
WO2022011563A1 PCT/CN2020/101950 CN2020101950W WO2022011563A1 WO 2022011563 A1 WO2022011563 A1 WO 2022011563A1 CN 2020101950 W CN2020101950 W CN 2020101950W WO 2022011563 A1 WO2022011563 A1 WO 2022011563A1
Authority
WO
WIPO (PCT)
Prior art keywords
ocf
configuration
network
client
bridge device
Prior art date
Application number
PCT/CN2020/101950
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 PCT/CN2020/101950 priority Critical patent/WO2022011563A1/en
Priority to CN202080100473.2A priority patent/CN115486038B/en
Publication of WO2022011563A1 publication Critical patent/WO2022011563A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0226Mapping or translating multiple network management protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0895Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Definitions

  • the present application relates to the field of wireless communication technologies, and in particular, to an Internet of Things configuration method, device, computer equipment, and storage medium.
  • the user can remotely control the functional operation of the server device through the client.
  • the protocol widely used in the Internet of Things is the Open Connectivity Foundation (OCF) protocol.
  • OCF Open Connectivity Foundation
  • servers which can be called non-OCF servers
  • non-OCF servers that support non-OCF protocols on the market.
  • client OCF client
  • the conversion between the OCF protocol and the non-OCF protocol is realized through a bridge platform, which has made the OCF client
  • the endpoint can access the non-OCF protocol network.
  • the embodiments of the present application provide an Internet of Things configuration method, apparatus, computer equipment, and storage medium.
  • the technical solution is as follows:
  • an embodiment of the present application provides a method for configuring the Internet of Things, the method is executed by the OCF bridge platform of the Open Connectivity Foundation, and the method includes:
  • the OCF client Receives a network configuration request sent by the OCF client through the OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device;
  • the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration operation is for the Configure the non-OCF protocol network corresponding to the non-OCF virtual client.
  • an embodiment of the present application provides an IoT configuration device, the device is used in an OCF bridging platform, and the device includes:
  • a request receiving module configured to receive a network configuration request sent by an OCF client through an OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device ;
  • a virtual client determination module configured to determine a non-OCF virtual client corresponding to the network configuration request
  • a configuration module configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration The operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
  • an embodiment of the present application provides a computer device, the computer device includes a processor, a memory, and a transceiver, the memory stores a computer program, and the computer program is configured to be executed by the processor to Implement the above IoT configuration method.
  • an 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 loaded and executed by a processor to implement the above-mentioned method for configuring the Internet of Things.
  • a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned method for configuring the Internet of Things.
  • the OCF bridge device is provided with a configuration resource for configuring the non-OCF protocol network.
  • a network configuration request sent by the OCF client is received through the OCF bridge device, and the network configuration request includes the attribute value of the configuration attribute in the configuration resource
  • the non-OCF virtual client is instructed to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the network management effect of the Internet of Things.
  • FIG. 1 is a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a bridge model from the Zigbee protocol to the OCF protocol involved in the embodiment shown in FIG. 1;
  • FIG. 3 is a flowchart of an Internet of Things configuration method provided by an embodiment of the present application.
  • FIG. 4 is an architectural diagram of a network configuration involved in the embodiment shown in FIG. 3;
  • FIG. 5 is a flowchart of a method for configuring the Internet of Things provided by an embodiment of the present application
  • Fig. 6 is a kind of starting non-OCF protocol network involved in the embodiment shown in Fig. 5;
  • FIG. 7 is a schematic diagram of an operation flow of stopping a non-OCF protocol network involved in the embodiment shown in FIG. 5;
  • Fig. 8 is the operation flow chart of modifying the non-OCF protocol network key involved in the embodiment shown in Fig. 5;
  • FIG. 9 is a schematic diagram of another startup non-OCF protocol network involved in the embodiment shown in FIG. 5;
  • FIG. 10 is a schematic diagram of another startup non-OCF protocol network involved in the embodiment shown in FIG. 5;
  • FIG. 11 is a block diagram of an IoT configuration apparatus provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application.
  • the evolution of new business scenarios and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • FIG. 1 shows a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application.
  • the network architecture of the Internet of Things may include: a non-OCF server 110, an OCF bridge platform 120, and an OCF client 130;
  • the non-OCF server 110 may be a device for providing IoT functional services. Also, the non-OCF server 110 is a server that supports other communication protocols other than the OCF protocol.
  • the non-OCF server 110 is a server that supports the Zigbee protocol (such as Zigbee 3.0, a wireless network protocol for low-speed and short-distance transmission), or the non-OCF server 110 supports the Bluetooth protocol, such as Bluetooth low energy The server of the (Bluetooth Low Energy, BLE) protocol.
  • Zigbee protocol such as Zigbee 3.0, a wireless network protocol for low-speed and short-distance transmission
  • the non-OCF server 110 supports the Bluetooth protocol, such as Bluetooth low energy
  • Bluetooth Low Energy Bluetooth Low Energy
  • the server 110 may be a smart home device, such as a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a cleaning robot, and the like.
  • the server 110 may be industrial production equipment, such as lathes, industrial robots, solar panels, wind turbines, and the like.
  • the server 110 may be a commercial service device, for example, a vending machine or the like.
  • the server 110 may be an intelligent monitoring device, such as a monitoring camera, an infrared sensor, a sound sensor, a temperature sensor, and the like.
  • the OCF client 130 is a terminal device on the user side.
  • the client can be a smart phone, a tablet, a smart watch, etc.; or, the client can also be a personal computer, such as a desktop computer, a laptop computer, a personal workstation, and so on.
  • the OCF client 130 is a device that supports the OCF protocol.
  • the OCF bridging platform 120 is a device for bridging the non-OCF server 110 supporting the non-OCF protocol and the OCF client 130 supporting the OCF protocol, so that the non-OCF server 110 supporting different protocols and the OCF client 130 can communicate with each other. .
  • the OCF bridging platform 120 may be a network device that implements network interconnection above the network layer, also known as a network connector, a protocol converter, and the like.
  • the OCF bridge platform 120 may provide network connection services for the server 110 .
  • the OCF bridging platform 120 may be a professional gateway, such as a home gateway, or the OCF bridging platform 120 may also be an access device with a gateway function, such as a router with a gateway function.
  • the above-mentioned OCF bridge platform 120 and the OCF client 130 are connected through a wired or wireless network.
  • the above wired or wireless network uses standard communication technologies and/or protocols.
  • the above wired or wireless network may be a communication network based on the IoT protocol of the Internet of Things.
  • FIG. 2 shows a schematic diagram of a bridge model from a Zigbee protocol to an OCF protocol involved in an embodiment of the present application.
  • the IoT network includes an OCF client, an OCF bridge platform and a non-OCF server.
  • the OCF Bridge Platform includes the following components:
  • Virtual Zigbee Client is a virtual Zigbee 3.0 client, the virtual device can be a coordinator device (Coordinator), Router or common device (End Device);
  • the functional component 22 mainly maps the Zigbee 3.0 server (Server) device into a standard OCF protocol device according to the Zigbee to OCF bridging specification;
  • Virtual OCF server (Virtual OCF Server) 23 The virtual OCF server 23 is a virtual server device of the OCF protocol, and is an OCF protocol device obtained by the Zigbee 3.0 Server after being mapped by the bridge platform;
  • One or more bridge devices conforming to the OCF protocol standard are provided within the OCF bridge platform.
  • the OCF bridging platform specification provides a resource with a resource type of "oic.r.vodlist", and the resource attributes are defined as follows:
  • Attribute type Multiple Types (usually strings are used);
  • Access mode read and write.
  • Attribute type Multiple Types (usually strings are used);
  • Access mode read and write.
  • the OCF client can access the ecological type (Zigbee 3.0 or BLE, etc.) of the non-OCF server mapped with the OCF protocol through the above-mentioned "oic.r.vodlist" resource, as well as information such as the device type of the non-OCF server.
  • ecological type Zigbee 3.0 or BLE, etc.
  • the device type of the bridge device in the OCF bridge platform is "oic.d.bridge", and in implementation, the device needs to support the "oic.r.vodlist” resource type for OCF protocol clients to discover and access.
  • the above solution only provides access to information such as the ecological type and device type of the non-OCF server.
  • information such as the ecological type and device type of the non-OCF server.
  • flexible management control cannot be performed, and the management effect of the IoT network is poor.
  • FIG. 3 shows a flowchart of a method for configuring the Internet of Things provided by an embodiment of the present application.
  • the method can be executed by an OCF bridging platform, wherein the above-mentioned OCF bridging platform can be in the network architecture shown in FIG. 1 .
  • the method may include the following steps:
  • Step 301 Receive a network configuration request sent by the OCF client through the OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device.
  • the OCF bridge device is a virtual device constructed in the OCF bridge platform, and the OCF bridge device supports configuration resources.
  • resources are used to express IoT devices, as well as information such as the functional services provided by the devices and the status of the devices.
  • the device that provides resources is the server, and the device that accesses resources is the client.
  • the client and the server may be hardware entities or logical functional entities, and each device may be a client, a server, or both a client and a server.
  • a device such as a light bulb
  • a basic function can only be used as a server, and can be provided to the client for query and control.
  • the business interaction between the client and the server can be achieved by performing RESTful operations on resources, that is, CRUDN operation methods such as Create (Create), Read (Retrieve), Update (Update), Delete (Delete), and Notify (Notify).
  • RESTful operations on resources
  • CRUDN operation methods such as Create (Create), Read (Retrieve), Update (Update), Delete (Delete), and Notify (Notify).
  • the client is the initiator of the RESTful operation
  • the server is the responder of the RESTful operation.
  • the client sends a resource operation request to the server, and requests to operate the resources on the server.
  • the server performs the resource operation and returns a response to the client. , the content and description information of the resource are carried in the response.
  • resources are described as the resource model layer.
  • Each resource has a corresponding interface that supports Restful operations. It is the transmission protocol layer that transmits resource content and description information. By mapping resource operations to specific transmission protocols, the Restful operation of each resource is transformed into an entity message that is transmitted between devices to achieve interconnection between devices.
  • the resource resides in the device, and each resource has its own Uniform Resource Identifier (URI).
  • URI Uniform Resource Identifier
  • the resource URI can be specified by the resource creator when the resource is created.
  • some specific resources have predefined resources.
  • URI i.e. the resource has a fixed URI.
  • a resource has one or more resource types, and the request to create a resource needs to specify the resource type corresponding to the resource.
  • the above-mentioned configuration resources are resources used for configuring the non-OCF protocol network.
  • the OCF client needs to configure the non-OCF protocol network, it sends a configuration attribute to the OCF bridge device in the OCF bridge platform. The property value of the network configuration request.
  • Step 302 Determine the non-OCF virtual client corresponding to the network configuration request.
  • the non-OCF virtual client is a virtual device constructed in the OCF bridging platform, and the non-OCF virtual client has a networking function, that is, the non-OCF virtual client is used to form a non-OCF protocol network, so as to support the non-OCF protocol network
  • the non-OCF server accesses the non-OCF protocol network.
  • one or more non-OCF virtual clients are built in the OCF bridge platform.
  • the OCF bridge platform can determine the corresponding non-OCF virtual client according to the network configuration request client, that is, to determine the non-OCF virtual client to be configured by the network configuration request.
  • Step 303 Send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration operation is to the non-OCF virtual client
  • the non-OCF protocol network corresponding to the terminal performs the configuration operation.
  • the non-OCF virtual client has the networking function. Therefore, after the OCF bridge platform determines the non-OCF virtual client to be configured in the network configuration request, it can send a network configuration command to the non-OCF virtual client to pass the non-OCF virtual client.
  • the OCF virtual client configures the non-OCF protocol network according to the attribute value of the configuration attribute.
  • the above steps in the embodiments of the present application may be implemented by an OCF bridging functional component in the OCF bridging platform.
  • the OCF bridging functional component is a hardware component or a virtual component.
  • the OCF bridge platform includes an OCF bridge device 41 , an OCF bridge function component 42 and a non-OCF virtual client 43 .
  • the non-OCF virtual client 43 has a networking function
  • the OCF bridge device 41 has configuration resources for configuring the non-OCF protocol network corresponding to the non-OCF virtual client 43 .
  • the OCF client can be triggered to send a network configuration request to the OCF bridge device 41 through the configuration operation.
  • the network configuration request includes the attribute value of one or more configuration attributes in the above configuration resources; the OCF bridge device 41 sends the content in the network configuration request to the OCF bridging functional component 42, and the OCF bridging functional component 42 determines the The network configuration requests the non-OCF virtual client 43 to be configured, and then sends a network configuration instruction to the determined non-OCF virtual client 43, and the non-OCF virtual client 43 executes the attribute value corresponding to the above-mentioned configuration attribute according to the network configuration instruction. network configuration operations.
  • the OCF bridge device is provided with configuration resources for configuring non-OCF protocol networks.
  • the configuration request contains the attribute value of the configuration attribute in the configuration resource, it instructs the non-OCF virtual client to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the performance of the network.
  • FIG. 5 shows a flowchart of a method for configuring the Internet of Things provided by an embodiment of the present application.
  • the method may be executed by an OCF bridging platform, wherein the above-mentioned OCF bridging platform may be in the network architecture shown in FIG. 1 .
  • the method may include the following steps:
  • Step 501 create an OCF bridge device and a non-OCF virtual client.
  • an OCF bridge device and a non-OCF virtual client can be created locally.
  • the OCF bridge platform supports translation between the OCF protocol and one or more non-OCF protocols.
  • the OCF bridge platform when the OCF bridge platform supports translation between the OCF protocol and multiple non-OCF protocols, the OCF bridge platform creates a corresponding non-OCF virtual client for each OCF protocol it supports.
  • the OCF bridge platform when creating a non-OCF virtual client, the OCF bridge platform creates a non-OCF virtual client corresponding to Zigbee 3.0 (which can be called as Zigbee 3.0 virtual client) and BLE corresponding non-OCF virtual client (which can be called BLE virtual client).
  • the Zigbee 3.0 virtual client is a virtual coordinator device
  • the BLE virtual client is a virtual provider (Provisioner) device.
  • the OCF bridge platform when the OCF bridge platform creates the OCF bridge device, it creates an OCF bridge device common to different non-OCF protocols.
  • the OCF bridge platform creates an OCF bridge device locally, and the OCF bridge device corresponds to multiple different non-OCF protocols, that is, corresponds to multiple non-OCF virtual clients created by the OCF bridge platform.
  • the OCF bridge platform creates a single OCF bridge device, which corresponds to the Zigbee 3.0 virtual client and the BLE virtual client at the same time.
  • the OCF bridge platform when the OCF bridge platform creates the OCF bridge device, it creates an OCF bridge device dedicated to each non-OCF virtual client.
  • the OCF bridging platform further creates an OCF bridge device for each non-OCF virtual client.
  • the OCF bridge platform creates an OCF bridge device corresponding to the Zigbee 3.0 virtual client, and another OCF bridge device corresponding to the BLE virtual client.
  • Step 502 Create configuration resources corresponding to non-OCF virtual clients for the OCF bridge device.
  • the OCF bridging functional component in the OCF bridging platform creates corresponding configuration resources in the OCF bridge device for each non-OCF virtual client that has been created.
  • the OCF bridge function component instructs the OCF bridge device to create the Zigbee 3.0 protocol corresponding configuration resources for the Zigbee 3.0 virtual client, and instruct the OCF The bridge device creates configuration resources corresponding to the BLE protocol for the BLE virtual client.
  • the OCF bridge function component instructs the common OCF bridge device to create a plurality of different non-OCF protocol configuration resources.
  • the OCF bridge function component instructs the OCF bridge device to create two Configuration resources, respectively the configuration resources corresponding to the Zigbee 3.0 protocol and the configuration resources corresponding to the BLE protocol.
  • the OCF bridge function component instructs each OCF bridge device to create a corresponding non-OCF protocol configuration resource.
  • the OCF bridge platform when the OCF bridge platform creates the OCF bridge device a corresponding to the Zigbee 3.0 protocol and the OCF bridge device b corresponding to the BLE protocol, the OCF bridge The functional component instructs the OCF bridge device a to create configuration resources corresponding to the Zigbee 3.0 protocol, and instructs the OCF bridge device b to create configuration resources corresponding to the BLE protocol.
  • the configuration resource includes at least one of the following attributes:
  • the configuration resource created in the OCF bridge platform is a resource whose resource type is "oic.r.configmgmt", and the resource attribute is defined as follows:
  • Attribute type enumeration type: ["start”, “permit”, “stop”, “updatenetkey”, “updateappkey”]; among them, the "start” type corresponds to starting a non-OCF protocol network; the “permit” type corresponds to allowing non-OCF The protocol device accesses the non-OCF protocol network (allows the non-OCF protocol device to associate with the non-OCF protocol network); the "stop” type corresponds to stop the network started by the non-OCF protocol; the "updatenetkey” type corresponds to update the non-OCF protocol network layer key; " The updateappkey” type corresponds to updating the non-OCF protocol application layer key;
  • Access mode read and write.
  • Attribute type enumeration type: ["success”, "failed”]; among them, the "success” type corresponds to the event request success; the "failed” type corresponds to the event request failure;
  • Access mode read and write.
  • Access mode read and write.
  • the OCF interface types supported by the "oic.r.configmgmt" resource type are "oic.if.a” and “oic.if.baseline”; in this embodiment of the present application, the resource type Applied in OCF bridge device.
  • Step 503 Create an association relationship between the configuration resource and the non-OCF virtual client.
  • the OCF bridge device is an OCF bridge device common to different non-OCF protocols
  • an association relationship between the uniform resource locator URL address of the configuration resource and the non-OCF virtual client is created.
  • the OCF bridge device is an OCF bridge device common to different non-OCF protocols
  • the configuration resources can be configured through the URL address to distinguish different non-OCF protocol configuration resources.
  • the OCF bridging functional component can create an association relationship between the URL of each configuration resource and the corresponding non-OCF virtual client.
  • the OCF bridge device is an OCF bridge device dedicated to a non-OCF protocol
  • an association relationship between the identifier of the OCF bridge device and the non-OCF virtual client is created.
  • the OCF bridge function component creates an OCF bridge device
  • the association relationship between the identifier of , and the non-OCF virtual client, that is, the association between the configuration resource and the non-OCF virtual client can be realized.
  • Step 504 Receive a network configuration request sent by the OCF client through the OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device.
  • the OCF client when the OCF client sends the network configuration request, it can send the network configuration request according to the URL of the configuration resource of the non-OCF protocol network to be configured.
  • the OCF bridge platform receives the network configuration request through the OCF bridge device.
  • the OCF client sends the network configuration request through the URL address of the configuration resource.
  • the OCF client sends a Constrained Application Protocol (COAP) request of POST type
  • the address of the POST request is the URL of the configuration resource of the non-OCF protocol network to be configured
  • the payload of the POST request is the The property value of the configuration property in the configuration resource.
  • COAP Constrained Application Protocol
  • Step 505 Determine the non-OCF virtual client corresponding to the network configuration request.
  • the OCF bridge device when the above-mentioned OCF bridge device is an OCF bridge device common to different non-OCF protocols, after receiving the network configuration request sent by the OCF client, the OCF bridge device, according to the network configuration Request the URL address of the corresponding configuration resource, and the payload of the network configuration request (that is, the attribute value of the above configuration attribute) to initiate a resolution mapping relationship request to the OCF bridging functional component in the OCF bridging platform, and the OCF bridging functional component corresponds to the network configuration request The URL address of the configuration resource to query the above association relationship, and determine the non-OCF virtual client corresponding to the network configuration request.
  • the above-mentioned OCF bridge device is an OCF bridge device dedicated to a non-OCF protocol
  • the OCF bridge device receives the network configuration request sent by the OCF client, according to the device identifier of the OCF bridge device
  • the load of the network configuration request (that is, the attribute value of the above-mentioned configuration attribute) initiates a request for parsing the mapping relationship to the OCF bridging functional component in the OCF bridging platform
  • the OCF bridging functional component receives the network configuration request according to the device identification of the OCF bridge device
  • the above association relationship is queried to determine the non-OCF virtual client.
  • Step 506 Send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration operation is to the non-OCF virtual client
  • the non-OCF protocol network corresponding to the terminal performs the configuration operation.
  • the configuration operation includes at least one of the following operations:
  • Step 507 Receive the operation response of the configuration operation returned by the non-OCF virtual client; the operation response is used to indicate the operation result of the configuration operation.
  • the operation of whether the operation is successful is returned to the OCF bridging functional component.
  • the OCF bridging functional component receives the non-OCF virtual The operation response returned by the client.
  • Step 508 Send the operation response of the configuration operation to the OCF bridge device.
  • the OCF bridge function component After receiving the operation response returned by the non-OCF virtual client, the OCF bridge function component can send the operation response to the OCF bridge device.
  • the OCF bridge function component after receiving the operation response returned by the non-OCF virtual client, the OCF bridge function component returns the operation response to the corresponding OCF bridge device according to the URL address of the configuration resource.
  • the OCF bridge device stores the above operation response according to the URL address of the configuration resource.
  • Step 509 returning an operation response of the configuration operation to the OCF client through the OCF bridge device.
  • a response message of the network configuration request is returned to the OCF client through the OCF bridge device, and the response message includes an operation response of the configuration operation.
  • the OCF bridge device after receiving the network configuration request, does not return a response message to the OCF client for the request, but waits for the operation response to the configuration operation returned by the OCF bridge function component.
  • the OCF bridge device returns a response message of the network configuration request to the OCF client.
  • an operation response query request sent by the OCF client is received through the OCF bridge device
  • an operation response of the configuration operation is returned to the OCF client through the OCF bridge device.
  • the OCF bridge device can immediately return a response message of the request to the OCF client, and the OCF client can subsequently query the OCF bridge device for the operation response of the configuration operation.
  • the OCF client sends a GET-type COAP request to the OCF bridge device through the URL address of the corresponding configuration resource.
  • the OCF bridge device After receiving the request, the OCF bridge device returns the operation response of the configuration operation corresponding to the URL address to the OCF client.
  • FIG. 6 shows a schematic diagram of enabling a non-OCF protocol network and allowing a non-OCF server to access/associate the network involved in an embodiment of the present application.
  • a virtual client using Zigbee 3.0 and BLE protocols is used in the OCF bridging platform to illustrate the solution process.
  • the solution includes the following steps:
  • the virtual Zigbee client (Virtual Zigbee 3.0 Client) and the virtual BLE client (Virtual BLE Client) are used as the coordinator device (that is, the Zigbee3.0 coordinator) and the provisioner device respectively.
  • the coordinator device that is, the Zigbee3.0 coordinator
  • the provisioner device that is, the Zigbee3.0 coordinator
  • Zigbee coordinator device (Virtual Zigbee 3.0 Client) and BLE Provisioner (Virtual BLE Client) device initialization.
  • the Virtual Zigbee 3.0 Client and the Virtual BLE Client respectively send a request to the OCF bridging functional component to establish an association relationship with the resource, and the OCF bridging functional component establishes the resource URL and the Virtual Zigbee3.0 Client or Virtual BLE Client. and instruct the OCF bridge device to create the resources corresponding to the two resource URLs respectively.
  • the OCF client must first perform the Onboarding operation on the OCF bridge device, so that the device becomes the master device, and the OCF client can securely access the resources on the device.
  • the OCF client completes the non-OCF protocol (Zigbee 3.0 or BLE) networking and allows non-OCF protocol device access control operations by sending a POST request to the corresponding url;
  • the operation process is as follows:
  • the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload carried is:
  • the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request
  • the coordinator device determines to send a Zigbee network start request to the Zigbee coordinator according to the value start of the event in the payload, and sends the values of netkey and appkey to the Zigbee coordinator, and the Zigbee coordinator stores the values of netkey and appkey for Subsequent use, netkey will be broadcast through broadcast messages after the Zigbee network is successfully started.
  • the OCF bridge device waits for network startup status information.
  • the OCF bridge device after receiving the network startup status information returned by the Zigbee coordinator, the OCF bridge device returns the result to the OCF client. That is, the ACK message of the success or failure of the network startup is returned.
  • the OCF client decides whether to send a request to allow the network access device of the non-OCF protocol according to the network startup status returned by the OCF bridge device; when the OCF client receives the status information of the successful network startup, it sends a request to allow the network access device, and the OCF The client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload is:
  • the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request
  • the coordinator device sends a request to allow Zigbee network access to the Zigbee coordinator according to the value permit of the event in the payload.
  • the OCF bridge device waits for status information that allows access.
  • the OCF bridge device returns the result to the OCF client after receiving the status information of the network access allowed returned by the Zigbee coordinator; that is, returning an ACK message to the OCF client that the access is allowed or failed.
  • an outbound interface is reserved on the OCF client to configure the non-OCF server to access the network by means of voice or UI.
  • the Zigbee 3.0 server can access the network created and started by the Zigbee coordinator. After the Zigbee 3.0 server is successfully connected, it establishes a mapping relationship with the Virtual OCF Server, so that the OCF client can access the corresponding Zigbee through the Virtual OCF Server. 3.0 server;
  • the process of starting the BLE network and allowing BLE devices to access is the same as Zigbee 3.0, the difference is that the OCF bridge function component uses the "/eco/ble" resource address to find the BLE Provisioner device from the mapping relationship; the OCF client sends the POST request resource The url is "/eco/ble".
  • FIG. 7 shows a schematic diagram of the operation flow of stopping the non-OCF protocol network involved in the embodiment of the present application; wherein, only the Zigbee 3.0 protocol is used to illustrate the operation of stopping the non-OCF protocol network, and the OCF client can stop Zigbee
  • the coordinator (Virtual Zigbee 3.0 Client) continues to send out broadcast data for networking to stop the Zigbee coordinator from continuing to expand the network; other non-OCF protocols such as BLE operate the same; as shown in Figure 7:
  • the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload carried is:
  • the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request
  • the coordinator device sends a request to stop the Zigbee network to the Zigbee coordinator according to the value stop of the event in the payload.
  • the OCF bridge device waits for network startup status information. After the OCF bridge device receives the network stop status information returned by the Zigbee coordinator, it returns the result to the OCF client. That is, an ACK message is returned for the success or failure of the network stop.
  • the Zigbee coordinator does not send out broadcast data.
  • the new Zigbee device cannot receive the broadcast data sent by the Zigbee coordinator and cannot access the network.
  • the Zigbee device that has been connected to the network before can normal communication.
  • FIG. 8 shows an operation flowchart of modifying a non-OCF protocol network key involved in an embodiment of the present application.
  • the OCF client can update the Zigbee coordinator (Virtual Zigbee 3.0 Client) as the central trusted node to send the network layer key and application layer key to the network.
  • the Zigbee coordinator Virtual Zigbee 3.0 Client
  • the OCF protocol operates the same; as shown in Figure 8:
  • the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload carried is:
  • the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request
  • the coordinator sends a request for updating the network layer key or application layer key in the Zigbee network to the Zigbee coordinator according to the value updatenetkey or updateappkey of the event in the payload; after the OCF bridge device receives the key update status information returned by the Zigbee coordinator , which returns the result to the OCF client. That is, an ACK message is returned for the success or failure of the key update.
  • the Zigbee coordinator uses the "netkey” or "appkey” in the payload to update the network layer key or the application layer key.
  • FIGS. 6 to 8 are all described by taking an example that the OCF bridge device is an OCF bridge device common to different non-OCF protocols.
  • FIG. 9 shows another schematic diagram of starting a non-OCF protocol network involved in an embodiment of the present application.
  • the virtual client using Zigbee 3.0 and BLE two protocols is used in the OCF bridge platform to illustrate the solution process.
  • the solution includes the following steps:
  • S91 is the same as S61 in FIG. 6 above.
  • OCF bridge device located in the OCF bridge platform
  • the device type is "oic.d.bridge”
  • there are two OCF bridge devices in the OCF bridge platform corresponding to the virtual clients of Zigbee 3.0 and BLE protocols respectively.
  • an independent OCF bridge device is created for each supported non-OCF protocol bridge in the OCF bridge platform.
  • S93 respectively create resources for the two OCF bridge devices, the resource types of the two resources are the same, and both are "oic.r.configmgmt"; the resources are distinguished by url.
  • each non-OCF virtual client establishes an OCF bridge device, so the OCF bridge device id (unique identification device) is used to establish a mapping relationship with the non-OCF virtual client; that is, the ID of the OCF bridge device 1 is used to coordinate with Zigbee
  • the device establishes a mapping relationship, and uses the identity of the OCF bridge device 2 to establish a mapping relationship with the BLE Provisioner device.
  • the Virtual Zigbee 3.0 Client and the Virtual BLE Client respectively send a request to establish an association relationship with the resource to the OCF bridging functional component, and the OCF bridging functional component establishes the relationship between the identity of the OCF bridge device 1 and the Virtual Zigbee 3.0 Client.
  • the association relationship between the OCF bridge device 2 and the Virtual BLE Client is established, and the OCF bridge device 1 is instructed to create the resources corresponding to Zigbee 3.0, and the OCF bridge device 2 is instructed to create the resources corresponding to BLE.
  • the OCF client completes the networking of the non-OCF protocol (Zigbee 3.0 or BLE) and the control operation of allowing the access of non-OCF protocol devices by sending a POST request to the corresponding url;
  • the operation process is as follows:
  • the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device 1, and the payload carried is:
  • S95 is the same as S65 in the above-mentioned FIG. 6 . Meanwhile, the OCF bridge device 1 waits for network startup status information.
  • the OCF bridge device 1 after receiving the network startup status information returned by the Zigbee coordinator, the OCF bridge device 1 returns the result to the OCF client. That is, the ACK message of the success or failure of the network startup is returned.
  • the startup process of the BLE network is the same as that of Zigbee 3.0, the difference is that the OCF bridge device 2 receives the request and returns the status information to the OCF client.
  • the OCF bridge function component uses the "/eco/ble" resource address to find the BLE Provisioner from the mapping relationship device; the resource url sent by the OCF client POST request is "/eco/ble".
  • FIG. 10 shows another schematic diagram of starting a non-OCF protocol network involved in an embodiment of the present application.
  • the Zigbee 3.0 virtual client is used in the OCF bridge platform to illustrate the solution process.
  • the solution includes the following steps:
  • S1001 to S1005 are the same as S61 to S65 in FIG. 6 above.
  • the OCF bridge device after the OCF bridge device sends the request for parsing the mapping relationship, it immediately returns network startup status information to the OCF client, for example, returns an ACK message that the network startup is successful.
  • the OCF client sends a GET request to the "/eco/zigbee3.0" resource url of the OCF bridge device.
  • the OCF bridge device after receiving the GET request sent by the OCF client, the OCF bridge device returns the network startup status information actually returned by the non-OCF virtual client to the OCF client.
  • the OCF client may further initiate a request for allowing network access.
  • the solution shown in Figure 10 above only uses the Zigbee 3.0 protocol for description, and other non-OCF protocols (BLE) operate the same as the Zigbee 3.0 protocol; and this solution is applicable to a single OCF bridge device or multiple OCF bridge devices.
  • BLE non-OCF protocols
  • the OCF bridge device is provided with configuration resources for configuring non-OCF protocol networks.
  • the configuration request contains the attribute value of the configuration attribute in the configuration resource, it instructs the non-OCF virtual client to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the performance of the network.
  • FIG. 11 shows a block diagram of an IoT configuration apparatus provided by an embodiment of the present application.
  • the device is used in an OCF bridging platform, and has the function of implementing the steps performed by the OCF bridging platform in the above-mentioned IoT configuration method.
  • the apparatus may include:
  • the request receiving module 1101 is configured to receive, through the OCF bridge device, a network configuration request sent by the OCF client, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is one of the configuration resources supported by the OCF bridge device. Attributes;
  • a virtual client determining module 1102 configured to determine a non-OCF virtual client corresponding to the network configuration request
  • a configuration module 1103, configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform the configuration operation of the configuration attribute according to the attribute value; the The configuration operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
  • the configuration operation includes at least one of the following operations:
  • the apparatus further includes:
  • a resource creation module configured to create the configuration resource for the OCF bridge device.
  • the device creation module is used to create the OCF bridge device common to different non-OCF protocols
  • the device also includes:
  • a first association module configured to create an association relationship between the uniform resource locator URL address of the configuration resource and the non-OCF virtual client;
  • the request receiving module is configured to receive, through the OCF bridge device, the network configuration request sent by the OCF client through the URL address of the configuration resource;
  • the virtual client determining module is configured to query the association relationship through the URL address of the configuration resource corresponding to the network configuration request, and determine the non-OCF virtual client.
  • the device creation module is configured to create the OCF bridge device dedicated to the non-OCF virtual client
  • the device also includes:
  • a second association module configured to create an association relationship between the identifier of the OCF bridge device and the non-OCF virtual client
  • the virtual client determining module is configured to query the association relationship according to the device identifier of the OCF bridge device that receives the network configuration request, and determine the non-OCF virtual client.
  • the configuration resource includes at least one of the following attributes:
  • the apparatus further includes:
  • a response receiving module configured to receive the operation response of the configuration operation returned by the non-OCF virtual client; the operation response is used to indicate the operation result of the configuration operation;
  • a response sending module configured to send the operation response of the configuration operation to the OCF bridge device
  • a response returning module configured to return an operation response of the configuration operation to the OCF client through the OCF bridge device.
  • the response returning module is configured to return a response message of the network configuration request to the OCF client through the OCF bridge device, where the response message includes the information of the configuration operation. Action response.
  • the response returning module is configured to return the operation response of the configuration operation to the OCF client when receiving the operation response query request sent by the OCF client.
  • the OCF bridge device is provided with configuration resources for configuring non-OCF protocol networks.
  • the configuration request contains the attribute value of the configuration attribute in the configuration resource, it instructs the non-OCF virtual client to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the performance of the network.
  • 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 computer device 1200 provided by an embodiment of the present application.
  • the computer device 1200 may include: a processor 1201 , a receiver 1202 , a transmitter 1203 , a memory 1204 and a bus 1205 .
  • the processor 1201 includes one or more processing cores, and the processor 1201 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip.
  • the communication chip may also be referred to as a transceiver.
  • the memory 1204 is connected to the processor 1201 through the bus 1205 .
  • the memory 1204 can be used to store a computer program, and the processor 1201 is used to execute the computer program, so as to implement each step performed by the OCF bridge platform in the above method embodiments.
  • memory 1204 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, Erasable Programmable Read Only Memory, Static Anytime Access Memory, Read Only Memory, Magnetic Memory, Flash Memory, Programmable Read Only Memory.
  • the computer device includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information) and a transmitter.
  • the transceiver may include a receiver for receiving information and a transmitter for transmitting information
  • the computer device when the computer device is implemented as an OCF bridge platform,
  • the transceiver is configured to receive, through the OCF bridge device, a network configuration request sent by the OCF client, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is one of the configuration resources supported by the OCF bridge device. Attributes;
  • the processor configured to determine the non-OCF virtual client corresponding to the network configuration request
  • the processor configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value;
  • the configuration operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
  • the processor and transceiver in the computer device involved in the embodiments of the present application may perform the steps performed by the OCF bridge in the method shown in FIG. 3 or FIG. 5 , which are not repeated here. Repeat.
  • An 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 loaded and executed by a processor to implement the Internet of Things configuration method shown in FIG. 3 or FIG. 5 . in each step.
  • the application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs each step in the Internet of Things configuration method shown in the above 3 or FIG. 5 .
  • 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.

Abstract

The present application relates to the technical field of Internet of Things, and discloses an Internet of Things configuration method and apparatus, a computer device, and a storage medium. The method comprises: receiving, by an OCF bridge device, a network configuration request sent by an OCF client, the network configuration request comprising an attribute value of a configuration attribute; determining a non-OCF virtual client corresponding to the network configuration request; sending a network configuration instruction to the non-OCF virtual client, the network configuration instruction being used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value, and the configuration operation being an operation of configuring a non-OCF protocol network corresponding to the non-OCF virtual client. The solution implements configuration of a non-OCF protocol network by an OCF client, thereby improving the network management effect on the Internet of Things.

Description

物联网配置方法、装置、计算机设备及存储介质Internet of things configuration method, device, computer equipment and storage medium 技术领域technical field
本申请涉及无线通信技术领域,特别涉及一种物联网配置方法、装置、计算机设备及存储介质。The present application relates to the field of wireless communication technologies, and in particular, to an Internet of Things configuration method, device, computer equipment, and storage medium.
背景技术Background technique
在物联网(Internet of Things,IOT)中,用户可以通过客户端远程控制服务端设备的功能操作。In the Internet of Things (IOT), the user can remotely control the functional operation of the server device through the client.
在相关技术中,物联网中广泛使用的协议是开放连接基金会(Open Connectivity Foundation,OCF)协议,同时,市面上也存在很多支持非OCF协议的服务端(可以称为非OCF服务端)。为了在使得支持OCF协议的客户端(OCF客户端)能够兼容非OCF服务端设备,在一种可行的方案中,通过桥接平台来实现OCF协议与非OCF协议之间的转换,已使得OCF客户端能够访问非OCF协议网络。In related technologies, the protocol widely used in the Internet of Things is the Open Connectivity Foundation (OCF) protocol. At the same time, there are many servers (which can be called non-OCF servers) that support non-OCF protocols on the market. In order to make the client (OCF client) supporting the OCF protocol compatible with non-OCF server devices, in a feasible solution, the conversion between the OCF protocol and the non-OCF protocol is realized through a bridge platform, which has made the OCF client The endpoint can access the non-OCF protocol network.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种物联网配置方法、装置、计算机设备及存储介质。所述技术方案如下:The embodiments of the present application provide an Internet of Things configuration method, apparatus, computer equipment, and storage medium. The technical solution is as follows:
一方面,本申请实施例提供了一种物联网配置方法,所述方法由开放连接基金会OCF桥接平台执行,所述方法包括:On the one hand, an embodiment of the present application provides a method for configuring the Internet of Things, the method is executed by the OCF bridge platform of the Open Connectivity Foundation, and the method includes:
通过OCF桥设备接收OCF客户端发送的网络配置请求,所述网络配置请求中包含配置属性的属性值;所述配置属性是所述OCF桥设备支持的配置资源中的属性;Receive a network configuration request sent by the OCF client through the OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device;
确定所述网络配置请求对应的非OCF虚拟客户端;determining a non-OCF virtual client corresponding to the network configuration request;
向所述非OCF虚拟客户端发送网络配置指令,所述网络配置指令用于指示所述非OCF虚拟客户端根据所述属性值执行所述配置属性的配置操作;所述配置操作是对所述非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。Send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration operation is for the Configure the non-OCF protocol network corresponding to the non-OCF virtual client.
另一方面,本申请实施例提供了一种物联网配置装置,所述装置用于OCF桥接平台中,所述装置包括:On the other hand, an embodiment of the present application provides an IoT configuration device, the device is used in an OCF bridging platform, and the device includes:
请求接收模块,用于通过OCF桥设备接收OCF客户端发送的网络配置请求,所述网络配置请求中包含配置属性的属性值;所述配置属性是所述OCF桥设备支持的配置资源中的属性;A request receiving module, configured to receive a network configuration request sent by an OCF client through an OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device ;
虚拟客户端确定模块,用于确定所述网络配置请求对应的非OCF虚拟客户端;a virtual client determination module, configured to determine a non-OCF virtual client corresponding to the network configuration request;
配置模块,用于向所述非OCF虚拟客户端发送网络配置指令,所述网络配置指令用于指示所述非OCF虚拟客户端根据所述属性值执行所述配置属性的配置操作;所述配置操作是对所述非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。a configuration module, configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration The operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述物联网配置方法。In another aspect, an embodiment of the present application provides a computer device, the computer device includes a processor, a memory, and a transceiver, the memory stores a computer program, and the computer program is configured to be executed by the processor to Implement the above IoT configuration method.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述物联网配置方法。In another aspect, an 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 loaded and executed by a processor to implement the above-mentioned method for configuring the Internet of Things.
另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述物联网配置方法。In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned method for configuring the Internet of Things.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:
OCF桥设备中设置有用于对非OCF协议网络进行配置的配置资源,当通过OCF桥设备接收到OCF客户端发送的网络配置请求,且网络配置请求中包含该配置资源中的配置属性的属性值时,指示非OCF虚拟客户端对非OCF协议网络执行配置操作,从而实现了通过OCF客户端对非OCF协议网络的配置,从而提高了对物联网的网络管理效果。The OCF bridge device is provided with a configuration resource for configuring the non-OCF protocol network. When a network configuration request sent by the OCF client is received through the OCF bridge device, and the network configuration request includes the attribute value of the configuration attribute in the configuration resource When , the non-OCF virtual client is instructed to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the network management effect of the Internet of Things.
附图说明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是本申请一个实施例提供的物联网的网络架构的示意图;1 is a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application;
图2是图1所示实施例涉及的Zigbee协议到OCF协议的桥接模型示意图;2 is a schematic diagram of a bridge model from the Zigbee protocol to the OCF protocol involved in the embodiment shown in FIG. 1;
图3是本申请一个实施例提供的物联网配置方法的流程图;3 is a flowchart of an Internet of Things configuration method provided by an embodiment of the present application;
图4是图3所示实施例涉及的一种网络配置的架构图;4 is an architectural diagram of a network configuration involved in the embodiment shown in FIG. 3;
图5是本申请一个实施例提供的物联网配置方法的流程图;5 is a flowchart of a method for configuring the Internet of Things provided by an embodiment of the present application;
图6是图5所示实施例涉及的一种启动非OCF协议网络;Fig. 6 is a kind of starting non-OCF protocol network involved in the embodiment shown in Fig. 5;
图7是图5所示实施例涉及的停止非OCF协议网络的操作流程示意图;7 is a schematic diagram of an operation flow of stopping a non-OCF protocol network involved in the embodiment shown in FIG. 5;
图8是图5所示实施例涉及的修改非OCF协议网络密钥的操作流程图;Fig. 8 is the operation flow chart of modifying the non-OCF protocol network key involved in the embodiment shown in Fig. 5;
图9是图5所示实施例涉及的另一种启动非OCF协议网络的示意图;FIG. 9 is a schematic diagram of another startup non-OCF protocol network involved in the embodiment shown in FIG. 5;
图10是图5所示实施例涉及的另一种启动非OCF协议网络的示意图;10 is a schematic diagram of another startup non-OCF protocol network involved in the embodiment shown in FIG. 5;
图11是本申请一个实施例提供的物联网配置装置的框图;11 is a block diagram of an IoT configuration apparatus provided by an embodiment of the present application;
图12是本申请一个实施例提供的计算机设备的结构示意图。FIG. 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。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.
本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. The evolution of new business scenarios and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
请参考图1,其示出了本申请一个实施例提供的物联网的网络架构的示意图。该物联网的网络架构可以包括:非OCF服务端110、OCF桥接平台120以及OCF客户端130;Please refer to FIG. 1 , which shows a schematic diagram of a network architecture of the Internet of Things provided by an embodiment of the present application. The network architecture of the Internet of Things may include: a non-OCF server 110, an OCF bridge platform 120, and an OCF client 130;
非OCF服务端110可以是用于提供物联网功能服务的设备。并且,非OCF服务端110是支持OCF协议之外的其它通信协议的服务端。The non-OCF server 110 may be a device for providing IoT functional services. Also, the non-OCF server 110 is a server that supports other communication protocols other than the OCF protocol.
比如,非OCF服务端110是支持紫蜂Zigbee协议(比如Zigbee 3.0,一种低速短距离传输的无线网上协议)的服务端,或者非OCF服务端110是支持蓝牙协议,比如支持蓝牙低功耗(Bluetooth Low Energy,BLE)协议的服务端。For example, the non-OCF server 110 is a server that supports the Zigbee protocol (such as Zigbee 3.0, a wireless network protocol for low-speed and short-distance transmission), or the non-OCF server 110 supports the Bluetooth protocol, such as Bluetooth low energy The server of the (Bluetooth Low Energy, BLE) protocol.
比如,服务端110可以是智能家居设备,例如,智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人等等。For example, the server 110 may be a smart home device, such as a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a cleaning robot, and the like.
或者,服务端110可以是工业生产设备,例如,车床、工业机器人、太阳能面板、风力发电机等等。Alternatively, the server 110 may be industrial production equipment, such as lathes, industrial robots, solar panels, wind turbines, and the like.
或者,服务端110可以是商业服务设备,例如,无人售货机等等。Alternatively, the server 110 may be a commercial service device, for example, a vending machine or the like.
或者,服务端110可以是智能监控设备,例如,监控摄像头、红外传感器、声音传感器、温度传感器等等。Alternatively, the server 110 may be an intelligent monitoring device, such as a monitoring camera, an infrared sensor, a sound sensor, a temperature sensor, and the like.
OCF客户端130是用户侧的终端设备。比如,客户端可以是智能手机、平板电脑、智能 手表等等;或者,客户端也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。The OCF client 130 is a terminal device on the user side. For example, the client can be a smart phone, a tablet, a smart watch, etc.; or, the client can also be a personal computer, such as a desktop computer, a laptop computer, a personal workstation, and so on.
OCF客户端130是支持OCF协议的设备。The OCF client 130 is a device that supports the OCF protocol.
OCF桥接平台120是用于桥接支持非OCF协议的非OCF服务端110,以及支持OCF协议的OCF客户端130,使得支持不同协议的非OCF服务端110与OCF客户端130之间实现互通的设备。The OCF bridging platform 120 is a device for bridging the non-OCF server 110 supporting the non-OCF protocol and the OCF client 130 supporting the OCF protocol, so that the non-OCF server 110 supporting different protocols and the OCF client 130 can communicate with each other. .
OCF桥接平台120可以是在网络层以上实现网络互连的网络设备,又称网间连接器、协议转换器等等。OCF桥接平台120可以为服务端110提供网络连接服务。The OCF bridging platform 120 may be a network device that implements network interconnection above the network layer, also known as a network connector, a protocol converter, and the like. The OCF bridge platform 120 may provide network connection services for the server 110 .
OCF桥接平台120可以是专业的网关,比如家庭网关,或者,OCF桥接平台120也可以是具有网关功能的接入设备,比如,具有网关功能的路由器。The OCF bridging platform 120 may be a professional gateway, such as a home gateway, or the OCF bridging platform 120 may also be an access device with a gateway function, such as a router with a gateway function.
在本申请实施例中,上述OCF桥接平台120以及OCF客户端130之间通过有线或者无线网络相连。In this embodiment of the present application, the above-mentioned OCF bridge platform 120 and the OCF client 130 are connected through a wired or wireless network.
可选的,上述的有线或者无线网络使用标准通信技术和/或协议。比如,上述有线或者无线网络可以是基于物联网IoT协议的通信网络。Optionally, the above wired or wireless network uses standard communication technologies and/or protocols. For example, the above wired or wireless network may be a communication network based on the IoT protocol of the Internet of Things.
在一种从BLE协议、Zigbee协议等非OCF协议到OCF协议映射关系方案中,从其它非OCF协议到OCF协议的翻译工作由OCF桥接平台完成,以通过Zigbee协议到OCF协议映射关系为例,请参考图2,其示出了本申请实施例涉及的一种Zigbee协议到OCF协议的桥接模型示意图。In a mapping relationship scheme from non-OCF protocols such as BLE protocol and Zigbee protocol to OCF protocol, the translation work from other non-OCF protocols to OCF protocol is completed by the OCF bridging platform. Taking the mapping relationship from Zigbee protocol to OCF protocol as an example, Please refer to FIG. 2 , which shows a schematic diagram of a bridge model from a Zigbee protocol to an OCF protocol involved in an embodiment of the present application.
如图2所示,物联网络中包含OCF客户端、OCF桥接平台以及非OCF服务端,其中,OCF桥接平台(OCF Bridge Platform)中包含以下组成部分:As shown in Figure 2, the IoT network includes an OCF client, an OCF bridge platform and a non-OCF server. The OCF Bridge Platform includes the following components:
虚拟(Virtual)Zigbee客户端(Client)21(或者是Virtual BLE Client等其它非OCF协议虚拟客户端):Virtual Zigbee Client是虚拟的Zigbee 3.0客户端,该虚拟设备可以是协调器设备(Coordinator),路由设备(Router)或者是普通的设备(End Device);Virtual (Virtual) Zigbee client (Client) 21 (or other non-OCF protocol virtual clients such as Virtual BLE Client): Virtual Zigbee Client is a virtual Zigbee 3.0 client, the virtual device can be a coordinator device (Coordinator), Router or common device (End Device);
Zigbee 3.0桥接功能组件22:该功能组件22主要将Zigbee 3.0服务端(Server)设备根据Zigbee到OCF桥接规范映射成标准的OCF协议设备;Zigbee 3.0 bridging functional component 22: The functional component 22 mainly maps the Zigbee 3.0 server (Server) device into a standard OCF protocol device according to the Zigbee to OCF bridging specification;
虚拟OCF服务端(Virtual OCF Server)23:虚拟OCF服务端23是虚拟的OCF协议的Server设备,是Zigbee 3.0 Server经过桥平台映射后得到的OCF协议设备;Virtual OCF server (Virtual OCF Server) 23: The virtual OCF server 23 is a virtual server device of the OCF protocol, and is an OCF protocol device obtained by the Zigbee 3.0 Server after being mapped by the bridge platform;
OCF桥接平台内部提供一个或多个符合OCF协议标准的桥设备(Bridge Device)。One or more bridge devices (Bridge Devices) conforming to the OCF protocol standard are provided within the OCF bridge platform.
在本方案中,OCF桥接平台规范中提供一个资源类型为“oic.r.vodlist”的资源,该资源属性定义如下:In this solution, the OCF bridging platform specification provides a resource with a resource type of "oic.r.vodlist", and the resource attributes are defined as follows:
1)该资源支持的OCF接口集合:1) The set of OCF interfaces supported by this resource:
属性名称:if;attribute name: if;
属性类型:数组类型:[“oic.if.baseline”,”oic.if.r”];property type: array type: ["oic.if.baseline", "oic.if.r"];
是否强制要求:否;Is it mandatory: no;
访问模式:只读。Access Mode: Read only.
2)被创建的每个虚拟OCF设备的信息组:2) Information group for each virtual OCF device created:
属性名称:vods;attribute name: vods;
属性类型:数组类型:[Property Type: Array Type: [
{{
“n”:”smoke sensor”,"n": "smoke sensor",
“di”:”12345678-1234-1234-1234-1234567890ABC”,"di": "12345678-1234-1234-1234-1234567890ABC",
“econame”:“Zigbee 3.0”"econame": "Zigbee 3.0"
},},
{{
“n”:”light”,"n": "light",
“di”:”1234ABCD-ABCD-ABCD-ABCD-1234567890ABC”,"di": "1234ABCD-ABCD-ABCD-ABCD-1234567890ABC",
“econame”:“BLE”"econame": "BLE"
},},
……...
];];
是否强制要求:是;Is it mandatory: yes;
访问模式:只读。Access Mode: Read only.
3)资源类型:3) Resource type:
属性名称:rt;attribute name: rt;
属性类型:数组类型:[“oic.r.vodlist”];property type: array type: ["oic.r.vodlist"];
是否强制要求:否;Is it mandatory: no;
访问模式:只读。Access Mode: Read only.
4)映射设备的设备名称:4) The device name of the mapped device:
属性名称:n;attribute name: n;
属性类型:Multiple Types(一般使用字符串);Attribute type: Multiple Types (usually strings are used);
是否强制要求:是;Is it mandatory: yes;
访问模式:读写。Access mode: read and write.
5)虚拟OCF设备公开的桥接设备的生态系统的名称:5) Name of the ecosystem of bridge devices exposed by the virtual OCF device:
属性名称:econame;attribute name: econame;
属性类型:字符串;property type: string;
是否强制要求:是;Is it mandatory: yes;
访问模式:只读。Access Mode: Read only.
6)映射设备设备标识:6) Mapping device device identification:
属性名称:di;attribute name: di;
属性类型:Multiple Types(一般使用字符串);Attribute type: Multiple Types (usually strings are used);
是否强制要求:是;Is it mandatory: yes;
访问模式:读写。Access mode: read and write.
OCF客户端可通过上述“oic.r.vodlist”资源访问与OCF协议映射的非OCF服务端所属的生态类型(是Zigbee 3.0还是BLE等),以及,非OCF服务端的设备类型等信息。The OCF client can access the ecological type (Zigbee 3.0 or BLE, etc.) of the non-OCF server mapped with the OCF protocol through the above-mentioned "oic.r.vodlist" resource, as well as information such as the device type of the non-OCF server.
其中,OCF桥接平台中的桥设备的设备类型为“oic.d.bridge”,在实现中该设备需要支持“oic.r.vodlist”资源类型,以供OCF协议客户端发现和访问。The device type of the bridge device in the OCF bridge platform is "oic.d.bridge", and in implementation, the device needs to support the "oic.r.vodlist" resource type for OCF protocol clients to discover and access.
然而,上述方案仅提供了对非OCF服务端的生态类型和设备类型等信息的访问,对于非OCF协议的网络,则无法进行灵活的管理控制,对物联网络的管理效果较差。However, the above solution only provides access to information such as the ecological type and device type of the non-OCF server. For the non-OCF protocol network, flexible management control cannot be performed, and the management effect of the IoT network is poor.
基于上述问题,本申请后续实施例提供一种物联网配置方案,可以实现通过OCF客户端对非OCF协议网络的控制管理。Based on the above problem, subsequent embodiments of the present application provide an Internet of Things configuration solution, which can implement control and management of a non-OCF protocol network through an OCF client.
请参考图3,其示出了本申请一个实施例提供的物联网配置方法的流程图,该方法可以由OCF桥接平台执行,其中,上述该OCF桥接平台可以是图1所示的网络架构中的OCF桥接平台120。该方法可以包括如下几个步骤:Please refer to FIG. 3 , which shows a flowchart of a method for configuring the Internet of Things provided by an embodiment of the present application. The method can be executed by an OCF bridging platform, wherein the above-mentioned OCF bridging platform can be in the network architecture shown in FIG. 1 . The OCF bridge platform 120. The method may include the following steps:
步骤301,通过OCF桥设备接收OCF客户端发送的网络配置请求,该网络配置请求中包含配置属性的属性值;该配置属性是该OCF桥设备支持的配置资源中的属性。Step 301: Receive a network configuration request sent by the OCF client through the OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device.
在本申请实施例中,OCF桥设备是OCF桥接平台中构建的虚拟设备,并且,该OCF桥设备支持配置资源。In this embodiment of the present application, the OCF bridge device is a virtual device constructed in the OCF bridge platform, and the OCF bridge device supports configuration resources.
在IoT协议中,资源用于表述物联网设备,以及设备提供的功能服务和设备的状态等信息,提供资源的设备是服务端,访问资源的设备是客户端。可选的,客户端和服务端可以是硬件实体,也可以是逻辑功能实体,每个设备可以是客户端、服务端或既是客户端又是服务端。例如,实现某项最基本功能的设备(例如灯泡)可以只做为服务端,提供给客户端进行查询和控制。In the IoT protocol, resources are used to express IoT devices, as well as information such as the functional services provided by the devices and the status of the devices. The device that provides resources is the server, and the device that accesses resources is the client. Optionally, the client and the server may be hardware entities or logical functional entities, and each device may be a client, a server, or both a client and a server. For example, a device (such as a light bulb) that implements a basic function can only be used as a server, and can be provided to the client for query and control.
可选的,客户端和服务端的业务交互可以通过对资源进行RESTful操作,即创建(Create)、读取(Retrieve)、更新(Update)、删除(Delete)和通知(Notify)这些CRUDN操作方法而实现。客户端是RESTful操作的发起方,服务端是RESTful操作的响应方,客户端向服务端发送资源操作请求,请求对服务端上的资源进行操作,服务端执行资源操作,并向客户端返回响应,响应中携带资源的内容及描述信息。Optionally, the business interaction between the client and the server can be achieved by performing RESTful operations on resources, that is, CRUDN operation methods such as Create (Create), Read (Retrieve), Update (Update), Delete (Delete), and Notify (Notify). accomplish. The client is the initiator of the RESTful operation, and the server is the responder of the RESTful operation. The client sends a resource operation request to the server, and requests to operate the resources on the server. The server performs the resource operation and returns a response to the client. , the content and description information of the resource are carried in the response.
在IoT协议中,对资源的描述为资源模型层每个资源具有支持Restful操作的相应接口。传输资源内容及描述信息的是传输协议层,通过把资源操作映射到具体的传输协议中,使每个资源的Restful操作转变为实体消息在设备间传递,以实现设备间的互联互通。In the IoT protocol, resources are described as the resource model layer. Each resource has a corresponding interface that supports Restful operations. It is the transmission protocol layer that transmits resource content and description information. By mapping resource operations to specific transmission protocols, the Restful operation of each resource is transformed into an entity message that is transmitted between devices to achieve interconnection between devices.
资源驻留在设备中,每个资源具有自己的统一资源标识符(Uniform Resource Identifier,URI),资源URI可以由该资源创建者在创建资源时指定,可选的,部分特定资源预定义了资源URI,即该资源具有固定URI。资源具有一个或多个资源类型,创建资源的请求需指定该资源对应的资源类型。The resource resides in the device, and each resource has its own Uniform Resource Identifier (URI). The resource URI can be specified by the resource creator when the resource is created. Optionally, some specific resources have predefined resources. URI, i.e. the resource has a fixed URI. A resource has one or more resource types, and the request to create a resource needs to specify the resource type corresponding to the resource.
在本申请实施例中,上述配置资源是用于对非OCF协议网络进行配置的资源,当OCF客户端需要对非OCF协议网络进行配置时,向OCF桥接平台中的OCF桥设备发送包含配置属性的属性值的网络配置请求。In the embodiment of the present application, the above-mentioned configuration resources are resources used for configuring the non-OCF protocol network. When the OCF client needs to configure the non-OCF protocol network, it sends a configuration attribute to the OCF bridge device in the OCF bridge platform. The property value of the network configuration request.
步骤302,确定该网络配置请求对应的非OCF虚拟客户端。Step 302: Determine the non-OCF virtual client corresponding to the network configuration request.
其中,非OCF虚拟客户端是OCF桥接平台中构建的虚拟设备,该非OCF虚拟客户端具有组网功能,即该非OCF虚拟客户端用于组建非OCF协议网络,以便支持该非OCF协议的非OCF服务端接入该非OCF协议网络。The non-OCF virtual client is a virtual device constructed in the OCF bridging platform, and the non-OCF virtual client has a networking function, that is, the non-OCF virtual client is used to form a non-OCF protocol network, so as to support the non-OCF protocol network The non-OCF server accesses the non-OCF protocol network.
在本申请实施例中,OCF桥接平台中构建有一个或者多个非OCF虚拟客户端,OCF桥接平台通过OCF桥设备接收到网络配置请求后,可以根据该网络配置请求确定对应的非OCF虚拟客户端,即确定该网络配置请求所要配置的非OCF虚拟客户端。In the embodiment of the present application, one or more non-OCF virtual clients are built in the OCF bridge platform. After receiving the network configuration request through the OCF bridge device, the OCF bridge platform can determine the corresponding non-OCF virtual client according to the network configuration request client, that is, to determine the non-OCF virtual client to be configured by the network configuration request.
步骤303,向该非OCF虚拟客户端发送网络配置指令,该网络配置指令用于指示该非OCF虚拟客户端根据该属性值执行该配置属性的配置操作;该配置操作是对该非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。Step 303: Send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration operation is to the non-OCF virtual client The non-OCF protocol network corresponding to the terminal performs the configuration operation.
上面提到非OCF虚拟客户端具有组网功能,因此,OCF桥接平台确定出网络配置请求所要配置的非OCF虚拟客户端后,即可以向该非OCF虚拟客户端发送网络配置指令,以通过非OCF虚拟客户端根据该配置属性的属性值,对非OCF协议网络进行配置操作。As mentioned above, the non-OCF virtual client has the networking function. Therefore, after the OCF bridge platform determines the non-OCF virtual client to be configured in the network configuration request, it can send a network configuration command to the non-OCF virtual client to pass the non-OCF virtual client. The OCF virtual client configures the non-OCF protocol network according to the attribute value of the configuration attribute.
其中,本申请实施例上述步骤可以由OCF桥接平台中的OCF桥接功能组件来实现。其中,OCF桥接功能组件是硬件组件或者虚拟组件。The above steps in the embodiments of the present application may be implemented by an OCF bridging functional component in the OCF bridging platform. The OCF bridging functional component is a hardware component or a virtual component.
例如,请参考图4,其示出了本申请实施例涉及的一种网络配置的架构图。如图4所示,OCF桥接平台中包含OCF桥设备41、OCF桥接功能组件42以及非OCF虚拟客户端43。其中,非OCF虚拟客户端43具有组网功能,OCF桥设备41中具有对非OCF虚拟客户端43对应的非OCF协议网络进行配置的配置资源。用户在使用OCF客户端访问OCF桥接平台时,如果需要对非OCF虚拟客户端43对应的非OCF协议网络进行配置,则可以通过配置操作触发OCF客户端向OCF桥设备41发送网络配置请求,该网络配置请求中包含上述配置资源中的某一项或者多项配置属性的属性值;OCF桥设备41将网络配置请求中的内容发送至OCF桥接功能组件42,由OCF桥接功能组件42确定出该网络配置请求所要配置的非OCF虚拟客户端43,然后向确定出的非OCF虚拟客户端43发送网络配置指令,非OCF虚拟客户端43根据该网络配置指令,执行上述配置属性的属性值相对应的网络配置操作。For example, please refer to FIG. 4 , which shows an architecture diagram of a network configuration involved in an embodiment of the present application. As shown in FIG. 4 , the OCF bridge platform includes an OCF bridge device 41 , an OCF bridge function component 42 and a non-OCF virtual client 43 . The non-OCF virtual client 43 has a networking function, and the OCF bridge device 41 has configuration resources for configuring the non-OCF protocol network corresponding to the non-OCF virtual client 43 . When the user uses the OCF client to access the OCF bridge platform, if the non-OCF protocol network corresponding to the non-OCF virtual client 43 needs to be configured, the OCF client can be triggered to send a network configuration request to the OCF bridge device 41 through the configuration operation. The network configuration request includes the attribute value of one or more configuration attributes in the above configuration resources; the OCF bridge device 41 sends the content in the network configuration request to the OCF bridging functional component 42, and the OCF bridging functional component 42 determines the The network configuration requests the non-OCF virtual client 43 to be configured, and then sends a network configuration instruction to the determined non-OCF virtual client 43, and the non-OCF virtual client 43 executes the attribute value corresponding to the above-mentioned configuration attribute according to the network configuration instruction. network configuration operations.
综上所述,本申请实施例所示的方案,OCF桥设备中设置有用于对非OCF协议网络进行配置的配置资源,当通过OCF桥设备接收到OCF客户端发送的网络配置请求,且网络配置请求中包含该配置资源中的配置属性的属性值时,指示非OCF虚拟客户端对非OCF协议网络执行配置操作,从而实现了通过OCF客户端对非OCF协议网络的配置,从而提高了对物联网的网络管理效果。To sum up, in the solutions shown in the embodiments of the present application, the OCF bridge device is provided with configuration resources for configuring non-OCF protocol networks. When the configuration request contains the attribute value of the configuration attribute in the configuration resource, it instructs the non-OCF virtual client to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the performance of the network. The network management effect of the Internet of Things.
请参考图5,其示出了本申请一个实施例提供的物联网配置方法的流程图,该方法可以由OCF桥接平台执行,其中,上述该OCF桥接平台可以是图1所示的网络架构中的OCF桥接平台120。该方法可以包括如下几个步骤:Please refer to FIG. 5 , which shows a flowchart of a method for configuring the Internet of Things provided by an embodiment of the present application. The method may be executed by an OCF bridging platform, wherein the above-mentioned OCF bridging platform may be in the network architecture shown in FIG. 1 . The OCF bridge platform 120. The method may include the following steps:
步骤501,创建OCF桥设备和非OCF虚拟客户端。 Step 501, create an OCF bridge device and a non-OCF virtual client.
在本申请实施例中,OCF桥接平台在启动后,可以在本地创建OCF桥设备和非OCF虚拟客户端。In this embodiment of the present application, after the OCF bridge platform is started, an OCF bridge device and a non-OCF virtual client can be created locally.
在一种可能的实现方式中,OCF桥接平台支持OCF协议与一种或者多种非OCF协议之间的翻译。In one possible implementation, the OCF bridge platform supports translation between the OCF protocol and one or more non-OCF protocols.
其中,当OCF桥接平台支持OCF协议与多种非OCF协议之间的翻译时,OCF桥接平台为其支持的每一种OCF协议,分别创建对应的非OCF虚拟客户端。Wherein, when the OCF bridge platform supports translation between the OCF protocol and multiple non-OCF protocols, the OCF bridge platform creates a corresponding non-OCF virtual client for each OCF protocol it supports.
比如,假设OCF桥接平台支持OCF协议与Zigbee 3.0和BLE这两种协议之间的翻译,则在创建非OCF虚拟客户端时,OCF桥接平台创建Zigbee 3.0对应的非OCF虚拟客户端(可以称为Zigbee 3.0虚拟客户端)以及BLE对应的非OCF虚拟客户端(可以称为BLE虚拟客户端)。For example, assuming that the OCF bridge platform supports the translation between the OCF protocol and Zigbee 3.0 and BLE, when creating a non-OCF virtual client, the OCF bridge platform creates a non-OCF virtual client corresponding to Zigbee 3.0 (which can be called as Zigbee 3.0 virtual client) and BLE corresponding non-OCF virtual client (which can be called BLE virtual client).
在一种可能的实现方式中,上述Zigbee 3.0虚拟客户端是虚拟协调器设备,上述BLE虚拟客户端是虚拟供应者(Provisioner)设备。In a possible implementation manner, the Zigbee 3.0 virtual client is a virtual coordinator device, and the BLE virtual client is a virtual provider (Provisioner) device.
在一种可能的实现方式中,OCF桥接平台创建该OCF桥设备时,创建不同的非OCF协议通用的OCF桥设备。In a possible implementation manner, when the OCF bridge platform creates the OCF bridge device, it creates an OCF bridge device common to different non-OCF protocols.
在上述可能的实现方式中,OCF桥接平台在本地创建一个OCF桥设备,该OCF桥设备对应多个不同非OCF协议的,也就是对应OCF桥接平台创建的多个非OCF虚拟客户端。In the above possible implementation manner, the OCF bridge platform creates an OCF bridge device locally, and the OCF bridge device corresponds to multiple different non-OCF protocols, that is, corresponds to multiple non-OCF virtual clients created by the OCF bridge platform.
比如,以OCF桥接平台创建了Zigbee 3.0虚拟客户端和BLE虚拟客户端为例,OCF桥接平台创建单个OCF桥设备,该OCF桥设备同时对应该Zigbee 3.0虚拟客户端和BLE虚拟客户端。For example, taking the Zigbee 3.0 virtual client and BLE virtual client created by the OCF bridge platform as an example, the OCF bridge platform creates a single OCF bridge device, which corresponds to the Zigbee 3.0 virtual client and the BLE virtual client at the same time.
在另一种可能的实现方式中,OCF桥接平台创建该OCF桥设备时,创建各个非OCF虚拟客户端专用的OCF桥设备。In another possible implementation manner, when the OCF bridge platform creates the OCF bridge device, it creates an OCF bridge device dedicated to each non-OCF virtual client.
在上述可能的实现方式中,针对OCF桥接平台创建的一个或者多个非OCF虚拟客户端,OCF桥接平台还针对每个非OCF虚拟客户端分别创建一个OCF桥设备。In the above possible implementation manner, for one or more non-OCF virtual clients created by the OCF bridging platform, the OCF bridging platform further creates an OCF bridge device for each non-OCF virtual client.
比如,以OCF桥接平台创建了Zigbee 3.0虚拟客户端和BLE虚拟客户端为例,OCF桥接平台创建Zigbee 3.0虚拟客户端对应的一个OCF桥设备,以及BLE虚拟客户端对应的另一个OCF桥设备。For example, taking the Zigbee 3.0 virtual client and BLE virtual client created by the OCF bridge platform as an example, the OCF bridge platform creates an OCF bridge device corresponding to the Zigbee 3.0 virtual client, and another OCF bridge device corresponding to the BLE virtual client.
步骤502,为OCF桥设备创建非OCF虚拟客户端对应的配置资源。Step 502: Create configuration resources corresponding to non-OCF virtual clients for the OCF bridge device.
在本申请实施例中,OCF桥接平台中的OCF桥接功能组件对于已创建的各个非OCF虚拟客户端,分别在OCF桥设备中创建对应的配置资源。In the embodiment of the present application, the OCF bridging functional component in the OCF bridging platform creates corresponding configuration resources in the OCF bridge device for each non-OCF virtual client that has been created.
比如,以OCF桥接平台创建了Zigbee 3.0虚拟客户端和BLE虚拟客户端为例,相应的,OCF桥接功能组件指示OCF桥设备针对Zigbee 3.0虚拟客户端创建Zigbee 3.0协议对应的配置资源,并指示OCF桥设备针对BLE虚拟客户端创建BLE协议对应的配置资源。For example, take the Zigbee 3.0 virtual client and BLE virtual client created by the OCF bridge platform as an example, correspondingly, the OCF bridge function component instructs the OCF bridge device to create the Zigbee 3.0 protocol corresponding configuration resources for the Zigbee 3.0 virtual client, and instruct the OCF The bridge device creates configuration resources corresponding to the BLE protocol for the BLE virtual client.
其中,当上述OCF桥设备是不同的非OCF协议通用的OCF桥设备时,OCF桥接功能组件指示该通用的OCF桥设备创建多个不同的非OCF协议的配置资源。Wherein, when the above-mentioned OCF bridge device is an OCF bridge device common to different non-OCF protocols, the OCF bridge function component instructs the common OCF bridge device to create a plurality of different non-OCF protocol configuration resources.
比如,以OCF桥接平台创建了Zigbee 3.0虚拟客户端和BLE虚拟客户端为例,当OCF桥设备是Zigbee 3.0和BLE通用的单个OCF桥设备时,OCF桥接功能组件指示该OCF桥设备创建两个配置资源,分别Zigbee 3.0协议对应的配置资源以及BLE协议对应的配置资源。For example, taking the Zigbee 3.0 virtual client and BLE virtual client created by the OCF bridge platform as an example, when the OCF bridge device is a single OCF bridge device common to Zigbee 3.0 and BLE, the OCF bridge function component instructs the OCF bridge device to create two Configuration resources, respectively the configuration resources corresponding to the Zigbee 3.0 protocol and the configuration resources corresponding to the BLE protocol.
或者,当上述OCF桥设备是非OCF虚拟客户端专用的OCF桥设备时,OCF桥接功能组件指示各个OCF桥设备分别创建对应的非OCF协议的配置资源。Alternatively, when the above-mentioned OCF bridge device is an OCF bridge device dedicated to a non-OCF virtual client, the OCF bridge function component instructs each OCF bridge device to create a corresponding non-OCF protocol configuration resource.
比如,以OCF桥接平台创建了Zigbee 3.0虚拟客户端和BLE虚拟客户端为例,当OCF桥接平台分别创建了Zigbee 3.0协议对应的OCF桥设备a和BLE协议对应的OCF桥设备b,则OCF桥接功能组件指示该OCF桥设备a创建Zigbee 3.0协议对应的配置资源,并指示OCF 桥设备b创建BLE协议对应的配置资源。For example, taking the Zigbee 3.0 virtual client and BLE virtual client created by the OCF bridge platform as an example, when the OCF bridge platform creates the OCF bridge device a corresponding to the Zigbee 3.0 protocol and the OCF bridge device b corresponding to the BLE protocol, the OCF bridge The functional component instructs the OCF bridge device a to create configuration resources corresponding to the Zigbee 3.0 protocol, and instructs the OCF bridge device b to create configuration resources corresponding to the BLE protocol.
其中,该配置资源包括以下属性中的至少一种:Wherein, the configuration resource includes at least one of the following attributes:
该配置资源支持的事件类型;Event types supported by this configuration resource;
对非OCF协议网络进行配置的状态;The status of configuring the non-OCF protocol network;
非OCF协议网络的协议类型;The protocol type of the non-OCF protocol network;
非OCF协议网络的网络层密钥;The network layer key of the non-OCF protocol network;
以及,非OCF协议网络的应用层密钥。And, the application layer key of the non-OCF protocol network.
在本申请实施例的一种可能实现方式中,OCF桥接平台中创建的配置资源是一个资源类型为“oic.r.configmgmt”的资源,该资源属性定义如下:In a possible implementation manner of the embodiment of the present application, the configuration resource created in the OCF bridge platform is a resource whose resource type is "oic.r.configmgmt", and the resource attribute is defined as follows:
1)资源支持的事件类型:1) Event types supported by the resource:
属性名称:event;attribute name: event;
属性类型:枚举类型:[“start”,“permit”,“stop”,“updatenetkey”,“updateappkey”];其中,“start”类型对应启动非OCF协议网络;“permit”类型对应允许非OCF协议设备接入非OCF协议网络(允许非OCF协议设备与非OCF协议网络关联);“stop”类型对应停止非OCF协议启动的网络;“updatenetkey”类型对应更新非OCF协议网络层密钥;“updateappkey”类型对应更新非OCF协议应用层密钥;Attribute type: enumeration type: ["start", "permit", "stop", "updatenetkey", "updateappkey"]; among them, the "start" type corresponds to starting a non-OCF protocol network; the "permit" type corresponds to allowing non-OCF The protocol device accesses the non-OCF protocol network (allows the non-OCF protocol device to associate with the non-OCF protocol network); the "stop" type corresponds to stop the network started by the non-OCF protocol; the "updatenetkey" type corresponds to update the non-OCF protocol network layer key; " The updateappkey" type corresponds to updating the non-OCF protocol application layer key;
是否强制要求:是;Is it mandatory: yes;
访问模式:读写。Access mode: read and write.
2)当前状态:2) Current status:
属性名称:status;attribute name: status;
属性类型:枚举类型:[“success”,“failed”];其中,“success”类型对应事件(event)请求成功;“failed”类型对应事件(event)请求失败;Attribute type: enumeration type: ["success", "failed"]; among them, the "success" type corresponds to the event request success; the "failed" type corresponds to the event request failure;
是否强制要求:是;Is it mandatory: yes;
访问模式:只读。Access Mode: Read only.
3)非OCF协议网络类型:3) Non-OCF protocol network type:
属性名称:ecosystem;attribute name: ecosystem;
属性类型:字符串;property type: string;
是否强制要求:是;Is it mandatory: yes;
访问模式:只读。Access Mode: Read only.
4)非OCF协议网络层密钥:4) Non-OCF protocol network layer key:
属性名称:netkey;attribute name: netkey;
属性类型:字符串;property type: string;
是否强制要求:否;Is it mandatory: no;
访问模式:读写。Access mode: read and write.
5)非OCF协议应用层密钥:5) Non-OCF protocol application layer key:
属性名称:appkey;attribute name: appkey;
属性类型:字符串;property type: string;
是否强制要求:否;Is it mandatory: no;
访问模式:读写。Access mode: read and write.
在一种可能的实现方式中,“oic.r.configmgmt”资源类型支持的OCF接口类型为“oic.if.a”和“oic.if.baseline”;在本申请实施例中,该资源类型在OCF桥设备中应用。In a possible implementation manner, the OCF interface types supported by the "oic.r.configmgmt" resource type are "oic.if.a" and "oic.if.baseline"; in this embodiment of the present application, the resource type Applied in OCF bridge device.
步骤503,创建配置资源与非OCF虚拟客户端之间的关联关系。Step 503: Create an association relationship between the configuration resource and the non-OCF virtual client.
在一种可能的实现方式中,当OCF桥设备是不同的非OCF协议通用的OCF桥设备时,创建该配置资源的统一资源定位符URL地址与该非OCF虚拟客户端之间的关联关系。In a possible implementation manner, when the OCF bridge device is an OCF bridge device common to different non-OCF protocols, an association relationship between the uniform resource locator URL address of the configuration resource and the non-OCF virtual client is created.
在上述可能的实现方式中,当OCF桥设备是不同的非OCF协议通用的OCF桥设备时,由于多个不同的非OCF协议的配置资源设置在同一个OCF桥设备中,可以通过配置资源的 URL地址来区分不同的非OCF协议的配置资源。相应的,OCF桥接功能组件可以创建各个配置资源的URL与对应的非OCF虚拟客户端之间的关联关系。In the above possible implementation manner, when the OCF bridge device is an OCF bridge device common to different non-OCF protocols, since the configuration resources of multiple different non-OCF protocols are set in the same OCF bridge device, the configuration resources can be configured through the URL address to distinguish different non-OCF protocol configuration resources. Correspondingly, the OCF bridging functional component can create an association relationship between the URL of each configuration resource and the corresponding non-OCF virtual client.
在另一种可能的实现方式中,当OCF桥设备是非OCF协议专用的OCF桥设备时,创建该OCF桥设备的标识与该非OCF虚拟客户端之间的关联关系。In another possible implementation manner, when the OCF bridge device is an OCF bridge device dedicated to a non-OCF protocol, an association relationship between the identifier of the OCF bridge device and the non-OCF virtual client is created.
在上述可能的实现方式中,当OCF桥设备是非OCF协议专用的OCF桥设备时,由于不同的非OCF协议的配置资源设置在不同的OCF桥设备中,因此,OCF桥接功能组件创建OCF桥设备的标识与非OCF虚拟客户端之间的关联关系,即可以实现配置资源与非OCF虚拟客户端之间的关联。In the above possible implementation manner, when the OCF bridge device is an OCF bridge device dedicated to a non-OCF protocol, since the configuration resources of different non-OCF protocols are set in different OCF bridge devices, the OCF bridge function component creates an OCF bridge device The association relationship between the identifier of , and the non-OCF virtual client, that is, the association between the configuration resource and the non-OCF virtual client can be realized.
步骤504,通过OCF桥设备接收OCF客户端发送的网络配置请求,该网络配置请求中包含配置属性的属性值;该配置属性是该OCF桥设备支持的配置资源中的属性。Step 504: Receive a network configuration request sent by the OCF client through the OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device.
在一种可能的实现方式中,OCF客户端发送网络配置请求时,可以根据要配置的非OCF协议网络的配置资源的URL发送该网络配置请求,相应的,OCF桥接平台通过该OCF桥设备接收该OCF客户端通过该配置资源的URL地址发送的该网络配置请求。In a possible implementation manner, when the OCF client sends the network configuration request, it can send the network configuration request according to the URL of the configuration resource of the non-OCF protocol network to be configured. Correspondingly, the OCF bridge platform receives the network configuration request through the OCF bridge device. The OCF client sends the network configuration request through the URL address of the configuration resource.
比如,OCF客户端发送POST类型的受限的应用协议(Constrained Application Protocol,COAP)请求,该POST请求的地址为要配置的非OCF协议网络的配置资源的URL,且该POST请求的载荷为该配置资源中的配置属性的属性值。For example, the OCF client sends a Constrained Application Protocol (COAP) request of POST type, the address of the POST request is the URL of the configuration resource of the non-OCF protocol network to be configured, and the payload of the POST request is the The property value of the configuration property in the configuration resource.
步骤505,确定该网络配置请求对应的非OCF虚拟客户端。Step 505: Determine the non-OCF virtual client corresponding to the network configuration request.
在本申请实施例的一种可能的实现方式中,当上述OCF桥设备是不同的非OCF协议通用的OCF桥设备时,OCF桥设备接收到OCF客户端发送的网络配置请求后,根据网络配置请求对应的配置资源的URL地址,以及网络配置请求的载荷(即上述配置属性的属性值)向OCF桥接平台中的OCF桥接功能组件发起解析映射关系请求,该OCF桥接功能组件通过网络配置请求对应的配置资源的URL地址查询上述关联关系,确定网络配置请求对应的非OCF虚拟客户端。In a possible implementation manner of the embodiment of the present application, when the above-mentioned OCF bridge device is an OCF bridge device common to different non-OCF protocols, after receiving the network configuration request sent by the OCF client, the OCF bridge device, according to the network configuration Request the URL address of the corresponding configuration resource, and the payload of the network configuration request (that is, the attribute value of the above configuration attribute) to initiate a resolution mapping relationship request to the OCF bridging functional component in the OCF bridging platform, and the OCF bridging functional component corresponds to the network configuration request The URL address of the configuration resource to query the above association relationship, and determine the non-OCF virtual client corresponding to the network configuration request.
在一种可能的实现方式中,当上述OCF桥设备是某一非OCF协议专用的OCF桥设备时,OCF桥设备接收到OCF客户端发送的网络配置请求后,根据OCF桥设备的设备标识,以及网络配置请求的载荷(即上述配置属性的属性值)向OCF桥接平台中的OCF桥接功能组件发起解析映射关系请求,该OCF桥接功能组件根据接收该网络配置请求的该OCF桥设备的设备标识查询上述关联关系,确定该非OCF虚拟客户端。In a possible implementation manner, when the above-mentioned OCF bridge device is an OCF bridge device dedicated to a non-OCF protocol, after the OCF bridge device receives the network configuration request sent by the OCF client, according to the device identifier of the OCF bridge device, And the load of the network configuration request (that is, the attribute value of the above-mentioned configuration attribute) initiates a request for parsing the mapping relationship to the OCF bridging functional component in the OCF bridging platform, and the OCF bridging functional component receives the network configuration request according to the device identification of the OCF bridge device The above association relationship is queried to determine the non-OCF virtual client.
步骤506,向该非OCF虚拟客户端发送网络配置指令,该网络配置指令用于指示该非OCF虚拟客户端根据该属性值执行该配置属性的配置操作;该配置操作是对该非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。Step 506: Send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration operation is to the non-OCF virtual client The non-OCF protocol network corresponding to the terminal performs the configuration operation.
在一种可能的实现方式中,该配置操作包括以下操作中的至少一项:In a possible implementation manner, the configuration operation includes at least one of the following operations:
启动非OCF协议网络;Start a non-OCF protocol network;
允许非OCF服务端接入非OCF协议网络;Allow non-OCF servers to access non-OCF protocol networks;
关闭非OCF协议网络;Close the non-OCF protocol network;
修改非OCF协议网络的网络层密钥;Modify the network layer key of the non-OCF protocol network;
以及,修改非OCF协议网络的应用层密钥。And, modify the application layer key of the non-OCF protocol network.
步骤507,接收该非OCF虚拟客户端返回的,该配置操作的操作响应;该操作响应用于指示该配置操作的操作结果。Step 507: Receive the operation response of the configuration operation returned by the non-OCF virtual client; the operation response is used to indicate the operation result of the configuration operation.
在本申请实施例中,非OCF虚拟客户端执行对应的非OCF协议网络的配置操作之后,将是否操作成功的操作相应返回给OCF桥接功能组件,相应的,OCF桥接功能组件接收该非OCF虚拟客户端返回的操作响应。In the embodiment of the present application, after the non-OCF virtual client performs the corresponding non-OCF protocol network configuration operation, the operation of whether the operation is successful is returned to the OCF bridging functional component. Correspondingly, the OCF bridging functional component receives the non-OCF virtual The operation response returned by the client.
步骤508,将该配置操作的操作响应发送给该OCF桥设备。Step 508: Send the operation response of the configuration operation to the OCF bridge device.
OCF桥接功能组件接收该非OCF虚拟客户端返回的操作响应后,即可以将该操作响应发送给OCF桥设备。After receiving the operation response returned by the non-OCF virtual client, the OCF bridge function component can send the operation response to the OCF bridge device.
在一种可能的实现方案中,OCF桥接功能组件接收该非OCF虚拟客户端返回的操作响应 后,根据上述配置资源的URL地址,将该操作响应返回给对应的OCF桥设备。相应的,OCF桥设备根据该配置资源的URL地址,保存上述操作响应。In a possible implementation solution, after receiving the operation response returned by the non-OCF virtual client, the OCF bridge function component returns the operation response to the corresponding OCF bridge device according to the URL address of the configuration resource. Correspondingly, the OCF bridge device stores the above operation response according to the URL address of the configuration resource.
步骤509,通过该OCF桥设备向该OCF客户端返回该配置操作的操作响应。 Step 509, returning an operation response of the configuration operation to the OCF client through the OCF bridge device.
在一种可能的实现方式中,通过该OCF桥设备向该OCF客户端返回该网络配置请求的响应消息,该响应消息中包含该配置操作的操作响应。In a possible implementation manner, a response message of the network configuration request is returned to the OCF client through the OCF bridge device, and the response message includes an operation response of the configuration operation.
在上述步骤504中,OCF桥设备接收到网络配置请求后,暂不向OCF客户端返回该请求的响应消息,而是等到接收到OCF桥接功能组件返回的,对该配置操作的操作响应后,该OCF桥设备向OCF客户端返回该网络配置请求的响应消息。In the above step 504, after receiving the network configuration request, the OCF bridge device does not return a response message to the OCF client for the request, but waits for the operation response to the configuration operation returned by the OCF bridge function component. The OCF bridge device returns a response message of the network configuration request to the OCF client.
在另一种可能的实现方式中,当通过该OCF桥设备接收到该OCF客户端发送的操作响应查询请求时,通过该OCF桥设备向该OCF客户端返回该配置操作的操作响应。In another possible implementation manner, when an operation response query request sent by the OCF client is received through the OCF bridge device, an operation response of the configuration operation is returned to the OCF client through the OCF bridge device.
在上述步骤504中,OCF桥设备接收到网络配置请求后,可以立即向OCF客户端返回该请求的响应消息,后续OCF客户端可以向该OCF桥设备查询该配置操作的操作响应。比如,OCF客户端通过对应的配置资源的URL地址,向OCF桥设备发送GET类型的COAP请求,OCF桥设备接收到请求后,将该URL地址对应的配置操作的操作响应返回给OCF客户端。In the above step 504, after receiving the network configuration request, the OCF bridge device can immediately return a response message of the request to the OCF client, and the OCF client can subsequently query the OCF bridge device for the operation response of the configuration operation. For example, the OCF client sends a GET-type COAP request to the OCF bridge device through the URL address of the corresponding configuration resource. After receiving the request, the OCF bridge device returns the operation response of the configuration operation corresponding to the URL address to the OCF client.
请参考图6,其示出了本申请实施例涉及的一种启动非OCF协议网络,并允许非OCF服务端接入/关联网络的示意图。如图6所示,本方案中在OCF桥接平台中使用Zigbee 3.0和BLE两种协议的虚拟客户端说明方案流程,该方案包括如下步骤:Please refer to FIG. 6 , which shows a schematic diagram of enabling a non-OCF protocol network and allowing a non-OCF server to access/associate the network involved in an embodiment of the present application. As shown in Figure 6, in this solution, a virtual client using Zigbee 3.0 and BLE protocols is used in the OCF bridging platform to illustrate the solution process. The solution includes the following steps:
OCF桥接平台中虚拟Zigbee客户端(Virtual Zigbee 3.0 Client)和虚拟BLE客户端(Virtual BLE Client)分别作为协调器设备(即Zigbee3.0协调器)和Provisioner设备,当OCF桥接平台上电启动后,首先需要做如下工作;In the OCF bridge platform, the virtual Zigbee client (Virtual Zigbee 3.0 Client) and the virtual BLE client (Virtual BLE Client) are used as the coordinator device (that is, the Zigbee3.0 coordinator) and the provisioner device respectively. When the OCF bridge platform is powered on and started, First you need to do the following;
S61,Zigbee协调器设备(Virtual Zigbee 3.0 Client)和BLE Provisioner(Virtual BLE Client)设备初始化。S61, Zigbee coordinator device (Virtual Zigbee 3.0 Client) and BLE Provisioner (Virtual BLE Client) device initialization.
S62,创建OCF桥设备(位于OCF桥接平台中),设备类型为“oic.d.bridge”,OCF桥平台中有且仅有一个OCF桥设备。S62, create an OCF bridge device (located in the OCF bridge platform), the device type is "oic.d.bridge", and there is only one OCF bridge device in the OCF bridge platform.
S63,为OCF桥设备创建两个资源,两个资源的资源类型相同,均为“oic.r.configmgmt”;资源通过url来区分。S63, create two resources for the OCF bridge device, the resource types of the two resources are the same, and both are "oic.r.configmgmt"; the resources are distinguished by url.
其中使用url=“/eco/zigbee3.0”与Zigbee协调器设备建立映射关系,使用url=“/eco/ble”与BLE Provisioner设备建立映射关系。Among them, use url="/eco/zigbee3.0" to establish a mapping relationship with the Zigbee coordinator device, and use url="/eco/ble" to establish a mapping relationship with the BLE Provisioner device.
例如,如图6所示,Virtual Zigbee 3.0 Client和Virtual BLE Client分别向OCF桥接功能组件发送建立与资源的关联关系的请求,OCF桥接功能组件建立资源URL与Virtual Zigbee3.0 Client或者Virtual BLE Client之间的关联关系,并指示OCF桥设备创建这两个资源URL分别对应的资源。For example, as shown in Figure 6, the Virtual Zigbee 3.0 Client and the Virtual BLE Client respectively send a request to the OCF bridging functional component to establish an association relationship with the resource, and the OCF bridging functional component establishes the resource URL and the Virtual Zigbee3.0 Client or Virtual BLE Client. and instruct the OCF bridge device to create the resources corresponding to the two resource URLs respectively.
OCF客户端要先对OCF桥设备做Onboarding操作,使该设备成为有主设备,OCF客户端可对该设备上的资源进行安全访问。The OCF client must first perform the Onboarding operation on the OCF bridge device, so that the device becomes the master device, and the OCF client can securely access the resources on the device.
OCF客户端通过向对应的url发送POST请求来完成非OCF协议(Zigbee 3.0 or BLE)的组网和允许非OCF协议设备接入的控制操作;The OCF client completes the non-OCF protocol (Zigbee 3.0 or BLE) networking and allows non-OCF protocol device access control operations by sending a POST request to the corresponding url;
以启动Zigbee 3.0网络和允许Zigbee 3.0设备接入网络为例,操作流程如下:Taking starting the Zigbee 3.0 network and allowing Zigbee 3.0 devices to access the network as an example, the operation process is as follows:
S64,当需要启动Zigbee 3.0网络时,OCF客户端向OCF桥设备的“/eco/zigbee3.0”资源url发送POST请求,携带的payload为:S64, when the Zigbee 3.0 network needs to be started, the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload carried is:
{“event”:“start”,“netkey”:“xxx”,“appkey”:“xxx”}{"event":"start","netkey":"xxx","appkey":"xxx"}
S65,OCF桥设备根据“/eco/zigbee3.0”资源url和POST请求的payload向OCF桥接功能组件发送解析映射关系请求;OCF桥接功能组件根据POST请求的url从映射关系表中找到对应的Zigbee协调器设备,根据payload中event的值start确定向Zigbee协调器发送启动Zigbee网络请求,并将netkey和appkey的值一并发送给Zigbee协调器,Zigbee协调器将netkey和appkey的值执行存储操作供后续使用,netkey会在Zigbee网络启动成功后通过广播消息广播出去。同时,OCF桥设备等待网络启动状态信息。S65, the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request The coordinator device determines to send a Zigbee network start request to the Zigbee coordinator according to the value start of the event in the payload, and sends the values of netkey and appkey to the Zigbee coordinator, and the Zigbee coordinator stores the values of netkey and appkey for Subsequent use, netkey will be broadcast through broadcast messages after the Zigbee network is successfully started. At the same time, the OCF bridge device waits for network startup status information.
S66,OCF桥设备收到Zigbee协调器返回的网络启动状态信息后,将结果返回给OCF客户端。即返回网络启动成功或失败的ACK消息。S66, after receiving the network startup status information returned by the Zigbee coordinator, the OCF bridge device returns the result to the OCF client. That is, the ACK message of the success or failure of the network startup is returned.
S67,OCF客户端根据OCF桥设备返回的网络启动状态决定是否发送允许非OCF协议网络接入设备请求;当OCF客户端收到网络启动成功的状态信息后,发送允许网络接入设备请求,OCF客户端向OCF桥设备的“/eco/zigbee3.0”资源url发送POST请求,payload为:S67, the OCF client decides whether to send a request to allow the network access device of the non-OCF protocol according to the network startup status returned by the OCF bridge device; when the OCF client receives the status information of the successful network startup, it sends a request to allow the network access device, and the OCF The client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload is:
{“event”:“permit”}{"event":"permit"}
S68,OCF桥设备根据“/eco/zigbee3.0”资源url和POST请求的payload向OCF桥接功能组件发送解析映射关系请求;OCF桥接功能组件根据POST请求的url从映射关系表中找到对应的Zigbee协调器设备,再根据payload中event的值permit,向Zigbee协调器发送允许Zigbee网络接入请求。同时,OCF桥设备等待允许接入的状态信息。S68, the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request The coordinator device sends a request to allow Zigbee network access to the Zigbee coordinator according to the value permit of the event in the payload. At the same time, the OCF bridge device waits for status information that allows access.
S69,OCF桥设备收到Zigbee协调器返回的网络允许接入的状态信息后,再将结果返回给OCF客户端;也就是向OCF客户端返回允许接入成功或失败的ACK消息。S69, the OCF bridge device returns the result to the OCF client after receiving the status information of the network access allowed returned by the Zigbee coordinator; that is, returning an ACK message to the OCF client that the access is allowed or failed.
在一种可能的实现方式中,在OCF客户端预留出接口,以通过语音或者UI等方式配置非OCF服务端接入网络。In a possible implementation manner, an outbound interface is reserved on the OCF client to configure the non-OCF server to access the network by means of voice or UI.
此时Zigbee 3.0服务端可以接入到由Zigbee协调器创建和启动的网络中,Zigbee 3.0服务端成功接入后与Virtual OCF Server建立映射关系,从而OCF客户端可以通过Virtual OCF Server访问对应的Zigbee 3.0服务端;At this time, the Zigbee 3.0 server can access the network created and started by the Zigbee coordinator. After the Zigbee 3.0 server is successfully connected, it establishes a mapping relationship with the Virtual OCF Server, so that the OCF client can access the corresponding Zigbee through the Virtual OCF Server. 3.0 server;
对于BLE网络的启动和允许BLE设备接入的流程和Zigbee 3.0相同,区别在于OCF桥接功能组件使用“/eco/ble”资源地址从映射关系中查找BLE Provisioner设备;OCF客户端发送POST请求的资源url为“/eco/ble”。The process of starting the BLE network and allowing BLE devices to access is the same as Zigbee 3.0, the difference is that the OCF bridge function component uses the "/eco/ble" resource address to find the BLE Provisioner device from the mapping relationship; the OCF client sends the POST request resource The url is "/eco/ble".
请参考图7,其示出了本申请实施例涉及的停止非OCF协议网络的操作流程示意图;其中,在停止非OCF协议网络操作中只使用Zigbee 3.0协议进行举例说明,OCF客户端可以停止Zigbee协调器(Virtual Zigbee 3.0 Client)继续向外发送用于组网的广播数据,用于停止Zigbee协调器继续扩大网络;BLE等其它非OCF协议与之操作相同;如图7所示:Please refer to FIG. 7 , which shows a schematic diagram of the operation flow of stopping the non-OCF protocol network involved in the embodiment of the present application; wherein, only the Zigbee 3.0 protocol is used to illustrate the operation of stopping the non-OCF protocol network, and the OCF client can stop Zigbee The coordinator (Virtual Zigbee 3.0 Client) continues to send out broadcast data for networking to stop the Zigbee coordinator from continuing to expand the network; other non-OCF protocols such as BLE operate the same; as shown in Figure 7:
S71,当需要停止Zigbee 3.0网络时,OCF客户端向OCF桥设备的“/eco/zigbee3.0”资源url发送POST请求,携带的payload为:S71, when the Zigbee 3.0 network needs to be stopped, the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload carried is:
{“event”:“stop”}{"event":"stop"}
S72,OCF桥设备根据“/eco/zigbee3.0”资源url和POST请求的payload向OCF桥接功能组件发送解析映射关系请求;OCF桥接功能组件根据POST请求的url从映射关系表中找到对应的Zigbee协调器设备,再根据payload中event的值stop向Zigbee协调器发送停止Zigbee网络请求。同时,OCF桥设备等待网络启动状态信息。OCF桥设备收到Zigbee协调器返回的网络停止状态信息后,将结果返回给OCF客户端。即返回网络停止成功或失败的ACK消息。S72, the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request The coordinator device sends a request to stop the Zigbee network to the Zigbee coordinator according to the value stop of the event in the payload. At the same time, the OCF bridge device waits for network startup status information. After the OCF bridge device receives the network stop status information returned by the Zigbee coordinator, it returns the result to the OCF client. That is, an ACK message is returned for the success or failure of the network stop.
S73,当Zigbee协调器停止网络后,Zigbee协调器不在向外发送广播数据,新的Zigbee设备接收不到Zigbee协调器发送的广播数据,无法接入网络,之前已经接入到网络的Zigbee设备可以正常通信。S73, after the Zigbee coordinator stops the network, the Zigbee coordinator does not send out broadcast data. The new Zigbee device cannot receive the broadcast data sent by the Zigbee coordinator and cannot access the network. The Zigbee device that has been connected to the network before can normal communication.
请参考图8,其示出了本申请实施例涉及的修改非OCF协议网络密钥的操作流程图。OCF客户端可更新Zigbee协调器(Virtual Zigbee 3.0 Client)作为中心受信节点向网络发送的网络层密钥和应用层密钥,在此操作中同样只使用Zigbee 3.0协议进行举例说明,BLE等其它非OCF协议与之操作相同;如图8所示:Please refer to FIG. 8 , which shows an operation flowchart of modifying a non-OCF protocol network key involved in an embodiment of the present application. The OCF client can update the Zigbee coordinator (Virtual Zigbee 3.0 Client) as the central trusted node to send the network layer key and application layer key to the network. In this operation, only the Zigbee 3.0 protocol is used as an example. The OCF protocol operates the same; as shown in Figure 8:
S81,OCF客户端向OCF桥设备的“/eco/zigbee3.0”资源url发送POST请求,携带的payload为:S81, the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device, and the payload carried is:
{“event”:“updatenetkey”,”netkey”:”xxxxx”}或{"event":"updatenetkey","netkey":"xxxxx"} or
{“event”:“updateappkey”,”appkey”:”xxxxxx”}{"event":"updateappkey","appkey":"xxxxxx"}
表示更新Zigbee 3.0网络的网络层密钥或应用层密钥;Indicates to update the network layer key or application layer key of the Zigbee 3.0 network;
S82,OCF桥设备根据“/eco/zigbee3.0”资源url和POST请求的payload向OCF桥接功 能组件发送解析映射关系请求;OCF桥接功能组件根据POST请求的url从映射关系表中找到对应的Zigbee协调器,再根据payload中event的值updatenetkey或updateappkey,向Zigbee协调器发送更新Zigbee网络中网络层密钥或应用层密钥请求;OCF桥设备收到Zigbee协调器返回的密钥更新状态信息后,将结果返回给OCF客户端。即返回密钥更新成功或失败的ACK消息。S82, the OCF bridge device sends a request for parsing the mapping relationship to the OCF bridge functional component according to the "/eco/zigbee3.0" resource url and the payload of the POST request; the OCF bridge functional component finds the corresponding Zigbee from the mapping relationship table according to the url of the POST request The coordinator sends a request for updating the network layer key or application layer key in the Zigbee network to the Zigbee coordinator according to the value updatenetkey or updateappkey of the event in the payload; after the OCF bridge device receives the key update status information returned by the Zigbee coordinator , which returns the result to the OCF client. That is, an ACK message is returned for the success or failure of the key update.
S83,Zigbee协调器使用payload中“netkey”或“appkey”,更新网络层密钥或应用层密钥。S83, the Zigbee coordinator uses the "netkey" or "appkey" in the payload to update the network layer key or the application layer key.
其中,上述图6至图8均以OCF桥设备是不同的非OCF协议通用的OCF桥设备为例进行介绍。请参考图9,其示出了本申请实施例涉及的另一种启动非OCF协议网络的示意图。如图9所示,本方案中在OCF桥接平台中使用Zigbee 3.0和BLE两种协议的虚拟客户端说明方案流程,该方案包括如下步骤:The above FIGS. 6 to 8 are all described by taking an example that the OCF bridge device is an OCF bridge device common to different non-OCF protocols. Please refer to FIG. 9 , which shows another schematic diagram of starting a non-OCF protocol network involved in an embodiment of the present application. As shown in Figure 9, in this solution, the virtual client using Zigbee 3.0 and BLE two protocols is used in the OCF bridge platform to illustrate the solution process. The solution includes the following steps:
S91,同上述图6中的S61。S91 is the same as S61 in FIG. 6 above.
S92,创建OCF桥设备(位于OCF桥接平台中),设备类型为“oic.d.bridge”,OCF桥平台中有两个OCF桥设备,分别对应Zigbee 3.0和BLE两种协议的虚拟客户端。S92, create an OCF bridge device (located in the OCF bridge platform), the device type is "oic.d.bridge", and there are two OCF bridge devices in the OCF bridge platform, corresponding to the virtual clients of Zigbee 3.0 and BLE protocols respectively.
也就是说,OCF桥接平台中针对每一种支持的非OCF协议桥接创建独立的OCF桥设备。That is, an independent OCF bridge device is created for each supported non-OCF protocol bridge in the OCF bridge platform.
S93,为两个OCF桥设备分别创建资源,两个资源的资源类型相同,均为“oic.r.configmgmt”;资源通过url来区分。S93, respectively create resources for the two OCF bridge devices, the resource types of the two resources are the same, and both are "oic.r.configmgmt"; the resources are distinguished by url.
其中,每种非OCF虚拟客户端都建立一个OCF桥设备,所以采用OCF桥设备id(唯一标识设备)与非OCF虚拟客户端建立映射关系;也就是,使用OCF桥设备1的标识与Zigbee协调器设备建立映射关系,使用OCF桥设备2的标识与BLE Provisioner设备建立映射关系。Among them, each non-OCF virtual client establishes an OCF bridge device, so the OCF bridge device id (unique identification device) is used to establish a mapping relationship with the non-OCF virtual client; that is, the ID of the OCF bridge device 1 is used to coordinate with Zigbee The device establishes a mapping relationship, and uses the identity of the OCF bridge device 2 to establish a mapping relationship with the BLE Provisioner device.
例如,如图6所示,Virtual Zigbee 3.0 Client和Virtual BLE Client分别向OCF桥接功能组件发送建立与资源的关联关系的请求,OCF桥接功能组件建立OCF桥设备1的标识与Virtual Zigbee 3.0 Client之间的关联关系,并建立OCF桥设备2的标识与Virtual BLE Client之间的关联关系,并指示OCF桥设备1创建Zigbee 3.0对应的资源,并指示OCF桥设备2创建BLE对应的资源。For example, as shown in Figure 6, the Virtual Zigbee 3.0 Client and the Virtual BLE Client respectively send a request to establish an association relationship with the resource to the OCF bridging functional component, and the OCF bridging functional component establishes the relationship between the identity of the OCF bridge device 1 and the Virtual Zigbee 3.0 Client. The association relationship between the OCF bridge device 2 and the Virtual BLE Client is established, and the OCF bridge device 1 is instructed to create the resources corresponding to Zigbee 3.0, and the OCF bridge device 2 is instructed to create the resources corresponding to BLE.
OCF客户端通过向对应的url发送POST请求来完成非OCF协议(Zigbee 3.0 or BLE)的组网和允许非OCF协议设备接入的控制操作;The OCF client completes the networking of the non-OCF protocol (Zigbee 3.0 or BLE) and the control operation of allowing the access of non-OCF protocol devices by sending a POST request to the corresponding url;
以启动Zigbee 3.0网络为例,操作流程如下:Taking the Zigbee 3.0 network as an example, the operation process is as follows:
S94,当需要启动Zigbee 3.0网络时,OCF客户端向OCF桥设备1的“/eco/zigbee3.0”资源url发送POST请求,携带的payload为:S94, when the Zigbee 3.0 network needs to be started, the OCF client sends a POST request to the "/eco/zigbee3.0" resource url of the OCF bridge device 1, and the payload carried is:
{“event”:“start”,“netkey”:“xxx”,“appkey”:“xxx”}{"event":"start","netkey":"xxx","appkey":"xxx"}
S95,同上述图6中的S65。同时,OCF桥设备1等待网络启动状态信息。S95 is the same as S65 in the above-mentioned FIG. 6 . Meanwhile, the OCF bridge device 1 waits for network startup status information.
S96,OCF桥设备1收到Zigbee协调器返回的网络启动状态信息后,将结果返回给OCF客户端。即返回网络启动成功或失败的ACK消息。S96, after receiving the network startup status information returned by the Zigbee coordinator, the OCF bridge device 1 returns the result to the OCF client. That is, the ACK message of the success or failure of the network startup is returned.
对于BLE网络的启动流程和Zigbee 3.0相同,区别在于接收请求和向OCF客户端返回状态信息的是OCF桥设备2,OCF桥接功能组件使用“/eco/ble”资源地址从映射关系中查找BLE Provisioner设备;OCF客户端发送POST请求的资源url为“/eco/ble”。The startup process of the BLE network is the same as that of Zigbee 3.0, the difference is that the OCF bridge device 2 receives the request and returns the status information to the OCF client. The OCF bridge function component uses the "/eco/ble" resource address to find the BLE Provisioner from the mapping relationship device; the resource url sent by the OCF client POST request is "/eco/ble".
其中,上述图6至图9均以POST请求的响应状态与非OCF协议操作状态结果为例进行说明,其中,上述POST请求的响应状态与非OCF协议操作状态结果可以不同步。请参考图10,其示出了本申请实施例涉及的另一种启动非OCF协议网络的示意图。如图10所示,本方案中在OCF桥接平台中使用Zigbee 3.0的虚拟客户端说明方案流程,该方案包括如下步骤:6 to 9 are described by taking the response status of the POST request and the non-OCF protocol operation status result as examples, wherein the response status of the POST request and the non-OCF protocol operation status result may not be synchronized. Please refer to FIG. 10 , which shows another schematic diagram of starting a non-OCF protocol network involved in an embodiment of the present application. As shown in Figure 10, in this solution, the Zigbee 3.0 virtual client is used in the OCF bridge platform to illustrate the solution process. The solution includes the following steps:
S1001至S1005,同上述图6中的S61至S65。S1001 to S1005 are the same as S61 to S65 in FIG. 6 above.
S1006,OCF桥设备发送解析映射关系请求后,即刻向OCF客户端返回网络启动状态信息,比如,返回网络启动成功的ACK消息。S1006 , after the OCF bridge device sends the request for parsing the mapping relationship, it immediately returns network startup status information to the OCF client, for example, returns an ACK message that the network startup is successful.
S1007,OCF客户端向OCF桥设备的“/eco/zigbee3.0”资源url发送GET请求。S1007, the OCF client sends a GET request to the "/eco/zigbee3.0" resource url of the OCF bridge device.
S1008,OCF桥设备接收到OCF客户端发送的GET请求后,将非OCF虚拟客户端实际 返回的网络启动状态信息返回给OCF客户端。S1008, after receiving the GET request sent by the OCF client, the OCF bridge device returns the network startup status information actually returned by the non-OCF virtual client to the OCF client.
相应的,当非OCF虚拟客户端实际返回的网络启动状态信息指示网络启动成功后,OCF客户端可以进一步发起允许网络接入的请求。Correspondingly, when the network startup status information actually returned by the non-OCF virtual client indicates that the network startup is successful, the OCF client may further initiate a request for allowing network access.
其中,上述图10所示的方案只使用Zigbee 3.0协议进行说明,其它非OCF协议(BLE)与Zigbee 3.0协议操作相同;且此方案适用于单个OCF桥设备或多个OCF桥设备。Among them, the solution shown in Figure 10 above only uses the Zigbee 3.0 protocol for description, and other non-OCF protocols (BLE) operate the same as the Zigbee 3.0 protocol; and this solution is applicable to a single OCF bridge device or multiple OCF bridge devices.
综上所述,本申请实施例所示的方案,OCF桥设备中设置有用于对非OCF协议网络进行配置的配置资源,当通过OCF桥设备接收到OCF客户端发送的网络配置请求,且网络配置请求中包含该配置资源中的配置属性的属性值时,指示非OCF虚拟客户端对非OCF协议网络执行配置操作,从而实现了通过OCF客户端对非OCF协议网络的配置,从而提高了对物联网的网络管理效果。To sum up, in the solutions shown in the embodiments of the present application, the OCF bridge device is provided with configuration resources for configuring non-OCF protocol networks. When the configuration request contains the attribute value of the configuration attribute in the configuration resource, it instructs the non-OCF virtual client to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the performance of the network. The network management effect of the Internet of Things.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。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,其示出了本申请一个实施例提供的物联网配置装置的框图。该装置用于OCF桥接平台,且具有实现上述物联网配置方法中,由OCF桥接平台执行的步骤的功能。如图11所示,该装置可以包括:Please refer to FIG. 11 , which shows a block diagram of an IoT configuration apparatus provided by an embodiment of the present application. The device is used in an OCF bridging platform, and has the function of implementing the steps performed by the OCF bridging platform in the above-mentioned IoT configuration method. As shown in Figure 11, the apparatus may include:
请求接收模块1101,用于通过OCF桥设备接收OCF客户端发送的网络配置请求,所述网络配置请求中包含配置属性的属性值;所述配置属性是所述OCF桥设备支持的配置资源中的属性;The request receiving module 1101 is configured to receive, through the OCF bridge device, a network configuration request sent by the OCF client, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is one of the configuration resources supported by the OCF bridge device. Attributes;
虚拟客户端确定模块1102,用于确定所述网络配置请求对应的非OCF虚拟客户端;A virtual client determining module 1102, configured to determine a non-OCF virtual client corresponding to the network configuration request;
配置模块1103,用于向所述非OCF虚拟客户端发送网络配置指令,所述网络配置指令用于指示所述非OCF虚拟客户端根据所述属性值执行所述配置属性的配置操作;所述配置操作是对所述非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。A configuration module 1103, configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform the configuration operation of the configuration attribute according to the attribute value; the The configuration operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
在一种可能的实现方式中,所述配置操作包括以下操作中的至少一项:In a possible implementation manner, the configuration operation includes at least one of the following operations:
启动所述非OCF协议网络;start the non-OCF protocol network;
允许非OCF服务端接入所述非OCF协议网络;Allowing the non-OCF server to access the non-OCF protocol network;
关闭所述非OCF协议网络;closing the non-OCF protocol network;
修改所述非OCF协议网络的网络层密钥;Modify the network layer key of the non-OCF protocol network;
以及,修改所述非OCF协议网络的应用层密钥。And, modify the application layer key of the non-OCF protocol network.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
设备创建模块,用于创建所述OCF桥设备;a device creation module for creating the OCF bridge device;
资源创建模块,用于为所述OCF桥设备创建所述配置资源。A resource creation module, configured to create the configuration resource for the OCF bridge device.
在一种可能的实现方式中,所述设备创建模块,用于创建不同的非OCF协议通用的所述OCF桥设备;In a possible implementation, the device creation module is used to create the OCF bridge device common to different non-OCF protocols;
所述装置还包括:The device also includes:
第一关联模块,用于创建所述配置资源的统一资源定位符URL地址与所述非OCF虚拟客户端之间的关联关系;a first association module, configured to create an association relationship between the uniform resource locator URL address of the configuration resource and the non-OCF virtual client;
所述请求接收模块,用于通过所述OCF桥设备接收所述OCF客户端通过所述配置资源的URL地址发送的所述网络配置请求;The request receiving module is configured to receive, through the OCF bridge device, the network configuration request sent by the OCF client through the URL address of the configuration resource;
所述虚拟客户端确定模块,用于通过所述网络配置请求对应的所述配置资源的URL地址查询所述关联关系,确定所述非OCF虚拟客户端。The virtual client determining module is configured to query the association relationship through the URL address of the configuration resource corresponding to the network configuration request, and determine the non-OCF virtual client.
在一种可能的实现方式中,所述设备创建模块,用于创建所述非OCF虚拟客户端专用的所述OCF桥设备;In a possible implementation manner, the device creation module is configured to create the OCF bridge device dedicated to the non-OCF virtual client;
所述装置还包括:The device also includes:
第二关联模块,用于创建所述OCF桥设备的标识与所述非OCF虚拟客户端之间的关联关系;a second association module, configured to create an association relationship between the identifier of the OCF bridge device and the non-OCF virtual client;
所述虚拟客户端确定模块,用于根据接收所述网络配置请求的所述OCF桥设备的设备标识查询所述关联关系,确定所述非OCF虚拟客户端。The virtual client determining module is configured to query the association relationship according to the device identifier of the OCF bridge device that receives the network configuration request, and determine the non-OCF virtual client.
在一种可能的实现方式中,所述配置资源包括以下属性中的至少一种:In a possible implementation manner, the configuration resource includes at least one of the following attributes:
所述配置资源支持的事件类型;Event types supported by the configuration resource;
对非OCF协议网络进行配置的状态;The status of configuring the non-OCF protocol network;
非OCF协议网络的协议类型;The protocol type of the non-OCF protocol network;
非OCF协议网络的网络层密钥;The network layer key of the non-OCF protocol network;
以及,非OCF协议网络的应用层密钥。And, the application layer key of the non-OCF protocol network.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the apparatus further includes:
响应接收模块,用于接收所述非OCF虚拟客户端返回的,所述配置操作的操作响应;所述操作响应用于指示所述配置操作的操作结果;a response receiving module, configured to receive the operation response of the configuration operation returned by the non-OCF virtual client; the operation response is used to indicate the operation result of the configuration operation;
响应发送模块,用于将所述配置操作的操作响应发送给所述OCF桥设备;a response sending module, configured to send the operation response of the configuration operation to the OCF bridge device;
响应返回模块,用于通过所述OCF桥设备向所述OCF客户端返回所述配置操作的操作响应。A response returning module, configured to return an operation response of the configuration operation to the OCF client through the OCF bridge device.
在一种可能的实现方式中,所述响应返回模块,用于通过所述OCF桥设备向所述OCF客户端返回所述网络配置请求的响应消息,所述响应消息中包含所述配置操作的操作响应。In a possible implementation manner, the response returning module is configured to return a response message of the network configuration request to the OCF client through the OCF bridge device, where the response message includes the information of the configuration operation. Action response.
在一种可能的实现方式中,所述响应返回模块,用于当接收到所述OCF客户端发送的操作响应查询请求时,向所述OCF客户端返回所述配置操作的操作响应。In a possible implementation manner, the response returning module is configured to return the operation response of the configuration operation to the OCF client when receiving the operation response query request sent by the OCF client.
综上所述,本申请实施例所示的方案,OCF桥设备中设置有用于对非OCF协议网络进行配置的配置资源,当通过OCF桥设备接收到OCF客户端发送的网络配置请求,且网络配置请求中包含该配置资源中的配置属性的属性值时,指示非OCF虚拟客户端对非OCF协议网络执行配置操作,从而实现了通过OCF客户端对非OCF协议网络的配置,从而提高了对物联网的网络管理效果。To sum up, in the solutions shown in the embodiments of the present application, the OCF bridge device is provided with configuration resources for configuring non-OCF protocol networks. When the configuration request contains the attribute value of the configuration attribute in the configuration resource, it instructs the non-OCF virtual client to perform the configuration operation on the non-OCF protocol network, thereby realizing the configuration of the non-OCF protocol network through the OCF client, thereby improving the performance of the network. The network management effect of the Internet of Things.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。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,其示出了本申请一个实施例提供的计算机设备1200的结构示意图。该计算机设备1200可以包括:处理器1201、接收器1202、发射器1203、存储器1204和总线1205。Please refer to FIG. 12 , which shows a schematic structural diagram of a computer device 1200 provided by an embodiment of the present application. The computer device 1200 may include: a processor 1201 , a receiver 1202 , a transmitter 1203 , a memory 1204 and a bus 1205 .
处理器1201包括一个或者一个以上处理核心,处理器1201通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 1201 includes one or more processing cores, and the processor 1201 executes various functional applications and information processing by running software programs and modules.
接收器1202和发射器1203可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。The receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip. The communication chip may also be referred to as a transceiver.
存储器1204通过总线1205与处理器1201相连。The memory 1204 is connected to the processor 1201 through the bus 1205 .
存储器1204可用于存储计算机程序,处理器1201用于执行该计算机程序,以实现上述方法实施例中的OCF桥接平台执行的各个步骤。The memory 1204 can be used to store a computer program, and the processor 1201 is used to execute the computer program, so as to implement each step performed by the OCF bridge platform in the above method embodiments.
此外,存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。Additionally, memory 1204 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, Erasable Programmable Read Only Memory, Static Anytime Access Memory, Read Only Memory, Magnetic Memory, Flash Memory, Programmable Read Only Memory.
在示例性实施例中,所述计算机设备包括处理器、存储器和收发器(该收发器可以包括接收器和发射器,接收器用于接收信息,发射器用于发送信息)。In an exemplary embodiment, the computer device includes a processor, a memory, and a transceiver (the transceiver may include a receiver for receiving information and a transmitter for transmitting information) and a transmitter.
在一种可能的实现方式中,当计算机设备实现为OCF桥接平台时,In one possible implementation, when the computer device is implemented as an OCF bridge platform,
所述收发器,用于通过OCF桥设备接收OCF客户端发送的网络配置请求,所述网络配置请求中包含配置属性的属性值;所述配置属性是所述OCF桥设备支持的配置资源中的属性;The transceiver is configured to receive, through the OCF bridge device, a network configuration request sent by the OCF client, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is one of the configuration resources supported by the OCF bridge device. Attributes;
所述处理器,用于确定所述网络配置请求对应的非OCF虚拟客户端;the processor, configured to determine the non-OCF virtual client corresponding to the network configuration request;
所述处理器,用于向所述非OCF虚拟客户端发送网络配置指令,所述网络配置指令用于指示所述非OCF虚拟客户端根据所述属性值执行所述配置属性的配置操作;所述配置操作是对所述非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。the processor, configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; The configuration operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
当计算机设备实现为OCF桥接时,本申请实施例涉及的计算机设备中的处理器和收发器,可以执行上述图3或图5所示的方法中,由OCF桥接执行的步骤,此处不再赘述。When the computer device is implemented as an OCF bridge, the processor and transceiver in the computer device involved in the embodiments of the present application may perform the steps performed by the OCF bridge in the method shown in FIG. 3 or FIG. 5 , which are not repeated here. Repeat.
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图3或图5所示的物联网配置方法中的各个步骤。An 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 loaded and executed by a processor to implement the Internet of Things configuration method shown in FIG. 3 or FIG. 5 . in each step.
本申请还提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述3或图5所示的物联网配置方法中的各个步骤。The application also provides a computer program product or computer program, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs each step in the Internet of Things configuration method shown in the above 3 or FIG. 5 .
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。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 (20)

  1. 一种物联网配置方法,其特征在于,所述方法由开放连接基金会OCF桥接平台执行,所述方法包括:An Internet of Things configuration method, characterized in that the method is executed by the Open Connectivity Foundation OCF bridge platform, and the method includes:
    通过OCF桥设备接收OCF客户端发送的网络配置请求,所述网络配置请求中包含配置属性的属性值;所述配置属性是所述OCF桥设备支持的配置资源中的属性;Receive a network configuration request sent by the OCF client through the OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device;
    确定所述网络配置请求对应的非OCF虚拟客户端;determining a non-OCF virtual client corresponding to the network configuration request;
    向所述非OCF虚拟客户端发送网络配置指令,所述网络配置指令用于指示所述非OCF虚拟客户端根据所述属性值执行所述配置属性的配置操作;所述配置操作是对所述非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。Send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration operation is for the Configure the non-OCF protocol network corresponding to the non-OCF virtual client.
  2. 根据权利要求1所述的方法,其特征在于,所述配置操作包括以下操作中的至少一项:The method of claim 1, wherein the configuration operation comprises at least one of the following operations:
    启动所述非OCF协议网络;start the non-OCF protocol network;
    允许非OCF服务端接入所述非OCF协议网络;Allowing the non-OCF server to access the non-OCF protocol network;
    关闭所述非OCF协议网络;closing the non-OCF protocol network;
    修改所述非OCF协议网络的网络层密钥;Modify the network layer key of the non-OCF protocol network;
    以及,修改所述非OCF协议网络的应用层密钥。And, modify the application layer key of the non-OCF protocol network.
  3. 根据权利要求1所述的方法,其特征在于,所述通过OCF桥设备接收OCF客户端发送的网络配置请求之前,还包括:The method according to claim 1, characterized in that before receiving the network configuration request sent by the OCF client through the OCF bridge device, the method further comprises:
    创建所述OCF桥设备;Create the OCF bridge device;
    为所述OCF桥设备创建所述配置资源。The configuration resource is created for the OCF bridge device.
  4. 根据权利要求3所述的方法,其特征在于,所述创建所述OCF桥设备,包括:The method according to claim 3, wherein the creating the OCF bridge device comprises:
    创建不同的非OCF协议通用的所述OCF桥设备;Create the OCF bridge device common to different non-OCF protocols;
    所述方法还包括:The method also includes:
    创建所述配置资源的统一资源定位符URL地址与所述非OCF虚拟客户端之间的关联关系;creating an association relationship between the Uniform Resource Locator URL address of the configuration resource and the non-OCF virtual client;
    所述通过OCF桥设备接收OCF客户端发送的网络配置请求,包括:The receiving the network configuration request sent by the OCF client through the OCF bridge device includes:
    通过所述OCF桥设备接收所述OCF客户端通过所述配置资源的URL地址发送的所述网络配置请求;receiving, by the OCF bridge device, the network configuration request sent by the OCF client through the URL address of the configuration resource;
    所述确定所述网络配置请求对应的非OCF虚拟客户端,包括:The determining of the non-OCF virtual client corresponding to the network configuration request includes:
    通过所述网络配置请求对应的所述配置资源的URL地址查询所述关联关系,确定所述非OCF虚拟客户端。The non-OCF virtual client is determined by querying the association relationship through the URL address of the configuration resource corresponding to the network configuration request.
  5. 根据权利要求3所述的方法,其特征在于,所述创建所述OCF桥设备,包括:The method according to claim 3, wherein the creating the OCF bridge device comprises:
    创建所述非OCF虚拟客户端专用的所述OCF桥设备;creating the OCF bridge device dedicated to the non-OCF virtual client;
    所述方法还包括:The method also includes:
    创建所述OCF桥设备的标识与所述非OCF虚拟客户端之间的关联关系;creating an association relationship between the identifier of the OCF bridge device and the non-OCF virtual client;
    所述确定所述网络配置请求对应的非OCF虚拟客户端,包括:The determining of the non-OCF virtual client corresponding to the network configuration request includes:
    根据接收所述网络配置请求的所述OCF桥设备的设备标识查询所述关联关系,确定所述非OCF虚拟客户端。The non-OCF virtual client is determined by querying the association relationship according to the device identifier of the OCF bridge device receiving the network configuration request.
  6. 根据权利要求3所述的方法,其特征在于,所述配置资源包括以下属性中的至少一种:The method of claim 3, wherein the configuration resource includes at least one of the following attributes:
    所述配置资源支持的事件类型;Event types supported by the configuration resource;
    对非OCF协议网络进行配置的状态;The status of configuring the non-OCF protocol network;
    非OCF协议网络的协议类型;The protocol type of the non-OCF protocol network;
    非OCF协议网络的网络层密钥;The network layer key of the non-OCF protocol network;
    以及,非OCF协议网络的应用层密钥。And, the application layer key of the non-OCF protocol network.
  7. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    接收所述非OCF虚拟客户端返回的,所述配置操作的操作响应;所述操作响应用于指示所述配置操作的操作结果;receiving the operation response of the configuration operation returned by the non-OCF virtual client; the operation response is used to indicate the operation result of the configuration operation;
    将所述配置操作的操作响应发送给所述OCF桥设备;sending an operation response of the configuration operation to the OCF bridge device;
    通过所述OCF桥设备向所述OCF客户端返回所述配置操作的操作响应。The operation response of the configuration operation is returned to the OCF client through the OCF bridge device.
  8. 根据权利要求7所述的方法,其特征在于,所述通过所述OCF桥设备向所述OCF客户端返回所述配置操作的操作响应,包括:The method according to claim 7, wherein the returning an operation response of the configuration operation to the OCF client through the OCF bridge device comprises:
    通过所述OCF桥设备向所述OCF客户端返回所述网络配置请求的响应消息,所述响应消息中包含所述配置操作的操作响应。A response message of the network configuration request is returned to the OCF client through the OCF bridge device, where the response message includes an operation response of the configuration operation.
  9. 根据权利要求7所述的方法,其特征在于,所述通过所述OCF桥设备向所述OCF客户端返回所述配置操作的操作响应,包括:The method according to claim 7, wherein the returning an operation response of the configuration operation to the OCF client through the OCF bridge device comprises:
    当接收到所述OCF客户端发送的操作响应查询请求时,向所述OCF客户端返回所述配置操作的操作响应。When an operation response query request sent by the OCF client is received, the operation response of the configuration operation is returned to the OCF client.
  10. 一种物联网配置装置,其特征在于,所述装置用于OCF桥接平台中,所述装置包括:An Internet of Things configuration device, characterized in that the device is used in an OCF bridge platform, and the device includes:
    请求接收模块,用于通过OCF桥设备接收OCF客户端发送的网络配置请求,所述网络配置请求中包含配置属性的属性值;所述配置属性是所述OCF桥设备支持的配置资源中的属性;A request receiving module, configured to receive a network configuration request sent by an OCF client through an OCF bridge device, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is an attribute in a configuration resource supported by the OCF bridge device ;
    虚拟客户端确定模块,用于确定所述网络配置请求对应的非OCF虚拟客户端;a virtual client determination module, configured to determine a non-OCF virtual client corresponding to the network configuration request;
    配置模块,用于向所述非OCF虚拟客户端发送网络配置指令,所述网络配置指令用于指示所述非OCF虚拟客户端根据所述属性值执行所述配置属性的配置操作;所述配置操作是对所述非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。a configuration module, configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; the configuration The operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
  11. 根据权利要求10所述的装置,其特征在于,所述配置操作包括以下操作中的至少一项:The apparatus of claim 10, wherein the configuration operation comprises at least one of the following operations:
    启动所述非OCF协议网络;start the non-OCF protocol network;
    允许非OCF服务端接入所述非OCF协议网络;Allowing the non-OCF server to access the non-OCF protocol network;
    关闭所述非OCF协议网络;closing the non-OCF protocol network;
    修改所述非OCF协议网络的网络层密钥;Modify the network layer key of the non-OCF protocol network;
    以及,修改所述非OCF协议网络的应用层密钥。And, modify the application layer key of the non-OCF protocol network.
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The apparatus of claim 10, wherein the apparatus further comprises:
    设备创建模块,用于创建所述OCF桥设备;a device creation module for creating the OCF bridge device;
    资源创建模块,用于为所述OCF桥设备创建所述配置资源。A resource creation module, configured to create the configuration resource for the OCF bridge device.
  13. 根据权利要求12所述的装置,其特征在于,The device of claim 12, wherein:
    所述设备创建模块,用于创建不同的非OCF协议通用的所述OCF桥设备;The device creation module is used to create the OCF bridge device common to different non-OCF protocols;
    所述装置还包括:The device also includes:
    第一关联模块,用于创建所述配置资源的统一资源定位符URL地址与所述非OCF虚拟客户端之间的关联关系;a first association module, configured to create an association relationship between the uniform resource locator URL address of the configuration resource and the non-OCF virtual client;
    所述请求接收模块,用于通过所述OCF桥设备接收所述OCF客户端通过所述配置资源的URL地址发送的所述网络配置请求;The request receiving module is configured to receive, through the OCF bridge device, the network configuration request sent by the OCF client through the URL address of the configuration resource;
    所述虚拟客户端确定模块,用于通过所述网络配置请求对应的所述配置资源的URL地址查询所述关联关系,确定所述非OCF虚拟客户端。The virtual client determining module is configured to query the association relationship through the URL address of the configuration resource corresponding to the network configuration request, and determine the non-OCF virtual client.
  14. 根据权利要求12所述的装置,其特征在于,The device of claim 12, wherein:
    所述设备创建模块,用于创建所述非OCF虚拟客户端专用的所述OCF桥设备;The device creation module is configured to create the OCF bridge device dedicated to the non-OCF virtual client;
    所述装置还包括:The device also includes:
    第二关联模块,用于创建所述OCF桥设备的标识与所述非OCF虚拟客户端之间的关联关系;a second association module, configured to create an association relationship between the identifier of the OCF bridge device and the non-OCF virtual client;
    所述虚拟客户端确定模块,用于根据接收所述网络配置请求的所述OCF桥设备的设备标识查询所述关联关系,确定所述非OCF虚拟客户端。The virtual client determining module is configured to query the association relationship according to the device identifier of the OCF bridge device that receives the network configuration request, and determine the non-OCF virtual client.
  15. 根据权利要求12所述的装置,其特征在于,所述配置资源包括以下属性中的至少一种:The apparatus according to claim 12, wherein the configuration resource includes at least one of the following attributes:
    所述配置资源支持的事件类型;Event types supported by the configuration resource;
    对非OCF协议网络进行配置的状态;The status of configuring the non-OCF protocol network;
    非OCF协议网络的协议类型;The protocol type of the non-OCF protocol network;
    非OCF协议网络的网络层密钥;The network layer key of the non-OCF protocol network;
    以及,非OCF协议网络的应用层密钥。And, the application layer key of the non-OCF protocol network.
  16. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The apparatus of claim 10, wherein the apparatus further comprises:
    响应接收模块,用于接收所述非OCF虚拟客户端返回的,所述配置操作的操作响应;所述操作响应用于指示所述配置操作的操作结果;a response receiving module, configured to receive the operation response of the configuration operation returned by the non-OCF virtual client; the operation response is used to indicate the operation result of the configuration operation;
    响应发送模块,用于将所述配置操作的操作响应发送给所述OCF桥设备;a response sending module, configured to send the operation response of the configuration operation to the OCF bridge device;
    响应返回模块,用于通过所述OCF桥设备向所述OCF客户端返回所述配置操作的操作响应。A response returning module, configured to return an operation response of the configuration operation to the OCF client through the OCF bridge device.
  17. 根据权利要求16所述的装置,其特征在于,The apparatus of claim 16, wherein:
    所述响应返回模块,用于通过所述OCF桥设备向所述OCF客户端返回所述网络配置请求的响应消息,所述响应消息中包含所述配置操作的操作响应。The response returning module is configured to return a response message of the network configuration request to the OCF client through the OCF bridge device, where the response message includes an operation response of the configuration operation.
  18. 根据权利要求16所述的装置,其特征在于,The apparatus of claim 16, wherein:
    所述响应返回模块,用于当接收到所述OCF客户端发送的操作响应查询请求时,向所述OCF客户端返回所述配置操作的操作响应。The response returning module is configured to return the operation response of the configuration operation to the OCF client when receiving the operation response query request sent by the OCF client.
  19. 一种计算机设备,其特征在于,所述计算机设备实现为OCF桥接平台,所述计算机设备包括处理器、存储器和收发器;A computer device, characterized in that the computer device is implemented as an OCF bridge platform, and the computer device includes a processor, a memory, and a transceiver;
    所述收发器,用于通过OCF桥设备接收OCF客户端发送的网络配置请求,所述网络配置请求中包含配置属性的属性值;所述配置属性是所述OCF桥设备支持的配置资源中的属性;The transceiver is configured to receive, through the OCF bridge device, a network configuration request sent by the OCF client, where the network configuration request includes an attribute value of a configuration attribute; the configuration attribute is one of the configuration resources supported by the OCF bridge device. Attributes;
    所述处理器,用于确定所述网络配置请求对应的非OCF虚拟客户端;the processor, configured to determine the non-OCF virtual client corresponding to the network configuration request;
    所述处理器,用于向所述非OCF虚拟客户端发送网络配置指令,所述网络配置指令用于指示所述非OCF虚拟客户端根据所述属性值执行所述配置属性的配置操作;所述配置操作是对所述非OCF虚拟客户端对应的非OCF协议网络进行配置的操作。the processor, configured to send a network configuration instruction to the non-OCF virtual client, where the network configuration instruction is used to instruct the non-OCF virtual client to perform a configuration operation of the configuration attribute according to the attribute value; The configuration operation is an operation of configuring the non-OCF protocol network corresponding to the non-OCF virtual client.
  20. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至9任一项所述的物联网配置方法。A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, and the computer program is used to be executed by a processor to implement the Internet of Things configuration according to any one of claims 1 to 9 method.
PCT/CN2020/101950 2020-07-14 2020-07-14 Internet of things configuration method and apparatus, computer device, and storage medium WO2022011563A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/101950 WO2022011563A1 (en) 2020-07-14 2020-07-14 Internet of things configuration method and apparatus, computer device, and storage medium
CN202080100473.2A CN115486038B (en) 2020-07-14 Internet of things configuration method, internet of things configuration device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/101950 WO2022011563A1 (en) 2020-07-14 2020-07-14 Internet of things configuration method and apparatus, computer device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022011563A1 true WO2022011563A1 (en) 2022-01-20

Family

ID=79555949

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101950 WO2022011563A1 (en) 2020-07-14 2020-07-14 Internet of things configuration method and apparatus, computer device, and storage medium

Country Status (1)

Country Link
WO (1) WO2022011563A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422555A (en) * 2022-03-28 2022-04-29 成都柔水科技有限公司 CIM platform based method for self-defined configuration of IoT data analysis
WO2024011368A1 (en) * 2022-07-11 2024-01-18 Oppo广东移动通信有限公司 Device discovery method and apparatus, device, storage medium, and program product
WO2024031681A1 (en) * 2022-08-12 2024-02-15 Oppo广东移动通信有限公司 Device binding method and apparatus, and device, storage medium and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
WO2019112734A1 (en) * 2017-12-06 2019-06-13 Intel Corporation Plugin management for internet of things (iot) network optimization
CN110858838A (en) * 2018-08-24 2020-03-03 Oppo广东移动通信有限公司 Method and apparatus for bridging communications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180063879A1 (en) * 2016-08-29 2018-03-01 Electronics And Telecommunications Research Institute Apparatus and method for interoperation between internet-of-things devices
WO2019112734A1 (en) * 2017-12-06 2019-06-13 Intel Corporation Plugin management for internet of things (iot) network optimization
CN110858838A (en) * 2018-08-24 2020-03-03 Oppo广东移动通信有限公司 Method and apparatus for bridging communications

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LI YONGHUA; HUANG XUXIN; WANG SIYE: "Multiple Protocols Interworking With Open Connectivity Foundation in Fog Networks", IEEE ACCESS, vol. 7, 1 January 1900 (1900-01-01), USA , pages 60764 - 60773, XP011725131, DOI: 10.1109/ACCESS.2019.2907554 *
OCF SPECIFICATION 2.1.1: "OCF Resource to Zigbee Cluster Mapping Specification", OCF RESOURCE TO ZIGBEE CLUSTER MAPPING SPECIFICATION VERSION 2.1.1, 29 February 2020 (2020-02-29), US, pages 1 - 65, XP009534031 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422555A (en) * 2022-03-28 2022-04-29 成都柔水科技有限公司 CIM platform based method for self-defined configuration of IoT data analysis
WO2024011368A1 (en) * 2022-07-11 2024-01-18 Oppo广东移动通信有限公司 Device discovery method and apparatus, device, storage medium, and program product
WO2024031681A1 (en) * 2022-08-12 2024-02-15 Oppo广东移动通信有限公司 Device binding method and apparatus, and device, storage medium and program product

Also Published As

Publication number Publication date
CN115486038A (en) 2022-12-16

Similar Documents

Publication Publication Date Title
WO2022011563A1 (en) Internet of things configuration method and apparatus, computer device, and storage medium
US11722456B2 (en) Communications in internet-of-things devices
EP3005822B1 (en) Mac layer transport for wi-fi direct services application service platform without internet protocol
US20180063879A1 (en) Apparatus and method for interoperation between internet-of-things devices
TWI735429B (en) Authentication method, device, system and electronic equipment for client login server end
WO2022262465A1 (en) Opc ua-based centralized user configuration method and system for time sensitive network
JP2003008585A (en) Communication controller and communication control method, and communication apparatus and communication method
WO2020038443A1 (en) Bridging communication method and device
WO2017166130A1 (en) Method for accessing home nas equipment, corresponding device and system
WO2015067036A1 (en) Remote access configuration method, remote access method, apparatus, and system
WO2015168981A1 (en) Attribute operating method and apparatus
WO2013185696A2 (en) Data processing method and device
US20230045914A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
US8924520B2 (en) Method, remote access server and system for configuring a quality of service parameter
JP4681388B2 (en) System and method for joining a correct wireless network
WO2023221708A1 (en) Pdn dialing method, system and apparatus, multi-pdn dialing configuration method, system and apparatus, and device and storage medium
CN102833287B (en) The method of visit data resource in distributed file system and distributed file system
US11750716B2 (en) Methods for publishing resource, and gateway
CN115486038B (en) Internet of things configuration method, internet of things configuration device, computer equipment and storage medium
WO2022042545A1 (en) Tsn industrial application server, client, system, service method, and storage medium
JP2000253024A (en) Communication system and communication device
WO2017054733A1 (en) Processing method and device for storage hosting and switching
WO2024011367A1 (en) Device discovery methods and apparatuses, and device, storage medium and program product
WO2023184559A1 (en) Device sharing method and apparatus, and device, storage medium and program product
CN115968543A (en) Resource mapping method, device, equipment and storage medium

Legal Events

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

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20945207

Country of ref document: EP

Kind code of ref document: A1