Equipment searching method and electronic equipment
By using short-range communication and a star-flash module to determine the direction and distance of the device when the electronic device is powered off or in power-saving mode, and then ringing the device, the problem of insufficient accuracy in offline searching in existing technologies is solved, and the accurate positioning and retrieval of the device is achieved.
Patent Information
- Application Number
- CN202410710825.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2025-12-05
AI Technical Summary
When existing electronic devices are lost, the offline search function can only determine the general area and it is difficult to find the lost device accurately. In particular, the device cannot ring when it is turned off, resulting in a low probability of the user finding it.
When the device is powered off or in power-saving mode, a connection is established with the locator using the short-range communication module, the star flash module and the horn module are activated, the direction and distance of the device are determined by broadcasting messages and ultrasonic data, and the device rings to achieve accurate location.
It improves the accuracy of locating devices when they are powered off or in power-saving mode, increasing the probability of users recovering lost devices.
Smart Images

Figure CN121078418A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of terminal, and in particular to a device searching method and an electronic device. BACKGROUND
[0002] Electronic devices (such as mobile phones, tablets, etc.) held by users may be lost, which may cause the leakage of user privacy and property loss. To deal with this problem, many current electronic devices are configured with a function of searching after being lost, such as an offline searching function and an online searching function. When a user searches for a lost electronic device through a searching device (such as an electronic device other than the lost electronic device), the online searching function enables the lost electronic device to receive an instruction from the searching device based on a network and report its position in real time in the case of being connected to the network. The offline searching function enables the lost electronic device to report a position through a surrounding electronic device in the case of not being connected to the network, such as the surrounding electronic device reporting its position as the position of the lost electronic device to the searching device. The offline searching scheme can only determine the approximate range of the lost electronic device, which makes the probability of the user finding the lost electronic device relatively low. SUMMARY
[0003] The present application provides a device searching method and an electronic device, which can realize accurate searching of an electronic device and improve the probability of a user finding a lost electronic device.
[0004] To achieve the above object, the present application adopts the following technical scheme:
[0005] In a first aspect, a device searching method is provided and applied to a first electronic device, the first electronic device comprising a near distance communication module and a star flash module, the near distance communication module and the star flash module being in a working state when the first electronic device is in a shutdown state or a power saving mode, the method comprising: in the case that the first electronic device is in a shutdown state or a power saving mode and the first electronic device is connected to a second electronic device through the near distance communication module, the near distance communication module receiving a first instruction from the second electronic device; in response to the first instruction, the near distance communication module starting the star flash module to send a first broadcast message, the first broadcast message being used to determine the distance between the first electronic device and the second electronic device, the first electronic device being in at least one of the directions of the second electronic device.
[0006] Based on the above technical solution, when the first electronic device (i.e. the lost device) is in the power-off state or the power saving mode, the lost device can still establish a connection with the second electronic device (i.e. the finding device) through the close-range communication module in the working state, can receive the first instruction from the finding device based on the established connection, and can start the star flash module in the working state to send the broadcast message in response to the instruction. Thus, the distance between the finding device and the lost device can be determined based on the broadcast message, and the lost device is in at least one of the directions of the finding device. In this way, when the finding device is near the lost device, the distance between the finding device and the lost device and the direction of the lost device relative to the finding device can be determined based on the foregoing scheme, and the accurate finding of the lost device can be realized, thereby improving the probability of finding the lost device by the user.
[0007] In a possible design, the first electronic device further includes a loudspeaker module, the loudspeaker module is in the working state when the first electronic device is in the power-off state or the power saving mode; and the close-range communication module starts the star flash module to send the first broadcast message in response to the first instruction, including: the close-range communication module starts the star flash module to send the first broadcast message and starts the loudspeaker module to send ultrasonic data in response to the first instruction, the ultrasonic data is used to determine the distance between the first electronic device and the second electronic device, and the first electronic device is in at least one of the directions of the second electronic device.
[0008] In this way, when the lost device is in the power-off state or the power saving mode, the lost device can respond to the instruction of the finding device based on the close-range communication module in the working state, send the broadcast message based on the instruction of the finding device through the star flash module in the working state, and start the loudspeaker module in the working state to emit ultrasonic data. Not only can the distance between the lost device and the finding device, the direction of the lost device relative to the finding device, and the like be determined, but also the accurate finding of the lost device can be realized. Since the star flash can support a longer measured distance, and the measurement error of the ultrasonic wave and the instruction is more optimal, the distance between the lost device and the finding device, the direction of the lost device relative to the finding device, and the like measured can be more accurate, and the accuracy of the accurate finding can be improved.
[0009] In a possible design, the first electronic device further includes a speaker module, and the speaker module is in an active state when the first electronic device is in a power-off state or a power-saving mode; and the method further includes: receiving, by the close-range communication module, a second instruction from the second electronic device; and in response to the second instruction, starting, by the close-range communication module, the speaker module to ring. Based on this design, the lost device can still receive the instruction for searching for the device from the close-range communication module in the active state when the lost device is in the power-off state or the power-saving mode, and then ring based on the instruction. In this way, when the searching device is near the lost device, the lost device can be controlled to ring even when the lost device is in the power-off state or the power-saving mode, which is beneficial to determining the position of the lost device and improving the probability of finding the lost device.
[0010] In a possible design, the first instruction is encrypted by using a first key; and before the close-range communication module starts the star flashing module to send the first broadcast message in response to the first instruction, the method further includes: decrypting, by the close-range communication module, the first instruction by using the second key. In this way, the first instruction is encrypted by using the first key, which can achieve identity authentication of the first electronic device and ensure the security of communication.
[0011] In a possible design, before the close-range communication module receives the first instruction from the second electronic device, the method further includes: when the first electronic device is in a power-off state or a power-saving mode, sending, by the close-range communication module, a second broadcast message, where the second broadcast message is used to establish a connection with the second electronic device. Based on this design, even when the first electronic device is in the power-off state or the power-saving mode, the first electronic device can still send a broadcast message by using the close-range communication module in the active state, to establish a connection with the second electronic device, and then achieve communication with the second electronic device.
[0012] In a possible design, the second broadcast message carries a third key, and the third key is used by the second electronic device to authenticate the identity of the first electronic device. In this way, the second broadcast message carries the third key, which can achieve identity authentication of the second electronic device and ensure the security of communication.
[0013] In a possible design, when the first electronic device is in the power-off state or the power-saving mode, before the close-range communication module sends the second broadcast message, the method further includes: before the first electronic device is in the power-off state or the power-saving mode, the first electronic device generates at least one of the second key and the third key; and the first electronic device sends the at least one of the second key and the third key to the close-range communication module. In this way, the first electronic device generates the second key, the third key and the like before being in the power-off state or the power-saving mode, and sends the second key, the third key and the like to the close-range communication module. Subsequently, when the first electronic device is in the power-off state or the power-saving mode, the close-range communication module can use the second key, the third key and the like received previously to implement identity authentication of the first electronic device, the second electronic device and the like, thereby ensuring communication security.
[0014] In a possible design, the close-range communication module uses different second keys to decrypt the first instruction when the close-range communication module receives the first instruction in different broadcast periods; or the close-range communication module carries different third keys in the second broadcast message when the close-range communication module sends the second broadcast message in different broadcast periods; where the broadcast period is a period in which the close-range communication module sends the second broadcast message. In this way, the key used to decrypt the first instruction is different in different broadcast periods, or the key carried in the second broadcast message is different, that is, the key is dynamically changed, which can reduce the risk of key leakage.
[0015] In a possible design, the close-range communication module is a Bluetooth module or a star flash module.
[0016] In a second aspect, a device searching method is provided, which is applied to a second electronic device, the second electronic device includes a close-range communication module and a star flash module, the close-range communication module is connected with a first electronic device in a power-off state or a power-saving mode, and the method includes: the second electronic device sends a first instruction to the first electronic device through the close-range communication module; in response to the first instruction, the second electronic device receives a first broadcast message from the first electronic device through the star flash module; and in response to the first broadcast message, the second electronic device outputs a distance between the first electronic device and the second electronic device, and the first electronic device is in at least one of a direction of the second electronic device.
[0017] In a possible design, the second electronic device further includes a microphone module; and the second electronic device receiving the first broadcast message from the first electronic device via the star flash module in response to the first instruction includes: the second electronic device receiving the first broadcast message via the star flash module and receiving ultrasonic data from the first electronic device via the microphone module in response to the first instruction.
[0018] In a possible design, the second electronic device outputs the distance between the first electronic device and the second electronic device and at least one of the directions of the first electronic device to the second electronic device in response to the first broadcast message and the ultrasonic data includes: the second electronic device outputting the distance between the first electronic device and the second electronic device and at least one of the directions of the first electronic device to the second electronic device in response to the first broadcast message and the ultrasonic data.
[0019] In a possible design, the first instruction is encrypted by using a first key; and before the second electronic device sends the first instruction to the first electronic device via the short-range communication module, the second electronic device encrypts the first instruction by using the first key. Optionally, the first instruction is encrypted by using different first keys when the second electronic device sends the first instruction via the short-range communication module in different broadcast periods. The broadcast period can be a period in which the first electronic device sends a second broadcast message via the short-range communication module.
[0020] In a possible design, before the second electronic device outputs the distance between the first electronic device and the second electronic device and at least one of the directions of the first electronic device to the second electronic device in response to the first broadcast message and the ultrasonic data, the method further includes: the second electronic device determining a first distance between the first electronic device and the second electronic device based on the first broadcast message, the first electronic device being in a first direction of the second electronic device; the second electronic device determining a second distance between the first electronic device and the second electronic device based on the ultrasonic data, the second electronic device being in a second direction of the second electronic device; and the second electronic device outputting the distance between the first electronic device and the second electronic device and at least one of the directions of the first electronic device to the second electronic device based on the first distance, the first direction, the second distance, and the second direction.
[0021] In this way, the searching device can determine the distance between the lost device and the searching device based on the first broadcast message, and determine the direction of the lost device relative to the searching device based on the ultrasonic data, and determine the distance between the lost device and the searching device and the direction of the lost device relative to the searching device based on the above two results. The accuracy of the distance between the lost device and the searching device and the direction of the lost device relative to the searching device can be improved, and the lost device can be located more accurately.
[0022] In a possible design, when the first electronic device is in a bag scenario, the output distance between the first electronic device and the second electronic device is the first distance, and the output direction of the first electronic device relative to the second electronic device is the first direction. In this way, when the lost device is in a bag scenario, such as when the lost device is placed in a backpack, a suitcase or the like, the distance between the lost device and the searching device and the direction of the lost device relative to the searching device are determined based on the direction and distance measured based on the first broadcast message. Since the ultrasonic wave is easily blocked by the bag, the measurement accuracy of the ultrasonic wave is affected, and therefore, the measurement result based on the aforementioned star flash broadcast message (i.e., the first broadcast message) is used, which can improve the accuracy of the distance between the lost device and the searching device and the direction of the lost device relative to the searching device, and reduce errors.
[0023] In a possible design, when the first electronic device is in a non-bag scenario, if the distance between the first electronic device and the second electronic device is greater than or equal to a first preset distance, the output distance between the first electronic device and the second electronic device is the first distance, and the output direction of the first electronic device relative to the second electronic device is the first direction; or, when the first electronic device is in a non-bag scenario, if the distance between the first electronic device and the second electronic device is less than the first preset distance, the output distance between the first electronic device and the second electronic device is the second distance, and the output direction of the first electronic device relative to the second electronic device is the second direction.
[0024] In this way, in the non-luggage scenario, if the distance between the finding device and the lost device is greater than or equal to the first preset distance, the measurement result of the star flash broadcast message (i.e., the first broadcast message) is taken as the distance between the finding device and the lost device, the direction, etc. Since the star flash can support measuring a longer distance compared with the ultrasonic wave, taking the measurement result of the star flash broadcast message as the reference can improve the accuracy of the obtained distance between the finding device and the lost device and the direction of the lost device relative to the finding device. When the distance between the finding device and the lost device is less than the first preset distance, the measurement result of the ultrasonic wave data is taken as the distance between the finding device and the lost device, the direction, etc. Since the ultrasonic wave data has a smaller measurement error and a better directivity compared with the star flash, taking the measurement result of the ultrasonic wave data as the reference can improve the accuracy of the obtained distance between the finding device and the lost device and the direction of the lost device relative to the finding device.
[0025] In a possible design, the first distance and the first direction correspond to a first weight, and the second distance and the second direction correspond to a second weight. The second electronic device outputs at least one of the distance between the first electronic device and the second electronic device and the direction of the first electronic device relative to the second electronic device based on the first distance, the first direction, the second distance, the second direction, the first weight, and the second weight. The first weight and the second weight are different preset weights. In this way, by setting different weights for the measurement result of the star flash broadcast message (i.e., the first broadcast message) and the measurement result of the ultrasonic wave data, the final measurement result can be determined when the distance between the lost device and the finding device and the direction of the lost device relative to the finding device are measured by combining the two aforementioned methods.
[0026] In a possible design, the second electronic device further includes an AR engine. The second electronic device determines the first distance between the first electronic device and the second electronic device and the first direction of the first electronic device relative to the second electronic device based on the first broadcast message, including: the second electronic device determines the first distance between the first electronic device and the second electronic device and the first direction of the first electronic device relative to the second electronic device based on the first broadcast message and the AR engine. Optionally, the AR engine can be integrated into the star flash module. In this way, the star flash module can implement ranging and angle measurement based on the star flash broadcast and the AR engine, and thus can determine the distance between the lost device and the finding device and the direction of the lost device relative to the finding device.
[0027] In a possible design, the method further includes: when the distance between the first electronic device and the second electronic device is less than a second preset distance, the second electronic device sends a second instruction to the first electronic device through the short-distance communication module, where the second instruction is used to instruct the first electronic device to ring. In this way, when the distance between the finding device and the lost device is less than the second preset distance, the lost device can be automatically controlled to ring, which is beneficial to the user to hear the ring of the lost device and improves the probability of the user finding the lost device.
[0028] In a possible design, the second electronic device sends the first instruction to the first electronic device through the short-distance communication module, including: the second electronic device displays a first interface, where the first interface contains a first control and position information of the first electronic device; and in response to an operation on the first control, the second electronic device sends the first instruction to the first electronic device through the short-distance communication module. In this way, the user can start the ranging and angle measurement function of the finding device through the control presented on the finding device, and then determine the distance and direction between the lost device and the finding device.
[0029] In a possible design, before the second electronic device sends the first instruction to the first electronic device through the short-distance communication module, the method further includes: the second electronic device receives a second broadcast message from the first electronic device through the short-distance communication module; and in response to the second broadcast message, the second electronic device connects to the first electronic device through the short-distance communication module.
[0030] In a possible design, the second broadcast message carries a third key; and before the second electronic device connects to the first electronic device through the short-distance communication module in response to the second broadcast message, the method further includes: the second electronic device verifies the second broadcast message by using a fourth key. Optionally, the third key and the fourth key can be the same or different. Optionally, when the second electronic device receives the second broadcast message through the short-distance communication module in different broadcast periods, the second electronic device verifies the second broadcast message by using different fourth keys. The broadcast period is a period in which the first electronic device sends the second broadcast message through the short-distance communication module.
[0031] In a possible design, the second electronic device outputs at least one of the distance between the first electronic device and the second electronic device and the direction of the first electronic device relative to the second electronic device in response to the first broadcast message, and the method comprises: in response to the first broadcast message at a first time, the second electronic device displays one or more of a first distance, a first direction, and first information, wherein the first distance is the distance between the first electronic device and the second electronic device at the first time, the first direction is the direction of the first electronic device relative to the second electronic device at the first time, and the first information is used to represent the reliability of the first direction; and in response to the first broadcast message at a second time, the second electronic device displays one or more of a second distance, a second direction, and second information, wherein the second distance is the distance between the first electronic device and the second electronic device at the second time, the second direction is used to indicate the direction of the first electronic device relative to the second electronic device at the second time, and the second information is used to represent the reliability of the second direction. In this way, the searching device can display the direction and distance of the lost device, and the user can search for the lost device according to the indication of the searching device, which helps the user to find the lost device.
[0032] In a possible design, the first distance is greater than the second distance, and the reliability of the first direction is less than the reliability of the second direction. In this way, when the distance between the searching device and the lost device becomes smaller, the direction of the lost device measured by the searching device becomes more accurate, and the probability that the user finds the lost device can be improved.
[0033] In a possible design, the direction of the first electronic device relative to the second electronic device is represented by the included angle between the direction of the line connecting the first electronic device and the second electronic device and the orientation of the second electronic device.
[0034] The descriptions of other designs in the second aspect can refer to the descriptions of the corresponding designs in the first aspect.
[0035] Thirdly, a method for a device locator system is provided, the device locator system including a first electronic device and a second electronic device, both the first electronic device and the second electronic device including a short-range communication module and a star-flash module, the short-range communication module and the star-flash module of the first electronic device being in a working state when the first electronic device is in a power-off state or a power-saving mode, the method including: when the first electronic device is in a power-off state or a power-saving mode, and the short-range communication module of the first electronic device establishes a connection with the short-range communication module of the second electronic device, the short-range communication module of the second electronic device sending a first instruction to the short-range communication module of the first electronic device; in response to the first instruction, the star-flash module of the first electronic device sending a first broadcast message to the star-flash module of the second electronic device; in response to the first broadcast message, the second electronic device outputting the distance between the first electronic device and the second electronic device, wherein the first electronic device is in at least one of the directions of the second electronic device.
[0036] In one possible design, the first electronic device further includes a speaker module, which is active when the first electronic device is in a power-off state or power-saving mode; the second electronic device further includes a microphone module; in response to the first instruction, the star flash module of the first electronic device sends a first broadcast message to the star flash module of the second electronic device, including:
[0037] In response to the first instruction, the star flash module of the first electronic device sends a first broadcast message, and the speaker module sends ultrasonic data. The star flash module of the second electronic device receives the first broadcast message, and the microphone module receives the ultrasonic data.
[0038] In one possible design, the second electronic device outputting the distance between the first electronic device and the second electronic device in response to the first broadcast message, wherein the first electronic device is in at least one of the directions of the second electronic device, includes: in response to the first broadcast message and the ultrasonic data, the second electronic device outputting the distance between the first electronic device and the second electronic device, wherein the first electronic device is in at least one of the directions of the second electronic device.
[0039] In one possible design, the first electronic device further includes a speaker module, which is operational when the first electronic device is in a power-off state or a power-saving mode; the method further includes: a proximity communication module of the second electronic device sending a second command to a proximity communication module of the first electronic device; and in response to the second command, the speaker module of the first electronic device rings.
[0040] In a possible design, before the near field communication module of the second electronic device sends the second instruction to the near field communication module of the first electronic device, the second electronic device determines that the distance between the first electronic device and the second electronic device is less than a second preset distance.
[0041] In a possible design, before the near field communication module of the second electronic device sends the first instruction to the near field communication module of the first electronic device, the method further includes: the near field communication module of the first electronic device sends a second broadcast message to the near field communication module of the second electronic device; and in response to the second broadcast message, the near field communication module of the second electronic device connects to the near field communication module of the first electronic device.
[0042] Other designs of the third aspect can refer to the implementation of the first aspect and the second aspect. It can be understood that different designs of aspects in the embodiments of the present application can refer to each other.
[0043] In a fourth aspect, an electronic device is provided, which has a function of implementing the method in the first aspect or the second aspect or any design thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0044] In a fifth aspect, an electronic device is provided, which includes a near field communication module, a star flash module, a processor and a memory. The memory is coupled to the processor, and is configured to store program code including instructions. The processor reads the instructions from the memory, so that the electronic device performs the method in the first aspect or the second aspect or any design thereof.
[0045] In a possible design, the electronic device is a first electronic device, and at least one of the processor and the memory can be arranged in the near field communication module. Optionally, in this design, the electronic device further includes a loudspeaker module.
[0046] In a possible design, the electronic device is a second electronic device, and at least one of the processor and the memory can be independently arranged. Optionally, in this design, the electronic device further includes a microphone module.
[0047] In a sixth aspect, a computer readable storage medium is provided, which includes a computer program. When the computer program runs on an electronic device, the electronic device performs the method in the first aspect or the second aspect or any design thereof.
[0048] In a seventh aspect, a computer program product is provided, which includes a computer program or instructions, when the computer program or instructions are run on a computer, cause the computer to execute the method according to the first aspect or the second aspect and any design thereof.
[0049] In an eighth aspect, a device searching system is provided, which includes a first electronic device configured to execute the method according to any aspect and any design thereof, and a second electronic device configured to execute the method according to any two aspects and any design thereof.
[0050] In a ninth aspect, a chip system is provided, which includes at least one processor and at least one interface circuit, the at least one interface circuit is configured to execute a transceiving function and send instructions to the at least one processor, when the at least one processor executes the instructions, the at least one processor executes the method according to the first aspect and any design thereof.
[0051] It should be noted that the technical effects brought by any design of the third aspect to the ninth aspect can refer to the technical effects brought by the corresponding design of the first aspect and the second aspect, which will not be repeated here. BRIEF DESCRIPTION OF DRAWINGS
[0052] Figure 1 A schematic diagram of a search interface provided by an embodiment of the present application;
[0053] Figure 2a A schematic diagram of a device searching scenario provided by an embodiment of the present application;
[0054] Figure 2b A schematic diagram of an architecture of a communication system provided by an embodiment of the present application;
[0055] Figure 3 A schematic diagram of a structure of an electronic device provided by an embodiment of the present application;
[0056] Figure 4 A schematic diagram of a software structure of an electronic device and a server provided by an embodiment of the present application;
[0057] Figure 5 A schematic diagram of an interface of a user actively starting an offline searching function provided by an embodiment of the present application;
[0058] Figure 6 A schematic diagram of another interface of starting an offline searching function provided by an embodiment of the present application;
[0059] Figure 7 A schematic diagram of another search interface provided by an embodiment of the present application;
[0060] Figure 8 A schematic diagram of an angle between a first electronic device and a second electronic device is provided for an embodiment of the present application.
[0061] Figure 9 A schematic diagram of another search interface is provided for an embodiment of the present application.
[0062] Figure 10 A schematic diagram of another search interface is provided for an embodiment of the present application.
[0063] Figure 11 A flowchart of a device search method is provided for an embodiment of the present application.
[0064] Figure 12 A structural schematic diagram of a first electronic device is provided for an embodiment of the present application.
[0065] Figure 13 A schematic diagram of a second electronic device is provided for an embodiment of the present application.
[0066] Figure 14 A schematic diagram of a chip system is provided for an embodiment of the present application. DETAILED DESCRIPTION
[0067] In the description of the present application, unless otherwise specified, “ / ” represents that the objects before and after the “ / ” are in an “or” relationship, for example, A / B can represent A or B; “and / or” in the present application is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural.
[0068] In the description of the present application, unless otherwise specified, “multiple” means two or more than two. “At least one of the following (one)” or the like means any combination of the items, including any combination of single item (one) or multiple items (ones). For example, at least one of a, b, or c can represent: a, b, c, a and b, a and c, b and c, a and b and c, where a, b, and c can be single or multiple.
[0069] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the same items or similar items with basically the same functions and effects are distinguished by using “first”, “second”, etc. The skilled in the art can understand that “first”, “second”, etc. do not limit the quantity and execution order, and “first”, “second”, etc. also do not necessarily mean different.
[0070] To find the lost electronic device, in one possible solution, the lost electronic device (hereinafter referred to as the lost device) can receive instructions from other electronic devices based on the connected network in the case of connecting with the network, i.e. the scenario of the lost device being online, and report its position to the other electronic device in real time to achieve online search of the lost device. This solution requires the lost device to be in the state of being powered on and connected with the network. Among them, the aforementioned other electronic device can be other devices used by the user to find the lost device, which will be referred to as the search device hereinafter.
[0071] In another possible solution, in the case of the lost device not being connected with the network, i.e. the scenario of the lost device being offline, the lost device can send a Bluetooth broadcast to the surrounding electronic devices. When the surrounding electronic devices receive the Bluetooth broadcast, they can obtain their own position information through positioning technology and report the position information as the position of the lost device (i.e. the offline position of the lost device) to the search device, so that the search device can determine the approximate range of the lost device based on the position information reported by the surrounding electronic devices to achieve offline search of the lost device. In this solution, the lost device can be in the state of being powered on without being connected with the network or in the state of being powered off.
[0072] In the above-mentioned solution of searching for the lost device offline, only the approximate range of the lost device can be determined, and when the search device is in the vicinity of the lost device, the direction and distance of the lost device from the search device cannot be determined. Moreover, when the lost device is in the state of being powered off, the above-mentioned solution of searching for the lost device offline cannot control the lost device to ring. For example, taking the search device as a mobile phone 10, when the user searches for the lost device through the mobile phone 10, the mobile phone 10 can present a search interface 100 as shown in (1) of FIG. 10, which can be used to assist the user to search for the lost device. For example, the search interface 100 can include a play sound button 101, and the user can expect to trigger the lost device to ring through the play sound button 101. For example, the user performs an operation such as clicking on the play sound button 101, and in response to the operation of the user, the mobile phone 10 sends information indicating ringing to the lost device, and when the lost device is in the state of being powered off, the lost device does not respond to the mobile phone 10, i.e. the lost device does not actually ring. Then, the mobile phone 10 can pop up a message 200 as shown in (2) of FIG. 10 indicating that the connection with the lost device fails. Therefore, the above-mentioned search solution cannot achieve accurate search of the lost device, and the probability of the user finding the lost device is low. Figure 1 Figure 1
[0073] Based on this, the embodiment of the present application provides a device searching method, which can not only determine the range where the lost device is located, but also determine the direction, distance, etc. of the lost device when the searching device is near the lost device, and can control the lost device to ring in the shutdown state, thereby realizing accurate searching of the lost device and improving the probability of finding the lost device by the user.
[0074] The technical scheme provided by the embodiment of the present application can be applied to the scenario of searching another electronic device by one electronic device, such as but not limited to Figure 2a As shown in FIG. 1, searching other electronic devices (such as watch 12, earphone 13, mobile phone 14, tag (TAG) device 15, etc.) by mobile phone 11, searching mobile phone by other electronic devices (such as mobile phone, tablet, watch, etc.), searching watch, earphone, etc. by watch, and various searching scenarios.
[0075] Exemplarily, Figure 2b An architecture schematic diagram of a communication system to which the device searching method provided by the embodiment of the present application is applied is shown. Exemplarily, as shown in FIG. 2, Figure 2b As shown in FIG. 2, the communication system 200 includes a first electronic device 201 and a second electronic device 202.
[0076] The first electronic device 201 is a lost device. The second electronic device 202 can be an electronic device used by a user to search for the first electronic device 201. In the embodiment of the present application, the second electronic device 202 has networking capability and is in a networking state, and the networking capability can mean connecting with the Internet through a wireless fidelity (Wi-Fi) network, a cellular network, etc.
[0077] In some embodiments, the first electronic device 201 can have networking capability. In this embodiment, as one possible implementation, the first electronic device 201 can be in a networking state (also referred to as the first electronic device 201 being online), the first electronic device 201 can receive a searching instruction from the second electronic device 202 through the network, and in response to the searching instruction, the first electronic device 201 obtains its own position information through various positioning technologies and reports the position information to the second electronic device 202. Correspondingly, the second electronic device 202 can receive the position information from the first electronic device 201, and then determine the range where the first electronic device 201 is located. In this implementation, the first electronic device 201 and the second electronic device 202 can communicate through the network.
[0078] As another possible implementation, the first electronic device 201 can be in a network disconnection state (may also be referred to as the first electronic device 201 being offline), for example, the first electronic device 201 can be in a network disconnection state due to being in a power-off, low-battery, or the like state, or the user turning off the networking function of the first electronic device 201. At this time, the first electronic device 201 cannot report its own location information to the second electronic device 202, but can report the location information to the second electronic device 202 through other devices. In this implementation, Figure 2b The communication system 200 shown can also include a third electronic device 203. Optionally, the third electronic device 203 can be an electronic device in the vicinity of the first electronic device 201, i.e., a peripheral electronic device of the first electronic device 201. The number of third electronic devices 203 can be one or more (only one is shown in the figure). Figure 2b In this implementation, the second electronic device 202 and the third electronic device 203 can communicate through a network.
[0079] The third electronic device 203 has an assisted positioning capability and a networking capability. When the third electronic device 203 is in a network connection state, the third electronic device 203 can act as a good Samaritan device, report the location information of the third electronic device 203 as the location information of the first electronic device 201 to the second electronic device 202, so as to facilitate the second electronic device 202 to determine the approximate range in which the first electronic device 201 is located.
[0080] It can be understood that the above implementation is an example of assisting in positioning the first electronic device 201 through the third electronic device 203 when the first electronic device 201 has a networking capability but is in a network disconnection state. In other embodiments, when the first electronic device 201 does not have a networking capability, the third electronic device 203 can also assist in positioning.
[0081] In some embodiments, the first electronic device 201 and the third electronic device 203 can establish a connection through near field communication technology, for example, the near field communication technology can include but is not limited to Bluetooth, Starlink, infrared, etc., Figure 2b and Bluetooth is taken as an example.
[0082] In the above scheme of assisting in positioning the first electronic device 201 by the third electronic device 203, in some embodiments, when the second electronic device 202 is in the vicinity of the first electronic device 201, the first electronic device 201 and the second electronic device 202 can also establish a connection through near field communication technology, for example, the near field communication technology can also include but is not limited to Bluetooth, Starlink, infrared, etc., Figure 2b and Bluetooth is taken as an example. Based on the connection established through the near field communication technology, the second electronic device 202 can send a precise search instruction to the first electronic device 201 to realize the precise search of the first electronic device 201.
[0083] Optionally, the first electronic device 201, the second electronic device 202 and the third electronic device 203 can be electronic devices of the same type or electronic devices of different types.
[0084] In some embodiments, Figure 2b The communication system 200 shown can further include a server 204, which can provide a lookup network service, such as implementing key encryption storage, offline location encryption storage of electronic devices, and various functions. In some embodiments, the server 204 can also implement the function of forwarding communication between different electronic devices (such as the first electronic device 201, the second electronic device 202, the third electronic device 203, etc.). Optionally, the server 204 can be a cloud server or a network server, or a device or network device with computing function. The server 204 can be a server, a server cluster composed of multiple servers, or a cloud computing service center.
[0085] In some embodiments, the third electronic device 203 can send its own location information as the location information of the first electronic device 201 to the server 204, and the second electronic device 202 can obtain the location information of the first electronic device 201 from the server 204.
[0086] In some embodiments, before the first electronic device 201 is in the offline state, the first electronic device 201 can also upload a key used to implement accurate lookup of the first electronic device 201 to the server 204 through the network. Correspondingly, the second electronic device 202 can also obtain the aforementioned key from the server 204 in the process of looking up the first electronic device 201.
[0087] In the embodiments of the present application, the electronic device (such as the first electronic device 201, the second electronic device 202, the third electronic device 203, etc. described above) can be a mobile phone, a tablet computer, a handheld computer, a netbook, a personal digital assistant (PDA), an artificial intelligence (AI) device, a tag (TAG) device, a wearable device, including but not limited to earphones, smart watches, smart bracelets, smart ankle bracelets, etc. The operating system installed on the electronic device includes but is not limited to or other operating systems, and of course can also not be installed with an operating system. The specific type of the electronic device, whether it is installed with an operating system, and the type of the operating system installed are not limited in the present application.
[0088] Exemplarily, Figure 3A structural schematic diagram of an electronic device is shown.
[0089] The electronic device 300 can include a processor 310, a memory 320, a universal serial bus (USB) interface 321, a charging management module 330, a power management module 331, a battery 332, an antenna 1, an antenna 2, a mobile communication module 340, a wireless communication module 350, an audio module 360, a speaker 360A, a microphone 360B, a key 370, a motor 381, a camera 382, a display screen 383, and the like.
[0090] The processor 310 can include one or more processing units, for example: the processor 310 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), and the like. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0091] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching instructions and executing instructions.
[0092] The memory in the processor 310 can also be provided for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. The memory can save instructions or data that the processor 310 has just used or repeatedly uses. If the processor 310 needs to use the instructions or data again, it can be directly called from the memory. Avoiding repeated access, reducing the waiting time of the processor 310, thus improving the efficiency of the system.
[0093] Taking the electronic device 300 as a second electronic device as an example, in some embodiments of the present application, the processor 310 can be used to determine that the first electronic device is in the direction, distance, etc. of the second electronic device based on one or more of the microphone 360B, augmented reality (AR), star flash module, etc.
[0094] In some embodiments, the processor 310 can include one or more interfaces, such as the USB interface 321.
[0095] The memory 320 can be used to store computer-executable program code including instructions. The memory 320 can include a program storage area and a data storage area. The program storage area can store an operating system, application programs (such as a sound playing function and the like) required by at least one function, and the like. The data storage area can store data created during use of the electronic device 300 and the like. In addition, the memory 320 can include a high-speed random access memory, and can further include a nonvolatile memory such as at least one of a magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 310 executes various functions of the electronic device 300 and data processing by running the instructions stored in the memory 320 and / or the instructions stored in the memory provided in the processor.
[0096] Taking the electronic device 300 as a second electronic device, in some embodiments of the present application, the memory 320 can be used to store a key for communication with a first electronic device, such as one or more of an offline broadcast key, an identity authentication key, and the like. For more information about these keys, please refer to the description below.
[0097] The charging management module 330 is configured to receive a charging input from a charger. The charger can be a wireless charger or a wired charger.
[0098] The power management module 331 is configured to connect the battery 332 and the charging management module 330. The power management module 331 receives an input from the battery 332 and / or the charging management module 330 to supply power to the processor 310, the memory 320, the display screen 383, the camera 382, and the wireless communication module 350.
[0099] Taking the electronic device 300 as a first electronic device, in some embodiments of the present application, the power management module 331 can also be used to supply power to one or more of the Bluetooth module 351, the star flash module 352, the speaker 360A, and the like when the first electronic device is in a shutdown state or a low power state.
[0100] The wireless communication function of the electronic device 300 can be realized by the antenna 1, the antenna 2, the mobile communication module 340, the wireless communication module 350, the modem processor, and the baseband processor, and the like.
[0101] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 300 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas.
[0102] The mobile communication module 340 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 300.
[0103] The wireless communication module 350 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), star flash, etc. applied to the electronic device 300. The wireless communication module 350 can be one or more devices that integrate at least one communication processing module.
[0104] In some embodiments, the antenna 1 and the mobile communication module 340 of the electronic device 300 are coupled, and the antenna 2 and the wireless communication module 350 are coupled, so that the electronic device 300 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidu navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).
[0105] In some embodiments of the present application, one or more of a Bluetooth module 351, a star flash module 352, etc. are included in the wireless communication module 350. Taking the electronic device 300 as a first electronic device as an example, when the first electronic device is in a network outage state, the first electronic device can perform Bluetooth broadcasting through the Bluetooth module 351, so that a second electronic device or a third electronic device can discover the first electronic device. For another example, the first electronic device can also perform star flash broadcasting through the star flash module 352, so that the second electronic device can determine the direction and distance of the first electronic device.
[0106] In some embodiments of the present application, taking the electronic device 300 as a first electronic device as an example, a memory can also be provided in the Bluetooth module 351, which can be used to store keys for communication with the first electronic device, such as multiple kinds of offline broadcast keys and identity authentication keys.
[0107] The audio module 360 is configured to convert digital audio information into an analog audio signal output, and to convert an analog audio input into a digital audio signal. The audio module 360 can also be configured to encode and decode audio signals. In some embodiments, the audio module 360 can be disposed in the processor 310, or some functional modules of the audio module 360 can be disposed in the processor 310.
[0108] The speaker 360A, also referred to as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. Taking the first electronic device as an example, in some embodiments of the present application, the speaker 360A can ring based on the instruction of the second electronic device when the first electronic device is in a power-off state or a low-power state. Alternatively, the speaker 360A can also emit ultrasonic waves based on the instruction of the second electronic device.
[0109] The microphone 360B, also referred to as a "microphone" or "sound receiver", is configured to convert a sound signal into an electrical signal. The electronic device 300 can be provided with at least one microphone 360B to achieve one or more of the following functions: collecting sound signals, noise reduction, identifying sound sources, and realizing directional recording functions. Taking the second electronic device as an example, in some embodiments of the present application, the microphone 360B can be used to collect ultrasonic waves emitted by the first electronic device to achieve accurate positioning of the first electronic device.
[0110] The keys 370 include a power-on key, a volume key, and the like. The keys 370 can be mechanical keys. Alternatively, the keys 370 can be touch keys.
[0111] The motor 381 can generate a vibration prompt. The motor 381 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. Taking the electronic device 300 as the first electronic device as an example, in some embodiments of the present application, the motor 381 can also vibrate based on the instruction of the second electronic device when the first electronic device is in a power-off state or a low-power state. In this embodiment, the power management module 331 can also be used to supply power to the motor 381 when the first electronic device is in a power-off state or a low-power state.
[0112] The camera 382 is configured to capture still images or videos. In some embodiments, the electronic device 300 can include one or N cameras 382, where N is a positive integer greater than 1. Taking the electronic device 300 as the second electronic device as an example, in some embodiments of the present application, the camera 382 can also be used to collect images of the surrounding environment of the second electronic device to achieve accurate search for the first electronic device.
[0113] The display screen 383 is configured to display images, videos, and the like. The display screen 383 includes a display panel. In some embodiments, the electronic device 300 can include 1 or N display screens 383, where N is a positive integer greater than 1. For example, taking the second electronic device as an example, in some embodiments of the present application, the display screen 383 can be configured to output the position of the first electronic device, the direction of the first electronic device relative to the second electronic device, the distance between the first electronic device and the second electronic device, and the like.
[0114] It can be understood that when the electronic device 300 is implemented as different electronic devices (such as the first electronic device, the second electronic device, the third electronic device, and the like), the modules included in the electronic device 300 can be different, for example, when the electronic device 300 is implemented as the first electronic device, the electronic device 300 can not include the microphone 360B, the camera 382, the display screen 383, and the like, and when the electronic device 300 is implemented as the second electronic device, the electronic device 300 can not include the loudspeaker 360A, the motor 381, and the like.
[0115] For the structure of the server, reference can be made to the structure of the electronic device shown in Figure 3 It can be understood that the server can include more or fewer components of the electronic device shown in Figure 3 For example, the server can only include a processor, a memory, a communication interface, and the like.
[0116] For example, Figure 4 A software architecture schematic diagram of an electronic device and a server provided by an embodiment of the present application is shown.
[0117] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. Embodiments of the present application take the layered architecture as an example to exemplarily illustrate the software structure of the first electronic device and the second electronic device. Figure 4 The software structure of the first electronic device (a) and the software structure of the second electronic device (b) are respectively shown in Figure 4 The software structure of the first electronic device (a) and the software structure of the second electronic device (b) are respectively shown in
[0118] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the software architecture in the first electronic device 201 and the second electronic device 202 can both include an application layer and a system layer. It can be understood that Figure 4 The types of layers and the positions of the modules in the layers shown are only exemplarily illustrated, and in actual applications, other layer divisions can also be used, for example, the system layer can also be divided into a framework layer and a kernel layer. The positions of the modules in the layers can also be different.
[0119] The application layer can include a series of application packages, such as WLAN, a device finder application, and a settings application. WLAN enables network connectivity for electronic devices. The device finder application receives user input to pair and bind devices using network services, triggering the local device to locate lost devices. The settings application can execute various settings, such as enabling the offline search function of the first electronic device 201.
[0120] The system layer can include a series of system services and functional modules, such as an edge-side network lookup service, a network module, a key management module, a speaker module, a Bluetooth module, a flashing light module, a microphone module, and a power management subsystem. The edge-side network lookup service can provide encrypted reporting of the location information of the helper device. The power management subsystem is responsible for the power management of electronic devices, including but not limited to monitoring battery level, power on / off status, and power supply management. The network module provides network connectivity services, enabling electronic devices to communicate with other devices over the network. The key management module performs key-related operations such as key generation, storage, management, and decryption, including but not limited to offline broadcast keys and authentication keys. Optionally, this key management module can be a universal key store system (HarmonyOS Universal KeyStore, HUKS), where HUKS provides the application with the JavaCryptography Architecture KeyStore class interface functionality, including cryptographic algorithms, key management, and certificate services, or it can be other key management modules.
[0121] The speaker module is used for ringing and emitting ultrasonic waves to determine the location and distance of the first electronic device from the second electronic device. The Bluetooth module, as a short-range communication module, can provide services such as low-power offline broadcasting, scan-to-broadcast offline broadcasting, and generic attribute (GATT) connectivity. GATT is the service interface protocol for BLE (Bluetooth Low Energy). The Sparklink module can serve as a longer-range communication module, providing services such as Sparklink Low Energy (SLE) broadcasting and scan-to-broadcast. The microphone module is used to receive ultrasonic data to determine the location and distance of the first electronic device from the second electronic device.
[0122] like Figure 4 As shown in (c), server 204 includes a cloud-side search network service, which is a service deployed on the server side by the search network. It can be used to implement functions such as key encryption storage and location encryption storage of lost devices.
[0123] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device and the server. In other embodiments of this application, the electronic device and the server 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.
[0124] The technical solutions involved in the following embodiments can all be implemented in [various applications]. Figure 3 as well as Figure 4 The device with the structure shown, and Figure 2b The system implementation of the architecture shown is illustrated. It is understood that in this embodiment, the example is based on a first electronic device as the lost device, which is in a powered-off state after being lost; a second electronic device as the retrieval device; and a third electronic device as a peripheral electronic device of the first electronic device. It is also understood that the technical solution provided in this embodiment is applicable when the first electronic device is in a low-power state (such as power-saving mode) after being lost.
[0125] In some embodiments, a connection may be established between the first electronic device and the second electronic device. Then, the second electronic device may send instructions for accurate location to the first electronic device based on the established connection, thereby determining the direction and distance of the first electronic device from the second electronic device, and achieving accurate location of the second electronic device.
[0126] The process of establishing a connection between the first electronic device and the second electronic device will be described below.
[0127] In some embodiments, the first electronic device may perform, as Figure 4 As shown in (1), the offline search function is enabled. Once enabled, this function allows the first electronic device to be discovered and connected to by the second electronic device even when it is powered off or has low battery. In this embodiment, as a possible implementation, the offline search function can be actively enabled by the user. For example, taking a mobile phone 20 as the first electronic device... Figure 5 This illustration shows a schematic diagram of a user actively enabling an offline search function according to an embodiment of this application.
[0128] In some embodiments, the mobile phone 20 may have an application installed for enabling the offline search function, which the user can use to enable the offline search function. Taking a settings application as an example, for instance... Figure 5As shown in (1), the mobile phone 20 can display a main interface 500, wherein the main interface 500 can include one or more application icons, such as a calendar application icon, a clock application icon, and the like, which will not be described one by one here. The icons of different applications can be used to open the running interface of the corresponding application. The one or more application icons include a settings application icon 501. The mobile phone 20 detects an operation such as a user clicking the settings application icon 501, and in response to the operation, as shown in (2), the mobile phone 20 displays a settings application running interface 510. Figure 5 As shown in (1), the mobile phone 20 can display a main interface 500, wherein the main interface 500 can include one or more application icons, such as a calendar application icon, a clock application icon, and the like, which will not be described one by one here. The icons of different applications can be used to open the running interface of the corresponding application. The one or more application icons include a settings application icon 501. The mobile phone 20 detects an operation such as a user clicking the settings application icon 501, and in response to the operation, as shown in (2), the mobile phone 20 displays a settings application running interface 510.
[0129] As shown in (1), the mobile phone 20 can display a main interface 500, wherein the main interface 500 can include one or more application icons, such as a calendar application icon, a clock application icon, and the like, which will not be described one by one here. The icons of different applications can be used to open the running interface of the corresponding application. The one or more application icons include a settings application icon 501. The mobile phone 20 detects an operation such as a user clicking the settings application icon 501, and in response to the operation, as shown in (2), the mobile phone 20 displays a settings application running interface 510. Figure 5 As shown in (3), the mobile phone 20 displays a security interface 520, wherein the security interface 520 includes a find device option 521, through which the user can start the offline finding function. Optionally, the security interface 520 also includes an SOS emergency help option, a password safe option, and the like. The functions of these options will not be described in detail here.
[0130] As shown in (3), the mobile phone 20 displays a security interface 520, wherein the security interface 520 includes a find device option 521, through which the user can start the offline finding function. Optionally, the security interface 520 also includes an SOS emergency help option, a password safe option, and the like. The functions of these options will not be described in detail here. Figure 5 As shown in (4), the mobile phone 20 displays a find device interface 530, wherein the find device interface 530 includes a button 531 for starting the offline finding function. When the mobile phone 20 detects an operation of the user selecting the button 531 for starting the offline finding function, the offline finding function is started. In this way, even if the mobile phone 20 is lost and is in a shutdown state, it can still be found and connected by a finding device.
[0131] Of course, in other implementations, the offline finding function can also be started by default by the first electronic device, such as being automatically started after the first electronic device is manufactured, and the specific manner of starting the offline finding function is not limited in the embodiments of the present application.
[0132] In some embodiments, before the first electronic device is lost, the user can have performed a shutdown operation of the first electronic device. In this embodiment, before the first electronic device is shut down in response to the shutdown operation of the user, the first electronic device can also pop up a reminder message to remind the user to start the offline finding function, and the like. Still taking the first electronic device as the mobile phone 20 as an example, as shown in (5), the user can perform a shutdown operation of the mobile phone 20 by long-pressing a power button. In response to the operation of the user, the mobile phone 20 can display, as shown in (6), a reminder message 601 for starting the offline finding function. Figure 6 Figure 6 The illustrated shutdown interface 600, wherein the shutdown interface 600 can contain a reminder message 601 and a "go to start" button 602, the reminder message 601 can be used to output the relevant introduction of the offline search function and the benefits of starting the offline search function, etc., the "go to start" button 602 can be used to jump to the interface of starting the offline search function of the mobile phone 20, such as Figure 5 the interface shown in (4), or Figure 5 the interface shown in (3), etc. The embodiments of the present application do not limit the specific interface of the jump. Subsequently, when the mobile phone 20 starts the offline search function in response to the user operation, it can also confirm with the user whether to continue to shut down, etc. Of course, when the user chooses not to start the offline search function of the mobile phone 20, the user can also not perform the foregoing operation, and can directly control the mobile phone 20 to shut down based on the restart button, the shutdown button, etc. presented on the shutdown interface 600.
[0133] When the offline search function of the first electronic device is started by the above-mentioned manner, the second electronic device can discover and connect the first electronic device when the first electronic device is in the shutdown state. In some embodiments, the second electronic device and the first electronic device can establish a connection through near field communication technology. Exemplarily, the near field communication technology can include but is not limited to Bluetooth, star flash, etc., and the embodiments of the present application take Bluetooth as an example for introduction.
[0134] In the embodiments of the present application, when the first electronic device is in the shutdown state, the Bluetooth module of the first electronic device still remains working, that is, the first electronic device maintains power supply to the Bluetooth module when in the shutdown state. Correspondingly, the Bluetooth module of the first electronic device periodically sends a Bluetooth broadcast in the shutdown state, so that when the second electronic device is in the vicinity of the first electronic device, it can perform the second electronic device side search network service call as shown in (11). Figure 4 The Bluetooth module of the second electronic device is called, which can discover the first electronic device and establish a connection therewith by scanning the Bluetooth broadcast of the first electronic device. Optionally, the Bluetooth broadcast sent by the first electronic device can carry a derived public key P of an offline broadcast key, which can be used by the second electronic device to identify the identity of the first electronic device and can improve the security of the first electronic device. In this way, even if the first electronic device is in the shutdown state, the Bluetooth module still remains working, and the communication connection between the first electronic device and the second electronic device can be established when the first electronic device is in the shutdown state.
[0135] Optionally, when the first electronic device is in the shutdown state, the Bluetooth module of the first electronic device can be in an independent working state, that is, the Bluetooth module can work autonomously without receiving control instructions from other modules.
[0136] In some embodiments, the derived public key P of the offline broadcast key can be updated periodically, such as varying depending on the Bluetooth broadcast sent by the first electronic device at different times. That is, the derived public key P of the offline broadcast key carried by the Bluetooth module of the first electronic device is different each time a Bluetooth broadcast occurs, thus improving the security of the first electronic device. Optionally, since the key has a certain time limit, as a possible implementation, the first electronic device can generate the derived public key P of the offline broadcast key again just before it is about to be powered off. Specifically, after the first electronic device enables the offline search function in the manner described above, the end-side search network module in the first electronic device can perform the following... Figure 4 As shown in (4), the low power and shutdown preprocessing events are registered with its own power management subsystem. These low power and shutdown preprocessing events can be used by the power management subsystem to notify the end-side lookup network module when the first electronic device is about to be in a low power or shutdown state, so that the first electronic device can generate the derived public key P of the offline broadcast key in a timely manner.
[0137] Accordingly, when the power management subsystem of the first electronic device determines that the first electronic device is about to be powered off, for example, when the remaining power of the first electronic device is less than or equal to a preset power threshold (such as 1%, 5%, etc.), the following can be executed: Figure 4 As shown in (5), a notification message is sent to the end-side network lookup module. Then, the end-side network lookup module can execute... Figure 4 As shown in (6), the derived public key P of the offline broadcast key is generated through the key management module. For example, if the Bluetooth module broadcasts Bluetooth every 15 minutes, and the Bluetooth module broadcasts Bluetooth for two days, the key management module needs to generate 96 keys. It is understood that this application embodiment does not limit the frequency or duration of Bluetooth broadcasts by the Bluetooth module. Finally, the end-side network lookup module of the first electronic device performs... Figure 4 As shown in (7), the list of derived public keys of the offline broadcast key generated by the key management module (i.e., the multiple derived public keys P generated above) is sent to the Bluetooth module so that the Bluetooth module can perform Bluetooth broadcasting based on the list of derived public keys of the offline broadcast key after the first electronic device is powered off.
[0138] Correspondingly, the second electronic device can decrypt the Bluetooth broadcast by using the offline broadcast key to determine that the Bluetooth broadcast is sent by the first electronic device, and identity of the first electronic device is recognized. For example, the second electronic device can derive the offline broadcast key based on the same derivation algorithm as the first electronic device, for example, the end-side lookup network service in the second electronic device can call the key management module to derive the offline broadcast key. When the key derived by the second electronic device matches the public key P carried in the Bluetooth broadcast, the Bluetooth broadcast of the first electronic device can be decrypted, and it is determined that the Bluetooth broadcast is sent by the first electronic device.
[0139] The derivation algorithm can be an elliptic curve Diffie-Hellman key exchange (ECDH) algorithm, and of course, other derivation algorithms can also be used, which are not limited in the embodiments of the present application.
[0140] Of course, in other implementations, the first electronic device can also directly send the derived public key list of the generated offline broadcast key to the server, and the second electronic device can also directly obtain the derived public key list of the offline broadcast key from the server, and the identity of the first electronic device is recognized based on the derived public key list of the offline broadcast key.
[0141] Optionally, the second electronic device can perform the operation as shown in Figure 4 The end-side lookup network service can obtain the offline broadcast key from the server by calling the network module. For example, in addition to performing the operation of generating the derived public key of the offline broadcast key, the first electronic device can also generate the offline broadcast key and upload it to the server. For example, after the first electronic device starts the offline lookup function by the above method, the end-side lookup network module of the first electronic device can perform the operation of (2) calling the key management module to generate the offline broadcast key as shown in Figure 4 Correspondingly, the key management module can generate the offline broadcast key and send it to the lookup network module, and the lookup network module can call the network module, and the network module performs the operation of (3) sending the offline broadcast key to the server as shown in Figure 4
[0142] In some implementations, to ensure the security and privacy of the first electronic device, the key management module can also encrypt the offline broadcast key into ciphertext through a trust circle, that is, the first electronic device sends the encrypted offline broadcast key to the server. It can be understood that the trust circle is a technology that can realize interconnection between chip platforms and operating systems. Accordingly, the second electronic device can also decrypt the encrypted offline broadcast key obtained from the server. For example, after the search network module of the second electronic device obtains the encrypted offline broadcast key from the server, it can send it to the key management module. Accordingly, the key management module can also decrypt it using the trust circle.
[0143] It can be understood that the second electronic device can also obtain the offline broadcast key through other ways, and the embodiments of the present application do not limit the way the second electronic device obtains the offline broadcast key.
[0144] It can also be understood that the above embodiments are to identify the identity of the first electronic device through the offline broadcast key by the second electronic device, and in other embodiments, the second electronic device can also identify the identity of the first electronic device through other ways. For example, the first electronic device can carry an identifier of the first electronic device in the Bluetooth broadcast, which can be used to identify the identity of the first electronic device. The second electronic device can also identify the identity of the first electronic device through the identifier of the first electronic device carried in the Bluetooth broadcast.
[0145] In some scenarios, the second electronic device can not be in the vicinity of the first electronic device, therefore, the second electronic device can not be able to establish a connection with the first electronic device through a method such as scanning the Bluetooth broadcast. In this scenario, the second electronic device can also first obtain the range in which the first electronic device is located, and output the range in which the first electronic device is located to the user, so that the user carries the second electronic device to the vicinity of the first electronic device in the process of searching for the first electronic device.
[0146] In this scenario, as a possible implementation, the second electronic device can be installed with an application for searching for the first electronic device, and the user can search for the first electronic device through the application, that is, the second electronic device can execute the function of searching for the first electronic device through the application as shown in Figure 4 (8), and then the second electronic device can output the position of the first electronic device to the user through the application. For example, taking the application as a search device application and the second electronic device as a mobile phone 10, the mobile phone 10 can also present a message such as Figure 5The main interface 500 shown in Figure (1) may display an icon 502 for a device search application. The user can initiate the search for the first electronic device using this icon 502. For example, if the mobile phone 10 detects a user's click on the device search application icon 502, in response to this action, such as... Figure 7 In the search interface 700 shown in (1), the mobile phone 10 can display the location of the first electronic device (such as HUAWEI P40), such as "near xx community in Chaoyang District, Beijing". Furthermore, based on the location of the first electronic device displayed on the mobile phone 10, the user can carry the mobile phone 10 to the vicinity of the location of the first electronic device to further realize the accurate search of the first electronic device.
[0147] In some implementations, to increase the probability of connecting to the first electronic device, the second electronic device can activate its Bluetooth module and begin scanning the first electronic device's Bluetooth broadcasts immediately after the user initiates the search for the first electronic device. In other words, the second electronic device can periodically scan the first electronic device's Bluetooth broadcasts throughout the search process. In other implementations, to reduce the power consumption of the second electronic device, it can activate its Bluetooth module and begin scanning the first electronic device's Bluetooth broadcasts only when it determines it is near the first electronic device. For example, if the second electronic device determines that the distance between its location and the first electronic device's location is less than a certain threshold, it can determine that it is near the first electronic device. Optionally, since the second electronic device has not yet performed a precise search for the first electronic device, the location of the first electronic device can be, for example,... Figure 7 The location of the first electronic device to which the second electronic device outputs to the user, as shown in (1).
[0148] In some embodiments, the second electronic device presents, for example, Figure 7 When the location of the first electronic device shown in (1) is reached, the second electronic device can also log in to search for device applications. Taking the second electronic device as mobile phone 10 as an example, if in response to the user's request... Figure 5 The click operation of the icon 502 for the device search application shown in (1) responds to the operation as follows: Figure 7 As shown in (2), the mobile phone 10 can first display the login interface 710 for the Find Device application, where the user can enter their account, password, etc. In response to the user's login operation, the mobile phone 10 then redirects to other applications such as... Figure 7 The interface shown in (1) is shown. Optionally, the login account of the device search application on the second electronic device can be the login account of the device search application on the first electronic device, or the system account of the first electronic device, or an account that has a preset association relationship with the aforementioned account (such as belonging to the same group (such as location sharing group, family group, etc.), family account, etc.). This application embodiment does not impose specific restrictions on this.
[0149] In the embodiment of the present application, the first electronic device is in a shutdown state, and thus has no network connection, and the first electronic device cannot directly report its own position information to the second electronic device. That is, the position information displayed in the position information field (1) is not reported by the first electronic device. As a possible implementation, the position information can be the position information of the third electronic device reported by the third electronic device. For example, the third electronic device can perform scanning of Bluetooth broadcast, and when the Bluetooth broadcast of the first electronic device is scanned, the position information of the third electronic device can be reported to the second electronic device as the position information of the first electronic device. It can be understood that the embodiment of the present application does not limit the manner in which the third electronic device acquires the position information and reports it to the second electronic device. Figure 7
[0150] Optionally, in the embodiment of the present application, the connection established between the first electronic device and the second electronic device can be a GATT connection, and of course, can also be a Bluetooth connection based on other communication protocols.
[0151] The process of establishing the connection between the first electronic device and the second electronic device is introduced above, and the following introduces the sending of the instruction for implementing accurate finding by the second electronic device to the first electronic device based on the established connection.
[0152] In some embodiments, the above-mentioned instruction for implementing accurate finding can include a ranging and angle measurement instruction, which can be used to determine at least one of the direction, distance, etc. of the first electronic device from the second electronic device. As a possible implementation, the ranging and angle measurement instruction can be used to determine at least one of the direction, distance, etc. of the first electronic device from the second electronic device based on a star flash module. In this implementation, after the first electronic device establishes a connection with the second electronic device, the second electronic device can send the ranging and angle measurement instruction to the first electronic device, which can be used to instruct the first electronic device to perform star flash broadcast (such as SLE broadcast, etc.). In this implementation, the star flash module is still in a working state in the shutdown state of the first electronic device, that is, the first electronic device still maintains power supply to the star flash module.
[0153] Specifically, in combination with the architecture shown in Figure 4 , after the Bluetooth module of the second electronic device establishes a connection with the Bluetooth module of the first electronic device, the end-side finding network service of the second electronic device generates a ranging and angle measurement instruction, and sends the instruction to the Bluetooth module of the second electronic device, and then, based on the established Bluetooth connection, the Bluetooth module of the second electronic device sends the ranging and angle measurement instruction to the Bluetooth module of the first electronic device. Correspondingly, after receiving the ranging and angle measurement instruction, the Bluetooth module of the first electronic device executes Figure 4 The star flash module of the first electronic device is started to perform star flash broadcasting. At the same time, the star flash module of the second electronic device starts to scan the star flash broadcasting of the first electronic device. At least one of the direction, distance, etc. of the first electronic device from the second electronic device is measured based on the scanned star flash broadcasting of the first electronic device.
[0154] In some embodiments, the second electronic device can determine the distance between the first electronic device and the second electronic device based on the carrier phase in the star flash broadcasting signal of the first electronic device. Alternatively, the second electronic device can also determine the distance between the first electronic device and the second electronic device based on the strength of the star flash broadcasting signal of the first electronic device. For example, the second electronic device can be preconfigured with a corresponding relationship between the star flash broadcasting signal strength and the distance, so that the second electronic device can determine the distance between the first electronic device and the second electronic device based on the corresponding relationship and the received star flash broadcasting signal strength of the first electronic device.
[0155] In some embodiments, the AR module is integrated in the star flash module, and the second electronic device can determine the direction of the first electronic device from the second electronic device based on the AR module. The AR module can be various AR technologies capable of motion tracking, environment tracking, human and face tracking, etc., such as an integrated AR development kit, including but not limited to one or more of AR Engine, AR Kit, AR Core, etc. In other words, the AR technology is integrated in the star flash module. Optionally, the AR module can be implemented by hardware, or by a combination of software and hardware. When the second electronic device sends the ranging and angle measuring instruction to the first electronic device by the above method, the second electronic device can also start the AR module to perform the process of determining the direction of the first electronic device from the second electronic device. The following takes the AR module as an example of AR Engine to introduce the process. It can be understood that the AR Engine service is an engine for building augmented reality applications on device systems. AR Engine provides motion tracking, environment tracking, human and face tracking, etc. AR basic capabilities by integrating AR core algorithms.
[0156] The star flash module can start the AR engine to obtain the virtual space coordinates of the second electronic device. Specifically, in this process, the AR engine drives the camera of the second electronic device to collect the environment image around the second electronic device, selects the relative position and orientation with the second electronic device as the reference, and constructs a virtual space coordinate system. Then, the environment image collected by the camera is transmitted to the knowledge base (such as dll library, etc.), and an image comparison algorithm is called to compare the images and identify the image data. The image data is subjected to matrix transformation (such as multiple dense perspective transformation), the real data collected by the camera is compared with the identified image data and gradually narrowed down, the displacement difference is taken as the relative displacement of the image, the position of the virtual object is located through the image position, the real image is converted into the position relative to the second electronic device, and the position is returned to the AR engine to modify and adjust the displacement scale and size of the virtual object, so that the spatial size of the virtual object is kept in correct proportion with the originally constructed virtual space. It can be understood that the virtual space coordinates of the second electronic device can be the coordinates in the aforementioned constructed virtual space coordinate system.
[0157] Further, the star flash module can determine that the first electronic device is in the direction of the second electronic device based on the virtual space coordinates of the second electronic device obtained by the AR engine. In this way, since the effective distance that can be measured by the star flash is far, the distance and direction between the first electronic device and the second electronic device can be measured by the star flash, so that the lost device can be found when the lost device is in the power-off state or the low power state, and the distance and direction can be measured when the distance between the lost device and the finding device is far, so that the lost device can be accurately found, and the probability of finding the lost device by the user is improved.
[0158] Optionally, in the embodiment of the present application, the direction of the first electronic device to the second electronic device can be represented by the angle between the first electronic device and the second electronic device. In some examples, the angle can be the included angle between the direction of the line connecting the first electronic device and the second electronic device and the orientation of the second electronic device. Optionally, the orientation of the second electronic device can be the orientation of the second electronic device in the horizontal direction. For example, Figure 8 A schematic diagram of the angle between the first electronic device and the second electronic device is shown. Still taking the first electronic device as the mobile phone 20 and the second electronic device as the mobile phone 10 as an example, as shown in Figure 8 The orientation of the mobile phone 10 is the direction of the straight line 1, and the orientation of the mobile phone 20 is the direction of the straight line 2, so the included angle between the mobile phone 10 and the mobile phone 20 can be angle A.
[0159] It can be understood that the angle between the first electronic device and the second electronic device can also have other definitions, as long as it can represent the direction of the first electronic device to the second electronic device.
[0160] As another possible implementation, the first electronic device can also be determined to be at least one of a direction, a distance, etc. of the second electronic device based on ultrasonic data. In this implementation, after the first electronic device establishes a connection with the second electronic device, the second electronic device can send a ranging and angle measurement instruction to the first electronic device, which can be used to instruct the first electronic device to send ultrasonic data. In this implementation, when the first electronic device is in the power-off state, the speaker module is still in the working state, that is, the first electronic device still maintains power supply to the speaker module.
[0161] Specifically, in combination with the architecture shown in Figure 4 After the Bluetooth module of the second electronic device establishes a connection with the Bluetooth module of the first electronic device, the end-side network search service of the second electronic device generates a ranging and angle measurement instruction and sends the instruction to the Bluetooth module of the second electronic device. Then, based on the established Bluetooth connection, the Bluetooth module of the second electronic device sends the ranging and angle measurement instruction to the Bluetooth module of the first electronic device. Correspondingly, after the Bluetooth module of the first electronic device receives the ranging and angle measurement instruction, it executes the (12) shown in Figure 4 to drive the speaker module of the first electronic device to send ultrasonic data. At the same time, the microphone module of the second electronic device starts to acquire the ultrasonic data of the first electronic device, and measures at least one of the direction, distance, etc. of the first electronic device based on the ultrasonic data. For the implementation of ultrasonic ranging and angle measurement, please refer to the implementation in the related art.
[0162] In some embodiments, there can also be other electronic devices in addition to the first electronic device in the vicinity of the second electronic device sending ultrasonic data, so as to ensure that the ultrasonic data acquired by the second electronic device is from the first electronic device. In some implementations, the ultrasonic data can carry information representing the identity of the first electronic device, such as the identification of the first electronic device, or the ultrasonic data can be ultrasonic waves of a specific frequency band, and the second electronic device can acquire the ultrasonic data of the specific frequency band.
[0163] In addition, since the basic principle of ultrasonic positioning is to calculate the distance by using the propagation speed of ultrasonic waves in air or medium. Generally, the ultrasonic transmitter transmits ultrasonic signals to the target object, and when the ultrasonic signals meet the object and reflect back, the ultrasonic receiver captures the reflected signals. The distance between the ultrasonic transmitter and the object can be calculated by measuring the time difference between the transmitted signal and the received signal. Therefore, in some embodiments, the second electronic device can obtain the ultrasonic data emitted by the first electronic device multiple times, so that the determined direction, distance, etc. of the first electronic device relative to the electronic device is more accurate. In addition, since the first electronic device or the second electronic device can be moving, the second electronic device can obtain the ultrasonic data emitted by the first electronic device multiple times, so that the determined direction, distance, etc. of the first electronic device relative to the electronic device can be updated in time.
[0164] Therefore, since ultrasonic waves can support high-precision ranging and angle measurement, using ultrasonic data to measure the direction and distance of the lost device not only enables the lost device to be found when it is in a power-off state or a low-power state, but also enables high-precision distance and direction measurement, thereby enabling accurate finding of the lost device and improving the probability of the user finding the lost device.
[0165] Optionally, the above two implementation manners can be used alone or in combination. When used in combination, the second electronic device can determine the final direction and distance by combining the distance and direction measured based on the star flash module and the distance and direction measured based on the ultrasonic data. It can be understood that the aforementioned direction and distance refer to the direction and distance of the first electronic device relative to the second electronic device. Therefore, since the star flash can measure a relatively long effective distance, but the precision of ranging and angle measurement is relatively low compared to ultrasonic waves, and the ultrasonic wave can measure an effective distance smaller than the star flash, using the combination of the two can not only enable distance and direction measurement when the distance between the lost device and the finding device is relatively long, but also improve the measurement precision, thereby enabling accurate finding of the lost device and improving the probability of the user finding the lost device.
[0166] In one possible determination manner, the final direction and distance can be determined based on at least one of the scenario in which the first electronic device is located and the distance between the first electronic device and the second electronic device. Specifically, when the first electronic device is in a bag scenario, the direction and distance measured based on the star flash module can be determined as the final direction and distance. When the first electronic device is in a non-bag scenario, the final direction and distance can also be determined based on the distance between the first electronic device and the second electronic device. Optionally, the distance between the first electronic device and the second electronic device can refer to the distance measured based on the star flash module, or can also refer to the distance measured based on the ultrasonic data.
[0167] In a possible implementation, when the distance between the first electronic device and the second electronic device is greater than or equal to the preset distance, it can be determined that the direction and distance measured based on the star flash module are determined as the final direction and distance. Conversely, when the distance between the first electronic device and the second electronic device is less than the preset distance, it can be determined that the direction and distance measured based on the ultrasonic data are determined as the final direction and distance.
[0168] It can be understood that in the embodiments of the present application, the luggage scenario can refer to a scenario in which the first electronic device is placed in a luggage (such as a backpack, a suitcase, etc.). For example, the second electronic device can determine whether the first electronic device is in a luggage scenario based on the signal strength of the Bluetooth broadcast or the signal strength of the star flash broadcast, and the embodiments of the present application do not limit the manner of determining whether the first electronic device is in a luggage scenario.
[0169] The preset distance can be related to the performance of star flash ranging and angle measurement, and the performance of Bluetooth ranging and angle measurement. For example, Table 1 shows some examples of performance parameters related to ranging and angle measurement provided by the embodiments of the present application.
[0170] Table 1
[0171]
[0172] As shown in Table 1, the ultrasonic wave is superior to the star flash in ranging error and directivity (i.e., direction measurement accuracy), the star flash is superior to the ultrasonic wave and UWB in effective distance (i.e., the farthest distance that can be measured), and the cost of the ultrasonic wave and the star flash is lower than that of the UWB. Therefore, in combination with the performance parameters shown in Table 1, in some examples, the preset distance can be 3 meters, and of course the preset distance can be set by the developer based on actual needs.
[0173] Of course, in other determination manners, different weights can be set for the direction and distance measured based on the star flash module and the direction and distance measured based on the ultrasonic data, and the final direction and distance can be calculated based on the set weights.
[0174] Optionally, in the embodiments of the present application, the ranging and angle measurement instruction described above can be triggered automatically by the second electronic device, or can be triggered actively by the user. For example, the second electronic device is a mobile phone 10, and the interface shown in (1) of FIG. 8A can be displayed on the mobile phone 10. Figure 7 For example, the second electronic device is a mobile phone 10, and the interface shown in (1) of FIG. 8A can be displayed on the mobile phone 10.
[0175] Optionally, in the embodiments of the present application, in order to ensure that the electronic device receiving the ranging and angle measuring instruction is the first electronic device, and in order to facilitate the first electronic device to verify the identity of the second electronic device and ensure the security of the communication, the ranging and angle measuring instruction can be encrypted. For example, the network service on the end side of the second electronic device can further perform Figure 4 Optionally, the key management module can use the identity authentication key to encrypt, and correspondingly, in some embodiments, the identity authentication key can be a same key held by the first electronic device and the second electronic device, and the identity authentication key can be fixed.
[0176] In other embodiments, the identity authentication key can be a variable key, that is, the identity authentication key used by the second electronic device is different at different time. In this embodiment, as a possible implementation, the update period of the identity authentication key can be the same as the update period of the derived public key P of the offline broadcast key, that is, the update period of the identity authentication key can be consistent with the Bluetooth broadcast period of the first electronic device, for example: if the first electronic device performs Bluetooth broadcast every 15 minutes, and performs Bluetooth broadcast for two days, a total of 96 identity authentication keys are required.
[0177] Optionally, the identity authentication key can be generated by the first electronic device, for example, the first electronic device can generate the identity authentication key at the time of generating the derived key of the offline broadcast key described above. Then, the first electronic device can upload the identity authentication key to the server. Correspondingly, the second electronic device can obtain the identity authentication key from the server. It can be understood that when the identity authentication key is a variable key, the first electronic device can upload all the generated identity authentication keys to the server at the same time. Alternatively, the first electronic device can also carry the identity authentication key in the Bluetooth broadcast when sending the Bluetooth broadcast as described above, so that when the second electronic device scans the Bluetooth broadcast of the first electronic device and successfully decrypts using the offline broadcast key, the identity authentication key can be obtained. It can be understood that the embodiments of the present application do not limit the way in which the second electronic device obtains the identity authentication key.
[0178] Optionally, the identity authentication key and the offline broadcast key described in the embodiments of the present application can be the same or different.
[0179] In some embodiments, the second electronic device can output a corresponding interface to the user both during the process of determining the direction and distance of the first electronic device and after obtaining the direction and distance of the first electronic device, so that the user can know the progress and details of the precise search. For example, before the second electronic device obtains the direction of the first electronic device, such as when the StarSpark module starts the AR engine to obtain the direction of the first electronic device, taking mobile phone 10 as an example, mobile phone 10 can display... Figure 9 The interface 900 shown in (1) can first output the distance of the first electronic device (e.g., 50 meters) and then output a reminder message 901. The user can operate according to the instructions of the reminder message 901 so that the second electronic device can obtain the direction of the first electronic device.
[0180] Subsequently, after obtaining the orientation of the first electronic device, the mobile phone 10 can display as follows: Figure 9 Interface 910 shown in (2) Figure 9 The interface 930 shown in (4) is used to output the direction of the first electronic device. Among them, Figure 9 Interface 910 shown in (2) Figure 9 The arrows in the interface 930 shown in (4) indicate the direction in which the first electronic device is located relative to the second electronic device, and the arc range in which the arrow points represents the reliability, or accuracy, of that direction. As the user moves continuously according to the arc range indicated by the arrow, such as... Figure 9 Interface 910 shown in (2) Figure 9 The interface 930 shown in (4) indicates that the distance between the first electronic device and the second electronic device is getting closer and closer (e.g., changing from 40 meters to 5 meters), and the arc range pointed to by the arrow is gradually converging, that is, the direction of the first electronic device in relation to the second electronic device is becoming more and more precise, such as converging to Figure 9 The dot shape shown in (4) allows for precise positioning of the first electronic device. Optionally, when the arc pointed to by the arrow converges to the form shown in (4), the first electronic device can be precisely located. Figure 9 When the dot form shown in (4) is used, the mobile phone 10 can also change the background color, etc.
[0181] Optional, Figure 9 Middle (1) to Figure 9 The interface shown in (4) may also include a play ringtone button 902, such as Figure 9 The play ringtone button 902 shown in (4) can be made operable, such as Figure 9 Middle (1) to Figure 9 The play ringtone button 902 shown in (3) can be rendered inoperable. This is because the second electronic device outputs... Figure 9 Middle (1) to Figure 9When the interface shown in (3) is in a certain time, the distance between the first electronic device and the second electronic device is relatively far. At this time, even if the first electronic device is controlled to ring by playing the ringtone button 902, the user may not be able to hear the ringtone, which will not help the user find the first electronic device. When the second electronic device outputs Figure 9 Middle (1) to Figure 9 When the interface shown in (3) is in a relatively close position, the first electronic device and the second electronic device are relatively close. At this time, the first electronic device is controlled to ring by playing the ringtone button 902, and the user is more likely to hear the ringtone, which is helpful for the user to find the first electronic device.
[0182] In some embodiments, the instructions for achieving precise location may further include a ringing instruction, which can be used to control the first electronic device to ring. Similarly, the ringing instruction can be automatically triggered by the second electronic device or actively triggered by the user. Taking automatic triggering by the second electronic device as an example, if the second electronic device determines that the distance between it and the first electronic device is less than a certain set distance, the second electronic device can automatically trigger the ringing instruction. For example, if the second electronic device displays... Figure 7 When the interface shown in (4) is used, the second electronic device can also automatically trigger a ringing command.
[0183] Taking user-initiated triggering as an example, and exemplified by using mobile phone 10 as the second electronic device, in such cases... Figure 9 The interface shown in (1) may also include a play ringtone button 702. The user can perform operations such as clicking the play ringtone button 702, and in response to this operation, the second electronic device can send a ringing command to the first electronic device. Alternatively, the user can... Figure 9 The interface shown in (4) includes a play ringtone button 902 that performs operations such as clicking. In response to this user operation, the second electronic device can also send a ringing command. Alternatively, when the second electronic device determines that the distance between it and the first electronic device is less than a certain set distance, the second electronic device can display an interface for triggering a ringing command, which the user can use to trigger the ringing command. Taking the second electronic device as mobile phone 10 as an example, when mobile phone 10 displays an interface such as... Figure 10 After the interface shown in (4), the mobile phone 10 can also jump to Figure 11 The interface 1000 shown may include a reminder message 1001 and a play ringtone button 1002. The reminder message 1001 can be used to remind the user that a first electronic device is nearby and that the user can try playing a ringtone to locate the first electronic device. Furthermore, based on the reminder message 1001, the user can perform an operation such as clicking the play ringtone button 1002, and in response to this operation, the mobile phone 10 can send a ringing command to the first electronic device.
[0184] Exemplarily, Figure 11 A flowchart of a device searching method provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the method comprises the following steps: Figure 11
[0185] S1101, the second electronic device sends a first instruction to the first electronic device via the near field communication module. Correspondingly, the first electronic device receives the first instruction from the second electronic device via the near field communication module.
[0186] In the embodiment, the first electronic device and the second electronic device each comprise a near field communication module and a star flash module, and the near field communication module and the star flash module of the first electronic device are in working state when the first electronic device is in the power-off state or the power saving mode. Exemplarily, the near field communication module can be a Bluetooth module or the star flash module. Optionally, when the near field communication module is the star flash module, Figure 7 In the embodiment, the near field communication module and the star flash module of the first electronic device and the second electronic device are the same module. It can be understood that, at present, when the first electronic device is in the power saving mode, the first electronic device generally closes the network, Bluetooth and other functions, but in the embodiment, the first electronic device does not close the Bluetooth function and keeps the normal working of the Bluetooth when the first electronic device is in the power saving mode. It can also be understood that the working state means that the module can be in normal operation state.
[0187] In the step S1101, the first electronic device is in the power-off state or the power saving mode, and the first electronic device and the second electronic device have established a connection via the near field communication module.
[0188] Exemplarily, the first instruction can be the ranging and angling instruction as described above. In some embodiments, the first instruction can be encrypted by using a first key, and correspondingly, the near field communication module of the first electronic device can decrypt the first instruction by using a second key. Optionally, the first key and the second key can be the same or different, and the first key and the second key can be the identity authentication key as described above.
[0189] In some embodiments, the second electronic device can display a first interface (such as the interface shown in (1) of FIG. 2), which comprises a first control (such as the star flash searching button 701 shown in (1) of FIG. 2) and the location information of the first electronic device. In response to the operation of the first control, the second electronic device sends the first instruction to the first electronic device via the near field communication module. The introduction of the second electronic device triggering the first instruction can refer to the related introduction of triggering the ranging and angling instruction as described above. Figure 7 Figure 9
[0190] S1102, in response to the first instruction, the close-range communication module of the first electronic device starts the star flash module to send the first broadcast message. Correspondingly, the star flash module of the second electronic device receives the first broadcast message.
[0191] In some embodiments, the first electronic device can further comprise a loudspeaker module, and the second electronic device can further comprise a microphone module. In response to the first instruction, the first electronic device can further start the loudspeaker module to send ultrasonic data, and correspondingly, the second electronic device can further start the microphone module to receive the ultrasonic data. Optionally, in this embodiment, the first instruction can be implemented as one or more messages.
[0192] In some other embodiments, when the close-range communication module of the first electronic device is a Bluetooth module, the first electronic device can start the Bluetooth module to send the first broadcast message in response to the first instruction.
[0193] S1103, in response to the first broadcast message, the second electronic device outputs at least one of the distance between the first electronic device and the second electronic device and the direction of the first electronic device relative to the second electronic device.
[0194] In some embodiments, when the second electronic device further receives ultrasonic data from the first electronic device, the second electronic device can further output at least one of the distance between the first electronic device and the second electronic device and the direction of the first electronic device relative to the second electronic device in response to the first broadcast message (e.g., the star flash broadcast) and the ultrasonic data.
[0195] In this embodiment, as one possible implementation, the second electronic device determines a first distance between the first electronic device and the second electronic device based on the first broadcast message, and a first direction of the first electronic device relative to the second electronic device. Optionally, the second electronic device can determine the first distance between the first electronic device and the second electronic device based on the first broadcast message and an AR engine, and the first direction of the first electronic device relative to the second electronic device. The second electronic device determines a second distance between the first electronic device and the second electronic device based on the ultrasonic data, and a second direction of the first electronic device relative to the second electronic device. The second electronic device outputs at least one of the distance between the first electronic device and the second electronic device and the direction of the first electronic device relative to the second electronic device based on the first distance, the first direction, the second distance, and the second direction. For this specific implementation, please refer to the related implementation of determining the distance and direction based on the ultrasonic data and the star flash broadcast described above.
[0196] In some embodiments, when the first electronic device is in a bag / luggage scenario, the output distance between the first and second electronic devices is a first distance, and the output direction of the first electronic device being in the second electronic device is a first direction. In some embodiments, when the first electronic device is not in a bag / luggage scenario, if the distance between the first and second electronic devices is greater than or equal to a first preset distance, then the output distance between the first and second electronic devices is the first distance, and the output direction of the first electronic device being in the second electronic device is the first direction. Alternatively, when the first electronic device is not in a bag / luggage scenario, if the distance between the first and second electronic devices is less than the first preset distance, then the output distance between the first and second electronic devices is a second distance, and the output direction of the first electronic device being in the second electronic device is the second direction.
[0197] Optionally, the second electronic device can be accessed via, for example... Figure 9 The interface shown outputs the distance between the first electronic device and the second electronic device, with the first electronic device positioned in the direction of the second electronic device.
[0198] In some embodiments, in response to a first broadcast message at a first moment, the second electronic device displays one or more of a first distance, a first direction, and first information. The first distance is the distance between the first and second electronic devices at the first moment, the first direction is the direction in which the first electronic device is positioned relative to the second electronic device at the first moment, and the first information is used to characterize the reliability of the first direction. In response to a first broadcast message at a second moment, the second electronic device displays one or more of a second distance, a second direction, and second information. The second distance is the distance between the first and second electronic devices at the second moment, the second direction is used to indicate the direction in which the first electronic device is positioned relative to the second electronic device at the second moment, and the second information is used to characterize the reliability of the second direction. Optionally, the first moment and the second moment can be different moments. For example, the first distance can be as follows: Figure 9 As shown in (2), the 40 meters in the first direction can be as follows: Figure 9 The direction of the arrow shown in (2). The second distance can be as follows Figure 9 As shown in (3), the second direction can be as follows: Figure 9 The arrow shown in (3) points in the direction of the text. Optionally, the first and second information can be presented as... Figure 9 The range of arcs indicated by the arrows mentioned above can also be presented in other forms of information.
[0199] In some examples, the first distance is greater than the second distance, and the confidence level of the first direction is less than that of the second direction. For example, when the aforementioned confidence levels are adopted as follows... Figure 9 When using the range of arcs indicated by the arrows, the larger the range, the lower the reliability. For example...Figure 9 The 40 meters shown in the middle (2) is greater than the 35 meters shown in the middle (3), and Figure 9 The 40 meters shown in the middle (2) is greater than the 35 meters shown in the middle (3), and Figure 11 The 40 meters shown in the middle (2) is greater than the 35 meters shown in the middle (3), and Figure 11 The 40 meters shown in the middle (2) is greater than the 35 meters shown in the middle (3), and
[0200] In some embodiments, the second electronic device's near field communication module can also send a second instruction (e.g., the above-mentioned ring instruction) to the first electronic device's near field communication module. In response to the second instruction, the second electronic device's near field communication module can activate the loudspeaker module to ring. Alternatively, the second electronic device can send the second instruction when the distance between the first electronic device and the second electronic device is less than a second preset distance, or in response to a user operation, etc.
[0201] Alternatively, in some embodiments, before performing the step S1101 shown above, Figure 12 Alternatively, in some embodiments, before performing the step S1101 shown above, Figure 1 to Figure 11 The method shown above further includes steps S1104-S1105.
[0202] S1104. The first electronic device's near field communication module sends a second broadcast message. In response, the second electronic device's near field communication module receives the second broadcast message.
[0203] In some embodiments, when performing the step S1104, the first electronic device is in a power-off state or a power-saving mode.
[0204] In some embodiments, the second broadcast message (e.g., the above-mentioned Bluetooth broadcast) can carry a third key, which can be used by the second electronic device to verify the identity of the first electronic device. For example, the third key can be an offline broadcast key as described above.
[0205] Alternatively, before the first electronic device is in a power-off state or a power-saving mode, the first electronic device can also generate at least one of a second key and a third key and send it to the near field communication module. For details, please refer to the above-mentioned related implementation.
[0206] In some embodiments, the first electronic device's near field communication module uses different second keys to decrypt the first instruction when it is received in different broadcast periods. Alternatively, the near field communication module carries different third keys in the second broadcast message when it sends the second broadcast message in different broadcast periods. The broadcast period is the period in which the near field communication module sends the second broadcast message, e.g., the above-mentioned Bluetooth broadcast period.
[0207] S1105, in response to the second broadcast message, the first electronic device's near distance communication module establishes connection with the second electronic device's near distance communication module.
[0208] Exemplarily, the connection can be a GATT connection or the like as described above.
[0209] The above mainly introduces the schemes provided by the embodiments of the present application from the perspective of methods. It can be understood that, in order to implement the above functions, the electronic device comprises hardware structure and / or software modules corresponding to the execution of each function. The units and algorithm steps of each example described in combination with the embodiments disclosed in the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is implemented in hardware or computer driven hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of the present application.
[0210] The embodiments of the present application can divide the functional modules of the electronic device according to the above method examples, for example, each functional module can be divided according to each function, or two or more functions can be integrated in one processing unit. The integrated unit can be in the form of hardware or software functional module. It should be noted that the division of units in the embodiments of the present application is illustrative, and is only a logical functional division. When actually implemented, there can be another division manner.
[0211] As shown in Figure 1 to Figure 11 , it is a structure schematic diagram of a first electronic device provided by the embodiments of the present application. The first electronic device 1200 can be used to implement the methods recorded in each of the above method embodiments. Exemplarily, the first electronic device 1200 can specifically include: a near distance communication module 1201, a star flash module 1202, a loudspeaker module 1203, etc.
[0212] Among them, the near distance communication module 1201 is provided with a processing module 1204, a communication module 1205. Optionally, a storage module 1206 can also be provided. The processing module 1204 is used to support the first electronic device 1200 to execute the processing functions described in any one of Figure 12 The communication module 1202 is used to support the first electronic device 1200 to execute the communication functions described in any one of Figure 13 The storage module 1206 stores programs or instructions. When the processing module 1204 executes the programs or instructions, the first electronic device 1200 as shown in Figure 1 to Figure 11 can execute the methods shown in the above method embodiments.
[0213] The Star Flash module 1202 is used to support the first electronic device 1200 in performing Star Flash broadcasts.
[0214] The speaker module 1203 is used to support the first electronic device 1200 in performing functions such as ringing and emitting ultrasonic data.
[0215] like Figure 1 to Figure 11 The diagram shown is a structural schematic of a second electronic device provided in an embodiment of this application. The second electronic device 1300 can be used to implement the methods described in the above method embodiments. For example, the second electronic device 1300 may specifically include: a processing module 1301, a near-field communication module 1302, a flash module 1303, a microphone 1304, etc.
[0216] The processing module 1301 is used to support the execution of the second electronic device 1300. Figure 13 The processing function described in any one of the following.
[0217] The short-range communication module 1302 is used to support the second electronic device 1300 in performing its functions. Figure 13 The communication function described in any one of the following statements.
[0218] The Star Flash module 1303 is used to support the second electronic device 1300 in scanning Star Flash broadcasts.
[0219] The microphone module 1304 is used to support the acquisition of ultrasonic data by a second electronic device.
[0220] Optional, Figure 13 The second electronic device 1300 shown may further include a display module 1305, which can be used by the second electronic device 1300 to output the distance between the first electronic device and the second electronic device, wherein the first electronic device is in at least one of the directions of the second electronic device.
[0221] Optional, Figure 13 The second electronic device 1300 shown may also include a storage module. Figure 12 (not shown in the image), this storage module stores programs or instructions. When the processing module 1301 executes the program or instructions, it causes... Figure 13 The second electronic device 1300 shown can perform the method shown in the above method embodiment.
[0222] Figure 12 , Figure 13 The technical effects of the electronic device shown can be referred to the technical effects of the method shown in the above method embodiments, and will not be repeated here. Figure 14 , The processing module shown can be implemented by a processor or a processor-related circuit component, and can be a processor or a processing module. The communication module can be implemented by a transceiver or a transceiver-related circuit component, and can be a transceiver or a communication module. The display module can be implemented by a display screen-related component.
[0223] The embodiments of the present application also provide a chip system, which includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 can be interconnected by a line. For example, the interface circuit 1402 can be used to receive signals from other devices. For another example, the interface circuit 1402 can be used to send signals to other devices (for example, the processor 1401). Illustratively, the interface circuit 1402 can read instructions stored in a memory and send the instructions to the processor 1401. When the instructions are executed by the processor 1401, the electronic device can perform each step performed by the electronic device in the above embodiments. Of course, the chip system can also include other discrete devices, and the embodiments of the present application do not make specific limitations thereto.
[0224] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which is implemented by reading software codes stored in a memory.
[0225] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor, or can be separately arranged from the processor, and the present application does not make specific limitations thereto. Illustratively, the memory can be a non-transient processor, for example, a read-only memory (ROM), which can be integrated with the processor on the same chip, or can be separately arranged on different chips. The present application does not make specific limitations to the type of the memory, and the arrangement of the memory and the processor.
[0226] For example, the chip system can 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 chip.
[0227] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The method steps disclosed in combination with the embodiments of the present application can be directly embodied as hardware processor execution, or executed by a combination of hardware and software modules in the processor.
[0228] The embodiments of the present application also provide a computer storage medium, which stores computer instructions, and when the computer instructions run on an electronic device, the electronic device executes the method in the above method embodiments.
[0229] The embodiments of the present application provide a computer program product, which includes a computer program or instructions, and when the computer program or instructions run on a computer, the computer executes the method in the above method embodiments.
[0230] In addition, the embodiments of the present application also provide a device, which can be a chip, a component or a module. The device can include a processor and a memory connected to each other. The memory is used to store computer execution instructions. When the device runs, the processor can execute the computer execution instructions stored in the memory, so that the device executes the method in the above method embodiments.
[0231] The electronic device, the computer storage medium, the computer program product or the chip provided in the embodiments can be used to execute the corresponding method provided above, and thus the beneficial effects that can be achieved are referable to the beneficial effects in the corresponding method provided above, which will not be described herein again.
[0232] Through the description of the above embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the division of the above functional modules is exemplified, and in actual application, the above functions can be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
[0233] In several embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. The embodiments can be combined or referred to each other without conflict. The device embodiments described above are only schematic, for example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another device, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed each other can be indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.
[0234] The units described as separate components can or can not be physically separate, and the components shown as units can be one physical unit or multiple physical units, that is, can be located in one place, or can be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0235] In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present alone, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of software functional unit.
[0236] If the integrated unit is realized in the form of software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on such understanding, the technical scheme of the embodiment of the present application essentially or the part of the prior art that makes a contribution or all or part of the technical scheme can be embodied in the form of software product stored in a storage medium, including a plurality of instructions for causing an equipment (which can be a single chip microcomputer, chip, etc.) or processor to execute all or part of the steps of the method of each embodiment of the present application. The foregoing storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), magnetic disk or optical disk and various program code storage media.
[0237] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A device search method, characterized by, The method is applied to a first electronic device, the first electronic device comprising a close-range communication module and a star flash module, the close-range communication module and the star flash module being in a working state when the first electronic device is in a shutdown state or a power saving mode, and the method comprising: In a case where the first electronic device is in a shutdown state or a power saving mode and the first electronic device is connected with a second electronic device through the close-range communication module, the close-range communication module receives a first instruction from the second electronic device; In response to the first instruction, the close-range communication module starts the star flash module to send a first broadcast message, the first broadcast message being used to determine a distance between the first electronic device and the second electronic device, the first electronic device being in at least one of directions of the second electronic device.
2. The method of claim 1, wherein, The first electronic device further comprises a loudspeaker module, the loudspeaker module being in a working state when the first electronic device is in a shutdown state or a power saving mode; and the method further comprises: In response to the first instruction, the close-range communication module starts the star flash module to send a first broadcast message, and starts the loudspeaker module to send ultrasonic data, the ultrasonic data being used to determine a distance between the first electronic device and the second electronic device, the first electronic device being in at least one of directions of the second electronic device.
3. The method according to claim 1 or 2, characterized in that, The first electronic device further comprises a loudspeaker module, the loudspeaker module being in a working state when the first electronic device is in a shutdown state or a power saving mode; and the method further comprises: The close-range communication module receives a second instruction from the second electronic device; In response to the second instruction, the close-range communication module starts the loudspeaker module to ring.
4. The method according to any one of claims 1-3, characterized in that, The first instruction is encrypted by using a first key; and before the close-range communication module starts the star flash module to send the first broadcast message in response to the first instruction, the method further comprises: The close-range communication module decrypts the first instruction by using a second key.
5. The method according to any one of claims 1 to 4, characterized in that, Before the close-range communication module receives the first instruction from the second electronic device, the method further comprises: In a case where the first electronic device is in a shutdown state or a power saving mode, the close-range communication module sends a second broadcast message, the second broadcast message being used to establish a connection with the second electronic device.
6. The method of claim 5, wherein, The second broadcast message carries a third key, the third key being used by the second electronic device to verify an identity of the first electronic device.
7. The method of claim 6, wherein, Before the close-range communication module sends the second broadcast message in a case where the first electronic device is in a shutdown state or a power saving mode, the method further comprises: Before the first electronic device is in the shutdown state or the power saving mode, the first electronic device generates at least one of the second key and the third key; The first electronic device sends the at least one of the second key and the third key to the close-range communication module.
8. The method of claim 6 or 7, wherein The near field communication module decrypts the first instruction using different second keys when the near field communication module receives the first instruction in different broadcast periods. Alternatively, the near field communication module carries different third keys in the second broadcast message when the near field communication module sends the second broadcast message in different broadcast periods. The broadcast period is a period in which the near field communication module sends the second broadcast message.
9. The method according to any one of claims 1-8, characterized in that, The near field communication module is a Bluetooth module or a star flash module.
10. A device search method, characterized by, The second electronic device includes a near field communication module and a star flash module, and the near field communication module is connected to the first electronic device in a shutdown state or a power saving mode. The method comprises: The second electronic device sends a first instruction to the first electronic device through the near field communication module; In response to the first instruction, the second electronic device receives a first broadcast message from the first electronic device through the star flash module; In response to the first broadcast message, the second electronic device outputs the distance between the first electronic device and the second electronic device, and the first electronic device is at least one of the directions of the second electronic device.
11. The method of claim 10, wherein, The second electronic device also includes a microphone module; in response to the first instruction, the second electronic device receives a first broadcast message from the first electronic device through the star flash module, which comprises: In response to the first instruction, the second electronic device receives the first broadcast message through the star flash module, and receives ultrasonic data from the first electronic device through the microphone module.
12. The method of claim 11, wherein, In response to the first broadcast message, the second electronic device outputs the distance between the first electronic device and the second electronic device, and the first electronic device is at least one of the directions of the second electronic device. In response to the first broadcast message and the ultrasonic data, the second electronic device outputs the distance between the first electronic device and the second electronic device, and the first electronic device is at least one of the directions of the second electronic device.
13. The method of claim 12, wherein, Before the second electronic device outputs the distance between the first electronic device and the second electronic device, and the first electronic device is at least one of the directions of the second electronic device in response to the first broadcast message and the ultrasonic data, the method further comprises: The second electronic device determines a first distance between the first electronic device and the second electronic device based on the first broadcast message, and the first electronic device is in a first direction of the second electronic device; The second electronic device determines a second distance between the first electronic device and the second electronic device based on the ultrasonic data, and the second electronic device is in a second direction of the second electronic device; The second electronic device outputs the distance between the first electronic device and the second electronic device based on the first distance, the first direction, the second distance and the second direction, and the first electronic device is at least one of the directions of the second electronic device.
14. The method of claim 13, wherein, When the first electronic device is in the luggage scenario, the output distance between the first electronic device and the second electronic device is the first distance, and the output direction of the first electronic device relative to the second electronic device is the first direction.
15. The method according to claim 13 or 14, characterized in that, When the first electronic device is in the non-luggage scenario, if the distance between the first electronic device and the second electronic device is greater than or equal to a first preset distance, the output distance between the first electronic device and the second electronic device is the first distance, and the output direction of the first electronic device relative to the second electronic device is the first direction. Or, when the first electronic device is in the non-luggage scenario, if the distance between the first electronic device and the second electronic device is less than the first preset distance, the output distance between the first electronic device and the second electronic device is the second distance, and the output direction of the first electronic device relative to the second electronic device is the second direction.
16. The method according to any one of claims 13-15, characterized by, The second electronic device further comprises an AR engine; the second electronic device determines the first distance between the first electronic device and the second electronic device and the first direction of the first electronic device relative to the second electronic device based on the first broadcast message, comprising: The second electronic device determines the first distance between the first electronic device and the second electronic device and the first direction of the first electronic device relative to the second electronic device based on the first broadcast message and the AR engine.
17. The method according to any one of claims 10-16, characterized by, The method further comprises: When the distance between the first electronic device and the second electronic device is less than a second preset distance, the second electronic device sends a second instruction to the first electronic device through the short-distance communication module, and the second instruction is used to instruct the first electronic device to ring.
18. The method according to any one of claims 10-17, characterized by, The second electronic device sends a first instruction to the first electronic device through the short-distance communication module, comprising: The second electronic device displays a first interface, and the first interface contains a first control and position information of the first electronic device; In response to an operation on the first control, the second electronic device sends a first instruction to the first electronic device through the short-distance communication module.
19. The method according to any one of claims 10-18, characterized in that, Before the second electronic device sends a first instruction to the first electronic device through the short-distance communication module, the method further comprises: The second electronic device receives a second broadcast message from the first electronic device through the short-distance communication module; In response to the second broadcast message, the second electronic device connects with the first electronic device through the short-distance communication module.
20. The method of any one of claims 10-19, wherein, In response to the first broadcast message, the second electronic device outputs at least one of the distance between the first electronic device and the second electronic device and the direction of the first electronic device relative to the second electronic device, comprising: In response to the first broadcast message at the first time, the second electronic device displays one or more of a first distance, a first direction, and a first information, the first distance being a distance between the first electronic device and the second electronic device at the first time, the first direction being a direction of the first electronic device from the second electronic device at the first time, and the first information being used to represent a trust level of the first direction; In response to the first broadcast message at the second time, the second electronic device displays one or more of a second distance, a second direction, and a second information, the second distance being a distance between the first electronic device and the second electronic device at the second time, the second direction being a direction of the first electronic device from the second electronic device at the second time, and the second information being used to represent a trust level of the second direction.
21. The method of claim 20, wherein, The first distance is greater than the second distance, and the trust level of the first direction is less than the trust level of the second direction.
22. The method of any one of claims 10-21, wherein, The direction of the first electronic device from the second electronic device is represented by an included angle between a direction of a line between the first electronic device and the second electronic device and an orientation of the second electronic device.
23. A method for use in a device lookup system, the method comprising: The device searching system includes a first electronic device and a second electronic device, the first electronic device and the second electronic device each include a near distance communication module and a star flash module, the near distance communication module of the first electronic device and the star flash module of the first electronic device are in a working state when the first electronic device is in a power-off state or a power saving mode, and the method includes: In a case where the first electronic device is in a power-off state or a power saving mode and the near distance communication module of the first electronic device and the near distance communication module of the second electronic device establish a connection, the near distance communication module of the second electronic device sends a first instruction to the near distance communication module of the first electronic device; In response to the first instruction, the star flash module of the first electronic device sends a first broadcast message to the star flash module of the second electronic device; In response to the first broadcast message, the second electronic device outputs at least one of a distance between the first electronic device and the second electronic device and a direction of the first electronic device from the second electronic device.
24. An electronic device, comprising: It includes: a near distance communication module, a star flash module, a processor, and a memory, the memory is coupled with the processor, the memory is used to store program code, the program code includes instructions, the processor reads the instructions from the memory, so that the electronic device executes the method in any one of claims 1-9, or so that the electronic device executes the method in any one of claims 10-22.
25. A computer readable storage medium, characterized in that, The computer readable storage medium includes a computer program, when the computer program runs on an electronic device, so that the electronic device executes the method in any one of claims 1-9, or so that the electronic device executes the method in any one of claims 10-22.
26. A computer program product, characterised in that, The computer program product comprises computer programs or instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-9, or cause the computer to perform the method of any one of claims 10-22.
27. A device lookup system, comprising: The computer program product comprises computer programs or instructions which, when run on a computer, cause the computer to perform the method of any one of claims 1-9, or cause the computer to perform the method of any one of claims 10-22.
Citation Information
Cited By
Device searching method and electronic device
EP4770150A1
Device searching method and electronic device
WO2025251581A1