WO2023184560A1 - Device sharing method and apparatus, device, storage medium, and program product - Google Patents

Device sharing method and apparatus, device, storage medium, and program product Download PDF

Info

Publication number
WO2023184560A1
WO2023184560A1 PCT/CN2022/085182 CN2022085182W WO2023184560A1 WO 2023184560 A1 WO2023184560 A1 WO 2023184560A1 CN 2022085182 W CN2022085182 W CN 2022085182W WO 2023184560 A1 WO2023184560 A1 WO 2023184560A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
management device
request
uwb
pairing
Prior art date
Application number
PCT/CN2022/085182
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/085182 priority Critical patent/WO2023184560A1/en
Publication of WO2023184560A1 publication Critical patent/WO2023184560A1/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • This application relates to the technical field of the Internet of Things, and in particular to a device sharing method, device, equipment, storage medium and program product.
  • IoT Internet of Things
  • device sharing refers to a management device of an IoT device that opens control/management rights to the IoT device to another device, so that one IoT device can be controlled/managed by multiple management devices.
  • Embodiments of the present application provide a device sharing method, device, equipment, storage medium and program product.
  • the technical solutions are as follows:
  • embodiments of the present application provide a device sharing method, which is executed by a first management device.
  • the method includes:
  • embodiments of the present application provide a device sharing method, which is executed by a second management device.
  • the method includes:
  • the first pairing information is sent by the first management device according to the device information of the second management device;
  • a pairing connection is established with the target device.
  • embodiments of the present application provide a device sharing method, which is executed by a relay platform.
  • the method includes:
  • the second management device sends a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information, so that the second management device can The message establishes a pairing connection with the target device.
  • a device sharing device which includes:
  • a tag acquisition module used to acquire the UWB identification information of the second management device through ultra-wideband UWB;
  • a parsing module configured to parse the UWB identification information and obtain device information of the second management device
  • a sending module configured to send first pairing information to the second management device according to the device information of the second management device, and send second pairing information to the target device, so that the second management device and the target device The device establishes a pairing connection.
  • a device sharing device which includes:
  • a sending module configured to send the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner, so that the first management device can parse the UWB identification information and obtain the second management device. device information;
  • a receiving module configured to receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device;
  • a connection module configured to establish a pairing connection with the target device according to the first pairing information.
  • a device sharing device which includes:
  • a receiving module configured to receive a first request containing device information of a second management device and first pairing information; the first request is sent by the first management device according to the device information of the second management device;
  • the device information of the second management device is obtained by the first management device obtaining the UWB identification information of the second management device through ultra-wideband UWB and parsing the UWB identification information;
  • a sending module configured to send a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information, so that the second management device can The first pairing information establishes a pairing connection with the target device.
  • 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 sharing 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 sharing 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 sharing 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 executes the above device sharing method.
  • the present application provides a computer program, which is executed by a processor of a computer device to implement the above device sharing method.
  • the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then sends pairing information to the second management device and the target device respectively, so that the second management device and the target device
  • the target device establishes a pairing connection.
  • the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
  • Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application.
  • Figure 2 is a flow chart of a device sharing method provided by an embodiment of the present application.
  • Figure 3 is a flow chart of a device sharing method provided by an embodiment of the present application.
  • Figure 4 is a flow chart of a device sharing method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a device sharing method provided by an embodiment of the present application.
  • Figure 6 is a flow chart of a device sharing method provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of a device sharing sequence involved in the embodiment shown in Figure 6;
  • Figure 8 is a block diagram of a device sharing device provided by an embodiment of the present application.
  • Figure 9 is a block diagram of a device sharing device provided by an embodiment of the present application.
  • Figure 10 is a block diagram of a device sharing device provided by an embodiment of the present application.
  • Figure 11 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, a first management device 120, and a second management device 130; optionally, the network architecture of the Internet of Things also includes a relay platform 140.
  • the Internet of Things device 110 may be a device used to provide server functions corresponding to the Internet of Things protocol in the Internet of Things.
  • the source device can provide subscriptable resources to the outside world.
  • the IoT device 110 may be a smart home device, such as smart lamps, smart TVs, smart air conditioners, smart refrigerators, smart microwave ovens, smart rice cookers, sweeping robots, smart speakers, smart switches, and so on.
  • a smart home device such as smart lamps, smart TVs, smart air conditioners, smart refrigerators, smart microwave ovens, smart rice cookers, sweeping robots, smart speakers, smart switches, and so on.
  • 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 an intelligent monitoring device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
  • the Internet of Things device 110 may also be a user-side terminal device.
  • the IoT device 110 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a gateway, etc.; or the IoT device 110 can also be a personal computer, such as a desktop computer or a portable computer. , personal workstation, etc.
  • the first management device 120 and the second management device 130 may be user-side terminal devices.
  • the first management device 120 and the second management device 130 may be smartphones, tablets, smart watches, smart TVs, etc.
  • the first management device 120 or the second management device 130 may also be a client entity (which may be a virtual entity) running based on a terminal device.
  • the first management device 120 or the second management device 130 may be a virtual entity.
  • the device 130 may be an APP running on a smartphone for managing and configuring the Internet of Things device 110 .
  • the above-mentioned relay platform 140 may be a network-side server, a server cluster, or a cloud platform.
  • the first management device 120 and the second management device 130 may communicate with the relay platform 140 respectively.
  • the above-mentioned relay platform 140 may be a blockchain-based network system platform.
  • the above-mentioned Internet of Things device 110 may be an electronic device that meets the same or different Internet of Things protocols.
  • it may be an electronic device that meets the Matter under the Connectivity Standards Alliance (CSA) (or Zigbee Alliance). protocol (or connected home over IP Working Group (CHIP) project).
  • CSA Connectivity Standards Alliance
  • CHAP connected home over IP Working Group
  • Matter is an IP-based IoT connection standard that solves the compatibility, security and connectivity issues existing in the current smart home market. Matter defines the technical solution for configuring IoT devices, including steps such as device discovery, device authentication, device configuration, and device operation.
  • a management device such as mobile phone A
  • it can control/manage the IoT device. For example, taking the IoT device as a lighting device as an example, the management device can control the IoT device. Turn it on, off or adjust the brightness and more.
  • the management device can also open the control/management rights of the IoT device to another management device (such as another mobile phone B), so that the other management device can also configure, manage, and control the IoT device. Wait for operations.
  • Fabric is a security domain with an independent Root Certificate Authority (Certificate Authority, CA) that can issue certificates.
  • CA Root Certificate Authority
  • Admin A controls the Internet of Things device (referred to as the device) to enter the pairing mode
  • the operation process of Node being configured by Admin B of Fabric B can be as follows:
  • Admin A adds a new Admin to the device (the device has been configured by Admin A into the network) according to the user's intention.
  • Admin A generates the data required for pairing for the new Admin, including the identification information (discriminator) and password (passcode) required for pairing the device.
  • Admin A sends an Open Commissioning Window request to the device.
  • the parameters in the request include the timeout for opening the device pairing window and the verification code corresponding to the passcode (such as Password-based Authenticated Key).
  • Exchange Verifier, PAKE Verifier) the device's discriminator (used to allow other Fabric Admins to discover the device), Iterator (iterator), Salt (salt value), Passcode ID (password ID), etc.
  • the device returns the status of whether the pairing window is opened successfully to Admin A.
  • DNS-SD Domain Name System Service Discovery
  • Admin A shares the data in step S2 with Admin B.
  • Admin B can discover the device through Discriminator.
  • Admin B resolves the Internet Protocol (IP) address of the device and establishes an IP connection with it.
  • IP Internet Protocol
  • Admin B uses passcode to establish a PAKE secure connection with the device.
  • step S6 of the above solution when Admin A shares its configured Matter device with other Admins, it needs to regenerate the QR code or pairing code required for pairing the device, so that Other Admins pair devices by scanning the QR code or manually entering the pairing code, which makes the user operation process more cumbersome.
  • Figure 2 shows a flow chart of a device sharing method provided by an embodiment of the present application.
  • the method can be executed by a first management device.
  • the first management device can be in the network architecture shown in Figure 1
  • the first management device 120; the method may include the following steps:
  • Step 201 Obtain UWB identification information of the second management device through ultra-wideband UWB.
  • both the first management device and the second management device have an Ultra Wide Band (UWB) component, and the first management device can obtain the UWB identification information of the second management device through the UWB component.
  • UWB component is a component with a UWB communication function, which can scan the UWB identification information of other devices, or communicate with the UWB components of other devices.
  • the above-mentioned UWB identification information may be the UWB tag identification information of a built-in/external UWB tag of the device; for example, the above-mentioned UWB identification information may be the identification information of the UWB tag in the second management device, such as , which may be the UWB tag ID of the second management device.
  • the above-mentioned UWB identification information may be the UWB component identification information of a UWB component built into the device.
  • the above-mentioned first UWB identification information may be the UWB component ID of the UWB component in the second management device.
  • Step 202 Parse the UWB identification information to obtain device information of the second management device.
  • the UWB identification information of the second management device may be generated by mapping and encoding the device information of the second management device.
  • the first management device parses the UWB identification information, the first management device can obtain the first 2. Device information of management devices.
  • Step 203 Send first pairing information to the second management device according to the device information of the second management device.
  • the first pairing information is used to establish a pairing connection between the second management device and the target device.
  • the above-mentioned target device is an Internet of Things device that has been configured by the first management device.
  • the first management device obtains the device information of the second management device, which means that the first management device determines the target management device for device sharing. At this time, it can send a pairing message to the second management device.
  • the first pairing information used; and, the first management device can also provide the target device with the second pairing information used for pairing; after the second management device and the target device respectively obtain the pairing information sent by the first management device, they can A pairing connection is established between the two so that the second management device can configure, manage, and control the target device, thereby realizing the process of the first management device sharing the target device with the second management device.
  • the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then sends the information to the second management device.
  • the management device and the target device send pairing information respectively, so that the second management device and the target device establish a pairing connection.
  • the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
  • FIG 3 shows a flow chart of a device sharing method provided by an embodiment of the present application.
  • This method can be executed by a second management device.
  • the second management device can be in the network architecture shown in Figure 1
  • the second management device 130; the method may include the following steps:
  • Step 301 Send the UWB identification information of the second management device to the first management device in the ultra-wideband UWB mode, so that the first management device can parse the UWB identification information and obtain the device information of the second management device.
  • Step 302 Receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device.
  • Step 303 Establish a pairing connection with the target device according to the first pairing information.
  • the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then sends the information to the second management device.
  • the management device and the target device send pairing information respectively, and the second management device establishes a pairing connection with the target device based on the first pairing information.
  • the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
  • the first management device can send the first pairing information to the second management device through the relay platform.
  • FIG 4 shows a flow chart of a device sharing method provided by an embodiment of the present application.
  • This method can be executed by a relay platform.
  • the relay platform can be a middleware in the network architecture shown in Figure 1.
  • the method may include the following steps:
  • Step 401 Receive a first request containing device information of the second management device and first pairing information; the first request is sent by the first management device based on the device information of the second management device; the device information of the second management device is the second management device.
  • the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses the UWB identification information.
  • Step 402 Send a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information so that the second management device establishes a pairing connection with the target device based on the first pairing information.
  • the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then according to the second The device information of the management device is sent to the second management device through the relay platform, so that the second management device establishes a pairing connection with the target device based on the first pairing information.
  • the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
  • the embodiments shown in Figure 2 and Figure 3 can be used in combination, that is to say, the first management device can directly send the first pairing information to the second management device; for example, the first management device Based on the device information of the second management device, the first pairing information is sent to the second management device in a UWB manner.
  • FIG. 2 shows a schematic diagram of a device sharing framework provided by an embodiment of the present application.
  • the device sharing process can be as follows:
  • the second management device performs mapping and coding on its own device information in advance to obtain the UWB identification information of the second management device.
  • the first management device and the second management device respectively open the UWB component and approach each other. At this time, the first management device can obtain the UWB identification information of the second management device.
  • the first management device can obtain the device information of the second management device through analysis. At this time, the first management device can determine the target device for device sharing.
  • the first management device sends the device information of the second management device and the first pairing information to the relay platform.
  • the relay platform sends the first pairing information to the second management device according to the device information of the second management device.
  • S56 The first management device sends the second pairing information to the target device.
  • S57 The second management device and the target device establish a pairing connection according to the pairing information received respectively.
  • the second management device can configure, manage, control and other operations on the target device.
  • FIG. 6 shows a flow chart of a device sharing method provided by an embodiment of the present application.
  • the method can be interactively executed by the target device, the first management device, the second management device and the relay platform; for example, the target device can be the Internet of Things device 110 in the network architecture shown in Figure 1, and the first management device and the relay platform can be interactively executed.
  • the two management devices are respectively the first management device 120 and the second management device 130 in the network architecture shown in Figure 1; the relay platform may be the relay platform 140 in the network architecture shown in Figure 1; the method may include the following A few steps:
  • Step 601 The second management device encodes and maps the device information of the second management device to obtain the UWB identification information of the second management device.
  • the device information includes at least one of identification information (such as discriminator) and vendor identification information (such as vendor ID).
  • identification information such as discriminator
  • vendor identification information such as vendor ID
  • the second management device may encode and map its own device information to UWB identification information in advance according to a specified encoding mapping method, for example, map it to its own UWB tag ID.
  • Step 602 The first management device obtains the UWB identification information of the second management device through UWB; accordingly, the second management device sends the UWB identification information of the second management device to the first management device through UWB.
  • the first management device and the second management device belong to different security domain Fabrics.
  • the first management device and the second management device belong to the same security domain Fabric.
  • the first management device is a management device that has completed configuration of the target device.
  • the first management device and the second management device respectively open their own UWB modules.
  • the first management device opens the UWB scanning function to obtain data through UWB.
  • UWB identification information of the second management device UWB identification information of the second management device.
  • the first management device and the second management device being mobile phone 1 and mobile phone 2 respectively.
  • the user purchases the smart home device, he completes the configuration of the smart home device through mobile phone 1, and then wants to share the smart home device.
  • you can turn on the UWB function in mobile phone 1 and mobile phone 2, and bring mobile phone 1 and mobile phone 2 close to each other.
  • mobile phone 1 can receive the UWB Tag information of mobile phone 2.
  • Step 603 The first management device parses the UWB identification information to obtain device information of the second management device.
  • the first management device may use a decoding method corresponding to the above-specified encoding mapping method to parse the obtained UWB identification information to obtain the device information of the second management device.
  • the UWB identification information before parsing the UWB identification information and obtaining the device information of the second management device, it also includes:
  • Parse the UWB identification information to obtain the device information of the second management device including:
  • the UWB identification information is parsed to obtain the device information of the second management device.
  • the first management device needs to determine which management device to share the target device with through the obtained device information, and in the process of obtaining UWB identification information through UWB, the first management device may obtain multiple UWB devices. Therefore, the first management device needs to solve the problem of how to accurately determine that the second management device is the management device with which it wants to share the target device.
  • the first management device when the first management device obtains the UWB identification information of the second management device through UWB, it also obtains the first UWB measurement information between the second management device and the first management device. , when the first UWB measurement information meets the conditions, it is determined that the second management device is the management device that shares the target device with itself. At this time, the first management device performs parsing of the UWB identification information to obtain the device information of the second management device. step.
  • the first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
  • the first UWB measurement information may include at least one of angle information, distance information and signal strength information between the first management device and the second management device.
  • the above-mentioned first UWB measurement information may change as the relative positional relationship between the first management device and the second management device changes (including relative angle relationship, distance relationship, and whether there are obstacles).
  • the above-mentioned first UWB measurement information may be obtained by measurement by the second management device, or the above-mentioned first UWB measurement information may be obtained by measurement by the first management device.
  • the above-mentioned first UWB measurement information may be obtained by joint measurement by the first management device and the second management device.
  • part of the above-mentioned first UWB measurement information is obtained by measurement by the second management device, and other part of the information is obtained by measurement by the first management device; or, the above-mentioned first UWB measurement information may be obtained by the second management device and the first management device. The average result of the respective measurements.
  • the first condition includes at least one of the following conditions:
  • the first management device when the first management device obtains the UWB identification information of the second management device, and the first UWB measurement information indicates that the first management device is currently within the first angle interval in front of the second management device, then Determine that the second management device is the management device that shares the target device with itself.
  • the first management device can be moved in front of the second management device, or the second management device can be moved to in front of the first management device to ensure that the first management device is currently within the first angle interval in front of the second management device.
  • the first management device when the first management device obtains the UWB identification information of the second management device, and the first UWB measurement information indicates that the first management device is currently within the first distance interval around the second management device, then It can be determined that the second management device is the management device that shares the target device with itself.
  • the first management device and the second management device can be brought close to each other to ensure that the first management device is currently in the second management device. Within the first distance interval around the management device.
  • the signal strength indicated by the first signal strength information is within the first signal strength interval.
  • the first management device when the first management device obtains the UWB identification information of the second management device, and the signal strength indicated by the first UWB measurement information is within the first signal strength interval (for example, the first UWB measurement information indicates When the signal strength is greater than the first signal strength threshold), it can be determined that the second management device is the management device that shares the target device with itself.
  • Step 604 The first management device sends a first request to the relay platform, where the first request includes the first pairing information and the device information of the second management device; the relay platform receives the first request.
  • the above-mentioned relay platform may be a blockchain-based network platform.
  • the above-mentioned relay platform may be a service platform on the network side.
  • the relay platform is an encrypted and secure distributed network (Distributed Compliance Ledger, DCL) platform built based on blockchain technology;
  • DCL Distributed Compliance Ledger
  • the above-mentioned first management device sends a first request to the relay platform, including:
  • the first management device can query the DCL platform corresponding to the second management device according to the manufacturer identification information (such as vendor ID) in the device information of the second management device, and query the DCL platform.
  • the observation node (Observer Node, ON) corresponding to the first management device sends the first request.
  • Step 605 The relay platform sends a second request to the second management device according to the device information of the second management device; accordingly, the second management device receives the second request sent by the relay platform and includes the first pairing information.
  • the DCL platform may include a first observation node corresponding to the first management device, a first verification node corresponding to the first management device, a second observation node corresponding to the second management device, and a second management device.
  • the relay platform When the relay platform receives the first request including the device information of the second management device and the first pairing information, it can receive the first request through the first observation node; and forward the first request to the first verification through the first observation node. Node; synchronizes the first request to the second verification node through the first verification node; and then sends the first request to the second observation node through the second verification node.
  • the relay platform When the relay platform sends the second request to the second management device according to the device information of the second management device, it may send the second request to the second management device according to the device information of the second management device through the second observation node.
  • the second management device can receive the second request sent by the observation node corresponding to the second management device in the DCL platform.
  • the DCL platform includes observation nodes ON and verification nodes (Validator Node, VN) of each equipment manufacturer. Among them, the data between the VNs of various equipment manufacturers in the DCL platform will be synchronized.
  • the first management device may send the first request to the ON of the device manufacturer of the first management device, and the ON of the device manufacturer of the first management device transmits the first request to the device of the first management device. Then, the first request will be synchronized to the VN of the device manufacturer of the second management device, and then the VN of the device manufacturer of the second management device will pass the first request to the device manufacturer of the second management device. ON.
  • the above-mentioned relay platform may also be another network platform other than the DCL platform.
  • the first request and the second request also include device information of the first management device.
  • the first management device when the first management device sends the first pairing information to the second management device, it may also send the device information of the first management device to the second management device.
  • the second management device can determine which device sent the request based on the device information of the first management device in the second request; or, the second management device can determine which device sent the request based on the second request.
  • the device information of the first management device in the device is used to verify the legality of the second request.
  • Step 606 The first management device sends the second pairing information to the target device.
  • the first management device may also send the second pairing information to the target device to be shared through the Internet of Things.
  • the first management device sends the second pairing information to the target device, including: sending a pairing window opening request to the target device, where the pairing window opening request includes the second pairing information.
  • the first management device can send the second pairing information to the target device through an open pairing window request (such as an Open Commissioning Window request) in the Internet of Things protocol.
  • an open pairing window request such as an Open Commissioning Window request
  • Step 607 The second management device establishes a pairing connection with the target device.
  • the second management device and the target device after their respective pairing information, they can establish a pairing connection according to the pairing specification of the Internet of Things protocol. After that, the second management device can configure the target device. Management, control and other operations.
  • FIG. 7 shows a schematic diagram of device sharing timing according to an embodiment of the present application.
  • the first management device is mobile phone 1 that contains the configurator (such as Admin1 in Matter APP)
  • the second management device is mobile phone 2 that contains the configurator (such as Admin2 in Matter APP).
  • the target device is referred to as Taking the device as an example, Admin1 and Admin2 can be different Admins under the same Fabric, or they can be different Admins under different Fabrics.
  • the device sharing process shown in Figure 7 can be as follows:
  • the configurator Admin1 completes the configuration of the device.
  • mobile phone 2 establishes the mapping between the device information of the mobile phone Matter APP and the UWB tag.
  • the Matter APP device information includes discriminator (identification information) and vendor ID (vendor identification) information that can be recognized by other Matter devices.
  • Mobile phone 2 encodes and maps the discriminator and vendor ID to obtain the UWB tag ID. This step can also be called establishing the discriminator and the mapping relationship between vendor ID and UWB tag ID.
  • S74 Mobile phone 1 obtains the UWB identification information of mobile phone 2 through UWB.
  • mobile phone 2 returns UWB tag ID, angle, distance and other information.
  • mobile phone 1 determines whether the UWB tag angle and distance are within a reasonable range for discovering the device, and locks mobile phone 2 if it is within the range.
  • mobile phone 1 parses the vendor ID and discriminator information of mobile phone 2 from the UWB tag.
  • Admin1 of the mobile phone 1 APP selects the device to be shared, and generates the information required for pairing for the device (corresponding to the above-mentioned first pairing information).
  • the information required for the above pairing can include passcode, discriminator, vendor ID, product ID (product ID) and other information.
  • Admin1 of the mobile phone 1 APP sends a request to open the pairing window to the device, carrying the information required for pairing.
  • Admin1 of mobile phone 1 APP finds the DCL server address of mobile phone 2 through the vendor ID.
  • Matter device enters pairing mode.
  • Admin1 of mobile phone 1 APP sends a request to share the device with mobile phone 2 to mobile phone 1 ON, carrying mobile phone 1 device information, mobile phone 2 vendor ID, discriminator information and pairing information required to establish pairing with the shared device (corresponding to the above-mentioned second pairing information).
  • the device information of mobile phone 1 may include the vendor ID, version, name and other information of the APP in mobile phone 1.
  • the above pairing information can include passcode, discriminator, vendor ID, product ID (product ID) and other information.
  • ON belongs to the cloud node responsible for observation in DCL and is connected to VN. There is no connection between ONs between different companies or manufacturers. ONs of the same manufacturer access VNs of the same manufacturer.
  • VN belongs to the cloud node responsible for verification in DCL and is connected to ON and VN. Among them, VNs from different manufacturers are securely connected to each other using blockchain technology.
  • mobile phone 1 VN locates mobile phone 2 VN through the vendor ID of mobile phone 2.
  • mobile phone 2 VN sends the request in S715 to mobile phone 2 ON.
  • mobile phone 2 ON locates the APP of mobile phone 2 through the discriminator.
  • mobile phone 2 ON sends a shared device request (corresponding to the above-mentioned second request) to the mobile phone 2 APP, carrying the information required for pairing the device and the device information of mobile phone 1.
  • mobile phone 2 APP Admin2 listens to the request from the shared device of ON, uses the device information of mobile phone 1 to know who sent the request to share the device, and knows which device to pair with through the pairing information required for the paired device. A request is received to start pairing with the device.
  • mobile phone 2 APP Admin2 establishes a pairing connection with the device.
  • the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then according to the second management device
  • the device information of the device sends the first pairing information to the second management device through the relay platform, so that the second management device establishes a pairing connection with the target device based on the first pairing information.
  • the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
  • FIG. 8 shows a block diagram of a device sharing device provided by an embodiment of the present application.
  • the device sharing device 800 has the function of being executed by the first management device in implementing the method shown in FIG. 2 or FIG. 6 .
  • the device sharing device 800 may include:
  • the tag acquisition module 801 is used to acquire the UWB identification information of the second management device through ultra-wideband UWB;
  • the parsing module 802 is used to parse the UWB identification information and obtain the device information of the second management device;
  • Sending module 803, configured to send first pairing information to the second management device according to the device information of the second management device, where the first pairing information is used to establish pairing between the second management device and the target device. connect.
  • the device information includes at least one of identification information and manufacturer identification information.
  • the device further includes:
  • a measurement information acquisition module configured to obtain the first UWB measurement information with the second management device before the parsing module 802 parses the UWB identification information and obtains the device information of the second management device.
  • the parsing module 802 is configured to parse the UWB identification information to obtain device information of the second management device when the first UWB measurement information satisfies the first condition.
  • the first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
  • the first condition includes at least one of the following conditions:
  • the angle indicated by the first angle information is within the first angle interval
  • the distance indicated by the first distance information is within a first distance interval
  • the signal strength indicated by the first signal strength information is within a first signal strength interval.
  • the first management device and the second management device belong to different security domain Fabrics.
  • the sending module 803 is configured to send a first request to the relay platform, where the first request includes the first pairing information and the device information of the second management device, So that the relay platform sends a second request to the second management device according to the device information of the second management device; the second request includes the first pairing information.
  • the relay platform is an encrypted and secure distributed network DCL platform built based on blockchain technology; the sending module 803 is used to,
  • the first request and the second request also include device information of the first management device.
  • the sending module 803 is also configured to send a request to open a pairing window to the target device, where the request to open a pairing window includes second pairing information; the second pairing information is used to The target device establishes a pairing connection with the second management device.
  • FIG. 9 shows a block diagram of a device sharing device provided by an embodiment of the present application.
  • the device sharing device 900 has the function of being executed by the second management device in implementing the method shown in FIG. 3 or FIG. 6 .
  • the device sharing device 900 may include:
  • the sending module 901 is configured to send the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner, so that the first management device can parse the UWB identification information and obtain the second management device.
  • Device information of the device
  • Receiving module 902 configured to receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device;
  • the connection module 903 is configured to establish a pairing connection with the target device according to the first pairing information.
  • the device information includes at least one of identification information and manufacturer identification information.
  • the receiving module 902 is configured to receive a second request containing the first pairing information sent by the relay platform; the second request is a response received by the relay platform containing The first pairing information and the device information of the second management device are sent according to the device information of the second management device after the first request.
  • the relay platform is a DCL platform
  • the receiving module 902 is configured to receive the second request sent by the observation node corresponding to the second management device in the DCL platform.
  • the first request and the second request also include device information of the first management device.
  • the device further includes:
  • An encoding module configured to encode and map the device information of the second management device before the sending module sends the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner to obtain the UWB identification information of the second management device.
  • FIG 10 shows a block diagram of a device sharing device provided by an embodiment of the present application.
  • the device sharing device 1000 has the function of being executed by a relay platform in the method shown in Figure 4 or Figure 6; the relay platform can be a service platform on the network side, such as a DCL platform.
  • the device sharing device 1000 may include:
  • the receiving module 1001 is configured to receive a first request containing device information of a second management device and first pairing information; the first request is sent by the first management device according to the device information of the second management device;
  • the device information of the second management device is obtained by the first management device obtaining the UWB identification information of the second management device through ultra-wideband UWB and parsing the UWB identification information;
  • Sending module 1002 configured to send a second request to the second management device according to the device information of the second management device; the second request includes the first pairing information so that the second management device Establish a pairing connection with the target device according to the first pairing information.
  • the relay platform includes a first observation node corresponding to the first management device, a first verification node corresponding to the first management device, and a third node corresponding to the second management device. two observation nodes and a second verification node corresponding to the second management device;
  • the receiving module 1001 is used to,
  • the sending module 1002 is configured to send the second request to the second management device through the second observation node according to the device information of the second management device.
  • the first request and the second request also include device information of the first management device.
  • the computer device 1100 may include a processor 1101, a receiver 1102, a transmitter 1103, a memory 1104, and a bus 1105.
  • the processor 1101 includes one or more processing cores.
  • the processor 1101 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1102 and the transmitter 1103 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.
  • the memory 1104 is connected to the processor 1101 through a bus 1105.
  • the memory 1104 can be used to store a computer program, and the processor 1101 is used to execute the computer program to implement various steps in the above method embodiments.
  • memory 1104 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 1100 is implemented as a first management device, the transceiver is configured to obtain UWB identification information of the second management device through ultra-wideband UWB; and the processor is configured to The UWB identification information is parsed to obtain the device information of the second management device; the transceiver is also used to send the first pairing information to the second management device according to the device information of the second management device, and sending second pairing information to the target device so that the second management device establishes a pairing connection with the target device.
  • the process performed by the processor and/or transceiver in the computer device 1100 may refer to the various steps performed by the first management device in the method shown in any one of the above-mentioned FIG. 2 or FIG. 6 .
  • the transceiver when the computer device 1100 is implemented as a second management device, the transceiver is configured to send the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner, so that the first management device parses the UWB identification information and obtains device information of the second management device; receives first pairing information; the first pairing information is obtained by the first management device according to the third The device information of the second management device is sent; the processor is configured to establish a pairing connection with the target device according to the first pairing information.
  • the process performed by the processor and/or transceiver in the computer device 1100 may refer to the various steps performed by the second management device in the method shown in either of the above-mentioned FIG. 3 or FIG. 6 .
  • the transceiver when the computer device 1100 is implemented as a relay platform, the transceiver is configured to receive a first request containing device information of the second management device and first pairing information; the first The request is sent by the first management device based on the device information of the second management device; the device information of the second management device is that the first management device obtains the UWB identification of the second management device through ultra-wideband UWB. information and obtain it by parsing the UWB identification information; sending a second request to the second management device according to the device information of the second management device; the second request includes the first pairing information , so that the second management device establishes a pairing connection with the target device according to the first pairing information.
  • the process performed by the processor and/or the transceiver in the computer device 1100 may refer to the various steps performed by the relay platform in the method shown in either FIG. 4 or FIG. 6 .
  • 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 FIG. 2, FIG. 3, FIG. 4 or FIG. 6.
  • all or part of the steps are performed by the first management device, the second management device or the relay platform.
  • This application also provides a chip, which is used to run in a computer device, so that the computer device executes the method shown in Figure 2, Figure 3, Figure 4 or Figure 6, and the first management device, the second All or part of the steps performed by the management device or relay platform.
  • 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 FIG. 2, FIG. 3, FIG. 4 or FIG. 6, and the first manager All or part of the steps performed by the device, the second management device or the relay platform.
  • This application also provides a computer program, which is executed by a processor of a computer device to implement the method shown in Figure 2, Figure 3, Figure 4 or Figure 6, in which the first management device, the second management device All or part of the steps performed by the device or relay platform.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A device sharing method and apparatus, a device, a storage medium, and a program product, relating to the technical field of Internet of Things. The method comprises: acquiring ultra-wideband (UWB) identification information of a second management device in a UWB manner (201); parsing the UWB identification information to obtain device information of the second management device (202); and sending first pairing information to the second management device according to the device information of the second management device (203), the first pairing information being used for establishing a pairing connection between the second management device and a target device. The solution simplifies the device sharing process in an Internet of Things scenario, and improves the device sharing efficiency.

Description

设备分享方法、装置、设备、存储介质及程序产品Equipment sharing 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 sharing 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 fields such as smart homes and industrial production.
在物联网中,通常会涉及到设备分享的场景。其中,设备分享是指物联网设备的管理设备,向另一个设备开放对该物联网设备的控制/管理权限,从而使得一个物联网设备可以被多个管理设备进行控制/管理。In the Internet of Things, it usually involves device sharing scenarios. Among them, device sharing refers to a management device of an IoT device that opens control/management rights to the IoT device to another device, so that one IoT device can be controlled/managed by multiple management devices.
发明内容Contents of the invention
本申请实施例提供了一种设备分享方法、装置、设备、存储介质及程序产品。所述技术方案如下:Embodiments of the present application provide a device sharing 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 sharing method, which is executed by a first management device. The method includes:
通过超宽带UWB方式获取第二管理设备的UWB标识信息;Obtain the UWB identification information of the second management device through ultra-wideband UWB;
对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;Parse the UWB identification information to obtain device information of the second management device;
根据所述第二管理设备的设备信息,向所述第二管理设备发送第一配对信息,以及,向目标设备发送第二配对信息,以便所述第二管理设备与所述目标设备建立配对连接。sending first pairing information to the second management device according to the device information of the second management device, and sending second pairing information to the target device, so that the second management device establishes a pairing connection with the target device .
一方面,本申请实施例提供了一种设备分享方法,所述方法由第二管理设备执行,所述方法包括:On the one hand, embodiments of the present application provide a device sharing method, which is executed by a second management device. The method includes:
通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息,以便所述第一管理设备对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;Send the UWB identification information of the second management device to the first management device in the ultra-wideband UWB mode, so that the first management device parses the UWB identification information and obtains the device information of the second management device;
接收第一配对信息;所述第一配对信息是所述第一管理设备根据所述第二管理设备的设备信息发送的;Receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device;
根据所述第一配对信息,与目标设备建立配对连接。According to the first pairing information, a pairing connection is established with the target device.
一方面,本申请实施例提供了一种设备分享方法,所述方法由中继平台执行,所述方法包括:On the one hand, embodiments of the present application provide a device sharing method, which is executed by a relay platform. The method includes:
接收包含第二管理设备的设备信息以及第一配对信息的第一请求;所述第一请求是第一管理设备根据所述第二管理设备的设备信息发送的;所述第二管理设备的设备信息是所述第一管理设备通过超宽带UWB方式获取所述第二管理设备的UWB标识信息,并对所述UWB标识信息进行解析得到的;Receive a first request containing device information of a second management device and first pairing information; the first request is sent by the first management device according to the device information of the second management device; the device of the second management device The information is obtained by the first management device obtaining the UWB identification information of the second management device through ultra-wideband UWB and parsing the UWB identification information;
根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息,以便所述第二管理设备根据所述第一配对信息与目标设备建立配对连接。Send a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information, so that the second management device can The message establishes a pairing connection with the target device.
另一方面,本申请实施例提供了一种设备分享装置,所述装置包括:On the other hand, embodiments of the present application provide a device sharing device, which includes:
标签获取模块,用于通过超宽带UWB方式获取第二管理设备的UWB标识信息;A tag acquisition module, used to acquire the UWB identification information of the second management device through ultra-wideband UWB;
解析模块,用于对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;A parsing module, configured to parse the UWB identification information and obtain device information of the second management device;
发送模块,用于根据所述第二管理设备的设备信息向所述第二管理设备发送第一配对信息,以及,向目标设备发送第二配对信息,以便所述第二管理设备与所述目标设备建立配对 连接。A sending module, configured to send first pairing information to the second management device according to the device information of the second management device, and send second pairing information to the target device, so that the second management device and the target device The device establishes a pairing connection.
另一方面,本申请实施例提供了一种设备分享装置,所述装置包括:On the other hand, embodiments of the present application provide a device sharing device, which includes:
发送模块,用于通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息,以便所述第一管理设备对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;A sending module configured to send the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner, so that the first management device can parse the UWB identification information and obtain the second management device. device information;
接收模块,用于接收第一配对信息;所述第一配对信息是所述第一管理设备根据所述第二管理设备的设备信息发送的;A receiving module, configured to receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device;
连接模块,用于根据所述第一配对信息,与目标设备建立配对连接。A connection module, configured to establish a pairing connection with the target device according to the first pairing information.
另一方面,本申请实施例提供了一种设备分享装置,所述装置包括:On the other hand, embodiments of the present application provide a device sharing device, which includes:
接收模块,用于接收包含第二管理设备的设备信息以及第一配对信息的第一请求;所述第一请求是第一管理设备根据所述第二管理设备的设备信息发送的;所述第二管理设备的设备信息是所述第一管理设备通过超宽带UWB方式获取所述第二管理设备的UWB标识信息,并对所述UWB标识信息进行解析得到的;A receiving module, configured to receive a first request containing device information of a second management device and first pairing information; the first request is sent by the first management device according to the device information of the second management device; The device information of the second management device is obtained by the first management device obtaining the UWB identification information of the second management device through ultra-wideband UWB and parsing the UWB identification information;
发送模块,用于根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息,以便所述第二管理设备根据所述第一配对信息与目标设备建立配对连接。A sending module, configured to send a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information, so that the second management device can The first pairing information establishes a pairing connection with the target device.
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述设备分享方法。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 sharing method.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述设备分享方法。On the other hand, 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 sharing 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 sharing 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 executes the above device sharing 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 sharing method.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided by the embodiments of this application can bring the following beneficial effects:
第一管理设备通过超宽带UWB方式获取第二管理设备的UWB标识信息并解析,获得第二管理设备的设备信息,然后向第二管理设备和目标设备分别发送配对信息,以便第二管理设备和目标设备建立配对连接。上述过程中,第一管理设备的用户不需要向第二管理设备的用户提供二维码或者配对码等信息,即可以将目标设备分享给第二管理设备,从而简化了设备分享过程中的用户操作步骤,提高了设备分享的效率。The first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then sends pairing information to the second management device and the target device respectively, so that the second management device and the target device The target device establishes a pairing connection. In the above process, the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图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 flow chart of a device sharing method provided by an embodiment of the present application;
图3是本申请一个实施例提供的设备分享方法的流程图;Figure 3 is a flow chart of a device sharing method provided by an embodiment of the present application;
图4是本申请一个实施例提供的设备分享方法的流程图;Figure 4 is a flow chart of a device sharing method provided by an embodiment of the present application;
图5是本申请一个实施例提供的设备分享方法的流程图;Figure 5 is a flow chart of a device sharing method provided by an embodiment of the present application;
图6是本申请一个实施例提供的设备分享方法的流程图;Figure 6 is a flow chart of a device sharing method provided by an embodiment of the present application;
图7是图6所示实施例涉及的一种设备分享时序示意图;Figure 7 is a schematic diagram of a device sharing sequence involved in the embodiment shown in Figure 6;
图8是本申请一个实施例提供的设备分享装置的框图;Figure 8 is a block diagram of a device sharing device provided by an embodiment of the present application;
图9是本申请一个实施例提供的设备分享装置的框图;Figure 9 is a block diagram of a device sharing device provided by an embodiment of the present application;
图10是本申请一个实施例提供的设备分享装置的框图;Figure 10 is a block diagram of a device sharing device provided by an embodiment of the present application;
图11是本申请一个实施例提供的计算机设备的结构示意图。Figure 11 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and 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、第一管理设备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, a first management device 120, and a second management device 130; optionally, the network architecture of the Internet of Things also includes a relay platform 140.
物联网设备110可以是在物联网中,用于提供物联网协议对应的服务端功能的设备。源设备可以对外提供可订阅的资源。The Internet of Things device 110 may be a device used to provide server functions corresponding to the Internet of Things protocol in the Internet of Things. The source device can provide subscriptable resources to the outside world.
比如,物联网设备110可以是智能家居设备,例如,智能灯具、智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人、智能音箱、智能开关等等。For example, the IoT device 110 may be a smart home device, such as smart lamps, smart TVs, smart air conditioners, smart refrigerators, smart microwave ovens, smart rice cookers, sweeping robots, smart speakers, smart switches, and so on.
或者,物联网设备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 an intelligent monitoring device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
在一种可能的实现方式中,物联网设备110也可以是用户侧的终端设备。比如,物联网设备110可以是智能控制器、智能遥控器、智能手机、平板电脑、智能手表、智能电视、网关等等;或者,物联网设备110也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。In a possible implementation, the Internet of Things device 110 may also be a user-side terminal device. For example, the IoT device 110 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a gateway, etc.; or the IoT device 110 can also be a personal computer, such as a desktop computer or a portable computer. , personal workstation, etc.
第一管理设备120和第二管理设备130可以是用户侧的终端设备。比如,第一管理设备120和第二管理设备130可以是智能手机、平板电脑、智能手表、智能电视等等。The first management device 120 and the second management device 130 may be user-side terminal devices. For example, the first management device 120 and the second management device 130 may be smartphones, tablets, smart watches, smart TVs, etc.
在另一种可能的实现方式中,第一管理设备120或第二管理设备130也可以是基于终端设备运行的客户端实体(可以是虚拟实体),例如,第一管理设备120或第二管理设备130可以是运行在智能手机中,用于对物联网设备110进行管理配置的APP。In another possible implementation, the first management device 120 or the second management device 130 may also be a client entity (which may be a virtual entity) running based on a terminal device. For example, the first management device 120 or the second management device 130 may be a virtual entity. The device 130 may be an APP running on a smartphone for managing and configuring the Internet of Things device 110 .
上述中继平台140可以是网络侧的服务器、服务器集群或者云端平台。The above-mentioned relay platform 140 may be a network-side server, a server cluster, or a cloud platform.
第一管理设备120和第二管理设备130可以分别与中继平台140通信。The first management device 120 and the second management device 130 may communicate with the relay platform 140 respectively.
在一种可能的实现方式中,上述中继平台140可以是基于区块链的网络系统平台。In a possible implementation, the above-mentioned relay platform 140 may be a blockchain-based network system platform.
在本申请实施例中,上述物联网设备110可以是满足相同或者不同的物联网协议的电子设备,比如,可以是满足连接标准联盟(Connectivity Standards Alliance,CSA)(或称Zigbee联盟)下的Matter协议(或称通过IP(Internet Protocol,网际互联协议)连接家庭工作组(Connected Home over IP Working Group,CHIP)项目)的电子设备。In this embodiment of the present application, the above-mentioned Internet of Things device 110 may be an electronic device that meets the same or different Internet of Things protocols. For example, it may be an electronic device that meets the Matter under the Connectivity Standards Alliance (CSA) (or Zigbee Alliance). protocol (or connected home over IP Working Group (CHIP) project).
Matter是一种基于IP的物联网连接标准,解决当下智能家居市场存在的兼容性、安全性和连接性等问题。Matter定义了配置物联网设备的技术方案,包括设备发现、设备认证、设备配置和设备操作等步骤。Matter is an IP-based IoT connection standard that solves the compatibility, security and connectivity issues existing in the current smart home market. Matter defines the technical solution for configuring IoT devices, including steps such as device discovery, device authentication, device configuration, and device operation.
其中,一个管理设备(比如手机A)对物联网设备配置完成后,即可以对该物联网设备 进行控制/管理,比如,以物联网设备是灯光设备为例,管理设备可以控制该物联网设备打开、关闭或者调整亮度等等。此外,该管理设备还可以将该物联网设备的控制/管理的权限开放给另一管理设备(比如另一个手机B),使得另一管理设备也可以对该物联网设备进行配置、管理、控制等操作。Among them, after a management device (such as mobile phone A) completes the configuration of the IoT device, it can control/manage the IoT device. For example, taking the IoT device as a lighting device as an example, the management device can control the IoT device. Turn it on, off or adjust the brightness and more. In addition, the management device can also open the control/management rights of the IoT device to another management device (such as another mobile phone B), so that the other management device can also configure, manage, and control the IoT device. Wait for operations.
Fabric是具有独立Root证书颁发机构(Certificate Authority,CA),能够签发证书的安全域。以管理设备A(Admin A)向另一个Fabric中的管理设备B(Admin B)分享为例,在本申请实施例提供的一种方案中,Admin A控制物联网设备(简称为设备)进入配对模式,且Node被Fabric B的Admin B配置的操作流程可以如下:Fabric is a security domain with an independent Root Certificate Authority (Certificate Authority, CA) that can issue certificates. Take the management device A (Admin A) sharing to the management device B (Admin B) in another Fabric as an example. In a solution provided by the embodiment of this application, Admin A controls the Internet of Things device (referred to as the device) to enter the pairing mode, and the operation process of Node being configured by Admin B of Fabric B can be as follows:
S1,Admin A根据用户意图,为设备(该设备已经由Admin A配置到网络中)添加新的Admin。S1, Admin A adds a new Admin to the device (the device has been configured by Admin A into the network) according to the user's intention.
S2,Admin A为新的Admin生成配对所需的数据,包括配对设备所需的鉴别信息(discriminator)和密码(passcode)。S2, Admin A generates the data required for pairing for the new Admin, including the identification information (discriminator) and password (passcode) required for pairing the device.
S3,Admin A向设备发送Open Commissioning Window的请求,请求中所带参数包括设备配对窗口打开的超时时间timeout、与passcode对应的校验码(比如口令认证密钥交换验证码(Password-based Authenticated Key Exchange Verifier,PAKE Verifier))、设备的discriminator(用于让其他Fabric的Admin发现该设备)、Iterator(迭代器)、Salt(盐值)、Passcode ID(密码ID)等等。S3, Admin A sends an Open Commissioning Window request to the device. The parameters in the request include the timeout for opening the device pairing window and the verification code corresponding to the passcode (such as Password-based Authenticated Key). Exchange Verifier, PAKE Verifier)), the device's discriminator (used to allow other Fabric Admins to discover the device), Iterator (iterator), Salt (salt value), Passcode ID (password ID), etc.
S4,设备返回配对窗口是否打开成功的状态给Admin A。S4, the device returns the status of whether the pairing window is opened successfully to Admin A.
S5,设备配对窗口打开后开始进行域名系统服务发现(Domain Name System Service Discovery,DNS-SD)广播,其中包含discriminator数据。S5, after the device pairing window opens, Domain Name System Service Discovery (DNS-SD) broadcast begins, which contains discriminator data.
S6,Admin A将S2步骤中的数据共享给Admin B。S6, Admin A shares the data in step S2 with Admin B.
S7,Admin B获取到S6中数据。S7, Admin B obtains the data in S6.
S8,Admin B可通过Discriminator发现设备。S8, Admin B can discover the device through Discriminator.
S9,Admin B解析设备的网协(Internet Protocol,IP)地址,并与之建立IP连接。S9, Admin B resolves the Internet Protocol (IP) address of the device and establishes an IP connection with it.
S10,Admin B使用passcode与设备建立PAKE安全连接。S10, Admin B uses passcode to establish a PAKE secure connection with the device.
S11,建立PAKE(通过密钥建立安全会话,这里的密钥就是passcode)安全连接后进行设备认证和互操作证书请求,最终建立CASE(Certificate Authenticated Session Establishment,基于证书认证的安全会话建立)安全会话,这里的证书就是Admin对应的Fabric为设备生成的证书。S11, establish a PAKE (secure session through key, the key here is passcode) secure connection, perform device authentication and interoperability certificate request, and finally establish a CASE (Certificate Authenticated Session Establishment, secure session establishment based on certificate authentication) secure session , the certificate here is the certificate generated for the device by Admin's corresponding Fabric.
以上述方案应用于Matter系统为例,在上述方案中的步骤S6中,Admin A将其配置的Matter设备分享给其他Admin时,需要为设备重新生成配对所需的二维码或者配对码,让其他Admin通过扫描二维码或者手动输入配对码的方式对设备进行配对,用户操作过程较为繁琐。Taking the above solution applied to the Matter system as an example, in step S6 of the above solution, when Admin A shares its configured Matter device with other Admins, it needs to regenerate the QR code or pairing code required for pairing the device, so that Other Admins pair devices by scanning the QR code or manually entering the pairing code, which makes the user operation process more cumbersome.
而本申请实施例后续提供的方案,可以简化设备分享过程中的用户操作,提高设备分享的效率。The solutions provided later in the embodiments of this application can simplify user operations in the device sharing process and improve the efficiency of device sharing.
请参考图2,其示出了本申请一个实施例提供的设备分享方法的流程图,该方法可以由第一管理设备执行,比如,该第一管理设备可以是图1所示的网络架构中的第一管理设备120;该方法可以包括如下几个步骤:Please refer to Figure 2, which shows a flow chart of a device sharing method provided by an embodiment of the present application. The method can be executed by a first management device. For example, the first management device can be in the network architecture shown in Figure 1 The first management device 120; the method may include the following steps:
步骤201,通过超宽带UWB方式获取第二管理设备的UWB标识信息。Step 201: Obtain UWB identification information of the second management device through ultra-wideband UWB.
在本申请实施例中,第一管理设备和第二管理设备都具有超宽带(Ultra Wide Band,UWB)组件,第一管理设备可以通过UWB组件,获取第二管理设备的UWB标识信息。其中,上述UWB组件是具有UWB通信功能的组件,其可以扫描其它设备的UWB标识信息,或者,与其它设备的UWB组件进行通信。In this embodiment of the present application, both the first management device and the second management device have an Ultra Wide Band (UWB) component, and the first management device can obtain the UWB identification information of the second management device through the UWB component. Wherein, the above-mentioned UWB component is a component with a UWB communication function, which can scan the UWB identification information of other devices, or communicate with the UWB components of other devices.
在一种可能的实现方式中,上述UWB标识信息,可以是设备内置/外接的UWB标签的 UWB标签标识信息;比如,上述UWB标识信息可以是第二管理设备中的UWB标签的标识信息,比如,可以是第二管理设备的UWB标签ID。In a possible implementation, the above-mentioned UWB identification information may be the UWB tag identification information of a built-in/external UWB tag of the device; for example, the above-mentioned UWB identification information may be the identification information of the UWB tag in the second management device, such as , which may be the UWB tag ID of the second management device.
或者,上述UWB标识信息,可以是设备内置的UWB组件的UWB组件标识信息,比如,上述第一UWB标识信息可以是第二管理设备中的UWB组件的UWB组件ID。Alternatively, the above-mentioned UWB identification information may be the UWB component identification information of a UWB component built into the device. For example, the above-mentioned first UWB identification information may be the UWB component ID of the UWB component in the second management device.
步骤202,对UWB标识信息进行解析,获得第二管理设备的设备信息。Step 202: Parse the UWB identification information to obtain device information of the second management device.
在本申请实施例中,第二管理设备的UWB标识信息可以是通过第二管理设备的设备信息进行映射编码生成的,相应的,第一管理设备对该UWB标识信息进行解析时,可以获得第二管理设备的设备信息。In this embodiment of the present application, the UWB identification information of the second management device may be generated by mapping and encoding the device information of the second management device. Correspondingly, when the first management device parses the UWB identification information, the first management device can obtain the first 2. Device information of management devices.
步骤203,根据第二管理设备的设备信息向第二管理设备发送第一配对信息,第一配对信息用于第二管理设备与目标设备建立配对连接。Step 203: Send first pairing information to the second management device according to the device information of the second management device. The first pairing information is used to establish a pairing connection between the second management device and the target device.
其中,上述目标设备是第一管理设备已经配置完成的物联网设备。Wherein, the above-mentioned target device is an Internet of Things device that has been configured by the first management device.
在本申请实施例中,第一管理设备获取到第二管理设备的设备信息,也就意味着第一管理设备确定了设备分享的目标管理设备,此时,即可以向第二管理设备发送配对使用的第一配对信息;并且,第一管理设备还可以向目标设备提供配对使用的第二配对信息;第二管理设备和目标设备分别获取到第一管理设备的发送的配对信息之后,即可以建立两者之间的配对连接,以便第二管理设备对目标设备进行配置、管理、以及控制等操作,从而实现第一管理设备将目标设备分享给第二管理设备的过程。In this embodiment of the present application, the first management device obtains the device information of the second management device, which means that the first management device determines the target management device for device sharing. At this time, it can send a pairing message to the second management device. The first pairing information used; and, the first management device can also provide the target device with the second pairing information used for pairing; after the second management device and the target device respectively obtain the pairing information sent by the first management device, they can A pairing connection is established between the two so that the second management device can configure, manage, and control the target device, thereby realizing the process of the first management device sharing the target device with the second management device.
综上所述,在本申请实施例所示的方案中,第一管理设备通过超宽带UWB方式获取第二管理设备的UWB标识信息并解析,获得第二管理设备的设备信息,然后向第二管理设备和目标设备分别发送配对信息,以便第二管理设备和目标设备建立配对连接。上述过程中,第一管理设备的用户不需要向第二管理设备的用户提供二维码或者配对码等信息,即可以将目标设备分享给第二管理设备,从而简化了设备分享过程中的用户操作步骤,提高了设备分享的效率。To sum up, in the solution shown in the embodiment of the present application, the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then sends the information to the second management device. The management device and the target device send pairing information respectively, so that the second management device and the target device establish a pairing connection. In the above process, the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
请参考图3,其示出了本申请一个实施例提供的设备分享方法的流程图,该方法可以由第二管理设备执行,比如,该第二管理设备可以是图1所示的网络架构中的第二管理设备130;该方法可以包括如下几个步骤:Please refer to Figure 3, which shows a flow chart of a device sharing method provided by an embodiment of the present application. This method can be executed by a second management device. For example, the second management device can be in the network architecture shown in Figure 1 The second management device 130; the method may include the following steps:
步骤301,通过超宽带UWB方式向第一管理设备发送第二管理设备的UWB标识信息,以便第一管理设备对UWB标识信息进行解析,获得第二管理设备的设备信息。Step 301: Send the UWB identification information of the second management device to the first management device in the ultra-wideband UWB mode, so that the first management device can parse the UWB identification information and obtain the device information of the second management device.
步骤302,接收第一配对信息;第一配对信息是第一管理设备根据第二管理设备的设备信息发送的。Step 302: Receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device.
步骤303,根据第一配对信息,与目标设备建立配对连接。Step 303: Establish a pairing connection with the target device according to the first pairing information.
综上所述,在本申请实施例所示的方案中,第一管理设备通过超宽带UWB方式获取第二管理设备的UWB标识信息并解析,获得第二管理设备的设备信息,然后向第二管理设备和目标设备分别发送配对信息,第二管理设备根据第一配对信息与目标设备建立配对连接。上述过程中,第一管理设备的用户不需要向第二管理设备的用户提供二维码或者配对码等信息,即可以将目标设备分享给第二管理设备,从而简化了设备分享过程中的用户操作步骤,提高了设备分享的效率。To sum up, in the solution shown in the embodiment of the present application, the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then sends the information to the second management device. The management device and the target device send pairing information respectively, and the second management device establishes a pairing connection with the target device based on the first pairing information. In the above process, the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
基于上述图2和图3所示的方案,在一种可能的实现方式中,第一管理设备可以通过中继平台,向第二管理设备发送第一配对信息。Based on the solutions shown in Figure 2 and Figure 3 above, in a possible implementation manner, the first management device can send the first pairing information to the second management device through the relay platform.
请参考图4,其示出了本申请一个实施例提供的设备分享方法的流程图,该方法可以由中继平台执行,比如,该中继平台可以是图1所示的网络架构中的中继平台140;该方法可以包括如下几个步骤:Please refer to Figure 4, which shows a flow chart of a device sharing method provided by an embodiment of the present application. This method can be executed by a relay platform. For example, the relay platform can be a middleware in the network architecture shown in Figure 1. Following platform 140; the method may include the following steps:
步骤401,接收包含第二管理设备的设备信息以及第一配对信息的第一请求;第一请求是第一管理设备根据第二管理设备的设备信息发送的;第二管理设备的设备信息是第一管理 设备通过超宽带UWB方式获取第二管理设备的UWB标识信息,并对UWB标识信息进行解析得到的。Step 401: Receive a first request containing device information of the second management device and first pairing information; the first request is sent by the first management device based on the device information of the second management device; the device information of the second management device is the second management device. The first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses the UWB identification information.
步骤402,根据第二管理设备的设备信息,向第二管理设备发送第二请求;第二请求中包含第一配对信息,以便第二管理设备根据第一配对信息与目标设备建立配对连接。Step 402: Send a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information so that the second management device establishes a pairing connection with the target device based on the first pairing information.
综上所述,在本申请实施例所示的方案中,第一管理设备通过超宽带UWB方式获取第二管理设备的UWB标识信息并解析,获得第二管理设备的设备信息,然后根据第二管理设备的设备信息,通过中继平台向第二管理设备发送第一配对信息,使得第二管理设备根据第一配对信息与目标设备建立配对连接。上述过程中,第一管理设备的用户不需要向第二管理设备的用户提供二维码或者配对码等信息,即可以将目标设备分享给第二管理设备,从而简化了设备分享过程中的用户操作步骤,提高了设备分享的效率。To sum up, in the solution shown in the embodiment of the present application, the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then according to the second The device information of the management device is sent to the second management device through the relay platform, so that the second management device establishes a pairing connection with the target device based on the first pairing information. In the above process, the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
本申请上述实施例中的,图2和图3所示的实施例可以结合使用,也就是说,第一管理设备可以直接将第一配对信息发送给第二管理设备;比如,第一管理设备基于第二管理设备的设备信息,通过UWB方式向第二管理设备发送第一配对信息。Among the above-mentioned embodiments of the present application, the embodiments shown in Figure 2 and Figure 3 can be used in combination, that is to say, the first management device can directly send the first pairing information to the second management device; for example, the first management device Based on the device information of the second management device, the first pairing information is sent to the second management device in a UWB manner.
或者,上述图2、图3以及图4所示的实施例可以结合使用。请参考图5,其示出了本申请一个实施例提供的设备分享的框架示意图。如图5所示,该设备分享过程可以如下:Alternatively, the embodiments shown in FIG. 2 , FIG. 3 and FIG. 4 can be used in combination. Please refer to Figure 5, which shows a schematic diagram of a device sharing framework provided by an embodiment of the present application. As shown in Figure 5, the device sharing process can be as follows:
S51,第二管理设备预先对自己的设备信息进行映射编码,获得第二管理设备的UWB标识信息。S51. The second management device performs mapping and coding on its own device information in advance to obtain the UWB identification information of the second management device.
S52,在进行设备分享时,第一管理设备和第二管理设备分别打开UWB组件并互相靠近,此时,第一管理设备可以获取到第二管理设备的UWB标识信息。S52. When performing device sharing, the first management device and the second management device respectively open the UWB component and approach each other. At this time, the first management device can obtain the UWB identification information of the second management device.
S53,第一管理设备经过解析可以获取到第二管理设备的设备信息,此时,第一管理设备即可以确定要进行设备分享的目标设备。S53: The first management device can obtain the device information of the second management device through analysis. At this time, the first management device can determine the target device for device sharing.
S54,第一管理设备将第二管理设备的设备信息,以及第一配对信息发送给中继平台。S54. The first management device sends the device information of the second management device and the first pairing information to the relay platform.
S55,中继平台根据第二管理设备的设备信息,将第一配对信息发送给第二管理设备。S55: The relay platform sends the first pairing information to the second management device according to the device information of the second management device.
S56,第一管理设备向目标设备发送第二配对信息。S56: The first management device sends the second pairing information to the target device.
S57,第二管理设备和目标设备根据各自接收到的配对信息建立配对连接。S57: The second management device and the target device establish a pairing connection according to the pairing information received respectively.
之后,第二管理设备即可以对目标设备进行配置、管理、控制等操作。Afterwards, the second management device can configure, manage, control and other operations on the target device.
以上述图2、图3以及图4所示的实施例结合使用为例,请参考图6,其示出了本申请一个实施例提供的设备分享方法的流程图。该方法可以由目标设备、第一管理设备、第二管理设备以及中继平台交互执行;比如,上述目标设备可以是图1所示网络架构中的物联网设备110,上述第一管理设备和第二管理设备分别是上述图1所示网络架构中的第一管理设备120以及第二管理设备130;上述中继平台可以是图1所示网络架构中的中继平台140;该方法可以包括如下几个步骤:Taking the combined use of the embodiments shown in FIG. 2, FIG. 3 and FIG. 4 as an example, please refer to FIG. 6, which shows a flow chart of a device sharing method provided by an embodiment of the present application. The method can be interactively executed by the target device, the first management device, the second management device and the relay platform; for example, the target device can be the Internet of Things device 110 in the network architecture shown in Figure 1, and the first management device and the relay platform can be interactively executed. The two management devices are respectively the first management device 120 and the second management device 130 in the network architecture shown in Figure 1; the relay platform may be the relay platform 140 in the network architecture shown in Figure 1; the method may include the following A few steps:
步骤601,第二管理设备对第二管理设备的设备信息进行编码映射,获得第二管理设备的UWB标识信息。Step 601: The second management device encodes and maps the device information of the second management device to obtain the UWB identification information of the second management device.
在一种可能的实现方式中,上述设备信息包括:鉴别信息(比如discriminator),以及,厂商标识信息(比如vendor ID)中的至少一种。In a possible implementation, the device information includes at least one of identification information (such as discriminator) and vendor identification information (such as vendor ID).
在本申请实施例中,第二管理设备可以预先按照指定的编码映射方式,将自己的设备信息编码映射为UWB标识信息,比如,映射为自己的UWB标签ID。In this embodiment of the present application, the second management device may encode and map its own device information to UWB identification information in advance according to a specified encoding mapping method, for example, map it to its own UWB tag ID.
步骤602,第一管理设备通过UWB方式获取第二管理设备的UWB标识信息;相应的,第二管理设备通过UWB方式向第一管理设备发送第二管理设备的UWB标识信息。Step 602: The first management device obtains the UWB identification information of the second management device through UWB; accordingly, the second management device sends the UWB identification information of the second management device to the first management device through UWB.
在一种可能的实现方式中,第一管理设备和第二管理设备分属于不同的安全域Fabric。或者,第一管理设备和第二管理设备属于同一个安全域Fabric。In a possible implementation manner, the first management device and the second management device belong to different security domain Fabrics. Alternatively, the first management device and the second management device belong to the same security domain Fabric.
其中,第一管理设备是已经对目标设备完成配置的管理设备。Wherein, the first management device is a management device that has completed configuration of the target device.
在第一管理设备将目标设备分享给第二管理设备的过程中,第一管理设备和第二管理设 备分别打开自己的UWB模块,其中,第一管理设备打开UWB扫描功能,以通过UWB方式获取第二管理设备的UWB标识信息。In the process of the first management device sharing the target device with the second management device, the first management device and the second management device respectively open their own UWB modules. Among them, the first management device opens the UWB scanning function to obtain data through UWB. UWB identification information of the second management device.
比如,以第一管理设备和第二管理设备分别是手机1和手机2为例,用户购买智能家居设备之后,通过手机1完成对智能家居设备的配置,之后,想要将该智能家居设备分享给手机2时,可以打开手机1和手机2中的UWB功能,并将手机1和手机2相互靠近,此时,手机1可以接收到手机2的UWB Tag信息。For example, take the first management device and the second management device being mobile phone 1 and mobile phone 2 respectively. After the user purchases the smart home device, he completes the configuration of the smart home device through mobile phone 1, and then wants to share the smart home device. When giving mobile phone 2, you can turn on the UWB function in mobile phone 1 and mobile phone 2, and bring mobile phone 1 and mobile phone 2 close to each other. At this time, mobile phone 1 can receive the UWB Tag information of mobile phone 2.
步骤603,第一管理设备对UWB标识信息进行解析,获得第二管理设备的设备信息。Step 603: The first management device parses the UWB identification information to obtain device information of the second management device.
在本申请实施例中,第一管理设备可以使用与上述指定的编码映射方式相对应的解码方式,对获取到的UWB标识信息进行解析,得到第二管理设备的设备信息。In this embodiment of the present application, the first management device may use a decoding method corresponding to the above-specified encoding mapping method to parse the obtained UWB identification information to obtain the device information of the second management device.
在一种可能的实现方式中,对UWB标识信息进行解析,获得第二管理设备的设备信息之前,还包括:In a possible implementation, before parsing the UWB identification information and obtaining the device information of the second management device, it also includes:
获取与第二管理设备之间的第一UWB测量信息;Obtain the first UWB measurement information with the second management device;
对UWB标识信息进行解析,获得第二管理设备的设备信息,包括:Parse the UWB identification information to obtain the device information of the second management device, including:
当第一UWB测量信息满足第一条件时,对UWB标识信息进行解析,获得第二管理设备的设备信息。When the first UWB measurement information meets the first condition, the UWB identification information is parsed to obtain the device information of the second management device.
由于第一管理设备需要通过获取到的设备信息来确定将目标设备分享给哪一个管理设备,并且,在通过UWB方式获取UWB标识信息的过程中,第一管理设备可能会获取到多个UWB设备的UWB标识信息,因此,第一管理设备需要解决如何准确的确定第二管理设备就是自己要分享目标设备的管理设备的问题。Since the first management device needs to determine which management device to share the target device with through the obtained device information, and in the process of obtaining UWB identification information through UWB, the first management device may obtain multiple UWB devices. Therefore, the first management device needs to solve the problem of how to accurately determine that the second management device is the management device with which it wants to share the target device.
对于上述问题,在本申请实施例中,第一管理设备在通过UWB方式获取第二管理设备的UWB标识信息时,还会获取第二管理设备与第一管理设备之间的第一UWB测量信息,当该第一UWB测量信息满足条件时,确定第二管理设备是自己分享目标设备的管理设备,此时,第一管理设备执行对UWB标识信息进行解析,获得第二管理设备的设备信息的步骤。Regarding the above problems, in the embodiment of the present application, when the first management device obtains the UWB identification information of the second management device through UWB, it also obtains the first UWB measurement information between the second management device and the first management device. , when the first UWB measurement information meets the conditions, it is determined that the second management device is the management device that shares the target device with itself. At this time, the first management device performs parsing of the UWB identification information to obtain the device information of the second management device. step.
在一种可能的实现方式中,第一UWB测量信息包括第一角度信息、第一距离信息以及第一信号强度信息中的至少一种。In a possible implementation, the first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
在本申请实施例中,上述第一UWB测量信息可以包括第一管理设备与第二管理设备之间的角度信息、距离信息以及信号强度信息中的至少一种。In this embodiment of the present application, the first UWB measurement information may include at least one of angle information, distance information and signal strength information between the first management device and the second management device.
其中,上述第一UWB测量信息可以随着第一管理设备与第二管理设备之间相对位置关系(包括相对角度关系、距离关系以及是否处在障碍物)的变化而发生变化。The above-mentioned first UWB measurement information may change as the relative positional relationship between the first management device and the second management device changes (including relative angle relationship, distance relationship, and whether there are obstacles).
其中,上述第一UWB测量信息可以由第二管理设备测量获得,或者,上述第一UWB测量信息可以由第一管理设备测量获得。或者,上述第一UWB测量信息可以由第一管理设备和第二管理设备共同测量获得。比如,上述第一UWB测量信息中的部分信息由第二管理设备测量获得,其它部分信息由第一管理设备测量获得;或者,上述第一UWB测量信息可以是第二管理设备和第一管理设备各自的测量结果的平均结果。The above-mentioned first UWB measurement information may be obtained by measurement by the second management device, or the above-mentioned first UWB measurement information may be obtained by measurement by the first management device. Alternatively, the above-mentioned first UWB measurement information may be obtained by joint measurement by the first management device and the second management device. For example, part of the above-mentioned first UWB measurement information is obtained by measurement by the second management device, and other part of the information is obtained by measurement by the first management device; or, the above-mentioned first UWB measurement information may be obtained by the second management device and the first management device. The average result of the respective measurements.
在一种可能的实现方式中,第一条件包括以下条件中的至少一项:In a possible implementation, the first condition includes at least one of the following conditions:
条件1)当第一UWB测量信息包括第一角度信息时,第一角度信息指示的角度处于第一角度区间内。Condition 1) When the first UWB measurement information includes first angle information, the angle indicated by the first angle information is within the first angle interval.
在本申请实施例中,当第一管理设备获取到第二管理设备的UWB标识信息,并且,第一UWB测量信息指示第一管理设备当前处于第二管理设备前方第一角度区间内,则可以确定第二管理设备是自己分享目标设备的管理设备。In this embodiment of the present application, when the first management device obtains the UWB identification information of the second management device, and the first UWB measurement information indicates that the first management device is currently within the first angle interval in front of the second management device, then Determine that the second management device is the management device that shares the target device with itself.
从用户角度来说,若用户想要通过第一管理设备将目标设备分享至第二管理设备,则可以将第一管理设备移动至第二管理设备的前方,或者,将第二管理设备移动至第一管理设备的前方,以确保第一管理设备当前处于第二管理设备前方第一角度区间内。From the user's perspective, if the user wants to share the target device to the second management device through the first management device, the first management device can be moved in front of the second management device, or the second management device can be moved to in front of the first management device to ensure that the first management device is currently within the first angle interval in front of the second management device.
条件2)当第一UWB测量信息包括第一距离信息时,第一距离信息指示的距离处于第 一距离区间内。Condition 2) When the first UWB measurement information includes the first distance information, the distance indicated by the first distance information is within the first distance interval.
在本申请实施例中,当第一管理设备获取到第二管理设备的UWB标识信息,并且,第一UWB测量信息指示第一管理设备当前处于第二管理设备周围的第一距离区间内,则可以确定第二管理设备是自己分享目标设备的管理设备。In this embodiment of the present application, when the first management device obtains the UWB identification information of the second management device, and the first UWB measurement information indicates that the first management device is currently within the first distance interval around the second management device, then It can be determined that the second management device is the management device that shares the target device with itself.
从用户角度来说,若用户想要通过第一管理设备将目标设备分享至第二管理设备,则可以将第一管理设备与第二管理设备相互靠近,以确保第一管理设备当前处于第二管理设备周围的第一距离区间内。From the user's perspective, if the user wants to share the target device to the second management device through the first management device, the first management device and the second management device can be brought close to each other to ensure that the first management device is currently in the second management device. Within the first distance interval around the management device.
条件3)当第一UWB测量信息包括第一信号强度信息时,第一信号强度信息指示的信号强度处于第一信号强度区间内。Condition 3) When the first UWB measurement information includes the first signal strength information, the signal strength indicated by the first signal strength information is within the first signal strength interval.
在本申请实施例中,当第一管理设备获取到第二管理设备的UWB标识信息,并且,第一UWB测量信息指示的信号强度处于第一信号强度区间内(比如,第一UWB测量信息指示的信号强度大于第一信号强度阈值)时,则可以确定第二管理设备是自己分享目标设备的管理设备。In this embodiment of the present application, when the first management device obtains the UWB identification information of the second management device, and the signal strength indicated by the first UWB measurement information is within the first signal strength interval (for example, the first UWB measurement information indicates When the signal strength is greater than the first signal strength threshold), it can be determined that the second management device is the management device that shares the target device with itself.
步骤604,第一管理设备向中继平台发送第一请求,第一请求中包含第一配对信息和第二管理设备的设备信息;中继平台接收该第一请求。Step 604: The first management device sends a first request to the relay platform, where the first request includes the first pairing information and the device information of the second management device; the relay platform receives the first request.
在本申请实施例中,为了保证设备分享的安全性,上述中继平台可以是基于区块链的网络平台。In this embodiment of the present application, in order to ensure the security of device sharing, the above-mentioned relay platform may be a blockchain-based network platform.
其中,上述中继平台可以是网络侧的服务平台。The above-mentioned relay platform may be a service platform on the network side.
在一种可能的实现方式中,中继平台是基于区块链技术构建的加密安全的分布式网络(Distributed Compliance Ledger,DCL)平台;In one possible implementation, the relay platform is an encrypted and secure distributed network (Distributed Compliance Ledger, DCL) platform built based on blockchain technology;
上述第一管理设备向中继平台发送第一请求,包括:The above-mentioned first management device sends a first request to the relay platform, including:
根据第二管理设备的设备信息,查询与第二管理设备对应的DCL平台;Query the DCL platform corresponding to the second management device according to the device information of the second management device;
向DCL平台中,对应第一管理设备的观察节点发送第一请求。Send the first request to the observation node corresponding to the first management device in the DCL platform.
在本申请实施例中,第一管理设备可以根据第二管理设备的设备信息中的厂商标识信息(比如vendor ID),查询第二管理设备对应的DCL平台,并向查询到的DCL平台中,与第一管理设备对应的观察节点(Observer Node,ON)发送第一请求。In this embodiment of the present application, the first management device can query the DCL platform corresponding to the second management device according to the manufacturer identification information (such as vendor ID) in the device information of the second management device, and query the DCL platform. The observation node (Observer Node, ON) corresponding to the first management device sends the first request.
步骤605,中继平台根据第二管理设备的设备信息,向第二管理设备发送第二请求;相应的,第二管理设备接收中继平台发送的,包含第一配对信息的第二请求。Step 605: The relay platform sends a second request to the second management device according to the device information of the second management device; accordingly, the second management device receives the second request sent by the relay platform and includes the first pairing information.
当中继平台是DCL平台时,该DCL平台可以包括第一管理设备对应的第一观察节点、第一管理设备对应的第一验证节点、第二管理设备对应的第二观察节点、以及第二管理设备对应的第二验证节点;When the relay platform is a DCL platform, the DCL platform may include a first observation node corresponding to the first management device, a first verification node corresponding to the first management device, a second observation node corresponding to the second management device, and a second management device. The second verification node corresponding to the device;
中继平台接收包含第二管理设备的设备信息以及第一配对信息的第一请求时,可以通过第一观察节点,接收第一请求;通过第一观察节点,将第一请求转发至第一验证节点;通过第一验证节点,将第一请求同步至第二验证节点;然后通过第二验证节点,将第一请求发送给第二观察节点。When the relay platform receives the first request including the device information of the second management device and the first pairing information, it can receive the first request through the first observation node; and forward the first request to the first verification through the first observation node. Node; synchronizes the first request to the second verification node through the first verification node; and then sends the first request to the second observation node through the second verification node.
中继平台根据第二管理设备的设备信息,向第二管理设备发送第二请求时,可以通过第二观察节点,根据第二管理设备的设备信息,向第二管理设备发送第二请求。When the relay platform sends the second request to the second management device according to the device information of the second management device, it may send the second request to the second management device according to the device information of the second management device through the second observation node.
相应的,当中继平台是DCL平台时,第二管理设备可以接收DCL平台中,与第二管理设备对应的观察节点发送的第二请求。Correspondingly, when the relay platform is a DCL platform, the second management device can receive the second request sent by the observation node corresponding to the second management device in the DCL platform.
DCL平台中包含各个设备厂商的观察节点ON、验证节点(Validator Node,VN)。其中,DCL平台中各个设备厂商的VN之间的数据会进行同步。在本申请实施例中,第一管理设备可以将第一请求发送至第一管理设备的设备厂商的ON,由第一管理设备的设备厂商的ON将第一请求传递给第一管理设备的设备厂商的VN,然后,该第一请求将会被同步给第二管理设备的设备厂商的VN,再由第二管理设备的设备厂商的VN将第一请求传递给第二管理设备的设备厂商的ON。The DCL platform includes observation nodes ON and verification nodes (Validator Node, VN) of each equipment manufacturer. Among them, the data between the VNs of various equipment manufacturers in the DCL platform will be synchronized. In this embodiment of the present application, the first management device may send the first request to the ON of the device manufacturer of the first management device, and the ON of the device manufacturer of the first management device transmits the first request to the device of the first management device. Then, the first request will be synchronized to the VN of the device manufacturer of the second management device, and then the VN of the device manufacturer of the second management device will pass the first request to the device manufacturer of the second management device. ON.
在另一种可能的实现方式中,上述中继平台也可以是DCL平台之外的其他网络平台。In another possible implementation manner, the above-mentioned relay platform may also be another network platform other than the DCL platform.
在一种可能的实现方式中,第一请求和第二请求中还包含第一管理设备的设备信息。In a possible implementation, the first request and the second request also include device information of the first management device.
在本申请实施例中,第一管理设备向第二管理设备发送第一配对信息时,还可以将第一管理设备的设备信息发送给第二管理设备。In this embodiment of the present application, when the first management device sends the first pairing information to the second management device, it may also send the device information of the first management device to the second management device.
可选的,第二管理设备接收到第二请求后,可以根据第二请求中的第一管理设备的设备信息,确定是哪一个设备发送的请求;或者,第二管理设备可以根据第二请求中的第一管理设备的设备信息,校验第二请求的合法性。Optionally, after receiving the second request, the second management device can determine which device sent the request based on the device information of the first management device in the second request; or, the second management device can determine which device sent the request based on the second request. The device information of the first management device in the device is used to verify the legality of the second request.
步骤606,第一管理设备向目标设备发送第二配对信息。Step 606: The first management device sends the second pairing information to the target device.
在本申请实施例中,第一管理设备还可以通过物联网,向要分享的目标设备发送第二配对信息。In this embodiment of the present application, the first management device may also send the second pairing information to the target device to be shared through the Internet of Things.
在一种可能的实现方式中,第一管理设备向目标设备发送第二配对信息,包括:向目标设备发送打开配对窗口请求,打开配对窗口请求中包含第二配对信息。In a possible implementation, the first management device sends the second pairing information to the target device, including: sending a pairing window opening request to the target device, where the pairing window opening request includes the second pairing information.
在本申请实施例中,第一管理设备可以通过物联网协议中的打开配对窗口请求(比如Open Commissioning Window请求),将第二配对信息发送给目标设备。In this embodiment of the present application, the first management device can send the second pairing information to the target device through an open pairing window request (such as an Open Commissioning Window request) in the Internet of Things protocol.
步骤607,第二管理设备与目标设备建立配对连接。Step 607: The second management device establishes a pairing connection with the target device.
在本申请实施例中,第二管理设备和目标设备分别获取到各自的配对信息之后,即可以按照物联网协议的配对规范建立配对连接,之后,第二管理设备即可以对目标设备进行配置、管理、控制等操作。In this embodiment of the present application, after the second management device and the target device obtain their respective pairing information, they can establish a pairing connection according to the pairing specification of the Internet of Things protocol. After that, the second management device can configure the target device. Management, control and other operations.
请参考图7,其示出了本申请实施例涉及的一种设备分享时序示意图。如图7所示,以第一管理设备是包含配置器(比如Matter APP中的Admin1)的手机1,第二管理设备是包含配置器(比如Matter APP中的Admin2)的手机2,目标设备简称为设备为例,其中,Admin1和Admin2可以是相同Fabric下的不同Admin,也可以是不同Fabric下的不同Admin。图7所示的设备分享过程可以如下:Please refer to FIG. 7 , which shows a schematic diagram of device sharing timing according to an embodiment of the present application. As shown in Figure 7, the first management device is mobile phone 1 that contains the configurator (such as Admin1 in Matter APP), and the second management device is mobile phone 2 that contains the configurator (such as Admin2 in Matter APP). The target device is referred to as Taking the device as an example, Admin1 and Admin2 can be different Admins under the same Fabric, or they can be different Admins under different Fabrics. The device sharing process shown in Figure 7 can be as follows:
S71,配置器Admin1完成对设备的配置。S71, the configurator Admin1 completes the configuration of the device.
S72,手机2建立手机Matter APP的设备信息与UWB标签的映射。其中,即Matter APP设备信息包括可以被其它Matter设备识别的discriminator(鉴别信息)和vendor ID(厂商标识)信息,手机2对discriminator以及vendor ID进行编码映射,获得UWB标签ID。该步骤也可以称为建立discriminator以及vendor ID与UWB标签ID之间的映射关系。S72, mobile phone 2 establishes the mapping between the device information of the mobile phone Matter APP and the UWB tag. Among them, the Matter APP device information includes discriminator (identification information) and vendor ID (vendor identification) information that can be recognized by other Matter devices. Mobile phone 2 encodes and maps the discriminator and vendor ID to obtain the UWB tag ID. This step can also be called establishing the discriminator and the mapping relationship between vendor ID and UWB tag ID.
S73,用户使用手机1指向手机2。S73, the user uses mobile phone 1 to point to mobile phone 2.
S74,手机1通过UWB方式获取手机2的UWB标识信息。S74: Mobile phone 1 obtains the UWB identification information of mobile phone 2 through UWB.
S75,手机2返回UWB标签ID、角度、距离等信息。S75, mobile phone 2 returns UWB tag ID, angle, distance and other information.
S76,手机1判断UWB标签角度和距离是否属于发现设备的合理范围内,在范围内则锁定手机2。S76, mobile phone 1 determines whether the UWB tag angle and distance are within a reasonable range for discovering the device, and locks mobile phone 2 if it is within the range.
S77,手机1从UWB标签中解析出手机2的vendor ID和discriminator信息。S77, mobile phone 1 parses the vendor ID and discriminator information of mobile phone 2 from the UWB tag.
S78,手机1APP的Admin1选择要分享的设备,并且为设备生成配对所需的信息(对应上述第一配对信息)。S78, Admin1 of the mobile phone 1 APP selects the device to be shared, and generates the information required for pairing for the device (corresponding to the above-mentioned first pairing information).
其中,上述配对所需的信息可以包括passcode,discriminator,vendor ID、product ID(产品ID)等信息。Among them, the information required for the above pairing can include passcode, discriminator, vendor ID, product ID (product ID) and other information.
S79,手机1APP的Admin1向设备下发打开配对窗口请求,携带配对所需的信息。S79, Admin1 of the mobile phone 1 APP sends a request to open the pairing window to the device, carrying the information required for pairing.
S710,手机1APP的Admin1通过vendor ID查找到手机2的DCL服务器地址。S710, Admin1 of mobile phone 1 APP finds the DCL server address of mobile phone 2 through the vendor ID.
S711,Matter设备进入配对模式。S711, Matter device enters pairing mode.
S712,手机1APP的Admin1向手机1 ON发送分享设备给手机2的请求,携带手机1设备信息、手机2vendor ID、discriminator信息和与被分享的设备建立配对所需的配对信息(对应上述第二配对信息)。S712, Admin1 of mobile phone 1 APP sends a request to share the device with mobile phone 2 to mobile phone 1 ON, carrying mobile phone 1 device information, mobile phone 2 vendor ID, discriminator information and pairing information required to establish pairing with the shared device (corresponding to the above-mentioned second pairing information).
其中,手机1的设备信息可以包括手机1中APP的vendor ID、版本、名称等信息。上 述配对信息可以包括passcode,discriminator,vendor ID、product ID(产品ID)等信息。Among them, the device information of mobile phone 1 may include the vendor ID, version, name and other information of the APP in mobile phone 1. The above pairing information can include passcode, discriminator, vendor ID, product ID (product ID) and other information.
其中,ON属于DCL中负责观察的云节点,与VN连接,不同公司或厂商间的ON之间没有连接,同一厂商的ON访问相同厂商的VN。Among them, ON belongs to the cloud node responsible for observation in DCL and is connected to VN. There is no connection between ONs between different companies or manufacturers. ONs of the same manufacturer access VNs of the same manufacturer.
VN属于DCL中负责验证的云节点,与ON和VN连接,其中,不同厂商的VN相互之间采用区块链技术安全连接。VN belongs to the cloud node responsible for verification in DCL and is connected to ON and VN. Among them, VNs from different manufacturers are securely connected to each other using blockchain technology.
S713,手机1 ON将上述S712接收的请求转给手机1的VN。S713, mobile phone 1 ON transfers the request received by S712 to the VN of mobile phone 1.
S714,手机1 VN通过手机2的vendor ID定位到手机2 VN。S714, mobile phone 1 VN locates mobile phone 2 VN through the vendor ID of mobile phone 2.
S715,手机1 VN上的请求同步给手机2 VN。S715, the request on mobile phone 1 VN is synchronized to mobile phone 2 VN.
S716,手机2 VN将S715中的请求发送给手机2 ON。S716, mobile phone 2 VN sends the request in S715 to mobile phone 2 ON.
S717,手机2 ON通过discriminator定位到手机2的APP。S717, mobile phone 2 ON locates the APP of mobile phone 2 through the discriminator.
S718,手机2 ON向手机2 APP发送共享设备请求(对应上述第二请求),携带配对设备所需的信息和手机1的设备信息。S718, mobile phone 2 ON sends a shared device request (corresponding to the above-mentioned second request) to the mobile phone 2 APP, carrying the information required for pairing the device and the device information of mobile phone 1.
S719,手机2 APP Admin2侦听来自ON的共享设备的请求,通过手机1的设备信息知道是谁发的共享设备的请求,并通过配对设备所需的配对信息知道要与哪个设备进行配对,在收到请求开始与设备建立配对。S719, mobile phone 2 APP Admin2 listens to the request from the shared device of ON, uses the device information of mobile phone 1 to know who sent the request to share the device, and knows which device to pair with through the pairing information required for the paired device. A request is received to start pairing with the device.
S720,手机2 APP Admin2与设备建立配对连接。S720, mobile phone 2 APP Admin2 establishes a pairing connection with the device.
综上所述,在本申请实施例所示的方案,第一管理设备通过超宽带UWB方式获取第二管理设备的UWB标识信息并解析,获得第二管理设备的设备信息,然后根据第二管理设备的设备信息,通过中继平台向第二管理设备发送第一配对信息,使得第二管理设备根据第一配对信息与目标设备建立配对连接。上述过程中,第一管理设备的用户不需要向第二管理设备的用户提供二维码或者配对码等信息,即可以将目标设备分享给第二管理设备,从而简化了设备分享过程中的用户操作步骤,提高了设备分享的效率。To sum up, in the solution shown in the embodiment of this application, the first management device obtains the UWB identification information of the second management device through ultra-wideband UWB and parses it to obtain the device information of the second management device, and then according to the second management device The device information of the device sends the first pairing information to the second management device through the relay platform, so that the second management device establishes a pairing connection with the target device based on the first pairing information. In the above process, the user of the first management device does not need to provide the user of the second management device with information such as a QR code or pairing code, that is, the target device can be shared with the second management device, thereby simplifying the user experience in the device sharing process. Operation steps improve the efficiency of device sharing.
请参考图8,其示出了本申请一个实施例提供的设备分享装置的框图。该设备分享装置800具有实现上述图2或图6所示的方法中,由第一管理设备执行的功能。如图8所示,该设备分享装置800可以包括:Please refer to FIG. 8 , which shows a block diagram of a device sharing device provided by an embodiment of the present application. The device sharing device 800 has the function of being executed by the first management device in implementing the method shown in FIG. 2 or FIG. 6 . As shown in Figure 8, the device sharing device 800 may include:
标签获取模块801,用于通过超宽带UWB方式获取第二管理设备的UWB标识信息;The tag acquisition module 801 is used to acquire the UWB identification information of the second management device through ultra-wideband UWB;
解析模块802,用于对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;The parsing module 802 is used to parse the UWB identification information and obtain the device information of the second management device;
发送模块803,用于根据所述第二管理设备的设备信息向所述第二管理设备发送第一配对信息,所述第一配对信息用于所述第二管理设备与所述目标设备建立配对连接。Sending module 803, configured to send first pairing information to the second management device according to the device information of the second management device, where the first pairing information is used to establish pairing between the second management device and the target device. connect.
在一种可能的实现方式中,所述设备信息包括:鉴别信息,以及,厂商标识信息中的至少一种。In a possible implementation, the device information includes at least one of identification information and manufacturer identification information.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
测量信息获取模块,用于在所述解析模块802对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息之前,获取与所述第二管理设备之间的第一UWB测量信息;A measurement information acquisition module, configured to obtain the first UWB measurement information with the second management device before the parsing module 802 parses the UWB identification information and obtains the device information of the second management device. ;
所述解析模块802,用于当所述第一UWB测量信息满足第一条件时,对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息。The parsing module 802 is configured to parse the UWB identification information to obtain device information of the second management device when the first UWB measurement information satisfies the first condition.
在一种可能的实现方式中,所述第一UWB测量信息包括第一角度信息、第一距离信息以及第一信号强度信息中的至少一种。In a possible implementation, the first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
在一种可能的实现方式中,所述第一条件包括以下条件中的至少一项:In a possible implementation, the first condition includes at least one of the following conditions:
当所述第一UWB测量信息包括所述第一角度信息时,所述第一角度信息指示的角度处于第一角度区间内;When the first UWB measurement information includes the first angle information, the angle indicated by the first angle information is within the first angle interval;
当所述第一UWB测量信息包括所述第一距离信息时,所述第一距离信息指示的距离处于第一距离区间内;When the first UWB measurement information includes the first distance information, the distance indicated by the first distance information is within a first distance interval;
当所述第一UWB测量信息包括所述第一信号强度信息时,所述第一信号强度信息指示的信号强度处于第一信号强度区间内。When the first UWB measurement information includes the first signal strength information, the signal strength indicated by the first signal strength information is within a first signal strength interval.
在一种可能的实现方式中,所述第一管理设备和所述第二管理设备分属于不同的安全域Fabric。In a possible implementation, the first management device and the second management device belong to different security domain Fabrics.
在一种可能的实现方式中,所述发送模块803,用于向中继平台发送第一请求,所述第一请求中包含所述第一配对信息和所述第二管理设备的设备信息,以便所述中继平台根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息。In a possible implementation, the sending module 803 is configured to send a first request to the relay platform, where the first request includes the first pairing information and the device information of the second management device, So that the relay platform sends a second request to the second management device according to the device information of the second management device; the second request includes the first pairing information.
在一种可能的实现方式中,所述中继平台是基于区块链技术构建的加密安全的分布式网络DCL平台;所述发送模块803,用于,In a possible implementation, the relay platform is an encrypted and secure distributed network DCL platform built based on blockchain technology; the sending module 803 is used to,
根据所述第二管理设备的设备信息,查询与所述第二管理设备对应的所述DCL平台;Query the DCL platform corresponding to the second management device according to the device information of the second management device;
向所述DCL平台中,对应所述第一管理设备的观察节点发送所述第一请求。Send the first request to an observation node corresponding to the first management device in the DCL platform.
在一种可能的实现方式中,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。In a possible implementation, the first request and the second request also include device information of the first management device.
在一种可能的实现方式中,所述发送模块803,还用于向所述目标设备发送打开配对窗口请求,所述打开配对窗口请求中包含第二配对信息;所述第二配对信息用于所述目标设备与所述第二管理设备建立配对连接。In a possible implementation, the sending module 803 is also configured to send a request to open a pairing window to the target device, where the request to open a pairing window includes second pairing information; the second pairing information is used to The target device establishes a pairing connection with the second management device.
请参考图9,其示出了本申请一个实施例提供的设备分享装置的框图。该设备分享装置900具有实现上述图3或图6所示的方法中,由第二管理设备执行的功能。如图9所示,该设备分享装置900可以包括:Please refer to FIG. 9 , which shows a block diagram of a device sharing device provided by an embodiment of the present application. The device sharing device 900 has the function of being executed by the second management device in implementing the method shown in FIG. 3 or FIG. 6 . As shown in Figure 9, the device sharing device 900 may include:
发送模块901,用于通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息,以便所述第一管理设备对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;The sending module 901 is configured to send the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner, so that the first management device can parse the UWB identification information and obtain the second management device. Device information of the device;
接收模块902,用于接收第一配对信息;所述第一配对信息是所述第一管理设备根据所述第二管理设备的设备信息发送的;Receiving module 902, configured to receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device;
连接模块903,用于根据所述第一配对信息,与目标设备建立配对连接。The connection module 903 is configured to establish a pairing connection with the target device according to the first pairing information.
在一种可能的实现方式中,所述设备信息包括:鉴别信息,以及,厂商标识信息中的至少一种。In a possible implementation, the device information includes at least one of identification information and manufacturer identification information.
在一种可能的实现方式中,所述接收模块902,用于接收中继平台发送的,包含所述第一配对信息的第二请求;所述第二请求是所述中继平台接收到包含所述第一配对信息和所述第二管理设备的设备信息的第一请求后,根据所述第二管理设备的设备信息发送的。In a possible implementation, the receiving module 902 is configured to receive a second request containing the first pairing information sent by the relay platform; the second request is a response received by the relay platform containing The first pairing information and the device information of the second management device are sent according to the device information of the second management device after the first request.
在一种可能的实现方式中,所述中继平台是DCL平台;In a possible implementation, the relay platform is a DCL platform;
所述接收模块902,用于接收所述DCL平台中,与所述第二管理设备对应的观察节点发送的所述第二请求。The receiving module 902 is configured to receive the second request sent by the observation node corresponding to the second management device in the DCL platform.
在一种可能的实现方式中,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。In a possible implementation, the first request and the second request also include device information of the first management device.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
编码模块,用于在所述发送模块通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息之前,对所述第二管理设备的设备信息进行编码映射,获得所述第二管理设备的UWB标识信息。An encoding module, configured to encode and map the device information of the second management device before the sending module sends the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner to obtain the UWB identification information of the second management device.
请参考图10,其示出了本申请一个实施例提供的设备分享装置的框图。该设备分享装置1000具有实现上述图4或图6所示的方法中,由中继平台执行的功能;该中继平台可以为网络侧的服务平台,比如可以为DCL平台。如图10所示,该设备分享装置1000可以包括:Please refer to Figure 10, which shows a block diagram of a device sharing device provided by an embodiment of the present application. The device sharing device 1000 has the function of being executed by a relay platform in the method shown in Figure 4 or Figure 6; the relay platform can be a service platform on the network side, such as a DCL platform. As shown in Figure 10, the device sharing device 1000 may include:
接收模块1001,用于接收包含第二管理设备的设备信息以及第一配对信息的第一请求;所述第一请求是第一管理设备根据所述第二管理设备的设备信息发送的;所述第二管理设备的设备信息是所述第一管理设备通过超宽带UWB方式获取所述第二管理设备的UWB标识信息,并对所述UWB标识信息进行解析得到的;The receiving module 1001 is configured to receive a first request containing device information of a second management device and first pairing information; the first request is sent by the first management device according to the device information of the second management device; The device information of the second management device is obtained by the first management device obtaining the UWB identification information of the second management device through ultra-wideband UWB and parsing the UWB identification information;
发送模块1002,用于根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息,以便所述第二管理设备根据所述第一配对信息与目标设备建立配对连接。Sending module 1002, configured to send a second request to the second management device according to the device information of the second management device; the second request includes the first pairing information so that the second management device Establish a pairing connection with the target device according to the first pairing information.
在一种可能的实现方式中,所述中继平台包括所述第一管理设备对应的第一观察节点、所述第一管理设备对应的第一验证节点、所述第二管理设备对应的第二观察节点、以及所述第二管理设备对应的第二验证节点;In a possible implementation, the relay platform includes a first observation node corresponding to the first management device, a first verification node corresponding to the first management device, and a third node corresponding to the second management device. two observation nodes and a second verification node corresponding to the second management device;
所述接收模块1001,用于,The receiving module 1001 is used to,
通过所述第一管理设备对应的第一观察节点,接收所述第一请求;Receive the first request through the first observation node corresponding to the first management device;
通过所述第一观察节点,将所述第一请求转发至所述第一管理设备对应的第一验证节点;Forward the first request to the first verification node corresponding to the first management device through the first observation node;
通过所述第一验证节点,将所述第一请求同步至所述第二管理设备对应的第二验证节点;Synchronize the first request to the second verification node corresponding to the second management device through the first verification node;
通过所述第二验证节点,将所述第一请求发送给所述第二管理设备对应的第二观察节点;Send the first request to the second observation node corresponding to the second management device through the second verification node;
所述发送模块1002,用于通过所述第二观察节点,根据所述第二管理设备的设备信息,向所述第二管理设备发送所述第二请求。The sending module 1002 is configured to send the second request to the second management device through the second observation node according to the device information of the second management device.
在一种可能的实现方式中,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。In a possible implementation, the first request and the second request also include device information of the first management device.
请参考图11,其示出了本申请一个实施例提供的计算机设备1100的结构示意图。该计算机设备1100可以包括:处理器1101、接收器1102、发射器1103、存储器1104和总线1105。Please refer to Figure 11, which shows a schematic structural diagram of a computer device 1100 provided by an embodiment of the present application. The computer device 1100 may include a processor 1101, a receiver 1102, a transmitter 1103, a memory 1104, and a bus 1105.
处理器1101包括一个或者一个以上处理核心,处理器1101通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 1101 includes one or more processing cores. The processor 1101 executes various functional applications and information processing by running software programs and modules.
接收器1102和发射器1103可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。The receiver 1102 and the transmitter 1103 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.
存储器1104通过总线1105与处理器1101相连。The memory 1104 is connected to the processor 1101 through a bus 1105.
存储器1104可用于存储计算机程序,处理器1101用于执行该计算机程序,以实现上述方法实施例中的各个步骤。The memory 1104 can be used to store a computer program, and the processor 1101 is used to execute the computer program to implement various steps in the above method embodiments.
此外,存储器1104可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。Additionally, memory 1104 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.
在一个示例性的方案中,当计算机设备1100实现为第一管理设备时,所述收发器,用于通过超宽带UWB方式获取第二管理设备的UWB标识信息;所述处理器,用于对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;所述收发器,还用于根据所述第二管理设备的设备信息向所述第二管理设备发送第一配对信息,以及,向目标设备发送第二配对信息,以便所述第二管理设备与所述目标设备建立配对连接。In an exemplary solution, when the computer device 1100 is implemented as a first management device, the transceiver is configured to obtain UWB identification information of the second management device through ultra-wideband UWB; and the processor is configured to The UWB identification information is parsed to obtain the device information of the second management device; the transceiver is also used to send the first pairing information to the second management device according to the device information of the second management device, and sending second pairing information to the target device so that the second management device establishes a pairing connection with the target device.
其中,上述计算机设备1100中的处理器和/或收发器执行的过程可以参考上述图2或图6任一所示的方法中,由第一管理设备执行的各个步骤。The process performed by the processor and/or transceiver in the computer device 1100 may refer to the various steps performed by the first management device in the method shown in any one of the above-mentioned FIG. 2 or FIG. 6 .
在另一个示例性的方案中,当计算机设备1100实现为第二管理设备时,所述收发器, 用于通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息,以便所述第一管理设备对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;接收第一配对信息;所述第一配对信息是所述第一管理设备根据所述第二管理设备的设备信息发送的;所述处理器,用于根据所述第一配对信息,与目标设备建立配对连接。In another exemplary solution, when the computer device 1100 is implemented as a second management device, the transceiver is configured to send the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner, so that the first management device parses the UWB identification information and obtains device information of the second management device; receives first pairing information; the first pairing information is obtained by the first management device according to the third The device information of the second management device is sent; the processor is configured to establish a pairing connection with the target device according to the first pairing information.
其中,上述计算机设备1100中的处理器和/或收发器执行的过程可以参考上述图3或图6任一所示的方法中,由第二管理设备执行的各个步骤。The process performed by the processor and/or transceiver in the computer device 1100 may refer to the various steps performed by the second management device in the method shown in either of the above-mentioned FIG. 3 or FIG. 6 .
在另一个示例性的方案中,当计算机设备1100实现为中继平台时,所述收发器,用于接收包含第二管理设备的设备信息以及第一配对信息的第一请求;所述第一请求是第一管理设备根据所述第二管理设备的设备信息发送的;所述第二管理设备的设备信息是所述第一管理设备通过超宽带UWB方式获取所述第二管理设备的UWB标识信息,并对所述UWB标识信息进行解析得到的;根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息,以便所述第二管理设备根据所述第一配对信息与目标设备建立配对连接。In another exemplary solution, when the computer device 1100 is implemented as a relay platform, the transceiver is configured to receive a first request containing device information of the second management device and first pairing information; the first The request is sent by the first management device based on the device information of the second management device; the device information of the second management device is that the first management device obtains the UWB identification of the second management device through ultra-wideband UWB. information and obtain it by parsing the UWB identification information; sending a second request to the second management device according to the device information of the second management device; the second request includes the first pairing information , so that the second management device establishes a pairing connection with the target device according to the first pairing information.
其中,上述计算机设备1100中的处理器和/或收发器执行的过程可以参考上述图4或图6任一所示的方法中,由中继平台执行的各个步骤。The process performed by the processor and/or the transceiver in the computer device 1100 may refer to the various steps performed by the relay platform in the method shown in either FIG. 4 or FIG. 6 .
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图2、图3、图4或者图6所示的方法中,由第一管理设备、第二管理设备或者中继平台执行的全部或者部分步骤。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 FIG. 2, FIG. 3, FIG. 4 or FIG. 6. In the method shown, all or part of the steps are performed by the first management device, the second management device or the relay platform.
本申请还提供了一种芯片,该芯片用于在计算机设备中运行,以使得计算机设备执行上述图2、图3、图4或者图6所示的方法中,由第一管理设备、第二管理设备或者中继平台执行的全部或者部分步骤。This application also provides a chip, which is used to run in a computer device, so that the computer device executes the method shown in Figure 2, Figure 3, Figure 4 or Figure 6, and the first management device, the second All or part of the steps performed by the management device or relay platform.
本申请还提供了一种计算机程序产品,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得计算机设备执行上述图2、图3、图4或者图6所示的方法中,由第一管理设备、第二管理设备或者中继平台执行的全部或者部分步骤。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 FIG. 2, FIG. 3, FIG. 4 or FIG. 6, and the first manager All or part of the steps performed by the device, the second management device or the relay platform.
本申请还提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述图2、图3、图4或者图6所示的方法中,由第一管理设备、第二管理设备或者中继平台执行的全部或者部分步骤。This application also provides a computer program, which is executed by a processor of a computer device to implement the method shown in Figure 2, Figure 3, Figure 4 or Figure 6, in which the first management device, the second management device All or part of the steps performed by the device or relay platform.

Claims (41)

  1. 一种设备分享方法,其特征在于,所述方法由第一管理设备执行,所述方法包括:A device sharing method, characterized in that the method is executed by a first management device, and the method includes:
    通过超宽带UWB方式获取第二管理设备的UWB标识签信息;Obtain the UWB tag information of the second management device through ultra-wideband UWB;
    对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;Parse the UWB identification information to obtain device information of the second management device;
    根据所述第二管理设备的设备信息向所述第二管理设备发送第一配对信息,所述第一配对信息用于所述第二管理设备与目标设备建立配对连接。The first pairing information is sent to the second management device according to the device information of the second management device, and the first pairing information is used to establish a pairing connection between the second management device and the target device.
  2. 根据权利要求1所述的方法,其特征在于,所述设备信息包括:鉴别信息,以及,厂商标识信息中的至少一种。The method of claim 1, wherein the device information includes at least one of identification information and manufacturer identification information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息之前,还包括:The method according to claim 1 or 2, characterized in that before parsing the UWB identification information and obtaining the device information of the second management device, the method further includes:
    获取与所述第二管理设备之间的第一UWB测量信息;Obtain first UWB measurement information with the second management device;
    所述对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息,包括:The step of parsing the UWB identification information and obtaining the device information of the second management device includes:
    当所述第一UWB测量信息满足第一条件时,对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息。When the first UWB measurement information meets the first condition, the UWB identification information is parsed to obtain the device information of the second management device.
  4. 根据权利要求3所述的方法,其特征在于,所述第一UWB测量信息包括第一角度信息、第一距离信息以及第一信号强度信息中的至少一种;The method according to claim 3, wherein the first UWB measurement information includes at least one of first angle information, first distance information and first signal strength information;
    所述第一条件包括以下条件中的至少一项:The first condition includes at least one of the following conditions:
    当所述第一UWB测量信息包括所述第一角度信息时,所述第一角度信息指示的角度处于第一角度区间内;When the first UWB measurement information includes the first angle information, the angle indicated by the first angle information is within the first angle interval;
    当所述第一UWB测量信息包括所述第一距离信息时,所述第一距离信息指示的距离处于第一距离区间内;When the first UWB measurement information includes the first distance information, the distance indicated by the first distance information is within a first distance interval;
    当所述第一UWB测量信息包括所述第一信号强度信息时,所述第一信号强度信息指示的信号强度处于第一信号强度区间内。When the first UWB measurement information includes the first signal strength information, the signal strength indicated by the first signal strength information is within a first signal strength interval.
  5. 根据权利要求1至4任一所述的方法,其特征在于,所述第一管理设备和所述第二管理设备分属于不同的安全域Fabric。The method according to any one of claims 1 to 4, characterized in that the first management device and the second management device belong to different security domain Fabrics.
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述根据所述第二管理设备的设备信息,向所述第二管理设备发送第一配对信息,包括:The method according to any one of claims 1 to 5, characterized in that, sending the first pairing information to the second management device according to the device information of the second management device includes:
    向中继平台发送第一请求,所述第一请求中包含所述第一配对信息和所述第二管理设备的设备信息,以便所述中继平台根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息。Send a first request to the relay platform, where the first request includes the first pairing information and the device information of the second management device, so that the relay platform can, according to the device information of the second management device, Send a second request to the second management device; the second request includes the first pairing information.
  7. 根据权利要求6所述的方法,其特征在于,所述中继平台是基于区块链技术构建的加密安全的分布式网络DCL平台;The method according to claim 6, characterized in that the relay platform is an encrypted and secure distributed network DCL platform built based on blockchain technology;
    所述向中继平台发送第一请求,包括:The sending of the first request to the relay platform includes:
    根据所述第二管理设备的设备信息,查询与所述第二管理设备对应的所述DCL平台;Query the DCL platform corresponding to the second management device according to the device information of the second management device;
    向所述DCL平台中,对应所述第一管理设备的观察节点发送所述第一请求。Send the first request to an observation node corresponding to the first management device in the DCL platform.
  8. 根据权利要求6或7所述的方法,其特征在于,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。The method according to claim 6 or 7, characterized in that the first request and the second request also include device information of the first management device.
  9. 根据权利要求1至8任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, characterized in that the method further includes:
    向所述目标设备发送打开配对窗口请求,所述打开配对窗口请求中包含第二配对信息;所述第二配对信息用于所述目标设备与所述第二管理设备建立配对连接。Send a request to open a pairing window to the target device, where the request to open a pairing window includes second pairing information; the second pairing information is used to establish a pairing connection between the target device and the second management device.
  10. 一种设备分享方法,其特征在于,所述方法由第二管理设备执行,所述方法包括:A device sharing method, characterized in that the method is executed by a second management device, and the method includes:
    通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息,以便所述第一管理设备对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;Send the UWB identification information of the second management device to the first management device in the ultra-wideband UWB mode, so that the first management device parses the UWB identification information and obtains the device information of the second management device;
    接收第一配对信息;所述第一配对信息是所述第一管理设备根据所述第二管理设备的设备信息发送的;Receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device;
    根据所述第一配对信息,与目标设备建立配对连接。According to the first pairing information, a pairing connection is established with the target device.
  11. 根据权利要求10所述的方法,其特征在于,所述设备信息包括:鉴别信息,以及,厂商标识信息中的至少一种。The method of claim 10, wherein the device information includes at least one of identification information and manufacturer identification information.
  12. 根据权利要求10或11所述的方法,其特征在于,所述接收第一配对信息,包括:The method according to claim 10 or 11, characterized in that receiving the first pairing information includes:
    接收中继平台发送的,包含所述第一配对信息的第二请求;所述第二请求是所述中继平台接收到包含所述第一配对信息和所述第二管理设备的设备信息的第一请求后,根据所述第二管理设备的设备信息发送的。Receive a second request sent by the relay platform that contains the first pairing information; the second request is when the relay platform receives a request that contains the first pairing information and the device information of the second management device. After the first request, it is sent according to the device information of the second management device.
  13. 根据权利要求12所述的方法,其特征在于,所述中继平台是DCL平台;The method according to claim 12, characterized in that the relay platform is a DCL platform;
    所述接收中继平台发送的,包含所述第一配对信息的第二请求,包括:The second request sent by the receiving relay platform and containing the first pairing information includes:
    接收所述DCL平台中,与所述第二管理设备对应的观察节点发送的所述第二请求。Receive the second request sent by the observation node corresponding to the second management device in the DCL platform.
  14. 根据权利要求12或13所述的方法,其特征在于,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。The method according to claim 12 or 13, characterized in that the first request and the second request also include device information of the first management device.
  15. 根据权利要求10至14任一所述的方法,其特征在于,所述通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息之前,还包括:The method according to any one of claims 10 to 14, characterized in that before sending the UWB identification information of the second management device to the first management device through ultra-wideband UWB, it further includes:
    对所述第二管理设备的设备信息进行编码映射,获得所述第二管理设备的UWB标识信息。Encoding and mapping are performed on the device information of the second management device to obtain UWB identification information of the second management device.
  16. 一种设备分享方法,其特征在于,所述方法由中继平台执行,所述方法包括:A device sharing method, characterized in that the method is executed by a relay platform, and the method includes:
    接收包含第二管理设备的设备信息以及第一配对信息的第一请求;所述第一请求是第一管理设备根据所述第二管理设备的设备信息发送的;所述第二管理设备的设备信息是所述第一管理设备通过超宽带UWB方式获取所述第二管理设备的UWB标识信息,并对所述UWB标识信息进行解析得到的;Receive a first request containing device information of a second management device and first pairing information; the first request is sent by the first management device according to the device information of the second management device; the device of the second management device The information is obtained by the first management device obtaining the UWB identification information of the second management device through ultra-wideband UWB and parsing the UWB identification information;
    根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息,以便所述第二管理设备根据所述第一配对信息与目标设备建立配对连接。Send a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information, so that the second management device can The message establishes a pairing connection with the target device.
  17. 根据权利要求16所述的方法,其特征在于,所述中继平台包括所述第一管理设备对应的第一观察节点、所述第一管理设备对应的第一验证节点、所述第二管理设备对应的第二观察节点、以及所述第二管理设备对应的第二验证节点;The method according to claim 16, characterized in that the relay platform includes a first observation node corresponding to the first management device, a first verification node corresponding to the first management device, the second management device a second observation node corresponding to the device, and a second verification node corresponding to the second management device;
    所述接收包含第二管理设备的设备信息以及第一配对信息的第一请求,包括:The receiving the first request containing the device information of the second management device and the first pairing information includes:
    通过所述第一观察节点,接收所述第一请求;Receive the first request through the first observation node;
    通过所述第一观察节点,将所述第一请求转发至所述第一验证节点;forward the first request to the first verification node through the first observation node;
    通过所述第一验证节点,将所述第一请求同步至所述第二验证节点;Synchronize the first request to the second verification node through the first verification node;
    通过所述第二验证节点,将所述第一请求发送给所述第二观察节点;Send the first request to the second observation node through the second verification node;
    所述根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求,包括:The sending a second request to the second management device according to the device information of the second management device includes:
    通过所述第二观察节点,根据所述第二管理设备的设备信息,向所述第二管理设备发送所述第二请求。Through the second observation node, the second request is sent to the second management device according to the device information of the second management device.
  18. 根据权利要求16或17所述的方法,其特征在于,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。The method according to claim 16 or 17, characterized in that the first request and the second request also include device information of the first management device.
  19. 一种设备分享装置,其特征在于,所述装置包括:An equipment sharing device, characterized in that the device includes:
    标签获取模块,用于通过超宽带UWB方式获取第二管理设备的UWB标识信息;A tag acquisition module, used to acquire the UWB identification information of the second management device through ultra-wideband UWB;
    解析模块,用于对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;A parsing module, configured to parse the UWB identification information and obtain device information of the second management device;
    发送模块,用于根据所述第二管理设备的设备信息向所述第二管理设备发送第一配对信息,所述第一配对信息用于所述第二管理设备与目标设备建立配对连接。A sending module, configured to send first pairing information to the second management device according to the device information of the second management device, where the first pairing information is used to establish a pairing connection between the second management device and a target device.
  20. 根据权利要求19所述的装置,其特征在于,所述设备信息包括:鉴别信息,以及,厂商标识信息中的至少一种。The device according to claim 19, wherein the device information includes at least one of identification information and manufacturer identification information.
  21. 根据权利要求19或20所述的装置,其特征在于,所述装置还包括:The device according to claim 19 or 20, characterized in that the device further includes:
    测量信息获取模块,用于在所述解析模块对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息之前,获取与所述第二管理设备之间的第一UWB测量信息;A measurement information acquisition module, configured to acquire the first UWB measurement information with the second management device before the parsing module parses the UWB identification information and obtains the device information of the second management device;
    所述解析模块,用于当所述第一UWB测量信息满足第一条件时,对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息。The parsing module is configured to parse the UWB identification information to obtain device information of the second management device when the first UWB measurement information meets a first condition.
  22. 根据权利要求21所述的装置,其特征在于,所述第一UWB测量信息包括第一角度信息、第一距离信息以及第一信号强度信息中的至少一种;The device according to claim 21, wherein the first UWB measurement information includes at least one of first angle information, first distance information and first signal strength information;
    所述第一条件包括以下条件中的至少一项:The first condition includes at least one of the following conditions:
    当所述第一UWB测量信息包括所述第一角度信息时,所述第一角度信息指示的角度处于第一角度区间内;When the first UWB measurement information includes the first angle information, the angle indicated by the first angle information is within the first angle interval;
    当所述第一UWB测量信息包括所述第一距离信息时,所述第一距离信息指示的距离处于第一距离区间内;When the first UWB measurement information includes the first distance information, the distance indicated by the first distance information is within a first distance interval;
    当所述第一UWB测量信息包括所述第一信号强度信息时,所述第一信号强度信息指示的信号强度处于第一信号强度区间内。When the first UWB measurement information includes the first signal strength information, the signal strength indicated by the first signal strength information is within a first signal strength interval.
  23. 根据权利要求22所述的装置,其特征在于,所述第一管理设备和所述第二管理设备分属于不同的安全域Fabric。The device according to claim 22, wherein the first management device and the second management device belong to different security domain Fabrics.
  24. 根据权利要求19至23任一所述的装置,其特征在于,所述发送模块,用于向中继平台发送第一请求,所述第一请求中包含所述第一配对信息和所述第二管理设备的设备信息,以便所述中继平台根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息。The device according to any one of claims 19 to 23, characterized in that the sending module is configured to send a first request to the relay platform, the first request including the first pairing information and the third Device information of the second management device, so that the relay platform sends a second request to the second management device according to the device information of the second management device; the second request includes the first pairing information.
  25. 根据权利要求24所述的装置,其特征在于,所述中继平台是基于区块链技术构建的加密安全的分布式网络DCL平台;所述发送模块,用于,The device according to claim 24, characterized in that the relay platform is an encrypted and secure distributed network DCL platform built based on blockchain technology; the sending module is used to,
    根据所述第二管理设备的设备信息,查询与所述第二管理设备对应的所述DCL平台;Query the DCL platform corresponding to the second management device according to the device information of the second management device;
    向所述DCL平台中,对应所述第一管理设备的观察节点发送所述第一请求。Send the first request to an observation node corresponding to the first management device in the DCL platform.
  26. 根据权利要求24或25所述的装置,其特征在于,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。The apparatus according to claim 24 or 25, characterized in that the first request and the second request also include device information of the first management device.
  27. 根据权利要求19至26任一所述的装置,其特征在于,所述发送模块,还用于向所述目标设备发送打开配对窗口请求,所述打开配对窗口请求中包含第二配对信息;所述第二配对信息用于所述目标设备与所述第二管理设备建立配对连接。The device according to any one of claims 19 to 26, wherein the sending module is further configured to send a request to open a pairing window to the target device, where the request to open a pairing window contains second pairing information; The second pairing information is used to establish a pairing connection between the target device and the second management device.
  28. 一种设备分享装置,其特征在于,所述装置包括:An equipment sharing device, characterized in that the device includes:
    发送模块,用于通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息,以便所述第一管理设备对所述UWB标识信息进行解析,获得所述第二管理设备的设备信息;A sending module configured to send the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner, so that the first management device can parse the UWB identification information and obtain the second management device. device information;
    接收模块,用于接收第一配对信息;所述第一配对信息是所述第一管理设备根据所述第二管理设备的设备信息发送的;A receiving module, configured to receive first pairing information; the first pairing information is sent by the first management device according to the device information of the second management device;
    连接模块,用于根据所述第一配对信息,与目标设备建立配对连接。A connection module, configured to establish a pairing connection with the target device according to the first pairing information.
  29. 根据权利要求28所述的装置,其特征在于,所述设备信息包括:鉴别信息,以及,厂商标识信息中的至少一种。The device according to claim 28, wherein the device information includes at least one of identification information and manufacturer identification information.
  30. 根据权利要求28或29所述的装置,其特征在于,所述接收模块,用于接收中继平台发送的,包含所述第一配对信息的第二请求;所述第二请求是所述中继平台接收到包含所述第一配对信息和所述第二管理设备的设备信息的第一请求后,根据所述第二管理设备的设备信息发送的。The device according to claim 28 or 29, characterized in that the receiving module is configured to receive a second request sent by the relay platform and containing the first pairing information; the second request is the After the platform receives the first request containing the first pairing information and the device information of the second management device, it is sent according to the device information of the second management device.
  31. 根据权利要求30所述的装置,其特征在于,所述中继平台是DCL平台;The device according to claim 30, wherein the relay platform is a DCL platform;
    所述接收模块,用于接收所述DCL平台中,与所述第二管理设备对应的观察节点发送的所述第二请求。The receiving module is configured to receive the second request sent by the observation node corresponding to the second management device in the DCL platform.
  32. 根据权利要求30或31所述的装置,其特征在于,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。The apparatus according to claim 30 or 31, wherein the first request and the second request also include device information of the first management device.
  33. 根据权利要求28至32任一所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 28 to 32, characterized in that the device further includes:
    编码模块,用于在所述发送模块通过超宽带UWB方式向第一管理设备发送所述第二管理设备的UWB标识信息之前,对所述第二管理设备的设备信息进行编码映射,获得所述第二管理设备的UWB标识信息。An encoding module, configured to encode and map the device information of the second management device before the sending module sends the UWB identification information of the second management device to the first management device in an ultra-wideband UWB manner to obtain the UWB identification information of the second management device.
  34. 一种设备分享装置,其特征在于,所述装置包括:An equipment sharing device, characterized in that the device includes:
    接收模块,用于接收包含第二管理设备的设备信息以及第一配对信息的第一请求;所述第一请求是第一管理设备根据所述第二管理设备的设备信息发送的;所述第二管理设备的设备信息是所述第一管理设备通过超宽带UWB方式获取所述第二管理设备的UWB标识信息,并对所述UWB标识信息进行解析得到的;A receiving module, configured to receive a first request containing device information of a second management device and first pairing information; the first request is sent by the first management device according to the device information of the second management device; The device information of the second management device is obtained by the first management device obtaining the UWB identification information of the second management device through ultra-wideband UWB and parsing the UWB identification information;
    发送模块,用于根据所述第二管理设备的设备信息,向所述第二管理设备发送第二请求;所述第二请求中包含所述第一配对信息,以便所述第二管理设备根据所述第一配对信息与目标设备建立配对连接。A sending module, configured to send a second request to the second management device according to the device information of the second management device; the second request contains the first pairing information, so that the second management device can The first pairing information establishes a pairing connection with the target device.
  35. 根据权利要求34所述的装置,其特征在于,所述中继平台包括所述第一管理设备对 应的第一观察节点、所述第一管理设备对应的第一验证节点、所述第二管理设备对应的第二观察节点、以及所述第二管理设备对应的第二验证节点;The device according to claim 34, wherein the relay platform includes a first observation node corresponding to the first management device, a first verification node corresponding to the first management device, the second management device a second observation node corresponding to the device, and a second verification node corresponding to the second management device;
    所述接收模块,用于,The receiving module is used to,
    通过所述第一观察节点,接收所述第一请求;Receive the first request through the first observation node;
    通过所述第一观察节点,将所述第一请求转发至所述第一验证节点;forward the first request to the first verification node through the first observation node;
    通过所述第一验证节点,将所述第一请求同步至所述第二验证节点;Synchronize the first request to the second verification node through the first verification node;
    通过所述第二验证节点,将所述第一请求发送给所述第二观察节点;Send the first request to the second observation node through the second verification node;
    所述发送模块,用于通过所述第二观察节点,根据所述第二管理设备的设备信息,向所述第二管理设备发送所述第二请求。The sending module is configured to send the second request to the second management device through the second observation node according to the device information of the second management device.
  36. 根据权利要求34或35所述的装置,其特征在于,所述第一请求和所述第二请求中还包含所述第一管理设备的设备信息。The apparatus according to claim 34 or 35, wherein the first request and the second request also include device information of the first management device.
  37. 一种计算机设备,其特征在于,所述计算机设备包括处理器、存储器和收发器;A computer device, characterized in that the computer device includes a processor, a memory and a transceiver;
    所述存储器中存储有计算机程序,所述处理器执行所述计算机程序,以使得所述计算机设备实现如上述权利要求1至18任一所述的设备分享方法。A computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the device sharing method as described in any one of claims 1 to 18.
  38. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至18任一所述的设备分享方法。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 sharing method according to any one of claims 1 to 18.
  39. 一种芯片,其特征在于,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行如权利要求1至18任一所述的设备分享方法。A chip, characterized in that the chip is used to run in a computer device, so that the computer device executes the device sharing method according to any one of claims 1 to 18.
  40. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,计算机设备的处理器读取所述计算机指令,并执行所述计算机指令,使得所述计算机设备执行如权利要求1至18任一所述的设备分享方法。A computer program product, characterized in that the computer program product includes computer instructions, and the processor of the computer device reads the computer instructions and executes the computer instructions, so that the computer device executes claims 1 to 18 Any of the device sharing methods described above.
  41. 一种计算机程序,其特征在于,所述计算机程序由计算机设备的处理器执行,以实现如权利要求1至18任一所述的设备分享方法。A computer program, characterized in that the computer program is executed by a processor of a computer device to implement the device sharing method as claimed in any one of claims 1 to 18.
PCT/CN2022/085182 2022-04-02 2022-04-02 Device sharing method and apparatus, device, storage medium, and program product WO2023184560A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/085182 WO2023184560A1 (en) 2022-04-02 2022-04-02 Device sharing method and apparatus, device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/085182 WO2023184560A1 (en) 2022-04-02 2022-04-02 Device sharing method and apparatus, device, storage medium, and program product

Publications (1)

Publication Number Publication Date
WO2023184560A1 true WO2023184560A1 (en) 2023-10-05

Family

ID=88198688

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085182 WO2023184560A1 (en) 2022-04-02 2022-04-02 Device sharing method and apparatus, device, storage medium, and program product

Country Status (1)

Country Link
WO (1) WO2023184560A1 (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170171180A1 (en) * 2015-12-14 2017-06-15 Afero, Inc. System and method for sharing internet of things (iot) devices
US20170201852A1 (en) * 2014-05-29 2017-07-13 Huawei Technologies Co., Ltd. Media content sharing method and apparatus
CN107567009A (en) * 2017-09-28 2018-01-09 北京地平线机器人技术研发有限公司 Bluetooth equipment shares request and control method and electronic equipment
CN107948926A (en) * 2017-11-02 2018-04-20 北京小米移动软件有限公司 The method and apparatus that smart machine is shared
CN110198257A (en) * 2019-05-27 2019-09-03 苏宁智能终端有限公司 A kind of method, device and equipment that smart machine is shared
CN110430558A (en) * 2019-06-26 2019-11-08 深圳绿米联创科技有限公司 Apparatus control method, device, electronic equipment and storage medium
CN110611905A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Information sharing method, terminal device, storage medium, and computer program product
CN112423226A (en) * 2020-11-24 2021-02-26 三星电子(中国)研发中心 File sharing method and device and intelligent equipment
CN113950803A (en) * 2019-10-18 2022-01-18 Oppo广东移动通信有限公司 Device authority control method, device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170201852A1 (en) * 2014-05-29 2017-07-13 Huawei Technologies Co., Ltd. Media content sharing method and apparatus
US20170171180A1 (en) * 2015-12-14 2017-06-15 Afero, Inc. System and method for sharing internet of things (iot) devices
CN107567009A (en) * 2017-09-28 2018-01-09 北京地平线机器人技术研发有限公司 Bluetooth equipment shares request and control method and electronic equipment
CN107948926A (en) * 2017-11-02 2018-04-20 北京小米移动软件有限公司 The method and apparatus that smart machine is shared
CN110198257A (en) * 2019-05-27 2019-09-03 苏宁智能终端有限公司 A kind of method, device and equipment that smart machine is shared
CN110430558A (en) * 2019-06-26 2019-11-08 深圳绿米联创科技有限公司 Apparatus control method, device, electronic equipment and storage medium
CN110611905A (en) * 2019-08-09 2019-12-24 华为技术有限公司 Information sharing method, terminal device, storage medium, and computer program product
CN113950803A (en) * 2019-10-18 2022-01-18 Oppo广东移动通信有限公司 Device authority control method, device and storage medium
CN112423226A (en) * 2020-11-24 2021-02-26 三星电子(中国)研发中心 File sharing method and device and intelligent equipment

Similar Documents

Publication Publication Date Title
US10965473B2 (en) Smart object identification in the digital home
US9596603B2 (en) Distributed bulk onboarding process
WO2016057548A1 (en) Time variant data profile for a fabric network
CN105245574B (en) Internet of Things network control method and system based on mobile terminal multi-hop
WO2017066574A1 (en) Coap enhancements to enable an autonomic control plane
WO2011116617A1 (en) Combination network and method for accessing network of wireless sensor network terminal
CN102905396A (en) Device networking and network-accessing management method for intelligent housing system
WO2011116589A1 (en) Combination network and method for wireless sensor network terminal to join in network
US20190372973A1 (en) Device onboarding with automatic ipsk provisioning in wireless networks
CN112198805A (en) Equipment control method, device, system, computing equipment and storage medium
CN113794996B (en) Device communication, device control method, device, electronic device, and storage medium
US20090240815A1 (en) Upnp apparatus and method for providing remote access service
WO2014176993A1 (en) Method server and system for managing mobile device
WO2023184560A1 (en) Device sharing method and apparatus, device, storage medium, and program product
US11751050B2 (en) Provisioning a network device for secure communications
WO2023173366A1 (en) Device discovery method and apparatus, and device, storage medium and program product
WO2023184559A1 (en) Device sharing method and apparatus, and device, storage medium and program product
WO2023173365A1 (en) Device discovery method and apparatus, device, storage medium, and program product
CN113938345A (en) Control method and system of linkage equipment, intelligent gateway equipment and storage medium
CN114640691A (en) Equipment connection method and system and corresponding Internet of things equipment
WO2011116588A1 (en) Integrated network and method for wireless sensor network terminal to join in network
CN112152850A (en) Internet of things equipment management method based on IGRS (intelligent grouping and resource sharing) protocol and business terminal
US20220278867A1 (en) Method and apparatus for linking and controlling iot devices based on app to app communication in wireless lan system in smart home environment
US20240179145A1 (en) Method for connection establishment and internet of things (iot) device
WO2023173364A1 (en) Device binding 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: 22934386

Country of ref document: EP

Kind code of ref document: A1