WO2024011367A1 - Device discovery methods and apparatuses, and device, storage medium and program product - Google Patents

Device discovery methods and apparatuses, and device, storage medium and program product Download PDF

Info

Publication number
WO2024011367A1
WO2024011367A1 PCT/CN2022/104973 CN2022104973W WO2024011367A1 WO 2024011367 A1 WO2024011367 A1 WO 2024011367A1 CN 2022104973 W CN2022104973 W CN 2022104973W WO 2024011367 A1 WO2024011367 A1 WO 2024011367A1
Authority
WO
WIPO (PCT)
Prior art keywords
protocol
internet
bridging
node
things
Prior art date
Application number
PCT/CN2022/104973
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/CN2022/104973 priority Critical patent/WO2024011367A1/en
Publication of WO2024011367A1 publication Critical patent/WO2024011367A1/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/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Definitions

  • This application relates to the technical field of the Internet of Things, and in particular to a device discovery method, device, equipment, storage medium and program product.
  • IoT Internet of Things
  • different IoT devices may support different IoT protocols.
  • IoT devices that support different IoT protocols can be networked through bridge devices.
  • Embodiments of the present application provide a device discovery method, device, equipment, storage medium and program product.
  • the technical solutions are as follows:
  • embodiments of the present application provide a device discovery method, which is executed by a configuration device.
  • the method includes:
  • the first query message is used to query a device that supports upgrading the first bridging capability;
  • the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols;
  • the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the first Internet of Things protocol Bridging capabilities to second IoT protocols.
  • inventions of the present application provide a device discovery method, which is executed by a first device.
  • the method includes:
  • the first query message is used to query the device that supports upgrading the first bridging capability;
  • the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols ;
  • the first device When the first device supports upgrading the first bridging capability, sending a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability. capability, and the first bridging capability supported by the first device for upgrade is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • inventions of the present application provide a device discovery method.
  • the method is executed by a bridging service management device.
  • the bridging service management device maintains capability information of each device in the Internet of Things; the capability information includes support for Upgraded bridging capabilities; methods include:
  • the first query message is used to query a device that supports upgrading the first bridging capability;
  • the first bridging capability includes the function of obtaining the first bridging capability through upgrading;
  • the first bridging capability The capability is the bridging capability between the first IoT protocol and other IoT protocols;
  • the first device among the various devices supports upgrading the first bridging capability
  • send a first response message to the configuration device the first response message is used to indicate that the first device supports upgrading the first bridging capability.
  • the first bridging capability, and the first bridging capability that the first device supports upgrading is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • a device discovery device which includes:
  • a sending module configured to send a first query message.
  • the first query message is used to query a device that supports upgrading the first bridging capability;
  • the first bridging capability is a bridge between the first Internet of Things protocol and other Internet of Things protocols. ability;
  • a receiving module configured to receive a first response message; the first response message is used to indicate that the first device supports upgrading of the first bridging capability, and the first bridging capability that the first device supports upgrading is the Bridging capability between the first IoT protocol and the second IoT protocol.
  • an embodiment of the present application provides a device discovery device, which is used in a first device.
  • the device includes:
  • a receiving module configured to receive a first query message sent by a configuration device.
  • the first query message is used to query a device that supports upgrading the first bridging capability;
  • the first bridging capability is a first Internet of Things protocol and other Internet of Things protocols. bridging capabilities;
  • a sending module configured to send a first response message to the configuration device when the first device supports upgrading the first bridging capability; the first response message is used to indicate that the first device supports the upgrade.
  • the first bridging capability, and the first bridging capability that the first device supports upgrading, is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • inventions of the present application provide a device discovery device, which is used in a bridging service management device.
  • the bridging service management device maintains capability information of each device in the Internet of Things; the capability information Includes bridging capabilities to support upgrades; the device includes:
  • a receiving module configured to receive a first query message sent by a configuration device.
  • the first query message is used to query a device that supports upgrading the first bridging capability;
  • the first bridging capability is a first Internet of Things protocol and other Internet of Things protocols. bridging capabilities;
  • a sending module configured to send a first response message to the configuration device when the first device among the devices supports upgrading the first bridging capability; the first response message is used to indicate that the first response message A device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is a bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • embodiments of the present application provide a computer device, the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
  • a computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the above device discovery method.
  • embodiments of the present application provide a computer device, which 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, so as to Implement the above device discovery method.
  • embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above device discovery method.
  • the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above device discovery method.
  • the present application provides a computer program product including 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 the above device discovery method.
  • the present application provides a computer program, which is executed by a processor of a computer device to implement the above device discovery method.
  • the configuration device queries the first device that supports upgrading the first bridging capability between the first Internet of Things protocol and other Internet of Things protocols by sending a first query message, and queries the first device that supports the upgrading of the first bridging capability.
  • the bridging capability between the first IoT protocol and which IoT protocol enables the configuration device to discover bridging devices that currently do not have one or more bridging capabilities, but can obtain the one or more bridging capabilities through upgrades,
  • the application of the bridging function is not limited to bridging devices pre-set with specific bridging capabilities, and the application scenarios of bridging are expanded.
  • Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the bridge architecture involved in this application.
  • Figure 3 is a flow chart of a device discovery method provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a device discovery method provided by an embodiment of the present application.
  • Figure 5 is a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application.
  • Figure 6 is a flow chart of a device discovery method provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of the device discovery and bridging process involved in the embodiment shown in Figure 6;
  • Figure 8 is a schematic diagram of the bridge path involved in the embodiment shown in Figure 6;
  • Figure 9 is a flow chart of a device discovery method provided by an embodiment of the present application.
  • Figure 10 is a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application.
  • Figure 11 is a flow chart of a device discovery method provided by an embodiment of the present application.
  • Figure 12 is a schematic diagram of the device discovery and bridging process involved in the embodiment of this application.
  • Figure 13 is a block diagram of a device discovery device provided by an embodiment of the present application.
  • Figure 14 is a block diagram of a device discovery device provided by an embodiment of the present application.
  • Figure 15 is a block diagram of a device discovery device provided by an embodiment of the present application.
  • Figure 16 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the network architecture of the Internet of Things may include: an Internet of Things device 110 (shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1) and a configuration device 120; optionally, the The network architecture may also include a bridge device 130 and a bridge service management device 140;
  • the Internet of Things device 110 may refer to a device used to provide client functions or server functions corresponding to the Internet of Things protocol in the Internet of Things.
  • the IoT device 110 may be a smart home device, such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
  • a smart home device such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
  • the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, etc.
  • the Internet of Things device 110 may be a commercial service device, such as an unmanned vending machine or the like.
  • the IoT device 110 may be a sensing device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
  • the configuration device 120 is a user-side terminal device.
  • the configuration device 120 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, etc.; or the configuration device 120 can also be a personal computer, such as a desktop. Computers, laptops, personal workstations and more.
  • the configuration device 120 refers to a client entity (which may be a virtual entity) running on a terminal device.
  • the configuration device 120 may run in a terminal device and is used to configure the Internet of Things device.
  • Application Application, APP
  • the bridge device 130 is used to implement interaction between two devices supporting different Internet of Things protocols.
  • the bridge device 130 provides information conversion and transfer services between IoT devices 110 that support different IoT protocols, or between IoT devices 110 that support different IoT protocols and the configuration device 120 .
  • the bridging device 130 may be a device dedicated for bridging, or the bridging device 130 may also be an intelligent device with a bridging function, such as a gateway or a router.
  • the bridge service management device 140 may be a server deployed on the network side, or may be a computer device deployed offline.
  • the bridging service management device 140 can store relevant information about each bridging device 130 or other devices with bridging capabilities, such as which bridging capabilities are supported, the number of devices that support bridging, the number of bridged devices, etc.; the bridging service management device 140 Bridge device 130 or other devices with bridging capabilities may be managed.
  • the above-mentioned Internet of Things device 110, configuration device 120, bridge device 130, and bridge service management device 140 may be electronic devices that meet the same or different Internet of Things protocols.
  • they may be electronic devices that meet the Connectivity Standard Alliance (Connectivity Standards Alliance, CSA) electronic equipment under the Matter protocol.
  • Connectivity Standard Alliance Connectivity Standards Alliance, CSA
  • a secure connection can be established between the IoT device 110a and the IoT device 110c, for example, a secure connection is established based on the Matter specification.
  • the IoT device 110b and the IoT device 110d support different protocol specifications, for example, the IoT device 110b is a Zigbee device and the IoT device 110d is a Matter device, the IoT device 110b and the IoT device 110d can connected via a bridge device 130.
  • FIG 2 shows a schematic diagram of the bridge architecture involved in this application.
  • the current bridge solution for the Internet of Things requires a bridge manufacturer application 201 (also called a bridge Manufacturer App, which is an App implemented privately by the manufacturer)
  • a bridge manufacturer application 201 also called a bridge Manufacturer App, which is an App implemented privately by the manufacturer
  • bridged sub-device 202 also called Bridged Device, corresponding to BD1 ⁇ BD3 in Figure 2
  • Bridged Device can be a physical IoT device or a logical device
  • the bridge Manufacturer App controls the bridge device 203 (Bridge) to generate the corresponding Matter device 204 (also called Matter Device, corresponding to MD1 in Figure 2) for BD1 and other devices.
  • the implementation method of generating the corresponding Matter device 204 for devices such as BD1 can be: generating corresponding endpoints (endpoints) on the Bridge data model, and one or more endpoints correspond to a Matter Device; therefore, in the Bridge data model Contains the endpoints of its own functions (can be called endpoint0), and also includes the endpoints corresponding to the heterogeneous devices it bridges.
  • the bridging capability and the bridging device are tightly coupled, that is, the bridging capability of the bridging device is already installed at the factory.
  • Devices that support different IoT protocols need to be handed over through different bridging capabilities. That is to say, for an IoT device in the IoT, if there is no pre-installed bridge device matching the IoT device in the IoT , then communication between the IoT device and other heterogeneous IoT devices cannot be established through bridging, thus limiting the application scenarios of bridging.
  • subsequent embodiments of the present application provide a device discovery solution that can discover devices in the Internet of Things that have the function of upgrading to obtain new bridging capabilities. That is to say, the configuration device can discover upgraded devices from the Internet of Things. This method obtains devices that did not have bridging capabilities before, thus greatly improving the flexibility of bridging and expanding the application scenarios of bridging.
  • solutions provided by various embodiments of this application are not limited to bridging solutions between the Matter protocol and other IoT protocols, but are applicable to heterogeneous device bridging solutions between any two or more IoT protocols.
  • Figure 3 shows a flow chart of a device discovery method provided by an embodiment of the present application.
  • the method can be executed by a configuration device.
  • the configuration device can be the configuration device 120 in the network architecture shown in Figure 1. ; This method may include the following steps:
  • Step 301 Send a first query message.
  • the first query message is used to query devices that support upgrading the first bridging capability; the first bridging capability is the bridging capability between the first IoT protocol and other IoT protocols.
  • the above-mentioned support for upgrading the first bridging capability may refer to the function of obtaining the first bridging capability through upgrading.
  • bridging refers to a technology that enables two or more IoT devices based on different IoT protocols to communicate with each other in the IoT field.
  • the above-mentioned bridging capability refers to the ability to provide bridging services for IoT devices corresponding to two different IoT protocols.
  • device A has the bridging capability between IoT protocol a and IoT protocol b.
  • IoT device 1 that supports IoT protocol a and IoT device 2 that supports IoT protocol b can access device A respectively.
  • the Internet of Things device 1 and the Internet of Things device 2 can communicate through the device A.
  • device A converts the message of IoT protocol a sent by IoT device 1 into the message of IoT protocol b, and forwards it to IoT device 2; accordingly, device A can also convert the IoT protocol message sent by IoT device 2.
  • the message of protocol b is converted into the message of IoT protocol a and sent to IoT device 1.
  • the above-mentioned upgrade may include updating the firmware of the device; and/or the above-mentioned upgrade may also include updating a third-party application in the device.
  • the above-mentioned firmware may refer to the Erasable Programmable Read-Only Memory (EPROM) or the Electrically Erasable Programmable Read-Only Memory (EEPROM) written into the device. program of.
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electrically Erasable Programmable Read-Only Memory
  • the device's operating system can drive specific hardware modules in the device to perform actions through firmware. For example, in the embodiment of this application, after the above-mentioned device is upgraded to obtain new bridging capabilities, the device can convert and forward two new IoT protocol messages through the built-in communication module.
  • the first device may be a device that has not been set with one or more bridging capabilities in advance and can obtain the one or more bridging capabilities through upgrading.
  • the first device is an electronic device that originally had partial bridging capabilities among all the bridging capabilities and supports the acquisition of new bridging capabilities through upgrading; for example, the first device may be a dedicated bridging device with partial bridging capabilities or a non-dedicated bridging device.
  • Device for example, an IoT device can double as a bridge device.
  • the first device may be an electronic device that does not originally have bridging capabilities and supports obtaining bridging capabilities through upgrading; for example, the first device may be an Internet of Things device that does not have bridging capabilities set at the factory, and The IoT device supports obtaining one or more bridging capabilities through subsequent upgrades.
  • the configuration device before sending the first query message, can send a second query message.
  • the second query message is used to query devices that have or support upgrading the second bridging capability; the second bridging capability is the target The bridging capability between the IoT protocol corresponding to the device and the specified IoT protocol; the configuration device can send the first query message when no device with or supporting the upgrade of the second bridging capability is found.
  • Step 302 Receive a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device for upgrading is the first Internet of Things protocol and the second Internet of Things protocol. bridging capabilities between.
  • the configuration device uses the first IoT protocol as the source protocol to query the first bridging capabilities of other IoT devices.
  • the first bridging capabilities queried in addition to the first IoT protocol, another IoT protocol is the queried target protocol.
  • the configuration device can query the devices in the Internet of Things that can be upgraded to obtain specific bridging capabilities (that is, the bridging capabilities between a specific first IoT protocol and other IoT protocols), and
  • the bridging capability obtained by the upgrade of the device is the bridging capability between the specific first IoT protocol and which IoT protocol, so that the configuration device can find that it does not currently have one or more specific bridging capabilities, but can pass Upgrade the bridging device to obtain the specific bridging capability or capabilities.
  • the configuration device sends a first query message to query the first device that supports the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols, and , querying the first bridging capability that the first device supports for upgrading is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it does not currently have one or more bridging capabilities, but can pass Upgrading the bridging device that obtains one or more bridging capabilities makes the application of the bridging function not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
  • Figure 4 shows a flow chart of a device discovery method provided by an embodiment of the present application.
  • the method can be executed by a first device.
  • the first device can be a bridge in the network architecture shown in Figure 1 Device 130 or Internet of Things device 110; the method may include the following steps:
  • Step 401 Receive a first query message sent by the configuration device.
  • the first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first IoT protocol and other IoT protocols.
  • Step 402 If the first device supports upgrading the first bridging capability, send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first device supports upgrading.
  • the first bridging capability is the bridging capability between the first IoT protocol and the second IoT protocol.
  • the configuration device sends a first query message to query the first device that supports the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols, and , querying the first bridging capability that the first device supports for upgrading is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it does not currently have one or more bridging capabilities, but can pass Upgrading the bridging device that obtains one or more bridging capabilities makes the application of the bridging function not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
  • the configuration device can directly query the first device whether it can obtain one or more specific bridging capabilities through upgrade.
  • FIG. 5 shows a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application.
  • the configuration device 51 in the Internet of Things needs to query surrounding areas with specified upgrade functions (that is, one or more specific bridging capabilities can be obtained through upgrades.
  • the specific bridging capabilities When the device has the capability of bridging the first Internet of Things protocol and other Internet of Things protocols), it can send a first query message; after receiving the first query message, the first device 52 determines that it has the upgrade function, and When the upgraded bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols (i.e., the second Internet of Things protocol), a response message can be returned to the configuration device 51 to notify the configuration device 51 that it can pass The upgrade obtains the bridging capability between the first IoT protocol and the second IoT protocol; optionally, if the first device 52 determines that it does not support upgrading the specific bridging capability, it may not respond.
  • Figure 6 shows a flow chart of a device discovery method provided by an embodiment of the present application.
  • This method can be executed interactively by a configuration device and multiple devices.
  • the multiple devices include a target device, a first device, a third device, and a target device.
  • the second device and the third device, etc., for example, the configuration device can be the configuration device 120 in the network architecture shown in Figure 1, and the multiple devices can be the bridge device 130 and/or the thing in the network architecture shown in Figure 1.
  • Multiple devices in the networking device 110; the method may include the following steps:
  • Step 601 The configuration device obtains device information of the target device.
  • the device information of the target device includes identification information of the Internet of Things protocol supported by the target device.
  • the configuration device can obtain the device information of the target device in an out-of-band manner.
  • the configuration device can obtain the device information of the target device by scanning the QR code of the target device.
  • the device information of the target device may also contain at least one of the following information:
  • the protocol type of the supported IoT protocol the version number of the supported IoT protocol, the device model version number, the software version number, the hardware version number, the firmware version number, the manufacturer information, the device type and the device model, etc.
  • the above device information may include supported protocol name, protocol version, software version, hardware version, firmware version, basic product information (such as manufacturer identification, device type, device model) and other information.
  • the configuration device before sending the first query message, can send a second query message.
  • the second query message is used to query devices that have or support upgrading the second bridging capability; the second bridging capability is the target The bridging capability between the IoT protocol corresponding to the device and the specified IoT protocol; the configuration device can execute the step of sending the first query message without querying a device with or supporting the upgrade of the second bridging capability (for example, you can Including subsequent steps 602 to 606).
  • the process of sending the first query message may include:
  • the configuration device performs the step of sending the first query message; the second response message is that the second query message is received and has the first query message. Message returned by a second bridge-capable device.
  • the configuration device when searching for a device that supports upgrading the first bridging capability, may first search for a device that already has the second bridging capability. At this time, the configuration device may send a second query message. When a certain bridging device When the second query message is received and the bridging device already has the second bridging capability, a second response message can be returned to the configuration device to inform the configuration device that the bridging device has the second bridging capability and can provide the target device with Direct bridge service. If the configuration device does not receive the second response message within a specified period of time after sending the second query message, it is considered that there is no device with the second bridging capability around the configuration device. At this time, the configuration device can initiate a query to upgrade the second response message. A process for a device with bridging capabilities, that is, subsequent steps 602 to 606.
  • the configuration device can also determine that the second device has not been queried through other methods; for example, after sending the second query message, the configuration device receives the second response message, and the second response message The signal strength is less than the specified signal strength threshold, or the distance between the sender of the second response message and the configuration device is detected to be greater than the specified distance threshold. At this time, it may also be determined that the second device has not been queried.
  • the above-mentioned second query message may be a unicast message sent to a certain management device (such as a bridge service management device).
  • a certain management device such as a bridge service management device.
  • the configuration device may determine that the second device is not queried.
  • Step 602 The configuration device initializes the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
  • each node in the bridge tree may correspond to a target protocol.
  • the target protocol of the root node of the bridge tree is an Internet of Things protocol supported by the target device.
  • the configuration device may write the identification information of the Internet of Things protocol supported by the target device into the node attribute of the root node.
  • the bridge tree is a structural tree constructed based on the target protocol of the existing device node in the bridge tree as the source protocol for device query, and based on the queried target protocol. That is to say, in the process of configuring the device to query bridge devices that support upgrading one or more specific bridging capabilities, the above bridge tree can add device nodes layer by layer based on the query results, and the target of each sub-node in the bridge tree.
  • the bridging capability between the protocol and the target protocol of the parent node corresponding to the child node is the bridging capability that the device corresponding to the child node can obtain through upgrade.
  • the configuration device can also initialize the upper limit of the number of layers of the bridge tree. For example, the configuration device can write the upper limit N of the number of layers of the bridge tree in the attribute information of the bridge tree.
  • Step 603 Send the first query message in a broadcast manner, and accordingly, the first device receives the first query message.
  • the first query message is used to query devices that support upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols.
  • the bridging capability between the first IoT protocol and any other IoT protocol can be called the first bridging capability.
  • the configuration device may obtain the target protocol of the first device node in the bridge tree, use the target protocol of the first device node as the source protocol of the device query, and send the above-mentioned first query message.
  • the first IoT protocol is the source protocol corresponding to this query.
  • the first query message includes identification information of the first Internet of Things protocol.
  • the configuration device may send the first query message in a broadcast manner according to the bridge tree.
  • the configuration device can perform at least two rounds of device query.
  • the configuration device uses the target protocol of the device node at the last layer in the bridge tree as the source protocol (Source Protocol). , corresponding to the above-mentioned first bridging capability) to perform device query, that is, the query message sent carries the identification information of the source protocol, such as the ID (Identity, identification) of the source protocol.
  • the device node at the last layer in the bridge tree is the root node
  • the query message sent carries the identification information of the IoT protocol supported by the root node, which is used to query the things that can obtain support for the root node through upgrades.
  • Devices that bridge networking protocols with other IoT protocols are used to query the things that can obtain support for the root node through upgrades.
  • the bridge tree contains two or more layers of device nodes (the root node is the first layer).
  • the target protocol of each sub-node at the last level of the tree is the source protocol for sending query messages.
  • the configuration device can send a query message for each of the multiple target protocols (that is, each query message contains the identification information of one target protocol), or carries the identification information of multiple target protocols in one query message.
  • Step 604 If the first device supports upgrading the first bridging capability, the first device sends a first response message to the configuration device; the configuration device receives the first response message.
  • the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is a bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • the first response message contains identification information of the second Internet of Things protocol.
  • the first device after the first device receives the first query message broadcasted by the configuration information, if it can obtain the bridging capability between the first IoT protocol and the second IoT protocol through upgrading, it can send the configuration information to the first device.
  • a first response message is returned.
  • the first response message In addition to indicating that the first device has the above-mentioned first bridging capability, the first response message also carries identification information of the second Internet of Things protocol.
  • Step 605 The configuration device adds a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol.
  • the target protocol of the parent node of the second device node in the bridge tree is the first Internet of Things protocol. And, the second device node becomes the last node in the bridge tree.
  • the configuration device after receiving the first response message returned by the first device, can add a second device node in the bridge tree, and the second device node serves as the second device with the target protocol in the bridge tree.
  • the child nodes of the networking protocol's device node join the bridge tree. That is to say, before this round of device query, the parent node of the second device node is the last node in the bridge tree. After a new device node is added in this round of query, the parent node of the second device node becomes the bridge node. The device node at the penultimate level in the tree, and the second device node becomes the last level node in the bridge tree.
  • the configuration device can add two or more second device nodes in the bridge tree, the two or more second device nodes Two or more second device nodes correspond to the same first device and have different target connection protocols.
  • the configuration device when the specified IoT protocol does not exist in each candidate target protocol, the configuration device adds a second device node corresponding to the second device in the bridge tree; wherein each candidate target protocol is The target protocol obtained when querying the bridging capability is based on the target protocol of each device node in the last layer of device nodes as the source protocol.
  • the device in each round of query process, is configured to use the target protocol of each device node at the current last layer in the bridge tree as the source protocol for querying the bridging capability. At this time, It is possible to obtain multiple query results in this round of query. If the specified IoT protocol does not exist in the target protocol in the multiple query results, it means that the required device has not been queried. At this time, the configuration device can be configured based on multiple queries. As a result, the corresponding device nodes are added in the bridge tree, and then the next round of query process is started. Optionally, if the specified IoT protocol exists among the target protocols in multiple query results, it means that the desired device has been queried, and there is no need to add node devices to the bridge tree.
  • the configuration device when the specified IoT protocol does not exist in each candidate target protocol and the number of layers of the bridge tree is less than the upper limit of the number of layers of the bridge tree, the configuration device adds the second device to the bridge tree. The corresponding second device node.
  • Step 606 If the second IoT protocol is a specified IoT protocol, the configuration device establishes an indirect bridge connection between the target device and the first device according to the first node path.
  • the first node path is a path from the root node to the first device node in the bridge tree.
  • the bridging tree can be used to indirectly bridge the IoT protocol supported by the target device with the specified IoT protocol.
  • the configuration device can be configured according to The path from the root node to the first device node in the bridge tree controls the upgrade of other devices on the path except the target device and the second device, and establishes bridge connections in accordance with the path sequence after the upgrade is completed to achieve from An indirect bridge between the IoT protocols supported by the target device and the specified IoT protocol.
  • the IoT protocol supported by the target device is IoT protocol 1
  • the specified IoT protocol is IoT protocol 3.
  • the nodes are the root node, the intermediate node 1 and the first device node.
  • the device corresponding to the intermediate node 1 can obtain the bridging capability between the IoT protocol 1 and the IoT protocol 2 through upgrading.
  • the first device node can obtain the bridging capability between the IoT protocol 1 and the IoT protocol 2 through upgrading.
  • the bridging capability between IoT protocol 2 and IoT protocol 3 (corresponding to the above-mentioned first IoT protocol).
  • the configuration device can control the device upgrade corresponding to the intermediate node 1 to obtain the connection between IoT protocol 1 and IoT protocol 2.
  • the bridging capability controls the upgrade of the first device to obtain the bridging capability between IoT protocol 2 and IoT protocol 3.
  • it also controls the upgrade of the second device to obtain IoT protocol 3 and IoT protocol 4 (corresponding to the above-mentioned second IoT protocol).
  • the configuration device controls the establishment of a connection between the device corresponding to the intermediate node 1 and the target device, controls the establishment of a connection between the device corresponding to the first device node and the device corresponding to the intermediate node 1, and controls the establishment of a connection between the device corresponding to the first device node and the device corresponding to the intermediate node 1, and controls the establishment of a connection between the device corresponding to the first device node and the device corresponding to the intermediate node 1.
  • a connection is established between a device corresponding to a device node and the first device to realize an indirect bridge connection between the target device and the first device.
  • the above process of establishing an indirect bridge connection between the target device and the first device according to the first node path may include:
  • the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol;
  • the second device is on the first node path in the bridge tree , the device corresponding to any device node except the root node or the second device is the above-mentioned first device;
  • the third Internet of Things protocol is the target protocol of the second device corresponding to the parent node in the bridge tree;
  • the fourth thing The networking protocol is the target protocol of the second device corresponding to the device node in the bridge tree;
  • the connection request is used to instruct the establishment of a connection between the second device and the third device; where the second device is any node other than the root node on the path of the first node in the bridge tree.
  • the third device corresponds to the device node in the bridge tree and is the parent node of the second device in the bridge tree; in the case where the second device is the first device, the third device is The device corresponding to the first device node.
  • the above upgrade request includes identification information of the fourth Internet of Things protocol, so that the second device can be upgraded according to the identification information of the fourth Internet of Things protocol.
  • the configuration device can control the device corresponding to each node on the first node path to upgrade and connect through two independent requests (ie, the above-mentioned upgrade request and the connection request).
  • the configuration device can also trigger the second device to upgrade according to the identification information of the fourth Internet of Things protocol through a single request, and establish a connection with the third device after the upgrade is completed.
  • the configuration device may sequentially control each device on the path of the first node except the root node to upgrade and establish a connection with the device corresponding to the parent node in order from the root node to the first device node.
  • the IoT protocol supported by the target device is still IoT protocol 1
  • the specified IoT protocol is IoT protocol 4.
  • the configured device can first control the device corresponding to the intermediate node 1 through an upgrade request and a connection request to upgrade to obtain the bridging capability between the IoT protocol 1 and the IoT protocol 2, and control the target device and the device corresponding to the intermediate node 1. Establish a connection between them, and then configure the device to control the device corresponding to the first device node to upgrade to obtain the bridging capability between IoT protocol 2 and IoT protocol 3, and control the device corresponding to the first device node and the intermediate node 1 to A connection is established between the devices. Finally, the configuration device controls the first device to upgrade to obtain the bridging capability between the Internet of Things protocol 3 and the Internet of Things protocol 4, and controls the establishment of a connection between the first device and the device corresponding to the first device node.
  • the configuration device when the specified IoT protocol does not exist among all candidate target protocols, the configuration device adds the corresponding device node in the bridge tree and initiates the next round of query.
  • the configuration device can also directly add the corresponding device node in the bridge tree based on the query results, and then make a judgment after the current round of query and the addition of the device node are completed. Whether to conduct the next round of inquiries.
  • the configuration device can send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain the specified IoT protocol;
  • the m-th layer device node is each device node in the level where the parent node of the second device node is located.
  • m is a positive integer.
  • the configuration device adds an m-th layer device node in the bridge tree, and the target protocol corresponding to the m-th layer device node does not contain the specified IoT protocol, it can be considered that the upgrade has not yet been found.
  • the configuration device can use the target protocol corresponding to the m-th layer device node as the source protocol and continue to search for a way to bridge the source protocol to Devices with other IoT protocols.
  • the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, and 2 ⁇ m ⁇ N, the first query message is sent;
  • n and N are integers, and N is the upper limit of the number of layers of the bridge tree.
  • the configuration device when the bridge tree is configured with an upper limit for the number of layers, the configuration device adds an m-th layer device node to the bridge tree, and the target protocol corresponding to the m-th layer device node does not contain the specified IoT protocol, if the current If the number of layers in the bridge tree has not reached the upper limit of the above-mentioned layers, the configuration device can use the target protocol corresponding to the m-th layer device node as the source protocol and continue to look for devices that can bridge the source protocol to other IoT protocols.
  • Figure 7 shows a schematic diagram of the device discovery and bridging process involved in the embodiment of the present application. As shown in Figure 7, the process may include the following steps:
  • the APP in the configuration device obtains the basic information (Bridged_Device_Information) of the bridged device (Bridged Device, corresponding to the above target device) through out-of-band methods such as scanning QR codes.
  • Protocol_Type_ID Protocol_Version
  • Vendor_ID Device_Type_ID
  • Data_Modol_Version Data_Modol_Version and other information. This information may be shown in Table 1 below.
  • Protocol_Version Protocol version Protocol_Type_ID Supported communication protocol types Device_Type_ID Equipment type Data_Model_Version Device model version Vendor_ID Manufacturer code
  • the APP broadcasts to query whether there is a device that can provide bridging services to the Bridged Device. If not, it broadcasts to query whether there is a Bridge device that can upgrade the corresponding bridging service.
  • the indirect bridging process is completed by finding one or more intermediate bridge devices (B) without directly bridging the Bridged Device (C) to the ecosystem (A) where the APP is located (there is no C->A path). (C->B->A) Bridge process solution.
  • this step may include initializing the indirect bridging parameters: N (level of indirect bridging), initializing the bridge tree (bridging information of the bridged Device ( 1st _Bridged_Information): manufacturer, protocol type, protocol version, data model version, device type) root node.
  • Source protocol Bridged Information
  • step S75 all devices that may become intermediate Bridge, after receiving the broadcast message in step S73, unicast a response message to the APP.
  • the response message contains the information shown in Table 2 below:
  • UpgradeID is the upgrade package identifier corresponding to the Bridge function, which is used to instruct the device to apply for the upgrade package.
  • M unicast responses may be formed in this broadcast, and the APP can generate M1 valid records for the M unicast responses (it is possible that the same product of the same brand can provide the same function), and insert it into the Bridge tree as the upper Child nodes of first-level nodes. That is, based on the device IDs and protocol IDs of the M1 protocols discovered this time, the child nodes of the node of the current source protocol are generated and added to the bridge tree.
  • Protocol_Type_ID protocol type identifier
  • the logic of loop processing can be: in each large loop, use all the sub-level nodes found in the previous loop as input to find the corresponding intermediate Bridge.
  • Bridge2 After obtaining the above information, the APP requests Bridge2 to complete the bridging service for Bridged Device.
  • the request needs to carry the following information of Bridged: Bridged Device ID, Bridged_Device_Information. Services that Bridge2 needs to upgrade: Upgrade ID, etc.
  • This step can also be divided into two requests. First, request Bridge2 to upgrade the bridging service (Upgrade ID), and then request it to bridge the Bridged Device.
  • Bridge2 After Bridge2 receives the above request, it applies to upgrade its corresponding software package (for example, it can be applied through Upgrade ID). After the upgrade, it establishes a connection with Bridge Device1, and the connection protocol uses Source Protocol. After the connection is established, Bridge2 generates Shadow Device M for Bridged Device, which is to complete the bridge connection.
  • the response message may include: Device ID of Shadow Device M, Intermediate_Protocol_ID.
  • Bridge 1 upgrades the requested upgrade bridge service after receiving the above message. If the corresponding bridging service already exists, the upgrade service does not need to be performed. Bridge 1 completes the bridging work of Shadow Device M and generates the corresponding Shadow Device F. Similar to step S77, the connection protocol between Bridge1 and Bridge2 uses Intermediate_Protocol.
  • Bridge1 responds to APP after completing the conversion. This completes the indirect bridging.
  • the APP can use the specified IoT protocol to transmit commands to Bridge1 to control Shadow Device F; Bridge1 uses the intermediate IoT protocol to transmit commands to Bridge2 to control Shadow Device M; Bridge2 uses the IoT protocol supported by the bridged device to transmit the command to the bridged device.
  • the configuration device sends a first query message to query the first device that supports the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols, and , querying the first bridging capability that the first device supports for upgrading is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it does not currently have one or more bridging capabilities, but can pass Upgrading the bridging device that obtains one or more bridging capabilities makes the application of the bridging function not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
  • FIG. 9 shows a flow chart of a device discovery method provided by an embodiment of the present application.
  • This method can be executed by a bridging service management device.
  • the bridging service management device maintains capability information of each device in the Internet of Things;
  • the capability information includes bridging capabilities that support upgrades; for example, the bridging service management device may be the bridging service management device 140 in the network architecture shown in Figure 1; the method may include the following steps:
  • Step 901 Receive a first query message sent by the configuration device.
  • the first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first IoT protocol and other IoT protocols.
  • Step 902 If the first device among the devices supports upgrading the first bridging capability, send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and The first bridging capability supported by the first device for upgrade is the bridging capability between the first IoT protocol and the second IoT protocol.
  • the configuration device queries the bridging service management device for supporting the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols by sending a first query message.
  • the first device, and querying the first bridging capability of the first device that supports the upgrade is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that one or more bridging options are not currently available. capability, but the bridging device can obtain one or more bridging capabilities through upgrading, so that the application of the bridging function is not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
  • the configuration device can indirectly query the bridging service management device for the first device that can obtain the one or more bridging capabilities through upgrade.
  • Figure 10 shows a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application.
  • the first device 1002 in the Internet of Things can register with the bridge service management device 1003, register it as a device with an upgrade function, and make it the first bridge that supports upgrades.
  • the capability information is sent to the bridging service management device 1003; when the configuration device 1001 needs to query the surrounding devices with upgrade functions (that is, one or more specific bridging capabilities can be obtained through upgrades), the configuration device 1001 can send the first step to the bridging service management device 1003.
  • the bridge service management device 1003 indicates the first device 1002 and the identification of the second Internet of Things protocol to the configuration device 1001 to notify the configuration device 1001 that the first device 1002 supports Upgrade the first bridging capability, and support upgrading to obtain the first bridging capability between the first IoT protocol and the second IoT protocol.
  • Figure 11 shows a flow chart of a device discovery method provided by an embodiment of the present application.
  • This method can be executed interactively by a configuration device and multiple devices.
  • the multiple devices include a target device, a first device, a third device, and a target device.
  • the second device, the third device, the bridging service management device, etc., for example, the configuration device can be the configuration device 120 in the network architecture shown in Figure 1, and the multiple devices can be bridging devices in the network architecture shown in Figure 1 130 and/or multiple devices in the Internet of Things device 110; the method may include the following steps:
  • Step 1101 The configuration device obtains device information of the target device.
  • the device information of the target device includes identification information of the Internet of Things protocol supported by the target device.
  • Step 1102 The configuration device initializes the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
  • the configuration device can also initialize the upper limit of the number of layers of the bridge tree. For example, the configuration device can write the upper limit N of the number of layers of the bridge tree in the attribute information of the bridge tree.
  • Step 1103 Send a first query message to the bridging service management device, and accordingly, the bridging service management device receives the first query message.
  • the first query message is used to query devices that support upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols.
  • the first query message includes identification information of the first Internet of Things protocol.
  • the configuration device may send a first query message to the bridge service management device according to the bridge tree.
  • the configuration device can obtain the target protocol of the first device node in the bridge tree; the root node of the bridge tree is the device node corresponding to the target device; the first device node is the last layer in the bridge tree Any one of the device nodes; the bridge tree is a structure tree constructed based on the target protocol of the existing device node as the source protocol for querying the bridging capability, and based on the queried target protocol; configure the device to use the target protocol of the first device node as the source protocol. Query the source protocol of the first bridging capability and send the first query message.
  • the steps 1101 to 1103 are similar to the steps 601 to 603 in the embodiment shown in FIG. 6 , except that the method and object of the first query message sent are different, which will not be described again here.
  • Step 1104 When the first device supports upgrading the first bridging capability, the bridging service management device sends a first response message to the configuration device; the configuration device receives the first response message.
  • the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • the first response message contains identification information of the second Internet of Things protocol.
  • a first response message may be returned to the configuration device.
  • the first response message In addition to indicating that the first device supports upgrading the first bridging capability, the first response message also carries identification information of the second Internet of Things protocol.
  • Step 1105 The configuration device adds a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol.
  • the target protocol of the parent node of the second device node in the bridge tree is the first Internet of Things protocol.
  • the second device node becomes the last node in the bridge tree.
  • the configuration device when the specified IoT protocol does not exist in each candidate target protocol, the configuration device adds a second device node corresponding to the second device in the bridge tree; wherein each candidate target protocol is The target protocol obtained when querying the bridging capability is based on the target protocol of each device node in the last layer of device nodes as the source protocol.
  • Step 1106 When the second IoT protocol is a specified IoT protocol, the configuration device establishes an indirect bridge connection between the target device and the first device according to the first node path.
  • the first node path is a path from the root node to the first device node in the bridge tree.
  • the above process of establishing an indirect bridge connection between the target device and the first device according to the first node path may include:
  • the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol;
  • the second device is on the first node path in the bridge tree , the device corresponding to any device node except the root node, or the second device is the first device;
  • the third Internet of Things protocol is the target protocol of the second device corresponding to the parent node in the bridge tree;
  • the fourth Internet of Things The protocol is the target protocol of the second device corresponding to the device node in the bridge tree;
  • the connection request is used to instruct the establishment of a connection between the second device and the third device; where the second device is any node other than the root node on the path of the first node in the bridge tree.
  • the third device corresponds to the device node in the bridge tree and is the parent node of the second device in the bridge tree; in the case where the second device is the first device, the third device is The device corresponding to the first device node.
  • the above upgrade request includes identification information of the fourth Internet of Things protocol, so that the second device can be upgraded according to the identification information of the fourth Internet of Things protocol.
  • the configuration device may send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain the specified IoT protocol;
  • the m-th layer device node is each device node in the level where the parent node of the second device node is located.
  • the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, and 2 ⁇ m ⁇ N
  • the first query message is sent; where, m, N is an integer, and N is the upper limit of the number of layers of the bridge tree.
  • the configuration device when the bridge tree is configured with an upper limit for the number of layers, the configuration device adds an m-th layer device node to the bridge tree, and the target protocol corresponding to the m-th layer device node does not contain the specified IoT protocol, if the current If the number of layers in the bridge tree has not reached the upper limit of the above-mentioned layers, the configuration device can use the target protocol corresponding to the m-th layer device node as the source protocol and continue to look for devices that can bridge the source protocol to other IoT protocols.
  • Figure 12 shows a schematic diagram of the device discovery and bridging process involved in the embodiment of the present application. As shown in Figure 12, the process may include the following steps:
  • the APP in the configuration device obtains the basic information (Bridged_Device_Information) of the bridged device (Bridged Device, corresponding to the above target device) through out-of-band methods such as scanning QR codes.
  • Protocol_Type_ID Protocol_Version
  • Vendor_ID Device_Type_ID
  • Data_Modol_Version Data_Modol_Version and other information. This information may be shown in Table 1 below.
  • the APP broadcasts whether there is a device that can provide bridging services to the Bridged Device. If not, the APP broadcasts to query whether the Bridge device can upgrade the bridging service.
  • the indirect bridging process is completed by finding one or more intermediate bridge devices (B) without directly bridging the Bridged Device (C) to the ecosystem (A) where the APP is located (there is no C->A path). (C->B->A) Bridge process solution.
  • this step can include initializing the indirect bridge parameters: N (level of indirect bridge), initializing the root node of the bridge tree (bridged Device's bridge information (1st_Bridged_Information): manufacturer, protocol type, protocol version, data model version, device type).
  • N level of indirect bridge
  • bridge_Cloud completes processing of the request message and determines its scanning scope based on the APP_Device_ID information.
  • the device being searched should be among the devices accessible to the APP.
  • bridge_Cloud unicasts a response message to the APP, and the response message contains the information shown in Table 2 above.
  • the APP determines whether the current child node has the corresponding Protocol_Type_ID used by the APP. If so, it exits the loop and forms a bridge link from the root node to the Protocol_Type_ID used by the current APP. If not, return to the step of S1103, set the source to the M other types of Protocol_Type_ID inserted this time, and continue to process according to the steps of S1103 and S1105.
  • the logic of loop processing can be: in each large loop, use all the sub-level nodes found in the previous loop as input to find the corresponding intermediate Bridge.
  • the APP requests Bridge2 to complete the bridging service to the Bridged Device.
  • Bridge2 after Bridge2 receives the above request, it applies to upgrade its corresponding software package (for example, it can be applied through Upgrade ID). After the upgrade, it establishes a connection with Bridge Device1, and the connection protocol uses Source Protocol. After the connection is established, Bridge2 generates Shadow Device M for Bridged Device, which is to complete the bridge connection.
  • the response message may include: Device ID of Shadow Device M, Intermediate_Protocol_ID.
  • Bridge 1 upgrades the requested upgrade bridge service after receiving the above message. If the corresponding bridging service already exists, the upgrade service does not need to be performed. Bridge 1 completes the bridging work of Shadow Device M and generates the corresponding Shadow Device F.
  • the connection protocol between Bridge 1 and Bridge 2 uses Intermediate_Protocol.
  • Bridge 1 responds to the APP after the conversion is completed.
  • the configuration device sends a first query message to the bridging service management device to query the bridging capabilities between the first IoT protocol and other IoT protocols that can be obtained through upgrades.
  • the first device, and querying the bridging capability obtained by the upgrade of the first device is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it currently does not have one or more bridging capabilities,
  • the bridging device can obtain one or more bridging capabilities through upgrading, so that the application of the bridging function is not limited to bridging devices pre-set with specific bridging capabilities, and the application scenarios of bridging are expanded.
  • the indirect bridging solution for the target device can be completed, thereby improving the bridging capability and access of the system. capabilities to improve user experience.
  • the solutions shown in the above embodiments of the present application can dynamically search for bridging devices that may be upgraded to obtain new bridging capabilities, so that users do not need to purchase specific bridging devices separately, thereby simplifying the user's selection "anxiety". And make the most of the equipment you already have.
  • FIG. 13 shows a block diagram of a device discovery device provided by an embodiment of the present application.
  • the device discovery device 1300 has the function of implementing the configuration device in the method shown in FIG. 3, FIG. 6 or FIG. 11. As shown in Figure 13, the device may include:
  • the receiving module 1302 is configured to receive a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the first thing. Bridging capabilities between networking protocols and secondary IoT protocols.
  • the first query message includes identification information of the first Internet of Things protocol
  • the first response message includes identification information of the second Internet of Things protocol.
  • the device further includes:
  • a protocol acquisition module is used to obtain the target protocol of the first device node in the bridge tree;
  • the root node of the bridge tree is the device node corresponding to the target device;
  • the first device node is the last layer in the bridge tree Any one of the device nodes;
  • the bridge tree is a structural tree constructed based on the target protocol of the existing device node in the bridge tree as the source protocol for device query, and based on the queried target protocol;
  • the sending module is configured to send the first query message using the target protocol of the first device node as the source protocol of the device query.
  • the device further includes:
  • a node adding module configured to add a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol;
  • the root node of the bridge tree is a device node corresponding to the target device; the target protocol of the parent node of the second device node in the bridge tree is the second Internet of Things protocol.
  • the node adding module is configured to add a second node corresponding to the second device in the bridge tree when the specified IoT protocol does not exist in each candidate target protocol. Device node.
  • each of the candidate target protocols is a target protocol obtained when querying the bridging capability using the target protocol of each device node in the last layer of device nodes as a source protocol.
  • the device further includes:
  • a connection establishment module configured to establish an indirect bridge connection between the target device and the first device according to the first node path when the second Internet of Things protocol is a designated Internet of Things protocol;
  • the first node path is a path from the root node to the first device node in the bridge tree.
  • connection establishment module is used to,
  • the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol;
  • the second device is in the bridge tree on the first node path, a device corresponding to any device node except the root node, or the second device is the first device;
  • the third Internet of Things protocol is a device corresponding to the second device The target protocol of the parent node in the bridge tree;
  • the fourth Internet of Things protocol is the target protocol of the device node corresponding to the second device in the bridge tree;
  • the connection request is used to instruct the establishment of a connection between the second device and a third device; wherein the second device is the first node path in the bridge tree
  • the third device corresponding to the device node in the bridge tree is the parent of the second device corresponding to the bridge tree. node; when the second device is the first device, the third device is a device corresponding to the first device node.
  • the upgrade request includes identification information of the fourth Internet of Things protocol.
  • the node adding module is used when there is no specified Internet of Things protocol in each candidate target protocol, and the number of layers of the bridge tree is less than the upper limit of the number of layers of the bridge tree. , adding a second device node corresponding to the second device in the bridge tree.
  • the sending module 1301 is configured to send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain a specified Internet of Things protocol. ;
  • the mth layer device node is each device node in the level where the parent node of the second device node is located.
  • the sending module 1301 is configured to: When the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, and 2 ⁇ m ⁇ N, Send the first query message;
  • n and N are integers, and N is the upper limit of the number of layers of the bridge tree.
  • the device further includes:
  • An information acquisition module configured to acquire device information of the target device before the sending module sends the first query message, where the device information of the target device includes identification information of the Internet of Things protocol supported by the target device;
  • An initialization module configured to initialize the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
  • the initialization module is also used to initialize the upper limit of the number of layers of the bridge tree.
  • the sending module 1301 is configured to send the first query message by broadcasting
  • the receiving module 1302 is configured to receive the first response message returned by the first device to the first query message.
  • the sending module 1301 is configured to send the first query message to a bridging service management device; the bridging service management device maintains capability information of each device in the Internet of Things; The described capability information is used to indicate the function of obtaining bridging capability through upgrade;
  • the receiving module 1302 is configured to receive the first response message returned by the bridge service management device in response to the first query message.
  • the sending module is also configured to send a second query message, the second query message is used to query a device that has or supports upgrading the second bridging capability;
  • the second bridging Capability is the bridging capability between the IoT protocol corresponding to the target device and the specified IoT protocol;
  • the sending module is configured to send the first query message if a device that has or supports upgrading the second bridging capability is not found.
  • Figure 14 shows a block diagram of a device discovery device provided by an embodiment of the present application.
  • the device has the function of realizing the function performed by the first device in the method shown in FIG. 4, FIG. 6 or FIG. 11.
  • the device may include:
  • the receiving module 1401 is configured to receive a first query message sent by a configuration device.
  • the first query message is used to query a device that supports upgrading the first bridging capability;
  • the first bridging capability is a link between the first Internet of Things protocol and other Internet of Things. Bridging capabilities between protocols;
  • Sending module 1402 configured to send a first response message to the configuration device when the first device supports upgrading the first bridging capability; the first response message is used to indicate that the first device supports The first bridging capability is upgraded, and the first bridging capability supported by the first device is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • the first query message includes identification information of the first Internet of Things protocol
  • the first response message includes identification information of the second Internet of Things protocol.
  • Figure 15 shows a block diagram of a device discovery device provided by an embodiment of the present application.
  • the device has the function of being executed by the bridging service management device in implementing the method shown in Figure 9 or Figure 11; the bridging service management device maintains capability information of each device in the Internet of Things; the capability information includes support Upgraded bridging capabilities.
  • the device may include:
  • the receiving module 1501 is configured to receive a first query message sent by a configuration device.
  • the first query message is used to query a device that supports upgrading the first bridging capability;
  • the first bridging capability is a link between the first Internet of Things protocol and other Internet of Things. Bridging capabilities between protocols;
  • Sending module 1502 configured to send a first response message to the configuration device when the first device among the various devices supports upgrading the first bridging capability; the first response message is used to indicate that the The first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • the first query message includes identification information of the first Internet of Things protocol
  • the first response message includes identification information of the second Internet of Things protocol.
  • the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. 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 16 shows a schematic structural diagram of a computer device 1600 provided by an embodiment of the present application.
  • the computer device 1600 may include a processor 1601, a receiver 1602, a transmitter 1603, a memory 1604, and a bus 1605.
  • the processor 1601 includes one or more processing cores.
  • the processor 1601 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1602 and the transmitter 1603 can be implemented as a communication component, and the communication component can be a communication chip.
  • This communication chip can also be called a transceiver.
  • Memory 1604 is connected to processor 1601 through bus 1605.
  • the memory 1604 can be used to store a computer program, and the processor 1601 is used to execute the computer program to implement each step in the above method embodiment.
  • memory 1604 may be implemented by any type of volatile or non-volatile storage device, or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable Read-only memory, erasable programmable read-only memory, static ready-access memory, read-only memory, magnetic memory, flash memory, programmable read-only memory.
  • the transceiver when the computer device 1600 is implemented as a configuration device, the transceiver is used to send a first query message, and the first query message is used to query a device that supports upgrading the first bridging capability; so
  • the first bridging capability is a bridging capability between a first Internet of Things protocol and other Internet of Things protocols; receiving a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and
  • the first bridging capability supported by the first device for upgrade is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • the process performed by the processor 1601 and/or the transceiver in the computer device 1600 may refer to the various steps performed by the configuration device in any of the methods shown in FIG. 3, FIG. 6, or FIG. 11.
  • the transceiver when the computer device 1600 is implemented as a first device, the transceiver is configured to receive a first query message sent by the configuration device, where the first query message is used to query support for upgrading the first bridge. capable device; the first bridging capability is a bridging capability between a first Internet of Things protocol and other Internet of Things protocols; in the case where the first device supports upgrading the first bridging capability, provide the configuration device with Send a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the first thing Bridging capabilities between networking protocols and secondary IoT protocols.
  • the process performed by the processor 1601 and/or the transceiver in the computer device 1600 may refer to the various steps performed by the first device in any of the methods shown in FIG. 4, FIG. 6, or FIG. 11.
  • the transceiver when the computer device 1600 is implemented as a bridge service management device, the transceiver is configured to receive a first query message sent by the configuration device, and the first query message is used to query support for upgrading the first A device with bridging capability; the first bridging capability is a bridging capability between a first Internet of Things protocol and other Internet of Things protocols; in the case where the first device among the respective devices supports upgrading the first bridging capability, Send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability that the first device supports upgrading is The bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  • the process performed by the processor 1601 and/or the transceiver in the computer device 1600 may refer to the various steps performed by the bridge service management device in the method shown in either FIG. 9 or FIG. 11 .
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored in the storage medium.
  • the computer program is loaded and executed by a processor to implement the above-mentioned Figures 3, 4, 6, and 9. Or in the method shown in Figure 11, all or part of the steps performed by the configuration device, the first device or the bridge service management device.
  • the present application provides a chip, which is used to run in a computer device, so that the computer device performs the method shown in Figure 3, Figure 4, Figure 6, Figure 9, or Figure 11, by configuring the device, the first A device or bridge service manages all or part of the steps performed by the device.
  • the application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions are 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 the method shown in Figure 3, Figure 4, Figure 6, Figure 9, or Figure 11, All or part of the steps performed by the configuration device, the first device or the bridge service management device.
  • the present application provides a computer program, which is executed by a processor of a computer device to implement the method shown in Figure 3, Figure 4, Figure 6, Figure 9, or Figure 11, by the configuration device, the first device or the bridge. All or part of the steps performed by the service management device.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Abstract

Device discovery methods and apparatuses, and a device, a storage medium and a program product, which belong to the technical field of Internet of Things. A device discovery method comprises: sending a first query message (301), wherein the first query message is used for querying for a device that supports upgrading a first bridging capability; receiving a first response message (302), wherein the first response message is used for indicating that a first device supports upgrading the first bridging capability, and the first bridging capability, the upgrading of which is supported by the first device, is the bridging capability between a first Internet-of-Things protocol and a second Internet-of-Things protocol. By means of the solution, the application scenarios of bridging are expanded.

Description

设备发现方法、装置、设备、存储介质及程序产品Device discovery methods, devices, equipment, storage media and program products 技术领域Technical field
本申请涉及物联网技术领域,特别涉及一种设备发现方法、装置、设备、存储介质及程序产品。This application relates to the technical field of the Internet of Things, and in particular to a device discovery method, device, equipment, storage medium and program product.
背景技术Background technique
随着物联网(Internet of Things,IoT)技术的不断发展,越来越多的物联网设备在智能家居、工业生产等诸多领域给用户的生产生活带来了极大的便利性。With the continuous development of Internet of Things (IoT) technology, more and more IoT devices have brought great convenience to users' production and life in many fields such as smart homes and industrial production.
在相关技术中,不同的物联网设备可能支持不同的物联网协议。为了使得支持不同的物联网协议的物联网设备能够进行互联或者统一管理,支持不同物联网协议的物联网设备可以通过桥接设备进行组网。In related technology, different IoT devices may support different IoT protocols. In order to enable interconnection or unified management of IoT devices that support different IoT protocols, IoT devices that support different IoT protocols can be networked through bridge devices.
发明内容Contents of the invention
本申请实施例提供了一种设备发现方法、装置、设备、存储介质及程序产品。所述技术方案如下:Embodiments of the present application provide a device discovery method, device, equipment, storage medium and program product. The technical solutions are as follows:
一方面,本申请实施例提供了一种设备发现方法,所述方法由配置设备执行,所述方法包括:On the one hand, embodiments of the present application provide a device discovery method, which is executed by a configuration device. The method includes:
发送第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;Send a first query message, the first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols;
接收第一响应消息;所述第一响应消息用于指示第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。Receive a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the first Internet of Things protocol Bridging capabilities to second IoT protocols.
一方面,本申请实施例提供了一种设备发现方法,所述方法由第一设备执行,所述方法包括:On the one hand, embodiments of the present application provide a device discovery method, which is executed by a first device. The method includes:
接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;Receive the first query message sent by the configuration device, the first query message is used to query the device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols ;
在所述第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。When the first device supports upgrading the first bridging capability, sending a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability. capability, and the first bridging capability supported by the first device for upgrade is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
一方面,本申请实施例提供了一种设备发现方法,所述方法由桥接服务管理设备执行,所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息包括支持升级的桥接能力;所述方法包括:On the one hand, embodiments of the present application provide a device discovery method. The method is executed by a bridging service management device. The bridging service management device maintains capability information of each device in the Internet of Things; the capability information includes support for Upgraded bridging capabilities; methods include:
接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力包括通过升级获得第一桥接能力的功能;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;Receive a first query message sent by the configuration device, the first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability includes the function of obtaining the first bridging capability through upgrading; the first bridging capability The capability is the bridging capability between the first IoT protocol and other IoT protocols;
在所述各个设备中的第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。When the first device among the various devices supports upgrading the first bridging capability, send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability. The first bridging capability, and the first bridging capability that the first device supports upgrading is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
另一方面,本申请实施例提供了一种设备发现装置,所述装置包括:On the other hand, embodiments of the present application provide a device discovery device, which includes:
发送模块,用于发送第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;A sending module, configured to send a first query message. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a bridge between the first Internet of Things protocol and other Internet of Things protocols. ability;
接收模块,用于接收第一响应消息;所述第一响应消息用于指示第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。A receiving module, configured to receive a first response message; the first response message is used to indicate that the first device supports upgrading of the first bridging capability, and the first bridging capability that the first device supports upgrading is the Bridging capability between the first IoT protocol and the second IoT protocol.
另一方面,本申请实施例提供了一种设备发现装置,所述装置用于第一设备中,所述装置包括:On the other hand, an embodiment of the present application provides a device discovery device, which is used in a first device. The device includes:
接收模块,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;A receiving module, configured to receive a first query message sent by a configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a first Internet of Things protocol and other Internet of Things protocols. bridging capabilities;
发送模块,用于在所述第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。A sending module, configured to send a first response message to the configuration device when the first device supports upgrading the first bridging capability; the first response message is used to indicate that the first device supports the upgrade. The first bridging capability, and the first bridging capability that the first device supports upgrading, is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
另一方面,本申请实施例提供了一种设备发现装置,所述装置用于桥接服务管理设备中,所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息包括支持升级的桥接能力;所述装置包括:On the other hand, embodiments of the present application provide a device discovery device, which is used in a bridging service management device. The bridging service management device maintains capability information of each device in the Internet of Things; the capability information Includes bridging capabilities to support upgrades; the device includes:
接收模块,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;A receiving module, configured to receive a first query message sent by a configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a first Internet of Things protocol and other Internet of Things protocols. bridging capabilities;
发送模块,用于在所述各个设备中的第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。A sending module, configured to send a first response message to the configuration device when the first device among the devices supports upgrading the first bridging capability; the first response message is used to indicate that the first response message A device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is a bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
另一方面,本申请实施例提供了一种计算机设备,所述计算机设备实现为信息上报设备,所述计算机设备包括处理器、存储器和收发器;On the other hand, embodiments of the present application provide a computer device, the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
存储器中存储有计算机程序,处理器执行所述计算机程序,以使得计算机设备实现上述设备发现方法。A computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the above device discovery method.
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述设备发现方法。In yet another aspect, embodiments of the present application provide a computer device, which 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, so as to Implement the above device discovery method.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述设备发现方法。On another aspect, embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above device discovery method.
又一方面,本申请还提供了一种芯片,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行上述设备发现方法。In another aspect, the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above device discovery method.
又一方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述设备发现方法。In yet another aspect, the present application provides a computer program product including 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 the above device discovery method.
又一方面,本申请提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述设备发现方法。In another aspect, the present application provides a computer program, which is executed by a processor of a computer device to implement the above device discovery method.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided by the embodiments of this application can bring the following beneficial effects:
配置设备通过发送第一查询消息,来查询支持升级第一物联网协议与其它物联网协议之间的第一桥接能力的第一设备,以及,查询该第一设备支持升级的第一桥接能力是第一物联网协议与哪个物联网协议之间的桥接能力,使得配置设备能够发现当前未具有某一项或多项桥接能力,但是可以通过升级获得该一项或多项桥接能力的桥接设备,使得桥接功能的应用不局限于预先设置有特定的桥接能力的桥接设备,扩展了桥接的应用场景。The configuration device queries the first device that supports upgrading the first bridging capability between the first Internet of Things protocol and other Internet of Things protocols by sending a first query message, and queries the first device that supports the upgrading of the first bridging capability. The bridging capability between the first IoT protocol and which IoT protocol enables the configuration device to discover bridging devices that currently do not have one or more bridging capabilities, but can obtain the one or more bridging capabilities through upgrades, The application of the bridging function is not limited to bridging devices pre-set with specific bridging capabilities, and the application scenarios of bridging are expanded.
附图说明Description of drawings
图1是本申请一个实施例提供的物联网的网络架构的示意图;Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application;
图2是本申请涉及的桥接架构示意图;Figure 2 is a schematic diagram of the bridge architecture involved in this application;
图3是本申请一个实施例提供的设备发现方法的流程图;Figure 3 is a flow chart of a device discovery method provided by an embodiment of the present application;
图4是本申请一个实施例提供的设备发现方法的流程图;Figure 4 is a flow chart of a device discovery method provided by an embodiment of the present application;
图5是本申请一个实施例提供的可升级的桥接设备的发现流程框架图;Figure 5 is a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application;
图6是本申请一个实施例提供的设备发现方法的流程图;Figure 6 is a flow chart of a device discovery method provided by an embodiment of the present application;
图7是图6所示实施例涉及的设备发现及桥接流程示意图;Figure 7 is a schematic diagram of the device discovery and bridging process involved in the embodiment shown in Figure 6;
图8是图6所示实施例涉及的桥接路径示意图;Figure 8 is a schematic diagram of the bridge path involved in the embodiment shown in Figure 6;
图9是本申请一个实施例提供的设备发现方法的流程图;Figure 9 is a flow chart of a device discovery method provided by an embodiment of the present application;
图10是本申请一个实施例提供的可升级的桥接设备的发现流程框架图;Figure 10 is a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application;
图11是本申请一个实施例提供的设备发现方法的流程图;Figure 11 is a flow chart of a device discovery method provided by an embodiment of the present application;
图12是本申请实施例涉及的设备发现及桥接流程示意图;Figure 12 is a schematic diagram of the device discovery and bridging process involved in the embodiment of this application;
图13是本申请一个实施例提供的设备发现装置的框图;Figure 13 is a block diagram of a device discovery device provided by an embodiment of the present application;
图14是本申请一个实施例提供的设备发现装置的框图;Figure 14 is a block diagram of a device discovery device provided by an embodiment of the present application;
图15是本申请一个实施例提供的设备发现装置的框图;Figure 15 is a block diagram of a device discovery device provided by an embodiment of the present application;
图16是本申请一个实施例提供的计算机设备的结构示意图。Figure 16 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and business scenarios described in the embodiments of this application are to more clearly explain the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those of ordinary skill in the art will know that with the network architecture evolution and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
请参考图1,其示出了本申请一个实施例提供的物联网的网络架构的示意图。该物联网的网络架构可以包括:物联网设备110(图1中示出为物联网设备110a、物联网设备110b、物联网设备110c、物联网设备110d)和配置设备120;可选的,该网络架构还可以包括桥接设备130、桥接服务管理设备140;Please refer to Figure 1, which shows a schematic diagram of the 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: an Internet of Things device 110 (shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1) and a configuration device 120; optionally, the The network architecture may also include a bridge device 130 and a bridge service management device 140;
物联网设备110可以是指在物联网中,用于提供物联网协议对应的客户端功能或者服务端功能的设备。The Internet of Things device 110 may refer to a device used to provide client functions or server functions corresponding to the Internet of Things protocol in the Internet of Things.
比如,物联网设备110可以是智能家居设备,例如,智能开关、智能灯具、智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人等等。For example, the IoT device 110 may be a smart home device, such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
或者,物联网设备110可以是工业生产设备,如,车床、工业机器人、太阳能面板、风力发电机等等。Alternatively, the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, etc.
或者,物联网设备110可以是商业服务设备,例如,无人售货机等等。Alternatively, the Internet of Things device 110 may be a commercial service device, such as an unmanned vending machine or the like.
或者,物联网设备110可以是传感设备,如,监控摄像头、红外传感器、声音传感器、温度传感器等。Alternatively, the IoT device 110 may be a sensing device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
在一种可能的实现方式中,配置设备120是用户侧的终端设备。比如,配置设备120可以是智能控制器、智能遥控器、智能手机、平板电脑、智能手表、智能电视、智能音箱、智能开关、网关等等;或者,配置设备120也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。In a possible implementation, the configuration device 120 is a user-side terminal device. For example, the configuration device 120 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, etc.; or the configuration device 120 can also be a personal computer, such as a desktop. Computers, laptops, personal workstations and more.
在另一种可能的实现方式中,配置设备120是指基于终端设备运行的客户端实体(可以是虚拟实体),例如,配置设备120可以是运行在终端设备中,用于对物联网设备进行访问、控制、以及管理等操作的应用程序(Application,APP)。In another possible implementation, the configuration device 120 refers to a client entity (which may be a virtual entity) running on a terminal device. For example, the configuration device 120 may run in a terminal device and is used to configure the Internet of Things device. Application (Application, APP) for access, control, and management operations.
桥接设备130用于实现支持不同物联网协议的两个设备之间的交互。桥接设备130在支持不同物联网协议的物联网设备110之间,或者,在支持不同物联网协议的物联网设备110和配置设备120之间,提供信息转换和传递的服务。The bridge device 130 is used to implement interaction between two devices supporting different Internet of Things protocols. The bridge device 130 provides information conversion and transfer services between IoT devices 110 that support different IoT protocols, or between IoT devices 110 that support different IoT protocols and the configuration device 120 .
桥接设备130可以是专用于进行桥接的设备,或者,桥接设备130也可以是具有桥接功能的智能设备,比如网关或者路由器等等。The bridging device 130 may be a device dedicated for bridging, or the bridging device 130 may also be an intelligent device with a bridging function, such as a gateway or a router.
桥接服务管理设备140可以是部署在网络侧的服务器,也可以是部署在线下的计算机设备。桥接服务管理设备140可以存储各个桥接设备130或者其它具有桥接能力的设备的相关信息,比如,支持哪些桥接能力,支持桥接的设备的数量,已桥接的设备的数量等等;桥接服务管理设备140可以对桥接设备130或者其它具有桥接能力的设备进行管理。The bridge service management device 140 may be a server deployed on the network side, or may be a computer device deployed offline. The bridging service management device 140 can store relevant information about each bridging device 130 or other devices with bridging capabilities, such as which bridging capabilities are supported, the number of devices that support bridging, the number of bridged devices, etc.; the bridging service management device 140 Bridge device 130 or other devices with bridging capabilities may be managed.
在本申请实施例中,上述物联网设备110、配置设备120、桥接设备130、桥接服务管理设备140可以是满足相同或者不同的物联网协议的电子设备,比如,可以是满足连接标准联盟(Connectivity Standards Alliance,CSA)下的Matter协议的电子设备。In this embodiment of the present application, the above-mentioned Internet of Things device 110, configuration device 120, bridge device 130, and bridge service management device 140 may be electronic devices that meet the same or different Internet of Things protocols. For example, they may be electronic devices that meet the Connectivity Standard Alliance (Connectivity Standards Alliance, CSA) electronic equipment under the Matter protocol.
在图1中,当物联网设备110a和物联网设备110c之间支持相同的协议规范时,物联网设备110a和物联网设备110c之间可以建立安全连接,比如,基于Matter规范建立安全连接。In Figure 1, when the IoT device 110a and the IoT device 110c support the same protocol specification, a secure connection can be established between the IoT device 110a and the IoT device 110c, for example, a secure connection is established based on the Matter specification.
当物联网设备110b和物联网设备110d之间支持不同的协议规范,比如,物联网设备110b是Zigbee设备,而物联网设备110d是Matter设备时,物联网设备110b和物联网设备110d之间可以通过桥接设备130相连。When the IoT device 110b and the IoT device 110d support different protocol specifications, for example, the IoT device 110b is a Zigbee device and the IoT device 110d is a Matter device, the IoT device 110b and the IoT device 110d can connected via a bridge device 130.
请参考图2,其示出了本申请涉及的桥接架构示意图。如图2所示,以Matter协议下的桥接框架为例,目前物联网的桥(bridge)解决方案中,需要桥生产商应用程序201(也称为bridge Manufacturer App,是厂家私有实现的App)来完成对桥接的子设备202(也称为Bridged Device,对应图2中的BD1~BD3)等异构设备(即非Matter协议设备,比如Zigbee设备)的桥接功能实现,其中,图2中的Bridged Device可以为实体物联网设备,也可以为逻辑设备;bridge Manufacturer App控制在桥接设备203(Bridge)上为BD1等设备生成对应的Matter设备204(也称为Matter Device,对应图2中的MD1~MD4),以便支持Matter协议的App(即Matter App 1~Matter App 3)通过桥接设备203对桥接的子设备202进行查看和控制,其中,图2中的Matter Device可以为逻辑设备。Please refer to Figure 2, which shows a schematic diagram of the bridge architecture involved in this application. As shown in Figure 2, taking the bridging framework under the Matter protocol as an example, the current bridge solution for the Internet of Things requires a bridge manufacturer application 201 (also called a bridge Manufacturer App, which is an App implemented privately by the manufacturer) To complete the bridging function of heterogeneous devices (that is, non-Matter protocol devices, such as Zigbee devices) such as bridged sub-device 202 (also called Bridged Device, corresponding to BD1 ~ BD3 in Figure 2), among which, in Figure 2 Bridged Device can be a physical IoT device or a logical device; the bridge Manufacturer App controls the bridge device 203 (Bridge) to generate the corresponding Matter device 204 (also called Matter Device, corresponding to MD1 in Figure 2) for BD1 and other devices. ~MD4), so that the App that supports the Matter protocol (i.e., Matter App 1 ~ Matter App 3) can view and control the bridged sub-device 202 through the bridge device 203, where the Matter Device in Figure 2 can be a logical device.
其中,为BD1等设备生成对应的Matter设备204的实现方法可以为:在Bridge的数据模型上生成对应的端点(endpoints),一个或者多个endpoints对应一个Matter Device;因此在Bridge的数据模型中既包含了其自身功能的endpoints(可以称为endpoint0),也包含其桥接的异构设备对应的endpoints。Among them, the implementation method of generating the corresponding Matter device 204 for devices such as BD1 can be: generating corresponding endpoints (endpoints) on the Bridge data model, and one or more endpoints correspond to a Matter Device; therefore, in the Bridge data model Contains the endpoints of its own functions (can be called endpoint0), and also includes the endpoints corresponding to the heterogeneous devices it bridges.
在本申请涉及的一个桥接方案中,桥接能力与桥接设备是紧耦合的,也就是说,桥接设备的桥接能力在出厂时就已经安装好。而支持不同的物联网协议的设备需要通过不同的桥接能力进行交接,也就是说,对于物联网中的一个物联网设备来说,如果物联网中没有预先安装与该物联网设备匹配的桥接设备,则无法通过桥接方式建立该物联网设备与其它异构的物联网设备之间的通信,从而限制了桥接的应用场景。In a bridging solution involved in this application, the bridging capability and the bridging device are tightly coupled, that is, the bridging capability of the bridging device is already installed at the factory. Devices that support different IoT protocols need to be handed over through different bridging capabilities. That is to say, for an IoT device in the IoT, if there is no pre-installed bridge device matching the IoT device in the IoT , then communication between the IoT device and other heterogeneous IoT devices cannot be established through bridging, thus limiting the application scenarios of bridging.
对于上述方案,本申请后续实施例提供了一种设备发现方案,能够在物联网中发现具有升级获得新的桥接能力的功能的设备,也就是说,配置设备可以从物联网中发现通过升级的方式获取之前不具有的桥接能力的设备,从而极大的提高了桥接的灵活性,从而扩展了桥接的应用场景。For the above solution, subsequent embodiments of the present application provide a device discovery solution that can discover devices in the Internet of Things that have the function of upgrading to obtain new bridging capabilities. That is to say, the configuration device can discover upgraded devices from the Internet of Things. This method obtains devices that did not have bridging capabilities before, thus greatly improving the flexibility of bridging and expanding the application scenarios of bridging.
需要说明的是,本申请各个实施例提供的方案不仅限于Matter协议与其它物联网协议之间的桥接方案,而是适用于任意两个或者多个物联网协议之间的异构设备桥接方案。It should be noted that the solutions provided by various embodiments of this application are not limited to bridging solutions between the Matter protocol and other IoT protocols, but are applicable to heterogeneous device bridging solutions between any two or more IoT protocols.
请参考图3,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由配置设备执行,比如,该配置设备可以是图1所示的网络架构中的配置设备120;该方法可以包括如下几个步骤:Please refer to Figure 3, which shows a flow chart of a device discovery method provided by an embodiment of the present application. The method can be executed by a configuration device. For example, the configuration device can be the configuration device 120 in the network architecture shown in Figure 1. ;This method may include the following steps:
步骤301,发送第一查询消息,第一查询消息用于查询支持升级第一桥接能力的设备;第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力。Step 301: Send a first query message. The first query message is used to query devices that support upgrading the first bridging capability; the first bridging capability is the bridging capability between the first IoT protocol and other IoT protocols.
其中,上述支持升级第一桥接能力,可以是指具有通过升级来获得第一桥接能力的功能。The above-mentioned support for upgrading the first bridging capability may refer to the function of obtaining the first bridging capability through upgrading.
在本申请实施例中,桥接是指在IoT领域中,使得两个或者两个以上基于不同的物联网协议的物联网设备之间能够彼此通信的技术。In the embodiment of this application, bridging refers to a technology that enables two or more IoT devices based on different IoT protocols to communicate with each other in the IoT field.
而上述桥接能力,是指为两种不同的物联网协议分别对应的物联网设备提供桥接服务的能力。比如,设备A具有物联网协议a和物联网协议b之间的桥接能力,支持该物联网协议a的物联网设备1以及支持物联网协议b的物联网设备2可以分别接入该设备A,且物联网设备1和物联网设备2之间可以通过该设备A进行通信。比如,设备A将物联网设备1发送的物联网协议a的消息转换为物联网协议b的消息,并转发给物联网设备2;相应的,设备A还可以将物联网设备2发送的物联网协议b的消息转换为物联网协议a的消息并发送给物联网设备1。The above-mentioned bridging capability refers to the ability to provide bridging services for IoT devices corresponding to two different IoT protocols. For example, device A has the bridging capability between IoT protocol a and IoT protocol b. IoT device 1 that supports IoT protocol a and IoT device 2 that supports IoT protocol b can access device A respectively. And the Internet of Things device 1 and the Internet of Things device 2 can communicate through the device A. For example, device A converts the message of IoT protocol a sent by IoT device 1 into the message of IoT protocol b, and forwards it to IoT device 2; accordingly, device A can also convert the IoT protocol message sent by IoT device 2. The message of protocol b is converted into the message of IoT protocol a and sent to IoT device 1.
在本申请实施例中,上述的升级,可以包括对设备的固件(firmware)进行更新;和/或,上述的升级,也可以包括对设备中的第三方应用程序进行更新。In this embodiment of the present application, the above-mentioned upgrade may include updating the firmware of the device; and/or the above-mentioned upgrade may also include updating a third-party application in the device.
其中,上述固件可以是指写入设备的可擦写可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)或电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)中的程序。设备的操作系统能够通过固件驱动设备中特定的硬件模块执行动作。比如,在本申请实施例中,上述设备经过升级获得新的桥接能力后,设备可以通过内置的通信模块实现两种新的物联网协议消息的转换和转发。Among them, the above-mentioned firmware may refer to the Erasable Programmable Read-Only Memory (EPROM) or the Electrically Erasable Programmable Read-Only Memory (EEPROM) written into the device. program of. The device's operating system can drive specific hardware modules in the device to perform actions through firmware. For example, in the embodiment of this application, after the above-mentioned device is upgraded to obtain new bridging capabilities, the device can convert and forward two new IoT protocol messages through the built-in communication module.
在本申请实施例中,第一设备可以是预先未设置某一项或者多项桥接能力,且可以通过升级来获得该一项或者多项桥接能力的设备。In this embodiment of the present application, the first device may be a device that has not been set with one or more bridging capabilities in advance and can obtain the one or more bridging capabilities through upgrading.
比如,第一设备是原先具有全部桥接能力中的部分桥接能力,且支持通过升级获得新的桥接能力的电子设备;例如,该第一设备可以是具有部分桥接能力的专用桥接设备或者非专用桥接设备(比如,某一物联网设备可以兼做桥接设备)。For example, the first device is an electronic device that originally had partial bridging capabilities among all the bridging capabilities and supports the acquisition of new bridging capabilities through upgrading; for example, the first device may be a dedicated bridging device with partial bridging capabilities or a non-dedicated bridging device. Device (for example, an IoT device can double as a bridge device).
再比如,第一设备可以是原先不具有桥接能力,且支持通过升级获得桥接能力的电子设备;例如,第一设备可以是一个物联网设备,该物联网设备出厂是并未设置桥接能力,且该物联网设备支持通过后续升级的方式获得一项或者多项桥接能力。For another example, the first device may be an electronic device that does not originally have bridging capabilities and supports obtaining bridging capabilities through upgrading; for example, the first device may be an Internet of Things device that does not have bridging capabilities set at the factory, and The IoT device supports obtaining one or more bridging capabilities through subsequent upgrades.
在一种可能的实现方式中,在发送第一查询消息之前,配置设备可以发送第二查询消息,第二查询消息用于查询具有或者支持升级第二桥接能力的设备;第二桥接能力是目标设备对应的物联网协议与指定物联网协议之间的桥接能力;配置设备可以在未查询到具有或者支持升级第二桥接能力的设备的情况下,发送第一查询消息。In a possible implementation, before sending the first query message, the configuration device can send a second query message. The second query message is used to query devices that have or support upgrading the second bridging capability; the second bridging capability is the target The bridging capability between the IoT protocol corresponding to the device and the specified IoT protocol; the configuration device can send the first query message when no device with or supporting the upgrade of the second bridging capability is found.
步骤302,接收第一响应消息;第一响应消息用于指示第一设备支持升级该第一桥接能力,且第一设备支持升级的第一桥接能力是第一物联网协议与第二物联网协议之间的桥接能力。Step 302: Receive a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device for upgrading is the first Internet of Things protocol and the second Internet of Things protocol. bridging capabilities between.
也就是说,配置设备以第一物联网协议作为源协议来查询其它物联网设备的第一桥接能力,查询到的第一桥接能力中,除了第一物联网协议之外的另一物联网协议为查询到的目标协议。That is to say, the configuration device uses the first IoT protocol as the source protocol to query the first bridging capabilities of other IoT devices. Among the first bridging capabilities queried, in addition to the first IoT protocol, another IoT protocol is the queried target protocol.
在本申请实施例所示的方案中,配置设备可以查询物联网中能够升级获得特定的桥接能力(也就是特定的第一物联网协议与其它物联网协议之间的桥接能力)的设备,以及该设备升级得到的桥接能力是该特定的第一物联网协议与哪种物联网协议之间的桥接能力,使得配置设备可以发现当前未具有某一项或多项特定的桥接能力,但是可以通过升级获得该一项或多项特定的桥接能力的桥接设备。In the solution shown in the embodiment of this application, the configuration device can query the devices in the Internet of Things that can be upgraded to obtain specific bridging capabilities (that is, the bridging capabilities between a specific first IoT protocol and other IoT protocols), and The bridging capability obtained by the upgrade of the device is the bridging capability between the specific first IoT protocol and which IoT protocol, so that the configuration device can find that it does not currently have one or more specific bridging capabilities, but can pass Upgrade the bridging device to obtain the specific bridging capability or capabilities.
综上所述,本申请实施例所示的方案,配置设备通过发送第一查询消息,来查询支持升级第一物联网协议与其它物联网协议之间的第一桥接能力的第一设备,以及,查询该第一设备支持升级的第一桥接能力是第一物联网协议与哪个物联网协议之间的桥接能力,使得配置设备能够发现当前未具有某一项或多项桥接能力,但是可以通过升级获得该一项或多项桥接能力的桥接设备,使得桥接功能的应用不局限于预先设置有特定的桥接能力的桥接设备,扩展了桥接的应用场景。To sum up, according to the solution shown in the embodiment of this application, the configuration device sends a first query message to query the first device that supports the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols, and , querying the first bridging capability that the first device supports for upgrading is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it does not currently have one or more bridging capabilities, but can pass Upgrading the bridging device that obtains one or more bridging capabilities makes the application of the bridging function not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
请参考图4,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由第一设备执行,比如,该第一设备可以是图1所示的网络架构中的桥接设备130或者物联网设备110;该方法可以包括如下几个步骤:Please refer to Figure 4, which shows a flow chart of a device discovery method provided by an embodiment of the present application. The method can be executed by a first device. For example, the first device can be a bridge in the network architecture shown in Figure 1 Device 130 or Internet of Things device 110; the method may include the following steps:
步骤401,接收配置设备发送的第一查询消息,第一查询消息用于查询支持升级第一桥接能力的设备;第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力。Step 401: Receive a first query message sent by the configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first IoT protocol and other IoT protocols.
步骤402,在第一设备支持升级该第一桥接能力的情况下,向配置设备发送第一响应消息;第一响应消息用于指示第一设备支持升级第一桥接能力,且第一设备支持升级的第一桥接能力是第一物联网协议与第二物联网协议之间的桥接能力。Step 402: If the first device supports upgrading the first bridging capability, send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first device supports upgrading. The first bridging capability is the bridging capability between the first IoT protocol and the second IoT protocol.
综上所述,本申请实施例所示的方案,配置设备通过发送第一查询消息,来查询支持升级第一物联网协议与其它物联网协议之间的第一桥接能力的第一设备,以及,查询该第一设备支持升级的第一桥接能力是第一物联网协议与哪个物联网协议之间的桥接能力,使得配置设备能够发现当前未具有某一项或多项桥 接能力,但是可以通过升级获得该一项或多项桥接能力的桥接设备,使得桥接功能的应用不局限于预先设置有特定的桥接能力的桥接设备,扩展了桥接的应用场景。To sum up, according to the solution shown in the embodiment of this application, the configuration device sends a first query message to query the first device that supports the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols, and , querying the first bridging capability that the first device supports for upgrading is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it does not currently have one or more bridging capabilities, but can pass Upgrading the bridging device that obtains one or more bridging capabilities makes the application of the bridging function not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
通过本申请上述图3和图4所示的方案,配置设备可以直接向第一设备查询其是否可以通过升级获得一项或多项特定的桥接能力。请参考图5,其示出了本申请一个实施例提供的可升级的桥接设备的发现流程框架图。在一种可能的应用场景中,如图5所示,物联网中的配置设备51需要查询周围具有指定升级功能(也就是可以通过升级获得一项或多项特定的桥接能力,该特定的桥接能力是第一物联网协议与其他物联网协议之间的桥接能力)的设备时,可以发送第一查询消息;第一设备52接收到该第一查询消息之后,若确定自己具有升级功能,且升级得到的桥接能力是第一物联网协议与其它物联网协议(即第二物联网协议)之间的桥接能力时,则可以向配置设备51返回一个响应消息,以通知配置设备51自己可以通过升级得到第一物联网协议与第二物联网协议之间的桥接能力;可选的,若第一设备52确定自己不支持升级该特定的桥接能力,则可以不做响应。Through the solutions shown in Figures 3 and 4 of the present application, the configuration device can directly query the first device whether it can obtain one or more specific bridging capabilities through upgrade. Please refer to FIG. 5 , which shows a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application. In a possible application scenario, as shown in Figure 5, the configuration device 51 in the Internet of Things needs to query surrounding areas with specified upgrade functions (that is, one or more specific bridging capabilities can be obtained through upgrades. The specific bridging capabilities When the device has the capability of bridging the first Internet of Things protocol and other Internet of Things protocols), it can send a first query message; after receiving the first query message, the first device 52 determines that it has the upgrade function, and When the upgraded bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols (i.e., the second Internet of Things protocol), a response message can be returned to the configuration device 51 to notify the configuration device 51 that it can pass The upgrade obtains the bridging capability between the first IoT protocol and the second IoT protocol; optionally, if the first device 52 determines that it does not support upgrading the specific bridging capability, it may not respond.
请参考图6,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由配置设备和多个设备交互执行,该多个设备中包含目标设备、第一设备、第二设备以及第三设备等等,比如,该配置设备可以是图1所示的网络架构中的配置设备120,多个设备可以是图1所示的网络架构中的桥接设备130和/或物联网设备110中的多个设备;该方法可以包括如下几个步骤:Please refer to Figure 6, which shows a flow chart of a device discovery method provided by an embodiment of the present application. This method can be executed interactively by a configuration device and multiple devices. The multiple devices include a target device, a first device, a third device, and a target device. The second device and the third device, etc., for example, the configuration device can be the configuration device 120 in the network architecture shown in Figure 1, and the multiple devices can be the bridge device 130 and/or the thing in the network architecture shown in Figure 1. Multiple devices in the networking device 110; the method may include the following steps:
步骤601,配置设备获取目标设备的设备信息,该目标设备的设备信息中包含目标设备支持的物联网协议的标识信息。Step 601: The configuration device obtains device information of the target device. The device information of the target device includes identification information of the Internet of Things protocol supported by the target device.
在本申请实施例中,配置设备可以通过带外的方式获取目标设备的设备信息。比如,配置设备可以通过扫描目标设备的二维码,获取目标设备的设备信息。In this embodiment of the present application, the configuration device can obtain the device information of the target device in an out-of-band manner. For example, the configuration device can obtain the device information of the target device by scanning the QR code of the target device.
除了目标设备支持的物联网协议的标识信息之外,目标设备的设备信息中还可以包含以下信息中的至少一种:In addition to the identification information of the IoT protocols supported by the target device, the device information of the target device may also contain at least one of the following information:
支持的物联网协议的协议类型、支持的物联网协议的版本号、设备模型版本号、软件版本号、硬件版本号、固件版本号、厂商信息、设备类型以及设备型号等。The protocol type of the supported IoT protocol, the version number of the supported IoT protocol, the device model version number, the software version number, the hardware version number, the firmware version number, the manufacturer information, the device type and the device model, etc.
比如,上述设备信息可以包括支持的协议名称、协议版本、软件版本、硬件版本、固件版本、产品基础信息(例如厂家标识、设备类型、设备型号)等信息。For example, the above device information may include supported protocol name, protocol version, software version, hardware version, firmware version, basic product information (such as manufacturer identification, device type, device model) and other information.
在一种可能的实现方式中,在发送第一查询消息之前,配置设备可以发送第二查询消息,第二查询消息用于查询具有或者支持升级第二桥接能力的设备;第二桥接能力是目标设备对应的物联网协议与指定物联网协议之间的桥接能力;配置设备可以在未查询到具有或者支持升级第二桥接能力的设备的情况下,执行发送第一查询消息的步骤(比如,可以包括后续步骤602至步骤606)。In a possible implementation, before sending the first query message, the configuration device can send a second query message. The second query message is used to query devices that have or support upgrading the second bridging capability; the second bridging capability is the target The bridging capability between the IoT protocol corresponding to the device and the specified IoT protocol; the configuration device can execute the step of sending the first query message without querying a device with or supporting the upgrade of the second bridging capability (for example, you can Including subsequent steps 602 to 606).
在一种可能的实现方式中,在未查询到具有或者支持升级第二桥接能力的设备的情况下,执行发送第一查询消息的过程可以包括:In a possible implementation, when a device with or supporting the upgrade of the second bridging capability is not queried, the process of sending the first query message may include:
在发送第二查询消息之后的指定时长内未接收到第二响应消息的情况下,配置设备执行发送第一查询消息的步骤;该第二响应消息是接收到第二查询消息,且已具有第二桥接能力的设备返回的消息。If the second response message is not received within a specified period of time after sending the second query message, the configuration device performs the step of sending the first query message; the second response message is that the second query message is received and has the first query message. Message returned by a second bridge-capable device.
在本申请实施例中,配置设备在查找支持升级第一桥接能力的设备时,可以优先查找已经具有第二桥接能力的设备,此时,配置设备可以发送第二查询消息,当某个桥接设备接收到该第二查询消息,且该桥接设备已具有该第二桥接能力时,可以向配置设备返回第二响应消息,以告知配置设备,该桥接设备具有第二桥接能力,可以为目标设备提供直接的桥接服务。而如果配置设备在发送第二查询消息之后的指定时长内没有收到第二响应消息,则认为配置设备周围不存在已具有第二桥接能力的设备,此时,配置设备可以发起查询可升级第一桥接能力的设备的流程,即后续步骤602至步骤606。In this embodiment of the present application, when searching for a device that supports upgrading the first bridging capability, the configuration device may first search for a device that already has the second bridging capability. At this time, the configuration device may send a second query message. When a certain bridging device When the second query message is received and the bridging device already has the second bridging capability, a second response message can be returned to the configuration device to inform the configuration device that the bridging device has the second bridging capability and can provide the target device with Direct bridge service. If the configuration device does not receive the second response message within a specified period of time after sending the second query message, it is considered that there is no device with the second bridging capability around the configuration device. At this time, the configuration device can initiate a query to upgrade the second response message. A process for a device with bridging capabilities, that is, subsequent steps 602 to 606.
此外,配置设备在发送第二查询消息之后,也可以通过其它方式确定未查询到第二设备;比如,配置设备在发送第二查询消息之后,接收到第二响应消息,且第二响应消息的信号强度小于指定的信号强度阈值,或者,检测到第二响应消息的发送方与配置设备之间的距离大于指定的距离阈值,此时,也可以确定未查询到第二设备。In addition, after sending the second query message, the configuration device can also determine that the second device has not been queried through other methods; for example, after sending the second query message, the configuration device receives the second response message, and the second response message The signal strength is less than the specified signal strength threshold, or the distance between the sender of the second response message and the configuration device is detected to be greater than the specified distance threshold. At this time, it may also be determined that the second device has not been queried.
再比如,上述第二查询消息可以是发送给某个管理设备(比如桥接服务管理设备)的单播消息,当配置设备接收到该管理设备返回的响应消息,且该响应消息指示配置设备周围不存在第二设备时,配置设备可以确定未查询到第二设备。For another example, the above-mentioned second query message may be a unicast message sent to a certain management device (such as a bridge service management device). When the configuration device receives a response message returned by the management device, and the response message indicates that the configuration device is not surrounded by When the second device exists, the configuration device may determine that the second device is not queried.
步骤602,配置设备根据目标设备支持的物联网协议的标识信息,初始化桥接树的根节点。Step 602: The configuration device initializes the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
其中,在本申请实施例中,桥接树中每个节点可以对应有一个目标协议,在初始时刻,桥接树的根节点的目标协议为目标设备支持的物联网协议。可选的,在根据目标设备支持的物联网协议的标识信息,初始化桥接树的根节点时,配置设备可以将目标设备支持的物联网协议的标识信息写入根节点的节点属性。In this embodiment of the present application, each node in the bridge tree may correspond to a target protocol. At the initial moment, the target protocol of the root node of the bridge tree is an Internet of Things protocol supported by the target device. Optionally, when initializing the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device, the configuration device may write the identification information of the Internet of Things protocol supported by the target device into the node attribute of the root node.
桥接树是以桥接树中已有设备节点的目标协议作为设备查询的源协议,并基于查询到的目标协议构建得到的结构树。也就是说,上述桥接树可以在配置设备查询支持升级一项或多项特定的桥接能力的桥接设备的过程中,根据查询结果逐层添加设备节点,并且,桥接树中的每个子节点的目标协议,与该子节点对应的父节点的目标协议之间的桥接能力,是该子节点对应的设备能够通过升级获得的桥接能力。The bridge tree is a structural tree constructed based on the target protocol of the existing device node in the bridge tree as the source protocol for device query, and based on the queried target protocol. That is to say, in the process of configuring the device to query bridge devices that support upgrading one or more specific bridging capabilities, the above bridge tree can add device nodes layer by layer based on the query results, and the target of each sub-node in the bridge tree The bridging capability between the protocol and the target protocol of the parent node corresponding to the child node is the bridging capability that the device corresponding to the child node can obtain through upgrade.
在一种可能的实现方式中,配置设备还可以初始化桥接树的层数上限。比如,配置设备可以在桥接树的属性信息中写入该桥接树的层数上限N。In a possible implementation, the configuration device can also initialize the upper limit of the number of layers of the bridge tree. For example, the configuration device can write the upper limit N of the number of layers of the bridge tree in the attribute information of the bridge tree.
步骤603,通过广播方式发送第一查询消息,相应的,第一设备接收该第一查询消息。Step 603: Send the first query message in a broadcast manner, and accordingly, the first device receives the first query message.
其中,第一查询消息用于查询支持升级第一桥接能力的设备;第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力。The first query message is used to query devices that support upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols.
可选的,第一物联网协议与其它任一物联网协议之间的桥接能力,都可以被称为第一桥接能力。Optionally, the bridging capability between the first IoT protocol and any other IoT protocol can be called the first bridging capability.
在一种可能的实现方式中,配置设备可以获取桥接树中的第一设备节点的目标协议,以第一设备节点的目标协议作为设备查询的源协议,发送上述第一查询消息。此时,该第一物联网协议就是本次查询对应的源协议。In a possible implementation, the configuration device may obtain the target protocol of the first device node in the bridge tree, use the target protocol of the first device node as the source protocol of the device query, and send the above-mentioned first query message. At this time, the first IoT protocol is the source protocol corresponding to this query.
在一种可能的实现方式中,第一查询消息中包含第一物联网协议的标识信息。In a possible implementation, the first query message includes identification information of the first Internet of Things protocol.
在本申请实施例中,配置设备可以根据桥接树,通过广播方式发送第一查询消息。In this embodiment of the present application, the configuration device may send the first query message in a broadcast manner according to the bridge tree.
在一种可能的实现方式中,配置设备可以进行至少两轮的设备查询,在每一轮的设备查询中,配置设备以桥接树中最末层的设备节点的目标协议作为源协议(Source Protocol,对应上述第一桥接能力)来进行设备查询,也就是在发送的查询消息中携带源协议的标识信息,比如源协议的ID(Identity,标识)。In a possible implementation, the configuration device can perform at least two rounds of device query. In each round of device query, the configuration device uses the target protocol of the device node at the last layer in the bridge tree as the source protocol (Source Protocol). , corresponding to the above-mentioned first bridging capability) to perform device query, that is, the query message sent carries the identification information of the source protocol, such as the ID (Identity, identification) of the source protocol.
比如,在初始时刻,桥接树中最末层的设备节点为根节点,则发送的查询消息中携带根节点支持的物联网协议的标识信息,用来查询可以通过升级获得对根节点支持的物联网协议与其他物联网协议进行桥接的设备。For example, at the initial moment, the device node at the last layer in the bridge tree is the root node, and the query message sent carries the identification information of the IoT protocol supported by the root node, which is used to query the things that can obtain support for the root node through upgrades. Devices that bridge networking protocols with other IoT protocols.
再比如,在经过一轮或者多轮的查询之后,桥接树中包含了两层或者两层以上(根节点为第1层)的设备节点,此时,在本轮查询中,配置设备以桥接树的最末层各个子节点的目标协议为源协议进行查询消息的发送。其中,对于桥接树的最末层各个子节点的目标协议包含多种目标协议的情况,配置设备可以针对多种目标协议中的每种目标协议,分别发送一个查询消息(也就是每个查询消息中包含一种目标协议的标识信息),或者,在一个查询消息中携带多种目标协议的标识信息。For another example, after one or more rounds of query, the bridge tree contains two or more layers of device nodes (the root node is the first layer). At this time, in this round of query, configure the device to bridge The target protocol of each sub-node at the last level of the tree is the source protocol for sending query messages. Among them, for the situation where the target protocols of each sub-node at the last layer of the bridge tree include multiple target protocols, the configuration device can send a query message for each of the multiple target protocols (that is, each query message contains the identification information of one target protocol), or carries the identification information of multiple target protocols in one query message.
步骤604,第一设备在支持升级第一桥接能力的情况下,向配置设备发送第一响应消息;配置设备接收该第一响应消息。Step 604: If the first device supports upgrading the first bridging capability, the first device sends a first response message to the configuration device; the configuration device receives the first response message.
其中,第一响应消息用于指示第一设备支持升级该第一桥接能力,且第一设备支持升级的第一桥接能力是第一物联网协议与第二物联网协议之间的桥接能力。The first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is a bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
在一种可能的实现方式中,第一响应消息中包含第二物联网协议的标识信息。In a possible implementation, the first response message contains identification information of the second Internet of Things protocol.
在本申请实施例中,第一设备接收到配置信息广播的第一查询消息后,若自身可以通过升级获得第一物联网协议和第二物联网协议之间的桥接能力,则可以向配置信息返回第一响应消息,该第一响应消息除了表示第一设备具有上述第一桥接能力之外,还携带第二物联网协议的标识信息。In this embodiment of the present application, after the first device receives the first query message broadcasted by the configuration information, if it can obtain the bridging capability between the first IoT protocol and the second IoT protocol through upgrading, it can send the configuration information to the first device. A first response message is returned. In addition to indicating that the first device has the above-mentioned first bridging capability, the first response message also carries identification information of the second Internet of Things protocol.
步骤605,配置设备在桥接树中添加与第一设备对应的第二设备节点;第二设备节点的目标协议为第二物联网协议。Step 605: The configuration device adds a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol.
其中,第二设备节点在桥接树中的父节点的目标协议为第一物联网协议。并且,该第二设备节点成为桥接树中的最末层节点。Wherein, the target protocol of the parent node of the second device node in the bridge tree is the first Internet of Things protocol. And, the second device node becomes the last node in the bridge tree.
在本申请实施例中,配置设备接收到第一设备返回的第一响应消息之后,可以在桥接树中增加一个第二设备节点,且该第二设备节点作为桥接树中目标协议为第二物联网协议的设备节点的子节点加入桥接树。也就是说,在本轮设备查询之前,该第二设备节点的父节点为桥接树中的最末层节点,在本轮查询中新加入设备节点后,该第二设备节点的父节点成为桥接树中倒数第二层的设备节点,而第二设备节点成为桥接树中的最末层节点。In this embodiment of the present application, after receiving the first response message returned by the first device, the configuration device can add a second device node in the bridge tree, and the second device node serves as the second device with the target protocol in the bridge tree. The child nodes of the networking protocol's device node join the bridge tree. That is to say, before this round of device query, the parent node of the second device node is the last node in the bridge tree. After a new device node is added in this round of query, the parent node of the second device node becomes the bridge node. The device node at the penultimate level in the tree, and the second device node becomes the last level node in the bridge tree.
可选的,在上述第二物联网协议包含两种或者两种以上的物联网协议的情况下,配置设备可以在桥接树中添加两个或者两个以上的第二设备节点,该两个或者两个以上的第二设备节点对应同一个第一设备,且具有不同的目标连接协议。Optionally, in the case where the above second Internet of Things protocol includes two or more Internet of Things protocols, the configuration device can add two or more second device nodes in the bridge tree, the two or more second device nodes Two or more second device nodes correspond to the same first device and have different target connection protocols.
在一种可能的实现方式中,配置设备在各个候选目标协议中不存在指定物联网协议的情况下,在桥接树中添加与第二设备对应的第二设备节点;其中,各个候选目标协议是分别以最后一层设备节点中的各个设备节点的目标协议作为源协议查询桥接能力时得到的目标协议。In a possible implementation manner, when the specified IoT protocol does not exist in each candidate target protocol, the configuration device adds a second device node corresponding to the second device in the bridge tree; wherein each candidate target protocol is The target protocol obtained when querying the bridging capability is based on the target protocol of each device node in the last layer of device nodes as the source protocol.
在本申请实施例中,在每一轮查询过程中,配置设备以桥接树中当前最末层的各个设备节点的目标协议,分别作为查询桥接能力的源协议,进行桥接能力的查询,此时可能得到本轮查询过程中的多个查询结果,如果多个查询结果中的目标协议中不存在指定物联网协议,则说明还没有查询到需要的设备,此时, 配置设备可以根据多个查询结果在桥接树中分别添加对应的设备节点,然后再开始执行下一轮查询过程。可选的,如果多个查询结果中的目标协议中存在指定物联网协议,此时说明已经查询到想要的设备,则不需要再向桥接树添加节点设备。In the embodiment of this application, in each round of query process, the device is configured to use the target protocol of each device node at the current last layer in the bridge tree as the source protocol for querying the bridging capability. At this time, It is possible to obtain multiple query results in this round of query. If the specified IoT protocol does not exist in the target protocol in the multiple query results, it means that the required device has not been queried. At this time, the configuration device can be configured based on multiple queries. As a result, the corresponding device nodes are added in the bridge tree, and then the next round of query process is started. Optionally, if the specified IoT protocol exists among the target protocols in multiple query results, it means that the desired device has been queried, and there is no need to add node devices to the bridge tree.
在一种可能的实现方式中,配置设备在各个候选目标协议中不存在指定物联网协议,且桥接树的层数小于桥接树的层数上限的情况下,在桥接树中添加与第二设备对应的第二设备节点。In one possible implementation, when the specified IoT protocol does not exist in each candidate target protocol and the number of layers of the bridge tree is less than the upper limit of the number of layers of the bridge tree, the configuration device adds the second device to the bridge tree. The corresponding second device node.
在本申请实施例中的,在桥接树存在层数限制的情况下,若在一轮查询之后,各个候选目标协议中不存在指定物联网协议,而桥接树的层数还没有达到层数上限,则可以向桥接树添加节点设备;反之,如果各个候选目标协议中不存在指定物联网协议,而桥接树的层数已经达到了层数上限,则可以认为没有查询到合适的设备,可以结束查询过程,此时不需要再向桥接树添加节点设备。In the embodiment of this application, when there is a limit on the number of layers in the bridge tree, if after a round of query, there is no specified IoT protocol in each candidate target protocol, and the number of layers in the bridge tree has not reached the upper limit of the number of layers, , you can add node devices to the bridge tree; conversely, if the specified IoT protocol does not exist in each candidate target protocol, and the number of layers in the bridge tree has reached the upper limit, it can be considered that no suitable device has been queried, and it can be terminated During the query process, there is no need to add node devices to the bridge tree at this time.
步骤606,在第二物联网协议是指定物联网协议的情况下,配置设备根据第一节点路径建立目标设备与第一设备之间的间接的桥接连接。Step 606: If the second IoT protocol is a specified IoT protocol, the configuration device establishes an indirect bridge connection between the target device and the first device according to the first node path.
其中,第一节点路径是桥接树中从根节点到第一设备节点之间的路径。Wherein, the first node path is a path from the root node to the first device node in the bridge tree.
在本申请实施例中,桥接树可以用于将目标设备支持的物联网协议与指定物联网协议间接桥接。In this embodiment of the present application, the bridging tree can be used to indirectly bridge the IoT protocol supported by the target device with the specified IoT protocol.
其中,当上述第一物联网协议是指定物联网协议时,表示存在通过升级,得到将目标备支持的物联网协议与指定物联网协议之间的间接桥接的路径,此时,配置设备可以根据桥接树中从根节点到第一设备节点之间的路径,控制该路径上除了目标设备之外的其他设备以及第二设备进行升级,并在升级完成后按照路径顺序建立桥接连接,以实现从目标设备支持的物联网协议到指定物联网协议之间的间接桥接。Among them, when the above-mentioned first IoT protocol is a designated IoT protocol, it means that there is an indirect bridging path between the IoT protocol supported by the target device and the designated IoT protocol through upgrade. At this time, the configuration device can be configured according to The path from the root node to the first device node in the bridge tree controls the upgrade of other devices on the path except the target device and the second device, and establishes bridge connections in accordance with the path sequence after the upgrade is completed to achieve from An indirect bridge between the IoT protocols supported by the target device and the specified IoT protocol.
比如,假设目标设备支持的物联网协议为物联网协议1,指定物联网协议为物联网协议3,在上述第一节点路径中,从根节点开始到第一设备节点结束,一共包含3个设备节点,即根节点、中间节点1以及第一设备节点,其中,中间节点1对应的设备可以通过升级得到物联网协议1与物联网协议2之间的桥接能力,第一设备节点可以通过升级得到物联网协议2与物联网协议3(对应上述第一物联网协议)之间的桥接能力,此时,配置设备可以控制中间节点1对应的设备升级得到物联网协议1与物联网协议2之间的桥接能力,控制第一设备升级得到物联网协议2与物联网协议3之间的桥接能力,此外,还控制第二设备升级得到物联网协议3与物联网协议4(对应上述第二物联网协议)之间的桥接能力;之后,配置设备控制中间节点1对应的设备与目标设备之间建立连接,控制第一设备节点对应的设备与中间节点1对应的设备之间建立连接,并控制第一设备节点对应的设备与第一设备之间建立连接,以实现目标设备与第一设备之间的间接的桥接。For example, assume that the IoT protocol supported by the target device is IoT protocol 1, and the specified IoT protocol is IoT protocol 3. In the above first node path, starting from the root node and ending with the first device node, a total of 3 devices are included. The nodes are the root node, the intermediate node 1 and the first device node. The device corresponding to the intermediate node 1 can obtain the bridging capability between the IoT protocol 1 and the IoT protocol 2 through upgrading. The first device node can obtain the bridging capability between the IoT protocol 1 and the IoT protocol 2 through upgrading. The bridging capability between IoT protocol 2 and IoT protocol 3 (corresponding to the above-mentioned first IoT protocol). At this time, the configuration device can control the device upgrade corresponding to the intermediate node 1 to obtain the connection between IoT protocol 1 and IoT protocol 2. The bridging capability controls the upgrade of the first device to obtain the bridging capability between IoT protocol 2 and IoT protocol 3. In addition, it also controls the upgrade of the second device to obtain IoT protocol 3 and IoT protocol 4 (corresponding to the above-mentioned second IoT protocol). protocols); after that, the configuration device controls the establishment of a connection between the device corresponding to the intermediate node 1 and the target device, controls the establishment of a connection between the device corresponding to the first device node and the device corresponding to the intermediate node 1, and controls the establishment of a connection between the device corresponding to the first device node and the device corresponding to the intermediate node 1, and controls the establishment of a connection between the device corresponding to the first device node and the device corresponding to the intermediate node 1. A connection is established between a device corresponding to a device node and the first device to realize an indirect bridge connection between the target device and the first device.
在一种可能的实现方式中,上述根据第一节点路径建立目标设备与第一设备之间的间接的桥接连接的过程可以包括:In a possible implementation, the above process of establishing an indirect bridge connection between the target device and the first device according to the first node path may include:
向第二设备发送升级请求,升级请求用于指示第二设备升级获得第三物联网协议与第四物联网协议之间的桥接能力;其中,第二设备是桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备或者,第二设备是上述的第一设备;第三物联网协议是第二设备对应在桥接树中的父节点的目标协议;第四物联网协议是第二设备对应在桥接树中的设备节点的目标协议;Send an upgrade request to the second device, the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol; wherein the second device is on the first node path in the bridge tree , the device corresponding to any device node except the root node or the second device is the above-mentioned first device; the third Internet of Things protocol is the target protocol of the second device corresponding to the parent node in the bridge tree; the fourth thing The networking protocol is the target protocol of the second device corresponding to the device node in the bridge tree;
向第二设备发送连接请求;连接请求用于指示第二设备与第三设备之间建立连接;其中,在第二设备是桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备的情况下,第三设备对应在桥接树中的设备节点,是第二设备对应在桥接树中的父节点;在第二设备是第一设备的情况下,第三设备是第一设备节点对应的设备。Send a connection request to the second device; the connection request is used to instruct the establishment of a connection between the second device and the third device; where the second device is any node other than the root node on the path of the first node in the bridge tree. In the case of the device corresponding to the device node, the third device corresponds to the device node in the bridge tree and is the parent node of the second device in the bridge tree; in the case where the second device is the first device, the third device is The device corresponding to the first device node.
在一种可能的实现方式中,上述升级请求中包含第四物联网协议的标识信息,以便第二设备根据第四物联网协议的标识信息进行升级。In a possible implementation manner, the above upgrade request includes identification information of the fourth Internet of Things protocol, so that the second device can be upgraded according to the identification information of the fourth Internet of Things protocol.
在本申请实施例中,配置设备可以通过两个独立请求(即上述升级请求和连接请求),控制第一节点路径上各个节点对应的设备进行升级和连接。In this embodiment of the present application, the configuration device can control the device corresponding to each node on the first node path to upgrade and connect through two independent requests (ie, the above-mentioned upgrade request and the connection request).
或者,在另一种可能的实现方式中,配置设备也可以通过单个请求触发第二设备根据第四物联网协议的标识信息进行升级,并在升级完成后与第三设备之间建立连接。Or, in another possible implementation, the configuration device can also trigger the second device to upgrade according to the identification information of the fourth Internet of Things protocol through a single request, and establish a connection with the third device after the upgrade is completed.
可选的,配置设备可以按照从根节点到第一设备节点的顺序,逐次控制第一节点路径上除了根节点之外的各个设备进行升级以及与父节点对应的设备之间建立连接。比如,还是以目标设备支持的物联网协议为物联网协议1,指定物联网协议为物联网协议4,在上述第一节点路径中,从根节点开始到第一设备节点结束,一共包含3个设备节点为例,配置设备可以首先通过升级请求和连接请求控制中间节点1对应的设备升级得到物联网协议1与物联网协议2之间的桥接能力,并控制目标设备与中间节点1对应的设备之间建立连接,然后,配置设备再控制第一设备节点对应的设备升级得到物联网协议2与物联网协议3之间的桥接能力,以及控制第一设备节点对应的设备与中间节点1对应的设备之间建立连接,最后,配置设备再控制第一设备升级得到物联网协议3与物联网协议4之间的桥接能力,以及控制第一设备与第一设备节点对应的设备之间建立连接。Optionally, the configuration device may sequentially control each device on the path of the first node except the root node to upgrade and establish a connection with the device corresponding to the parent node in order from the root node to the first device node. For example, the IoT protocol supported by the target device is still IoT protocol 1, and the specified IoT protocol is IoT protocol 4. In the above first node path, starting from the root node and ending with the first device node, there are a total of 3 Taking the device node as an example, the configured device can first control the device corresponding to the intermediate node 1 through an upgrade request and a connection request to upgrade to obtain the bridging capability between the IoT protocol 1 and the IoT protocol 2, and control the target device and the device corresponding to the intermediate node 1. Establish a connection between them, and then configure the device to control the device corresponding to the first device node to upgrade to obtain the bridging capability between IoT protocol 2 and IoT protocol 3, and control the device corresponding to the first device node and the intermediate node 1 to A connection is established between the devices. Finally, the configuration device controls the first device to upgrade to obtain the bridging capability between the Internet of Things protocol 3 and the Internet of Things protocol 4, and controls the establishment of a connection between the first device and the device corresponding to the first device node.
其中,本申请实施例上述方案中,配置设备在全部的候选目标协议中不存在指定物联网协议时,在桥接树中添加对应的设备节点并发起下一轮查询。在另一种可能的实现方案中,配置设备在每一轮查询过程中,也可以直接根据查询结果在桥接树中添加对应的设备节点,并在本轮查询以及设备节点添加结束后,再判断是否进行下一轮查询。比如,在一种可能的实现方式中,配置设备可以在桥接树中的第m层设备节点的目标协议中不包含指定物联网协议的情况下,发送第一查询消息;Among them, in the above solution of the embodiment of this application, when the specified IoT protocol does not exist among all candidate target protocols, the configuration device adds the corresponding device node in the bridge tree and initiates the next round of query. In another possible implementation solution, during each round of query, the configuration device can also directly add the corresponding device node in the bridge tree based on the query results, and then make a judgment after the current round of query and the addition of the device node are completed. Whether to conduct the next round of inquiries. For example, in one possible implementation, the configuration device can send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain the specified IoT protocol;
其中,第m层设备节点是第二设备节点的父节点所在的层级中的各个设备节点。其中,m为正整数。Wherein, the m-th layer device node is each device node in the level where the parent node of the second device node is located. Among them, m is a positive integer.
在本申请实施例中,如果配置设备在桥接树中添加了第m层设备节点,且第m层设备节点分别对应的目标协议中不包含指定物联网协议时,可以认为当前尚未寻找到通过升级得到目标设备支持的物联网协议到指定物联网协议之间的间接桥接的路径,此时,配置设备可以将第m层设备节点分别对应的目标协议作为源协议,继续寻找能够将源协议桥接到其他物联网协议的设备。In the embodiment of this application, if the configuration device adds an m-th layer device node in the bridge tree, and the target protocol corresponding to the m-th layer device node does not contain the specified IoT protocol, it can be considered that the upgrade has not yet been found. Obtain the indirect bridging path between the IoT protocol supported by the target device and the specified IoT protocol. At this time, the configuration device can use the target protocol corresponding to the m-th layer device node as the source protocol and continue to search for a way to bridge the source protocol to Devices with other IoT protocols.
在一种可能的实现方式中,在桥接树中的第m层设备节点的目标协议中不包含指定物联网协议,且2≤m<N的情况下,发送第一查询消息;In a possible implementation, when the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, and 2≤m<N, the first query message is sent;
其中,m、N为整数,N为桥接树的层数上限。Among them, m and N are integers, and N is the upper limit of the number of layers of the bridge tree.
其中,当桥接树配置有层数上限的情况下,配置设备在桥接树中添加了第m层设备节点,且第m层设备节点分别对应的目标协议中不包含指定物联网协议时,若当前桥接树的层数还没有达到上述层数上限,则配置设备可以将第m层设备节点分别对应的目标协议作为源协议,继续寻找能够将源协议桥接到其他物联网协议的设备。Among them, when the bridge tree is configured with an upper limit for the number of layers, the configuration device adds an m-th layer device node to the bridge tree, and the target protocol corresponding to the m-th layer device node does not contain the specified IoT protocol, if the current If the number of layers in the bridge tree has not reached the upper limit of the above-mentioned layers, the configuration device can use the target protocol corresponding to the m-th layer device node as the source protocol and continue to look for devices that can bridge the source protocol to other IoT protocols.
请参考图7,其示出了本申请实施例涉及的设备发现及桥接流程示意图。如图7所示,该流程可以包括如下步骤:Please refer to Figure 7, which shows a schematic diagram of the device discovery and bridging process involved in the embodiment of the present application. As shown in Figure 7, the process may include the following steps:
S71,配置设备中的APP通过扫码等带外方式获取被桥接设备(Bridged Device,对应上述目标设备)的基本信息(Bridged_Device_Information)。S71. The APP in the configuration device obtains the basic information (Bridged_Device_Information) of the bridged device (Bridged Device, corresponding to the above target device) through out-of-band methods such as scanning QR codes.
上述基本信息可以包括:Protocol_Type_ID、Protocol_Version、Vendor_ID、Device_Type_ID、Data_Modol_Version等信息,这些信息可以如下述表1所示。The above basic information may include: Protocol_Type_ID, Protocol_Version, Vendor_ID, Device_Type_ID, Data_Modol_Version and other information. This information may be shown in Table 1 below.
表1Table 1
Protocol_VersionProtocol_Version 协议版本Protocol version
Protocol_Type_IDProtocol_Type_ID 支持通信协议类型Supported communication protocol types
Device_Type_IDDevice_Type_ID 设备类型Equipment type
Data_Model_VersionData_Model_Version 设备模型版本Device model version
Vendor_IDVendor_ID 厂商代码Manufacturer code
S72,APP广播查询是否存在能够提供对Bridged Device提供桥接服务的设备,如果没有;则广播查询是否有可升级对应的桥接服务的Bridge设备。S72. The APP broadcasts to query whether there is a device that can provide bridging services to the Bridged Device. If not, it broadcasts to query whether there is a Bridge device that can upgrade the corresponding bridging service.
S73,如果仍然没有可升级对应Bridged Device的桥接服务的设备,则启动间接桥接流程。S73, if there is still no device that can upgrade the bridging service corresponding to the Bridged Device, the indirect bridging process is started.
其中,该间接桥接流程就是在没有直接将Bridged Device(C)桥接到APP所在生态系统(A)的情况下(没有C->A路径),通过查找一个或多个中间桥接设备(B)完成(C->B->A)桥接流程的方案。Among them, the indirect bridging process is completed by finding one or more intermediate bridge devices (B) without directly bridging the Bridged Device (C) to the ecosystem (A) where the APP is located (there is no C->A path). (C->B->A) Bridge process solution.
其中,该步骤可以包括初始化间接桥接参数:N(间接桥接的层级),初始化bridge tree(bridged Device的桥接信息(1 st_Bridged_Information):厂家、协议类型、协议版本、数据模型版本、设备类型)根节点。 Among them, this step may include initializing the indirect bridging parameters: N (level of indirect bridging), initializing the bridge tree (bridging information of the bridged Device ( 1st _Bridged_Information): manufacturer, protocol type, protocol version, data model version, device type) root node.
S74,循环执行以下步骤:设定Source(源协议)=Bridged Information,查询能够通过升级得到将源协议转化为任何其他物联网协议的设备,也就是查找能将Bridged Device桥接为第三方的协议信息(2 nd_Bridged_Information)。查找采用广播方式发送,其中消息类型为:Discovery intermediate Bridge;消息参数为:Bridged Information=1 st_Bridged_Information。 S74, perform the following steps in a loop: set Source (source protocol) = Bridged Information, and query the device that can convert the source protocol into any other Internet of Things protocol through upgrading, that is, find the protocol information that can bridge the Bridged Device to a third party. ( 2nd_Bridged_Information ). The search is sent in broadcast mode, where the message type is: Discovery intermediate Bridge; the message parameters are: Bridged Information=1 st _Bridged_Information.
S75,所有可能成为intermediate Bridge的设备,收到S73步骤广播消息之后,单播向APP发送应答消息,应答消息中包含如下述表2所示的信息:S75, all devices that may become intermediate Bridge, after receiving the broadcast message in step S73, unicast a response message to the APP. The response message contains the information shown in Table 2 below:
表2Table 2
Figure PCTCN2022104973-appb-000001
Figure PCTCN2022104973-appb-000001
其中,UpgradeID是对应该Bridge功能的升级包标识,用来指示该设备申请升级包。在本次广播中可能形成M个单播应答,APP可以针对M个单播应答生成M1个有效记录(有可能同一品牌的相同产品可以提供相同的功能),并插入到Bridge树中,作为上一级节点的子节点。也就是基于本次发现的M1个协 议的设备ID和协议ID,生成当前源协议的节点的子节点,并加入到桥接树中。Among them, UpgradeID is the upgrade package identifier corresponding to the Bridge function, which is used to instruct the device to apply for the upgrade package. M unicast responses may be formed in this broadcast, and the APP can generate M1 valid records for the M unicast responses (it is possible that the same product of the same brand can provide the same function), and insert it into the Bridge tree as the upper Child nodes of first-level nodes. That is, based on the device IDs and protocol IDs of the M1 protocols discovered this time, the child nodes of the node of the current source protocol are generated and added to the bridge tree.
判断当前的子节点中是否有对应APP使用的Protocol_Type_ID(协议类型标识),如果有则退出循环,从根节点到当前的APP使用的Protocol_Type_ID形成一个桥接链路。如果无则返回S73的步骤,将source分别设定为本次插入的M个其他类型的Protocol_Type_ID,继续按照S73和S74的步骤进行处理。Determine whether the current child node has the Protocol_Type_ID (protocol type identifier) used by the corresponding APP. If so, exit the loop and form a bridge link from the root node to the Protocol_Type_ID used by the current APP. If not, return to the step of S73, set the source to the M other types of Protocol_Type_ID inserted this time, and continue to process according to the steps of S73 and S74.
其中,循环处理的逻辑可以为:在每一次大循环中,将上次循环中找到的所有的次一级节点作为输入,去查找对应其的intermediate Bridge。Among them, the logic of loop processing can be: in each large loop, use all the sub-level nodes found in the previous loop as input to find the corresponding intermediate Bridge.
请参考图8,其示出了本申请实施例涉及的桥接路径示意图。假设N=2,则可以找到一条如图8所示的间接桥接的路径。Please refer to FIG. 8 , which shows a schematic diagram of the bridge path involved in the embodiment of the present application. Assuming N=2, an indirect bridging path as shown in Figure 8 can be found.
S76,APP获取上述信息后向Bridge2请求完成对Bridged Device的桥接服务,在该请求中需要携带Bridged的以下些信息:Bridged Device ID,Bridged_Device_Information。Bridge2需升级的服务:Upgrade ID等,这步骤也可以分为两条请求,先请求Bridge2升级桥接服务(Upgrade ID),在请求其对Bridged Device进行桥接。S76. After obtaining the above information, the APP requests Bridge2 to complete the bridging service for Bridged Device. The request needs to carry the following information of Bridged: Bridged Device ID, Bridged_Device_Information. Services that Bridge2 needs to upgrade: Upgrade ID, etc. This step can also be divided into two requests. First, request Bridge2 to upgrade the bridging service (Upgrade ID), and then request it to bridge the Bridged Device.
S77,Bridge2收到上述请求之后,申请升级其对应的软件包(比如可以通过Upgrade ID申请),升级之后与Bridge Device1建立连接,连接的协议使用Source Protocol。连接建立之后Bridge2针对Bridged Device生成Shadow Device M,也就是完成桥接。S77, after Bridge2 receives the above request, it applies to upgrade its corresponding software package (for example, it can be applied through Upgrade ID). After the upgrade, it establishes a connection with Bridge Device1, and the connection protocol uses Source Protocol. After the connection is established, Bridge2 generates Shadow Device M for Bridged Device, which is to complete the bridge connection.
S78,Bridge2完成上述转换之后针对S76步骤的请求生成应答消息,该应答消息可以包括:Shadow Device M的Device ID,Intermediate_Protocol_ID。S78. After Bridge2 completes the above conversion, it generates a response message in response to the request in step S76. The response message may include: Device ID of Shadow Device M, Intermediate_Protocol_ID.
S79,APP向Bridge1请求升级桥接功能(其对应的Upgrade ID)并完成对Shadow Device M的桥接。同样这个请求消息可以分为两个请求消息完成。请求参数类型与S76步骤相同。S79, APP requests Bridge1 to upgrade the bridging function (its corresponding Upgrade ID) and completes the bridging of Shadow Device M. Similarly, this request message can be divided into two request messages to complete. The request parameter type is the same as the S76 step.
S710,Bridge 1收到上述消息之后针对请求的升级桥接服务进行升级。如果其本身已经存在对应的桥接服务,也可以不执行升级服务。Bridge 1完成对Shadow Device M的桥接工作生成对应的Shadow Device F。与S77步骤类似,Bridge1与Bridge2的连接协议使用Intermediate_Protocol。S710, Bridge 1 upgrades the requested upgrade bridge service after receiving the above message. If the corresponding bridging service already exists, the upgrade service does not need to be performed. Bridge 1 completes the bridging work of Shadow Device M and generates the corresponding Shadow Device F. Similar to step S77, the connection protocol between Bridge1 and Bridge2 uses Intermediate_Protocol.
S711,Bridge1转换完成之后对APP进行应答。如此便完成了间接桥接。S711, Bridge1 responds to APP after completing the conversion. This completes the indirect bridging.
之后,APP可以使用指定物联网协议传输命令给Bridge1,以控制Shadow Device F;Bridge1使用中间物联网协议传输命令给Bridge2,以控制Shadow Device M;Bridge2使用被桥接设备支持的物联网协议将命令传送给被桥接设备。Afterwards, the APP can use the specified IoT protocol to transmit commands to Bridge1 to control Shadow Device F; Bridge1 uses the intermediate IoT protocol to transmit commands to Bridge2 to control Shadow Device M; Bridge2 uses the IoT protocol supported by the bridged device to transmit the command to the bridged device.
综上所述,本申请实施例所示的方案,配置设备通过发送第一查询消息,来查询支持升级第一物联网协议与其它物联网协议之间的第一桥接能力的第一设备,以及,查询该第一设备支持升级的第一桥接能力是第一物联网协议与哪个物联网协议之间的桥接能力,使得配置设备能够发现当前未具有某一项或多项桥接能力,但是可以通过升级获得该一项或多项桥接能力的桥接设备,使得桥接功能的应用不局限于预先设置有特定的桥接能力的桥接设备,扩展了桥接的应用场景。To sum up, according to the solution shown in the embodiment of this application, the configuration device sends a first query message to query the first device that supports the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols, and , querying the first bridging capability that the first device supports for upgrading is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it does not currently have one or more bridging capabilities, but can pass Upgrading the bridging device that obtains one or more bridging capabilities makes the application of the bridging function not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
请参考图9,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由桥接服务管理设备执行,桥接服务管理设备中维护有物联网中的各个设备的能力信息;能力信息包括支持升级的桥接能力;比如,该桥接服务管理设备可以是图1所示的网络架构中的桥接服务管理设备140;该方法可以包括如下几个步骤:Please refer to Figure 9, which shows a flow chart of a device discovery method provided by an embodiment of the present application. This method can be executed by a bridging service management device. The bridging service management device maintains capability information of each device in the Internet of Things; The capability information includes bridging capabilities that support upgrades; for example, the bridging service management device may be the bridging service management device 140 in the network architecture shown in Figure 1; the method may include the following steps:
步骤901,接收配置设备发送的第一查询消息,第一查询消息用于查询支持升级第一桥接能力的设备;第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力。Step 901: Receive a first query message sent by the configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first IoT protocol and other IoT protocols.
步骤902,在各个设备中的第一设备支持升级该第一桥接能力的情况下,向配置设备发送第一响应消息;第一响应消息用于指示第一设备支持升级该第一桥接能力,且第一设备支持升级的第一桥接能力是第一物联网协议与第二物联网协议之间的桥接能力。Step 902: If the first device among the devices supports upgrading the first bridging capability, send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and The first bridging capability supported by the first device for upgrade is the bridging capability between the first IoT protocol and the second IoT protocol.
综上所述,本申请实施例所示的方案,配置设备通过发送第一查询消息,来向桥接服务管理设备查询支持升级第一物联网协议与其它物联网协议之间的第一桥接能力的第一设备,以及,查询该第一设备支持升级的第一桥接能力是第一物联网协议与哪个物联网协议之间的桥接能力,使得配置设备能够发现当前未具有某一项或多项桥接能力,但是可以通过升级获得该一项或多项桥接能力的桥接设备,使得桥接功能的应用不局限于预先设置有特定的桥接能力的桥接设备,扩展了桥接的应用场景。To sum up, according to the solution shown in the embodiment of this application, the configuration device queries the bridging service management device for supporting the upgrade of the first bridging capability between the first IoT protocol and other IoT protocols by sending a first query message. The first device, and querying the first bridging capability of the first device that supports the upgrade is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that one or more bridging options are not currently available. capability, but the bridging device can obtain one or more bridging capabilities through upgrading, so that the application of the bridging function is not limited to bridging devices pre-set with specific bridging capabilities, and expands the application scenarios of bridging.
通过本申请上述图3和图9所示的方案,配置设备可以向桥接服务管理设备间接查询可以通过升级获得该一项或多项桥接能力的第一设备。Through the solutions shown in Figures 3 and 9 of the present application, the configuration device can indirectly query the bridging service management device for the first device that can obtain the one or more bridging capabilities through upgrade.
请参考图10,其示出了本申请一个实施例提供的可升级的桥接设备的发现流程框架图。在一种可能的应用场景中,如图10所示,物联网中的第一设备1002可以桥接服务管理设备1003进行注册,将其注册为具有升级功能的设备,将其支持升级的第一桥接能力的信息发送给桥接服务管理设备1003;配置设备 1001需要查询周围具有升级功能(也就是可以通过升级获得一项或多项特定的桥接能力)的设备时,可以向桥接服务管理设备1003发送第一查询消息;桥接服务管理设备1003接收到该第一查询消息之后,将第一设备1002,以及第二物联网协议的标识指示给配置设备1001,以通知配置设备1001,该第一设备1002支持升级第一桥接能力,且支持升级得到第一物联网协议与第二物联网协议之间的第一桥接能力。Please refer to Figure 10, which shows a framework diagram of the discovery process of an upgradeable bridge device provided by an embodiment of the present application. In a possible application scenario, as shown in Figure 10, the first device 1002 in the Internet of Things can register with the bridge service management device 1003, register it as a device with an upgrade function, and make it the first bridge that supports upgrades. The capability information is sent to the bridging service management device 1003; when the configuration device 1001 needs to query the surrounding devices with upgrade functions (that is, one or more specific bridging capabilities can be obtained through upgrades), the configuration device 1001 can send the first step to the bridging service management device 1003. A query message; after receiving the first query message, the bridge service management device 1003 indicates the first device 1002 and the identification of the second Internet of Things protocol to the configuration device 1001 to notify the configuration device 1001 that the first device 1002 supports Upgrade the first bridging capability, and support upgrading to obtain the first bridging capability between the first IoT protocol and the second IoT protocol.
请参考图11,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由配置设备和多个设备交互执行,该多个设备中包含目标设备、第一设备、第二设备、第三设备以及桥接服务管理设备等等,比如,该配置设备可以是图1所示的网络架构中的配置设备120,多个设备可以是图1所示的网络架构中的桥接设备130和/或物联网设备110中的多个设备;该方法可以包括如下几个步骤:Please refer to Figure 11, which shows a flow chart of a device discovery method provided by an embodiment of the present application. This method can be executed interactively by a configuration device and multiple devices. The multiple devices include a target device, a first device, a third device, and a target device. The second device, the third device, the bridging service management device, etc., for example, the configuration device can be the configuration device 120 in the network architecture shown in Figure 1, and the multiple devices can be bridging devices in the network architecture shown in Figure 1 130 and/or multiple devices in the Internet of Things device 110; the method may include the following steps:
步骤1101,配置设备获取目标设备的设备信息,该目标设备的设备信息中包含目标设备支持的物联网协议的标识信息。Step 1101: The configuration device obtains device information of the target device. The device information of the target device includes identification information of the Internet of Things protocol supported by the target device.
步骤1102,配置设备根据目标设备支持的物联网协议的标识信息,初始化桥接树的根节点。Step 1102: The configuration device initializes the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
在一种可能的实现方式中,配置设备还可以初始化桥接树的层数上限。比如,配置设备可以在桥接树的属性信息中写入该桥接树的层数上限N。In a possible implementation, the configuration device can also initialize the upper limit of the number of layers of the bridge tree. For example, the configuration device can write the upper limit N of the number of layers of the bridge tree in the attribute information of the bridge tree.
步骤1103,向桥接服务管理设备发送第一查询消息,相应的,桥接服务管理设备接收该第一查询消息。Step 1103: Send a first query message to the bridging service management device, and accordingly, the bridging service management device receives the first query message.
其中,第一查询消息用于查询支持升级第一桥接能力的设备;第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力。The first query message is used to query devices that support upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols.
在一种可能的实现方式中,第一查询消息中包含第一物联网协议的标识信息。In a possible implementation, the first query message includes identification information of the first Internet of Things protocol.
在本申请实施例中,配置设备可以根据桥接树,向桥接服务管理设备发送第一查询消息。In this embodiment of the present application, the configuration device may send a first query message to the bridge service management device according to the bridge tree.
在一种可能的实现方式中,配置设备可以获取桥接树中的第一设备节点的目标协议;桥接树的根节点为目标设备对应的设备节点;第一设备节点是桥接树中的最后一层设备节点中的任意一个;桥接树是以已有设备节点的目标协议作为查询桥接能力的源协议,并基于查询到的目标协议构建得到的结构树;配置设备以第一设备节点的目标协议作为查询第一桥接能力的源协议,发送第一查询消息。In a possible implementation, the configuration device can obtain the target protocol of the first device node in the bridge tree; the root node of the bridge tree is the device node corresponding to the target device; the first device node is the last layer in the bridge tree Any one of the device nodes; the bridge tree is a structure tree constructed based on the target protocol of the existing device node as the source protocol for querying the bridging capability, and based on the queried target protocol; configure the device to use the target protocol of the first device node as the source protocol. Query the source protocol of the first bridging capability and send the first query message.
其中,该步骤1101至步骤1103与上述图6所示实施例中的步骤601至步骤603类似,不同之处在于发送的第一查询消息的方式和对象不同,此处不再赘述。The steps 1101 to 1103 are similar to the steps 601 to 603 in the embodiment shown in FIG. 6 , except that the method and object of the first query message sent are different, which will not be described again here.
步骤1104,桥接服务管理设备在第一设备支持升级第一桥接能力的情况下,向配置设备发送第一响应消息;配置设备接收该第一响应消息。Step 1104: When the first device supports upgrading the first bridging capability, the bridging service management device sends a first response message to the configuration device; the configuration device receives the first response message.
其中,第一响应消息用于指示第一设备支持升级第一桥接能力,且第一设备支持升级的第一桥接能力是第一物联网协议与第二物联网协议之间的桥接能力。The first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
在一种可能的实现方式中,第一响应消息中包含第二物联网协议的标识信息。In a possible implementation, the first response message contains identification information of the second Internet of Things protocol.
在本申请实施例中,桥接服务管理设备接收到配置设备发送的第一查询消息后,若确定各个设备中的第一设备可以通过升级获得第一物联网协议和第二物联网协议之间的第一桥接能力,则可以向配置设备返回第一响应消息,该第一响应消息除了表示第一设备支持升级上述第一桥接能力之外,还携带第二物联网协议的标识信息。In this embodiment of the present application, after the bridge service management device receives the first query message sent by the configuration device, if it is determined that the first device among the devices can obtain the connection between the first Internet of Things protocol and the second Internet of Things protocol through upgrading, First bridging capability, a first response message may be returned to the configuration device. In addition to indicating that the first device supports upgrading the first bridging capability, the first response message also carries identification information of the second Internet of Things protocol.
步骤1105,配置设备在桥接树中添加与第一设备对应的第二设备节点;第二设备节点的目标协议为第二物联网协议。Step 1105: The configuration device adds a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol.
其中,第二设备节点在桥接树中的父节点的目标协议为第一物联网协议。此时,该第二设备节点成为桥接树中的最末层节点。Wherein, the target protocol of the parent node of the second device node in the bridge tree is the first Internet of Things protocol. At this time, the second device node becomes the last node in the bridge tree.
在一种可能的实现方式中,在各个候选目标协议中不存在指定物联网协议的情况下,配置设备在桥接树中添加与第二设备对应的第二设备节点;其中,各个候选目标协议是分别以最后一层设备节点中的各个设备节点的目标协议作为源协议查询桥接能力时得到的目标协议。In a possible implementation, when the specified IoT protocol does not exist in each candidate target protocol, the configuration device adds a second device node corresponding to the second device in the bridge tree; wherein each candidate target protocol is The target protocol obtained when querying the bridging capability is based on the target protocol of each device node in the last layer of device nodes as the source protocol.
在一种可能的实现方式中,在各个候选目标协议中不存在指定物联网协议,且桥接树的层数小于桥接树的层数上限的情况下,在桥接树中添加与第二设备对应的第二设备节点。In a possible implementation, when the specified IoT protocol does not exist in each candidate target protocol and the number of layers of the bridge tree is less than the upper limit of the number of layers of the bridge tree, add the IP address corresponding to the second device in the bridge tree. Second device node.
步骤1106,在第二物联网协议是指定物联网协议的情况下,配置设备根据第一节点路径建立目标设备与第一设备之间的间接的桥接连接。Step 1106: When the second IoT protocol is a specified IoT protocol, the configuration device establishes an indirect bridge connection between the target device and the first device according to the first node path.
其中,第一节点路径是桥接树中从根节点到第一设备节点之间的路径。Wherein, the first node path is a path from the root node to the first device node in the bridge tree.
在一种可能的实现方式中,上述根据第一节点路径建立目标设备与第一设备之间的间接的桥接连接的过程可以包括:In a possible implementation, the above process of establishing an indirect bridge connection between the target device and the first device according to the first node path may include:
向第二设备发送升级请求,升级请求用于指示第二设备升级获得第三物联网协议与第四物联网协议之间的桥接能力;其中,第二设备是桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备,或者,第二设备是第一设备;第三物联网协议是第二设备对应在桥接树中的父节点的目标协议;第四物联网协议是第二设备对应在桥接树中的设备节点的目标协议;Send an upgrade request to the second device, the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol; wherein the second device is on the first node path in the bridge tree , the device corresponding to any device node except the root node, or the second device is the first device; the third Internet of Things protocol is the target protocol of the second device corresponding to the parent node in the bridge tree; the fourth Internet of Things The protocol is the target protocol of the second device corresponding to the device node in the bridge tree;
向第二设备发送连接请求;连接请求用于指示第二设备与第三设备之间建立连接;其中,在第二设备是桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备的情况下,第三设备对应在桥接树中的设备节点,是第二设备对应在桥接树中的父节点;在第二设备是第一设备的情况下,第三设备是第一设备节点对应的设备。Send a connection request to the second device; the connection request is used to instruct the establishment of a connection between the second device and the third device; where the second device is any node other than the root node on the path of the first node in the bridge tree. In the case of the device corresponding to the device node, the third device corresponds to the device node in the bridge tree and is the parent node of the second device in the bridge tree; in the case where the second device is the first device, the third device is The device corresponding to the first device node.
在一种可能的实现方式中,上述升级请求中包含第四物联网协议的标识信息,以便第二设备根据第四物联网协议的标识信息进行升级。In a possible implementation manner, the above upgrade request includes identification information of the fourth Internet of Things protocol, so that the second device can be upgraded according to the identification information of the fourth Internet of Things protocol.
在一种可能的实现方式中,配置设备可以在桥接树中的第m层设备节点的目标协议中不包含指定物联网协议的情况下,发送第一查询消息;In a possible implementation, the configuration device may send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain the specified IoT protocol;
其中,第m层设备节点是第二设备节点的父节点所在的层级中的各个设备节点。Wherein, the m-th layer device node is each device node in the level where the parent node of the second device node is located.
在一种可能的实现方式中,在桥接树中的第m层设备节点的目标协议中不包含指定物联网协议,且2≤m<N的情况下,发送第一查询消息;其中,m、N为整数,N为桥接树的层数上限。In a possible implementation, when the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, and 2≤m<N, the first query message is sent; where, m, N is an integer, and N is the upper limit of the number of layers of the bridge tree.
其中,当桥接树配置有层数上限的情况下,配置设备在桥接树中添加了第m层设备节点,且第m层设备节点分别对应的目标协议中不包含指定物联网协议时,若当前桥接树的层数还没有达到上述层数上限,则配置设备可以将第m层设备节点分别对应的目标协议作为源协议,继续寻找能够将源协议桥接到其他物联网协议的设备。Among them, when the bridge tree is configured with an upper limit for the number of layers, the configuration device adds an m-th layer device node to the bridge tree, and the target protocol corresponding to the m-th layer device node does not contain the specified IoT protocol, if the current If the number of layers in the bridge tree has not reached the upper limit of the above-mentioned layers, the configuration device can use the target protocol corresponding to the m-th layer device node as the source protocol and continue to look for devices that can bridge the source protocol to other IoT protocols.
请参考图12,其示出了本申请实施例涉及的设备发现及桥接流程示意图。如图12所示,该流程可以包括如下步骤:Please refer to Figure 12, which shows a schematic diagram of the device discovery and bridging process involved in the embodiment of the present application. As shown in Figure 12, the process may include the following steps:
S1201,配置设备中的APP通过扫码等带外方式获取被桥接设备(Bridged Device,对应上述目标设备)的基本信息(Bridged_Device_Information)。S1201. The APP in the configuration device obtains the basic information (Bridged_Device_Information) of the bridged device (Bridged Device, corresponding to the above target device) through out-of-band methods such as scanning QR codes.
上述基本信息可以包括:Protocol_Type_ID、Protocol_Version、Vendor_ID、Device_Type_ID、Data_Modol_Version等信息,这些信息可以如下述表1所示。The above basic information may include: Protocol_Type_ID, Protocol_Version, Vendor_ID, Device_Type_ID, Data_Modol_Version and other information. This information may be shown in Table 1 below.
S1202,APP广播发送是否存在能够提供对Bridged Device提供桥接服务的设备,如果没有;则广播发送查询是否又可升级桥接服务的Bridge设备。S1202, the APP broadcasts whether there is a device that can provide bridging services to the Bridged Device. If not, the APP broadcasts to query whether the Bridge device can upgrade the bridging service.
S1203,如果仍然没有可升级对应Bridged Device的桥接服务的设备,则启动间接桥接流程。S1203, if there is still no device that can upgrade the bridging service corresponding to the Bridged Device, start the indirect bridging process.
其中,该间接桥接流程就是在没有直接将Bridged Device(C)桥接到APP所在生态系统(A)的情况下(没有C->A路径),通过查找一个或多个中间桥接设备(B)完成(C->B->A)桥接流程的方案。Among them, the indirect bridging process is completed by finding one or more intermediate bridge devices (B) without directly bridging the Bridged Device (C) to the ecosystem (A) where the APP is located (there is no C->A path). (C->B->A) Bridge process solution.
其中,该步骤可以包括初始化间接桥接参数:N(间接桥接的层级),初始化bridge tree(bridged Device的桥接信息(1st_Bridged_Information):厂家、协议类型、协议版本、数据模型版本、设备类型)根节点。Among them, this step can include initializing the indirect bridge parameters: N (level of indirect bridge), initializing the root node of the bridge tree (bridged Device's bridge information (1st_Bridged_Information): manufacturer, protocol type, protocol version, data model version, device type).
S1204,循环执行一下步骤:设定Source=Bridged Information也就是查找能将Bridged Device桥接为第三方的协议信息(2nd_Bridged_Information)。APP向桥接服务管理设备(bridge_Cloud)发送请求消息,其中消息类型为:Discovery intermediate Bridge;消息参数为:Bridged Information=1st_Bridged_Information。S1204, perform the following steps in a loop: set Source=Bridged Information, that is, search for protocol information (2nd_Bridged_Information) that can bridge the Bridged Device to a third party. The APP sends a request message to the bridge service management device (bridge_Cloud), where the message type is: Discovery intermediate Bridge; the message parameters are: Bridged Information=1st_Bridged_Information.
S1205,bridge_Cloud完成对请求消息的处理,根据APP_Device_ID信息确定其扫描的范围。查找的设备应该在APP可访问的设备之间。S1205, bridge_Cloud completes processing of the request message and determines its scanning scope based on the APP_Device_ID information. The device being searched should be among the devices accessible to the APP.
S1206,bridge_Cloud单播向APP发送应答消息,应答消息中包含如上述表2所示的信息。S1206, bridge_Cloud unicasts a response message to the APP, and the response message contains the information shown in Table 2 above.
APP判断当前的子节点中是否有对应APP使用的Protocol_Type_ID,如果有则退出循环,从根节点到当前的APP使用的Protocol_Type_ID形成一个桥接链路。如果无则返回S1103的步骤,将source分别设定为本次插入的M个其他类型的Protocol_Type_ID,继续按照S1103和S1105的步骤进行处理。The APP determines whether the current child node has the corresponding Protocol_Type_ID used by the APP. If so, it exits the loop and forms a bridge link from the root node to the Protocol_Type_ID used by the current APP. If not, return to the step of S1103, set the source to the M other types of Protocol_Type_ID inserted this time, and continue to process according to the steps of S1103 and S1105.
其中,循环处理的逻辑可以为:在每一次大循环中,将上次循环中找到的所有的次一级节点作为输入,去查找对应其的intermediate Bridge。Among them, the logic of loop processing can be: in each large loop, use all the sub-level nodes found in the previous loop as input to find the corresponding intermediate Bridge.
S1207,APP获取上述信息后向Bridge2请求完成对Bridged Device的桥接服务。S1207, after obtaining the above information, the APP requests Bridge2 to complete the bridging service to the Bridged Device.
S1208,Bridge2收到上述请求之后,申请升级其对应的软件包(比如可以通过Upgrade ID申请),升级之后与Bridge Device1建立连接,连接的协议使用Source Protocol。连接建立之后Bridge2针对Bridged Device生成Shadow Device M,也就是完成桥接。S1208, after Bridge2 receives the above request, it applies to upgrade its corresponding software package (for example, it can be applied through Upgrade ID). After the upgrade, it establishes a connection with Bridge Device1, and the connection protocol uses Source Protocol. After the connection is established, Bridge2 generates Shadow Device M for Bridged Device, which is to complete the bridge connection.
S1209,Bridge2完成上述转换之后生成应答消息,该应答消息可以包括:Shadow Device M的Device ID,Intermediate_Protocol_ID。S1209, Bridge2 generates a response message after completing the above conversion. The response message may include: Device ID of Shadow Device M, Intermediate_Protocol_ID.
S1210,APP向Bridge1请求升级桥接功能(其对应的Upgrade ID)并完成对Shadow Device M的桥接。同样这个请求消息可以分为两个请求消息完成。S1210, APP requests Bridge1 to upgrade the bridging function (its corresponding Upgrade ID) and completes the bridging of Shadow Device M. Similarly, this request message can be divided into two request messages to complete.
S1211,Bridge 1收到上述消息之后针对请求的升级桥接服务进行升级。如果其本身已经存在对应的桥接服务,也可以不执行升级服务。Bridge 1完成对Shadow Device M的桥接工作生成对应的Shadow Device F。Bridge 1与Bridge2的连接协议使用Intermediate_Protocol。S1211, Bridge 1 upgrades the requested upgrade bridge service after receiving the above message. If the corresponding bridging service already exists, the upgrade service does not need to be performed. Bridge 1 completes the bridging work of Shadow Device M and generates the corresponding Shadow Device F. The connection protocol between Bridge 1 and Bridge 2 uses Intermediate_Protocol.
S1212,Bridge 1转换完成之后对APP进行应答。S1212, Bridge 1 responds to the APP after the conversion is completed.
综上所述,本申请实施例所示的方案,配置设备通过向桥接服务管理设备发送第一查询消息,来查询可以通过升级获得第一物联网协议与其它物联网协议之间的桥接能力的第一设备,以及,查询该第一设备升级得到的桥接能力是第一物联网协议与哪个物联网协议之间的桥接能力,使得配置设备能够发现当前未具有某一项或多项桥接能力,但是可以通过升级获得该一项或多项桥接能力的桥接设备,使得桥接功能的应用不局限于预先设置有特定的桥接能力的桥接设备,扩展了桥接的应用场景。To sum up, in the solution shown in the embodiment of this application, the configuration device sends a first query message to the bridging service management device to query the bridging capabilities between the first IoT protocol and other IoT protocols that can be obtained through upgrades. The first device, and querying the bridging capability obtained by the upgrade of the first device is the bridging capability between the first IoT protocol and which IoT protocol, so that the configuration device can discover that it currently does not have one or more bridging capabilities, However, the bridging device can obtain one or more bridging capabilities through upgrading, so that the application of the bridging function is not limited to bridging devices pre-set with specific bridging capabilities, and the application scenarios of bridging are expanded.
通过本申请上述实施例所示的方案,可以在当前物联网系统中不存在对目标设备进行直接桥接的桥接设备的情况下,完成对目标设备的间接桥接方案,提升系统的桥接能力和接入能力,提升用户体验。Through the solutions shown in the above embodiments of the present application, when there is no bridging device that directly bridges the target device in the current Internet of Things system, the indirect bridging solution for the target device can be completed, thereby improving the bridging capability and access of the system. capabilities to improve user experience.
此外,本申请上述各个实施例所示的方案,可以动态的查找可能升级获得新的桥接能力的桥接设备,从而使得用户可以不需要单独购买特定的桥接设备,从而简化用户的选择“焦虑”,并最大限度使用已经具有的设备。In addition, the solutions shown in the above embodiments of the present application can dynamically search for bridging devices that may be upgraded to obtain new bridging capabilities, so that users do not need to purchase specific bridging devices separately, thereby simplifying the user's selection "anxiety". And make the most of the equipment you already have.
请参考图13,其示出了本申请一个实施例提供的设备发现装置的框图。该设备发现装置1300具有实现上述图3、图6或图11所示的方法中,由配置设备执行的功能。如图13所示,该装置可以包括:Please refer to Figure 13, which shows a block diagram of a device discovery device provided by an embodiment of the present application. The device discovery device 1300 has the function of implementing the configuration device in the method shown in FIG. 3, FIG. 6 or FIG. 11. As shown in Figure 13, the device may include:
发送模块1301,用于发送第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;Sending module 1301, used to send a first query message, the first query message is used to query the device that supports upgrading the first bridging capability; the first bridging capability is between the first Internet of Things protocol and other Internet of Things protocols. bridging capabilities;
接收模块1302,用于接收第一响应消息;第一响应消息用于指示第一设备支持升级所述第一桥接能力,且第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。The receiving module 1302 is configured to receive a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the first thing. Bridging capabilities between networking protocols and secondary IoT protocols.
在一种可能的实现方式中,所述第一查询消息中包含所述第一物联网协议的标识信息;In a possible implementation, the first query message includes identification information of the first Internet of Things protocol;
所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
协议获取模块,用于获取桥接树中的第一设备节点的目标协议;所述桥接树的根节点为目标设备对应的设备节点;所述第一设备节点是所述桥接树中的最后一层设备节点中的任意一个;所述桥接树是以桥接树中已有设备节点的目标协议作为设备查询的源协议,并基于查询到的目标协议构建得到的结构树;A protocol acquisition module is used to obtain the target protocol of the first device node in the bridge tree; the root node of the bridge tree is the device node corresponding to the target device; the first device node is the last layer in the bridge tree Any one of the device nodes; the bridge tree is a structural tree constructed based on the target protocol of the existing device node in the bridge tree as the source protocol for device query, and based on the queried target protocol;
所述发送模块,用于以所述第一设备节点的目标协议作为设备查询的源协议,发送所述第一查询消息。The sending module is configured to send the first query message using the target protocol of the first device node as the source protocol of the device query.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
节点添加模块,用于在桥接树中添加与所述第一设备对应的第二设备节点;所述第二设备节点的目标协议为所述第二物联网协议;A node adding module, configured to add a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol;
其中,所述桥接树的根节点为目标设备对应的设备节点;所述第二设备节点在所述桥接树中的父节点的目标协议为所述第二物联网协议。The root node of the bridge tree is a device node corresponding to the target device; the target protocol of the parent node of the second device node in the bridge tree is the second Internet of Things protocol.
在一种可能的实现方式中,所述节点添加模块,用于在各个候选目标协议中不存在指定物联网协议的情况下,在所述桥接树中添加与所述第二设备对应的第二设备节点。In a possible implementation, the node adding module is configured to add a second node corresponding to the second device in the bridge tree when the specified IoT protocol does not exist in each candidate target protocol. Device node.
其中,所述各个候选目标协议是分别以所述最后一层设备节点中的各个设备节点的目标协议作为源协议查询桥接能力时得到的目标协议。Wherein, each of the candidate target protocols is a target protocol obtained when querying the bridging capability using the target protocol of each device node in the last layer of device nodes as a source protocol.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
连接建立模块,用于在所述第二物联网协议是指定物联网协议的情况下,根据第一节点路径建立所述目标设备与所述第一设备之间的间接的桥接连接;A connection establishment module configured to establish an indirect bridge connection between the target device and the first device according to the first node path when the second Internet of Things protocol is a designated Internet of Things protocol;
其中,所述第一节点路径是所述桥接树中从所述根节点到所述第一设备节点之间的路径。Wherein, the first node path is a path from the root node to the first device node in the bridge tree.
在一种可能的实现方式中,所述连接建立模块,用于,In a possible implementation, the connection establishment module is used to,
向第二设备发送升级请求,所述升级请求用于指示所述第二设备升级获得第三物联网协议与第四物联网协议之间的桥接能力;其中,第二设备是所述桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备,或者,所述第二设备是所述第一设备;所述第三物联网协议是所述第二设备对应在所述桥接树中的父节点的目标协议;所述第四物联网协议是所述第二设备对应在所述桥接树中的设备节点的目标协议;Send an upgrade request to the second device, the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol; wherein the second device is in the bridge tree on the first node path, a device corresponding to any device node except the root node, or the second device is the first device; the third Internet of Things protocol is a device corresponding to the second device The target protocol of the parent node in the bridge tree; the fourth Internet of Things protocol is the target protocol of the device node corresponding to the second device in the bridge tree;
向所述第二设备发送连接请求;所述连接请求用于指示所述第二设备与第三设备之间建立连接;其中,在所述第二设备是所述桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备的情况下,所述第三设备对应在所述桥接树中的设备节点,是所述第二设备对应在所述桥接树中的父节点;在所述第二设备是所述第一设备的情况下,所述第三设备是所述第一设备节点对应的设备。Send a connection request to the second device; the connection request is used to instruct the establishment of a connection between the second device and a third device; wherein the second device is the first node path in the bridge tree In the case of a device corresponding to any device node other than the root node, the third device corresponding to the device node in the bridge tree is the parent of the second device corresponding to the bridge tree. node; when the second device is the first device, the third device is a device corresponding to the first device node.
在一种可能的实现方式中,所述升级请求中包含所述第四物联网协议的标识信息。In a possible implementation, the upgrade request includes identification information of the fourth Internet of Things protocol.
在一种可能的实现方式中,所述节点添加模块,用于在各个候选目标协议中不存在指定物联网协议,且所述桥接树的层数小于所述桥接树的层数上限的情况下,在所述桥接树中添加与所述第二设备对应的第二设备节点。In a possible implementation, the node adding module is used when there is no specified Internet of Things protocol in each candidate target protocol, and the number of layers of the bridge tree is less than the upper limit of the number of layers of the bridge tree. , adding a second device node corresponding to the second device in the bridge tree.
在一种可能的实现方式中,所述发送模块1301,用于在所述桥接树中的第m层设备节点的目标协议中不包含指定物联网协议的情况下,发送所述第一查询消息;In a possible implementation, the sending module 1301 is configured to send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain a specified Internet of Things protocol. ;
其中,所述第m层设备节点是所述第二设备节点的父节点所在的层级中的各个设备节点。Wherein, the mth layer device node is each device node in the level where the parent node of the second device node is located.
在一种可能的实现方式中,所述发送模块1301,用于在所述桥接树中的第m层设备节点的目标协议中不包含指定物联网协议,且2≤m<N的情况下,发送所述第一查询消息;In a possible implementation, the sending module 1301 is configured to: When the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, and 2≤m<N, Send the first query message;
其中,m、N为整数,N为所述桥接树的层数上限。Wherein, m and N are integers, and N is the upper limit of the number of layers of the bridge tree.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
信息获取模块,用于在所述发送模块发送第一查询消息之前,获取所述目标设备的设备信息,所述目标设备的设备信息中包含所述目标设备支持的物联网协议的标识信息;An information acquisition module, configured to acquire device information of the target device before the sending module sends the first query message, where the device information of the target device includes identification information of the Internet of Things protocol supported by the target device;
初始化模块,用于根据所述目标设备支持的物联网协议的标识信息,初始化所述桥接树的根节点。An initialization module, configured to initialize the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
在一种可能的实现方式中,所述初始化模块,还用于初始化所述桥接树的层数上限。In a possible implementation manner, the initialization module is also used to initialize the upper limit of the number of layers of the bridge tree.
在一种可能的实现方式中,所述发送模块1301,用于通过广播方式发送所述第一查询消息;In a possible implementation, the sending module 1301 is configured to send the first query message by broadcasting;
所述接收模块1302,用于接收所述第一设备对所述第一查询消息返回的所述第一响应消息。The receiving module 1302 is configured to receive the first response message returned by the first device to the first query message.
在一种可能的实现方式中,所述发送模块1301,用于向桥接服务管理设备发送所述第一查询消息;所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息用于指示通过升级获得桥接能力的功能;In a possible implementation, the sending module 1301 is configured to send the first query message to a bridging service management device; the bridging service management device maintains capability information of each device in the Internet of Things; The described capability information is used to indicate the function of obtaining bridging capability through upgrade;
接收模块1302,用于接收所述桥接服务管理设备响应于所述第一查询消息返回的所述第一响应消息。The receiving module 1302 is configured to receive the first response message returned by the bridge service management device in response to the first query message.
在一种可能的实现方式中,所述发送模块,还用于发送第二查询消息,所述第二查询消息用于查询具有或者支持升级所述第二桥接能力的设备;所述第二桥接能力是目标设备对应的物联网协议与指定物联网协议之间的桥接能力;In a possible implementation, the sending module is also configured to send a second query message, the second query message is used to query a device that has or supports upgrading the second bridging capability; the second bridging Capability is the bridging capability between the IoT protocol corresponding to the target device and the specified IoT protocol;
所述发送模块,用于在未查询到具有或者支持升级所述第二桥接能力的设备的情况下,发送所述第一查询消息。The sending module is configured to send the first query message if a device that has or supports upgrading the second bridging capability is not found.
请参考图14,其示出了本申请一个实施例提供的设备发现装置的框图。该装置具有实现上述图4、图6或图11所示的方法中,由第一设备执行的功能。如图14所示,该装置可以包括:Please refer to Figure 14, which shows a block diagram of a device discovery device provided by an embodiment of the present application. The device has the function of realizing the function performed by the first device in the method shown in FIG. 4, FIG. 6 or FIG. 11. As shown in Figure 14, the device may include:
接收模块1401,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;The receiving module 1401 is configured to receive a first query message sent by a configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a link between the first Internet of Things protocol and other Internet of Things. Bridging capabilities between protocols;
发送模块1402,用于在所述第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。Sending module 1402, configured to send a first response message to the configuration device when the first device supports upgrading the first bridging capability; the first response message is used to indicate that the first device supports The first bridging capability is upgraded, and the first bridging capability supported by the first device is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
在一种可能的实现方式中,所述第一查询消息中包含所述第一物联网协议的标识信息;In a possible implementation, the first query message includes identification information of the first Internet of Things protocol;
所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
请参考图15,其示出了本申请一个实施例提供的设备发现装置的框图。该装置具有实现上述图9或图11所示的方法中,由桥接服务管理设备执行的功能;所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息包括支持升级的桥接能力。如图15所示,该装置可以包括:Please refer to Figure 15, which shows a block diagram of a device discovery device provided by an embodiment of the present application. The device has the function of being executed by the bridging service management device in implementing the method shown in Figure 9 or Figure 11; the bridging service management device maintains capability information of each device in the Internet of Things; the capability information includes support Upgraded bridging capabilities. As shown in Figure 15, the device may include:
接收模块1501,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;The receiving module 1501 is configured to receive a first query message sent by a configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a link between the first Internet of Things protocol and other Internet of Things. Bridging capabilities between protocols;
发送模块1502,用于在所述各个设备中的第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。Sending module 1502, configured to send a first response message to the configuration device when the first device among the various devices supports upgrading the first bridging capability; the first response message is used to indicate that the The first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
在一种可能的实现方式中,所述第一查询消息中包含所述第一物联网协议的标识信息;In a possible implementation, the first query message includes identification information of the first Internet of Things protocol;
所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that when the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. 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 devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
请参考图16,其示出了本申请一个实施例提供的计算机设备1600的结构示意图。该计算机设备1600可以包括:处理器1601、接收器1602、发射器1603、存储器1604和总线1605。Please refer to Figure 16, which shows a schematic structural diagram of a computer device 1600 provided by an embodiment of the present application. The computer device 1600 may include a processor 1601, a receiver 1602, a transmitter 1603, a memory 1604, and a bus 1605.
处理器1601包括一个或者一个以上处理核心,处理器1601通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 1601 includes one or more processing cores. The processor 1601 executes various functional applications and information processing by running software programs and modules.
接收器1602和发射器1603可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。The receiver 1602 and the transmitter 1603 can be implemented as a communication component, and the communication component can be a communication chip. This communication chip can also be called a transceiver.
存储器1604通过总线1605与处理器1601相连。 Memory 1604 is connected to processor 1601 through bus 1605.
存储器1604可用于存储计算机程序,处理器1601用于执行该计算机程序,以实现上述方法实施例中 的各个步骤。The memory 1604 can be used to store a computer program, and the processor 1601 is used to execute the computer program to implement each step in the above method embodiment.
此外,存储器1604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。Additionally, memory 1604 may be implemented by any type of volatile or non-volatile storage device, or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable Read-only memory, erasable programmable read-only memory, static ready-access memory, read-only memory, magnetic memory, flash memory, programmable read-only memory.
在一个示例性的方案中,当计算机设备1600实现为配置设备时,所述收发器,用于发送第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;接收第一响应消息;所述第一响应消息用于指示第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。In an exemplary solution, when the computer device 1600 is implemented as a configuration device, the transceiver is used to send a first query message, and the first query message is used to query a device that supports upgrading the first bridging capability; so The first bridging capability is a bridging capability between a first Internet of Things protocol and other Internet of Things protocols; receiving a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and The first bridging capability supported by the first device for upgrade is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
其中,上述计算机设备1600中的处理器1601和/或收发器执行的过程可以参考上述图3、图6或图11任一所示的方法中,由配置设备执行的各个步骤。The process performed by the processor 1601 and/or the transceiver in the computer device 1600 may refer to the various steps performed by the configuration device in any of the methods shown in FIG. 3, FIG. 6, or FIG. 11.
在一个示例性的方案中,当计算机设备1600实现为第一设备时,所述收发器,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;在所述第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。In an exemplary solution, when the computer device 1600 is implemented as a first device, the transceiver is configured to receive a first query message sent by the configuration device, where the first query message is used to query support for upgrading the first bridge. capable device; the first bridging capability is a bridging capability between a first Internet of Things protocol and other Internet of Things protocols; in the case where the first device supports upgrading the first bridging capability, provide the configuration device with Send a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the first thing Bridging capabilities between networking protocols and secondary IoT protocols.
其中,上述计算机设备1600中的处理器1601和/或收发器执行的过程可以参考上述图4、图6或图11任一所示的方法中,由第一设备执行的各个步骤。The process performed by the processor 1601 and/or the transceiver in the computer device 1600 may refer to the various steps performed by the first device in any of the methods shown in FIG. 4, FIG. 6, or FIG. 11.
在一个示例性的方案中,当计算机设备1600实现为桥接服务管理设备时,所述收发器,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;在所述各个设备中的第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。In an exemplary solution, when the computer device 1600 is implemented as a bridge service management device, the transceiver is configured to receive a first query message sent by the configuration device, and the first query message is used to query support for upgrading the first A device with bridging capability; the first bridging capability is a bridging capability between a first Internet of Things protocol and other Internet of Things protocols; in the case where the first device among the respective devices supports upgrading the first bridging capability, Send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability that the first device supports upgrading is The bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
其中,上述计算机设备1600中的处理器1601和/或收发器执行的过程可以参考上述图9或图11任一所示的方法中,由桥接服务管理设备执行的各个步骤。The process performed by the processor 1601 and/or the transceiver in the computer device 1600 may refer to the various steps performed by the bridge service management device in the method shown in either FIG. 9 or FIG. 11 .
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图3、图4、图6、图9、或图11所示的方法中,由配置设备、第一设备或者桥接服务管理设备执行的全部或者部分步骤。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the storage medium. The computer program is loaded and executed by a processor to implement the above-mentioned Figures 3, 4, 6, and 9. Or in the method shown in Figure 11, all or part of the steps performed by the configuration device, the first device or the bridge service management device.
本申请提供了一种芯片,该芯片用于在计算机设备中运行,以使得计算机设备执行上述图3、图4、图6、图9、或图11所示的方法中,由配置设备、第一设备或桥接服务管理设备执行的全部或者部分步骤。The present application provides a chip, which is used to run in a computer device, so that the computer device performs the method shown in Figure 3, Figure 4, Figure 6, Figure 9, or Figure 11, by configuring the device, the first A device or bridge service manages all or part of the steps performed by the device.
本申请还提供了一种计算机程序产品,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得计算机设备执行上述图3、图4、图6、图9、或图11所示的方法中,由配置设备、第一设备或者桥接服务管理设备执行的全部或者部分步骤。The application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions are 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 the method shown in Figure 3, Figure 4, Figure 6, Figure 9, or Figure 11, All or part of the steps performed by the configuration device, the first device or the bridge service management device.
本申请提供了一种计算机程序,由计算机设备的处理器执行,以实现上述图3、图4、图6、图9、或图11所示的方法中,由配置设备、第一设备或者桥接服务管理设备执行的全部或者部分步骤。The present application provides a computer program, which is executed by a processor of a computer device to implement the method shown in Figure 3, Figure 4, Figure 6, Figure 9, or Figure 11, by the configuration device, the first device or the bridge. All or part of the steps performed by the service management device.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。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 can be implemented using hardware, software, firmware, or any combination thereof. When implemented using 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 computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Claims (45)

  1. 一种设备发现方法,其特征在于,所述方法由配置设备执行,所述方法包括:A device discovery method, characterized in that the method is executed by a configuration device, and the method includes:
    发送第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;Send a first query message, the first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols;
    接收第一响应消息;所述第一响应消息用于指示第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。Receive a first response message; the first response message is used to indicate that the first device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is the first Internet of Things protocol Bridging capabilities to second IoT protocols.
  2. 根据权利要求1所述的方法,其特征在于,The method according to claim 1, characterized in that:
    所述第一查询消息中包含所述第一物联网协议的标识信息;The first query message includes identification information of the first Internet of Things protocol;
    所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
  3. 根据权利要求1或2所述的方法,其特征在于,所述方法还包括:The method according to claim 1 or 2, characterized in that, the method further includes:
    获取桥接树中的第一设备节点的目标协议;所述桥接树的根节点为目标设备对应的设备节点;所述第一设备节点是所述桥接树中的最后一层设备节点中的任意一个;所述桥接树是以所述桥接树中已有设备节点的目标协议作为设备查询的源协议,并基于查询到的目标协议构建得到的结构树;Obtain the target protocol of the first device node in the bridge tree; the root node of the bridge tree is the device node corresponding to the target device; the first device node is any one of the last layer device nodes in the bridge tree ; The bridging tree is a structural tree constructed based on the target protocol of the existing device node in the bridging tree as the source protocol for device query, and based on the queried target protocol;
    所述发送第一查询消息,包括:The sending of the first query message includes:
    以所述第一设备节点的目标协议作为设备查询的源协议,发送所述第一查询消息。Using the target protocol of the first device node as the source protocol of the device query, the first query message is sent.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, further comprising:
    在所述桥接树中添加与所述第一设备对应的第二设备节点;所述第二设备节点的目标协议为所述第二物联网协议。Add a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol.
  5. 根据权利要求4所述的方法,其特征在于,所述在所述桥接树中添加与所述第二设备对应的第二设备节点,包括:The method of claim 4, wherein adding a second device node corresponding to the second device in the bridge tree includes:
    在各个候选目标协议中不存在指定物联网协议的情况下,在所述桥接树中添加与所述第二设备对应的第二设备节点;If the specified IoT protocol does not exist in each candidate target protocol, add a second device node corresponding to the second device in the bridge tree;
    其中,所述各个候选目标协议是分别以所述最后一层设备节点中的各个设备节点的目标协议作为设备查询的源协议查询得到的目标协议。Wherein, each of the candidate target protocols is a target protocol obtained by querying the target protocol of each device node in the last layer of device nodes as the source protocol of the device query.
  6. 根据权利要求3至5任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 3 to 5, characterized in that the method further includes:
    在所述第二物联网协议是指定物联网协议的情况下,根据第一节点路径建立所述目标设备与所述第一设备之间的间接的桥接连接;When the second IoT protocol is a designated IoT protocol, establish an indirect bridge connection between the target device and the first device according to the first node path;
    其中,所述第一节点路径是所述桥接树中从所述根节点到所述第一设备节点之间的路径。Wherein, the first node path is a path from the root node to the first device node in the bridge tree.
  7. 根据权利要求6所述的方法,其特征在于,所述根据第一节点路径建立所述目标设备与所述第一设备之间的间接的桥接连接,包括:The method of claim 6, wherein establishing an indirect bridge connection between the target device and the first device according to the first node path includes:
    向第二设备发送升级请求,所述升级请求用于指示所述第二设备升级获得第三物联网协议与第四物联网协议之间的桥接能力;其中,第二设备是所述桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备,或者,所述第二设备是所述第一设备;所述第三物联网协议是所述第二设备对应在所述桥接树中的父节点的目标协议;所述第四物联网协议是所述第二设备对应在所述桥接树中的设备节点的目标协议;Send an upgrade request to the second device, the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol; wherein the second device is in the bridge tree on the first node path, a device corresponding to any device node except the root node, or the second device is the first device; the third Internet of Things protocol is a device corresponding to the second device The target protocol of the parent node in the bridge tree; the fourth Internet of Things protocol is the target protocol of the device node corresponding to the second device in the bridge tree;
    向所述第二设备发送连接请求;所述连接请求用于指示所述第二设备与第三设备之间建立连接;Send a connection request to the second device; the connection request is used to instruct the second device to establish a connection with the third device;
    其中,在所述第二设备是所述桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备的情况下,所述第三设备对应在所述桥接树中的设备节点是所述第二设备对应在所述桥接树中的父节点;在所述第二设备是所述第一设备的情况下,所述第三设备是所述第一设备节点对应的设备。Wherein, when the second device is a device corresponding to any device node other than the root node on the first node path in the bridge tree, the third device corresponds to the device in the bridge tree. The device node is the parent node corresponding to the second device in the bridge tree; when the second device is the first device, the third device is the parent node corresponding to the first device node. equipment.
  8. 根据权利要求7所述的方法,其特征在于,所述升级请求中包含所述第四物联网协议的标识信息。The method according to claim 7, wherein the upgrade request contains identification information of the fourth Internet of Things protocol.
  9. 根据权利要求5所述的方法,其特征在于,所述在各个候选目标协议中不存在指定物联网协议的情况下,在所述桥接树中添加与所述第二设备对应的第二设备节点,包括:The method according to claim 5, characterized in that, when there is no specified Internet of Things protocol in each candidate target protocol, adding a second device node corresponding to the second device in the bridge tree ,include:
    在各个候选目标协议中不存在指定物联网协议,且所述桥接树的层数小于所述桥接树的层数上限的情况下,在所述桥接树中添加与所述第二设备对应的第二设备节点。If there is no specified Internet of Things protocol in each candidate target protocol, and the number of layers of the bridge tree is less than the upper limit of the number of layers of the bridge tree, add a third device corresponding to the second device in the bridge tree. Two device nodes.
  10. 根据权利要求4所述的方法,其特征在于,所述发送第一查询消息,包括:The method according to claim 4, characterized in that sending the first query message includes:
    在所述桥接树中的第m层设备节点的目标协议中不包含指定物联网协议的情况下,发送所述第一查询消息;If the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, send the first query message;
    其中,所述第m层设备节点是所述第二设备节点的父节点所在的层级中的各个设备节点。Wherein, the mth layer device node is each device node in the level where the parent node of the second device node is located.
  11. 根据权利要求10所述的方法,其特征在于,所述在所述桥接树中的第m层设备节点的目标协议中不包含指定物联网协议的情况下,发送所述第一查询消息,包括:The method according to claim 10, characterized in that, when the target protocol of the m-th layer device node in the bridge tree does not contain a specified Internet of Things protocol, sending the first query message includes :
    在所述桥接树中的第m层设备节点的目标协议中不包含指定物联网协议,且2≤m<N的情况下,发送所述第一查询消息;When the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol, and 2≤m<N, send the first query message;
    其中,m、N为整数,N为所述桥接树的层数上限。Wherein, m and N are integers, and N is the upper limit of the number of layers of the bridge tree.
  12. 根据权利要求3至11任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 3 to 11, characterized in that the method further includes:
    获取所述目标设备的设备信息,所述目标设备的设备信息中包含所述目标设备支持的物联网协议的标识信息;Obtain device information of the target device, where the device information of the target device includes identification information of the Internet of Things protocol supported by the target device;
    根据所述目标设备支持的物联网协议的标识信息,初始化所述桥接树的根节点。Initialize the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
  13. 根据权利要求12所述的方法,其特征在于,所述方法还包括:The method of claim 12, further comprising:
    初始化所述桥接树的层数上限。Initialize the upper limit of the number of layers of the bridge tree.
  14. 根据权利要求1至13任一所述的方法,其特征在于,The method according to any one of claims 1 to 13, characterized in that,
    所述发送第一查询消息,包括:The sending of the first query message includes:
    通过广播方式发送所述第一查询消息;Send the first query message in a broadcast manner;
    所述接收第一响应消息,包括:The receiving the first response message includes:
    接收所述第一设备对所述第一查询消息返回的所述第一响应消息。Receive the first response message returned by the first device to the first query message.
  15. 根据权利要求1至13任一所述的方法,其特征在于,The method according to any one of claims 1 to 13, characterized in that,
    所述发送第一查询消息,包括:The sending of the first query message includes:
    向桥接服务管理设备发送所述第一查询消息;所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息包括支持升级的桥接能力;Send the first query message to a bridging service management device; the bridging service management device maintains capability information of each device in the Internet of Things; the capability information includes bridging capabilities that support upgrades;
    所述接收第一响应消息,包括:The receiving the first response message includes:
    接收所述桥接服务管理设备响应于所述第一查询消息返回的所述第一响应消息。Receive the first response message returned by the bridge service management device in response to the first query message.
  16. 根据权利要求1至15任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 15, characterized in that the method further includes:
    发送第二查询消息,所述第二查询消息用于查询具有或者支持升级所述第二桥接能力的设备;所述第二桥接能力是目标设备对应的物联网协议与指定物联网协议之间的桥接能力;Send a second query message, the second query message is used to query a device that has or supports upgrading the second bridging capability; the second bridging capability is a link between the Internet of Things protocol corresponding to the target device and the specified Internet of Things protocol. bridging capabilities;
    所述发送第一查询消息,包括:The sending of the first query message includes:
    在未查询到具有或者支持升级所述第二桥接能力的设备的情况下,发送所述第一查询消息。If a device that has or supports upgrading the second bridging capability is not queried, the first query message is sent.
  17. 一种设备发现方法,其特征在于,所述方法由第一设备执行,所述方法包括:A device discovery method, characterized in that the method is executed by a first device, and the method includes:
    接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;Receive the first query message sent by the configuration device, the first query message is used to query the device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols ;
    在所述第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。When the first device supports upgrading the first bridging capability, sending a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability. capability, and the first bridging capability supported by the first device for upgrade is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  18. 根据权利要求17所述的方法,其特征在于,The method according to claim 17, characterized in that:
    所述第一查询消息中包含所述第一物联网协议的标识信息;The first query message includes identification information of the first Internet of Things protocol;
    所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
  19. 一种设备发现方法,其特征在于,所述方法由桥接服务管理设备执行,所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息包括支持升级的桥接能力;所述方法包括:A device discovery method, characterized in that the method is executed by a bridging service management device that maintains capability information of each device in the Internet of Things; the capability information includes bridging capabilities that support upgrades; The methods include:
    接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;Receive the first query message sent by the configuration device, the first query message is used to query the device that supports upgrading the first bridging capability; the first bridging capability is the bridging capability between the first Internet of Things protocol and other Internet of Things protocols ;
    在所述各个设备中的第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。When the first device among the various devices supports upgrading the first bridging capability, send a first response message to the configuration device; the first response message is used to indicate that the first device supports upgrading the first bridging capability. The first bridging capability, and the first bridging capability that the first device supports upgrading is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  20. 根据权利要求19所述的方法,其特征在于,The method according to claim 19, characterized in that:
    所述第一查询消息中包含所述第一物联网协议的标识信息;The first query message includes identification information of the first Internet of Things protocol;
    所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
  21. 一种设备发现装置,其特征在于,所述装置包括:A device discovery device, characterized in that the device includes:
    发送模块,用于发送第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;A sending module, configured to send a first query message. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a bridge between the first Internet of Things protocol and other Internet of Things protocols. ability;
    接收模块,用于接收第一响应消息;所述第一响应消息用于指示第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。A receiving module, configured to receive a first response message; the first response message is used to indicate that the first device supports upgrading of the first bridging capability, and the first bridging capability that the first device supports upgrading is the Bridging capability between the first IoT protocol and the second IoT protocol.
  22. 根据权利要求21所述的装置,其特征在于,The device according to claim 21, characterized in that:
    所述第一查询消息中包含所述第一物联网协议的标识信息;The first query message includes identification information of the first Internet of Things protocol;
    所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
  23. 根据权利要求21或22所述的装置,其特征在于,所述装置还包括:The device according to claim 21 or 22, characterized in that the device further includes:
    协议获取模块,用于获取桥接树中的第一设备节点的目标协议;所述桥接树的根节点为目标设备对应的设备节点;所述第一设备节点是所述桥接树中的最后一层设备节点中的任意一个;所述桥接树是以所述桥接树中已有设备节点的目标协议作为设备查询的源协议,并基于查询到的目标协议构建得到的结构树;A protocol acquisition module is used to obtain the target protocol of the first device node in the bridge tree; the root node of the bridge tree is the device node corresponding to the target device; the first device node is the last layer in the bridge tree Any one of the device nodes; the bridge tree is a structural tree constructed based on the target protocol of the existing device node in the bridge tree as the source protocol for device query, and based on the queried target protocol;
    所述发送模块,用于以所述第一设备节点的目标协议作为设备查询的源协议,发送所述第一查询消息。The sending module is configured to send the first query message using the target protocol of the first device node as the source protocol of the device query.
  24. 根据权利要求23所述的装置,其特征在于,所述装置还包括:The device according to claim 23, characterized in that the device further includes:
    节点添加模块,用于在所述桥接树中添加与所述第一设备对应的第二设备节点;所述第二设备节点的目标协议为所述第二物联网协议。A node adding module is configured to add a second device node corresponding to the first device in the bridge tree; the target protocol of the second device node is the second Internet of Things protocol.
  25. 根据权利要求24所述的装置,其特征在于,所述节点添加模块,用于在各个候选目标协议中不存在指定物联网协议的情况下,在所述桥接树中添加与所述第二设备对应的第二设备节点;The device according to claim 24, wherein the node adding module is configured to add a link to the second device in the bridge tree when a specified Internet of Things protocol does not exist in each candidate target protocol. The corresponding second device node;
    其中,所述各个候选目标协议是分别以所述最后一层设备节点中的各个设备节点的目标协议作为设备查询的源协议查询得到的目标协议。Wherein, each of the candidate target protocols is a target protocol obtained by querying the target protocol of each device node in the last layer of device nodes as the source protocol of the device query.
  26. 根据权利要求23至25任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 23 to 25, characterized in that the device further includes:
    连接建立模块,用于在所述第二物联网协议是指定物联网协议的情况下,根据第一节点路径建立所述目标设备与所述第一设备之间的间接的桥接连接;A connection establishment module configured to establish an indirect bridge connection between the target device and the first device according to the first node path when the second Internet of Things protocol is a designated Internet of Things protocol;
    其中,所述第一节点路径是所述桥接树中从所述根节点到所述第一设备节点之间的路径。Wherein, the first node path is a path from the root node to the first device node in the bridge tree.
  27. 根据权利要求26所述的装置,其特征在于,所述连接建立模块,用于,The device according to claim 26, characterized in that the connection establishment module is used to:
    向第二设备发送升级请求,所述升级请求用于指示所述第二设备升级获得第三物联网协议与第四物联网协议之间的桥接能力;其中,第二设备是所述桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备,或者,所述第二设备是所述第一设备;所述第三物联网协议是所述第二设备对应在所述桥接树中的父节点的目标协议;所述第四物联网协议是所述第二设备对应在所述桥接树中的设备节点的目标协议;Send an upgrade request to the second device, the upgrade request is used to instruct the second device to upgrade to obtain the bridging capability between the third Internet of Things protocol and the fourth Internet of Things protocol; wherein the second device is in the bridge tree on the first node path, a device corresponding to any device node except the root node, or the second device is the first device; the third Internet of Things protocol is a device corresponding to the second device The target protocol of the parent node in the bridge tree; the fourth Internet of Things protocol is the target protocol of the device node corresponding to the second device in the bridge tree;
    向所述第二设备发送连接请求;所述连接请求用于指示所述第二设备与第三设备之间建立连接;Send a connection request to the second device; the connection request is used to instruct the second device to establish a connection with the third device;
    其中,在所述第二设备是所述桥接树中的第一节点路径上,除了根节点之外的任意一个设备节点对应的设备的情况下,所述第三设备对应在所述桥接树中的设备节点是所述第二设备对应在所述桥接树中的父节点;在所述第二设备是所述第一设备的情况下,所述第三设备是所述第一设备节点对应的设备。Wherein, when the second device is a device corresponding to any device node other than the root node on the first node path in the bridge tree, the third device corresponds to the device in the bridge tree. The device node is the parent node corresponding to the second device in the bridge tree; when the second device is the first device, the third device is the parent node corresponding to the first device node. equipment.
  28. 根据权利要求27所述的装置,其特征在于,所述升级请求中包含所述第四物联网协议的标识信息。The device according to claim 27, wherein the upgrade request includes identification information of the fourth Internet of Things protocol.
  29. 根据权利要求25所述的装置,其特征在于,所述节点添加模块,用于在各个候选目标协议中不存在指定物联网协议,且所述桥接树的层数小于所述桥接树的层数上限的情况下,在所述桥接树中添加与所述第二设备对应的第二设备节点。The device according to claim 25, characterized in that the node adding module is used to specify that there is no specified Internet of Things protocol in each candidate target protocol, and the number of layers of the bridge tree is less than the number of layers of the bridge tree. If the upper limit is reached, a second device node corresponding to the second device is added to the bridge tree.
  30. 根据权利要求24所述的装置,其特征在于,The device according to claim 24, characterized in that:
    所述发送模块,用于在所述桥接树中的第m层设备节点的目标协议中不包含指定物联网协议的情况下,发送所述第一查询消息;The sending module is configured to send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol;
    其中,所述第m层设备节点是所述第二设备节点的父节点所在的层级中的各个设备节点。Wherein, the mth layer device node is each device node in the level where the parent node of the second device node is located.
  31. 根据权利要求30所述的装置,其特征在于,The device according to claim 30, characterized in that:
    所述发送模块,用于在所述桥接树中的第m层设备节点的目标协议中不包含指定物联网协议,且2≤m<N的情况下,发送所述第一查询消息;The sending module is configured to send the first query message when the target protocol of the m-th layer device node in the bridge tree does not contain the specified Internet of Things protocol and 2≤m<N;
    其中,m、N为整数,N为所述桥接树的层数上限。Wherein, m and N are integers, and N is the upper limit of the number of layers of the bridge tree.
  32. 根据权利要求23至31任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 23 to 31, characterized in that the device further includes:
    信息获取模块,用于获取所述目标设备的设备信息,所述目标设备的设备信息中包含所述目标设备支持的物联网协议的标识信息;An information acquisition module, configured to obtain device information of the target device, where the device information of the target device includes identification information of the Internet of Things protocol supported by the target device;
    初始化模块,用于根据所述目标设备支持的物联网协议的标识信息,初始化所述桥接树的根节点。An initialization module, configured to initialize the root node of the bridge tree according to the identification information of the Internet of Things protocol supported by the target device.
  33. 根据权利要求32所述的装置,其特征在于,所述初始化模块,还用于初始化所述桥接树的层数上限。The device according to claim 32, characterized in that the initialization module is also used to initialize the upper limit of the number of layers of the bridge tree.
  34. 根据权利要求21至33任一所述的装置,其特征在于,The device according to any one of claims 21 to 33, characterized in that:
    所述发送模块,用于通过广播方式发送所述第一查询消息;The sending module is used to send the first query message by broadcasting;
    所述接收模块,用于接收所述第一设备对所述第一查询消息返回的所述第一响应消息。The receiving module is configured to receive the first response message returned by the first device to the first query message.
  35. 根据权利要求21至33任一所述的装置,其特征在于,The device according to any one of claims 21 to 33, characterized in that:
    所述发送模块,用于向桥接服务管理设备发送所述第一查询消息;所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息包括支持升级的桥接能力;The sending module is configured to send the first query message to a bridging service management device; the bridging service management device maintains capability information of each device in the Internet of Things; the capability information includes bridging capabilities that support upgrades;
    所述接收模块,用于接收所述桥接服务管理设备响应于所述第一查询消息返回的所述第一响应消息。The receiving module is configured to receive the first response message returned by the bridge service management device in response to the first query message.
  36. 根据权利要求21至35任一所述的装置,其特征在于,The device according to any one of claims 21 to 35, characterized in that:
    所述发送模块,还用于发送第二查询消息,所述第二查询消息用于查询具有或者支持升级所述第二桥接能力的设备;所述第二桥接能力是目标设备对应的物联网协议与指定物联网协议之间的桥接能力;The sending module is also used to send a second query message. The second query message is used to query a device that has or supports upgrading the second bridging capability; the second bridging capability is the Internet of Things protocol corresponding to the target device. Bridging capabilities to specified IoT protocols;
    所述发送模块,用于在未查询到具有或者支持升级所述第二桥接能力的设备的情况下,发送所述第一查询消息。The sending module is configured to send the first query message if a device that has or supports upgrading the second bridging capability is not found.
  37. 一种设备发现装置,其特征在于,所述装置用于第一设备中,所述装置包括:A device discovery device, characterized in that the device is used in a first device, and the device includes:
    接收模块,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;A receiving module, configured to receive a first query message sent by a configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a first Internet of Things protocol and other Internet of Things protocols. bridging capabilities;
    发送模块,用于在所述第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。A sending module, configured to send a first response message to the configuration device when the first device supports upgrading the first bridging capability; the first response message is used to indicate that the first device supports the upgrade. The first bridging capability, and the first bridging capability that the first device supports upgrading, is the bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  38. 根据权利要求37所述的装置,其特征在于,The device according to claim 37, characterized in that:
    所述第一查询消息中包含所述第一物联网协议的标识信息;The first query message includes identification information of the first Internet of Things protocol;
    所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
  39. 一种设备发现装置,其特征在于,所述装置用于桥接服务管理设备中,所述桥接服务管理设备中维护有物联网中的各个设备的能力信息;所述能力信息包括支持升级的桥接能力;所述装置包括:A device discovery device, characterized in that the device is used in a bridging service management device, and the bridging service management device maintains capability information of each device in the Internet of Things; the capability information includes bridging capabilities that support upgrades ;The device includes:
    接收模块,用于接收配置设备发送的第一查询消息,所述第一查询消息用于查询支持升级第一桥接能力的设备;所述第一桥接能力是第一物联网协议与其它物联网协议之间的桥接能力;A receiving module, configured to receive a first query message sent by a configuration device. The first query message is used to query a device that supports upgrading the first bridging capability; the first bridging capability is a first Internet of Things protocol and other Internet of Things protocols. bridging capabilities;
    发送模块,用于在所述各个设备中的第一设备支持升级所述第一桥接能力的情况下,向所述配置设备发送第一响应消息;所述第一响应消息用于指示所述第一设备支持升级所述第一桥接能力,且所述第一设备支持升级的所述第一桥接能力是所述第一物联网协议与第二物联网协议之间的桥接能力。A sending module, configured to send a first response message to the configuration device when the first device among the devices supports upgrading the first bridging capability; the first response message is used to indicate that the first response message A device supports upgrading the first bridging capability, and the first bridging capability supported by the first device is a bridging capability between the first Internet of Things protocol and the second Internet of Things protocol.
  40. 根据权利要求39所述的装置,其特征在于,The device according to claim 39, characterized in that:
    所述第一查询消息中包含所述第一物联网协议的标识信息;The first query message includes identification information of the first Internet of Things protocol;
    所述第一响应消息中包含所述第二物联网协议的标识信息。The first response message includes identification information of the second Internet of Things protocol.
  41. 一种计算机设备,其特征在于,所述计算机设备包括处理器、存储器和收发器;A computer device, characterized in that the computer device includes a processor, a memory and a transceiver;
    所述存储器中存储有计算机程序,所述处理器执行所述计算机程序,以使得所述计算机设备实现如上述权利要求1至20任一所述的设备发现方法。A computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the device discovery method as described in any one of claims 1 to 20.
  42. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至20任一所述的设备发现方法。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 device discovery method according to any one of claims 1 to 20.
  43. 一种芯片,其特征在于,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行如权利要求1至20任一所述的设备发现方法。A chip, characterized in that the chip is used to run in a computer device, so that the computer device executes the device discovery method according to any one of claims 1 to 20.
  44. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,并执行所述计算机指令,使得所述计算机设备执行如权利要求1至20任一所述的设备发现方法。A computer program product, characterized in that the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; and a processor of a computer device reads the computer instructions from the computer-readable storage medium. instructions, and execute the computer instructions, so that the computer device executes the device discovery method according to any one of claims 1 to 20.
  45. 一种计算机程序,其特征在于,所述计算机程序由计算机设备的处理器执行,以实现如权利要求1至20任一所述的设备发现方法。A computer program, characterized in that the computer program is executed by a processor of a computer device to implement the device discovery method according to any one of claims 1 to 20.
PCT/CN2022/104973 2022-07-11 2022-07-11 Device discovery methods and apparatuses, and device, storage medium and program product WO2024011367A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/104973 WO2024011367A1 (en) 2022-07-11 2022-07-11 Device discovery methods and apparatuses, and device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/104973 WO2024011367A1 (en) 2022-07-11 2022-07-11 Device discovery methods and apparatuses, and device, storage medium and program product

Publications (1)

Publication Number Publication Date
WO2024011367A1 true WO2024011367A1 (en) 2024-01-18

Family

ID=89535170

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/104973 WO2024011367A1 (en) 2022-07-11 2022-07-11 Device discovery methods and apparatuses, and device, storage medium and program product

Country Status (1)

Country Link
WO (1) WO2024011367A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102422600A (en) * 2009-05-08 2012-04-18 瑞典爱立信有限公司 An address resolution optimization procedure to effect a gradual cutover from a provider bridge network to a VPLS or provider backbone bridging network
CN104363153A (en) * 2014-11-20 2015-02-18 万高(杭州)科技有限公司 Internet of things, communication method oriented to internet of things, bridging device oriented to internet of things and access device
CN106888216A (en) * 2017-03-20 2017-06-23 烽火通信科技股份有限公司 Internet of Things bridge joint adaption system and method based on AllJoyn agreements
CN110286925A (en) * 2019-06-17 2019-09-27 高新兴物联科技有限公司 A kind of upgrade-system and upgrade method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102422600A (en) * 2009-05-08 2012-04-18 瑞典爱立信有限公司 An address resolution optimization procedure to effect a gradual cutover from a provider bridge network to a VPLS or provider backbone bridging network
CN104363153A (en) * 2014-11-20 2015-02-18 万高(杭州)科技有限公司 Internet of things, communication method oriented to internet of things, bridging device oriented to internet of things and access device
US20160150057A1 (en) * 2014-11-20 2016-05-26 Vango Technologies, Inc. Internet of things, communication method, bridge device and access device for internet of things
CN106888216A (en) * 2017-03-20 2017-06-23 烽火通信科技股份有限公司 Internet of Things bridge joint adaption system and method based on AllJoyn agreements
CN110286925A (en) * 2019-06-17 2019-09-27 高新兴物联科技有限公司 A kind of upgrade-system and upgrade method

Similar Documents

Publication Publication Date Title
US7564804B2 (en) Method of assigning addresses to a plurality of devices on a network and a network system therefor
CN105471686B (en) Terminal control method, device and system
CN110366153B (en) Bluetooth ad hoc network method
WO2022011563A1 (en) Internet of things configuration method and apparatus, computer device, and storage medium
CN111641997B (en) Equipment network access method and device based on Bluetooth Mesh network, and storage medium
CN111372222A (en) Device connection method and system, corresponding terminal device and server
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
US10489055B2 (en) Z-wave controller shift in thermostats
WO2024011367A1 (en) Device discovery methods and apparatuses, and device, storage medium and program product
CN113132958B (en) Fusion networking method, device, system and computer readable storage medium
US20230045914A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
CN111866856A (en) Mesh device control method and system, storage medium and electronic device
WO2023040678A1 (en) Information transmission method and apparatus, and electronic device, chip, storage medium, program and program product
CN111274319A (en) State information query method and device
CN112152850B (en) Internet of things equipment management method based on flash connection protocol and service terminal
WO2024011368A1 (en) Device discovery method and apparatus, device, storage medium, and program product
CN111010322B (en) Information configuration method and device, electronic equipment and storage medium
WO2024031681A1 (en) Device binding method and apparatus, and device, storage medium and program product
WO2023184559A1 (en) Device sharing method and apparatus, and device, storage medium and program product
CN117478449B (en) Control method and device of third party equipment, electronic equipment and medium
WO2023216035A1 (en) Security domain management method and apparatus, device, storage medium and program product
WO2023108653A1 (en) Subscription access information processing method and apparatus, computer device and storage medium
WO2023082113A1 (en) Method and apparatus for configuring bridging device, device, and storage medium
WO2023173364A1 (en) Device binding method and apparatus, and device, storage medium and program product
WO2023173366A1 (en) Device discovery method and apparatus, and device, storage medium and program product

Legal Events

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

Ref document number: 22950498

Country of ref document: EP

Kind code of ref document: A1