Device searching method and electronic device
By utilizing short-range communication and a star-flash module in the power-off or power-saving mode of electronic devices, the problem of inaccurate offline retrieval in existing technologies has been solved, enabling precise device positioning and ringing functions, and improving the success rate of device retrieval.
Patent Information
- Application Number
- PCT/CN2024/139643
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-06-03
- Filing Date
- 2024-12-16
- Publication Date
- 2025-12-11
AI Technical Summary
When existing electronic devices are lost, the offline search function can only determine the general area, making it difficult to find them accurately, and it cannot respond to search commands when the device is powered off.
When the electronic device is powered off or in power-saving mode, it connects to the second device via a short-range communication module, activates the star flash module and speaker module, sends broadcast messages and ultrasonic data, determines the distance and direction of the device, and rings when powered off.
It enables accurate location and orientation of equipment even when it is powered off or has low power, increasing the probability of retrieval.
Smart Images

Figure CN2024139643_11122025_PF_FP_ABST
Abstract
Description
Device searching method and electronic device
[0001] The present application claims priority to the Chinese patent application No. 202410710825.6, filed on June 3, 2024, and entitled "Device searching method and electronic device", the whole content of which is incorporated herein by reference. TECHNICAL FIELD
[0002] The present application relates to the technical field of terminal, in particular to a device searching method and an electronic device. BACKGROUND
[0003] The electronic device (such as a mobile phone, a tablet, etc.) held by a user may be lost, which may cause the user's privacy to be leaked and property to be lost. 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 the user searches for the 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 that the lost electronic device is 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 that the lost electronic device is not connected to the network, such as the surrounding electronic device reports 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 low. SUMMARY
[0004] 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.
[0005] To achieve the above object, the present application adopts the following technical scheme:
[0006] In a first aspect, a device searching method is provided, 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 direction of the second electronic device.
[0007] 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 can be determined based on the foregoing scheme, the lost device is in the direction of the finding device, and the like, and thus the accurate finding of the lost device can be realized, and the probability of finding the lost device by the user can be improved.
[0008] In a possible design, the first electronic device further includes a loudspeaker module, and the loudspeaker module is in the working state when the first electronic device is in the power-off state or the power saving mode. The response of the close-range communication module to the first instruction to start the star flash module to send the first broadcast message includes that, in response to the first instruction, 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. 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.
[0009] 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.
[0010] 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.
[0011] 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.
[0012] 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 the 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.
[0013] 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.
[0014] 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.
[0015] 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.
[0016] In a possible design, the close-range communication module is a Bluetooth module or a star flash module.
[0017] 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 following steps: 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] 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.
[0025] 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 from 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 from the finding device.
[0026] 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 from 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 preset different 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 from the finding device are measured by combining the two aforementioned methods.
[0027] 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 from 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 from 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, the direction of the lost device from the finding device, etc.
[0028] 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.
[0029] 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 includes 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.
[0030] 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.
[0031] 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.
[0032] 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, the first distance being the distance between the first electronic device and the second electronic device at the first time, the first direction being the direction of the first electronic device relative to the second electronic device at the first time, and the first information being 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, the second distance being the distance between the first electronic device and the second electronic device at the second time, the second direction being used to indicate the direction of the first electronic device relative to the second electronic device at the second time, and the second information being 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.
[0033] 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.
[0034] In a possible design, the direction of the first electronic device relative to the second electronic device is represented by an 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.
[0035] The descriptions of other designs in the second aspect can refer to the descriptions of the corresponding designs in the first aspect.
[0036] In a third aspect, a method applied to a device searching system is provided. 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 close-range communication module and a star flash module. The close-range 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 shutdown state or a power saving mode. The method includes: when the first electronic device is in the shutdown state or the power saving mode and the close-range communication module of the first electronic device establishes a connection with the close-range communication module of the second electronic device, the close-range communication module of the second electronic device sends a first instruction to the close-range 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; 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.
[0037] In a possible design, the first electronic device further includes a loudspeaker module, and the second electronic device further includes a microphone module. The response of the star flash module of the first electronic device to the first instruction to send the first broadcast message to the star flash module of the second electronic device includes: in response to the first instruction, the star flash module of the first electronic device sends the first broadcast message, and the loudspeaker module sends ultrasonic data; and the star flash module of the second electronic device receives the first broadcast message, and the microphone module receives the ultrasonic data.
[0038] In a possible design, the response of the second electronic device to the first broadcast message to output the distance between the first electronic device and the second electronic device, and the first electronic device being in at least one of a direction of the second electronic device includes: 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 in at least one of a direction of the second electronic device.
[0039] In a possible design, the first electronic device further includes a loudspeaker module, and the second electronic device further includes a microphone module. The response of the star flash module of the first electronic device to the first instruction to send the first broadcast message to the star flash module of the second electronic device includes: in response to the first instruction, the star flash module of the first electronic device sends the first broadcast message, and the loudspeaker module sends ultrasonic data; and the star flash module of the second electronic device receives the first broadcast message, and the microphone module receives the ultrasonic data.
[0040] In a possible design, the first electronic device further includes a loudspeaker module, and the second electronic device further includes a microphone module. The response of the star flash module of the first electronic device to the first instruction to send the first broadcast message to the star flash module of the second electronic device includes: in response to the first instruction, the star flash module of the first electronic device sends the first broadcast message, and the loudspeaker module sends ultrasonic data; and the star flash module of the second electronic device receives the first broadcast message, and the microphone module receives the ultrasonic data.
[0041] 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.
[0042] 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.
[0043] 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.
[0044] 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.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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
[0053] FIG. 1 is a schematic diagram of a search interface provided by an embodiment of the present application;
[0054] FIG. 2a is a schematic diagram of a device searching scenario provided by an embodiment of the present application;
[0055] FIG. 2b is a schematic diagram of an architecture of a communication system provided by an embodiment of the present application;
[0056] FIG. 3 is a schematic diagram of a structure of an electronic device provided by an embodiment of the present application;
[0057] FIG. 4 is a schematic diagram of software structures of an electronic device and a server provided by an embodiment of the present application;
[0058] FIG. 5 is a schematic diagram of an interface of a user actively starting an offline searching function provided by an embodiment of the present application;
[0059] FIG. 6 is a schematic diagram of another interface of starting an offline searching function provided by an embodiment of the present application;
[0060] FIG. 7 is a schematic diagram of another search interface provided by an embodiment of the present application;
[0061] FIG. 8 is a schematic diagram of an angle between a first electronic device and a second electronic device provided by an embodiment of the present application;
[0062] FIG. 9 is a schematic diagram of another search interface provided by an embodiment of the present application;
[0063] FIG. 10 is a schematic diagram of another search interface provided by an embodiment of the present application;
[0064] FIG. 11 is a schematic diagram of a device search method provided by an embodiment of the present application;
[0065] FIG. 12 is a schematic diagram of a first electronic device provided by an embodiment of the present application;
[0066] FIG. 13 is a schematic diagram of a second electronic device provided by an embodiment of the present application;
[0067] FIG. 14 is a schematic diagram of a chip system provided by an embodiment of the present application. DETAILED DESCRIPTION
[0068] 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 relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent: A alone, A and B together, B alone, where A, B can be singular or plural.
[0069] In the description of the present application, unless otherwise specified, "multiple" means two or more than two. "At least one of the following" or the like means any combination of the items, including any combination of single item or multiple items. 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, c can be single or multiple.
[0070] In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, "first", "second" and the like are used to distinguish the same items or similar items with basically the same function and role. Those skilled in the art can understand that "first", "second" and the like do not limit the quantity and execution order, and "first", "second" and the like do not necessarily mean different.
[0071] 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 to the network, that is, in the scenario of the lost device being online, and report its position to the other electronic device in real time, so as to realize the online search of the lost device. This solution needs the lost device to be in the case of being powered on and connected to the network. Among them, the aforementioned other electronic device can be another device used by the user to search for the lost device, which is referred to as the search device below.
[0072] In another possible solution, in the case that the lost device is not connected to a network, i.e., in the scenario that the lost device is offline, the lost device can send a Bluetooth broadcast to the surrounding electronic devices. After the surrounding electronic devices receive the Bluetooth broadcast, the location information of the surrounding electronic devices is obtained through positioning technology, and the location information is reported to the finding device as the location of the lost device (i.e., the offline location of the lost device), so that the finding device can determine the approximate range of the lost device based on the location information reported by the surrounding electronic devices, to achieve offline finding of the lost device. In this solution, the lost device can be in a state of being powered on but not connected to a network, or in a powered-off state.
[0073] In the above solution for finding the lost device offline, only the approximate range of the lost device can be determined, and when the finding device is in the vicinity of the lost device, the direction, distance, etc. of the lost device relative to the finding device cannot be determined. Moreover, when the lost device is in a powered-off state, the above solution for offline finding cannot control the lost device to ring. For example, taking the finding device as a mobile phone 10, when a user finds the lost device through the mobile phone 10, the mobile phone 10 can present a finding interface 100 as shown in (1) of FIG. 1, which can be used to assist the user in finding the lost device. For example, the finding interface 100 can include a sound playing button 101, and the user can expect to trigger the lost device to ring through the sound playing button 101. For example, the user performs an operation such as clicking on the sound playing 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 a powered-off state, 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. 1 indicating that connection with the lost device fails. Therefore, the above finding solution cannot achieve accurate finding of the lost device, and the probability of the user finding the lost device is low.
[0074] Therefore, embodiments of the present application provide a device finding method, which can not only determine the range in which the lost device is located, but also determine the direction, distance, etc. of the lost device relative to the finding device when the finding device is in the vicinity of the lost device, and can control the lost device to ring in a powered-off state, to achieve accurate finding of the lost device and improve the probability of the user finding the lost device.
[0075] The technical solution provided by the embodiments of the present application can be applied to the scenario of finding one electronic device by another electronic device, such as finding other electronic devices (such as a watch 12, earphones 13, a mobile phone 14, a tag (TAG) device 15, etc.) by a mobile phone 11, finding a mobile phone by other electronic devices (such as a mobile phone, a tablet, a watch, etc.), finding a watch, earphones, etc. by a watch, and various finding scenarios.
[0076] For example, FIG. 2b shows a schematic diagram of an architecture of a communication system to which an apparatus searching method provided in embodiments of the present application is applied. For example, as shown in FIG. 2b, the communication system 200 includes a first electronic device 201 and a second electronic device 202.
[0077] 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 embodiments 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 to the Internet through a wireless fidelity (Wi-Fi) network, a cellular network, etc.
[0078] 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), and the first electronic device 201 can receive a search instruction from the second electronic device 202 through a network, and in response to the search instruction, the first electronic device 201 obtains its own location information through various positioning technologies and reports the location information to the second electronic device 202. Correspondingly, the second electronic device 202 can receive the location information from the first electronic device 201 and determine the range in which 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.
[0079] As another possible implementation, the first electronic device 201 can be in a network disconnection state (also referred to as the first electronic device 201 being offline), such as the first electronic device 201 being in a shutdown, low battery, etc. state, or the user turning off the networking function of the first electronic device 201, etc. In this case, 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, the communication system 200 shown in FIG. 2b can further 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 FIG. 2b). In this implementation, the second electronic device 202 and the third electronic device 203 can communicate through the network.
[0080] The third electronic device 203 has an assisting positioning capability and a networking capability. When the third electronic device 203 is in a networking state, the third electronic device 203 can be a good Samaritan device, and report the position information of the third electronic device 203 to the second electronic device 202 as the position information of the first electronic device 201, so as to facilitate the second electronic device 202 to determine the approximate range where the first electronic device 201 is located.
[0081] It can be understood that the above implementation is an example of assisting positioning of the first electronic device 201 by the third electronic device 203 when the first electronic device 201 has a networking capability but is in a network outage state. In some other embodiments, when the first electronic device 201 does not have a networking capability, the third electronic device 203 can also assist in positioning.
[0082] In some embodiments, the first electronic device 201 and the third electronic device 203 can establish a connection through a near field communication technology. For example, the near field communication technology can include, but is not limited to, Bluetooth, star flash, infrared, etc. FIG. 2b is an example of Bluetooth.
[0083] In the above scheme of assisting positioning of 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 a near field communication technology. For example, the near field communication technology can include, but is not limited to, Bluetooth, star flash, infrared, etc. FIG. 2b is an example of Bluetooth. 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 achieve precise search of the first electronic device 201.
[0084] Optionally, in the embodiments of the present application, the first electronic device 201, the second electronic device 202, and the third electronic device 203 can be the same type of electronic device, or can be different types of electronic devices.
[0085] In some embodiments, the communication system 200 shown in FIG. 2b can further include a server 204. The server 204 can provide a search network service, such as implementing key encryption storage, offline position 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, and the third electronic device 203). Optionally, the server 204 can be a cloud server or a network server, or a device or network device with a computing function. The server 204 can be a server, a server cluster composed of multiple servers, or a cloud computing service center.
[0086] 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.
[0087] In some embodiments, before being in the offline state, the first electronic device 201 can also upload a key for implementing accurate finding of the first electronic device 201 to the server 204 through the network. Correspondingly, in the process of finding the first electronic device 201, the second electronic device 202 can also obtain the aforementioned key from the server 204.
[0088] 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, and a wearable device including but not limited to earphones, a smart watch, a smart bracelet, a smart ring, etc. The operating system installed on the electronic device includes but is not limited to or other operating systems, and of course, can also be without an operating system. The present application does not limit the specific type of electronic device, whether or not to install an operating system, and the type of operating system installed.
[0089] For example, FIG. 3 shows a structural schematic diagram of an electronic device provided by the embodiments of the present application.
[0090] The electronic device 300 can include a processor 310, a memory 320, a universal serial bus (USB) interface 321, a charge 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, etc.
[0091] 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), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.
[0092] The controller can generate operation control signals according to instruction operation codes and timing signals, complete the control of fetching instructions and executing instructions.
[0093] The processor 310 can also be provided with a memory 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 reduces the waiting time of the processor 310, thus improving the efficiency of the system.
[0094] Taking the electronic device 300 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.
[0095] In some embodiments, the processor 310 can include one or more interfaces, such as a USB interface 321.
[0096] The memory 320 can be configured to store computer-executable program codes including instructions. The memory 320 can include a program storage area and a data storage area. The program storage area can store operating systems, application programs (for example, a sound playing program, etc.) required by at least one function, and the like. The data storage area can store data created during the use of the electronic device 300, and the like. In addition, the memory 320 can include a high-speed random access memory, and can also include a nonvolatile memory such as at least one 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 processes data by running the instructions stored in the memory 320 and / or the instructions stored in the memory disposed in the processor.
[0097] For example, taking the electronic device 300 as a second electronic device, in some embodiments of the present application, the memory 320 can be configured 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.
[0098] 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.
[0099] 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, and the like.
[0100] For example, 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 configured 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.
[0101] 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, a modem processor, and a baseband processor, and the like.
[0102] 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 configured to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas.
[0103] The mobile communication module 340 can provide a solution for wireless communication including 2G / 3G / 4G / 5G, etc. applied to the electronic device 300.
[0104] 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.
[0105] 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 technology. The wireless communication technology 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 technology, etc. The GNSS can include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] The microphone 360B, also referred to as a "microphone", "microphone", 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.
[0111] The keys 370 include a power-on key, a volume key, and the like. The keys 370 can be mechanical keys. They can also be touch keys.
[0112] 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 power the motor 381 when the first electronic device is in a power-off state or a low-power state.
[0113] 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, N being 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.
[0114] 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.
[0115] 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.
[0116] The structure of the server can refer to the structure of the electronic device shown in FIG. 3. It can be understood that the server can include more or fewer components of the electronic device shown in FIG. 3, for example, the server can only include the processor, the memory, the communication interface, and the like.
[0117] For example, FIG. 4 shows a software architecture diagram of an electronic device and a server according to an embodiment of the present application.
[0118] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In this embodiment of the present application, the layered architecture is taken as an example to illustrate the software structure of the first electronic device and the second electronic device. FIG. 4(a) and FIG. 4(b) are respectively a software structure diagram of the first electronic device 201 and the second electronic device 202.
[0119] The layered architecture divides the software into several layers, 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 include an application layer and a system layer. It can be understood that the types of layers shown in FIG. 4 and the positions of the modules in the layers are only illustrative, and in actual applications, other layer divisions can also be used, for example, the system layer can be further divided into a framework layer and a kernel layer. The positions of the modules in the layers can also be different.
[0120] The application layer can include a series of application packages. For example, a WLAN, a find device application, a setting application, and the like. The WLAN can be used to implement the networking function of the electronic device. The find device application can be used to receive the input operation of the user to implement the pairing binding of the find network service between devices and trigger the device to query the location of the lost device. The setting application can be used to perform various settings, such as starting the offline finding function of the first electronic device 201.
[0121] The system layer can include a series of system services and function modules. For example, an end-side find network service, a network module, a key management module, a loudspeaker module, a Bluetooth module, a star flash module, a microphone module, a power management subsystem, and the like. The end-side find network service can be used to provide the function of encrypting and reporting the location information of the good Samaritan device. The power management subsystem can be used to be responsible for the power management of the electronic device, such as including but not limited to monitoring the battery power, the on-off state, the power supply management, and the like. The network module can be used to be responsible for providing the network connection service, so that the electronic device can communicate with other devices through the network. The key management module can be used to perform a series of key-related operations such as key generation, storage, management, decryption, and the like. The key includes but is not limited to the offline broadcast key, the identity authentication key, and the like. Optionally, the key management module can be a HarmonyOS Universal KeyStore (HUKS). The HUKS can provide the interface function of the Java Cryptography Architecture KeyStore class for the application, including the cryptographic algorithm, the key management, and the certificate service, or can also be other key management modules.
[0122] The loudspeaker module is used to ring and emit ultrasonic waves, so as to determine the position and distance of the first electronic device relative to the second electronic device. The Bluetooth module as a short-distance communication module can be used to provide the services of low-power offline broadcast, scanning offline broadcast, generic attribute (GATT) connection, and the like. The GATT is the service interface protocol of BLE (Bluetooth Low Energy). The star flash module can be used as a long-distance communication module and can be used to provide the services of star flash low-power access technology (SLE) broadcast and scanning broadcast. The microphone module can be used to receive ultrasonic wave data, so as to determine the position and distance of the first electronic device relative to the second electronic device.
[0123] As shown in (c) of FIG. 4, the server 204 includes a cloud-side find network service, which is the service of the find network deployed on the server side and can be used to implement the functions of key encryption storage and lost device location encryption storage.
[0124] It can be understood that the structural schematic of the embodiments of the present application does not constitute a specific limitation on the electronic device and the server. In other embodiments of the present application, the electronic device and the server can include more or fewer components than the schematic, or combine certain components, or split certain components, or different arrangement of components. The components of the schematic can be implemented in hardware, software or a combination of software and hardware.
[0125] The technical solutions involved in the following embodiments can be implemented in the device with the structure shown in FIG. 3 and FIG. 4, and the system with the architecture shown in FIG. 2b. It can be understood that in the embodiments of the present application, the first electronic device is taken as the lost device, and the first electronic device is in the shutdown state after being lost, the second electronic device is taken as the finding device, and the third electronic device is taken as the peripheral electronic device of the first electronic device. It can be understood that when the first electronic device is in a low power state (such as a power saving mode) after being lost, the technical solutions provided by the embodiments of the present application are also applicable.
[0126] In some embodiments, the first electronic device and the second electronic device can first establish a connection, and then the second electronic device can send instructions for implementing accurate finding to the first electronic device based on the established connection, so as to determine the direction, distance, etc. of the first electronic device from the second electronic device, and realize accurate finding of the second electronic device.
[0127] The process of establishing a connection between the first electronic device and the second electronic device will be introduced first.
[0128] In some embodiments, the first electronic device can execute (1) starting an offline finding function as shown in FIG. 4. After the offline finding function is started, the first electronic device can still be discovered and connected by the second electronic device even if it is in a shutdown state or a low power state. In this embodiment, as a possible implementation, the offline finding function can be started by the user. For example, taking the first electronic device as a mobile phone 20, FIG. 5 shows a schematic diagram of starting the offline finding function by the user according to an embodiment of the present application.
[0129] In some embodiments, the mobile phone 20 can be installed with an application for starting the offline finding function, and the user can start the offline finding function through the application. Taking the application as a setting application for example, as shown in (1) of FIG. 5, 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 introduced one by one, and 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 setting application icon 501, and the mobile phone 20 detects an operation such as a user clicking the setting application icon 501, and in response to the operation, as shown in (2) of FIG. 5, the mobile phone 20 displays a running interface 510 of the setting application.
[0130] In the running interface 510 of the setting application, one or more function options are included, and different function options can be used to perform different setting operations. For example, the mobile phone 20 detects an operation such as a user clicking a security option 511, and in response to the operation, as shown in (3) of FIG. 5, the mobile phone 20 displays a security interface 520, wherein the security interface 520 includes a device finding option 521, and the user can start the offline finding function through the device finding option 521. Optionally, the security interface 520 also includes an SOS emergency help option, a password safe option, and the like, and the functions of these options will not be described in detail herein.
[0131] For example, the mobile phone 20 detects an operation such as a user clicking the device finding option 521, and in response to the operation, as shown in (4) of FIG. 5, the mobile phone 20 displays a device finding interface 530, wherein the device finding interface 530 includes a button 531 for starting the offline finding function, and the mobile phone 20 starts the offline finding function in response to the user selecting the button 531 for starting the offline finding function, so that the mobile phone 20 can be found and connected by the device even if it is in a shutdown state after being lost.
[0132] Of course, in other implementations, the offline finding function can also be started by default by the first electronic device, for example, the first electronic device can automatically start the offline finding function after being manufactured, and the embodiments of the present application do not limit the specific manner of starting the offline finding function.
[0133] In some embodiments, before the first electronic device is lost, the user can perform an operation of shutting down the first electronic device, and in the embodiments, before the first electronic device is shut down in response to the user's shutdown operation, the first electronic device can also pop up a reminder message to remind the user to start the offline finding function, etc. Still taking the first electronic device as the mobile phone 20 as an example, as shown in FIG. 6, the user can perform a shutdown operation of long pressing the power key on the mobile phone 20, and the mobile phone 20 can display a shutdown interface 600 as shown in FIG. 6 in response to the operation of the user, wherein the shutdown interface 600 can include a reminder message 601 and a "start" button 602, the reminder message 601 can be used to output the related introduction of the offline finding function and the benefits of starting the offline finding function, etc., and the "start" button 602 can be used to jump to an interface of starting the offline finding function of the mobile phone 20, such as the interface shown in (4) of FIG. 5 or the interface shown in (3) of FIG. 5, etc., and the embodiments of the present application do not limit the specific interface of the jump. Subsequently, after the mobile phone 20 starts the offline finding function in response to the user's 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 finding 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.
[0134] When the offline finding function of the first electronic device is started through the above 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.
[0135] 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 keeps powering 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, the second electronic device can perform the (11) end-side finding network service calling the Bluetooth module of the second electronic device as shown in FIG. 4, and the Bluetooth module 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, and the derived public key P of the offline broadcast key 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 when the first electronic device is in the shutdown state, the Bluetooth module still remains working, and the first electronic device can still establish a communication connection with the second electronic device when in the shutdown state.
[0136] Optionally, when the first electronic device is in the power-off 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.
[0137] In some embodiments, the derived public key P of the offline broadcast key can be updated periodically, which can be different from 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 the Bluetooth broadcast is sent, so that the security of the first electronic device can be improved. Optionally, since the key has a certain timeliness, as a possible implementation, the first electronic device can generate the derived public key P of the offline broadcast key again before entering the power-off state. Specifically, after the offline search function is started by the first electronic device through the above-mentioned method, the end-side search network module in the first electronic device can perform (4) registering a low power and power-off preprocessing event to the power management subsystem of itself as shown in FIG. 4. The low power and power-off preprocessing event can be used to notify the end-side search network module by the power management subsystem when the first electronic device is about to be in a low power or power-off state, so that the first electronic device can generate the derived public key P of the offline broadcast key in time.
[0138] Correspondingly, when the power management subsystem of the first electronic device determines that the first electronic device is about to be in a power-off state, 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.), (5) sending a notification message to the end-side network search module can be performed as shown in FIG. 4. Then, the end-side network search module can generate the derived public key P of the offline broadcast key through the key management module as shown in (6) of FIG. 4. For example, taking the Bluetooth module performing Bluetooth broadcast every 15 minutes as an example, if the Bluetooth module performs Bluetooth broadcast for two days, the key management module needs to generate 96 keys. It can be understood that the frequency and duration of the Bluetooth module performing Bluetooth broadcast are not limited in the embodiments of the present application. Finally, the end-side search network module of the first electronic device sends the list of derived public keys of the offline broadcast key generated by the key management module (i.e., the plurality of derived public keys P generated above) to the Bluetooth module as shown in (7) of FIG. 4, so that the Bluetooth module can perform Bluetooth broadcast based on the list of derived public keys of the offline broadcast key after the first electronic device is powered off.
[0139] 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.
[0140] 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.
[0141] 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.
[0142] Optionally, the second electronic device can perform (9) the end-side lookup network service can obtain the offline broadcast key from the server by calling the network module as shown in FIG. 4. For example, in addition to performing the above-mentioned 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-mentioned method, the end-side lookup network module of the first electronic device can perform (2) calling the key management module to generate the offline broadcast key as shown in FIG. 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 sends the offline broadcast key to the server by performing (3) as shown in FIG. 4.
[0143] 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 the encrypted offline broadcast key to the key management module. Accordingly, the key management module can also decrypt the encrypted offline broadcast key using the trust circle.
[0144] 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 in which the second electronic device obtains the offline broadcast key.
[0145] It can also be understood that the above embodiments are based on the second electronic device identifying the identity of the first electronic device through the offline broadcast key, 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, and the identifier 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.
[0146] In some scenarios, the second electronic device can not be in the vicinity of the first electronic device, and 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 obtain the range in which the first electronic device is located and output the range to the user, so that the user can carry the second electronic device to the vicinity of the first electronic device in the process of searching for the first electronic device.
[0147] 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 starting to search for the first electronic device through the search device application as shown in (8) of FIG. 4, 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 search device application as the search device application and the second electronic device as the mobile phone 10, the mobile phone 10 can also present the main interface 500 as shown in (1) of FIG. 5, and the main interface 500 can display the icon 502 of the search device application, and the user can start the search for the first electronic device by using the icon 502 of the search device application. For example, the mobile phone 10 detects the click operation such as the user's click operation on the icon 502 of the search device application, and in response to the operation, the mobile phone 10 can display the position of the first electronic device (such as HUAWEI P40) as shown in (1) of FIG. 7, such as "near the xx community in Chaoyang District, Beijing City" and the like. Then, based on the position of the first electronic device displayed by the mobile phone 10, the user can carry the mobile phone 10 to the vicinity of the position of the first electronic device to further realize the accurate search for the first electronic device.
[0148] In some implementations, to improve the probability of connecting to the first electronic device, the second electronic device can start to scan the Bluetooth broadcast of the first electronic device after the user starts the operation of searching for the first electronic device, that is, the second electronic device can periodically scan the Bluetooth broadcast of the first electronic device during the entire search process. In other implementations, to reduce the power consumption of the second electronic device, the second electronic device can start to scan the Bluetooth broadcast of the first electronic device when it is determined to be in the vicinity of the first electronic device. For example, when the second electronic device determines that the distance between the position of the first electronic device is less than a certain threshold, it can be determined to be in the vicinity of the first electronic device. Optionally, at this time, since the second electronic device has not performed the accurate search for the first electronic device, the position of the first electronic device can be the position of the first electronic device output to the user by the second electronic device as shown in (1) of FIG. 7.
[0149] In some embodiments, when presenting the location of the first electronic device such as shown in (1) of FIG. 7, the second electronic device can also log in the device searching application first. Still taking the second electronic device as the mobile phone 10 for example, as a response to the clicking operation of the user on the icon 502 of the device searching application shown in (1) of FIG. 5, the mobile phone 10 can display a login interface 710 of the device searching application first as shown in (2) of FIG. 7, in which the user can input the account, password, etc. After the login operation of the user, the mobile phone 10 jumps to the interface such as shown in (1) of FIG. 7. Optionally, the login account of the device searching application on the second electronic device can be the login account of the device searching application on the first electronic device, or the system account of the first electronic device, or an account having a preset association relationship (such as belonging to the same group (such as a location sharing group, a family group, etc.), a kinship account, etc.) with the foregoing account, etc., which is not limited in the embodiments of the present application.
[0150] In the embodiments of the present application, the first electronic device is in the shutdown state and thus has no network connection, and the first electronic device cannot directly report its own location information to the second electronic device. That is, the location information displayed such as shown in (1) of FIG. 7 is not reported by the first electronic device. As a possible implementation, the location information can be the location 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 location information of the third electronic device can be reported to the second electronic device as the location information of the first electronic device. It can be understood that the embodiments of the present application do not limit the manner in which the third electronic device obtains the location information and reports it to the second electronic device.
[0151] Optionally, in the embodiments 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, it can also be a Bluetooth connection based on other communication protocols.
[0152] The process of establishing the connection between the first electronic device and the second electronic device is introduced above, and the sending of the instruction for implementing the accurate searching by the second electronic device to the first electronic device based on the established connection is introduced below.
[0153] In some embodiments, the above-mentioned instruction for implementing the accurate search 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 one possible implementation, the ranging and angle measurement instruction can be determined based on the 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 broadcasting (such as SLE broadcasting, etc.). In this implementation, when the first electronic device is in the off state, the star flash module is still in the working state, that is, the first electronic device still maintains power supply to the star flash module.
[0154] Specifically, in combination with the architecture shown in FIG. 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 search 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. 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 (13) shown in FIG. 4 to start the star flash module of the first electronic device to start star flash broadcasting based on the instruction. 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. Based on the scanned star flash broadcasting of the first electronic device, the direction, distance, etc. of the first electronic device from the second electronic device are measured.
[0155] 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 strength of the star flash broadcasting signal and the distance, so that the second electronic device can determine the distance from the first electronic device based on the corresponding relationship and the strength of the received star flash broadcasting signal of the first electronic device.
[0156] In some embodiments, the AR module is integrated in the star flash module, and the second electronic device can determine that the first electronic device is in the direction of 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 measurement instruction to the first electronic device by the above method, the second electronic device can also start the AR module to execute the process of determining that the first electronic device is in the direction of 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 AR basic capabilities such as motion tracking, environment tracking, human and face tracking by integrating AR core algorithms.
[0157] 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 obtained by the camera is transmitted to a knowledge base (such as a dll library, etc.), an image comparison algorithm is called to compare images, and image data is recognized. 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 recognized 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 remains 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.
[0158] 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 star flash can measure a relatively long effective distance, the distance and direction between the first electronic device and the second electronic device can be measured by the star flash, which not only enables the lost device to be found when the lost device is in a shutdown state or a low power state, but also enables the distance and direction to be measured when the distance between the lost device and the finding device is relatively long, thereby enabling the lost device to be accurately found and improving the probability of the user finding the lost device.
[0159] Optionally, in embodiments of the present application, the direction of the first electronic device relative to the second electronic device can be represented by an angle between the first electronic device and the second electronic device. In some examples, the angle can be an angle between a direction of a line connecting the first electronic device and the second electronic device and an orientation of the second electronic device. Optionally, the orientation of the second electronic device can be an orientation of the second electronic device in a horizontal direction. For example, FIG. 8 shows a schematic diagram of an angle between a first electronic device and a second electronic device according to an embodiment of the present application. 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 FIG. 8, the orientation of the mobile phone 10 is a direction in which the straight line 1 is located, and the orientation of the mobile phone 20 is a direction in which the straight line 2 is located. Then, the angle between the mobile phone 10 and the mobile phone 20 can be angle A.
[0160] It can be understood that the angle between the first electronic device and the second electronic device can also be defined in other ways, as long as the direction of the first electronic device relative to the second electronic device can be represented.
[0161] As another possible implementation, the direction, distance, etc. of the first electronic device relative to the second electronic device can also be determined based on ultrasonic data. In this implementation, after the first electronic device and the second electronic device establish a connection, 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 emit ultrasonic data. In this implementation, the first electronic device is in a power-off state, but the speaker module is still in a working state, that is, the first electronic device still maintains power supply to the speaker module.
[0162] Specifically, in combination with the architecture shown in FIG. 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 receiving the ranging and angle measurement instruction, the Bluetooth module of the first electronic device executes (12) in FIG. 4 to drive the speaker module of the first electronic device to emit ultrasonic data based on the instruction. 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 relative to the second electronic device based on the ultrasonic data. For the implementation of ultrasonic ranging and angle measurement, please refer to the implementation in related technologies.
[0163] In some embodiments, there can be other electronic devices in the vicinity of the second electronic device that send ultrasonic data in addition to the first electronic device, and thus, 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.
[0164] 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 emits ultrasonic signals to the target object, and when the ultrasonic signals encounter 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 acquire the ultrasonic data emitted by the first electronic device multiple times, which can make the determined direction, distance, etc. of the first electronic device relative to the second electronic device more accurate. In addition, since the first electronic device or the second electronic device can be moving, the second electronic device can acquire the ultrasonic data emitted by the first electronic device multiple times, which can make the determined direction, distance, etc. of the first electronic device relative to the second electronic device updated in time.
[0165] 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 finding the lost device when the lost device is in a shutdown state or a low-power state, but also enables high-precision distance and direction measurement, and thus enables accurate finding of the lost device and improves the probability of the user finding the lost device.
[0166] 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 shorter 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, and thus enable accurate finding of the lost device and improve the probability of the user finding the lost device.
[0167] In a possible determination manner, the final direction and distance can be determined based on at least one of a scenario in which the first electronic device is located and a distance between the first electronic device and the second electronic device. Specifically, when the first electronic device is in a bag scenario, it can be determined that the direction and distance measured based on the star flash module are 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.
[0168] In a possible implementation, when the distance between the first electronic device and the second electronic device is greater than or equal to a 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.
[0169] It can be understood that in the embodiments of the present application, the bag scenario can refer to a scenario in which the first electronic device is placed in a bag (such as a backpack, a suitcase, etc.). For example, the second electronic device can determine whether the first electronic device is in a bag scenario based on the signal strength of the Bluetooth broadcast or the signal strength of the star flash broadcast, and the present application does not limit the manner of determining whether the first electronic device is in a bag scenario.
[0170] 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.
[0171] Table 1
[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 measuring instruction can be triggered automatically by the second electronic device, or can be triggered actively by the user. Taking the active triggering by the user as an example, and taking the second electronic device as the mobile phone 10 as an example, the interface shown in (1) of FIG. 7 can further include a star flash search button 701. The user can trigger the ranging and angle measuring instruction by performing a click operation on the star flash search button 701.
[0175] Optionally, in the embodiments of the present application, to ensure that the electronic device receiving the ranging and angle measuring instruction is the first electronic device, and 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 end-side search network service of the second electronic device can further perform (10) shown in FIG. 4 to send the ranging and angle measuring instruction to the key management module for encryption. Optionally, the key management module can use an identity authentication key for encryption. Correspondingly, in some embodiments, the identity authentication key can be a same key commonly 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 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. In this way, 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 in 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 as to facilitate the user to know the progress and details of the accurate search, etc. For example, before the second electronic device obtains the direction of the first electronic device, for example, the star flash module starts the AR engine to obtain the direction of the first electronic device, taking the second electronic device as a mobile phone 10 as an example, the mobile phone 10 can present an interface 900 shown in (1) of FIG. 9, wherein the interface 900 can output the distance (such as 50 meters) of the first electronic device obtained, and can also output a prompt message 901, and the user can operate according to the indication of the prompt message 901, so as to facilitate the second electronic device to obtain the direction of the first electronic device.
[0180] Subsequently, after the mobile phone 10 obtains the direction of the first electronic device, the mobile phone 10 can present an interface 910 shown in (2) of FIG. 9 to an interface 930 shown in (4) of FIG. 9 to output the direction of the first electronic device. Wherein the arrow direction contained in the interface 910 shown in (2) of FIG. 9 to the interface 930 shown in (4) of FIG. 9 can indicate that the first electronic device is in the direction of the second electronic device, and the arc range pointed by the arrow can represent the degree of confidence of the direction, that is, the degree of accuracy. When the user moves according to the arc range pointed by the arrow, the distance between the first electronic device and the second electronic device presented by the interface 910 shown in (2) of FIG. 9 to the interface 930 shown in (4) of FIG. 9 becomes closer (such as from 40 meters to 5 meters), the arc range pointed by the arrow converges gradually, that is, the direction of the first electronic device to the second electronic device becomes more and more accurate, such as converging to the form of a dot shown in (4) of FIG. 9, that is, the first electronic device can be accurately located. Optionally, when the arc pointed by the arrow converges to the form of the dot shown in (4) of FIG. 9, the mobile phone 10 can also change the background color, etc.
[0181] Optionally, the interface shown in FIG. 9(1) to FIG. 9(4) can further include a ringtone playing button 902. The ringtone playing button 902 shown in FIG. 9(4) can be presented in an operable state, while the ringtone playing button 902 shown in FIG. 9(1) to FIG. 9(3) can be presented in an inoperable state. When the second electronic device outputs the interface shown in FIG. 9(1) to FIG. 9(3), the distance between the first electronic device and the second electronic device is far. At this time, even if the ringtone playing button 902 is used to control the first electronic device to ring, the user can not hear the ringtone, which can not help the user to find the first electronic device. When the second electronic device outputs the interface shown in FIG. 9(1) to FIG. 9(3), the distance between the first electronic device and the second electronic device is close. At this time, the ringtone playing button 902 is used to control the first electronic device to ring, and the probability that the user hears the ringtone is high, which can help the user to find the first electronic device.
[0182] In some embodiments, the instructions for implementing the accurate finding can further include a ringtone instruction, which can be used to control the first electronic device to ring. Similarly, the ringtone instruction can be triggered automatically by the second electronic device, or can be triggered actively by the user. Taking the automatic triggering by the second electronic device as an example, the second electronic device can automatically trigger the ringtone instruction when the second electronic device determines that the distance between the first electronic device and the second electronic device is less than a certain set distance. When the second electronic device presents the interface shown in FIG. 9(4), the second electronic device can also automatically trigger the ringtone instruction.
[0183] For example, the second electronic device is a mobile phone 10, the interface shown in (1) of FIG. 7 can further include a ringtone playing button 702. The user can perform an operation such as clicking on the ringtone playing button 702. In response to the operation of the user, the second electronic device can send a ring instruction to the first electronic device. Alternatively, the user can perform an operation such as clicking on the ringtone playing button 902 included in the interface shown in (4) of FIG. 9. In response to the operation of the user, the second electronic device can also send a ring instruction. Alternatively, when the second electronic device determines that the distance between the first electronic device and the second electronic device is less than a certain set distance, the second electronic device can display an interface for triggering the ring instruction, and the user can trigger the ring instruction through the interface. For example, the second electronic device is a mobile phone 10. After the mobile phone 10 presents the interface shown in (4) of FIG. 9, the mobile phone 10 can further jump to the interface 1000 shown in FIG. 10. The interface 1000 can include a reminder message 1001 and a ringtone playing button 1002. The reminder message 1001 can remind the user that the first electronic device is located nearby and can be found by attempting to play a ringtone. Further, based on the reminder message 1001, the user can perform an operation such as clicking on the ringtone playing button 1002. In response to the operation, the mobile phone 10 can send a ring instruction to the first electronic device.
[0184] For example, FIG. 11 shows a flowchart of a device finding method provided by an embodiment of the present application. As shown in FIG. 11, the method includes the following steps:
[0185] S1101, the second electronic device sends a first instruction to the first electronic device through the near distance communication module. Correspondingly, the first electronic device receives the first instruction from the second electronic device through the near distance communication module.
[0186] 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 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 (also referred to as a low power state, a low power mode, etc.). For example, the near distance communication module can be a Bluetooth module or the aforementioned star flash module. Alternatively, when the near distance communication module is the aforementioned star flash module, the near distance communication module and the star flash module of the first electronic device and the second electronic device shown in FIG. 11 are the same module. It can be understood that, at present, when the first electronic device is in a power saving mode, the first electronic device generally turns off the network, Bluetooth, etc. However, in the embodiment of the present application, the Bluetooth function is not turned off and the Bluetooth is kept in normal operation when the first electronic device is in the power saving mode. It can also be understood that the working state can mean that the module can be in a normal running state.
[0187] In the step S1101, the first electronic device is in a power-off state or a power-saving mode, and the first electronic device and the second electronic device have established a connection through the short-distance communication module.
[0188] For example, the first instruction can be a ranging and angle measuring instruction as described above. In some embodiments, the first instruction can be encrypted by using a first key, and the short-distance 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 (for example, the interface shown in (1) of FIG. 7), and the first interface can include a first control (for example, the star flash search button 701 shown in (1) of FIG. 7) and the position information of the first electronic device. In response to an operation on the first control, the second electronic device can send the first instruction to the first electronic device through the short-distance communication module. For details about the second electronic device triggering the first instruction, reference can be made to the related description about triggering the ranging and angle measuring instruction as described above.
[0190] S1102, in response to the first instruction, the short-distance communication module of the first electronic device starts the star flash module to send a 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 include a loudspeaker module, and the second electronic device can further include 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 short-distance 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 the 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 (the star flash broadcast as described above) and the ultrasonic data.
[0195] In this embodiment, as one possible implementation, the second electronic device determines the 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 the first direction of 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 the AR engine, and the first electronic device is in the first direction of the second electronic device. The second electronic device determines the second distance between the first electronic device and the second electronic device based on the ultrasonic data, and the second electronic device is in the 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 at least one of 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 star flash broadcast described above.
[0196] In some embodiments, 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 from the second electronic device is the first direction. In some embodiments, 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 the 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 from 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 from the second electronic device is the second direction.
[0197] Optionally, the second electronic device can output the distance between the first electronic device and the second electronic device and the direction of the first electronic device from the second electronic device through an interface such as that shown in FIG. 9.
[0198] In some embodiments, 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 indicative of a reliability 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 indicative of a direction of the first electronic device from the second electronic device at the second time, and the second information being indicative of a reliability of the second direction. Optionally, the first time and the second time can be different times. For example, the first distance can be 40 meters as shown in (2) of FIG. 9, and the first direction can be indicated by the direction of the arrow as shown in (2) of FIG. 9. The second distance can be 35 meters as shown in (3) of FIG. 9, and the second direction can be indicated by the direction of the arrow as shown in (3) of FIG. 9. Optionally, the first information and the second information can be presented as the range of the arc indicated by the direction of the arrow as shown in FIG. 9, or can be presented in other forms of information.
[0199] In some examples, 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. For example, when the reliability is represented by the range of the arc indicated by the direction of the arrow as shown in FIG. 9, the greater the range of the arc, the lower the reliability. For example, 40 meters as shown in (2) of FIG. 9 is greater than 35 meters as shown in (3) of FIG. 9, and the range of the arc indicated by the direction of the arrow as shown in (2) of FIG. 9 is greater than the range of the arc indicated by the direction of the arrow as shown in (3) of FIG. 9.
[0200] In some embodiments, the short-range communication module of the second electronic device can further send a second instruction (e.g., a ringing instruction as described above) to the short-range communication module of the first electronic device. Accordingly, the short-range communication module of the first electronic device can receive the second instruction, and in response to the second instruction, the short-range communication module of the second electronic device can activate the speaker module to ring. Optionally, 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 can send the second instruction in response to a user operation, etc.
[0201] Optionally, in some embodiments, before performing step S1101 shown in FIG. 11, the method shown in FIG. 11 further includes steps S1104 to S1105.
[0202] S1104, the short-range communication module of the first electronic device sends a second broadcast message. Accordingly, the short-range communication module of the second electronic device receives the second broadcast message.
[0203] The first electronic device is in a power-off state or a power-saving mode when the step S1104 is performed.
[0204] In some embodiments, the second broadcast message (e.g., the Bluetooth broadcast described above) 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] Optionally, before the first electronic device is in the power-off state or the power-saving mode, the first electronic device can also generate at least one of the second key and the third key and send it to the near field communication module. For details, refer to the related implementation described above.
[0206] In some embodiments, the near field communication module of the first electronic device uses different second keys to decrypt the first instruction when the first instruction is received in different broadcast periods. Alternatively, the near field communication module carries different third keys in the second broadcast message when the second broadcast message is sent 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 Bluetooth broadcast period described above.
[0207] S1105, in response to the second broadcast message, the near field communication module of the first electronic device establishes a connection with the near field communication module of the second electronic device.
[0208] For example, the connection can be a GATT connection as described above.
[0209] The above mainly describes the solutions 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 the corresponding hardware structure and / or software module for executing 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 function modules of the electronic device according to the above method examples. For example, each function 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 function module. It should be noted that the division of the unit in the embodiments of the present application is illustrative, and is only a logical function division. In actual implementation, another division mode can be used.
[0211] As shown in FIG. 12, it is a structural 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 described in the above various method embodiments. For example, the first electronic device 1200 can specifically include a close-range communication module 1201, a star flash module 1202, a loudspeaker module 1203, and the like.
[0212] The close-range communication module 1201 is provided with a processing module 1204 and 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 perform the processing functions described in any one of FIGS. 1 to 11. The communication module 1202 is used to support the first electronic device 1200 to perform the communication functions described in any one of FIGS. 1 to 11. The storage module 1206 stores programs or instructions. When the processing module 1204 executes the programs or instructions, the first electronic device 1200 shown in FIG. 12 can perform the methods shown in the above method embodiments.
[0213] The star flash module 1202 is used to support the first electronic device 1200 to perform star flash broadcasting.
[0214] The loudspeaker module 1203 is used to support the first electronic device 1200 to perform ringing, ultrasonic data emission, and the like.
[0215] As shown in FIG. 13, it is a structural schematic diagram of a second electronic device provided by the embodiments of the present application. The second electronic device 1300 can be used to implement the methods described in the above various method embodiments. For example, the second electronic device 1300 can specifically include a processing module 1301, a close-range communication module 1302, a star flash module 1303, a microphone 1304, and the like.
[0216] The processing module 1301 is used to support the second electronic device 1300 to perform the processing functions described in any one of FIGS. 1 to 11.
[0217] The close-range communication module 1302 is used to support the second electronic device 1300 to perform the communication functions described in any one of FIGS. 1 to 11.
[0218] The star flash module 1303 is configured to support the second electronic device 1300 to scan a star flash broadcast.
[0219] The microphone module 1304 is configured to support the second electronic device to collect ultrasonic data, etc.
[0220] Optionally, the second electronic device 1300 shown in FIG. 13 can further include a display module 1305, which can be configured to 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.
[0221] Optionally, the second electronic device 1300 shown in FIG. 13 can further include a storage module (not shown in FIG. 13), which stores programs or instructions. When the processing module 1301 executes the programs or instructions, the second electronic device 1300 shown in FIG. 13 can perform the method shown in the above method embodiments.
[0222] The technical effects of the electronic devices shown in FIGS. 12 and 13 can refer to the technical effects of the methods shown in the above method embodiments, which will not be repeated here. The processing module shown in FIGS. 12 and 13 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, as shown in FIG. 14, 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 configured to receive signals from other devices. For another example, the interface circuit 1402 can be configured to send signals to other devices (such as 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, which are not limited in the embodiments of the present application.
[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 arranged separately from the processor, and the application does not limit. For example, the memory can be a non-transient processor, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be arranged separately on different chips, and the application does not limit the type of memory and the arrangement of the memory and the processor.
[0226] For example, the chip system can be a field programmable gate array (FPGA), can be an application specific integrated circuit (ASIC), can also be a system on chip (SoC), can also be a central processor unit (CPU), can also be a network processor (NP), can also be a digital signal processor (DSP), can also be a micro controller unit (MCU), can also be 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 the integrated logic circuit of the hardware in the processor or the instructions in the form of software. The method steps disclosed in combination with the embodiments of the application can be directly embodied as hardware processor execution completion, or executed by a combination of hardware and software modules in the processor.
[0228] The embodiments of the 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 described in the above method embodiments.
[0229] The embodiments of the 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 described in the above method embodiments.
[0230] In addition, the embodiments of the 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 to make the device execute the method in each of the above method embodiments.
[0231] Among them, the electronic device, computer storage medium, computer program product or chip provided by the embodiment are used for executing the corresponding method provided above, so the beneficial effects achieved by them can refer to the beneficial effects of the corresponding method provided above, which will not be repeated here.
[0232] Through the above description of the embodiments, those skilled in the art can understand that, for the convenience and brevity of description, only the above division of functional modules is taken as an example, 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 apparatus and method can be implemented by other ways. Each embodiment can be combined or referred to each other in the case of no conflict. The apparatus embodiment described above is only schematic, for example, the division of 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 shown or discussed each other can be through some interface, indirect coupling or communication connection between the devices or units, which can be electrical, mechanical or other forms.
[0234] The unit described as a separate component can be or can not be physically separated, and the component shown as a unit 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. According to actual needs, part or all of the units can be selected 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 separately, 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] The integrated unit, if implemented in the form of a software function unit and sold or used as an independent product, can be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application essentially or say the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The software product is stored in a storage medium, including a plurality of instructions to make a device (which can be a single-chip microcomputer, a chip, etc.) or a processor execute all or part of the steps of the various embodiments of the method of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media that can store program codes.
[0237] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered within 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 connecting 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, and each of the first electronic device and the second electronic device includes 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
Patent Citations
Equipment searching method and electronic equipment
CN121078418A
Positioning method and device, electronic equipment, terminal and storage medium
CN116782123A
Star flash node positioning method and related equipment
CN117222001A
Earphone, distance prompting method and system
CN117676415A
Data transmission measurement method, electronic device, and computer readable storage medium
WO2023030197A1