Device searching method and electronic device

By acquiring user trajectory quality and guiding user movement, the problem of being unable to locate electronic devices in abnormal scenarios is solved, achieving accurate positioning in weak signal or strong interference environments and improving user experience.

CN120547536BActive Publication Date: 2026-04-14HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2024-07-29
Publication Date
2026-04-14

AI Technical Summary

Technical Problem

In abnormal scenarios, existing technologies cannot effectively locate electronic devices using UWB and AR signals, making it difficult for users to find them.

Method used

By acquiring the quality of the user's trajectory, the system guides the user's movement and uses the directional angle and movement direction guidance under preset conditions to achieve precise positioning.

Benefits of technology

In environments with weak signals or strong interference, it can accurately locate electronic devices, improving the user's device finding experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120547536B_ABST
    Figure CN120547536B_ABST
Patent Text Reader

Abstract

The application provides a device searching method and an electronic device, and relates to the technical field of terminals. The application can guide a user to move, obtain a user track meeting a quality requirement, and thus quickly find a required device. The method comprises the following steps: in response to a first operation of the user indicating to search for a second electronic device, obtaining a user track quality, the user track quality being used for measuring a direction angle reliability. In the case that the user track quality meets a preset condition, a first direction angle is displayed, the first direction angle being directed to the second electronic device. In the case that the user track quality does not meet the preset condition, a motion direction guide is displayed, the motion direction guide being used for instructing the user to move in a direction in which the direction angle reliability is less than a preset threshold.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application. The original application has the application number 202411028680.8 and the original application date is July 29, 2024. The entire contents of the original application are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to a device discovery method and an electronic device. Background Technology

[0003] With the development of terminal technology, users are using an increasing number of electronic devices, making it more difficult for them to find their devices. Currently, device search applications can help users locate other electronic devices. For example, after logging into a device search application on their mobile phone, users can use the application to find their watches, bracelets, smart glasses, and other electronic devices, preventing them from being lost.

[0004] Mobile phones use ultra-wideband (UWB) and augmented reality (AR) technologies to locate other devices. However, because UWB signals have weak penetration capabilities, AR signals may fail in certain scenarios, such as those with repetitive textures or in low-light conditions. Therefore, in some abnormal scenarios, mobile phones may be unable to locate other devices using either UWB or AR signals. Summary of the Invention

[0005] To address the aforementioned technical problems, this application provides a device locator method and an electronic device. The technical solution provided by this application can quickly locate the required device by guiding user movement to obtain the user's trajectory that meets quality requirements.

[0006] To achieve the above-mentioned technical objectives, this application provides the following technical solution:

[0007] In a first aspect, a device location method is provided, applied to a first electronic device. The method includes: responding to a user's instruction to locate a second electronic device, acquiring user trajectory quality, which is used to measure orientation angle reliability. If the user trajectory quality meets preset conditions, displaying a first orientation angle pointing to the second electronic device. If the user trajectory quality does not meet preset conditions, displaying a movement direction indicator to instruct the user to move in a direction where the orientation angle reliability is less than a preset threshold.

[0008] In this way, the first electronic device guides the user to find the device by the quality of the user's trajectory. It can also achieve accurate positioning in scenarios with weak signals or strong interference, meet the user's device search needs, and improve the user experience.

[0009] According to the first aspect, the preset conditions include that the reliability of the direction angle in all preset directions is greater than or equal to the preset threshold.

[0010] Optionally, the preset directions are, for example, multiple directions within a 360-degree radius around the first electronic device, divided by a preset unit angle. For instance, if the preset unit angle is 10 degrees, the preset directions include 36 directions corresponding to the 0-360 degree radius around the first electronic device after being divided into 10-degree intervals. Alternatively, if the preset unit angle is 45 degrees, the preset directions include 8 directions corresponding to 0 degrees, 45 degrees, 90 degrees, 135 degrees, 180 degrees, 225 degrees, 270 degrees, and 315 degrees around the first electronic device.

[0011] Thus, when the reliability of the orientation angle in all preset directions is greater than or equal to the preset threshold, the first electronic device can obtain the user trajectory with satisfactory quality, thereby achieving accurate acquisition of the position of the second electronic device.

[0012] According to the first aspect, or any implementation of the first aspect above, in response to a user instruction to locate a second electronic device, obtaining user trajectory quality includes: in response to the user instruction to locate a second electronic device, obtaining first ranging data and first trajectory data; and obtaining user trajectory quality based on the first ranging data and the first trajectory data.

[0013] The first ranging data is the distance between the first electronic device and the second electronic device. In some examples, a short-range communication connection is established between the first electronic device and the second electronic device. Optionally, the short-range communication connection is a satellite connection or a Bluetooth connection. In some examples, the first electronic device acquires the first ranging data through the short-range communication connection, and subsequently, the first electronic device obtains the user trajectory quality based on the first ranging data.

[0014] The first trajectory data refers to the trajectory data of the movement of the first electronic device. For example, the first electronic device acquires image data through a camera, inputs the image data into the augmented reality module, and outputs the augmented reality data as the first trajectory data.

[0015] Optionally, the first electronic device obtains the user trajectory quality through the first ranging data and the first trajectory data, thereby enabling the accurate positioning of the second electronic device through a preset algorithm, such as the particle swarm algorithm.

[0016] According to the first aspect, or any implementation of the first aspect above, in response to a user instruction to locate a second electronic device, a first operation of acquiring first ranging data and first trajectory data is performed, including: in a first scenario, acquiring first trajectory data through first detection data from a first sensor.

[0017] According to the first aspect, or any implementation of the first aspect above, in response to a user instruction to locate a second electronic device, the first ranging data and the first trajectory data are acquired, including: after changing from a first scene to a second scene, acquiring second trajectory data through second detection data from a second sensor, wherein the second scene is an abnormal state scene corresponding to the first sensor, and the first scene is a normal state scene corresponding to the first sensor; after changing from the second scene to the first scene, acquiring third trajectory data through third detection data from the first sensor; and concatenating the second and third trajectory data to acquire the first trajectory data.

[0018] In some embodiments, in augmented reality tracking failure scenarios (such as the second scenario), such as repetitive textures, dim lighting, or lens occlusion, the first electronic device cannot track the user's position using the augmented reality function, and therefore cannot output trajectory data through the augmented reality module. In non-augmented reality tracking failure scenarios (such as the first scenario), the first electronic device can obtain trajectory data through camera detection data. However, in augmented reality tracking failure scenarios (such as the second scenario), the first electronic device may need to rely on detection data from other sensors to obtain trajectory data.

[0019] Thus, even if augmented reality data fails, the first electronic device can still output trajectory data, continuously providing users with a device location experience and ensuring smooth operation. Furthermore, the first electronic device stitches together multiple trajectory data segments from different sources to obtain complete trajectory data during the device positioning process, achieving precise location of the second electronic device.

[0020] According to the first aspect, or any implementation thereof, in response to a user instruction to locate a second electronic device, acquiring first ranging data and first trajectory data includes: in a first scenario, during the process of acquiring the first trajectory data through a first sensor, acquiring the heading angle corresponding to the first trajectory data, and acquiring fourth trajectory data through a second sensor. The fourth trajectory data is then corrected using the heading angle.

[0021] Thus, in the first scenario, the first electronic device corrects the trajectory data corresponding to the detection data of other sensors by using the heading angle corresponding to the augmented reality data, ensuring that the trajectory data corresponding to the detection data of other sensors and the augmented reality data are in the same coordinate system, thereby guaranteeing the accuracy of the trajectory data corresponding to the detection data of other sensors. Subsequently, in the second scenario, the first electronic device can directly use the trajectory data corresponding to the detection data of other sensors to obtain the user's trajectory quality.

[0022] According to the first aspect, or any implementation of the first aspect above, the first sensor is a camera, the trajectory data corresponding to the first sensor is augmented reality data, and the second sensor is an orientation sensor and / or an acceleration sensor.

[0023] According to the first aspect, or any implementation of the first aspect above, the second sensor is a sensor in the first electronic device, or a sensor in a third electronic device connected to the first electronic device, wherein the third electronic device is an electronic device carried by the user.

[0024] In this way, the first electronic device can improve the accuracy of trajectory data acquisition by acquiring detection data from the second sensors of multiple electronic devices (including the first electronic device). Furthermore, even if the first electronic device is not equipped with a second sensor, or if the second sensor of the first electronic device cannot detect data, the first electronic device can still acquire detection data from the second sensors of other electronic devices, thus ensuring that trajectory data can be acquired.

[0025] According to the first aspect, or any implementation of the first aspect above, a short-range communication connection is established between the first electronic device and the second electronic device, and the user trajectory quality is determined based on the first ranging data obtained based on the short-range communication connection.

[0026] According to the first aspect, or any of the implementations of the first aspect above, the short-range communication connection is a StarFlash connection or a Bluetooth connection.

[0027] According to the first aspect, or any implementation thereof, in response to a user instruction to locate the second electronic device, acquiring user trajectory quality includes: in response to the first operation, acquiring location information of the second electronic device; displaying a first identifier corresponding to the location of the first electronic device, and a second identifier corresponding to the location information; establishing a short-range communication connection with the second electronic device after the first electronic device moves to a preset range near the second electronic device; and in response to a user instruction to accurately locate the second electronic device, acquiring user trajectory quality through the short-range communication connection.

[0028] According to the first aspect, or any implementation of the first aspect above, before acquiring the user trajectory quality in response to the first operation of locating the second electronic device indicated by the user, the method further includes: establishing a short-range communication connection with the second electronic device, wherein the first electronic device is located within a preset range near the second electronic device. Acquiring the user trajectory quality in response to the user operation of locating the second electronic device includes: acquiring the user trajectory quality via the short-range communication connection in response to the first operation of accurately locating the second electronic device indicated by the user.

[0029] Thus, the display of the first and second identifiers helps users understand the distance to the second electronic device. Furthermore, when the distance to the second electronic device is close, the first electronic device can proactively establish a short-range communication connection to acquire ranging data to assess the quality of the user's trajectory. In addition, the first electronic device responds to user actions, triggering precise searches, such as acquiring ranging and trajectory data to assess the quality of the user's trajectory, thereby ensuring that the search process of the second electronic device meets the user's needs.

[0030] According to the first aspect, or any implementation of the first aspect above, after obtaining the user trajectory quality in response to the first operation of locating the second electronic device indicated by the user, the method further includes: displaying the distance between the user and the second electronic device.

[0031] In this way, by displaying the distance, users can understand how far they are from their current location and the second electronic device. This distance can be determined based on the first ranging data.

[0032] Secondly, a first electronic device is provided. The first electronic device includes a processor, a memory, and a display screen, the memory and display screen being coupled to the processor. The memory stores computer program code, which includes computer instructions. When the processor reads the computer instructions from the memory, the first electronic device performs the following: responding to a user instruction to locate a second electronic device, it acquires user trajectory quality, which is used to measure the reliability of the orientation angle. If the user trajectory quality meets preset conditions, it displays a first orientation angle pointing to the second electronic device. If the user trajectory quality does not meet preset conditions, it displays a motion direction indicator, which instructs the user to move in a direction where the orientation angle reliability is less than a preset threshold.

[0033] According to the second aspect, the preset conditions include that the reliability of the direction angle in all preset directions is greater than or equal to the preset threshold.

[0034] According to the second aspect, or any implementation thereof, in response to a first operation of locating a second electronic device indicated by a user, obtaining user trajectory quality includes: in response to the first operation of locating a second electronic device indicated by a user, obtaining first ranging data and first trajectory data; and obtaining user trajectory quality based on the first ranging data and the first trajectory data.

[0035] According to the second aspect, or any implementation of the second aspect above, in response to a user instruction to locate a second electronic device, a first operation of acquiring first ranging data and first trajectory data is performed, including: in a first scenario, acquiring first trajectory data through first detection data from a first sensor.

[0036] According to the second aspect, or any implementation thereof, in response to a user instruction to locate a second electronic device, the first operation of acquiring first ranging data and first trajectory data includes: after changing from a first scene to a second scene, acquiring second trajectory data through second detection data from a second sensor, wherein the second scene is an abnormal state scene corresponding to the first sensor, and the first scene is a normal state scene corresponding to the first sensor; after changing from the second scene to the first scene, acquiring third trajectory data through third detection data from the first sensor; and concatenating the second and third trajectory data to acquire the first trajectory data.

[0037] According to the second aspect, or any implementation thereof, in response to a user instruction to locate a second electronic device, the first operation of acquiring first ranging data and first trajectory data includes: in a first scenario, during the process of acquiring the first trajectory data through a first sensor, acquiring the heading angle corresponding to the first trajectory data, and acquiring fourth trajectory data through a second sensor. The fourth trajectory data is then corrected using the heading angle.

[0038] According to the second aspect, or any implementation of the second aspect above, the first sensor is a camera, the trajectory data corresponding to the first sensor is augmented reality data, and the second sensor is a direction sensor and / or an acceleration sensor.

[0039] According to the second aspect, or any implementation of the second aspect above, the second sensor is a sensor in the first electronic device, or a sensor in a third electronic device connected to the first electronic device, wherein the third electronic device is an electronic device carried by the user.

[0040] According to the second aspect, or any implementation of the second aspect above, a short-range communication connection is established between the first electronic device and the second electronic device, and the user trajectory quality is determined based on the first ranging data obtained based on the short-range communication connection.

[0041] According to the second aspect, or any implementation of the second aspect above, the short-range communication connection is a StarFlash connection or a Bluetooth connection.

[0042] According to the second aspect, or any implementation thereof, in response to a first operation of locating a second electronic device indicated by a user, acquiring user trajectory quality includes: in response to the first operation, acquiring location information of the second electronic device; displaying a first identifier corresponding to the location of the first electronic device, and a second identifier corresponding to the location information; establishing a short-range communication connection with the second electronic device after the first electronic device moves to a preset range near the second electronic device; and acquiring user trajectory quality through the short-range communication connection in response to a second operation of accurately locating the second electronic device indicated by a user.

[0043] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from memory, it further causes the first electronic device to perform: establishing a short-range communication connection with the second electronic device, wherein the first electronic device is located within a preset range near the second electronic device. In response to a user instruction to locate the second electronic device, acquiring user trajectory quality includes: in response to a first operation of accurately locating the second electronic device via a user instruction, acquiring user trajectory quality through the short-range communication connection.

[0044] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from memory, it also causes the first electronic device to execute: display the distance between itself and the second electronic device.

[0045] Thirdly, an electronic device is provided, which has the function of implementing the device search method as described in the first aspect and any of its possible implementations. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described function.

[0046] Fourthly, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any embodiment of the first aspect.

[0047] Fifthly, a computer program product is provided that, when run on an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.

[0048] In a sixth aspect, a circuit system is provided, the circuit system including processing circuitry configured to perform the method of the first aspect or any embodiment of the first aspect.

[0049] In a seventh aspect, a chip system is provided, including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor performs the method of the first aspect or any embodiment of the first aspect.

[0050] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description

[0051] Figure 1 This is a schematic diagram of a triangulation scenario provided in an embodiment of this application;

[0052] Figure 2 A schematic diagram of the communication system used in the device discovery method provided in the embodiments of this application;

[0053] Figure 3 A schematic diagram of the hardware structure of the first electronic device provided in an embodiment of this application;

[0054] Figure 4 Interface illustration provided for embodiments of this application Figure 1 ;

[0055] Figure 5 Schematic flowchart of the device search method provided in the embodiments of this application Figure 1 ;

[0056] Figure 6 Schematic flowchart of the ranging data acquisition method provided in the embodiments of this application Figure 1 ;

[0057] Figure 7 Schematic flowchart of the ranging data acquisition method provided in the embodiments of this application Figure 2 ;

[0058] Figure 8 This is a schematic diagram of user trajectory quality provided in an embodiment of this application;

[0059] Figure 9 Interface illustration provided for embodiments of this application Figure 2 ;

[0060] Figure 10 Interface illustration provided for embodiments of this application Figure 3 ;

[0061] Figure 11 This is a schematic diagram of an AR data failure scenario provided in an embodiment of this application;

[0062] Figure 12 This is a schematic diagram of the trajectory data acquisition method provided in the embodiments of this application;

[0063] Figure 13 This is a schematic diagram illustrating the sensor data acquisition source provided in the embodiments of this application;

[0064] Figure 14 This is a schematic diagram of a trajectory data stitching scenario provided in an embodiment of this application;

[0065] Figure 15 Schematic flowchart of the device search method provided in the embodiments of this application Figure 2 ;

[0066] Figure 16 Schematic diagram of the structure of the first electronic device provided in the embodiments of this application Figure 1 ;

[0067] Figure 17 Schematic diagram of the structure of the first electronic device provided in the embodiments of this application Figure 2 . Detailed Implementation

[0068] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one or more (including two).

[0069] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0070] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0071] In some embodiments, when a user owns multiple electronic devices, a second electronic device can be located through a first electronic device to prevent the second electronic device from being lost.

[0072] For example, such as Figure 1As shown, the user can use the ultra-wideband (UWB) ranging function of the first electronic device to measure the distance between the first electronic device and the second electronic device currently being searched, for example, 10 meters. Furthermore, as the user moves from location A to location B, the first electronic device can measure its movement distance using augmented reality (AR) technology, for example, 4 meters. The first electronic device can also determine the coordinates of location A, such as (0,0), and the coordinates of location B, such as (0,-4). Additionally, when the first electronic device is at location B, it can also measure the distance between the first and second electronic devices as 16 meters using UWB ranging. Then, using a triangulation algorithm, the first electronic device can calculate the coordinates of the second electronic device at location C, thus locating the second electronic device and indicating its relative position to the user. For example, the first electronic device can guide the user to find the second electronic device by displaying a directional angle pointing in the direction of its location.

[0073] In scenarios with weak signals or strong interference, the first electronic device, based on UWB signals, cannot display the correct orientation angle or does not display the orientation angle at all, thus failing to effectively guide the user's direction. Furthermore, in scenarios where AR tracking fails, such as repetitive textures, dim lighting, or lens occlusion, the first electronic device cannot track the user's position using AR functions, resulting in the inability to provide the correct orientation angle.

[0074] In other words, in some abnormal scenarios, the first electronic device may be unable to locate the second electronic device using UWB and AR signals, affecting the user's experience.

[0075] Therefore, this application provides a device location method that can quickly locate the device by guiding the user's movement to obtain a user trajectory that meets quality requirements. In abnormal scenarios, the first electronic device can also locate the second electronic device based on the high-quality user trajectory, preventing device loss.

[0076] Figure 2 A schematic diagram of the communication system used in the device discovery method provided in this application embodiment. For example... Figure 2 As shown, the communication system includes a first electronic device 100 and a second electronic device 200.

[0077] Optionally, the first electronic device 100 or the second electronic device 200 may be, for example, a mobile phone, tablet computer, wearable device (such as a smartwatch, smart bracelet, smart glasses, headphones, etc.), laptop computer, computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), artificial intelligence (AI) device, or other terminal device. The operating system installed on the first electronic device 100 or the second electronic device 200 may include, but is not limited to, […]. Alternatively, other operating systems may be used. This application does not limit the specific type of the first electronic device 100 or the second electronic device 200, or the operating system installed thereon.

[0078] Optionally, the first electronic device 100 and the second electronic device 200 in the embodiments of this application can be implemented by different devices. Different devices can have the same, similar, or somewhat different hardware structures, for example... Figure 3 The hardware structure shown.

[0079] For example, the first electronic device 100 has such Figure 3 Taking the hardware structure shown as an example, for Figure 3 The hardware structure shown will be explained.

[0080] like Figure 3 As shown, the first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0081] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0082] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, GPU, ISP, controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.

[0083] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0084] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0085] The wireless communication function of the first electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0086] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0087] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the first electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0088] The wireless communication module 160 can provide solutions for wireless communication applications on the first electronic device 100, including SparkLink low energy (SLE), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0089] In some embodiments, the first electronic device 100 and the second electronic device 200 establish an SLE connection (e.g., simply described as a star-flash connection). Based on this SLE connection, the first electronic device 100 can perform high-accuracy distance measurement (HADM) to acquire HADM data between itself and the second electronic device 200. Subsequently, the first electronic device 100 uses this HADM data to locate the second electronic device 200.

[0090] The first electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0091] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the first electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0092] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the first electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0093] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0094] A touch sensor, also known as a "touch device," can be located on the display screen 194. The touch sensor and the display screen 194 together form a touchscreen, also known as a "touchscreen." The touch sensor detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor may also be located on the surface of the first electronic device 100, in a different position than the display screen 194.

[0095] In some embodiments, the first electronic device 100 acquires image data of the user's movement via the camera 193, and obtains AR data based on the image data. This AR data is used to represent the user's movement trajectory. In some examples, the first electronic device 100 can locate the position of the second electronic device 200 based on the AR data and the HADM data obtained based on the SLE connection. Thus, the first electronic device 100 can display the azimuth angle pointing to the second electronic device 200 and the distance to the second electronic device 200 on the display screen 194, helping the user locate the second electronic device 200.

[0096] The device search method provided in the embodiments of this application will be described in detail below.

[0097] In some embodiments, the first electronic device 100 is equipped with a search device application, through which the first electronic device 100 can locate the second electronic device 200. Optionally, the second electronic device 200 is an electronic device that meets any of the following conditions: it is logged into the same system account as the first electronic device 100, it is logged into the same management device application (such as a smart living application) account as the first electronic device 100, it has established a communication connection with the first electronic device 100, or it is connected to the same local area network as the first electronic device 100.

[0098] For example, such as Figure 4 As shown in (a), during the process of displaying the desktop, the first electronic device 100 detects the user's operation on the find-a-device application icon 41 and launches the find-a-device application. This find-a-device application is used to help the user find other devices (or described as devices), such as the user's mobile phone, watch, smart glasses, etc. Alternatively, the user can also instruct the first electronic device 100 to launch the find-a-device application through other means. Figure 4As shown in (b), the first electronic device 100 displays information about other electronic devices found in the application search device interface via a pop-up window 42, and marks the location of these other electronic devices on the map interface, such as indicating the location of the currently found mobile phone via a marker 43. The other electronic devices displayed by the first electronic device 100 are, for example, devices that meet the above conditions. Then, in response to the user's operation of selecting a device from the searched other devices, the second electronic device 200 indicated by the user is obtained. For example, in the current example scenario, the first electronic device 100 only finds mobile phones among the other devices. In response to the user's operation of selecting "My Mobile Phone" in the pop-up window 42, the first electronic device 100 determines that the mobile phone is the second electronic device 200 to be found. Figure 4 As shown in (c), the first electronic device 100 can display the location information of the second electronic device 200, which is the approximate location of the second electronic device 200, such as the neighborhood and floor where the second electronic device is located. It can be seen that the location range indicated by this location information is relatively broad. Based on this location information, the user can only reach the vicinity of the second electronic device 200 and may not be able to actually find the second electronic device 200.

[0099] Optionally, the location information of the second electronic device 200 can only be obtained by the locator application of the first electronic device 100 after the second electronic device 200 reports its own location. If the second electronic device 200 does not report its own location, the first electronic device 100 cannot obtain its location information. Optionally, the second electronic device 200 may enable the function of automatically reporting its location, or the second electronic device 200 may report its own location in response to the operation of other users (such as the user who picked up the second electronic device 200).

[0100] Optionally, the locator application is configured with navigation functionality to help the user reach the vicinity of the second electronic device 200. For example, such as... Figure 4 As shown in (c), in response to a user's operation on the navigation control 44, the first electronic device 100 triggers a navigation process. Figure 4 As shown in (d), the first electronic device 100 displays a directional marker 45 pointing to marker 43. Marker 43 indicates the position corresponding to the position information of the second electronic device 200, and directional marker 45 indicates the user's current position. This directional marker moves with the user and points to the position of the second electronic device 200. In this way, the user can move to a position near the second electronic device 200 by judging the relative positional relationship between directional marker 45 and marker 43. For example, in this case, the first electronic device 100 displays as shown... Figure 4 The interface shown in (e) is shown in the middle.

[0101] Optionally, if the location information of the second electronic device 200 cannot be obtained by the search device application of the first electronic device 100, the first electronic device 100 cannot perform the following actions: Figure 4 The scenarios shown in (c)-(d) are examples. Some examples, such as... Figure 4 The scenarios shown in (c)-(d) are optional.

[0102] In some embodiments, the first electronic device 100 may detect that a user has arrived near the second electronic device 200 and trigger a precise search function to help the user obtain the accurate location of the second electronic device 200.

[0103] In some examples, the first electronic device 100 arrives at a location near the second electronic device 200, where the location indicates that the first electronic device 100 has reached a position where a short-range communication connection can be established with the second electronic device 200. This short-range communication connection could be, for example, a Bluetooth Low Energy (BLE) connection or an SLE connection.

[0104] Optionally, the first electronic device 100 may have established a short-range communication connection with the second electronic device 200, such as a BLE connection or an SLE connection, before locating the second electronic device 200. Then, upon reaching a location near the second electronic device 200, the first electronic device 100 can automatically trigger the establishment of this short-range communication connection. Subsequently, in response to user operation, the first electronic device 100 can trigger the precise location of the second electronic device 200 based on this short-range communication connection.

[0105] For example, after the first electronic device 100 reaches a location near the second electronic device 200 and triggers the establishment of a short-range communication connection with the second electronic device 200, the following is displayed: Figure 4 The interface shown in (e) is then activated by the user's operation on the precise search control 46, prompting the first electronic device 100 to initiate the precise search function. For example, as shown in (e) Figure 4 As shown in (f), the first electronic device 100 displays a precise search interface, in which the first electronic device 100 can show that it has established a connection with the second electronic device 200 and prompt the user with the location status of the second electronic device 200.

[0106] Among them, as mentioned above, Figure 4 The scenarios shown in (c)-(d) are optional. For example, as... Figure 4 As shown in (b), in response to the user selecting "My Phone" in pop-up window 42, the first electronic device 100 determines that the second electronic device 200 (such as a mobile phone) is nearby, and a short-range communication connection can be established, and displays as shown in (b). Figure 4The interface shown in (e) is as follows. In response to the user's operation on the precise search control 46, the first electronic device 100 triggers the precise search process, displaying the following... Figure 4 The interface shown in (f) is shown in the middle.

[0107] Optionally, such as Figure 4 The scenario shown in (e) can also be an optional scenario. For example, such as Figure 4 As shown in (b), in response to the user selecting "My Phone" in pop-up window 42, the first electronic device 100 determines that the second electronic device 200 (such as a mobile phone) is nearby and a short-range communication connection can be established. Afterwards, the first electronic device 100 can directly trigger a precise search process, displaying... Figure 4 The interface shown in (f) is shown in the middle.

[0108] In some embodiments, the first electronic device 100 can acquire ranging data with the second electronic device 200 based on a short-range communication connection. Furthermore, the first electronic device 100 can acquire trajectory data generated by a user moving while carrying the first electronic device 100 by detecting data through sensors. Optionally, the ranging data may be, for example, HADM data acquired based on an SLE connection, or Bluetooth ranging data acquired based on a BLE connection. The trajectory data may be, for example, AR data acquired based on AR functionality, or distance data acquired based on an inertial measurement unit (IMU).

[0109] Optionally, the first electronic device 100 can obtain a relatively accurate azimuth angle pointing to the actual position of the second electronic device 200, as well as the distance between the first electronic device 100 and the second electronic device 200, based on the ranging data and trajectory data and through a preset algorithm.

[0110] The following describes in detail the process by which the first electronic device 100 accurately locates the second electronic device 200, using HADM data as the ranging data and AR data as the trajectory data. It should be understood that the first electronic device 100 can also obtain ranging data and trajectory data through other means. The process of locating the second electronic device 200 based on other types of ranging data and trajectory data can be found in the following embodiments, which will not be illustrated in detail in this application.

[0111] Figure 5 This is a schematic flowchart illustrating a device discovery method provided in an embodiment of this application. It should be noted that this method does not rely on... Figure 5 The specific order described below is a limitation. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0112] S501, the first electronic device 100 detects the user's instruction to locate the device.

[0113] In some embodiments, in response to a user instruction to locate a device, the first electronic device 100 triggers the search for the second electronic device 200.

[0114] Optionally, the user-instructed operation for finding a device may include, for example, selecting a second electronic device 200 to be found, or instructing the user to perform a precise search.

[0115] For example, such as Figure 4 As shown in (b), the first electronic device 100 detects the user's operation of selecting the second electronic device 200 in the pop-up window 42 and triggers the search for the second electronic device 200.

[0116] For example, such as Figure 4 As shown in (e), the first electronic device 100 detects the user's operation on the precise search control 46 and triggers the precise search of the second electronic device 200.

[0117] It should be understood that responding to user actions such as Figure 4 In the interface shown in (b), the first electronic device 100 can also directly trigger a precise search for the second electronic device 200. For example, in response to the user's selection of the second electronic device 200, the first electronic device 100 obtains that the second electronic device 200 is located near the first electronic device 100. Then, the first electronic device 100 can directly establish a short-range communication connection with the second electronic device 200 to trigger a precise search.

[0118] S502, the first electronic device 100 acquires distance measurement data between itself and the second electronic device 200.

[0119] In some embodiments, after the first electronic device 100 establishes a short-range communication connection with the second electronic device 200, ranging data between the two devices can be obtained based on the short-range communication connection.

[0120] Optionally, the ranging data is used to indicate distance information between the first electronic device 100 and the second electronic device 200. For example, the ranging data includes ranging values, ranging accuracy, and signal strength.

[0121] Optionally, the first electronic device 100 can be accessed via, for example... Figure 6 The method shown acquires ranging data between the device and the second electronic device 200. For example... Figure 6 As shown, the method includes the following steps.

[0122] S601, the search network of the first electronic device 100 sends a Bluetooth connection establishment instruction to the Bluetooth service of the first electronic device 100.

[0123] S602, the first electronic device 100 and the second electronic device 200 establish a Bluetooth connection through Bluetooth service.

[0124] In some embodiments, during the device search process, the first electronic device 100 searches for other electronic devices through a search network. In some examples, the Bluetooth service of the first electronic device 100 is enabled, and it has previously established a Bluetooth connection with the second electronic device 200. The Bluetooth service of the second electronic device 200 is also enabled, and it sends Bluetooth broadcasts. Therefore, after the first electronic device 100 finds the Bluetooth broadcast sent by the second electronic device 200 through the search network, it can establish a Bluetooth connection with the second electronic device 200 through the Bluetooth service.

[0125] For example, the lookup network of the first electronic device 100 obtains information about the second electronic device 200 based on the acquired Bluetooth broadcast. Then, the lookup network sends a Bluetooth connection establishment instruction to the Bluetooth service. In response to the Bluetooth connection establishment instruction, the Bluetooth service of the first electronic device 100 sends a Bluetooth connection establishment instruction to the Bluetooth service of the second electronic device 200 to trigger the establishment of a Bluetooth connection between the Bluetooth services of the second electronic device 200 and the Bluetooth service of the second electronic device 200.

[0126] S603, the search network of the second electronic device 200 sends device capability information to the search network of the first electronic device 100.

[0127] In some embodiments, after a Bluetooth connection is established, the first electronic device 100 and the second electronic device 200 can exchange information via the Bluetooth connection. For example, the second electronic device 200 sends device capability information to the first electronic device 100 via the Bluetooth connection.

[0128] Optionally, the device capability information may include information indicating whether StarFlash connection is supported, whether precise search is supported, etc.

[0129] S604, The search device of the first electronic device 100 performs the operation of accurately searching by obtaining user instructions.

[0130] Optionally, the user-instructed precise search operation may include, for example, the user's operation on the precise search control.

[0131] For example, such as Figure 4As shown in (d), during the movement of the first electronic device 100, the first electronic device 100 detects the second electronic device 200 and executes the above steps S601-S603, obtaining the device capability information of the second electronic device 200, and obtaining that the second electronic device 200 supports StarFlash connection and precise search. Then, the first electronic device 100 can display as follows: Figure 4 The interface shown in (e) is as follows. In response to the user's operation on the precise search control 46, the search device application of the first electronic device 100 can obtain the operation and trigger the subsequent precise search process.

[0132] S605, The search device of the first electronic device 100 initializes the augmented reality engine of the first electronic device 100.

[0133] In some embodiments, the first electronic device 100 uses AR data and HADM data to accurately locate the second electronic device 200. Then, in response to a user's instruction to perform a precise search, the search device application initiates an AR engine to trigger subsequent AR engine acquisition of AR data.

[0134] S606, The search device of the first electronic device 100 sends a precise search instruction to the precise search component of the first electronic device 100 through the search network of the first electronic device 100.

[0135] In some embodiments, in response to a user-instructed precise search operation, the search device application sends a precise search instruction to the precise search component to trigger the precise search process.

[0136] S607, the precise search component of the first electronic device 100 sends a Star Flash connection establishment instruction to the Star Flash service of the first electronic device 100.

[0137] In some embodiments, the first electronic device 100 uses AR data and HADM data to accurately locate the second electronic device 200. Then, in response to the accurate search instruction, the accurate search component sends a StarScan connection establishment instruction to the StarScan service to trigger the establishment of a StarScan connection and obtain HADM data.

[0138] Optionally, the StarScan connection establishment instruction carries a public key. This public key is used to ensure the security of subsequent StarScan connection establishment. Optionally, the lookup device application generates this public key and sends it to the precise lookup component.

[0139] Optionally, the search device application may also send the public key to the search network. Optionally, after obtaining the public key, the search network may send the public key to the second electronic device 200 via Bluetooth connection.

[0140] S608, the first electronic device 100 and the second electronic device 200 establish a StarScan connection through the StarScan service.

[0141] In some embodiments, the StarScan service of the first electronic device 100 triggers a StarScan connection process in response to a received StarScan connection establishment instruction.

[0142] Optionally, after obtaining the public key, the second electronic device 200 sends a StarScan broadcast via the StarScan service, carrying the public key in the broadcast. Correspondingly, the StarScan service of the first electronic device 100 can receive the broadcast and obtain the public key contained therein. After obtaining the public key, the StarScan service of the first electronic device 100 verifies the remotely obtained public key using a locally obtained public key. Upon successful verification, it can trigger the establishment of a StarScan connection with the second electronic device 200.

[0143] Optionally, the precise search component performs a public key verification process. For example, the precise search component obtains the public key sent by the local search device application and the remotely obtained public key reported by the StarSpot service. Then, the precise search component can verify the remotely obtained public key using the local public key.

[0144] Optionally, after successful public key verification, the precise lookup component can instruct the StarScan service to establish a StarScan connection with the StarScan service of the second electronic device 200. If the public key verification is successful, this StarScan connection is a secure connection.

[0145] S609, the precise search component of the first electronic device 100 sends an authentication instruction to the precise search component of the second electronic device 200.

[0146] The authentication instruction is used to request ranging permission and remotely verify whether the second electronic device 200 is a user-authorized device.

[0147] In some embodiments, the first electronic device 100 sends an authentication instruction to the second electronic device 200 via a precise lookup component. In response to this authentication instruction, the precise lookup component of the second electronic device 200 performs authentication to determine whether the current device has been authorized by the user for distance measurement, thereby ensuring device security. The precise lookup component of the second electronic device 200 may also send an authentication response to the first electronic device 100 to indicate the authentication result.

[0148] It should be understood that step S609 is an optional step.

[0149] S610, the precise search component of the first electronic device 100 sends a ranging start instruction to the star flash service of the first electronic device 100.

[0150] In some embodiments, after authentication is successful, the first electronic device 100 can trigger the Starlight Service to perform ranging and obtain HADM data via a ranging start instruction.

[0151] S611, the precise search component of the second electronic device 200 sends a ranging start instruction to the star flash service of the second electronic device 200.

[0152] In some embodiments, after authentication is successful, the second electronic device 200 can also trigger the Starlight Service to perform ranging and obtain HADM data via a ranging start instruction.

[0153] It should be understood that the embodiments of this application do not limit the execution order between steps S610 and S611.

[0154] S612, the Star Flash service of the first electronic device 100 sends ranging data to the precise search component of the first electronic device 100.

[0155] In some embodiments, the first electronic device 100 can acquire ranging data, such as HADM data, through a StarScan connection with the second electronic device 200. After acquiring the ranging data, the StarScan service can send it to the Precision Search component to trigger the Precision Search component to determine the quality of the current user's trajectory based on the ranging data.

[0156] Thus, the interaction between the first electronic device 100 and the second electronic device 200 via Bluetooth can trigger the establishment of a star-flash connection, thereby obtaining ranging data between the first electronic device 100 and the second electronic device 200 based on the star-flash connection.

[0157] In some embodiments, the first electronic device 100 and the second electronic device 200 have historically established a StarSignal connection and have stored relevant information about that StarSignal connection. Therefore, after scanning the second electronic device 200, the first electronic device 100 can directly trigger the establishment of a StarSignal connection with the second electronic device 200, without first establishing a Bluetooth connection and then establishing a StarSignal connection. Optionally, the first electronic device 100 can also... Figure 7 The method shown acquires ranging data between the device and the second electronic device 200. For example... Figure 7 As shown, the method includes the following steps.

[0158] S701, the search network of the first electronic device 100 sends a Star Flash connection establishment instruction to the Star Flash service of the first electronic device 100.

[0159] S702, the first electronic device 100 and the second electronic device 200 establish a StarScan connection through the StarScan service.

[0160] In some embodiments, during the device search process, the first electronic device 100 searches for other electronic devices through a search network. In some examples, the StarScan service of the first electronic device 100 is enabled and has previously established a StarScan connection with the second electronic device 200. The StarScan service of the second electronic device 200 is also enabled and sends StarScan broadcasts. Therefore, after the first electronic device 100 finds the StarScan broadcast sent by the second electronic device 200 through the search network, it can establish a StarScan connection with the second electronic device 200 through its StarScan service. For example, the search network of the first electronic device 100 sends a StarScan connection establishment instruction to the StarScan service. In response to this instruction, the StarScan service of the first electronic device 100 sends a StarScan connection establishment instruction to the StarScan service of the second electronic device 200, thereby triggering the establishment of a StarScan connection between the StarScan services of the second electronic device 200 and the StarScan service of the second electronic device 200.

[0161] S703, the search network of the second electronic device 200 sends device capability information to the search network of the first electronic device 100.

[0162] In some embodiments, after the Starlink connection is established, the first electronic device 100 and the second electronic device 200 can exchange information via the Starlink connection. For example, the second electronic device 200 sends device capability information to the first electronic device 100 through the Starlink connection.

[0163] Optionally, device capability information may include, for example, information indicating whether precise search is supported.

[0164] S704, the search device of the first electronic device 100 performs the operation of accurately searching by obtaining user instructions.

[0165] S705, The search device of the first electronic device 100 initializes the augmented reality engine of the first electronic device 100.

[0166] S706, The search device of the first electronic device 100 sends a precise search instruction to the precise search component of the first electronic device 100 through the search network of the first electronic device 100.

[0167] S707, the precise search component of the first electronic device 100 sends an authentication instruction to the precise search component of the second electronic device 200.

[0168] S708, the precise search component of the first electronic device 100 sends a ranging start instruction to the star flash service of the first electronic device 100.

[0169] S709, the precise search component of the second electronic device 200 sends a ranging start instruction to the star flash service of the second electronic device 200.

[0170] S710, the Star Flash service of the first electronic device 100 sends ranging data to the precision search component of the first electronic device 100.

[0171] Optionally, the content of steps S704-S706 can refer to the relevant content of steps S604-S606 above; the content of steps S707-S710 can refer to the relevant content of steps S609-S612 above, and will not be repeated in this embodiment of the application.

[0172] The above has been approved. Figure 6 or Figure 7 The flowchart shown describes the process of the first electronic device 100 acquiring ranging data in step S502. The process of the first electronic device 100 acquiring trajectory data is described in detail below.

[0173] S503, the first electronic device 100 acquires trajectory data.

[0174] In some embodiments, the first electronic device 100 acquires an image via a camera and inputs the image into an AR module, outputting trajectory data (such as AR data). Optionally, the trajectory data may include, for example, the x-axis, y-axis, and z-axis coordinates of the user's location, as well as quaternion data. Optionally, the AR module may have a pre-installed AR algorithm capable of outputting trajectory data based on the input image.

[0175] Optionally, as shown in step S605 above, in response to the user's instruction to perform a precise search, the first electronic device 100 initializes the AR engine. Then, after the AR engine is initialized, the first electronic device 100 can acquire AR data through the AR engine.

[0176] It should be understood that the embodiments of this application do not limit the execution order between steps S502 and S503, that is, the embodiments of this application do not limit the order in which the first electronic device 100 acquires the ranging data and trajectory data. Optionally, during the precise search process, the first electronic device 100 executes steps S502 and S503 multiple times to acquire ranging data and trajectory data.

[0177] S504, the first electronic device 100 obtains the user trajectory quality based on the ranging data and trajectory data.

[0178] S505a. When the user trajectory quality meets the preset conditions, the first electronic device 100 displays the direction angle and distance.

[0179] S505b: If the user trajectory quality does not meet the preset conditions, the first electronic device 100 displays motion direction guidance.

[0180] Optionally, user trajectory quality is used to measure the reliability of the orientation angle in a certain direction. Preset conditions include, for example, that the orientation angle reliability in all preset directions is greater than or equal to a preset threshold.

[0181] Optionally, the preset directions are, for example, multiple directions within a 360-degree radius around the first electronic device 100, divided by a preset unit angle. For instance, if the preset unit angle is 10 degrees, the preset directions include 36 directions corresponding to the 0-360-degree radius around the first electronic device 100 after being divided into 10-degree intervals. Alternatively, if the preset unit angle is 45 degrees, the preset directions include 8 directions corresponding to 0 degrees, 45 degrees, 90 degrees, 135 degrees, 180 degrees, 225 degrees, 270 degrees, and 315 degrees around the first electronic device 100.

[0182] It should be understood that the first electronic device 100 is pre-configured with multiple preset directions. The values ​​of the preset directions are not limited to the examples above.

[0183] Optionally, the direction angle points in the direction of the second electronic device 200, and the distance indicates the distance between the first electronic device 100 and the second electronic device 200. The motion direction indicator guides the user to determine which directions to move, thus improving the quality of the user's trajectory.

[0184] In some embodiments, after acquiring ranging data and trajectory data, the first electronic device 100 estimates the user trajectory quality using a preset algorithm. If the reliability of the direction angle in all preset directions indicated by the user trajectory quality is greater than or equal to a preset threshold, the first electronic device 100 can obtain reliable direction angles and distances. Otherwise, if the first electronic device 100 cannot obtain reliable direction angles and distances, it can instruct the user to move in a direction with a direction angle reliability less than the preset threshold to increase the direction angle reliability in that direction. Optionally, the preset algorithm may include, for example, a particle swarm optimization algorithm.

[0185] Optionally, after acquiring the ranging data, the first electronic device 100 determines whether the signal strength indicated in the ranging data is greater than or equal to a preset signal strength; if it is greater than or equal to, the ranging data is determined to satisfy judgment condition 1. Optionally, after acquiring the trajectory data, the first electronic device 100 determines whether the component data of the x-axis coordinate data indicated in the trajectory data (such as the projection data on the x-axis) is greater than or equal to a preset x-axis component data, and determines whether the component data of the y-axis coordinate data indicated in the trajectory data (such as the projection data on the y-axis) is greater than or equal to a preset y-axis component data; if both are greater than or equal to, the trajectory data is determined to satisfy judgment condition 2. It should be understood that judgment condition 2 may also include determining whether the component data of the z-axis coordinate data indicated in the trajectory data (such as the projection data on the z-axis) is greater than or equal to a preset z-axis component data.

[0186] Optionally, if the ranging data satisfies judgment condition 1 and the trajectory data satisfies judgment condition 2, the first electronic device 100 obtains the user trajectory quality through a preset algorithm. It should be understood that the embodiments of this application do not limit the order of judgment condition 1 and judgment condition 2.

[0187] For example, such as Figure 8 As shown, the preset unit angle is 10 degrees, and the preset directions include 36 directions corresponding to the 0-360 degree range around the first electronic device 100 after being averaged in 10-degree increments. The first electronic device 100 stores the user trajectory quality using 36 bits, where each bit indicates whether the reliability of the direction angle corresponding to the corresponding angle meets the requirements. For example, Bit 0 indicates whether the reliability of the direction angle corresponding to angle 0 meets the requirements, Bit 1 indicates whether the reliability of the direction angle corresponding to angle 10 meets the requirements, ..., Bit 35 indicates whether the reliability of the direction angle corresponding to angle 350 meets the requirements.

[0188] For example, a bit value of 1 indicates that the reliability of the direction angle is greater than or equal to a preset threshold, and a bit value of 0 indicates that the reliability of the direction angle is less than a preset threshold. Alternatively, a bit value of 0 indicates that the reliability of the direction angle is greater than or equal to a preset threshold, and a bit value of 1 indicates that the reliability of the direction angle is less than a preset threshold.

[0189] For example, in such Figure 8 In the scenario shown, the first electronic device 100 indicates the quality of the user trajectory through 0000 0000 0000 0000 00011111 1111 10000000, where the reliability of the orientation angle corresponding to 70 degrees-160 degrees meets the requirements, such as the orientation angle reliability being greater than or equal to a preset threshold.

[0190] For example, such as Figure 9 As shown in (a), the first electronic device 100 uses graphic displays to indicate to the user which azimuth reliability in which directions has met the requirements (e.g., represented by dark gray circles) and which azimuth reliability in which directions has not yet met the requirements (e.g., represented by light gray or white circles). It should be understood that the first electronic device 100 may also use other display effects, such as flashing, to provide prompts to the user, and this embodiment of the application does not limit this.

[0191] In this way, users can clearly understand which directions of movement will improve the reliability of the orientation angle. For example, Figure 9As shown in (a), the first electronic device 100 displays motion direction guidance, indicating which directions the user needs to move in to improve the reliability of the azimuth angle in those directions. For example, if the user moves to their right rear (e.g., corresponding to the lower right of the circle) according to the guidance of the first electronic device 100, the first electronic device 100 can respond to the user's movement, acquire new ranging data and trajectory data, and thus obtain the reliability of the azimuth angle in the corresponding direction. Figure 9 As shown in (b) and (c), the direction angle reliability in more directions can be met as the user moves.

[0192] Subsequently, after determining that the reliability of the orientation angles in all preset directions meets the requirements, the first electronic device 100 can determine that the user trajectory quality meets the preset conditions. Therefore, if... Figure 10 As shown in (a), the first electronic device 100 can display a directional angle pointing to the location of the second electronic device 200, as well as the distance between the first electronic device 100 and the second electronic device 200, such as 45 meters. Then, the user, carrying the first electronic device 100, can move to the location of the second electronic device 200 by following the directional angle. Figure 10 As shown in (b), when the distance between the first electronic device 100 and the second electronic device 200 is less than the minimum distance threshold, the first electronic device 100 can prompt the user that the second electronic device 200 is nearby, thus completing the accurate device search process.

[0193] In this way, the first electronic device 100 guides the user to find the device by using the user trajectory quality, and can achieve accurate positioning even in scenarios with weak signals or strong interference, thus meeting the user's device search needs and improving the user experience.

[0194] In some embodiments, in AR tracking failure scenarios such as repetitive textures, dim lighting, or lens occlusion, the first electronic device 100 cannot track the user's position via AR functionality, and therefore cannot output trajectory data through the AR module. For example, Figure 11 As shown in (a), during the movement of the first electronic device 100, an AR tracking failure scenario is triggered at the position shown in the dashed box 111. The AR data acquired by the first electronic device 100 is invalid, resulting in the inability to output the correct trajectory.

[0195] In response, the device locator method provided in this application, in AR tracking failure scenarios, can output trajectory data through sensor data, thereby avoiding trajectory data loss and abnormal positioning display. For example, as Figure 11As shown in (b), in the event of AR data failure, trajectory data is output based on sensor data to correct the trajectory data with positioning anomalies and avoid positioning anomalies. Furthermore, in subsequent scenarios where non-AR tracking fails, the first electronic device 100 can continue to obtain user trajectory quality based on AR data.

[0196] The following is a detailed explanation of the implementation process of the device search method in the scenario of AR data failure.

[0197] Figure 12 This is a schematic flowchart of a trajectory data acquisition method provided in an embodiment of this application. Figure 12 As shown, the method includes the following steps.

[0198] S1201, the first electronic device 100 acquires augmented reality data and sensor data.

[0199] The sensor data refers to the data collected by sensors used to obtain the trajectory of the first electronic device 100. For example, the first electronic device 100 is equipped with a direction sensor and an acceleration sensor. The first electronic device 100 can obtain its corresponding movement trajectory through the data detected by the direction sensor and the acceleration sensor.

[0200] Optionally, the sensor data may include, for example, the direction of movement and acceleration data of the first electronic device 100.

[0201] Optionally, the sensor data can be data collected by sensors configured on the first electronic device 100 itself, or sensor data sent to the first electronic device 100 by other devices.

[0202] For example, such as Figure 13 As shown, the user carries a first electronic device 100 (such as a mobile phone), Bluetooth headset, smartwatch, smart glasses, etc. The first electronic device 100 can acquire sensor data through its own installed sensors, and can also receive sensor data sent by devices such as Bluetooth headsets, smartwatches, and smart glasses.

[0203] In this way, the first electronic device 100 can improve the accuracy of trajectory data acquisition by acquiring detection data from the second sensors of multiple electronic devices (including the first electronic device 100). Furthermore, even if the first electronic device 100 is not equipped with a second sensor, or if the second sensor of the first electronic device 100 cannot detect data, the first electronic device 100 can still acquire detection data from the second sensors of other electronic devices, thereby ensuring that trajectory data can be acquired.

[0204] In some embodiments, after acquiring AR data and sensor data, the first electronic device 100 can correct the trajectory data corresponding to the sensor data using the AR data, so that the trajectory data corresponding to the sensor data and the AR data are in the same coordinate system. This allows the first electronic device 100 to temporarily replace the AR data with the trajectory data corresponding to the sensor data should the AR data become unavailable.

[0205] For example, the first electronic device 100 acquires AR data trajectory AR Subsequently, based on this Trajectory AR Get the current heading angle. AR Furthermore, the first electronic device 100 can acquire sensor data and, based on the sensor data, obtain relative trajectory data (Trajectory) using algorithms such as pedestrian dead reckoning (PDR). Sensor Afterwards, the first electronic device 100 can be connected via Heading AR Fix Trajectory Sensor This ensures that the trajectory data corresponding to the final output sensor data matches the trajectory data from the trajectory. AR They are located in the same coordinate system.

[0206] Optionally, the first electronic device 100 corrects the relative trajectory data according to a preset period and acquires the trajectory data corresponding to the sensor data.

[0207] S1202. Under normal conditions of augmented reality tracking, the first electronic device 100 outputs augmented reality data A1.

[0208] S1203. In the event of an abnormal augmented reality tracking state, the first electronic device 100 outputs trajectory data B corresponding to the sensor data.

[0209] S1204. After the augmented reality tracking state returns to normal, the first electronic device 100 outputs augmented reality data A2.

[0210] S1205, First electronic device 100 splices and amplifies real-world data A1-trajectory data corresponding to sensor data B-amplified real-world data A2.

[0211] In some embodiments, when the augmented reality tracking is normal, such as when the first electronic device 100 is not in an AR tracking failure scenario, the first electronic device 100 can use the acquired AR data as trajectory data and output the trajectory data to evaluate the user trajectory quality. However, when the augmented reality tracking is abnormal, such as when the first electronic device 100 is in an AR tracking failure scenario and cannot acquire valid AR data, the first electronic device 100 can use the trajectory data corresponding to the sensor data acquired in step S1201 as the output trajectory data to evaluate the user trajectory quality. Subsequently, after the augmented reality tracking returns to normal, the first electronic device 100 can again output the acquired AR data as trajectory data to achieve a better evaluation of the user trajectory quality.

[0212] Optionally, during this process, the first electronic device 100 stitches together multiple trajectory data from different sources to obtain complete trajectory data during the device positioning process, thereby achieving precise positioning of the second electronic device 200.

[0213] For example, such as Figure 14 The AR trajectory coordinate system shown in (a) includes AR trajectory coordinate points corresponding to different time points (e.g., t1-t6), and the ranging data corresponding to the AR trajectory coordinate points. The different AR trajectory coordinate points represent AR data (i.e., trajectory data). For example, AR data 141 between time point t1 and time point t2, and ranging data 143 corresponding to AR data 141. Then, the first electronic device 100 obtains the HADM ranging anchor point 142 based on the AR data 141 and the ranging data 143.

[0214] Subsequently, as the first electronic device 100 moves, for example at time point t6, the first electronic device 100 is in an anomalous state of augmented reality tracking. Then, as... Figure 14 The sensor trajectory coordinate system shown in (b) is used in the process of abnormal state tracking of augmented reality. The first electronic device 100 acquires the trajectory data 144 corresponding to the sensor data and acquires the HADM ranging anchor point 145 based on the trajectory data 144 and the corresponding ranging data.

[0215] Subsequently, as the first electronic device 100 moves, for example at time point t7, the first electronic device 100 returns to its normal augmented reality tracking state. Then, as... Figure 14As shown in (c), the first electronic device 100 aligns the AR trajectory coordinate system and obtains the HADM ranging anchor point 146 by aligning the HADM ranging anchor point 142 and the HADM ranging anchor point 145. Furthermore, during the normal augmented reality tracking process, the first electronic device 100 continues to acquire AR data to further correct the trajectory direction angle corresponding to time point t6.

[0216] In this way, even if AR data fails, the first electronic device 100 can still output trajectory data to continuously provide users with a device search experience and ensure smooth use.

[0217] Figure 15 This is a flowchart illustrating another device discovery method provided in an embodiment of this application. It should be noted that this method does not rely on... Figure 15 The specific order described below is a limitation. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0218] S1501, the first electronic device 100 responds to the user's instruction to locate the second electronic device 200 and acquires the user trajectory quality.

[0219] The user trajectory quality is used to measure the reliability of the orientation angles. Optionally, if the reliability of the orientation angles in each preset direction around the first electronic device 100 meets preset conditions, it can be determined that the user trajectory quality requirements are met, and the accurate positioning of the second electronic device 200 can be obtained. Before this, the first electronic device 100 needs to guide the user's movement to improve the reliability of the orientation angles in each preset direction. Optionally, the first electronic device 100 obtains the user trajectory quality through ranging data and trajectory data, thereby achieving accurate positioning of the second electronic device 200 through a preset algorithm, such as a particle swarm optimization algorithm.

[0220] In some embodiments, the first electronic device 100, in response to a first operation by a user instructing the user to locate the second electronic device, acquires first ranging data and first trajectory data. Subsequently, the first electronic device 100 acquires the user trajectory quality based on the first ranging data and the first trajectory data.

[0221] The first ranging data is the distance data between the first electronic device 100 and the second electronic device 200. In some examples, a short-range communication connection is established between the first electronic device 100 and the second electronic device 200. Optionally, the short-range communication connection is a satellite connection or a Bluetooth connection. In some examples, the first electronic device 100 acquires the first ranging data through the short-range communication connection, and subsequently, the first electronic device 100 acquires the user trajectory quality based on the first ranging data. For example, the first ranging data may be HADM data acquired based on a satellite connection.

[0222] The first trajectory data refers to the trajectory data of the movement of the first electronic device 100. For example, the first electronic device 100 acquires image data through a camera, inputs the image data into the AR module, and outputs AR data as the first trajectory data.

[0223] For example, the first electronic device 100 is equipped with a first sensor, such as a camera. The first electronic device acquires first trajectory data, which is AR data, through the first sensor.

[0224] In some embodiments, in AR tracking failure scenarios such as repetitive textures, dim lighting, or lens occlusion, the first electronic device 100 cannot track the user's position via AR functionality, and therefore cannot output trajectory data through the AR module. In non-AR tracking failure scenarios, the first electronic device 100 can obtain trajectory data using camera detection data. However, in AR tracking failure scenarios, the first electronic device 100 may need to rely on detection data from other sensors to obtain trajectory data.

[0225] Optionally, in order to ensure that the trajectory data corresponding to the detection data of other sensors is in the same coordinate system as the AR data, it is necessary to correct the trajectory data corresponding to the detection data of other sensors by using the heading angle corresponding to the AR data.

[0226] For example, in the first scenario, during the process of acquiring first trajectory data through the first sensor, the first electronic device 100 acquires the heading angle corresponding to the first trajectory data and acquires fourth trajectory data through the second sensor. Then, the first electronic device 100 corrects the fourth trajectory data using the heading angle. The second scenario is an abnormal state scenario corresponding to the first sensor, and the first scenario is a normal state scenario corresponding to the first sensor. The first sensor is a camera, and the second sensor is a direction sensor and / or an acceleration sensor.

[0227] Optionally, the second sensor is a sensor in the first electronic device, or a sensor in a third electronic device connected to the first electronic device, wherein the third electronic device is an electronic device carried by the user.

[0228] For example, such as Figure 13 As shown, if a user carries multiple electronic devices, the first electronic device 100 can acquire detection data from the second sensors in the multiple electronic devices (including the first electronic device 100), thereby improving the accuracy of trajectory data acquisition.

[0229] In some examples, in the first scenario, the first electronic device 100 acquires first trajectory data through the first sensor.

[0230] In other examples, after transitioning from the first scene to the second scene, the first electronic device 100 acquires second trajectory data using second detection data from the second sensor. Subsequently, after transitioning from the second scene back to the first scene, the first electronic device 100 acquires third trajectory data using third detection data from the first sensor. The first electronic device 100 then stitches the second and third trajectory data together to acquire the first trajectory data.

[0231] For example, such as Figure 14 In the AR trajectory coordinate system shown in (a), the first electronic device 100 is in the first scene, acquiring HADM data through the first sensor and obtaining HADM ranging anchor point 142. Then, as the first electronic device 100 moves, for example at time point t6, the first electronic device 100 is in the second scene. Then, as... Figure 14 In the sensor trajectory coordinate system shown in (b), in the second scene, the first electronic device 100 acquires trajectory data 144 corresponding to the sensor data, and obtains HADM ranging anchor point 145 based on trajectory data 144 and corresponding ranging data. Then, as the first electronic device 100 moves, for example at time point t7, the first electronic device 100 is in the first scene. Therefore, as... Figure 14 As shown in (c), the first electronic device 100 aligns the AR trajectory coordinate system and obtains the HADM ranging anchor point 146 by aligning the HADM ranging anchor points 142 and 145. Furthermore, in the first scene, the first electronic device 100 continues to acquire AR data to further correct the trajectory direction angle corresponding to time point t6.

[0232] Thus, even if AR data fails, the first electronic device 100 can still output trajectory data, continuously providing users with a device search experience and ensuring smooth user operation. Furthermore, the first electronic device 100 stitches together multiple trajectory data segments from different sources to obtain complete trajectory data during the device positioning process, achieving precise positioning of the second electronic device 200.

[0233] In some embodiments, in response to a first operation, a first electronic device 100 acquires the location information of a second electronic device. Then, the first electronic device 100 displays a first identifier corresponding to the location of the first electronic device and a second identifier corresponding to the location information. After the first electronic device 100 moves to a preset range near the second electronic device, a short-range communication connection is established with the second electronic device. In response to a second operation instructing the user to precisely locate the second electronic device, the user's trajectory quality is acquired via the short-range communication connection.

[0234] For example, such as Figure 4 As shown in (a), during the process of displaying the desktop, the first electronic device 100 detects the user's operation on the search device application icon 41 and launches the search device application. Figure 4 As shown in (b), the first electronic device 100 displays information about other found electronic devices in the application search device interface via a pop-up window 42, and marks the location of these other electronic devices on the map interface, such as indicating the location of the currently found phone via a marker 43 (as shown in the first example). Afterwards, the user moves with the first electronic device 100. When the first electronic device 100 reaches a location near the second electronic device 200, a short-range communication connection is established with the second electronic device 200, and the following is displayed: Figure 4 The interface shown in (e) is as follows. Subsequently, in response to the user's operation on the precision search control 46, the first electronic device 100 acquires the first trajectory data and the first ranging data to obtain the user trajectory quality.

[0235] In other embodiments, before acquiring user trajectory quality in response to a first operation indicating a user's instruction to locate the second electronic device, the first electronic device 100 has already established a short-range communication connection with the second electronic device 200. For example, the first electronic device 100 is located within a predetermined range of the second electronic device 200. Therefore, in response to a first operation indicating a user's instruction to precisely locate the second electronic device, the first electronic device 100 can directly acquire user trajectory quality through the short-range communication connection.

[0236] For example, such as Figure 4 As shown in (b), in response to the user selecting "My Phone" in pop-up window 42, the first electronic device 100 determines that the second electronic device 200 (such as a mobile phone) is nearby, and a short-range communication connection can be established, and displays as shown in (b). Figure 4 The interface shown in (e) is as follows. In response to the user's operation on the precision search control 46, the first electronic device 100 triggers the precision search process, acquiring first trajectory data and first ranging data to obtain the user trajectory quality.

[0237] S1502a. When the user trajectory quality meets the preset conditions, the first electronic device 100 displays a first direction angle, which points to the second electronic device.

[0238] S1502b: If the user trajectory quality does not meet the preset conditions, the first electronic device 100 displays a motion direction guide, which is used to instruct the user to move in a direction where the direction angle reliability is less than a preset threshold.

[0239] Among them, the preset conditions include that the reliability of the direction angle in all preset directions is greater than or equal to the preset threshold.

[0240] In some embodiments, the first electronic device 100 evaluates the quality of the user trajectory using first trajectory data and first ranging data. The first electronic device 100 is configured with multiple preset directions. If the reliability of the directional angle in all of these preset directions is greater than or equal to a preset threshold, a suitable user trajectory can be determined, and the second electronic device 200 can be accurately located based on this trajectory. Thus, the first electronic device 100 can display the directional angle of the location of the second electronic device 200 performing the accurate positioning. Otherwise, the first electronic device 100 can display movement direction guidance to guide the user to move in a direction with a directional angle reliability less than the preset threshold, thereby improving the directional angle reliability in that direction and improving the quality of the user trajectory.

[0241] Optionally, the first electronic device 100 also displays the distance between itself and the second electronic device 200. This distance display helps the user understand how far they are from their current location and the second electronic device 200. This distance can be determined based on first ranging data.

[0242] For example, such as Figure 9 As shown in (a), the first electronic device 100 displays motion direction guidance, indicating which directions the user needs to move in to improve the reliability of the azimuth angle in those directions. For example, if the user moves to their right rear (e.g., corresponding to the lower right of the circle) according to the guidance of the first electronic device 100, the first electronic device 100 can respond to the user's movement, acquire new ranging data and trajectory data, and thus obtain the reliability of the azimuth angle in the corresponding direction. Figure 9 As shown in (b) and (c), with the user's movement, the reliability of the orientation angles in more directions can meet the requirements. Subsequently, after determining that the reliability of the orientation angles in all preset directions meets the requirements, the first electronic device 100 can determine that the user trajectory quality meets the preset conditions. Therefore, as... Figure 10 As shown in (a), the first electronic device 100 can display the directional angle pointing to the location of the second electronic device 200, as well as the distance between the first electronic device 100 and the second electronic device 200, such as 45 meters.

[0243] In this way, the first electronic device 100 guides the user to find the device by using the user trajectory quality, and can achieve accurate positioning even in scenarios with weak signals or strong interference, thus meeting the user's device search needs and improving the user experience.

[0244] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information (such as trajectory data) involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals. For example, in the technical solution of this application, the processing of user personal information is carried out with the user's authorization, which is stated uniformly here and will not be repeated below.

[0245] The above combination Figures 4-15 The device discovery method provided in the embodiments of this application is described in detail below. Figure 16 The first electronic device provided in the embodiments of this application is described in detail.

[0246] In one possible design, Figure 16 This is a schematic diagram of the structure of a first electronic device provided in an embodiment of this application. Figure 16 As shown, the first electronic device 1600 may include a transceiver unit 1601, a processing unit 1602, and a display unit 1603. The first electronic device 1600 can be used to implement the functions of the first electronic device 100 involved in the above method embodiments.

[0247] Optionally, the transceiver unit 1601 is used to support the first electronic device 1600 in performing [operations]. Figure 5 S501, S502, and S503; and / or, for supporting the first electronic device 1600 to perform Figure 12 S1201 in the context of; and / or, for supporting the first electronic device 1600 in performing... Figure 15 S1501 in the middle.

[0248] Optionally, the processing unit 1602 is used to support the execution of the first electronic device 1600. Figure 5 S504 in the example; and / or, for supporting the first electronic device 1600 to perform Figure 12 S1202, S1203, S1204, and S1205; and / or, for supporting the first electronic device 1600 to perform Figure 15 S1501 in the middle.

[0249] Optionally, the display unit 1603 is used to support the first electronic device 1600 in performing operations. Figure 5 S505a or S505b; and / or, for supporting the first electronic device 1600 to perform Figure 15 S1502a and S1502b in the example.

[0250] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the first electronic device 1600 are respectively to implement the corresponding process of the device search method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and will not be repeated here for the sake of brevity.

[0251] Optionally, Figure 16 The first electronic device 1600 shown may also include a storage unit ( Figure 16 (not shown in the image), this storage unit stores a program or instruction. When the transceiver unit 1601, processing unit 1602, and display unit 1603 execute the program or instruction, it causes... Figure 16 The first electronic device 1600 shown can execute the device search method described in the above method embodiments.

[0252] Figure 16 The technical effects of the first electronic device 1600 shown can be referred to the technical effects of the device search method described in the above method embodiments, and will not be repeated here.

[0253] In addition to being in the form of the first electronic device 1600, the technical solutions provided in this application may also be functional units or chips in the first electronic device, or devices used in conjunction with the first electronic device.

[0254] Figure 17 Another exemplary structure of the first electronic device is shown. For example... Figure 17 As shown, the first electronic device 1700 includes: a processor 1701, a memory 1702, a transceiver 1703, and a display screen 1704. The implementations of the processor 1701 and the memory 1702 can be found in [reference needed]. Figure 3 The processor 110 and internal memory 121 are shown in the diagram. The transceiver 1703 can be used by the first electronic device 1700 to interact with other devices (e.g., a second electronic device). The transceiver 1703 can be a device based on various wireless communication protocols. The display screen 1704 can be used by the first electronic device 1700 to display orientation angles or motion direction guidance, for example, displaying... Figure 4 , Figure 9 or Figure 10 The interface shown.

[0255] It is understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the first electronic device 1700. In other embodiments of this application, the first electronic device 1700 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0256] This application also provides a chip system, including: a processor coupled to a memory, the memory being used to store programs or instructions, wherein when the program or instructions are executed by the processor, the chip system implements the methods in any of the above method embodiments.

[0257] Optionally, the chip system may contain one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.

[0258] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.

[0259] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0260] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.

[0261] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a computer, it causes the computer to perform the aforementioned steps to implement the device search method described above.

[0262] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the device search method described above.

[0263] In addition, this application also provides an apparatus. Specifically, the apparatus may be a component or module, and may include one or more processors and a memory connected together. The memory stores a computer program. When the computer program is executed by one or more processors, the apparatus performs the device search method described in the above-described method embodiments.

[0264] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0265] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC).

[0266] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0267] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be electrical, mechanical or other forms.

[0268] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0269] Computer-readable storage media include, but are not limited to, any of the following: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program code.

[0270] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A device location method, characterized in that, Applied to a first electronic device, the method includes: In response to a user instruction to locate a second electronic device, first ranging data and first trajectory data are acquired; the first ranging data is used to indicate the distance information between the first electronic device and the second electronic device, and the first trajectory data is used to indicate the movement trajectory of the first electronic device. Based on the first ranging data and the first trajectory data, the user trajectory quality is obtained, and the user trajectory quality is used to measure the reliability of the orientation angle; When the user trajectory quality meets the preset conditions, a first direction angle is displayed, the first direction angle pointing to the second electronic device, wherein the preset conditions include the direction angle reliability of all preset directions being greater than or equal to a preset threshold; If the user trajectory quality does not meet the preset conditions, a motion direction guide is displayed, which is used to instruct the user to move in a direction where the direction angle reliability is less than the preset threshold.

2. The method according to claim 1, characterized in that, In response to a first operation instructing a user to locate a second electronic device, first ranging data and first trajectory data are acquired, including: In the first scenario, the first trajectory data is obtained through the first detection data from the first sensor.

3. The method according to claim 2, characterized in that, In response to a first operation instructing a user to locate a second electronic device, first ranging data and first trajectory data are acquired, including: After changing from the first scene to the second scene, second trajectory data is obtained through the second detection data of the second sensor. The second scene is the abnormal state scene corresponding to the first sensor, and the first scene is the normal state scene corresponding to the first sensor. After the scene changes from the second scene to the first scene, third trajectory data is obtained through the third detection data of the first sensor. By splicing the second trajectory data and the third trajectory data, the first trajectory data is obtained.

4. The method according to claim 3, characterized in that, In response to a first operation instructing a user to locate a second electronic device, first ranging data and first trajectory data are acquired, including: In the first scenario, during the process of acquiring the first trajectory data through the first sensor, the heading angle corresponding to the first trajectory data is acquired, and the fourth trajectory data is acquired through the second sensor; The fourth trajectory data is corrected by the heading angle.

5. The method according to claim 3 or 4, characterized in that, The first sensor is a camera, and the trajectory data corresponding to the first sensor is augmented reality data. The second sensor is a direction sensor and / or an acceleration sensor.

6. The method according to claim 3 or 4, characterized in that, The second sensor is either a sensor in the first electronic device or a sensor in a third electronic device connected to the first electronic device, wherein the third electronic device is an electronic device carried by the user.

7. The method according to any one of claims 1-4, characterized in that, A short-range communication connection is established between the first electronic device and the second electronic device, and the user trajectory quality is determined based on the first ranging data obtained from the short-range communication connection.

8. The method according to claim 7, characterized in that, The short-range communication connection is either a Starlink connection or a Bluetooth connection.

9. The method according to claim 7, characterized in that, The first operation of responding to a user instruction to locate a second electronic device, obtaining user trajectory quality, includes: In response to the first operation, the location information of the second electronic device is obtained; Display a first identifier corresponding to the location of the first electronic device, and a second identifier corresponding to the location information; After the first electronic device moves to a preset range near the second electronic device, it establishes the short-range communication connection with the second electronic device; In response to a second operation that precisely locates the second electronic device as instructed by the user, the quality of the user's trajectory is acquired via the short-range communication connection.

10. The method according to claim 7, characterized in that, Prior to acquiring the user trajectory quality in response to the first operation of locating the second electronic device indicated by the user, the method further includes: The first electronic device establishes a short-range communication connection with the second electronic device, wherein the first electronic device is located within a preset range near the second electronic device; The step of obtaining user trajectory quality in response to a user's instruction to locate a second electronic device includes: In response to the first operation of accurately locating the second electronic device as instructed by the user, the user trajectory quality is acquired through the short-range communication connection.

11. The method according to any one of claims 1-4, characterized in that, After acquiring the user trajectory quality in response to the first operation of locating the second electronic device indicated by the user, the method further includes: This displays the distance between the device and the second electronic device.

12. An electronic device, characterized in that, include: The electronic device includes a processor, a memory, and a display screen, the memory and the display screen being coupled to the processor, the memory storing computer program code including computer instructions, which, when read from the memory by the processor, cause the electronic device to perform the method as described in any one of claims 1-11.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-11.

14. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-11.

Citation Information

Patent Citations

  • Method for obtaining movement track of user and terminal

    CN111902695A

  • Detection method of Bluetooth positioning equipment, equipment and storage medium

    CN114173325A