WO2023173366A1 - Device discovery method and apparatus, and device, storage medium and program product - Google Patents
Device discovery method and apparatus, and device, storage medium and program product Download PDFInfo
- Publication number
- WO2023173366A1 WO2023173366A1 PCT/CN2022/081475 CN2022081475W WO2023173366A1 WO 2023173366 A1 WO2023173366 A1 WO 2023173366A1 CN 2022081475 W CN2022081475 W CN 2022081475W WO 2023173366 A1 WO2023173366 A1 WO 2023173366A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- uwb
- information
- identification information
- distance
- target device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
Definitions
- This application relates to the technical field of the Internet of Things, and in particular to a device discovery method, device, equipment, storage medium and program product.
- IoT Internet of Things
- the configuration device can usually obtain the device information of the IoT device by scanning a QR code or the user manually inputting a pairing code.
- Embodiments of the present application provide a device discovery method, device, equipment, storage medium and program product.
- the technical solutions are as follows:
- embodiments of the present application provide a device discovery method, which is executed by a configuration device.
- the method includes:
- the UWB identification information is parsed to obtain device information of the target device.
- embodiments of the present application provide a device discovery method, which is executed by a target device.
- the method includes:
- UWB identification information is sent to the configuration device in an ultra-wideband UWB manner, so that the configuration device parses the UWB identification information and obtains device information of the target device.
- a device discovery device which includes:
- a parsing module configured to parse the UWB identification information and obtain device information of the target device.
- a device discovery device which includes:
- a sending module configured to send UWB identification information to the configuration device in an ultra-wideband UWB manner, so that the configuration device can parse the UWB identification information and obtain device information of the target device.
- embodiments of the present application provide a device control method, which is executed by a configuration device, and the method further includes:
- the target device is controlled according to the association between the UWB identification information of the target device and the device identification information of the target device.
- an equipment control device which includes:
- a first establishment module configured to establish an association between the UWB identification information of the target device and the device identification information of the target device
- a control module configured to control the target device according to the association between the UWB identification information of the target device and the device identification information of 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 discovery method or device control method.
- embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above device discovery method or device control method.
- the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above device discovery method or device control 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 discovery method or device control method.
- the present application provides a computer program, which is executed by a processor of a computer device to implement the above device discovery method or device control method.
- the device information of the target device can be encoded and mapped to the UWB identification information of the target device.
- the configuration device can obtain the UWB identification information of the target device through UWB and parse it to obtain the device information of the target device, thereby realizing the device discovery process. ;
- users do not need to use the configuration device to perform QR code scanning, input or control the configuration device close to the target device and other cumbersome operations, thus simplifying the device discovery process in the Internet of Things scenario and improving device discovery efficiency.
- 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 discovery method provided by an embodiment of the present application.
- Figure 3 is a flow chart of a device discovery method provided by an embodiment of the present application.
- Figure 4 is a flow chart of a device discovery method provided by an embodiment of the present application.
- Figure 5 is a flow chart of a device discovery method provided by an embodiment of the present application.
- Figure 6 is a schematic diagram of device discovery and control sequence involved in the embodiment shown in Figure 5;
- Figure 7 is a schematic diagram of another device discovery and control sequence involved in the embodiment shown in Figure 5;
- Figure 8 is a flow chart of a device control method provided by an embodiment of the present application.
- Figure 9 is a block diagram of a device discovery device provided by an embodiment of the present application.
- Figure 10 is a block diagram of a device discovery device provided by an embodiment of the present application.
- FIG. 11 is a block diagram of an equipment control device provided by an embodiment of the present application.
- Figure 12 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: Internet of Things devices 110 and configuration devices 120;
- 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 configuration device 120 may be a user-side terminal device.
- the configuration device 120 may be a smartphone, a tablet, a smart watch, a smart TV, or the like.
- the configuration device 120 may also be a client entity (which may be a virtual entity) running on a terminal device.
- the configuration device 120 may be running on a smartphone and used to configure the Internet of Things device. 110 APP for management and configuration.
- 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.
- the IoT devices in the Matter system can use QR Code (Quick Response Code, QR code), Manual Pairing Code (manual pairing code) ), NFC Tag (tag) and other methods to share the device information in Table 1 below to the configuration device in the system (also called Matter configurator).
- QR Code Quick Response Code
- QR code Manual Pairing Code
- NFC Tag tag
- Vendor ID Vendor ID (Identity, identification) Product ID Product ID Discovery Capabilities Bitmask Device discovery method bit mask Discriminator Device identification value (12bit) Passcode Password code(27bit) TLV data User-defined data
- the format of the user-defined data in the above Table 1 is tag-length-value (Tag-Length-Value, TLV) format.
- the configuration device is usually a smart terminal such as the user's smartphone.
- the user is usually required to operate the smartphone.
- the smartphone For example, after users purchase matter smart home devices, they need to scan the QR code on the device with their mobile phone to obtain device information, or manually enter the manual pairing code provided by the device into the mobile phone to obtain device information, or bring the mobile phone into close contact with the device to obtain device information through NFC. method to obtain device information.
- NFC. method to obtain device information.
- Figure 2 shows a flow chart of a device discovery method provided by an embodiment of the present application.
- the method can be executed by a configuration device.
- the configuration device can be the configuration device 120 in the network architecture shown in Figure 1 ; This method may include the following steps:
- Step 201 Obtain UWB identification information of the target device through ultra-wideband UWB.
- the configuration device has an Ultra Wide Band (UWB) component, and UWB scanning can be enabled through the UWB component (also called UWB communication component) to obtain the UWB identification information of the target device.
- UWB Ultra Wide Band
- 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 target device, for example, it may be is the UWB tag ID of the target device.
- the above UWB identification information may be UWB component identification information of a UWB component built into the device, such as UWB component ID.
- 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.
- Step 202 Parse the UWB identification information to obtain device information of the target device.
- the UWB identification information of the target device may be obtained by coding and mapping the device information of the target device.
- the configuration device obtains the above UWB identification information, it can parse the UWB identification information to obtain the device information of the target device.
- the device information of the target device can be encoded and mapped to the UWB identification information of the target device.
- the configuration device can obtain the UWB identification information of the target device through UWB. , and parse the device information of the target device to realize the device discovery process; in the above solution, the user does not need to use the configuration device to scan the QR code, input or control the configuration device to get close to the target device and other cumbersome operations, thus simplifying the Internet of Things
- the device discovery process in the scene improves device discovery efficiency.
- Figure 3 shows a flow chart of a device discovery method provided by an embodiment of the present application.
- the method can be executed by a target device.
- the target device can be an Internet of Things device in the network architecture shown in Figure 1 110; This method may include the following steps:
- Step 301 Send UWB identification information to the configuration device through ultra-wideband UWB, so that the configuration device can parse the UWB identification information and obtain device information of the target device.
- the device information of the target device can be encoded and mapped to the UWB identification information of the target device.
- the target device can use the UWB method to encode the UWB identification information of the target device.
- the configuration device so that the configuration device can parse and obtain the device information of the target device, thereby realizing the device discovery process; in the above solution, the user does not need to use the configuration device to perform QR code scanning, input, or control the configuration device to close to the target device and other cumbersome operations. , thus simplifying the device discovery process in IoT scenarios and improving device discovery efficiency.
- Figure 4 shows a flow chart of a device discovery method provided by an embodiment of the present application.
- the mobile phone 41 is equipped with a UWB component
- the smart home device 42 is equipped with a UWB component or the smart home device 42 is externally connected to UWB Label.
- the user can scan the surrounding UWB devices through the mobile phone 41.
- the smart home device 42 can send its own UWB identification information to the mobile phone 41 through the UWB component or UWB tag.
- the UWB identification information sent by the smart home device 42 is obtained by coding and mapping based on the device information of the smart home device 42 (such as the information shown in Table 1).
- the mobile phone 41 obtains the above UWB identification information through UWB, it can parse the UWB identification information to obtain the device information of the smart home device 42, thereby completing the device discovery process.
- Figure 5 shows a flow chart of a device discovery method provided by an embodiment of the present application.
- This method can be interactively executed by a configuration device and a target device;
- the target device can be a device in the network architecture shown in Figure 1 Internet of Things device 110
- the above-mentioned configuration device may be the configuration device 120 in the network architecture shown in Figure 1; the method may include the following steps:
- Step 501 The configuration device obtains the UWB identification information of the target device in the ultra-wideband UWB mode; accordingly, the target device sends the UWB identification information to the configuration device in the ultra-wideband UWB mode.
- the above steps of obtaining the UWB identification information of the target device through ultra-wideband UWB may include:
- UWB identification information is obtained through ultra-wideband UWB.
- the above-mentioned first trigger operation refers to a predetermined operation received by the configuration device and used to trigger device discovery through ultra-wideband UWB, such as double-clicking the back shell of the device, shaking the device, and so on.
- the target device is a smart home device and the configuration device is the user's mobile phone
- the user purchases the smart home device, he installs and powers on the smart home device, and installs an application (Application, APP) for managing the device on the mobile phone.
- Application, APP Application, APP
- the user shakes the phone, triggering the phone to obtain UWB identification information from the smart home device through UWB.
- UWB Tag information can be UWB tag identification information, which is equivalent to the above UWB identification information
- BLE Bluetooth Low Energy, low-power Bluetooth
- the configuration device can automatically obtain the UWB identification information of the target device through ultra-wideband UWB without any operation triggering. For example, configure the device to scan surrounding UWB devices in real time to obtain UWB identification information.
- the target device before sending the UWB identification information to the configuration device in the ultra-wideband UWB mode, the target device also maps the device information of the target device to the UWB identification information.
- the target device can pre-generate its own device information (such as several types of information shown in Table 1) through a compression algorithm or a specific encoding method, and use the generated string as UWB identification information.
- its own device information such as several types of information shown in Table 1
- the target device can encode and map its own device information into UWB identification information when it is powered on.
- the target device can encode and map its own device information to UWB identification information when the configuration device requests UWB identification information.
- the above-mentioned UWB identification information may also be information that is pre-written into the target device or the UWB tag of the target device before the target device leaves the factory.
- Step 502 The configuration device parses the UWB identification information to obtain device information of the target device.
- the configuration device after the configuration device obtains the UWB identification information, it can parse the UWB identification information according to the parsing method corresponding to the encoding mapping method of the UWB identification information to obtain the device information of the target device.
- the device information of the target device can be stored in the server corresponding to the UWB identification information, and the configuration device parses the UWB identification information, which can be directed to the server to query the device information of the target device corresponding to the UWB identification information. .
- the above process of parsing the UWB identification information and obtaining the device information of the target device may include:
- the UWB identification information is parsed to obtain device information of the target device.
- the configuration device does not learn any information about the target device before discovering the target device, and during the process of discovering the device, it may obtain the UWB identification information of multiple UWB devices. Therefore, the configuration device needs to solve how to accurately locate itself. Problems with the target device that need to be discovered.
- the configuration device when the configuration device obtains the UWB identification information of the target device through UWB, it will also obtain the first UWB measurement information between the configuration device and the target device.
- the first UWB measurement information satisfies
- the conditions it is determined that the target device is the device that needs to be discovered.
- the step of parsing the UWB identification information and obtaining the device information of the target device is performed.
- the first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
- the above-mentioned first UWB measurement information may include at least one of angle information, distance information and signal strength information between the configuration device and the target device.
- the above-mentioned first UWB measurement information may change as the relative positional relationship between the configuration device and the target device changes (including relative angle relationship, distance relationship and whether there is an obstacle).
- the above-mentioned first UWB measurement information may be obtained by measurement by the target device, or the above-mentioned first UWB measurement information may be obtained by measurement by the configuration device.
- the above first UWB measurement information can be obtained by joint measurement by the target device and the configuration device.
- part of the above-mentioned first UWB measurement information is obtained by measurement by the target device, and other part of the information is obtained by measurement by the configuration device; or the above-mentioned first UWB measurement information may be an average result of the respective measurement results of the target device and the configuration device.
- the first condition includes at least one of the following conditions:
- the configuration device when the configuration device obtains the UWB identification information of the target device, and the first UWB measurement information indicates that the target device is currently within the first angle interval in front of the configuration device, it can be determined that the target device is discovered this time. device of.
- the user wants to discover the target device through the configuration device, he or she can point the configuration device to the location of the target device to ensure that the target device is currently within the first angle range in front of the configuration device.
- the configuration device when the configuration device obtains the UWB identification information of the target device, and the first UWB measurement information indicates that the target device is currently within the first distance interval around the configuration device, it can be determined that the target device is the target device this time. Discovered devices.
- the user can move the configuration device near the target device to ensure that the target device is currently within the first distance interval around the configuration device.
- the signal strength indicated by the first signal strength information is within the first signal strength interval.
- the configuration device when the configuration device obtains the UWB identification information of the target device, and the signal strength indicated by the first UWB measurement information is within the first signal strength interval (for example, the signal strength indicated by the first UWB measurement information is greater than first signal strength threshold), it can be determined that the target device is the device discovered this time.
- Step 503 The configuration device pairs with the target device according to the device information of the target device.
- the configuration device after the configuration device obtains the device information of the target device, it can perform a pairing connection with the target device through the obtained device information, for example, a pairing connection based on the Matter protocol.
- Step 504 After successfully pairing with the target device, the configuration device configures the target device.
- the target device can be configured accordingly, for example, the target device can be configured based on the Matter protocol.
- the above-mentioned pairing refers to the secure communication channel before establishing the configuration: including the establishment of the secure channel and device authentication.
- the above-mentioned configuration may include: the configuration of the interoperability certificate after the pairing secure channel is established, and the basic information of the device. Configuration, clock synchronization configuration, location information configuration, access control permission configuration, etc.
- Step 505 The configuration device establishes an association between the UWB identification information and the device identification information of the target device.
- the above device identification information may be the node ID (Node ID) of the target device obtained by the configuration device during the configuration of the target device.
- the configuration device can locally establish and store the association between the UWB identification information and the device identification information of the target device, so that it can be obtained through UWB again later.
- UWB identification information is received, it can be quickly determined that the pairing between the configuration device and the target device has been completed, avoiding the need to re-execute the device discovery and pairing process.
- the configured device can query the associated device identification information based on the UWB identification information. If the associated device identification information is queried, it is determined that the pairing with the device has been completed, and there is no need to continue. Execute the device discovery and pairing process; otherwise, if the associated device identification information is not queried, execute the above device discovery and pairing process.
- Step 506 The configuration device controls the target device according to the association between the UWB identification information and the device identification information of the target device.
- the association between the above UWB identification information and the device identification information of the target device can also be used to control the target device.
- the target device after establishing an association between the UWB identification information and the device identification information of the target device, the target device is controlled based on the association between the UWB identification information and the device identification information of the target device.
- the process can include:
- the above-mentioned second trigger operation is received by the configuration device and is used to trigger a predetermined operation to control the target device, such as double-clicking the back shell of the device, shaking the device, and so on.
- the above-mentioned second triggering operation and the first triggering operation may be the same operation, or they may be different operations.
- the configuration device when the configuration device subsequently receives the second trigger operation, it can obtain the UWB identification information through the ultra-wideband UWB method, and query the associated device identification information and the first operation command through the obtained UWB identification information. If the associated device identification information and the first operation command are queried, the first operation command is sent to the target device according to the associated device identification information to trigger the target device to perform corresponding actions according to the first operation command, such as opening or closing. etc.
- association relationship between the above-mentioned second trigger operation and the first operation command can be customized by the user through the first association operation in the configuration device.
- association between the second trigger operation and the first operation command may also be preset in the APP.
- querying the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation includes:
- the second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
- the second condition includes at least one of the following conditions:
- the angle indicated by the second angle information is within the second angle interval
- the distance indicated by the second distance information is within the second distance interval
- the signal strength indicated by the second signal strength information is within the second signal strength interval.
- the configuration device controls the target device according to the association between the UWB identification information and the device identification information of the target device. It can also determine whether the target device is the device to be controlled this time through the UWB measurement information. The judgment method is similar to the method of judging whether the target device is the device to be discovered this time during the discovery process, and will not be described again here.
- the target device after establishing an association between the UWB identification information and the device identification information of the target device, the target device is controlled based on the association between the UWB identification information and the device identification information of the target device.
- Methods may include:
- the configuration device can also control the target device through the distance between the configuration device and the target device.
- the UWB identification information before obtaining the UWB identification information through ultra-wideband UWB and configuring the third distance information between the device and the target device, it also includes:
- association relationship between the distance indicated by the third distance information and the second operation command can be customized by the user through the second association operation in the configuration device.
- the association between the distance indicated by the third distance information and the second operation command may also be preset in the APP.
- querying the device identification information associated with the UWB identification information and the second operation command associated with the distance indicated by the third distance information includes:
- the third UWB measurement information includes at least one of third angle information, third distance information, and third signal strength information.
- the third condition includes at least one of the following conditions:
- the angle indicated by the third angle information is within the third angle interval
- the distance indicated by the third distance information is within the third distance interval
- the signal strength indicated by the third signal strength information is within the third signal strength interval.
- FIG. 6 shows a schematic diagram of device discovery and control sequence involved in the embodiment of the present application.
- the device taking the configuration device as the configurator (APP) in the mobile phone, the target device as a smart home device (hereinafter referred to as the device), and the UWB identification information as the UWB tag ID as an example, the device discovery and control process can as follows:
- S61 Map the device information data such as Vendor ID, Product ID, Discriminator, Discovery Bitmask, Passcode and so on into UWB tag ID.
- the user performs a trigger event operation by double-clicking the back shell of the phone or shaking it.
- the mobile APP obtains the UWB identification information of the device through UWB.
- the device returns UWB tag ID and angle information.
- the mobile APP determines whether it is the target device based on the angle from which the device label is obtained; if so, execute S66.
- the UWB angle range indicated by the angle information is between -5.0 degrees and +5.0 degrees, it means that it is the target device to be discovered this time.
- the mobile APP parses the device information through the UWB tag ID.
- the mobile APP establishes pairing and configuration with the device through the obtained device information.
- the Node ID assigned to the device will be associated with the UWB tag ID.
- the mobile APP associates the command operation of device-specific resources with the configurator trigger event.
- the mobile APP obtains UWB identification information through UWB.
- the device returns the UWB tag ID and angle information.
- step S613 is the same as step S65.
- the mobile APP searches for the Node ID corresponding to the UWB tag ID.
- the existence of a relationship indicates that the device is paired successfully and searches for the command corresponding to the event.
- the mobile APP executes a command command to the corresponding resource, such as a toggle (state switching) command to switch resources on and off.
- FIG. 7 shows another device discovery and control sequence diagram related to an embodiment of the present application.
- the configuration device as the configurator (APP) in the mobile phone
- the target device as a smart home device (hereinafter referred to as the device)
- the UWB identification information as the UWB tag ID
- the device discovery and control process can as follows:
- S71 Map the device information data such as VendorID, ProductID, Discriminator, Discovery Bitmask, Passcode and so on into UWB tag ID.
- the user holds the mobile phone close to the device or points to the device.
- the mobile APP detects the UWB identification information of the device in real time through UWB.
- the device returns UWB tag ID, angle information, signal strength, and distance information in real time.
- the distance in the UWB identification information detected by the mobile APP reaches the minimum threshold required to set up the device discovery, and the angle and signal strength are within the appropriate range, indicating that the target device has been discovered.
- the mobile APP parses the device information through the UWB tag ID.
- the mobile APP establishes pairing and configuration with the device through the obtained device information.
- the Node ID assigned to the device will be associated with the UWB tag ID.
- the mobile APP associates the command operation of device-specific resources with the configurator trigger event.
- associate device switches with UWB distance ranges.
- the user holds the mobile phone and points it toward or away from the device.
- the mobile APP obtains UWB identification information through UWB.
- the device returns the UWB tag ID, angle information, signal strength, and distance information.
- the mobile APP detects that the UWB angle and signal strength of the device are within the appropriate range and locks the device.
- the mobile APP searches for the Node ID corresponding to the UWB tag ID. If there is a relationship, the device pairing is successful.
- S715 Determine whether the UWB distance of the device is within the set controllable distance range; if so, execute 716.
- the mobile APP executes the command command to the corresponding resource (the detected UWB distance is within the distance range set by the user, and the on command is sent; if it is greater than the distance range, the off command is sent).
- the user can obtain the data information required for device configuration through the UWB function in a non-inductive manner, thereby performing insensitive configuration of the device; the user can use the UWB function without clicking buttons on the controller interface to do To the handheld device you can control the purpose of the device.
- the device information of the target device can be encoded and mapped to the UWB identification information of the target device.
- the target device can use the UWB method to encode the UWB identification information of the target device.
- the configuration device so that the configuration device can parse and obtain the device information of the target device, thereby realizing the device discovery process; in the above solution, the user does not need to use the configuration device to perform QR code scanning, input, or control the configuration device to close to the target device and other cumbersome operations. , thus simplifying the device discovery process in IoT scenarios and improving device discovery efficiency.
- Figure 8 shows a flow chart of a device control method provided by an embodiment of the present application.
- This method can be executed by a configuration device, which can be the configuration device 120 in the network architecture shown in Figure 1;
- the method may include the following steps:
- Step 801 Establish an association between the UWB identification information of the target device and the device identification information of the target device.
- the configuration device is provided with a UWB component; the target device is provided with a UWB component, or the target device is externally connected with a UWB tag.
- the configuration device After the configuration device completes the configuration of the target device, the UWB identification information of the target device and the device identification information of the target device can be obtained. Then, the configuration device may establish an association between the UWB identification information of the target device and the device identification information of the target device.
- the UWB identification information may be UWB component identification information of a UWB component of the target device, or UWB tag identification information of a UWB tag external to the target device.
- the device identification information of the above-mentioned target device may be the node identification information (Node ID) of the target device in the Internet of Things.
- the configuration device can also obtain the device information of the target device through QR code, pairing code, etc., to realize the discovery of the target device.
- the embodiments of this application do not limit the device discovery method used to configure the device.
- Step 802 Control the target device according to the correlation between the UWB identification information of the target device and the device identification information of the target device.
- step 506 for the above-mentioned process of controlling the target device, reference may be made to the description under step 506 in the embodiment shown in FIG. 5, which will not be described again here.
- the solution shown in the embodiment of this application provides a solution for controlling IoT devices through UWB, thereby expanding the device control method in the IoT and improving the efficiency of device control.
- FIG. 9 shows a block diagram of a device discovery device provided by an embodiment of the present application.
- the device discovery device 900 has the function of implementing the configuration device in the method shown in FIG. 2 or FIG. 5 .
- the device discovery device 900 may include:
- the information acquisition module 901 is used to obtain the UWB identification information of the target device through ultra-wideband UWB;
- the parsing module 902 is used to parse the UWB identification information and obtain the device information of the target device.
- the device further includes:
- a configuration module configured to configure the target device according to the device information of the target device.
- the device further includes:
- a first establishment module configured to establish an association between the UWB identification information and the device identification information of the target device.
- the parsing module 902 is used to:
- the UWB identification information is parsed to obtain device information of the target device.
- 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 information acquisition module 901 is configured to acquire the UWB identification information through ultra-wideband UWB when receiving a first trigger operation.
- the information acquisition module 901 is further configured to, after the first establishment module establishes the association between the UWB identification information and the device identification information of the target device, when receiving When the second triggering operation is performed, obtain the UWB identification information through ultra-wideband UWB;
- the device also includes:
- a first query module configured to query the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation;
- a first sending module configured to send the first operation command to the target device according to the device identification information.
- the device further includes:
- a first operation receiving module configured to receive a first association operation before the information acquisition module 901 obtains the UWB identification information through ultra-wideband UWB when receiving the second trigger operation;
- the second establishment module is configured to establish an association between the second trigger operation and the first operation command according to the first association operation.
- the first query module is used to,
- the second UWB measurement information includes at least one of second angle information, second distance information, and the second signal strength information.
- the second condition includes at least one of the following conditions:
- the angle indicated by the second angle information is within the second angle interval
- the distance indicated by the second distance information is within the second distance interval
- the signal strength indicated by the second signal strength information is within a second signal strength interval.
- the information acquisition module 901 is further configured to, after the first establishment module establishes the association between the UWB identification information and the device identification information of the target device, through the ultrasonic Acquire the UWB identification information and the third distance information between the configuration device and the target device in a broadband UWB manner;
- the device also includes:
- a second query module configured to query the device identification information associated with the UWB identification information and the second operation command associated with the distance indicated by the third distance information
- the second sending module is configured to send the second operation command to the target device according to the device identification information.
- the device further includes:
- the second operation receiving module is configured to receive a second operation before the information obtaining module 901 obtains the UWB identification information and the third distance information between the configuration device and the target device through ultra-wideband UWB. associated operations;
- a third establishment module configured to establish an association between the distance indicated by the third distance information and the second operation command according to the second association operation.
- the second query module is used to,
- the third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
- the third condition includes at least one of the following conditions:
- the angle indicated by the third angle information is within a third angle interval
- the distance indicated by the third distance information is within a third distance interval
- the signal strength indicated by the third signal strength information is within a third signal strength interval.
- the UWB identification information is the UWB tag identification information of a UWB tag external to the device;
- the UWB identification information is UWB component identification information of a UWB component built into the device.
- FIG. 10 shows a block diagram of a device discovery device provided by an embodiment of the present application.
- the device discovery device 1000 has the function of being executed by the target device in implementing the method shown in FIG. 3 or FIG. 5 .
- the device discovery device 1000 may include:
- the sending module 1001 is configured to send UWB identification information to a configuration device in an ultra-wideband UWB manner, so that the configuration device can parse the UWB identification information and obtain device information of the target device.
- the device further includes:
- a mapping module configured to map the device information of the target device to the UWB identification information before the sending module 1001 sends the UWB identification information to the configuration device in an ultra-wideband UWB manner.
- the UWB identification information is the UWB tag identification information of a UWB tag external to the device;
- the UWB identification information is UWB component identification information of a UWB component built into the device.
- FIG. 11 shows a block diagram of a device control device provided by an embodiment of the present application.
- the device discovery device 1100 has the function executed by the configuration device in implementing the method shown in FIG. 8 .
- the equipment control device 1100 may include:
- the first establishment module 1101 is used to establish an association between the UWB identification information of the target device and the device identification information of the target device;
- the control module 1102 is configured to control the target device according to the association between the UWB identification information of the target device and the device identification information of the target device.
- control module 1102 is used to:
- the device further includes:
- a first operation receiving module configured to receive a first association operation before the control module 1102 obtains the UWB identification information through UWB when receiving the second triggering operation;
- the second establishment module is configured to establish an association between the second trigger operation and the first operation command according to the first association operation.
- control module 1102 is used to:
- the second UWB measurement information includes at least one of second angle information, second distance information, and the second signal strength information.
- the second condition includes at least one of the following conditions:
- the angle indicated by the second angle information is within the second angle interval
- the distance indicated by the second distance information is within the second distance interval
- the signal strength indicated by the second signal strength information is within a second signal strength interval.
- control module 1102 is used to:
- the device further includes:
- the second operation receiving module is configured to receive a second association before the control module 1102 obtains the UWB identification information and the third distance information between the configuration device and the target device through ultra-wideband UWB. operate;
- a third establishment module configured to establish an association between the distance indicated by the third distance information and the second operation command according to the second association operation.
- control module 1102 is used to:
- the third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
- the third condition includes at least one of the following conditions:
- the angle indicated by the third angle information is within a third angle interval
- the distance indicated by the third distance information is within a third distance interval
- the signal strength indicated by the third signal strength information is within a third signal strength interval.
- the UWB identification information is the UWB tag identification information of a UWB tag external to the device;
- the UWB identification information is UWB component identification information of a UWB component built into the device.
- the computer device 1200 may include a processor 1201, a receiver 1202, a transmitter 1203, a memory 1204, and a bus 1205.
- the processor 1201 includes one or more processing cores.
- the processor 1201 executes various functional applications and information processing by running software programs and modules.
- the receiver 1202 and the transmitter 1203 can be implemented as a communication component, and the communication component can be a communication chip.
- This communication chip can also be called a transceiver.
- Memory 1204 is connected to processor 1201 through bus 1205.
- the memory 1204 can be used to store a computer program, and the processor 1201 is used to execute the computer program to implement various steps in the above method embodiments.
- memory 1204 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 is used to obtain the UWB identification information of the target device through ultra-wideband UWB; the processor is used to obtain the UWB identification information of the target device. The information is parsed to obtain the device information of the target device.
- the process performed by the processor and/or transceiver in the computer device 1200 may refer to the various steps performed by the configuration device in the method shown in either of the above-mentioned FIG. 2 or FIG. 5 .
- the transceiver when the computer device 1200 is implemented as a target device, the transceiver is configured to send UWB identification information to the configuration device in an ultra-wideband UWB manner, so that the configuration device can identify the UWB identification information. Perform analysis to obtain the device information of the target device.
- the process performed by the processor and/or transceiver in the computer device 1200 may refer to the various steps performed by the target device in the method shown in either of the above-mentioned FIG. 3 or FIG. 5 .
- the processor when the computer device 1200 is implemented as a configuration device, the processor is configured to establish an association between the UWB identification information of the target device and the device identification information of the target device; according to the The target device is controlled by the association between the UWB identification information of the target device and the device identification information of the target device.
- the process performed by the processor and/or the transceiver in the computer device 1200 may refer to the various steps performed by the configuration device in the method shown in FIG. 8 .
- 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. 5 or FIG. 8. All or part of the steps performed by the configuration device or the target device in the method shown.
- This application also provides a chip, which is used to run in a computer device, so that the computer device executes the method performed by the configuration device or the target device in the above-mentioned method shown in Figure 2, Figure 3, Figure 5 or Figure 8. All or part of the steps.
- the application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
- the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method shown in Figure 2, Figure 3, Figure 5 or Figure 8, by configuring the device or All or part of the steps performed by the target device.
- This application also provides a computer program, which is executed by the processor of the computer device to implement all the steps executed by the configuration device or the target device in the method shown in FIG. 2, FIG. 3, FIG. 5 or FIG. 8. Or some steps.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本申请涉及物联网技术领域,特别涉及一种设备发现方法、装置、设备、存储介质及程序产品。This application relates to the technical field of the Internet of Things, and in particular to a device discovery method, device, equipment, storage medium and program product.
随着物联网(Internet of Things,IoT)技术的不断发展,越来越多的物联网设备在智能家居、工业生产等诸多领域给用户的生产生活带来了极大的便利性。With the continuous development of Internet of Things (IoT) technology, more and more IoT devices have brought great convenience to users' production and life in many fields such as smart homes and industrial production.
配置设备对物联网设备进行配置之前,需要先发现物联网设备,也就是获取可配置的物联网设备的设备信息。在相关技术中,配置设备通常可以通过扫描二维码或者用户手动输入配对代码等方式,获取物联网设备的设备信息。Configuring the device Before configuring the IoT device, you need to discover the IoT device first, that is, obtain the device information of the configurable IoT device. In related technologies, the configuration device can usually obtain the device information of the IoT device by scanning a QR code or the user manually inputting a pairing code.
发明内容Contents of the invention
本申请实施例提供了一种设备发现方法、装置、设备、存储介质及程序产品。所述技术方案如下:Embodiments of the present application provide a device discovery method, device, equipment, storage medium and program product. The technical solutions are as follows:
一方面,本申请实施例提供了一种设备发现方法,所述方法由配置设备执行,所述方法包括:On the one hand, embodiments of the present application provide a device discovery method, which is executed by a configuration device. The method includes:
通过超宽带UWB方式获取目标设备的UWB标识信息;Obtain the UWB identification information of the target device through ultra-wideband UWB;
对所述UWB标识信息进行解析,获得所述目标设备的设备信息。The UWB identification information is parsed to obtain device information of the target device.
一方面,本申请实施例提供了一种设备发现方法,所述方法由目标设备执行,所述方法包括:On the one hand, embodiments of the present application provide a device discovery method, which is executed by a target device. The method includes:
通过超宽带UWB方式向配置设备发送UWB标识信息,以便所述配置设备对所述UWB标识信息进行解析,获得所述目标设备的设备信息。UWB identification information is sent to the configuration device in an ultra-wideband UWB manner, so that the configuration device parses the UWB identification information and obtains device information of the target device.
另一方面,本申请实施例提供了一种设备发现装置,所述装置包括:On the other hand, embodiments of the present application provide a device discovery device, which includes:
信息获取模块,用于通过超宽带UWB方式获取目标设备的UWB标识信息;Information acquisition module, used to obtain the UWB identification information of the target device through ultra-wideband UWB;
解析模块,用于对所述UWB标识信息进行解析,获得所述目标设备的设备信息。A parsing module, configured to parse the UWB identification information and obtain device information of the target device.
另一方面,本申请实施例提供了一种设备发现装置,所述装置包括:On the other hand, embodiments of the present application provide a device discovery device, which includes:
发送模块,用于通过超宽带UWB方式向配置设备发送UWB标识信息,以便所述配置设备对所述UWB标识信息进行解析,获得所述目标设备的设备信息。A sending module, configured to send UWB identification information to the configuration device in an ultra-wideband UWB manner, so that the configuration device can parse the UWB identification information and obtain device information of the target device.
一方面,本申请实施例提供了一种设备控制方法,所述方法由配置设备执行,所述方法还包括:On the one hand, embodiments of the present application provide a device control method, which is executed by a configuration device, and the method further includes:
建立目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系;Establish an association between the UWB identification information of the target device and the device identification information of the target device;
根据所述目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系,对所述目标设备进行控制。The target device is controlled according to the association between the UWB identification information of the target device and the device identification information of the target device.
另一方面,本申请实施例提供了一种设备控制装置,所述装置包括:On the other hand, embodiments of the present application provide an equipment control device, which includes:
第一建立模块,用于建立目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系;A first establishment module, configured to establish an association between the UWB identification information of the target device and the device identification information of the target device;
控制模块,用于根据所述目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系,对所述目标设备进行控制。A control module configured to control the target device according to the association between the UWB identification information of the target device and the device identification information of 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 discovery method or device control method.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述设备发现方法或者设备控制方法。On another aspect, embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above device discovery method or device control method.
又一方面,本申请还提供了一种芯片,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行上述设备发现方法或者设备控制方法。In another aspect, the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above device discovery method or device control 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 discovery method or device control method.
又一方面,本申请提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述设备发现方法或者设备控制方法。In another aspect, the present application provides a computer program, which is executed by a processor of a computer device to implement the above device discovery method or device control method.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided by the embodiments of this application can bring the following beneficial effects:
目标设备的设备信息可以编码映射为目标设备的UWB标识信息,在设备发现过程中,配置设备可以 通过UWB方式获取目标设备的UWB标识信息,并解析得到目标设备的设备信息,从而实现设备发现过程;在上述方案中,用户不需要使用配置设备进行二维码扫描、输入或者控制配置设备贴近目标设备等繁琐操作,从而简化了物联网场景中的设备发现流程,提高了设备发现效率。The device information of the target device can be encoded and mapped to the UWB identification information of the target device. During the device discovery process, the configuration device can obtain the UWB identification information of the target device through UWB and parse it to obtain the device information of the target device, thereby realizing the device discovery process. ; In the above solution, users do not need to use the configuration device to perform QR code scanning, input or control the configuration device close to the target device and other cumbersome operations, thus simplifying the device discovery process in the Internet of Things scenario and improving device discovery efficiency.
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。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 discovery method provided by an embodiment of the present application;
图3是本申请一个实施例提供的设备发现方法的流程图;Figure 3 is a flow chart of a device discovery method provided by an embodiment of the present application;
图4是本申请一个实施例提供的设备发现方法的流程图;Figure 4 is a flow chart of a device discovery method provided by an embodiment of the present application;
图5是本申请一个实施例提供的设备发现方法的流程图;Figure 5 is a flow chart of a device discovery method provided by an embodiment of the present application;
图6是图5所示实施例涉及的一种设备发现和控制时序示意图;Figure 6 is a schematic diagram of device discovery and control sequence involved in the embodiment shown in Figure 5;
图7是图5所示实施例涉及的另一种设备发现和控制时序示意图;Figure 7 is a schematic diagram of another device discovery and control sequence involved in the embodiment shown in Figure 5;
图8是本申请一个实施例提供的设备控制方法的流程图;Figure 8 is a flow chart of a device control method provided by an embodiment of the present application;
图9是本申请一个实施例提供的设备发现装置的框图;Figure 9 is a block diagram of a device discovery device provided by an embodiment of the present application;
图10是本申请一个实施例提供的设备发现装置的框图;Figure 10 is a block diagram of a device discovery device provided by an embodiment of the present application;
图11是本申请一个实施例提供的设备控制装置的框图;Figure 11 is a block diagram of an equipment control device provided by an embodiment of the present application;
图12是本申请一个实施例提供的计算机设备的结构示意图。Figure 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。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;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: Internet of Things
物联网设备110可以是在物联网中,用于提供物联网协议对应的服务端功能的设备。源设备可以对外提供可订阅的资源。The Internet of Things
比如,物联网设备110可以是智能家居设备,例如,智能灯具、智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人、智能音箱、智能开关等等。For example, the IoT
或者,物联网设备110可以是工业生产设备,例如,车床、工业机器人、太阳能面板、风力发电机等等。Alternatively, the IoT
或者,物联网设备110可以是商业服务设备,例如,无人售货机等等。Alternatively, the Internet of Things
或者,物联网设备110可以是智能监控设备,例如,监控摄像头、红外传感器、声音传感器、温度传感器等等。Alternatively, the
在一种可能的实现方式中,物联网设备110也可以是用户侧的终端设备。比如,物联网设备110可以是智能控制器、智能遥控器、智能手机、平板电脑、智能手表、智能电视、网关等等;或者,物联网设备110也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。In a possible implementation, the Internet of
配置设备120可以是用户侧的终端设备。比如,配置设备120可以是智能手机、平板电脑、智能手表、智能电视等等。The
在另一种可能的实现方式中,配置设备120也可以是基于终端设备运行的客户端实体(可以是虚拟实体),例如,配置设备120可以是运行在智能手机中,用于对物联网设备110进行管理配置的APP。In another possible implementation, the
在本申请实施例中,上述物联网设备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
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.
在一种可能的实现方式中,在设备发现步骤中,Matter系统中的物联网设备(也称为Matter设备)可以通过QR Code(Quick Response Code,二维码)、Manual Pairing Code(手动配对代码)、NFC Tag(标签)等方式将下述表1中的设备信息共享给系统中的配置设备(也称为Matter配置器)。In a possible implementation, in the device discovery step, the IoT devices in the Matter system (also known as Matter devices) can use QR Code (Quick Response Code, QR code), Manual Pairing Code (manual pairing code) ), NFC Tag (tag) and other methods to share the device information in Table 1 below to the configuration device in the system (also called Matter configurator).
表1Table 1
其中,上述表1中的用户自定义数据的格式为标签-长度-值(Tag-Length-Value,TLV)格式。Among them, the format of the user-defined data in the above Table 1 is tag-length-value (Tag-Length-Value, TLV) format.
在上述设备发现方案中,配置设备通常为用户的智能手机等智能终端。在设备发现过程中,通常需要用户对智能手机进行操作。例如,用户购买matter智能家居设备后,需要通过手机扫描设备上二维码获取设备信息,或者在手机中手动输入设备提供的manual pairing code获取设备信息,或者将手机近距离接触设备,以通过NFC方式获取设备信息。这些操作都给用户带来了一些操作上的不便。比如,扫描二维码和手动输入manual pairing code都需要用户在手机执行一系列的操作,而NFC方式则需要用户将手机与设备间保持近距离接触。In the above device discovery solution, the configuration device is usually a smart terminal such as the user's smartphone. During the device discovery process, the user is usually required to operate the smartphone. For example, after users purchase matter smart home devices, they need to scan the QR code on the device with their mobile phone to obtain device information, or manually enter the manual pairing code provided by the device into the mobile phone to obtain device information, or bring the mobile phone into close contact with the device to obtain device information through NFC. method to obtain device information. These operations have brought some operational inconvenience to users. For example, scanning the QR code and manually entering the manual pairing code require the user to perform a series of operations on the mobile phone, while the NFC method requires the user to keep the mobile phone in close contact with the device.
而本申请实施例后续提供的方案,可以简化设备发现过程中的用户操作,提高设备发现的效率。The solutions provided later in the embodiments of this application can simplify user operations in the device discovery process and improve the efficiency of device discovery.
请参考图2,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由配置设备执行,比如,该配置设备可以是图1所示的网络架构中的配置设备120;该方法可以包括如下几个步骤:Please refer to Figure 2, which shows a flow chart of a device discovery method provided by an embodiment of the present application. The method can be executed by a configuration device. For example, the configuration device can be the
步骤201,通过超宽带UWB方式获取目标设备的UWB标识信息。Step 201: Obtain UWB identification information of the target device through ultra-wideband UWB.
在本申请实施例中,配置设备具有超宽带(Ultra Wide Band,UWB)组件,可以通过UWB组件(也称为UWB通信组件)开启UWB扫描,获得目标设备的UWB标识信息。In the embodiment of this application, the configuration device has an Ultra Wide Band (UWB) component, and UWB scanning can be enabled through the UWB component (also called UWB communication component) to obtain the UWB identification information of the target device.
在一种可能的实现方式中,上述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 target device, for example, it may be is the UWB tag ID of the target device.
或者,上述UWB标识信息,可以是设备内置的UWB组件的UWB组件标识信息,比如UWB组件ID。其中,上述UWB组件是具有UWB通信功能的组件,其可以扫描其它设备的UWB标识信息,或者,与其它设备的UWB组件进行通信。Alternatively, the above UWB identification information may be UWB component identification information of a UWB component built into the device, such as UWB component ID. 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.
步骤202,对UWB标识信息进行解析,获得目标设备的设备信息。Step 202: Parse the UWB identification information to obtain device information of the target device.
在本申请实施例中,上述目标设备的UWB标识信息可以是通过对目标设备的设备信息进行编码映射的方式得到的。In this embodiment of the present application, the UWB identification information of the target device may be obtained by coding and mapping the device information of the target device.
相应的,配置设备获取到上述UWB标识信息之后,可以对UWB标识信息进行解析,得到目标设备的设备信息。Correspondingly, after the configuration device obtains the above UWB identification information, it can parse the UWB identification information to obtain the device information of the target device.
综上所述,在本申请实施例所示的方案,目标设备的设备信息可以编码映射为目标设备的UWB标识信息,在设备发现过程中,配置设备可以通过UWB方式获取目标设备的UWB标识信息,并解析得到目标设备的设备信息,从而实现设备发现过程;在上述方案中,用户不需要使用配置设备进行二维码扫描、输入或者控制配置设备贴近目标设备等繁琐操作,从而简化了物联网场景中的设备发现流程,提高了设备发现效率。To sum up, in the solution shown in the embodiment of this application, the device information of the target device can be encoded and mapped to the UWB identification information of the target device. During the device discovery process, the configuration device can obtain the UWB identification information of the target device through UWB. , and parse the device information of the target device to realize the device discovery process; in the above solution, the user does not need to use the configuration device to scan the QR code, input or control the configuration device to get close to the target device and other cumbersome operations, thus simplifying the Internet of Things The device discovery process in the scene improves device discovery efficiency.
请参考图3,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由目标设备执行,比如,该目标设备可以是图1所示的网络架构中的物联网设备110;该方法可以包括如下几个步骤:Please refer to Figure 3, which shows a flow chart of a device discovery method provided by an embodiment of the present application. The method can be executed by a target device. For example, the target device can be an Internet of Things device in the network architecture shown in Figure 1 110; This method may include the following steps:
步骤301,通过超宽带UWB方式向配置设备发送UWB标识信息,以便配置设备对UWB标识信息进行解析,获得目标设备的设备信息。Step 301: Send UWB identification information to the configuration device through ultra-wideband UWB, so that the configuration device can parse the UWB identification information and obtain device information of the target device.
综上所述,在本申请实施例所示的方案,目标设备的设备信息可以编码映射为目标设备的UWB标识信息,在设备发现过程中,目标设备可以通过UWB方式将目标设备的UWB标识信息提供给配置设备,以便配置设备解析得到目标设备的设备信息,从而实现设备发现过程;在上述方案中,用户不需要使用配置设备进行二维码扫描、输入或者控制配置设备贴近目标设备等繁琐操作,从而简化了物联网场景中的设备发现流程,提高了设备发现效率。To sum up, in the solution shown in the embodiment of the present application, the device information of the target device can be encoded and mapped to the UWB identification information of the target device. During the device discovery process, the target device can use the UWB method to encode the UWB identification information of the target device. Provided to the configuration device so that the configuration device can parse and obtain the device information of the target device, thereby realizing the device discovery process; in the above solution, the user does not need to use the configuration device to perform QR code scanning, input, or control the configuration device to close to the target device and other cumbersome operations. , thus simplifying the device discovery process in IoT scenarios and improving device discovery efficiency.
基于上述图2或图3所示的方案,请参考图4,其示出了本申请一个实施例提供的设备发现方法的流程图。Based on the solution shown in Figure 2 or Figure 3 above, please refer to Figure 4, which shows a flow chart of a device discovery method provided by an embodiment of the present application.
如图4所示,以配置设备是用户的手机41,目标设备是智能家居设备42为例,手机41中设置有UWB组件,智能家居设备42中设置有UWB组件或者智能家居设备42外接有UWB标签。As shown in Figure 4, taking the configuration device as the user's
在设备发现过程中,智能家居设备42通电后,用户可以通过手机41扫描周围的UWB设备,此时,智能家居设备42可以通过UWB组件或者UWB标签将自己的UWB标识信息发送给手机41。其中,智能家居设备42发送的UWB标识信息是基于智能家居设备42的设备信息(比如表1所示的信息)进行编码映射得到的。手机41通过UWB方式获取到上述UWB标识信息后,可以对UWB标识信息进行解析,得到智能家居设备42的设备信息,从而完成设备发现过程。During the device discovery process, after the
请参考图5,其示出了本申请一个实施例提供的设备发现方法的流程图,该方法可以由配置设备以及目标设备交互执行;比如,上述目标设备可以是图1所示网络架构中的物联网设备110,上述配置设备可以是图1所示网络架构中的配置设备120;该方法可以包括如下几个步骤:Please refer to Figure 5, which shows a flow chart of a device discovery method provided by an embodiment of the present application. This method can be interactively executed by a configuration device and a target device; for example, the target device can be a device in the network architecture shown in Figure 1 Internet of
步骤501,配置设备通过超宽带UWB方式获取目标设备的UWB标识信息;相应的,目标设备通过超宽带UWB方式向配置设备发送UWB标识信息。Step 501: The configuration device obtains the UWB identification information of the target device in the ultra-wideband UWB mode; accordingly, the target device sends the UWB identification information to the configuration device in the ultra-wideband UWB mode.
在一种可能的实现方式中,上述通过超宽带UWB方式获取目标设备的UWB标识信息的步骤可以包括:In a possible implementation, the above steps of obtaining the UWB identification information of the target device through ultra-wideband UWB may include:
当接收到第一触发操作时,通过超宽带UWB方式获取UWB标识信息。When the first trigger operation is received, UWB identification information is obtained through ultra-wideband UWB.
其中,上述第一触发操作是指配置设备接收到的,用于触发通过超宽带UWB方式进行设备发现的预定操作,比如双击设备后壳、摇一摇设备等等。The above-mentioned first trigger operation refers to a predetermined operation received by the configuration device and used to trigger device discovery through ultra-wideband UWB, such as double-clicking the back shell of the device, shaking the device, and so on.
比如,以目标设备是智能家居设备,配置设备是用户的手机为例,用户购买智能家居设备之后,将智能家居设备安装通电,并在手机上安装用于管理设备的应用程序(Application,APP)。之后,用户摇一摇手机,触发手机通过UWB方式,向智能家居设备获取UWB标识信息。For example, assuming that the target device is a smart home device and the configuration device is the user's mobile phone, after the user purchases the smart home device, he installs and powers on the smart home device, and installs an application (Application, APP) for managing the device on the mobile phone. . After that, the user shakes the phone, triggering the phone to obtain UWB identification information from the smart home device through UWB.
例如,手机上集成UWB组件(比如UWB芯片),或者,使用带有UWB组件的手机壳,手机APP能够检测到触发设备发现/管理的事件(比如摇一摇手机),APP收到用户触发设备发现/管理的事件后,如果UWB组件集成在手机中,则APP直接开启UWB扫描功能获取智能家居设备上的UWB Tag信息(UWB Tag信息可以为UWB标签标识信息,相当于上述UWB标识信息);如果UWB组件设置在手机壳中,且手机壳和手机间通过BLE(Bluetooth Low Energy,低功耗蓝牙)通信,则手机APP通过BLE向手机壳发指令,指示手机壳通过UWB组件获取智能家居设备的UWB tag信息,再通过BLE将获取到的数据返回给手机APP。For example, if a mobile phone integrates UWB components (such as a UWB chip), or uses a mobile phone case with UWB components, the mobile phone APP can detect events that trigger device discovery/management (such as shaking the phone), and the APP receives the user's trigger device After discovering/managing the event, if the UWB component is integrated in the mobile phone, the APP directly turns on the UWB scanning function to obtain the UWB Tag information on the smart home device (UWB Tag information can be UWB tag identification information, which is equivalent to the above UWB identification information); If the UWB component is set in the mobile phone case, and the mobile phone case and the mobile phone communicate through BLE (Bluetooth Low Energy, low-power Bluetooth), the mobile phone APP sends instructions to the mobile phone case through BLE, instructing the mobile phone case to obtain smart home devices through the UWB component UWB tag information, and then return the obtained data to the mobile APP through BLE.
在另一种可能的实现方式中,配置设备也可以不需要操作触发,自动通过超宽带UWB方式获取目标设备的UWB标识信息。比如,配置设备实时扫描周围的UWB设备,以获取UWB标识信息。In another possible implementation, the configuration device can automatically obtain the UWB identification information of the target device through ultra-wideband UWB without any operation triggering. For example, configure the device to scan surrounding UWB devices in real time to obtain UWB identification information.
在一种可能的实现方式中,目标设备在通过超宽带UWB方式向配置设备发送UWB标识信息之前,还将目标设备的设备信息映射为UWB标识信息。In a possible implementation manner, before sending the UWB identification information to the configuration device in the ultra-wideband UWB mode, the target device also maps the device information of the target device to the UWB identification information.
其中,目标设备可以预先将自己的设备信息(比如表1中所示的几种信息),通过压缩算法,或者通过特定编码方法,生成固定字节数的字符串,并将生成的字符串作为UWB标识信息。Among them, the target device can pre-generate its own device information (such as several types of information shown in Table 1) through a compression algorithm or a specific encoding method, and use the generated string as UWB identification information.
其中,目标设备可以在通电时,将自己的设备信息编码映射为UWB标识信息。Among them, the target device can encode and map its own device information into UWB identification information when it is powered on.
或者,目标设备可以在配置设备请求获取UWB标识信息时,将自己的设备信息编码映射为UWB标识信息。Alternatively, the target device can encode and map its own device information to UWB identification information when the configuration device requests UWB identification information.
或者,上述UWB标识信息也可以是在目标设备出厂之前,预先写入目标设备或者目标设备的UWB标签中的信息。Alternatively, the above-mentioned UWB identification information may also be information that is pre-written into the target device or the UWB tag of the target device before the target device leaves the factory.
步骤502,配置设备对UWB标识信息进行解析,获得目标设备的设备信息。Step 502: The configuration device parses the UWB identification information to obtain device information of the target device.
在本申请实施例中,配置设备获取到UWB标识信息后,即可以按照UWB标识信息的编码映射方式所对应的解析方式,对UWB标识信息进行解析,得到目标设备的设备信息。In this embodiment of the present application, after the configuration device obtains the UWB identification information, it can parse the UWB identification information according to the parsing method corresponding to the encoding mapping method of the UWB identification information to obtain the device information of the target device.
在另一种可能的实现方式中,上述目标设备的设备信息可以对应UWB标识信息存储在服务器中,配置设备对UWB标识信息进行解析,可以是指向服务器查询UWB标识信息对应的目标设备的设备信息。In another possible implementation, the device information of the target device can be stored in the server corresponding to the UWB identification information, and the configuration device parses the UWB identification information, which can be directed to the server to query the device information of the target device corresponding to the UWB identification information. .
在一种可能的实现方式中,上述对UWB标识信息进行解析,获得目标设备的设备信息的过程可以包括:In a possible implementation, the above process of parsing the UWB identification information and obtaining the device information of the target device may include:
获取配置设备与目标设备之间的第一UWB测量信息;Obtain the first UWB measurement information between the configuration device and the target device;
当第一UWB测量信息满足第一条件时,对UWB标识信息进行解析,获得目标设备的设备信息。When the first UWB measurement information meets the first condition, the UWB identification information is parsed to obtain device information of the target device.
由于配置设备在发现目标设备之前,并未获知目标设备的任何信息,并且,在发现设备过程中,可能会获取到多个UWB设备的UWB标识信息,因此,配置设备需要解决如何准确的定位自己需要发现的 目标设备的问题。Since the configuration device does not learn any information about the target device before discovering the target device, and during the process of discovering the device, it may obtain the UWB identification information of multiple UWB devices. Therefore, the configuration device needs to solve how to accurately locate itself. Problems with the target device that need to be discovered.
对于上述问题,在本申请实施例中,配置设备在通过UWB方式获取目标设备的UWB标识信息时,还会获取配置设备与目标设备之间的第一UWB测量信息,当第一UWB测量信息满足条件时,确定目标设备是自己需要发现的设备,此时,执行对UWB标识信息进行解析,获得目标设备的设备信息的步骤。Regarding the above problems, in the embodiment of the present application, when the configuration device obtains the UWB identification information of the target device through UWB, it will also obtain the first UWB measurement information between the configuration device and the target device. When the first UWB measurement information satisfies When the conditions are met, it is determined that the target device is the device that needs to be discovered. At this time, the step of parsing the UWB identification information and obtaining the device information of the target device is performed.
在一种可能的实现方式中,第一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 above-mentioned first UWB measurement information may include at least one of angle information, distance information and signal strength information between the configuration device and the target device.
其中,上述第一UWB测量信息可以随着配置设备与目标设备之间相对位置关系(包括相对角度关系、距离关系以及是否处在障碍物)的变化而发生变化。Wherein, the above-mentioned first UWB measurement information may change as the relative positional relationship between the configuration device and the target device changes (including relative angle relationship, distance relationship and whether there is an obstacle).
其中,上述第一UWB测量信息可以由目标设备测量获得,或者,上述第一UWB测量信息可以由配置设备测量获得。The above-mentioned first UWB measurement information may be obtained by measurement by the target device, or the above-mentioned first UWB measurement information may be obtained by measurement by the configuration device.
或者,上述第一UWB测量信息可以由目标设备和配置设备共同测量获得。比如,上述第一UWB测量信息中的部分信息由目标设备测量获得,其它部分信息由配置设备测量获得;或者,上述第一UWB测量信息可以是目标设备和配置设备各自的测量结果的平均结果。Alternatively, the above first UWB measurement information can be obtained by joint measurement by the target device and the configuration device. For example, part of the above-mentioned first UWB measurement information is obtained by measurement by the target device, and other part of the information is obtained by measurement by the configuration device; or the above-mentioned first UWB measurement information may be an average result of the respective measurement results of the target device and the configuration device.
在一种可能的实现方式中,第一条件包括以下条件中的至少一项: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 the embodiment of the present application, when the configuration device obtains the UWB identification information of the target device, and the first UWB measurement information indicates that the target device is currently within the first angle interval in front of the configuration device, it can be determined that the target device is discovered this time. device of.
从用户角度来说,若用户想要通过配置设备发现目标设备,则可以将配置设备指向目标设备所在的位置,以确保目标设备当前处于配置设备前方第一角度区间内。From a user's perspective, if the user wants to discover the target device through the configuration device, he or she can point the configuration device to the location of the target device to ensure that the target device is currently within the first angle range in front of the configuration 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 configuration device obtains the UWB identification information of the target device, and the first UWB measurement information indicates that the target device is currently within the first distance interval around the configuration device, it can be determined that the target device is the target device this time. Discovered devices.
从用户角度来说,若用户想要通过配置设备发现目标设备,则可以将配置设备移动至目标设备附近,以确保目标设备当前处于配置设备周围的第一距离区间内。From a user's perspective, if the user wants to discover the target device through the configuration device, the user can move the configuration device near the target device to ensure that the target device is currently within the first distance interval around the configuration 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 configuration device obtains the UWB identification information of the target device, and the signal strength indicated by the first UWB measurement information is within the first signal strength interval (for example, the signal strength indicated by the first UWB measurement information is greater than first signal strength threshold), it can be determined that the target device is the device discovered this time.
步骤503,配置设备根据目标设备的设备信息,与目标设备进行配对。Step 503: The configuration device pairs with the target device according to the device information of the target device.
在本申请实施例中,配置设备获取到目标设备的设备信息之后,即可以通过获取到的设备信息,与目标设备进行配对连接,比如,基于Matter协议进行配对连接。In this embodiment of the present application, after the configuration device obtains the device information of the target device, it can perform a pairing connection with the target device through the obtained device information, for example, a pairing connection based on the Matter protocol.
步骤504,在与目标设备配对成功后,配置设备对目标设备进行配置。Step 504: After successfully pairing with the target device, the configuration device configures the target device.
在本申请实施例中,配置设备与目标设备配对成功后,即可以对目标设备进行相关配置,比如,基于Matter协议对目标设备进行配置。In this embodiment of the present application, after the configuration device and the target device are successfully paired, the target device can be configured accordingly, for example, the target device can be configured based on the Matter protocol.
在本申请实施例中,上述配对是指建立配置前的安全通信通道:包括安全信道的建立和设备认证,上述配置可以包括:配对安全通道建立完成后的互操作证书的配置、设备基本信息的配置、时钟同步配置、位置信息配置、以及访问控制权限配置等等。In the embodiment of this application, the above-mentioned pairing refers to the secure communication channel before establishing the configuration: including the establishment of the secure channel and device authentication. The above-mentioned configuration may include: the configuration of the interoperability certificate after the pairing secure channel is established, and the basic information of the device. Configuration, clock synchronization configuration, location information configuration, access control permission configuration, etc.
步骤505,配置设备建立UWB标识信息与目标设备的设备标识信息之间的关联关系。Step 505: The configuration device establishes an association between the UWB identification information and the device identification information of the target device.
其中,上述设备标识信息,可以是配置设备对目标设备进行配置过程中获取到的,该目标设备的节点标识(Node ID)。The above device identification information may be the node ID (Node ID) of the target device obtained by the configuration device during the configuration of the target device.
在本申请实施例中,配置设备与目标设备之间配对完成后,配置设备可以在本地建立并存储UWB标识信息与目标设备的设备标识信息之间的关联关系,从而在后续再次通过UWB方式获取到UWB标识信息时,能够快捷的判断出配置设备与目标设备之间已经完成了配对,避免重新执行设备发现和配对过程。In the embodiment of this application, after the pairing between the configuration device and the target device is completed, the configuration device can locally establish and store the association between the UWB identification information and the device identification information of the target device, so that it can be obtained through UWB again later. When the UWB identification information is received, it can be quickly determined that the pairing between the configuration device and the target device has been completed, avoiding the need to re-execute the device discovery and pairing process.
比如,配置设备再次通过UWB方式获取到UWB标识信息后,可以根据UWB标识信息查询关联的设备标识信息,如果查询到存在关联的设备标识信息,则确定已经与该设备完成了配对,不需要继续执行设备发现和配对过程;反之,如果未查询到关联的设备标识信息,则执行上述设备发现和配对过程。For example, after the configured device obtains UWB identification information through UWB again, it can query the associated device identification information based on the UWB identification information. If the associated device identification information is queried, it is determined that the pairing with the device has been completed, and there is no need to continue. Execute the device discovery and pairing process; otherwise, if the associated device identification information is not queried, execute the above device discovery and pairing process.
步骤506,配置设备根据UWB标识信息与目标设备的设备标识信息之间的关联关系,对目标设备进行控制。Step 506: The configuration device controls the target device according to the association between the UWB identification information and the device identification information of the target device.
在本申请实施例中,上述UWB标识信息与目标设备的设备标识信息之间的关联关系也可以用于对目标设备的控制。In this embodiment of the present application, the association between the above UWB identification information and the device identification information of the target device can also be used to control the target device.
在一种可能的实现方式中,建立UWB标识信息与目标设备的设备标识信息之间的关联关系之后,根据UWB标识信息与目标设备的设备标识信息之间的关联关系,对目标设备进行控制的过程可以包括:In a possible implementation, after establishing an association between the UWB identification information and the device identification information of the target device, the target device is controlled based on the association between the UWB identification information and the device identification information of the target device. The process can include:
当接收到第二触发操作时,通过超宽带UWB方式获取UWB标识信息;When receiving the second trigger operation, obtain UWB identification information through ultra-wideband UWB;
查询与UWB标识信息关联的设备标识信息,以及与第二触发操作关联的第一操作命令;Query the device identification information associated with the UWB identification information, and the first operation command associated with the second trigger operation;
根据设备标识信息,向目标设备发送第一操作命令。Send a first operation command to the target device according to the device identification information.
其中,上述第二触发操作是配置设备接收到的,用于触发对目标设备进行控制的预定操作,比如双击设备后壳、摇一摇设备等等。The above-mentioned second trigger operation is received by the configuration device and is used to trigger a predetermined operation to control the target device, such as double-clicking the back shell of the device, shaking the device, and so on.
其中,上述第二触发操作与第一触发操作可以是相同的操作,也可以是不同的操作。Wherein, the above-mentioned second triggering operation and the first triggering operation may be the same operation, or they may be different operations.
在本申请实施例中,当配置设备后续接收到第二触发操作时,可以通过超宽带UWB方式获取UWB标识信息,并通过获取到的UWB标识信息查询关联的设备标识信息和第一操作命令,若查询到关联的设备标识信息和第一操作命令,则根据关联的设备标识信息,将第一操作命令发送给目标设备,以触发目标设备根据第一操作命令执行相应的动作,比如打开、关闭等等。In the embodiment of the present application, when the configuration device subsequently receives the second trigger operation, it can obtain the UWB identification information through the ultra-wideband UWB method, and query the associated device identification information and the first operation command through the obtained UWB identification information. If the associated device identification information and the first operation command are queried, the first operation command is sent to the target device according to the associated device identification information to trigger the target device to perform corresponding actions according to the first operation command, such as opening or closing. etc.
在一种可能的实现方式中,当接收到第二触发操作时,通过超宽带UWB方式获取UWB标识信息之前,还包括:In a possible implementation, when receiving the second trigger operation, before obtaining the UWB identification information through the ultra-wideband UWB method, the following steps are also included:
接收第一关联操作;根据第一关联操作,建立第二触发操作与第一操作命令之间的关联关系。Receive the first association operation; establish an association relationship between the second trigger operation and the first operation command according to the first association operation.
其中,上述第二触发操作与第一操作命令之间的关联关系可以由用户在配置设备中,通过第一关联操作自定义。Wherein, the association relationship between the above-mentioned second trigger operation and the first operation command can be customized by the user through the first association operation in the configuration device.
在另一种可能的实现方式中,上述第二触发操作与第一操作命令之间的关联关系也可以预先设置在APP中。In another possible implementation, the association between the second trigger operation and the first operation command may also be preset in the APP.
在一种可能的实现方式中,查询与UWB标识信息关联的设备标识信息,以及与第二触发操作关联的第一操作命令,包括:In a possible implementation, querying the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation includes:
获取配置设备与目标设备之间的第二UWB测量信息;Obtain the second UWB measurement information between the configuration device and the target device;
当第二UWB测量信息满足第二条件时,查询与UWB标识信息关联的设备标识信息,以及与第二触发操作关联的第一操作命令。When the second UWB measurement information satisfies the second condition, query the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation.
在一种可能的实现方式中,第二UWB测量信息包括第二角度信息、第二距离信息以及第二信号强度信息中的至少一种。In a possible implementation, the second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
在一种可能的实现方式中,第二条件包括以下条件中的至少一项:In a possible implementation, the second condition includes at least one of the following conditions:
当第二UWB测量信息包括第二角度信息时,第二角度信息指示的角度处于第二角度区间内;When the second UWB measurement information includes second angle information, the angle indicated by the second angle information is within the second angle interval;
当第二UWB测量信息包括第二距离信息时,第二距离信息指示的距离处于第二距离区间内;When the second UWB measurement information includes second distance information, the distance indicated by the second distance information is within the second distance interval;
当第二UWB测量信息包括第二信号强度信息时,第二信号强度信息指示的信号强度处于第二信号强度区间内。When the second UWB measurement information includes second signal strength information, the signal strength indicated by the second signal strength information is within the second signal strength interval.
在本申请实施例中,配置设备根据UWB标识信息与目标设备的设备标识信息之间的关联关系对目标设备进行控制,也可以通过UWB测量信息判断目标设备是否为本次要控制的设备,其判断方式与发现过程中判断目标设备是否为本次要发现的设备的方式类似,此处不再赘述。In this embodiment of the present application, the configuration device controls the target device according to the association between the UWB identification information and the device identification information of the target device. It can also determine whether the target device is the device to be controlled this time through the UWB measurement information. The judgment method is similar to the method of judging whether the target device is the device to be discovered this time during the discovery process, and will not be described again here.
在一种可能的实现方式中,建立UWB标识信息与目标设备的设备标识信息之间的关联关系之后,根据UWB标识信息与目标设备的设备标识信息之间的关联关系,对目标设备进行控制的方式可以包括:In a possible implementation, after establishing an association between the UWB identification information and the device identification information of the target device, the target device is controlled based on the association between the UWB identification information and the device identification information of the target device. Methods may include:
通过超宽带UWB方式获取UWB标识信息,以及配置设备与目标设备之间的第三距离信息;Obtain UWB identification information through ultra-wideband UWB method, and third distance information between the configuration device and the target device;
查询与UWB标识信息关联的设备标识信息,以及与第三距离信息指示的距离关联的第二操作命令;Query the device identification information associated with the UWB identification information, and the second operation command associated with the distance indicated by the third distance information;
根据设备标识信息,向目标设备发送第二操作命令。Send a second operation command to the target device according to the device identification information.
在本申请实施例中,配置设备也可以通过配置设备与目标设备之间的距离,来对目标设备进行控制。In this embodiment of the present application, the configuration device can also control the target device through the distance between the configuration device and the target device.
在一种可能的实现方式中,通过超宽带UWB方式获取UWB标识信息,以及配置设备与目标设备之间的第三距离信息之前,还包括:In a possible implementation, before obtaining the UWB identification information through ultra-wideband UWB and configuring the third distance information between the device and the target device, it also includes:
接收第二关联操作;Receive the second association operation;
根据第二关联操作,建立第三距离信息指示的距离与第二操作命令之间的关联关系。According to the second association operation, an association relationship between the distance indicated by the third distance information and the second operation command is established.
其中,上述第三距离信息指示的距离与第二操作命令之间的关联关系可以由用户在配置设备中,通过第二关联操作自定义。Wherein, the association relationship between the distance indicated by the third distance information and the second operation command can be customized by the user through the second association operation in the configuration device.
在另一种可能的实现方式中,上述第三距离信息指示的距离与第二操作命令之间的关联关系也可以 预先设置在APP中。In another possible implementation, the association between the distance indicated by the third distance information and the second operation command may also be preset in the APP.
在一种可能的实现方式中,查询与UWB标识信息关联的设备标识信息,以及与第三距离信息指示的距离关联的第二操作命令,包括:In a possible implementation, querying the device identification information associated with the UWB identification information and the second operation command associated with the distance indicated by the third distance information includes:
获取配置设备与目标设备之间的第三UWB测量信息;Obtain the third UWB measurement information between the configuration device and the target device;
当第三UWB测量信息满足第三条件时,查询与UWB标识信息关联的设备标识信息,以及与第三距离信息指示的距离关联的第二操作命令。When the third UWB measurement information satisfies the third condition, query the device identification information associated with the UWB identification information, and the second operation command associated with the distance indicated by the third distance information.
在一种可能的实现方式中,第三UWB测量信息包括第三角度信息、第三距离信息以及第三信号强度信息中的至少一种。In a possible implementation, the third UWB measurement information includes at least one of third angle information, third distance information, and third signal strength information.
在一种可能的实现方式中,第三条件包括以下条件中的至少一项:In a possible implementation, the third condition includes at least one of the following conditions:
当第三UWB测量信息包括第三角度信息时,第三角度信息指示的角度处于第三角度区间内;When the third UWB measurement information includes third angle information, the angle indicated by the third angle information is within the third angle interval;
当第三UWB测量信息包括第三距离信息时,第三距离信息指示的距离处于第三距离区间内;When the third UWB measurement information includes third distance information, the distance indicated by the third distance information is within the third distance interval;
当第三UWB测量信息包括第三信号强度信息时,第三信号强度信息指示的信号强度处于第三信号强度区间内。When the third UWB measurement information includes third signal strength information, the signal strength indicated by the third signal strength information is within the third signal strength interval.
请参考图6,其示出了本申请实施例涉及的一种设备发现和控制时序示意图。如图6所示,以配置设备是手机中的配置器(APP),目标设备是智能家居设备(以下简称为设备),UWB标识信息为UWB标签ID为为例,该设备发现和控制过程可以如下:Please refer to FIG. 6 , which shows a schematic diagram of device discovery and control sequence involved in the embodiment of the present application. As shown in Figure 6, taking the configuration device as the configurator (APP) in the mobile phone, the target device as a smart home device (hereinafter referred to as the device), and the UWB identification information as the UWB tag ID as an example, the device discovery and control process can as follows:
S61,将设备的Vendor ID、Product ID、Discriminator、Discovery Bitmask、Passcode等设备信息的数据映射成UWB标签ID。S61: Map the device information data such as Vendor ID, Product ID, Discriminator, Discovery Bitmask, Passcode and so on into UWB tag ID.
S62,用户通过双击手机后壳或者摇一摇执行一次触发事件操作。S62, the user performs a trigger event operation by double-clicking the back shell of the phone or shaking it.
S63,手机APP通过UWB获取设备UWB标识信息。S63, the mobile APP obtains the UWB identification information of the device through UWB.
S64,设备返回UWB标签ID、角度信息。S64, the device returns UWB tag ID and angle information.
S65,手机APP根据获取设备标签的角度判断是否为目标设备;若是,执行S66。S65: The mobile APP determines whether it is the target device based on the angle from which the device label is obtained; if so, execute S66.
比如,若角度信息指示的UWB角度范围在-5.0度至+5.0度之间,则表示是本次要发现的目标设备。For example, if the UWB angle range indicated by the angle information is between -5.0 degrees and +5.0 degrees, it means that it is the target device to be discovered this time.
S66,手机APP通过UWB标签ID,解析出设备的信息。S66, the mobile APP parses the device information through the UWB tag ID.
S67,手机APP通过获取的设备信息与设备建立配对和配置。S67, the mobile APP establishes pairing and configuration with the device through the obtained device information.
S68,手机APP配置设备成功后,将为设备分配的Node ID与UWB标签ID关联。S68, after the mobile APP successfully configures the device, the Node ID assigned to the device will be associated with the UWB tag ID.
S69,手机APP将设备特定资源的command(命令)操作与配置器触发事件关联。S69, the mobile APP associates the command operation of device-specific resources with the configurator trigger event.
比如,如将设备开关与双击手机后壳或摇一摇事件关联。For example, associate the device switch with a double-click on the back of the phone or a shake event.
S610,用户通过双击手机后壳或者摇一摇执行一次触发事件操作。S610, users can perform a trigger event operation by double-clicking the back shell of the phone or shaking it.
S611,手机APP通过UWB获取UWB标识信息。S611. The mobile APP obtains UWB identification information through UWB.
S612,设备返回UWB标签ID、角度信息。S612, the device returns the UWB tag ID and angle information.
S613,与步骤S65相同。S613 is the same as step S65.
S614,手机APP查找与UWB标签ID对应的Node ID,存在关系表示设备配对成功,查找事件对应的command。S614. The mobile APP searches for the Node ID corresponding to the UWB tag ID. The existence of a relationship indicates that the device is paired successfully and searches for the command corresponding to the event.
S615,手机APP向对应的资源执行command命令,比如开关资源的toggle(状态切换)命令。S615: The mobile APP executes a command command to the corresponding resource, such as a toggle (state switching) command to switch resources on and off.
请参考图7,其示出了本申请实施例涉及的另一种设备发现和控制时序示意图。如图7所示,以配置设备是手机中的配置器(APP),目标设备是智能家居设备(以下简称为设备),UWB标识信息为UWB标签ID为为例,该设备发现和控制过程可以如下:Please refer to FIG. 7 , which shows another device discovery and control sequence diagram related to an embodiment of the present application. As shown in Figure 7, taking the configuration device as the configurator (APP) in the mobile phone, the target device as a smart home device (hereinafter referred to as the device), and the UWB identification information as the UWB tag ID as an example, the device discovery and control process can as follows:
S71,将设备的VendorID、ProductID、Discriminator、Discovery Bitmask、Passcode等设备信息的数据映射成UWB标签ID。S71: Map the device information data such as VendorID, ProductID, Discriminator, Discovery Bitmask, Passcode and so on into UWB tag ID.
S72,用户手持手机靠近设备或者指向设备。S72, the user holds the mobile phone close to the device or points to the device.
S73,手机APP通过UWB实时检测设备UWB标识信息。S73, the mobile APP detects the UWB identification information of the device in real time through UWB.
S74,设备实时返回UWB标签ID、角度信息、信号强度、距离信息。S74, the device returns UWB tag ID, angle information, signal strength, and distance information in real time.
S75,手机APP检测的UWB标识信息中距离到达设置发现设备所需的最小阈值,且角度和信号强度在合适范围内,表示发现目标设备。S75. The distance in the UWB identification information detected by the mobile APP reaches the minimum threshold required to set up the device discovery, and the angle and signal strength are within the appropriate range, indicating that the target device has been discovered.
S76,手机APP通过UWB标签ID,解析出设备的信息。S76, the mobile APP parses the device information through the UWB tag ID.
S77,手机APP通过获取的设备信息与设备建立配对和配置。S77, the mobile APP establishes pairing and configuration with the device through the obtained device information.
S78,手机APP配置设备成功后,将为设备分配的Node ID与UWB标签ID关联。S78, after the mobile APP successfully configures the device, the Node ID assigned to the device will be associated with the UWB tag ID.
S79,手机APP将设备特定资源的command操作与配置器触发事件关联。S79, the mobile APP associates the command operation of device-specific resources with the configurator trigger event.
比如,将设备开关与UWB距离范围关联。For example, associate device switches with UWB distance ranges.
S710,用户持手机指向或者靠近设备或者远离设备。S710, the user holds the mobile phone and points it toward or away from the device.
S711,手机APP通过UWB获取UWB标识信息。S711, the mobile APP obtains UWB identification information through UWB.
S712,设备返回UWB标签ID、角度信息、信号强度、距离信息。S712, the device returns the UWB tag ID, angle information, signal strength, and distance information.
S713,手机APP检测设备UWB的角度和信号强度在合适的范围内,锁定设备。S713, the mobile APP detects that the UWB angle and signal strength of the device are within the appropriate range and locks the device.
S714,手机APP查找与UWB标签ID对应的Node ID,存在关系表示设备配对成功。S714, the mobile APP searches for the Node ID corresponding to the UWB tag ID. If there is a relationship, the device pairing is successful.
S715,判断设备UWB距离,是否为设置的可控制距离范围;若是,执行716。S715: Determine whether the UWB distance of the device is within the set controllable distance range; if so, execute 716.
S716,手机APP向对应的资源执行command命令(检测的UWB距离在用户设置的距离范围,发送on命令,大于距离范围,发送off命令)。S716: The mobile APP executes the command command to the corresponding resource (the detected UWB distance is within the distance range set by the user, and the on command is sent; if it is greater than the distance range, the off command is sent).
通过本申请实施例所示的方案,用户可以通过UWB功能无感方式获取设备配置所需的数据信息,从而对设备进行无感的配置;用户可以通过UWB功能无需点击控制器界面的按钮,做到手持设备就能控制设备的目的。Through the solution shown in the embodiment of this application, the user can obtain the data information required for device configuration through the UWB function in a non-inductive manner, thereby performing insensitive configuration of the device; the user can use the UWB function without clicking buttons on the controller interface to do To the handheld device you can control the purpose of the device.
综上所述,在本申请实施例所示的方案,目标设备的设备信息可以编码映射为目标设备的UWB标识信息,在设备发现过程中,目标设备可以通过UWB方式将目标设备的UWB标识信息提供给配置设备,以便配置设备解析得到目标设备的设备信息,从而实现设备发现过程;在上述方案中,用户不需要使用配置设备进行二维码扫描、输入或者控制配置设备贴近目标设备等繁琐操作,从而简化了物联网场景中的设备发现流程,提高了设备发现效率。To sum up, in the solution shown in the embodiment of the present application, the device information of the target device can be encoded and mapped to the UWB identification information of the target device. During the device discovery process, the target device can use the UWB method to encode the UWB identification information of the target device. Provided to the configuration device so that the configuration device can parse and obtain the device information of the target device, thereby realizing the device discovery process; in the above solution, the user does not need to use the configuration device to perform QR code scanning, input, or control the configuration device to close to the target device and other cumbersome operations. , thus simplifying the device discovery process in IoT scenarios and improving device discovery efficiency.
请参考图8,其示出了本申请一个实施例提供的设备控制方法的流程图,该方法可以由配置设备执行,该配置设备可以是上述图1所示网络架构中的配置设备120;该方法可以包括如下几个步骤:Please refer to Figure 8, which shows a flow chart of a device control method provided by an embodiment of the present application. This method can be executed by a configuration device, which can be the
步骤801,建立目标设备的UWB标识信息与目标设备的设备标识信息之间的关联关系。Step 801: Establish an association between the UWB identification information of the target device and the device identification information of the target device.
在本申请实施例中,配置设备中设置有UWB组件;目标设备中设置有UWB组件,或者目标设备外接有UWB标签。In the embodiment of the present application, the configuration device is provided with a UWB component; the target device is provided with a UWB component, or the target device is externally connected with a UWB tag.
配置设备完成对目标设备的配置后,可以获取到目标设备的UWB标识信息,以及,目标设备的设备标识信息。然后,配置设备可以建立目标设备的UWB标识信息与目标设备的设备标识信息之间的关联关系。After the configuration device completes the configuration of the target device, the UWB identification information of the target device and the device identification information of the target device can be obtained. Then, the configuration device may establish an association between the UWB identification information of the target device and the device identification information of the target device.
其中,该UWB标识信息可以是目标设备的UWB组件的UWB组件标识信息,或者是目标设备外接的UWB标签的UWB标签标识信息。上述目标设备的设备标识信息可以是目标设备在物联网中的节点标识信息(Node ID)。The UWB identification information may be UWB component identification information of a UWB component of the target device, or UWB tag identification information of a UWB tag external to the target device. The device identification information of the above-mentioned target device may be the node identification information (Node ID) of the target device in the Internet of Things.
其中,配置设备对目标设备进行设备发现过程可以参考上述图5所示实施例中的介绍。或者,配置设备也可以通过二维码、配对代码等方式获取目标设备的设备信息,以实现对目标设备的发现。本申请实施例对于配置设备采用的设备发现方式不做限定。For the process of configuring the device to perform device discovery on the target device, please refer to the introduction in the embodiment shown in Figure 5 above. Alternatively, the configuration device can also obtain the device information of the target device through QR code, pairing code, etc., to realize the discovery of the target device. The embodiments of this application do not limit the device discovery method used to configure the device.
步骤802,根据目标设备的UWB标识信息与目标设备的设备标识信息之间的关联关系,对目标设备进行控制。Step 802: Control the target device according to the correlation between the UWB identification information of the target device and the device identification information of the target device.
其中,上述对目标设备进行控制的过程可以参考图5所示实施例中的步骤506下的描述,此处不再赘述。For the above-mentioned process of controlling the target device, reference may be made to the description under step 506 in the embodiment shown in FIG. 5, which will not be described again here.
综上所述,在本申请实施例所示的方案,提供了一种通过UWB的方式对物联网设备进行控制的方案,从而扩展了物联网中的设备控制方式,提高了设备控制的效率。To sum up, the solution shown in the embodiment of this application provides a solution for controlling IoT devices through UWB, thereby expanding the device control method in the IoT and improving the efficiency of device control.
请参考图9,其示出了本申请一个实施例提供的设备发现装置的框图。该设备发现装置900具有实现上述图2或图5所示的方法中,由配置设备执行的功能。如图9所示,该设备发现装置900可以包括:Please refer to Figure 9, which shows a block diagram of a device discovery device provided by an embodiment of the present application. The device discovery device 900 has the function of implementing the configuration device in the method shown in FIG. 2 or FIG. 5 . As shown in Figure 9, the device discovery device 900 may include:
信息获取模块901,用于通过超宽带UWB方式获取目标设备的UWB标识信息;The
解析模块902,用于对所述UWB标识信息进行解析,获得所述目标设备的设备信息。The
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
配置模块,用于根据所述目标设备的设备信息,对所述目标设备进行配置。A configuration module, configured to configure the target device according to the device information of the target device.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
第一建立模块,用于建立所述UWB标识信息与所述目标设备的设备标识信息之间的关联关系。A first establishment module, configured to establish an association between the UWB identification information and the device identification information of the target device.
在一种可能的实现方式中,所述解析模块902,用于,In a possible implementation, the
获取所述配置设备与所述目标设备之间的第一UWB测量信息;Obtain first UWB measurement information between the configuration device and the target device;
当所述第一UWB测量信息满足第一条件时,对所述UWB标识信息进行解析,获得所述目标设备的设备信息。When the first UWB measurement information meets the first condition, the UWB identification information is parsed to obtain device information of the target device.
在一种可能的实现方式中,所述第一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.
在一种可能的实现方式中,所述信息获取模块901,用于当接收到第一触发操作时,通过超宽带UWB方式获取所述UWB标识信息。In a possible implementation, the
在一种可能的实现方式中,所述信息获取模块901,还用于在所述第一建立模块建立所述UWB标识信息与所述目标设备的设备标识信息之间的关联关系之后,当接收到第二触发操作时,通过超宽带UWB方式获取所述UWB标识信息;In a possible implementation, the
所述装置还包括:The device also includes:
第一查询模块,用于查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第二触发操作关联的第一操作命令;A first query module configured to query the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation;
第一发送模块,用于根据所述设备标识信息,向所述目标设备发送所述第一操作命令。A first sending module, configured to send the first operation command to the target device according to the device identification information.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
第一操作接收模块,用于在所述信息获取模块901在接收到第二触发操作时,通过超宽带UWB方式获取所述UWB标识信息之前,接收第一关联操作;A first operation receiving module, configured to receive a first association operation before the
第二建立模块,用于根据所述第一关联操作,建立所述第二触发操作与所述第一操作命令之间的关联关系。The second establishment module is configured to establish an association between the second trigger operation and the first operation command according to the first association operation.
在一种可能的实现方式中,所述第一查询模块,用于,In a possible implementation, the first query module is used to,
获取所述配置设备与所述目标设备之间的第二UWB测量信息;Obtain second UWB measurement information between the configuration device and the target device;
当所述第二UWB测量信息满足第二条件时,查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第二触发操作关联的第一操作命令。When the second UWB measurement information satisfies the second condition, query the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation.
在一种可能的实现方式中,所述第二UWB测量信息包括第二角度信息、第二距离信息以及所述第二信号强度信息中的至少一种。In a possible implementation, the second UWB measurement information includes at least one of second angle information, second distance information, and the second signal strength information.
在一种可能的实现方式中,所述第二条件包括以下条件中的至少一项:In a possible implementation, the second condition includes at least one of the following conditions:
当所述第二UWB测量信息包括所述第二角度信息时,所述第二角度信息指示的角度处于第二角度区间内;When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within the second angle interval;
当所述第二UWB测量信息包括所述第二距离信息时,所述第二距离信息指示的距离处于第二距离区间内;When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within the second distance interval;
当所述第二UWB测量信息包括所述第二信号强度信息时,所述第二信号强度信息指示的信号强度处于第二信号强度区间内。When the second UWB measurement information includes the second signal strength information, the signal strength indicated by the second signal strength information is within a second signal strength interval.
在一种可能的实现方式中,所述信息获取模块901,还用于在所述第一建立模块建立所述UWB标识信息与所述目标设备的设备标识信息之间的关联关系之后,通过超宽带UWB方式获取所述UWB标识信息,以及所述配置设备与所述目标设备之间的第三距离信息;In a possible implementation, the
所述装置还包括:The device also includes:
第二查询模块,用于查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第三距离信息指示的距离关联的第二操作命令;A second query module configured to query the device identification information associated with the UWB identification information and the second operation command associated with the distance indicated by the third distance information;
第二发送模块,用于根据所述设备标识信息,向所述目标设备发送所述第二操作命令。The second sending module is configured to send the second operation command to the target device according to the device identification information.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
第二操作接收模块,用于在所述信息获取模块901在通过超宽带UWB方式获取所述UWB标识信息,以及所述配置设备与所述目标设备之间的第三距离信息之前,接收第二关联操作;The second operation receiving module is configured to receive a second operation before the
第三建立模块,用于根据所述第二关联操作,建立所述第三距离信息指示的距离与所述第二操作命令之间的关联关系。A third establishment module, configured to establish an association between the distance indicated by the third distance information and the second operation command according to the second association operation.
在一种可能的实现方式中,所述第二查询模块,用于,In a possible implementation, the second query module is used to,
获取所述配置设备与所述目标设备之间的第三UWB测量信息;Obtain third UWB measurement information between the configuration device and the target device;
当所述第三UWB测量信息满足第三条件时,查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第三距离信息指示的距离关联的第二操作命令。When the third UWB measurement information satisfies a third condition, query the device identification information associated with the UWB identification information, and a second operation command associated with the distance indicated by the third distance information.
在一种可能的实现方式中,所述第三UWB测量信息包括第三角度信息、所述第三距离信息以及所述第三信号强度信息中的至少一种。In a possible implementation, the third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
在一种可能的实现方式中,所述第三条件包括以下条件中的至少一项:In a possible implementation, the third condition includes at least one of the following conditions:
当所述第三UWB测量信息包括所述第三角度信息时,所述第三角度信息指示的角度处于第三角度区 间内;When the third UWB measurement information includes the third angle information, the angle indicated by the third angle information is within a third angle interval;
当所述第三UWB测量信息包括所述第三距离信息时,所述第三距离信息指示的距离处于第三距离区间内;When the third UWB measurement information includes the third distance information, the distance indicated by the third distance information is within a third distance interval;
当所述第三UWB测量信息包括所述第三信号强度信息时,所述第三信号强度信息指示的信号强度处于第三信号强度区间内。When the third UWB measurement information includes the third signal strength information, the signal strength indicated by the third signal strength information is within a third signal strength interval.
在一种可能的实现方式中,所述UWB标识信息为设备外接的UWB标签的UWB标签标识信息;In a possible implementation, the UWB identification information is the UWB tag identification information of a UWB tag external to the device;
或者,所述UWB标识信息为设备内置的UWB组件的UWB组件标识信息。Alternatively, the UWB identification information is UWB component identification information of a UWB component built into the device.
请参考图10,其示出了本申请一个实施例提供的设备发现装置的框图。该设备发现装置1000具有实现上述图3或图5所示的方法中,由目标设备执行的功能。如图10所示,该设备发现装置1000可以包括:Please refer to Figure 10, which shows a block diagram of a device discovery device provided by an embodiment of the present application. The device discovery device 1000 has the function of being executed by the target device in implementing the method shown in FIG. 3 or FIG. 5 . As shown in Figure 10, the device discovery device 1000 may include:
发送模块1001,用于通过超宽带UWB方式向配置设备发送UWB标识信息,以便所述配置设备对所述UWB标识信息进行解析,获得所述目标设备的设备信息。The sending
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
映射模块,用于在所述发送模块1001通过超宽带UWB方式向配置设备发送UWB标识信息之前,将所述目标设备的设备信息映射为所述UWB标识信息。A mapping module, configured to map the device information of the target device to the UWB identification information before the sending
在一种可能的实现方式中,所述UWB标识信息为设备外接的UWB标签的UWB标签标识信息;In a possible implementation, the UWB identification information is the UWB tag identification information of a UWB tag external to the device;
或者,所述UWB标识信息为设备内置的UWB组件的UWB组件标识信息。Alternatively, the UWB identification information is UWB component identification information of a UWB component built into the device.
请参考图11,其示出了本申请一个实施例提供的设备控制装置的框图。该设备发现装置1100具有实现上述图8所示的方法中,由配置设备执行的功能。如图11所示,该设备控制装置1100可以包括:Please refer to FIG. 11 , which shows a block diagram of a device control device provided by an embodiment of the present application. The device discovery device 1100 has the function executed by the configuration device in implementing the method shown in FIG. 8 . As shown in Figure 11, the equipment control device 1100 may include:
第一建立模块1101,用于建立目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系;The
控制模块1102,用于根据所述目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系,对所述目标设备进行控制。The
在一种可能的实现方式中,所述控制模块1102,用于,In a possible implementation, the
当接收到第二触发操作时,通过UWB方式获取所述UWB标识信息;When receiving the second trigger operation, obtain the UWB identification information through UWB;
查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第二触发操作关联的第一操作命令;Query the device identification information associated with the UWB identification information and the first operation command associated with the second trigger operation;
根据所述设备标识信息,向所述目标设备发送所述第一操作命令。Send the first operation command to the target device according to the device identification information.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
第一操作接收模块,用于在所述控制模块1102在接收到第二触发操作时,通过UWB方式获取所述UWB标识信息之前,接收第一关联操作;A first operation receiving module configured to receive a first association operation before the
第二建立模块,用于根据所述第一关联操作,建立所述第二触发操作与所述第一操作命令之间的关联关系。The second establishment module is configured to establish an association between the second trigger operation and the first operation command according to the first association operation.
在一种可能的实现方式中,所述控制模块1102,用于,In a possible implementation, the
获取所述配置设备与所述目标设备之间的第二UWB测量信息;Obtain second UWB measurement information between the configuration device and the target device;
当所述第二UWB测量信息满足第二条件时,查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第二触发操作关联的第一操作命令。When the second UWB measurement information satisfies the second condition, query the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation.
在一种可能的实现方式中,所述第二UWB测量信息包括第二角度信息、第二距离信息以及所述第二信号强度信息中的至少一种。In a possible implementation, the second UWB measurement information includes at least one of second angle information, second distance information, and the second signal strength information.
在一种可能的实现方式中,所述第二条件包括以下条件中的至少一项:In a possible implementation, the second condition includes at least one of the following conditions:
当所述第二UWB测量信息包括所述第二角度信息时,所述第二角度信息指示的角度处于第二角度区间内;When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within the second angle interval;
当所述第二UWB测量信息包括所述第二距离信息时,所述第二距离信息指示的距离处于第二距离区间内;When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within the second distance interval;
当所述第二UWB测量信息包括所述第二信号强度信息时,所述第二信号强度信息指示的信号强度处于第二信号强度区间内。When the second UWB measurement information includes the second signal strength information, the signal strength indicated by the second signal strength information is within a second signal strength interval.
在一种可能的实现方式中,所述控制模块1102,用于,In a possible implementation, the
通过UWB方式获取所述UWB标识信息,以及所述配置设备与所述目标设备之间的第三距离信息;Obtain the UWB identification information and the third distance information between the configuration device and the target device through UWB mode;
查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第三距离信息指示的距离关联的第二操作命令;Query the device identification information associated with the UWB identification information, and the second operation command associated with the distance indicated by the third distance information;
根据所述设备标识信息,向所述目标设备发送所述第二操作命令。Send the second operation command to the target device according to the device identification information.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
第二操作接收模块,用于在所述控制模块1102在通过超宽带UWB方式获取所述UWB标识信息,以及所述配置设备与所述目标设备之间的第三距离信息之前,接收第二关联操作;The second operation receiving module is configured to receive a second association before the
第三建立模块,用于根据所述第二关联操作,建立所述第三距离信息指示的距离与所述第二操作命令之间的关联关系。A third establishment module, configured to establish an association between the distance indicated by the third distance information and the second operation command according to the second association operation.
在一种可能的实现方式中,所述控制模块1102,用于,In a possible implementation, the
获取所述配置设备与所述目标设备之间的第三UWB测量信息;Obtain third UWB measurement information between the configuration device and the target device;
当所述第三UWB测量信息满足第三条件时,查询与所述UWB标识信息关联的所述设备标识信息,以及与所述第三距离信息指示的距离关联的第二操作命令。When the third UWB measurement information satisfies a third condition, query the device identification information associated with the UWB identification information, and a second operation command associated with the distance indicated by the third distance information.
在一种可能的实现方式中,所述第三UWB测量信息包括第三角度信息、所述第三距离信息以及所述第三信号强度信息中的至少一种。In a possible implementation, the third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
在一种可能的实现方式中,所述第三条件包括以下条件中的至少一项:In a possible implementation, the third condition includes at least one of the following conditions:
当所述第三UWB测量信息包括所述第三角度信息时,所述第三角度信息指示的角度处于第三角度区间内;When the third UWB measurement information includes the third angle information, the angle indicated by the third angle information is within a third angle interval;
当所述第三UWB测量信息包括所述第三距离信息时,所述第三距离信息指示的距离处于第三距离区间内;When the third UWB measurement information includes the third distance information, the distance indicated by the third distance information is within a third distance interval;
当所述第三UWB测量信息包括所述第三信号强度信息时,所述第三信号强度信息指示的信号强度处于第三信号强度区间内。When the third UWB measurement information includes the third signal strength information, the signal strength indicated by the third signal strength information is within a third signal strength interval.
在一种可能的实现方式中,所述UWB标识信息为设备外接的UWB标签的UWB标签标识信息;In a possible implementation, the UWB identification information is the UWB tag identification information of a UWB tag external to the device;
或者,所述UWB标识信息为设备内置的UWB组件的UWB组件标识信息。Alternatively, the UWB identification information is UWB component identification information of a UWB component built into the device.
请参考图12,其示出了本申请一个实施例提供的计算机设备1200的结构示意图。该计算机设备1200可以包括:处理器1201、接收器1202、发射器1203、存储器1204和总线1205。Please refer to Figure 12, which shows a schematic structural diagram of a computer device 1200 provided by an embodiment of the present application. The computer device 1200 may include a
处理器1201包括一个或者一个以上处理核心,处理器1201通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The
接收器1202和发射器1203可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。The
存储器1204通过总线1205与处理器1201相连。
存储器1204可用于存储计算机程序,处理器1201用于执行该计算机程序,以实现上述方法实施例中的各个步骤。The
此外,存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。Additionally,
在一个示例性的方案中,当计算机设备1200实现为配置设备时,所述收发器,用于通过超宽带UWB方式获取目标设备的UWB标识信息;所述处理器,用于对所述UWB标识信息进行解析,获得所述目标设备的设备信息。In an exemplary solution, when the computer device 1200 is implemented as a configuration device, the transceiver is used to obtain the UWB identification information of the target device through ultra-wideband UWB; the processor is used to obtain the UWB identification information of the target device. The information is parsed to obtain the device information of the target device.
其中,上述计算机设备1200中的处理器和/或收发器执行的过程可以参考上述图2或图5任一所示的方法中,由配置设备执行的各个步骤。The process performed by the processor and/or transceiver in the computer device 1200 may refer to the various steps performed by the configuration device in the method shown in either of the above-mentioned FIG. 2 or FIG. 5 .
在另一个示例性的方案中,当计算机设备1200实现为目标设备时,所述收发器,用于通过超宽带UWB方式向配置设备发送UWB标识信息,以便所述配置设备对所述UWB标识信息进行解析,获得所述目标设备的设备信息。In another exemplary solution, when the computer device 1200 is implemented as a target device, the transceiver is configured to send UWB identification information to the configuration device in an ultra-wideband UWB manner, so that the configuration device can identify the UWB identification information. Perform analysis to obtain the device information of the target device.
其中,上述计算机设备1200中的处理器和/或收发器执行的过程可以参考上述图3或图5任一所示的方法中,由目标设备执行的各个步骤。The process performed by the processor and/or transceiver in the computer device 1200 may refer to the various steps performed by the target device in the method shown in either of the above-mentioned FIG. 3 or FIG. 5 .
在一个示例性的方案中,当计算机设备1200实现为配置设备时,所述处理器,用于建立目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系;根据所述目标设备的UWB标识信息与所述目标设备的设备标识信息之间的关联关系,对所述目标设备进行控制。In an exemplary solution, when the computer device 1200 is implemented as a configuration device, the processor is configured to establish an association between the UWB identification information of the target device and the device identification information of the target device; according to the The target device is controlled by the association between the UWB identification information of the target device and the device identification information of the target device.
其中,上述计算机设备1200中的处理器和/或收发器执行的过程可以参考上述图8所示的方法中,由配置设备执行的各个步骤。The process performed by the processor and/or the transceiver in the computer device 1200 may refer to the various steps performed by the configuration device in the method shown in FIG. 8 .
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图2、图3、图5或者图8所示的方法中,由配置设备或者目标设备执行的全部或者部分步骤。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. 5 or FIG. 8. All or part of the steps performed by the configuration device or the target device in the method shown.
本申请还提供了一种芯片,该芯片用于在计算机设备中运行,以使得计算机设备执行上述图2、图3、图5或者图8所示的方法中,由配置设备或者目标设备执行的全部或者部分步骤。This application also provides a chip, which is used to run in a computer device, so that the computer device executes the method performed by the configuration device or the target device in the above-mentioned method shown in Figure 2, Figure 3, Figure 5 or Figure 8. All or part of the steps.
本申请还提供了一种计算机程序产品,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得计算机设备执行上述图2、图3、图5或者图8所示的方法中,由配置设备或者目标设备执行的全部或者部分步骤。The application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method shown in Figure 2, Figure 3, Figure 5 or Figure 8, by configuring the device or All or part of the steps performed by the target device.
本申请还提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述图2、图3、图5或者图8所示的方法中,由配置设备或者目标设备执行的全部或者部分步骤。This application also provides a computer program, which is executed by the processor of the computer device to implement all the steps executed by the configuration device or the target device in the method shown in FIG. 2, FIG. 3, FIG. 5 or FIG. 8. Or some steps.
Claims (71)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202280093070.9A CN118830271A (en) | 2022-03-17 | 2022-03-17 | Device discovery method, apparatus, device, storage medium and program product |
| PCT/CN2022/081475 WO2023173366A1 (en) | 2022-03-17 | 2022-03-17 | Device discovery method and apparatus, and device, storage medium and program product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2022/081475 WO2023173366A1 (en) | 2022-03-17 | 2022-03-17 | Device discovery method and apparatus, and device, storage medium and program product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023173366A1 true WO2023173366A1 (en) | 2023-09-21 |
Family
ID=88021885
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2022/081475 Ceased WO2023173366A1 (en) | 2022-03-17 | 2022-03-17 | Device discovery method and apparatus, and device, storage medium and program product |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN118830271A (en) |
| WO (1) | WO2023173366A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111126521A (en) * | 2019-11-28 | 2020-05-08 | 清研讯科(北京)科技有限公司 | Asset positioning method and device, storage medium and electronic device |
| US10939406B1 (en) * | 2020-03-27 | 2021-03-02 | Psj International Ltd. | Ultra-wideband assisted precise positioning method |
| CN113055873A (en) * | 2021-03-11 | 2021-06-29 | Oppo广东移动通信有限公司 | Method and device for identifying devices, electronic device and storage medium |
| US20210241551A1 (en) * | 2020-02-04 | 2021-08-05 | Alarm.Com Incorporated | User detection |
-
2022
- 2022-03-17 CN CN202280093070.9A patent/CN118830271A/en active Pending
- 2022-03-17 WO PCT/CN2022/081475 patent/WO2023173366A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111126521A (en) * | 2019-11-28 | 2020-05-08 | 清研讯科(北京)科技有限公司 | Asset positioning method and device, storage medium and electronic device |
| US20210241551A1 (en) * | 2020-02-04 | 2021-08-05 | Alarm.Com Incorporated | User detection |
| US10939406B1 (en) * | 2020-03-27 | 2021-03-02 | Psj International Ltd. | Ultra-wideband assisted precise positioning method |
| CN113055873A (en) * | 2021-03-11 | 2021-06-29 | Oppo广东移动通信有限公司 | Method and device for identifying devices, electronic device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118830271A (en) | 2024-10-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN113163379B (en) | Method for discovering and distributing network and electronic equipment | |
| US9596603B2 (en) | Distributed bulk onboarding process | |
| TWI545916B (en) | Adaptability and extensible general structure description for heterogeneous Internet of Things (IOT) devices | |
| US9185641B2 (en) | Using discoverable peer-to-peer services to allow remote onboarding of headless devices over a Wi-Fi network | |
| CN113572799B (en) | Method and device for accessing equipment to control platform and server | |
| US20150071216A1 (en) | Allowing mass re-onboarding of headless devices | |
| CN109391699A (en) | Device network configuration method, device and server | |
| CN112152969A (en) | Internet of things gateway and method for Internet of things device access gateway | |
| CN104363153A (en) | Internet of things, communication method oriented to internet of things, bridging device oriented to internet of things and access device | |
| WO2016180091A1 (en) | Network access method and device | |
| KR20250040887A (en) | System and method for identifying and initializing IoT devices using Bluetooth advertising channels | |
| CN115356937A (en) | Device control method, device, storage medium, and electronic apparatus | |
| EP4135265A1 (en) | Method and apparatus for controlling device in internet of things, and gateway device and storage medium | |
| US20160330565A1 (en) | Z-wave controller shift in thermostats | |
| CN109361641B (en) | Method for adding heterogeneous terminal into scene, storage medium and application server | |
| CN106249608A (en) | Solution scheme using mobile phone or tablet computer as smart home center | |
| CN111010322B (en) | Information configuration method and device, electronic equipment and storage medium | |
| WO2023173366A1 (en) | Device discovery method and apparatus, and device, storage medium and program product | |
| WO2023184560A1 (en) | Device sharing method and apparatus, device, storage medium, and program product | |
| KR20180054157A (en) | New IOT(Internet Of Things) device management apparatus and method | |
| CN118947100B (en) | Equipment sharing method, device, equipment, storage medium and program product | |
| WO2023173365A1 (en) | Device discovery method and apparatus, device, storage medium, and program product | |
| CN115150796A (en) | Intelligent device and network connection method thereof, routing device and storage medium | |
| CN118140497A (en) | Subscription rights information processing method, device, computer equipment and storage medium | |
| CN118872326A (en) | Device binding method, apparatus, 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: 22931401 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202280093070.9 Country of ref document: CN |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22931401 Country of ref document: EP Kind code of ref document: A1 |