Equipment discovery method and device, equipment, storage medium and program product
Patent Information
- Application Number
- CN202280093070.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-17
- Publication Date
- 2024-10-22
AI Technical Summary
In the existing IoT device discovery process, users need to scan a QR code, manually enter a pairing code, or come into close contact with the device, which results in cumbersome operations and low efficiency.
Using ultra-wideband UWB technology, the UWB identification information is obtained by configuring the device or sent by the target device, and parsed to obtain device information, simplifying the device discovery process.
There is no need for users to perform cumbersome operations, which improves the efficiency of IoT device discovery and simplifies the device discovery process.
Smart Images

Figure CN118830271A_ABST
Abstract
Description
Device discovery method, apparatus, device, storage medium, and program product Technical Field
[0001] The present application relates to the field of Internet of Things technology, and in particular to a device discovery method, apparatus, device, storage medium, and program product. Background Art
[0002] 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.
[0003] Before configuring an IoT device, the configuration device must first discover the IoT device, 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 manually entering a pairing code.
[0004] Summary of the Invention
[0005] The present invention provides a device discovery method, apparatus, device, storage medium, and program product. The technical solution is as follows:
[0006] In one aspect, an embodiment of the present application provides a device discovery method, which is performed by a configuration device and includes:
[0007] Obtain UWB identification information of the target device through ultra-wideband UWB;
[0008] The UWB identification information is parsed to obtain device information of the target device.
[0009] In one aspect, an embodiment of the present application provides a device discovery method, which is performed by a target device and includes:
[0010] The 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 to obtain the device information of the target device.
[0011] On the other hand, an embodiment of the present application provides a device discovery apparatus, the apparatus comprising:
[0012] An information acquisition module is used to obtain the UWB identification information of the target device through an ultra-wideband UWB method;
[0013] The parsing module is used to parse the UWB identification information to obtain the device information of the target device.
[0014] On the other hand, an embodiment of the present application provides a device discovery apparatus, the apparatus comprising:
[0015] The sending module is used 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 the device information of the target device.
[0016] In one aspect, an embodiment of the present application provides a device control method, the method being performed by a configuration device, the method further comprising:
[0017] Establishing an association relationship between the UWB identification information of the target device and the device identification information of the target device;
[0018] The target device is controlled according to the association relationship between the UWB identification information of the target device and the device identification information of the target device.
[0019] On the other hand, an embodiment of the present application provides a device control apparatus, the apparatus comprising:
[0020] A first establishing module is used to establish an association relationship between the UWB identification information of the target device and the device identification information of the target device;
[0021] The control module 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.
[0022] On the other hand, an embodiment of the present application provides a computer device, which includes a processor, a memory and a transceiver, wherein the memory stores a computer program, and the computer program is used to be executed by the processor to implement the above-mentioned device discovery method or device control method.
[0023] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the above-mentioned device discovery method or device control method.
[0024] On the other hand, the present application also provides a chip, which is used to run in a computer device so that the computer device executes the above-mentioned device discovery method or device control method.
[0025] In another aspect, the present application provides a computer program product, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the above-described device discovery method or device control method.
[0026] On the other hand, the present application provides a computer program, which is executed by a processor of a computer device to implement the above-mentioned device discovery method or device control method.
[0027] The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:
[0028] The device information of the target device can be encoded and mapped into 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, the user does not need to use the configuration device to perform tedious operations such as QR code scanning, input, or controlling the configuration device to approach the target device, thereby simplifying the device discovery process in the Internet of Things scenario and improving the efficiency of device discovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0030] FIG1 is a schematic diagram of a network architecture of the Internet of Things provided by one embodiment of the present application;
[0031] FIG2 is a flow chart of a device discovery method provided by one embodiment of the present application;
[0032] FIG3 is a flow chart of a device discovery method provided by one embodiment of the present application;
[0033] FIG4 is a flow chart of a device discovery method provided by one embodiment of the present application;
[0034] FIG5 is a flow chart of a device discovery method provided by one embodiment of the present application;
[0035] FIG6 is a schematic diagram of a device discovery and control timing involved in the embodiment shown in FIG5 ;
[0036] FIG7 is a schematic diagram of another device discovery and control timing involved in the embodiment shown in FIG5 ;
[0037] FIG8 is a flow chart of a device control method provided by one embodiment of the present application;
[0038] FIG9 is a block diagram of a device discovery apparatus provided by one embodiment of the present application;
[0039] FIG10 is a block diagram of a device discovery apparatus provided by one embodiment of the present application;
[0040] FIG11 is a block diagram of a device control apparatus provided by one embodiment of the present application;
[0041] FIG12 is a schematic diagram of the structure of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0043] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. A person skilled in the art will appreciate that, with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
[0044] Please refer to Figure 1, which shows a schematic diagram of the network architecture of the Internet of Things provided by one embodiment of the present application. The network architecture of the Internet of Things may include: an Internet of Things device 110 and a configuration device 120;
[0045] The IoT device 110 may be a device in the IoT that provides a server function corresponding to an IoT protocol. The source device may provide subscribable resources to the outside world.
[0046] For example, the IoT device 110 may be a smart home device, such as a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, a smart speaker, a smart switch, and the like.
[0047] Alternatively, the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, and the like.
[0048] Alternatively, the IoT device 110 may be a commercial service device, such as an unmanned vending machine, etc.
[0049] Alternatively, the IoT device 110 may be an intelligent monitoring device, such as a monitoring camera, an infrared sensor, a sound sensor, a temperature sensor, and the like.
[0050] In one possible implementation, the IoT device 110 may also be a user-side terminal device. For example, the IoT device 110 may be a smart controller, a smart remote control, a smartphone, a tablet computer, a smart watch, a smart TV, a gateway, etc. Alternatively, the IoT device 110 may be a personal computer, such as a desktop computer, a laptop computer, a personal workstation, etc.
[0051] The configuration device 120 may be a terminal device on the user side, for example, a smart phone, a tablet computer, a smart watch, a smart TV, etc.
[0052] In another possible implementation, the configuration device 120 may also be a client entity (which may be a virtual entity) running on a terminal device. For example, the configuration device 120 may be an APP running on a smart phone for managing and configuring the IoT device 110.
[0053] In an embodiment of the present application, the above-mentioned IoT device 110 can be an electronic device that meets the same or different IoT protocols. For example, it can be an electronic device that meets the Matter protocol (or the Connected Home over IP Working Group (CHIP) project) under the Connectivity Standards Alliance (CSA) (or Zigbee Alliance).
[0054] Matter is an IP-based IoT connectivity standard that addresses the compatibility, security, and connectivity challenges currently facing the smart home market. Matter defines a technical solution for configuring IoT devices, including steps such as device discovery, authentication, configuration, and operation.
[0055] In one possible implementation, in the device discovery step, the IoT device in the Matter system (also called Matter device) can share the device information in Table 1 below with the configuration device in the system (also called Matter configurator) through QR Code (Quick Response Code), Manual Pairing Code, NFC Tag, etc.
[0056] Table 1
[0057] Vendor ID, Manufacturer ID (Identity), Product ID, Discovery Capabilities, Bitmask, Device Discovery Method, Bitmask, Discriminator, Device Identification Value (12 bits), Passcode (27 bits), TLV data, User-defined data
[0058] The format of the user-defined data in Table 1 is a Tag-Length-Value (TLV) format.
[0059] In the aforementioned device discovery schemes, the configuration device is typically a smart terminal such as a user's smartphone. The device discovery process often requires the user to interact with the smartphone. For example, after purchasing a Matter smart home device, a user must scan a QR code on the device with their phone to obtain device information, manually enter the manual pairing code provided by the device, or place their phone in close proximity to the device to obtain device information via NFC. These operations introduce operational inconveniences for the user. For example, scanning a QR code and manually entering a manual pairing code require the user to perform a series of actions on the phone, while NFC requires the user to maintain close contact between the phone and the device.
[0060] The solutions provided in the subsequent embodiments of the present application can simplify user operations during the device discovery process and improve the efficiency of device discovery.
[0061] Please refer to FIG2 , which shows a flow chart of a device discovery method provided by an embodiment of the present application. The method may be performed by a configuration device, for example, the configuration device may be the configuration device 120 in the network architecture shown in FIG1 . The method may include the following steps:
[0062] Step 201: Acquire UWB identification information of a target device via an ultra-wideband (UWB) method.
[0063] In an embodiment of the present application, the configuration device has an ultra-wideband (UWB) component, and UWB scanning can be enabled through the UWB component (also called a UWB communication component) to obtain UWB identification information of the target device.
[0064] In a possible implementation, the above-mentioned UWB identification information may be the UWB tag identification information of a UWB tag built into / externally connected to 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 the UWB tag ID of the target device.
[0065] Alternatively, the UWB identification information may be the UWB component identification information of a UWB component built into the device, such as a UWB component ID. The UWB component is a component with UWB communication functionality that can scan for UWB identification information of other devices or communicate with UWB components of other devices.
[0066] Step 202: parse the UWB identification information to obtain device information of the target device.
[0067] In the embodiment of the present application, the UWB identification information of the target device may be obtained by encoding and mapping the device information of the target device.
[0068] Correspondingly, after the configuration device obtains the above-mentioned UWB identification information, it can parse the UWB identification information to obtain the device information of the target device.
[0069] To sum up, in the scheme shown in the embodiment of the present application, the device information of the target device can be encoded and mapped into 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 scheme, the user does not need to use the configuration device to perform tedious operations such as QR code scanning, input, or controlling the configuration device to be close to the target device, thereby simplifying the device discovery process in the Internet of Things scenario and improving the efficiency of device discovery.
[0070] Please refer to FIG3 , which shows a flow chart of a device discovery method provided by one embodiment of the present application. The method may be performed by a target device, for example, the target device may be the IoT device 110 in the network architecture shown in FIG1 . The method may include the following steps:
[0071] Step 301: sending UWB identification information to a configuration device via an ultra-wideband (UWB) method, so that the configuration device parses the UWB identification information and obtains device information of a target device.
[0072] To sum up, in the scheme shown in the embodiment of the present application, the device information of the target device can be encoded and mapped as the UWB identification information of the target device. During the device discovery process, the target device can provide the UWB identification information of the target device to the configuration device via UWB, 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 scheme, the user does not need to use the configuration device to perform tedious operations such as QR code scanning, input, or controlling the configuration device to be close to the target device, thereby simplifying the device discovery process in the Internet of Things scenario and improving the efficiency of device discovery.
[0073] Based on the solution shown in FIG. 2 or FIG. 3 above, please refer to FIG. 4 , which shows a flow chart of a device discovery method provided in one embodiment of the present application.
[0074] As shown in FIG4 , taking the configuration device as the user's mobile phone 41 and the target device as the smart home device 42 as an example, the mobile phone 41 is provided with a UWB component, the smart home device 42 is provided with a UWB component or the smart home device 42 is externally connected to a UWB tag.
[0075] During the device discovery process, after smart home device 42 is powered on, the user can use mobile phone 41 to scan for nearby UWB devices. At this point, smart home device 42 transmits its UWB identification information to mobile phone 41 via a UWB component or UWB tag. The UWB identification information sent by smart home device 42 is encoded and mapped based on the device information of smart home device 42 (such as the information shown in Table 1). After mobile phone 41 obtains this UWB identification information via UWB, it can parse the UWB identification information to obtain the device information of smart home device 42, thus completing the device discovery process.
[0076] Please refer to FIG5 , which shows a flow chart of a device discovery method provided by one embodiment of the present application. The method can be interactively executed by a configuration device and a target device. For example, the target device can be the IoT device 110 in the network architecture shown in FIG1 , and the configuration device can be the configuration device 120 in the network architecture shown in FIG1 . The method can include the following steps:
[0077] Step 501: The configuration device obtains UWB identification information of the target device via an ultra-wideband (UWB) method; correspondingly, the target device sends the UWB identification information to the configuration device via an ultra-wideband (UWB) method.
[0078] In a possible implementation, the step of obtaining the UWB identification information of the target device through an ultra-wideband (UWB) method may include:
[0079] When the first trigger operation is received, UWB identification information is obtained through an ultra-wideband UWB method.
[0080] The first trigger operation refers to a predetermined operation received by the configuration device for triggering device discovery via ultra-wideband (UWB), such as double-clicking the back cover of the device, shaking the device, and the like.
[0081] For example, if 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, installs and powers it on, and installs the device management application (Application, APP) on the mobile phone. The user then shakes the phone, triggering the phone to obtain UWB identification information from the smart home device via UWB.
[0082] For example, a mobile phone is integrated with a UWB component (such as a UWB chip), or a mobile phone case with a UWB component is used. The mobile phone APP can detect events that trigger device discovery / management (such as shaking the phone). After the APP receives the event of device discovery / management triggered by the user, 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 (the UWB Tag information can be the UWB tag identification information, which is equivalent to the above-mentioned 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), the mobile phone APP sends instructions to the mobile phone case through BLE, instructing the mobile phone case to obtain the UWB tag information of the smart home device through the UWB component, and then returns the obtained data to the mobile phone APP through BLE.
[0083] In another possible implementation, the configuration device may also automatically obtain the UWB identification information of the target device through ultra-wideband (UWB) without any triggering operation. For example, the configuration device may scan the surrounding UWB devices in real time to obtain the UWB identification information.
[0084] In a possible implementation, before the target device sends the UWB identification information to the configuration device in an ultra-wideband UWB manner, the target device also maps the device information of the target device into the UWB identification information.
[0085] The target device may generate a character string with a fixed number of bytes using a compression algorithm or a specific encoding method for its own device information (such as the several types of information shown in Table 1) in advance, and use the generated character string as the UWB identification information.
[0086] The target device can map its own device information code into UWB identification information when powered on.
[0087] Alternatively, the target device may map its own device information code to the UWB identification information when the configuration device requests to obtain the UWB identification information.
[0088] Alternatively, the UWB identification information may be information pre-written into the target device or the UWB tag of the target device before the target device leaves the factory.
[0089] Step 502: The configuration device parses the UWB identification information to obtain device information of the target device.
[0090] In the 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 coding mapping method of the UWB identification information to obtain the device information of the target device.
[0091] In another possible implementation, the device information of the target device may be stored in a server corresponding to the UWB identification information, and the configuration device may parse the UWB identification information and query the server for the device information of the target device corresponding to the UWB identification information.
[0092] In a possible implementation, the process of parsing the UWB identification information to obtain the device information of the target device may include:
[0093] Obtaining first UWB measurement information between the configuration device and the target device;
[0094] When the first UWB measurement information satisfies the first condition, the UWB identification information is parsed to obtain device information of the target device.
[0095] Since the configuration device does not know any information about the target device before discovering the target device, and UWB identification information of multiple UWB devices may be obtained during the device discovery process, the configuration device needs to solve the problem of how to accurately locate the target device it needs to discover.
[0096] Regarding the above problem, in an embodiment of the present application, when the configuration device obtains the UWB identification information of the target device through UWB, it also obtains the first UWB measurement information between the configuration device and the target device. When the first UWB measurement information meets the conditions, 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 to obtain the device information of the target device is executed.
[0097] In a possible implementation manner, the first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
[0098] In the embodiment of the present application, the first UWB measurement information may include at least one of angle information, distance information, and signal strength information between the configuration device and the target device.
[0099] The first UWB measurement information may change as the relative position relationship between the configuration device and the target device (including the relative angle relationship, the distance relationship, and whether there is an obstacle) changes.
[0100] The first UWB measurement information may be obtained by measuring the target device, or the first UWB measurement information may be obtained by measuring the configuration device.
[0101] Alternatively, the first UWB measurement information may be obtained by jointly measuring the target device and the configuration device. For example, some of the first UWB measurement information may be obtained by measuring the target device, while other information may be obtained by measuring the configuration device. Alternatively, the first UWB measurement information may be an average of the measurement results of the target device and the configuration device.
[0102] In one possible implementation, the first condition includes at least one of the following conditions:
[0103] Condition 1) When the first UWB measurement information includes first angle information, the angle indicated by the first angle information is within a first angle range.
[0104] In an 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 in the first angle interval in front of the configuration device, it can be determined that the target device is the device discovered this time.
[0105] From the user's perspective, if the user wants to discover the target device through the configuration device, the user can point the configuration device to the location of the target device to ensure that the target device is currently in the first angle interval in front of the configuration device.
[0106] Condition 2) When the first UWB measurement information includes first distance information, the distance indicated by the first distance information is within a first distance interval.
[0107] In an 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 a first distance interval around the configuration device, it can be determined that the target device is the device discovered this time.
[0108] From a user's perspective, if the user wants to discover the target device through the configuration device, the user may move the configuration device near the target device to ensure that the target device is currently within a first distance interval around the configuration device.
[0109] Condition 3) When the first UWB measurement information includes first signal strength information, the signal strength indicated by the first signal strength information is within a first signal strength range.
[0110] In an 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 range (for example, the signal strength indicated by the first UWB measurement information is greater than the first signal strength threshold), it can be determined that the target device is the device discovered this time.
[0111] Step 503: The configuration device pairs with the target device according to the device information of the target device.
[0112] In an embodiment of the present application, after the configuration device obtains the device information of the target device, it can pair and connect with the target device through the obtained device information, for example, pairing and connecting based on the Matter protocol.
[0113] Step 504: After successfully pairing with the target device, the configuration device configures the target device.
[0114] In an embodiment of the present application, after the configuration device is successfully paired with the target device, the target device can be configured accordingly, for example, the target device can be configured based on the Matter protocol.
[0115] In an embodiment of the present application, the above-mentioned pairing refers to establishing a secure communication channel before configuration: including the establishment of a secure channel and device authentication. The above-mentioned configuration may include: configuration of the interoperability certificate after the pairing secure channel is established, configuration of basic device information, clock synchronization configuration, location information configuration, and access control permission configuration, etc.
[0116] Step 505: The configuration device establishes an association relationship between the UWB identification information and the device identification information of the target device.
[0117] The device identification information may be the node ID of the target device obtained by the configuration device during the configuration of the target device.
[0118] In an embodiment of the present application, after pairing between the configuration device and the target device is completed, the configuration device can locally establish and store an association between the UWB identification information and the device identification information of the target device, so that when the UWB identification information is subsequently obtained again through UWB, it can quickly determine that pairing between the configuration device and the target device has been completed, avoiding re-execution of the device discovery and pairing process.
[0119] For example, after the configuration device obtains the UWB identification information again through UWB, 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 pairing with the device has been completed and there is no need to continue the device discovery and pairing process; conversely, if the associated device identification information is not queried, the above-mentioned device discovery and pairing process is executed.
[0120] 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.
[0121] In the embodiment of the present application, the association relationship between the above-mentioned UWB identification information and the device identification information of the target device can also be used to control the target device.
[0122] In one possible implementation, after establishing an association relationship between the UWB identification information and the device identification information of the target device, a process of controlling the target device according to the association relationship between the UWB identification information and the device identification information of the target device may include:
[0123] When a second trigger operation is received, obtaining UWB identification information via an ultra-wideband (UWB) method;
[0124] Querying device identification information associated with the UWB identification information and a first operation command associated with the second trigger operation;
[0125] A first operation command is sent to the target device according to the device identification information.
[0126] The 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 cover of the device, shaking the device, etc.
[0127] The second trigger operation and the first trigger operation may be the same operation or different operations.
[0128] In an embodiment of the present application, when the configured device subsequently receives a second trigger operation, it can obtain UWB identification information through an 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 a corresponding action according to the first operation command, such as turning on, turning off, etc.
[0129] In a possible implementation, when the second trigger operation is received, before obtaining the UWB identification information in an ultra-wideband (UWB) manner, the method further includes:
[0130] A first association operation is received; and an association relationship between the second trigger operation and the first operation command is established according to the first association operation.
[0131] The association relationship between the second trigger operation and the first operation command may be customized by the user through the first association operation in configuring the device.
[0132] In another possible implementation, the association relationship between the second trigger operation and the first operation command may also be pre-set in the APP.
[0133] In one possible implementation, querying the device identification information associated with the UWB identification information and the first operation command associated with the second trigger operation includes:
[0134] Obtaining second UWB measurement information between the configuration device and the target device;
[0135] When the second UWB measurement information satisfies the second condition, the device identification information associated with the UWB identification information and the first operation command associated with the second trigger operation are queried.
[0136] In a possible implementation manner, the second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
[0137] In one possible implementation, the second condition includes at least one of the following conditions:
[0138] When the second UWB measurement information includes second angle information, the angle indicated by the second angle information is within the second angle interval;
[0139] When the second UWB measurement information includes second distance information, the distance indicated by the second distance information is within the second distance interval;
[0140] When the second UWB measurement information includes the second signal strength information, the signal strength indicated by the second signal strength information is within the second signal strength range.
[0141] In an embodiment of the present application, the configuration device controls the target device based on the association between the UWB identification information and the device identification information of the target device, and can also determine whether the target device is the device to be controlled this time through UWB measurement information. The judgment method is similar to the method of determining whether the target device is the device to be discovered this time during the discovery process, and will not be repeated here.
[0142] In one possible implementation, after establishing an association relationship between the UWB identification information and the device identification information of the target device, a method of controlling the target device according to the association relationship between the UWB identification information and the device identification information of the target device may include:
[0143] Obtain UWB identification information and third distance information between the configuration device and the target device through ultra-wideband UWB;
[0144] 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;
[0145] Send a second operation command to the target device according to the device identification information.
[0146] In an embodiment of the present application, the configuration device may also control the target device by configuring the distance between the configuration device and the target device.
[0147] In a possible implementation, before obtaining UWB identification information through an ultra-wideband (UWB) method and configuring the third distance information between the device and the target device, the method further includes:
[0148] receiving a second association operation;
[0149] According to the second associating operation, an association relationship is established between the distance indicated by the third distance information and the second operation command.
[0150] The association relationship between the distance indicated by the third distance information and the second operation command may be customized by the user through the second association operation in configuring the device.
[0151] In another possible implementation, the association relationship between the distance indicated by the third distance information and the second operation command may also be pre-set in the APP.
[0152] In one 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:
[0153] Obtaining third UWB measurement information between the configuration device and the target device;
[0154] When the third UWB measurement information satisfies the third condition, 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 are queried.
[0155] In a possible implementation manner, the third UWB measurement information includes at least one of third angle information, third distance information, and third signal strength information.
[0156] In one possible implementation, the third condition includes at least one of the following conditions:
[0157] When the third UWB measurement information includes third angle information, the angle indicated by the third angle information is within a third angle interval;
[0158] When the third UWB measurement information includes third distance information, the distance indicated by the third distance information is within a third distance interval;
[0159] When the third UWB measurement information includes third signal strength information, the signal strength indicated by the third signal strength information is within a third signal strength interval.
[0160] Please refer to Figure 6, which shows a device discovery and control timing diagram involved in an 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 the 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 be as follows:
[0161] S61, mapping the device information data such as the vendor ID, product ID, discriminator, discovery bitmask, passcode, etc. of the device into a UWB tag ID.
[0162] S62: The user performs a triggering event operation by double-clicking the back cover of the mobile phone or shaking it.
[0163] S63, the mobile phone APP obtains the UWB identification information of the device through UWB.
[0164] S64: The device returns the UWB tag ID and angle information.
[0165] S65, the mobile phone APP determines whether it is the target device based on the angle of obtaining the device tag; if so, execute S66.
[0166] For example, if the UWB angle range indicated by the angle information is between -5.0 degrees and +5.0 degrees, it indicates that it is the target device to be discovered this time.
[0167] S66, the mobile phone APP parses the device information through the UWB tag ID.
[0168] S67, the mobile phone APP establishes pairing and configuration with the device through the acquired device information.
[0169] S68, after the mobile phone APP successfully configures the device, the Node ID assigned to the device is associated with the UWB tag ID.
[0170] S69, the mobile phone APP associates the command operation of the device specific resource with the configurator trigger event.
[0171] For example, you can associate the device switch with double-clicking the phone's back cover or shaking it.
[0172] S610: The user performs a triggering event operation by double-clicking the back cover of the mobile phone or shaking it.
[0173] S611, the mobile phone APP obtains UWB identification information through UWB.
[0174] S612: The device returns the UWB tag ID and angle information.
[0175] S613 is the same as step S65.
[0176] S614, the mobile phone APP searches for the Node ID corresponding to the UWB tag ID. If there is a relationship, it means that the devices are paired successfully, and searches for the command corresponding to the event.
[0177] S615, the mobile phone APP executes a command to the corresponding resource, such as a toggle (state switch) command to switch the resource.
[0178] Please refer to Figure 7, which shows another device discovery and control timing diagram involved in 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 the 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 be as follows:
[0179] S71 , mapping the device information data such as the device's VendorID, ProductID, Discriminator, Discovery Bitmask, Passcode, etc. into a UWB tag ID.
[0180] S72: The user holds the mobile phone close to the device or points it at the device.
[0181] S73, the mobile phone APP detects the UWB identification information of the device in real time through UWB.
[0182] S74, the device returns the UWB tag ID, angle information, signal strength, and distance information in real time.
[0183] S75, the distance in the UWB identification information detected by the mobile phone APP reaches the minimum threshold required for setting the device discovery, and the angle and signal strength are within the appropriate range, indicating that the target device has been discovered.
[0184] S76, the mobile phone APP parses the device information through the UWB tag ID.
[0185] S77, the mobile phone APP establishes pairing and configuration with the device through the obtained device information.
[0186] S78, after the mobile phone APP successfully configures the device, the Node ID assigned to the device is associated with the UWB tag ID.
[0187] S79, the mobile phone APP associates the command operation of the device-specific resource with the configurator trigger event.
[0188] For example, associate a device switch with a UWB distance range.
[0189] S710: The user holds the mobile phone toward or approaches the device or moves away from the device.
[0190] S711, the mobile phone APP obtains UWB identification information through UWB.
[0191] S712: The device returns the UWB tag ID, angle information, signal strength, and distance information.
[0192] S713: The mobile phone app detects that the angle and signal strength of the device's UWB are within the appropriate range and locks the device.
[0193] S714, the mobile phone APP searches for the Node ID corresponding to the UWB tag ID. If there is a relationship, it means that the devices are paired successfully.
[0194] S715 , determine whether the UWB distance of the device is within the set controllable distance range; if so, execute 716 .
[0195] S716, the mobile phone APP executes the command to the corresponding resource (if the detected UWB distance is within the distance range set by the user, the on command is sent; if it is greater than the distance range, the off command is sent).
[0196] Through the solution shown in the embodiment of the present application, users can obtain the data information required for device configuration in a seamless manner through the UWB function, thereby configuring the device seamlessly; users can use the UWB function to control the device with a handheld device without clicking buttons on the controller interface.
[0197] To sum up, in the scheme shown in the embodiment of the present application, the device information of the target device can be encoded and mapped as the UWB identification information of the target device. During the device discovery process, the target device can provide the UWB identification information of the target device to the configuration device via UWB, 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 scheme, the user does not need to use the configuration device to perform tedious operations such as QR code scanning, input, or controlling the configuration device to be close to the target device, thereby simplifying the device discovery process in the Internet of Things scenario and improving the efficiency of device discovery.
[0198] Please refer to FIG8 , which shows a flow chart of a device control method provided by an embodiment of the present application. The method may be performed by a configuration device, which may be the configuration device 120 in the network architecture shown in FIG1 . The method may include the following steps:
[0199] Step 801: Establish an association relationship between the UWB identification information of the target device and the device identification information of the target device.
[0200] In the embodiment of the present application, a UWB component is provided in the configuration device; a UWB component is provided in the target device, or the target device is externally connected to a UWB tag.
[0201] After the configuration device completes configuration of the target device, it can obtain the UWB identification information of the target device and the device identification information of the target device. Then, the configuration device can establish an association relationship between the UWB identification information of the target device and the device identification information of the target device.
[0202] The UWB identification information may be the UWB component identification information of the target device's UWB component, or the UWB tag identification information of a UWB tag connected to the target device. The device identification information of the target device may be the node identification information (Node ID) of the target device in the Internet of Things.
[0203] The configuration device may perform device discovery on the target device with reference to the description of the embodiment shown in FIG5 . Alternatively, the configuration device may obtain device information of the target device through a QR code, pairing code, or other means to achieve discovery of the target device. The embodiments of the present application do not limit the device discovery method used by the configuration device.
[0204] Step 802: 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.
[0205] The above process of controlling the target device may refer to the description under step 506 in the embodiment shown in FIG5 , and will not be repeated here.
[0206] In summary, the solution shown in the embodiment of the present 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.
[0207] Please refer to Figure 9, which shows a block diagram of a device discovery apparatus provided by an embodiment of the present application. The device discovery apparatus 900 has the function of implementing the method shown in Figure 2 or Figure 5 above, which is performed by the configuration device. As shown in Figure 9, the device discovery apparatus 900 may include:
[0208] The information acquisition module 901 is used to obtain the UWB identification information of the target device through the ultra-wideband UWB method;
[0209] The parsing module 902 is configured to parse the UWB identification information to obtain device information of the target device.
[0210] In a possible implementation, the apparatus further includes:
[0211] A configuration module is used to configure the target device according to the device information of the target device.
[0212] In a possible implementation, the apparatus further includes:
[0213] The first establishing module is configured to establish an association relationship between the UWB identification information and the device identification information of the target device.
[0214] In a possible implementation, the parsing module 902 is configured to:
[0215] Acquire first UWB measurement information between the configuration device and the target device;
[0216] When the first UWB measurement information meets a first condition, the UWB identification information is parsed to obtain device information of the target device.
[0217] In a possible implementation manner, the first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
[0218] In a possible implementation, the first condition includes at least one of the following conditions:
[0219] When the first UWB measurement information includes the first angle information, the angle indicated by the first angle information is within a first angle interval;
[0220] 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;
[0221] 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.
[0222] In a possible implementation, the information acquisition module 901 is configured to acquire the UWB identification information via an ultra-wideband (UWB) method when receiving a first trigger operation.
[0223] In one possible implementation, the information acquisition module 901 is further configured to, after the first establishment module establishes the association relationship between the UWB identification information and the device identification information of the target device, obtain the UWB identification information through an ultra-wideband (UWB) method when a second trigger operation is received;
[0224] The device further comprises:
[0225] a first query module, configured to query the device identification information associated with the UWB identification information and a first operation command associated with the second trigger operation;
[0226] A first sending module is configured to send the first operation command to the target device according to the device identification information.
[0227] In a possible implementation, the apparatus further includes:
[0228] A first operation receiving module is configured to receive a first association operation before the information obtaining module 901 obtains the UWB identification information in an ultra-wideband (UWB) manner when receiving the second triggering operation;
[0229] The second establishing module is used to establish an association relationship between the second triggering operation and the first operation command according to the first association operation.
[0230] In a possible implementation, the first query module is configured to:
[0231] Acquiring second UWB measurement information between the configuration device and the target device;
[0232] When the second UWB measurement information satisfies a second condition, the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation are queried.
[0233] In a possible implementation manner, the second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
[0234] In a possible implementation, the second condition includes at least one of the following conditions:
[0235] When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within a second angle interval;
[0236] When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within a second distance interval;
[0237] 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 range.
[0238] In one possible implementation, the information acquisition module 901 is further configured to, after the first establishment module establishes an association relationship between the UWB identification information and the device identification information of the target device, obtain the UWB identification information and the third distance information between the configuration device and the target device through an ultra-wideband (UWB) method;
[0239] The device further comprises:
[0240] a second query module, configured to 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;
[0241] The second sending module is configured to send the second operation command to the target device according to the device identification information.
[0242] In a possible implementation, the apparatus further includes:
[0243] A second operation receiving module is configured to receive a second association 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 in an ultra-wideband UWB manner;
[0244] The third establishing module is configured to establish an association relationship between the distance indicated by the third distance information and the second operation command according to the second association operation.
[0245] In a possible implementation, the second query module is configured to:
[0246] Acquiring third UWB measurement information between the configuration device and the target device;
[0247] When the third UWB measurement information satisfies a 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.
[0248] In a possible implementation manner, the third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
[0249] In a possible implementation, the third condition includes at least one of the following conditions:
[0250] 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;
[0251] 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;
[0252] 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 range.
[0253] In a possible implementation, the UWB identification information is UWB tag identification information of a UWB tag external to the device;
[0254] Alternatively, the UWB identification information is UWB component identification information of a UWB component built into the device.
[0255] Please refer to Figure 10, which shows a block diagram of a device discovery apparatus provided by an embodiment of the present application. The device discovery apparatus 1000 has the function of implementing the method shown in Figure 3 or Figure 5 above, which is performed by the target device. As shown in Figure 10, the device discovery apparatus 1000 may include:
[0256] The sending module 1001 is configured to send UWB identification information to a configuration device via an ultra-wideband (UWB) method, so that the configuration device parses the UWB identification information to obtain device information of the target device.
[0257] In a possible implementation, the apparatus further includes:
[0258] The mapping module is configured to map the device information of the target device into the UWB identification information before the sending module 1001 sends the UWB identification information to the configuration device via the ultra-wideband UWB method.
[0259] In a possible implementation, the UWB identification information is UWB tag identification information of a UWB tag external to the device;
[0260] Alternatively, the UWB identification information is UWB component identification information of a UWB component built into the device.
[0261] Please refer to Figure 11, which shows a block diagram of a device control apparatus provided by an embodiment of the present application. The device discovery apparatus 1100 has the function of implementing the method shown in Figure 8 above, which is performed by the configuration device. As shown in Figure 11, the device control apparatus 1100 may include:
[0262] A first establishing module 1101 is configured to establish an association relationship between the UWB identification information of a target device and the device identification information of the target device;
[0263] 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.
[0264] In a possible implementation, the control module 1102 is configured to:
[0265] When a second trigger operation is received, obtaining the UWB identification information via a UWB manner;
[0266] querying the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation;
[0267] The first operation command is sent to the target device according to the device identification information.
[0268] In a possible implementation, the apparatus further includes:
[0269] A first operation receiving module is configured to receive a first association operation before the control module 1102 obtains the UWB identification information via the UWB method when receiving the second trigger operation;
[0270] The second establishing module is used to establish an association relationship between the second triggering operation and the first operation command according to the first association operation.
[0271] In a possible implementation, the control module 1102 is configured to:
[0272] Acquiring second UWB measurement information between the configuration device and the target device;
[0273] When the second UWB measurement information satisfies a second condition, the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation are queried.
[0274] In a possible implementation manner, the second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
[0275] In a possible implementation, the second condition includes at least one of the following conditions:
[0276] When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within a second angle interval;
[0277] When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within a second distance interval;
[0278] 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 range.
[0279] In a possible implementation, the control module 1102 is configured to:
[0280] Acquire the UWB identification information and the third distance information between the configuration device and the target device in a UWB manner;
[0281] querying 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;
[0282] The second operation command is sent to the target device according to the device identification information.
[0283] In a possible implementation, the apparatus further includes:
[0284] A second operation receiving module is configured to receive a second association operation before the control module 1102 obtains the UWB identification information and the third distance information between the configuration device and the target device in an ultra-wideband UWB manner;
[0285] The third establishing module is configured to establish an association relationship between the distance indicated by the third distance information and the second operation command according to the second association operation.
[0286] In a possible implementation, the control module 1102 is configured to:
[0287] Acquiring third UWB measurement information between the configuration device and the target device;
[0288] When the third UWB measurement information satisfies a 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.
[0289] In a possible implementation manner, the third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
[0290] In a possible implementation, the third condition includes at least one of the following conditions:
[0291] 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;
[0292] 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;
[0293] 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 range.
[0294] In a possible implementation, the UWB identification information is UWB tag identification information of a UWB tag external to the device;
[0295] Alternatively, the UWB identification information is UWB component identification information of a UWB component built into the device.
[0296] Please refer to FIG12 , which shows a schematic diagram of the structure of a computer device 1200 provided in one embodiment of the present application. The computer device 1200 may include: a processor 1201 , a receiver 1202 , a transmitter 1203 , a memory 1204 , and a bus 1205 .
[0297] 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.
[0298] The receiver 1202 and the transmitter 1203 may be implemented as a communication component, which may be a communication chip, which may also be called a transceiver.
[0299] The memory 1204 is connected to the processor 1201 via a bus 1205 .
[0300] The memory 1204 may be used to store a computer program, and the processor 1201 may be used to execute the computer program to implement each step in the above method embodiment.
[0301] In addition, the memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, including but not limited to: magnetic disk or optical disk, electrically erasable programmable read-only memory, erasable programmable read-only memory, static random access memory, read-only memory, magnetic memory, flash memory, and programmable read-only memory.
[0302] In an exemplary embodiment, when the computer device 1200 is implemented as a configuration device, the transceiver is used to obtain UWB identification information of the target device via ultra-wideband UWB; the processor is used to parse the UWB identification information to obtain device information of the target device.
[0303] The process executed by the processor and / or transceiver in the computer device 1200 may refer to the steps executed by the configuration device in the method shown in either FIG. 2 or FIG. 5 .
[0304] In another exemplary solution, when the computer device 1200 is implemented as a target device, the transceiver is used to send UWB identification information to the configuration device via ultra-wideband UWB, so that the configuration device parses the UWB identification information to obtain device information of the target device.
[0305] The process executed by the processor and / or transceiver in the computer device 1200 may refer to the steps executed by the target device in the method shown in either FIG. 3 or FIG. 5 .
[0306] In an exemplary embodiment, when the computer device 1200 is implemented as a configuration device, the processor is used to establish an association relationship between the UWB identification information of the target device and the device identification information of the target device; and control the target device based on the association relationship between the UWB identification information of the target device and the device identification information of the target device.
[0307] The process executed by the processor and / or transceiver in the computer device 1200 may refer to the steps executed by the configuration device in the method shown in FIG. 8 .
[0308] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is loaded and executed by a processor to implement all or part of the steps performed by the configuration device or the target device in the method shown in Figures 2, 3, 5 or 8 above.
[0309] The present application also provides a chip, which is used to run in a computer device so that the computer device executes all or part of the steps performed by the configuration device or the target device in the method shown in Figure 2, Figure 3, Figure 5 or Figure 8 above.
[0310] The present application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform all or part of the steps performed by the configuration device or the target device in the method shown in Figures 2, 3, 5, or 8 above.
[0311] The present application also provides a computer program, which is executed by a processor of a computer device to implement all or part of the steps performed by the configuration device or the target device in the method shown in Figures 2, 3, 5 or 8 above.
Claims
1. A device discovery method, characterized in that: The method is performed by a configuration device, and includes: Obtain UWB identification information of the target device through ultra-wideband UWB; The UWB identification information is parsed to obtain device information of the target device.
2. The method according to claim 1, characterized in that The method further comprises: The target device is configured according to the device information of the target device.
3. The method according to claim 2, characterized in that The method further comprises: An association relationship is established between the UWB identification information and the device identification information of the target device.
4. The method according to any one of claims 1 to 3, characterized in that: The parsing of the UWB identification information to obtain device information of the target device includes: Acquire first UWB measurement information between the configuration device and the target device; When the first UWB measurement information meets a first condition, the UWB identification information is parsed to obtain device information of the target device.
5. The method according to claim 4, characterized in that The first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
6. The method according to claim 5, characterized in that The first condition includes at least one of the following conditions: When the first UWB measurement information includes the first angle information, the angle indicated by the first angle information is within a first angle interval; 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; 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.
7. The method according to any one of claims 1 to 6, characterized in that: The method of obtaining the UWB identification information of the target device by using an ultra-wideband (UWB) method includes: When the first trigger operation is received, the UWB identification information is obtained in an ultra-wideband UWB manner.
8. The method according to claim 3, characterized in that After establishing the association relationship between the UWB identification information and the device identification information of the target device, the method further includes: When a second trigger operation is received, obtaining the UWB identification information through an ultra-wideband (UWB) method; querying the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation; The first operation command is sent to the target device according to the device identification information.
9. The method according to claim 8, characterized in that When the second trigger operation is received, before obtaining the UWB identification information in an ultra-wideband (UWB) manner, the method further includes: receiving a first association operation; According to the first associating operation, an associating relationship between the second triggering operation and the first operation command is established.
10. The method according to claim 8 or 9, characterized in that The querying of the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation includes: Acquire second UWB measurement information between the configuration device and the target device; When the second UWB measurement information satisfies a second condition, the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation are queried.
11. The method according to claim 10, characterized in that The second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
12. The method according to claim 11, characterized in that The second condition includes at least one of the following conditions: When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within a second angle interval; When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within a second distance interval; 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 range.
13. The method according to claim 3, characterized in that After establishing an association relationship between the UWB identification information and the device identification information of the target device, the method further includes: Acquire the UWB identification information and the third distance information between the configuration device and the target device by using an ultra-wideband (UWB) method; querying 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; The second operation command is sent to the target device according to the device identification information.
14. The method according to claim 13, characterized in that Before obtaining the UWB identification information and the third distance information between the configuration device and the target device in an ultra-wideband UWB manner, the method further includes: receiving a second association operation; According to the second associating operation, an association relationship is established between the distance indicated by the third distance information and the second operation command.
15. The method according to claim 13 or 14, characterized in that The querying of 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: Acquiring third UWB measurement information between the configuration device and the target device; When the third UWB measurement information satisfies a 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.
16. The method according to claim 15, characterized in that The third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
17. The method according to claim 16, characterized in that The third condition includes at least one of the following conditions: 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; 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; 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 range.
18. The method according to any one of claims 1 to 17, characterized in that: The UWB identification information is the UWB tag identification information of the UWB tag external to the device; or, The UWB identification information is UWB component identification information of a UWB component built into the device.
19. A device discovery method, characterized in that: The method is executed by a target device, and includes: The 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 to obtain the device information of the target device.
20. The method according to claim 19, characterized in that Before sending the UWB identification information to the configuration device in an ultra-wideband (UWB) manner, the method further includes: The device information of the target device is mapped to the UWB identification information.
21. The method according to claim 19 or 20, characterized in that The UWB identification information is the UWB tag identification information of the UWB tag external to the device; or, The UWB identification information is UWB component identification information of a UWB component built into the device.
22. A device discovery apparatus, characterized in that: The device comprises: An information acquisition module is used to obtain the UWB identification information of the target device through an ultra-wideband UWB method; The parsing module is used to parse the UWB identification information to obtain the device information of the target device.
23. The device according to claim 22, characterized in that The device further comprises: A configuration module is used to configure the target device according to the device information of the target device.
24. The device according to claim 23, characterized in that The device further comprises: The first establishing module is configured to establish an association relationship between the UWB identification information and the device identification information of the target device.
25. The device according to any one of claims 22 to 24, characterized in that The parsing module is used to: Acquire first UWB measurement information between the configuration device and the target device; When the first UWB measurement information meets a first condition, the UWB identification information is parsed to obtain device information of the target device.
26. The device according to claim 25, characterized in that The first UWB measurement information includes at least one of first angle information, first distance information, and first signal strength information.
27. The device according to claim 26, characterized in that The first condition includes at least one of the following conditions: When the first UWB measurement information includes the first angle information, the angle indicated by the first angle information is within a first angle interval; 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; 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.
28. The device according to any one of claims 22 to 27, characterized in that The information acquisition module is configured to acquire the UWB identification information via an ultra-wideband (UWB) method when a first trigger operation is received.
29. The device according to claim 24, characterized in that The information acquisition module is further configured to, after the first establishment module establishes the association relationship between the UWB identification information and the device identification information of the target device, acquire the UWB identification information via an ultra-wideband (UWB) method upon receiving a second trigger operation; The device further comprises: a first query module, configured to query the device identification information associated with the UWB identification information and a first operation command associated with the second trigger operation; A first sending module is configured to send the first operation command to the target device according to the device identification information.
30. The device according to claim 29, characterized in that The device further comprises: A first operation receiving module is configured to receive a first association operation before the information acquisition module acquires the UWB identification information in an ultra-wideband (UWB) manner when receiving the second trigger operation; The second establishing module is used to establish an association relationship between the second triggering operation and the first operation command according to the first association operation.
31. The device according to claim 29 or 30, characterized in that The first query module is used to: Acquire second UWB measurement information between the configuration device and the target device; When the second UWB measurement information satisfies a second condition, the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation are queried.
32. The device according to claim 31, characterized in that The second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
33. The device according to claim 32, characterized in that The second condition includes at least one of the following conditions: When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within a second angle interval; When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within a second distance interval; 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 range.
34. The device according to claim 24, characterized in that The information acquisition module is further configured to acquire the UWB identification information and the third distance information between the configuration device and the target device through an ultra-wideband (UWB) method after the first establishment module establishes the association relationship between the UWB identification information and the device identification information of the target device; The device further comprises: a second query module, configured to 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; The second sending module is configured to send the second operation command to the target device according to the device identification information.
35. The device according to claim 34, characterized in that The device further comprises: A second operation receiving module is configured to receive a second association operation before the information acquiring module acquires the UWB identification information and the third distance information between the configuration device and the target device in an ultra-wideband UWB manner; The third establishing module is configured to establish an association relationship between the distance indicated by the third distance information and the second operation command according to the second association operation.
36. The device according to claim 34 or 35, characterized in that The second query module is used to: Acquiring third UWB measurement information between the configuration device and the target device; When the third UWB measurement information satisfies a 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.
37. The device according to claim 36, characterized in that The third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
38. The device according to claim 37, characterized in that The third condition includes at least one of the following conditions: 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; 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; 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 range.
39. The device according to any one of claims 22 to 38, characterized in that The UWB identification information is the UWB tag identification information of the UWB tag external to the device; or, The UWB identification information is UWB component identification information of a UWB component built into the device.
40. A device discovery apparatus, characterized in that: The device comprises: The sending module is used 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 the device information of the target device.
41. The device according to claim 40, characterized in that The device further comprises: The mapping module is configured to map the device information of the target device into the UWB identification information before the sending module sends the UWB identification information to the configuration device in an ultra-wideband UWB manner.
42. The device according to claim 40 or 41, characterized in that The UWB identification information is the UWB tag identification information of the UWB tag external to the device; or, The UWB identification information is UWB component identification information of a UWB component built into the device.
43. A device control method, characterized in that: The method is performed by a configuration device, and the method further includes: Establishing an association relationship between the UWB identification information of the target device and the device identification information of the target device; The target device is controlled according to the association relationship between the UWB identification information of the target device and the device identification information of the target device.
44. The method according to claim 43, wherein The controlling 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 includes: When a second trigger operation is received, obtaining the UWB identification information via a UWB manner; querying the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation; The first operation command is sent to the target device according to the device identification information.
45. The method according to claim 44, wherein When the second trigger operation is received, before obtaining the UWB identification information in a UWB manner, the method further includes: receiving a first association operation; According to the first associating operation, an associating relationship between the second triggering operation and the first operation command is established.
46. The method according to claim 44 or 45, characterized in that The querying of the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation includes: Acquire second UWB measurement information between the configuration device and the target device; When the second UWB measurement information satisfies a second condition, the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation are queried.
47. The method according to claim 46, wherein The second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
48. The method according to claim 47, wherein The second condition includes at least one of the following conditions: When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within a second angle interval; When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within a second distance interval; 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 range.
49. The method according to claim 43, wherein The controlling 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 includes: Acquire the UWB identification information and the third distance information between the configuration device and the target device in a UWB manner; querying 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; The second operation command is sent to the target device according to the device identification information.
50. The method according to claim 49, wherein Before obtaining the UWB identification information and the third distance information between the configuration device and the target device in an ultra-wideband UWB manner, the method further includes: receiving a second association operation; According to the second associating operation, an association relationship is established between the distance indicated by the third distance information and the second operation command.
51. The method according to claim 49 or 50, characterized in that The querying of 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: Acquiring third UWB measurement information between the configuration device and the target device; When the third UWB measurement information satisfies a 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.
52. The method according to claim 51, characterized in that The third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
53. The method according to claim 52, characterized in that The third condition includes at least one of the following conditions: 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; 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; 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 range.
54. The method according to any one of claims 43 to 53, characterized in that The UWB identification information is the UWB tag identification information of the UWB tag external to the device; or, The UWB identification information is UWB component identification information of a UWB component built into the device.
55. A device control device, characterized in that: The device comprises: A first establishing module is used to establish an association relationship between the UWB identification information of the target device and the device identification information of the target device; The control module 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.
56. The device according to claim 55, characterized in that The control module is used to: When a second trigger operation is received, obtaining the UWB identification information via a UWB manner; querying the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation; The first operation command is sent to the target device according to the device identification information.
57. The device according to claim 56, characterized in that The device further comprises: A first operation receiving module is configured to receive a first association operation before the control module obtains the UWB identification information in a UWB manner when the control module receives the second trigger operation; The second establishing module is used to establish an association relationship between the second triggering operation and the first operation command according to the first association operation.
58. The device according to claim 56 or 57, characterized in that The control module is used to: Acquire second UWB measurement information between the configuration device and the target device; When the second UWB measurement information satisfies a second condition, the device identification information associated with the UWB identification information and the first operation command associated with the second triggering operation are queried.
59. The device according to claim 58, characterized in that The second UWB measurement information includes at least one of second angle information, second distance information, and second signal strength information.
60. The device according to claim 59, characterized in that The second condition includes at least one of the following conditions: When the second UWB measurement information includes the second angle information, the angle indicated by the second angle information is within a second angle interval; When the second UWB measurement information includes the second distance information, the distance indicated by the second distance information is within a second distance interval; 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 range.
61. The device according to claim 55, characterized in that The control module is used to: Acquire the UWB identification information and the third distance information between the configuration device and the target device in a UWB manner; querying 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; The second operation command is sent to the target device according to the device identification information.
62. The device according to claim 61, characterized in that The device further comprises: A second operation receiving module is configured to receive a second association operation before the control module obtains the UWB identification information and the third distance information between the configuration device and the target device in an ultra-wideband UWB manner; The third establishing module is configured to establish an association relationship between the distance indicated by the third distance information and the second operation command according to the second association operation.
63. The device according to claim 61 or 62, characterized in that The control module is used to: Acquiring third UWB measurement information between the configuration device and the target device; When the third UWB measurement information satisfies a 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.
64. The device according to claim 63, characterized in that The third UWB measurement information includes at least one of third angle information, the third distance information, and the third signal strength information.
65. The device according to claim 64, characterized in that The third condition includes at least one of the following conditions: 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; 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; 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 range.
66. The device according to any one of claims 55 to 65, characterized in that The UWB identification information is the UWB tag identification information of the UWB tag external to the device; or, The UWB identification information is UWB component identification information of a UWB component built into the device.
67. A computer device, characterized in that The computer device includes a processor, a memory and a transceiver; A computer program is stored in the memory, and the processor executes the computer program so that the computer device implements the device discovery method as shown in any one of claims 1 to 21 above, or the device control method as shown in any one of claims 43 to 54 above.
68. A computer-readable storage medium, characterized in that The storage medium stores a computer program, which is used to be executed by a processor to implement the device discovery method as shown in any one of claims 1 to 21, or the device control method as shown in any one of claims 43 to 54 above.
69. A chip, characterized in that The chip is used to run in a computer device so that the computer device executes the device discovery method as shown in any one of claims 1 to 21, or the device control method as shown in any one of claims 43 to 54 above.
70. A computer program product, characterized in that The computer program product includes computer instructions, which 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 executes the computer instructions, so that the computer device performs the device discovery method as shown in any one of claims 1 to 21, or the device control method as shown in any one of claims 43 to 54 above.
71. A computer program, characterized in that The computer program is executed by a processor of a computer device to implement the device discovery method as shown in any one of claims 1 to 21, or the device control method as shown in any one of claims 43 to 54 above.
