Device searching method, electronic device and system

By using a second electronic device to obtain location information through other applications and report it in batches, the problem of increased power consumption caused by frequent activation of location reporting services by online devices is solved, and the efficiency of locating devices is improved.

CN115914985BActive Publication Date: 2026-05-01PETAL CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
PETAL CLOUD TECH CO LTD
Filing Date
2021-09-30
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In the event of an electronic device being lost, existing technologies often require online devices to frequently activate location reporting services, leading to increased power consumption and reduced efficiency in locating the device.

Method used

By using a second electronic device to obtain location information through other applications, scanning the Bluetooth broadcasts of the first electronic device, and reporting the location information to the server in batches, the frequency of location information acquisition and network connection is reduced, thus reducing power consumption.

Benefits of technology

It effectively reduced power consumption, improved the efficiency of locating lost devices, and enabled the reporting of location information multiple times.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914985B_ABST
    Figure CN115914985B_ABST
Patent Text Reader

Abstract

This application discloses a device locator method, electronic device, and system. The method includes: a first application of a second electronic device acquiring at least one location information; after the first application acquires the at least one location information, the second electronic device scanning a first Bluetooth broadcast sent by the first electronic device; the second electronic device acquiring first location information based on the first Bluetooth broadcast, wherein the first location information is at least one of the at least one location information; and the second electronic device reporting the first location information to a server. It is evident that the second electronic device can utilize location information acquired by other applications on the second electronic device, rather than frequently calling the location information acquired by the second application when scanning a Bluetooth broadcast. This effectively reduces power consumption and allows for multiple reporting of location information, resulting in higher efficiency in locating lost devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic equipment technology, and in particular to a device discovery method, electronic equipment, and system. Background Technology

[0002] With the rapid development of electronic devices, these devices can now locate themselves using preset positioning methods, including Global Positioning System (GPS), base station positioning, Wi-Fi hotspot (AP) positioning, and BeiDou satellite positioning. Taking GPS positioning as an example, when an electronic device is lost and goes offline, it sends a Bluetooth broadcast to nearby online devices. Upon receiving this broadcast, these devices use the GPS signal to determine their location and report it to a server. The system can then determine the approximate location of the electronic device based on the location information from these online devices, allowing users to find their devices more quickly and accurately.

[0003] However, if an online device receives multiple Bluetooth broadcasts, it needs to frequently activate the location reporting service, increasing the power consumption of the online device. As a result, the efficiency of finding lost devices will be low during the process of searching for electronic devices, and a good search effect cannot be achieved. Summary of the Invention

[0004] This application provides a device locator method, electronic device, and system that can effectively reduce power consumption and achieve multiple reporting of location information, thus making the locator of lost devices more efficient.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions.

[0006] In a first aspect, embodiments of this application provide a device discovery method, the method comprising: a first application of a second electronic device acquiring at least one location information; after the first application acquires at least one location information, the first electronic device sending a first Bluetooth broadcast to the second electronic device, the first electronic device being in an offline state; the second electronic device scanning the first Bluetooth broadcast sent by the first electronic device; the second electronic device acquiring first location information based on the first Bluetooth broadcast, the first location information being at least one of the at least one location information; and the second electronic device reporting the first location information to a server.

[0007] Thus, the first application of the second electronic device obtains at least one location information. After obtaining the at least one location information, the second electronic device scans for a first Bluetooth broadcast sent by the first electronic device. The second electronic device obtains first location information based on the first Bluetooth broadcast, which is at least one of the at least one location information. The second electronic device reports the first location information to the server. It is evident that the second electronic device can utilize location information obtained by other applications on the second electronic device, rather than frequently calling the location information obtained by the second application when scanning for a Bluetooth broadcast. This effectively reduces power consumption and allows for multiple reporting of location information, resulting in higher efficiency in locating lost devices.

[0008] In one possible implementation, the second electronic device reports the first location information to the server. Specifically, the second electronic device reports both the first location information and its device information to the server. The device information of the first electronic device is used to instruct the server to match the location information of the second electronic device with the account of the first electronic device based on that device information.

[0009] In some implementations, after the second electronic device reports the first location information to the server, the process further includes: a third electronic device sending a query request to the server, the query request being used to query the location of the first electronic device. The server obtains the first location information based on the query request. The server sends the first location information to the third electronic device. The third electronic device displays a first interface, the first interface including the first location corresponding to the first location information.

[0010] In one specific implementation, the second electronic device obtains the first location information based on the first Bluetooth broadcast, specifically by: the second electronic device obtaining the broadcast time and the acquisition time of at least one location piece of information based on the first Bluetooth broadcast. The second electronic device obtains the first location information based on the broadcast time and the acquisition time of at least one location piece of information.

[0011] In one specific implementation, the second electronic device acquires the first location information based on the broadcast time and the acquisition time of at least one location piece of information. Specifically, the second electronic device determines that the time difference between the acquisition time and the broadcast time of the at least one location piece of information is less than a first threshold. The second electronic device then uses the at least one location piece of information corresponding to the time difference being less than the first threshold as the first location information.

[0012] In one possible implementation, the second electronic device acquires the first location information based on the broadcast time and the acquisition time of at least one location piece of information. Specifically, the second electronic device determines that the time difference between the acquisition time and the broadcast time of the at least one location piece of information is minimized. The second electronic device then uses the at least one location piece of information corresponding to the minimum time difference as the first location information.

[0013] In one specific implementation, the second electronic device determines that the time difference between the acquisition time and the broadcast time of at least one location information is minimized, specifically by the second electronic device determining that the time difference between the acquisition time and the broadcast time of at least one location information is minimized and the time difference is less than a second threshold.

[0014] In some implementations, the method further includes: when the time difference between the broadcast time of the second Bluetooth broadcast scanned by the second electronic device and the acquisition time of at least one location information is greater than a third threshold, the second electronic device calls a second application to acquire the location information.

[0015] In one possible implementation, the second application is any application in the second electronic device that is capable of acquiring location information.

[0016] In one specific implementation, the second electronic device reports the first location information to the server. Specifically, when the second electronic device detects that a third application is reporting data to the server, it reports the first location information to the server. In other words, when the second electronic device detects that one of its multiple applications is reporting location information to the server, it reports the first location information to the server. This eliminates the need for the second electronic device to deliberately activate the network to report location information, thereby reducing the power consumption of AP wake-up and network activation.

[0017] In one specific implementation, the second electronic device reports the first location information to the server. Specifically, when the second electronic device connects to the network, it reports the first location information to the server. This connection is initiated by a fourth application. In other words, the second electronic device reports the first location information to the server as soon as it detects that the fourth application has initiated the network connection. This eliminates the need for the second electronic device to explicitly activate the network to report location information, thereby reducing the power consumption associated with AP wake-up and network activation.

[0018] In one possible implementation, the second electronic device reports the first location information to the server, specifically by simultaneously reporting multiple pieces of the first location information to the server. It should be understood that when the second electronic device receives a broadcast from the first electronic device, it does not matter whether the second electronic device determines one or more pieces of location information. The second electronic device can report location information over a period of time to the server in batches.

[0019] In this embodiment of the application, compared to the second electronic device reporting location information to the server once for each location determined, the second electronic device reporting location information to the server in batches can more effectively save power consumption.

[0020] In some implementations, before the first application of the second electronic device acquires at least one location information, the method further includes: the second electronic device receiving an operation from a user on the first application, wherein the first application is pre-configured to acquire location information upon application launch. In response to the user's operation on the first application, the second electronic device launches the first application.

[0021] In some possible implementations, the number of second electronic devices is at least one.

[0022] In some implementations, the method further includes: a first electronic device and a third electronic device pre-pairing to generate a pair of public and private keys on an elliptic curve. The first electronic device holds the public key, and the third electronic device holds both the private and public keys.

[0023] In some implementations, the method further includes: a first electronic device generating a pair of public and private keys on an elliptic curve. In a trusted environment, the first electronic device synchronizes the public and private keys to a third electronic device, which uses the same account as the first electronic device.

[0024] Secondly, embodiments of this application provide a device discovery method. The execution subject of this method can be an electronic device or a component located within the electronic device (e.g., a chip, chip system, or processor). The following description uses an electronic device as the execution subject. The method includes: a first application of a second electronic device acquiring at least one location information; after the first application acquires at least one location information, the second electronic device scanning a first Bluetooth broadcast sent by the first electronic device (the first electronic device is offline); the second electronic device acquiring first location information based on the first Bluetooth broadcast, the first location information being at least one of the at least one location information; and the second electronic device reporting the first location information to a server.

[0025] In this way, the first application of the second electronic device obtains at least one location information. After the first application obtains at least one location information, the second electronic device scans for a first Bluetooth broadcast sent by the first electronic device. The second electronic device obtains first location information based on the first Bluetooth broadcast, which is at least one of the at least one location information. The second electronic device reports the first location information to the server. It is evident that the second electronic device can utilize location information obtained by other applications on the second electronic device, rather than frequently calling the location information obtained by the second application when scanning for a Bluetooth broadcast. This effectively reduces power consumption and allows for multiple reporting of location information, resulting in higher efficiency in locating lost devices.

[0026] In one possible implementation, the second electronic device reports the first location information to the server. Specifically, the second electronic device reports both the first location information and its device information to the server. The device information of the first electronic device is used to instruct the server to match the location information of the second electronic device with the account of the first electronic device based on that device information.

[0027] In one specific implementation, the second electronic device obtains the first location information based on the first Bluetooth broadcast, specifically by: the second electronic device obtaining the broadcast time and the acquisition time of at least one location piece of information based on the first Bluetooth broadcast. The second electronic device obtains the first location information based on the broadcast time and the acquisition time of at least one location piece of information.

[0028] In one specific implementation, the second electronic device acquires the first location information based on the broadcast time and the acquisition time of at least one location piece of information. Specifically, the second electronic device determines that the time difference between the acquisition time and the broadcast time of the at least one location piece of information is less than a first threshold. The second electronic device then uses the at least one location piece of information corresponding to the time difference being less than the first threshold as the first location information.

[0029] In one possible implementation, the second electronic device acquires the first location information based on the broadcast time and the acquisition time of at least one location piece of information. Specifically, the second electronic device determines that the time difference between the acquisition time and the broadcast time of the at least one location piece of information is minimized. The second electronic device then uses the at least one location piece of information corresponding to the minimum time difference as the first location information.

[0030] In one specific implementation, the second electronic device determines that the time difference between the acquisition time and the broadcast time of at least one location information is minimized, specifically by the second electronic device determining that the time difference between the acquisition time and the broadcast time of at least one location information is minimized and the time difference is less than a second threshold.

[0031] In some implementations, the method further includes: when the time difference between the broadcast time of the second Bluetooth broadcast scanned by the second electronic device and the acquisition time of at least one location information is greater than a third threshold, the second electronic device calls a second application to acquire the location information.

[0032] In one possible implementation, the second application is any application in the second electronic device that is capable of acquiring location information.

[0033] In one specific implementation, the second electronic device reports the first location information to the server. Specifically, when the second electronic device detects that a third application is reporting data to the server, it reports the first location information to the server. In other words, when the second electronic device detects that one of its multiple applications is reporting location information to the server, it reports the first location information to the server. This eliminates the need for the second electronic device to deliberately activate the network to report location information, thereby reducing the power consumption of AP wake-up and network activation.

[0034] In one specific implementation, the second electronic device reports the first location information to the server. Specifically, when the second electronic device connects to the network, it reports the first location information to the server. This connection is initiated by a fourth application. In other words, the second electronic device reports the first location information to the server as soon as it detects that the fourth application has initiated the network connection. This eliminates the need for the second electronic device to explicitly activate the network to report location information, thereby reducing the power consumption associated with AP wake-up and network activation.

[0035] In one possible implementation, the second electronic device reports the first location information to the server, specifically by simultaneously reporting multiple pieces of the first location information to the server. It should be understood that when the second electronic device receives a broadcast from the first electronic device, it does not matter whether the second electronic device determines one or more pieces of location information. The second electronic device can report location information over a period of time to the server in batches.

[0036] In this embodiment of the application, compared to the second electronic device reporting location information to the server once for each location determined, the second electronic device reporting location information to the server in batches can more effectively save power consumption.

[0037] In some implementations, before the first application of the second electronic device acquires at least one location information, the method further includes: the second electronic device receiving an operation from a user on the first application, wherein the first application is pre-configured to acquire location information upon application launch. In response to the user's operation on the first application, the second electronic device launches the first application.

[0038] In some possible implementations, the number of second electronic devices is at least one.

[0039] Thirdly, embodiments of this application provide a device location system, which may include: a first application of a second electronic device acquiring at least one location information; the first electronic device, after acquiring at least one location information, sending a first Bluetooth broadcast to the second electronic device, wherein the first electronic device is in an offline state; the second electronic device scanning the first Bluetooth broadcast sent by the first electronic device; the second electronic device acquiring first location information based on the first Bluetooth broadcast, wherein the first location information is at least one of at least one location information; and the second electronic device reporting the first location information to a server.

[0040] In this way, the first application of the second electronic device obtains at least one location information. After the first application obtains at least one location information, the second electronic device scans for a first Bluetooth broadcast sent by the first electronic device. The second electronic device obtains first location information based on the first Bluetooth broadcast, which is at least one of the at least one location information. The second electronic device reports the first location information to the server. It is evident that the second electronic device can utilize location information obtained by other applications on the second electronic device, rather than frequently calling the location information obtained by the second application when scanning for a Bluetooth broadcast. This effectively reduces power consumption and allows for multiple reporting of location information, resulting in higher efficiency in locating lost devices.

[0041] In one specific implementation, the second electronic device is further configured to: report the first location information and the device information of the first electronic device to the server. The device information of the first electronic device is used to instruct the server to match the location information of the second electronic device with the account of the first electronic device based on the device information of the first electronic device.

[0042] In some implementations, the system further includes: a third electronic device for sending a query request to the server, the query request being for querying the location of the first electronic device; and a server for obtaining the first location information based on the query request.

[0043] The server is also used to send the first location information to a third electronic device. The third electronic device is also used to display a first interface, which includes the first location corresponding to the first location information.

[0044] In one specific implementation, the second electronic device is further configured to: acquire the broadcast time and the acquisition time of at least one location information according to the first Bluetooth broadcast; and acquire the first location information according to the broadcast time and the acquisition time of at least one location information.

[0045] In one specific implementation, the second electronic device is further configured to: determine that the time difference between the acquisition time and the broadcast time of at least one location information is less than a first threshold; and use at least one location information corresponding to the time difference being less than the first threshold as the first location information.

[0046] In one specific implementation, the second electronic device is further configured to: determine that the time difference between the acquisition time and the broadcast time of at least one location information is minimized; and use at least one location information corresponding to the minimum time difference as the first location information.

[0047] In one specific implementation, the second electronic device is further configured to: determine that the time difference between the acquisition time and the broadcast time of at least one location information is minimized and the time difference is less than a second threshold.

[0048] In one specific implementation, the second electronic device is further configured to: when the time difference between the broadcast time of the second Bluetooth broadcast scanned by the second electronic device and the acquisition time of at least one location information is greater than a third threshold, invoke the second application to acquire the location information.

[0049] In one possible implementation, the second application is any application in the second electronic device that is capable of acquiring location information.

[0050] In one specific implementation, the second electronic device is further configured to: report the first location information to the server when the second electronic device detects that a third application is reporting data to the server.

[0051] In other words, when the second electronic device detects that one of its multiple applications (such as a third application) is reporting location information to the server, the second electronic device will then report the first location information to the server. This eliminates the need for the second electronic device to deliberately activate the network to report location information, thereby reducing the power consumption of AP wake-up and network activation.

[0052] In one specific implementation, the second electronic device is further configured to: report the first location information to the server when the second electronic device is connected to the network, wherein the second electronic device is connected to the network by a fourth application.

[0053] In this way, when the second electronic device detects that it has been connected to the network by the fourth application, it reports the first location information to the server. This eliminates the need for the second electronic device to deliberately activate the network to report location information, thereby reducing the power consumption of AP wake-up and network activation.

[0054] In one possible implementation, the second electronic device is further configured to simultaneously report multiple first location information entries to the server. It should be understood that when the second electronic device receives a broadcast from the first electronic device, it does so regardless of whether the number of location information entries determined by the second electronic device is one or more. The second electronic device can report location information over a period of time in batches to the server.

[0055] In this embodiment of the application, compared to the second electronic device reporting location information to the server once for each location determined, the second electronic device reporting location information to the server in batches can more effectively save power consumption.

[0056] In one possible implementation, the second electronic device is further configured to: receive a user's operation on a first application, wherein the first application is pre-configured to obtain location upon application startup; and launch the first application in response to the user's operation on the first application.

[0057] In some possible implementations, the number of second electronic devices is at least one.

[0058] In one specific implementation, the first electronic device is further configured to: pre-pair with a third electronic device to generate a pair of public and private keys on an elliptic curve; the first electronic device holds the public key, and the third electronic device holds the private and public keys.

[0059] In one specific implementation, the first electronic device is further used to: generate a pair of public and private keys on an elliptic curve; and, in a trusted environment, synchronize the public and private keys to a third electronic device, the third electronic device using the same account as the first electronic device.

[0060] Fourthly, embodiments of this application provide an electronic device, which serves as a first electronic device, including a touch screen, a memory, a transceiver, one or more processors, multiple applications, and one or more programs; wherein the one or more programs are stored in the memory, and the transceiver is used to transmit or receive wireless signals; characterized in that, when the one or more processors execute the one or more programs, they cause the electronic device to implement the method as described in the first aspect, or cause the electronic device to implement the method as described in the second aspect.

[0061] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program, the computer program including program instructions that, when executed by a computer, cause the computer to perform the method described in the first aspect, or the method described in the second aspect.

[0062] Sixthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform the method described in the first aspect, or the method described in the second aspect.

[0063] For the specific implementation methods and corresponding technical effects of the embodiments in the second to sixth aspects mentioned above, please refer to the specific implementation methods and technical effects of the first aspect mentioned above.

[0064] In this embodiment, a first application of the second electronic device acquires at least one location information. After acquiring the at least one location information, the second electronic device scans for a first Bluetooth broadcast sent by the first electronic device. The second electronic device acquires first location information based on the first Bluetooth broadcast, which is at least one of the at least one location information. The second electronic device reports the first location information to the server. Therefore, the second electronic device can utilize location information acquired by other applications on the second electronic device, rather than frequently calling the second application to acquire location information when scanning for a Bluetooth broadcast. This effectively reduces power consumption and allows for multiple reporting of location information, resulting in higher efficiency in locating lost devices. Attached Figure Description

[0065] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below.

[0066] Figure 1 This is a schematic diagram of a device search system provided in an embodiment of this application;

[0067] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0068] Figure 3 This is a software architecture diagram of the device search system provided in the embodiments of this application;

[0069] Figure 4a This is a schematic flowchart of the device search method provided in the embodiments of this application;

[0070] Figure 4b A flowchart illustrating the device search method provided in this application embodiment;

[0071] Figure 5a This is a schematic diagram of an interface of the second electronic device provided in an embodiment of this application;

[0072] Figure 5b This is another schematic diagram of the interface of the second electronic device provided in the embodiments of this application;

[0073] Figure 5c This is another schematic diagram of the interface of the second electronic device provided in the embodiments of this application;

[0074] Figure 5d This is another schematic diagram of the interface of the second electronic device provided in the embodiments of this application;

[0075] Figure 6a This is a schematic diagram of an interface of the first electronic device provided in an embodiment of this application;

[0076] Figure 6b This is another schematic diagram of the interface of the first electronic device provided in the embodiments of this application;

[0077] Figure 6c This is another schematic diagram of the interface of the first electronic device provided in the embodiments of this application;

[0078] Figure 7a This is a schematic diagram of an interface of a third electronic device provided in an embodiment of this application;

[0079] Figure 7b This is another schematic diagram of the interface of the third electronic device provided in the embodiments of this application;

[0080] Figure 7c This is another schematic diagram of the interface of the third electronic device provided in the embodiments of this application;

[0081] Figure 7d This is another schematic diagram of the interface of the third electronic device provided in the embodiments of this application;

[0082] Figure 7e This is another schematic diagram of the interface of the third electronic device provided in the embodiments of this application;

[0083] Figure 8a This is another schematic diagram of the interface of the third electronic device provided in the embodiments of this application;

[0084] Figure 8b This is another schematic diagram of the interface of the third electronic device provided in the embodiments of this application. Detailed Implementation

[0085] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.

[0086] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0087] The terms “comprising” and “having”, and any variations thereof, in the specification, claims, and accompanying drawings of this invention are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, system, product, or apparatus.

[0088] In existing device location methods, it is assumed that the first electronic device is a lost device, and the second electronic device is an online device near the lost device. Whenever the second electronic device receives a Bluetooth broadcast from the first device, it performs GPS positioning, network positioning, wakes up the wireless access point (AP), uploads data, and launches applications. For example, one GPS positioning requires 0.278 mAh, one network positioning requires 0.4-0.7 mAh (i.e., one network positioning requires (0.4+0.7) / 2 = 0.55 mAh), one AP wake-up requires 0.05 mAh, one data upload requires 0.02 mAh, and one application launch requires 0.09 mAh. Assuming that one network positioning is required every two positioning attempts, the power consumption each time the second electronic device reports its location information is: 0.278 + 0.55 / 2 + 0.05 + 0.02 + 0.09 = 0.713 mAh. Furthermore, due to the limited power consumption of the second electronic device, assuming that the power consumption of the second electronic device assisting in reporting location information needs to be less than 3 mAH per day, the second electronic device can only report location information 0.713 mAH / 3 mAH = 4 times per day. Thus, during the search process by the first electronic device, the limited number of location information reports results in low efficiency in locating the lost device, failing to achieve a satisfactory search effect.

[0089] To address the aforementioned technical problems, in this embodiment, a first application of the second electronic device acquires at least one location information. After acquiring the at least one location information, the second electronic device scans for a first Bluetooth broadcast sent by the first electronic device. The second electronic device acquires first location information based on the first Bluetooth broadcast, which is at least one of the at least one location information. The second electronic device reports the first location information to the server. Therefore, the second electronic device can utilize location information acquired by other applications on the second electronic device, rather than frequently calling the location information acquired by the second application when scanning for a Bluetooth broadcast. This effectively reduces power consumption and allows for multiple reporting of location information, resulting in higher efficiency in locating lost devices.

[0090] To facilitate understanding of this invention, a scenario application of the device discovery method of this invention will be described below. For example... Figure 1 As shown, Figure 1 This is a schematic diagram of the device location system of the present invention.

[0091] See Figure 1 The device locator system includes at least two electronic devices. These electronic devices can refer to Bluetooth-enabled devices. For example, the two electronic devices can be a first electronic device 100 and a second electronic device 200. Both the first electronic device 100 and the second electronic device 200 can include a Bluetooth module, which can be integrated into the electronic device (i.e., a single unit) or pluggable. The first electronic device 100 and the second electronic device 200 can connect via Bluetooth. Connecting the two devices via Bluetooth means establishing a Bluetooth link between them. The two devices can send and receive signals to each other through this Bluetooth link; these signals are called Bluetooth signals.

[0092] In this embodiment, the first electronic device may be a lost device, and there may be at least one first electronic device. The first electronic device has network connectivity, meaning it connects to the internet via Wi-Fi or cellular networks. In this embodiment, when the user disables network connectivity (disables Wi-Fi and cellular networks), the first electronic device is in a disconnected state, preventing the second electronic device from communicating with the server. Therefore, when the first electronic device is in a disconnected state, it cannot report its location information to the server via its positioning module.

[0093] The second electronic device can be any device in the vicinity of the lost device, and there can be at least one second electronic device, such as second electronic device 201, second electronic device 202, and second electronic device 200. The second electronic device has assisted positioning capability. When the user of the second electronic device activates the assisted positioning function, the second electronic device can obtain the current location information of the electronic device, which can be, for example, latitude and longitude information. This positioning process can be achieved through a fusion positioning method, such as GPS positioning, base station positioning, Wi-Fi hotspot (Wi-Fi AP) positioning, and BeiDou satellite positioning. The second electronic device has network connectivity, which means it can connect to the Internet via Wi-Fi or cellular networks. When the user of the second electronic device activates the network function (turns on Wi-Fi or cellular networks), the second electronic device is in a network state and can communicate with a server.

[0094] The aforementioned second electronic device can act as a helpful device, reporting its location information to the server to assist in locating the approximate area of ​​the lost device, facilitating its rapid retrieval. Specifically, when the first electronic device is offline, it can send a Bluetooth broadcast to the second electronic device via Bluetooth. This broadcast can include a public key Pi derived from the public key P held by the first device. Upon receiving the broadcast, the second electronic device retrieves the public key Pi from the broadcast content and encrypts its location information using an elliptic curve integrate encrypt scheme (ECIES) algorithm. The second electronic device then uploads the encrypted location information to server 400. Server 400 can store relevant and status information of the electronic devices, providing electronic device information management and retrieval services.

[0095] The first electronic device 100 can register an account on the server 400, and the registered account is a unique sequence bound to the International Mobile Equipment Identity (IMEI) or Mobile Equipment Identify (MEID) of the first electronic device. In this way, the first electronic device and the registered account are bound together, and the user can simultaneously set a password for the registered account, becoming a legitimate user of that account, allowing the user to log in to the server through the registered account. The registered account of the first electronic device can be a terminal device system account. In other embodiments, the registered account of the first electronic device can be obtained by downloading a corresponding application and registering a corresponding account within the application; therefore, the second electronic device and the first electronic device can be terminal devices manufactured by different terminal manufacturers, and the implementation scheme in this application can be achieved by installing an application that can interact with the server on both the second and first electronic devices.

[0096] Optionally, the first electronic device 100 can be a Bluetooth-enabled electronic device such as a locator, tracker, mobile phone, wearable device such as a smartwatch, tablet, or personal digital assistant (PDA). Optionally, both the first electronic device 100 and the second electronic device 200 can be Bluetooth-enabled electronic devices such as mobile phones, wearable devices such as smartwatches, tablets, or PDAs. Optionally, the first electronic device 100 and the second electronic device 200 can be the same type of electronic device, for example, both can be mobile phones; the first electronic device 100 and the second electronic device 200 can also be different types of electronic devices, for example, the first electronic device 100 can be a mobile phone and the second electronic device 200 can be a smartwatch; or, the first electronic device 100 can be a locator / tracker and the second electronic device 200 can be a mobile phone.

[0097] In some feasible implementations, the provided device locator system also includes a third electronic device 300, on which a user can log in to the registered account of the first electronic device 100 and interact with the server 400 through the registered account of the first electronic device 100. The third electronic device 300 can be a computer, a mobile phone, a wearable device such as a smartwatch, or a tablet computer. When the third electronic device is a computer, the user can log in to their account through the service URL of the login server (e.g., a portal system); when the third electronic device is a mobile device such as a mobile phone, the user can log in to their account through an application (e.g., Find My Device). After the user logs in to the account of the first electronic device on the third electronic device, they can remotely control the first electronic device to perform corresponding functions; for example, the user can click "Locate Device" to obtain the current location of the first electronic device; or, the user can click "Preset Ringtone" to make the first electronic device ring; or, the user can click "Lost Module" to set the mode of the first electronic device to lost mode; or, the user can click "Delete Data" to delete the relevant data of the first electronic device.

[0098] In one feasible implementation, a first electronic device and a third electronic device are pre-paired to generate a public key P and a private key d on an elliptic curve. The first electronic device holds the public key P, and the third electronic device holds both the private key d and the public key P. In practical applications, this can be used when the first electronic device is a locator or tracker.

[0099] In another possible implementation, a first electronic device generates a public key P and a private key d on an elliptic curve. In a trusted environment, the first electronic device synchronizes the public key P and private key d to a third electronic device, which uses the same account as the first electronic device. In practical applications, this can be used when the first electronic device is a mobile phone.

[0100] For ease of understanding, the structure of the electronic device provided in the embodiments of this application will be illustrated below.

[0101] See Figure 2 , Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 2 The electronic devices shown (such as) Figure 1 One or more of the first electronic device 100, the second electronic device 200 and the third electronic device 300 shown may be a mobile phone, a tablet computer or a PAD.

[0102] like Figure 2As shown, the electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0103] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device. In other feasible embodiments of this application, the electronic device may include more or fewer components than illustrated, or combine some components, or split some components, or arrange different components, which can be determined according to the actual application scenario and is not limited here. Figure 2 The components shown can be implemented in hardware, software, or a combination of both.

[0104] Optionally, the processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processing unit (NPU), etc. The different processing units may be independent devices or integrated into one or more processors.

[0105] The controller can serve as the nerve center and command center of an electronic device. Based on the instruction opcode and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.

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

[0107] In some feasible implementations, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0108] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a limitation on the structure of the electronic device. In other feasible embodiments of this application, the electronic device may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.

[0109] The charging management module 140 receives charging input from the charger and charges the power management module 141 of the electronic device. The charger can be a wireless charger or a wired charger.

[0110] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0111] The wireless communication function of electronic devices can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

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

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

[0114] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some feasible embodiments, the modem processor may be a separate device. In other feasible embodiments, the modem processor may be independent of the processor 110 and housed within the same device as the mobile communication module 150 or other functional modules.

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

[0116] In some feasible implementations, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices (such as a second electronic device 200) via wireless communication technology. Wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The aforementioned GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0117] Electronic devices implement display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

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

[0119] In some feasible implementations, the display screen 194 can be used to display various interfaces of the electronic device's system output. The various interfaces of the electronic device's output can be found in the relevant descriptions of subsequent embodiments.

[0120] Electronic devices can achieve shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0121] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0122] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as device management functions, sound playback functions, etc.), etc. The data storage area may store data created during the use of the electronic device (such as device parameters, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0123] Electronic devices can implement audio functions such as music playback and recording through audio modules 170, speakers 170A, receivers 170B, microphones 170C, headphone jacks 170D, and application processors.

[0124] The audio module 170 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal.

[0125] The loudspeaker 170A, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals.

[0126] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals.

[0127] The microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals.

[0128] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0129] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some feasible embodiments, pressure sensor 180A can be located on display screen 194. Gyroscope sensor 180B can be used to determine the motion posture of electronic equipment. Barometric pressure sensor 180C is used to measure air pressure.

[0130] The accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes).

[0131] The 180F distance sensor is used to measure distance.

[0132] The 180L ambient light sensor is used to detect ambient light intensity.

[0133] The fingerprint sensor 180H is used to collect fingerprints.

[0134] The 180J temperature sensor is used to detect temperature.

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

[0136] Button 190 includes the power button, volume buttons, etc. Button 190 can be a mechanical button or a touch button.

[0137] Motor 191 can generate vibration alerts.

[0138] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0139] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device. In some feasible implementations, the electronic device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from it.

[0140] The software system of an electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application uses the layered architecture Android system as an example to illustrate the software structure of an electronic device.

[0141] See Figure 3 , Figure 3 This is a software structure block diagram of the electronic device provided in the embodiments of this application.

[0142] like Figure 3 As shown, the layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some feasible implementations, the Android system can be divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.

[0143] The application layer can include a series of application packages.

[0144] like Figure 3As shown, the application package may include Bluetooth, device management applications (applications with device management functions), navigation, maps, WLAN, SMS, gallery, calendar, calling and other applications (APPs).

[0145] The application framework layer provides application programming interfaces and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0146] like Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0147] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0148] Content providers store and retrieve data, making that data accessible to applications. This data can include videos, images, audio, phone calls made and received, browsing history and bookmarks, phone books, etc.

[0149] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0150] A phone manager is used to provide communication functions for electronic devices. For example, it manages call status (including connection and disconnection).

[0151] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0152] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog-style notifications on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0153] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0154] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0155] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0156] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0157] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0158] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0159] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0160] A 2D graphics engine is a graphics engine for 2D drawing.

[0161] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0162] The device location method of this application embodiment can be applied to the location scenarios of one or more electronic devices. For ease of description, the following description uses the example of one electronic device locating another electronic device. It is understood that this location scenario can be used to locate at least one first electronic device; the second electronic device can also locate multiple other electronic devices simultaneously.

[0163] Figure 4a This is a schematic flowchart of the device search method provided in an embodiment of this application. See also... Figure 4a The method may include:

[0164] In the first stage, the second electronic device acquires multiple location information in advance.

[0165] When a user uses a first application on a second electronic device, the second electronic device can grant "location information access permissions" to the first application. Specifically, taking a camera application as an example, such as... Figures 5a-5d As shown, the user operates the settings icon on the display interface of the second electronic device. The interface of the second electronic device consists of... Figure 5a The interface shown will redirect to Figure 5b The interface shown is, for example, camera settings interface 201. The user can select the "Permissions" function in the camera settings interface 201 of the second electronic device. The interface of the second electronic device is... Figure 5b The camera settings interface shown in step 201 will redirect to... Figure 5c The interface shown is, for example, the location information permissions interface 202. Users can select either "Always Allow" or "Allow During Use Only" in the location information permissions interface 202.

[0166] After completing the above steps, the user interacts with the first application on the second electronic device. In response to the user's interaction with the first application, the second electronic device launches the first application. During the operation of the first application, the second electronic device acquires at least one location information obtained by the first application. Continuing with the above example, if the user operates the camera, the second electronic device executes... Figure 3 The details are as follows: In the "Allow only during use" function of the user location information permission interface 202, ① User operation... Figure 5d The camera on the interface shown is now running. At this time, ② the camera calls the positioning module of the application framework layer to obtain the location information of the second electronic device. ③ After the positioning module obtains the location information of the second electronic device, the recording module of the application framework layer records the location information obtained by the positioning module. At this time, the recording module of the second electronic device records this location information and stores it in the database.

[0167] Of course, the first application can also be one or more of the following: online shopping application, food delivery application, ride-hailing application, weather forecast application, advertising application, or any application that can obtain the current location of the terminal. When the user launches these applications, the second electronic device performs the operations described above to obtain the location information of the second electronic device during the use of the aforementioned applications.

[0168] The positioning module may include a Global Positioning System (GPS) module, a network positioning module, or a fusion positioning module. The location information may include positioning time, latitude and longitude, positioning accuracy, and positioning method, as shown in Table 1. (See Table 1 for details.)

[0169] Table 1

[0170]

[0171] In the table, network positioning can be understood as determining location via Wi-Fi or mobile data networks. That is, by scanning the physical address (MAC address) of an electronic device via Wi-Fi or mobile data networks, it can be compared with latitude and longitude coordinates on a server to obtain the device's geographic address. Network positioning includes two implementation methods: first, Wi-Fi cell positioning, which determines location based on the location of the Wi-Fi router; second, base station positioning, which uses distance calculations from base stations to electronic devices (such as mobile phones) to determine the device's geographic location.

[0172] In the table, fusion positioning can be understood as the technology of fusion positioning integrating all current positioning methods, such as GPS positioning, base station positioning, Wi-Fi positioning, Bluetooth positioning, and sensor positioning.

[0173] In some embodiments, when the time difference between the broadcast time of the Bluetooth broadcast detected by the second electronic device and the acquisition time of at least one location information is greater than a second threshold, such as... Figure 3 As shown in diagram ⑩, the search module of the second electronic device calls the positioning module to obtain location information. For example, the low-power positioning module in the second electronic device calls the fusion positioning module to obtain location information. Then, ③ the recording module of the second electronic device obtains the location information from the positioning module, records the location information, and stores the location information in the database.

[0174] It should be noted that the second threshold can be set by the system, or the search module can periodically send the first threshold from the cloud server to the terminal.

[0175] In the second stage, the second electronic device acts as a "helper device." It selects the first location information from the multiple location data points acquired in the first stage and reports it to the server. This helps the first electronic device pinpoint its approximate location, facilitating its rapid location. Details are as follows:

[0176] S400, The first electronic device activates the retrieval function of the first electronic device.

[0177] During the use of the first electronic device, the user can enable the "Offline Search" function. Specifically, for example... Figures 6a-6c As shown, when a user operates the settings icon on the display interface of the first electronic device, the first electronic device displays as follows. Figure 6a The interface shown is like a settings interface. Users can select the "Security" function in the settings interface of the first electronic device. The interface of the first electronic device is... Figure 6a The settings interface shown will redirect to Figure 6bThe interface shown is like the security interface. When the user selects the "Enable Offline Search" function in the security interface, the interface of the first electronic device changes. Figure 6b The security interface shown redirects to Figure 6c The interface shown is similar to the Find My Device interface. When the user selects the "Enable Offline Search" option on the Find My Device interface, the first electronic device has enabled the "Enable Offline Search" function and can provide security protection, such as location ringing, lock tracking, and data protection. Taking a mobile phone as an example, if the mobile phone determines that its current state is offline, it will execute the offline search function. The offline search function includes: if the mobile phone is offline, it can send a Bluetooth signal to attempt to send an offline search request to other mobile phones, so that other mobile phones can report their location information to the server for retrieval.

[0178] In some implementations... Figure 6c The device search interface shown may also include functions such as "Find My Phone," "Send Last Location," and "Get Location." When the user selects the "Find My Phone" function, the user can perform the phone search function, specifically, the steps for finding a lost device phone as described in the following embodiment. When the user selects the "Send Last Location" function, the first electronic device sends its last location information before going offline to the server. Alternatively, when the lost device's battery level is below a preset value, the first electronic device sends its current location information to the server, which can be obtained via a GPS module. When the user selects the "Get Location" function, the first electronic device, when online, obtains its location information via GPS and sends it to the server.

[0179] S401, The first electronic device determines that the first electronic device is in an offline state.

[0180] Specifically, the offline state refers to a situation where the Wi-Fi network or cellular network setting of the first electronic device is not turned on, making it impossible for the first electronic device to log in to the Internet.

[0181] In some embodiments, the first electronic device may be in an environment with poor network signal, resulting in intermittent network connections. Therefore, in some cases, the first electronic device is set with a preset time. If the first electronic device is offline for longer than the preset time, it determines that it is currently offline; if it is offline for less than the preset time, it determines that it is currently active. In some embodiments, when the first electronic device detects that the user has actively disabled the connection between the phone and the network, it determines that it is currently offline and triggers the following lost device retrieval steps.

[0182] In some embodiments, the first electronic device is provided with a search module for determining whether the search function of the first electronic device is enabled. When the search function of the first electronic device is enabled, the first electronic device reports its location to the server in real time; simultaneously, the first electronic device detects its network status, and if the first electronic device is offline, it performs an offline search function.

[0183] S402, The first electronic device sends a Bluetooth broadcast. Correspondingly, the second electronic device receives the Bluetooth broadcast sent by the first electronic device.

[0184] In some embodiments, such as Figure 3 As shown, ④ the search module of the first electronic device sends an offline search request to the Bluetooth module. The offline search request is used to call the Bluetooth interface and trigger the Bluetooth module to send a Bluetooth broadcast.

[0185] In some embodiments, when the first electronic device determines that the current state is offline, it can directly call the interface of the Bluetooth module, thereby triggering the Bluetooth module to send a Bluetooth broadcast. In some embodiments, even if the first electronic device has not turned on the Bluetooth function, or the user has turned off the Bluetooth function on the operation interface, when the first electronic device determines that the current state is offline, it does not affect the first electronic device from directly calling the Bluetooth module. That is to say, the first electronic device can drive the Bluetooth module to send a Bluetooth broadcast through internal system instructions when offline.

[0186] In some embodiments, the Bluetooth broadcast carries an identifier of the first electronic device, which is used by the server to identify the identity of the first electronic device. Specifically, when the first electronic device logs into the server, it sends its account and identifier to the server. The server saves the account and identifier of the first electronic device, and when it subsequently receives the identifier of the first electronic device, it can match it with the corresponding account.

[0187] In some embodiments, the Bluetooth broadcast carries the public key P of the first electronic device. In some implementations, the first electronic device updates its public key information at regular intervals (e.g., daily). In this case, the first electronic device can pre-send the public key information for subsequent updates (e.g., the next 14 days) to the server. Specifically, the electronic device uploads its public key to the server via another device only on the second day after it is lost. At this time, since the server has pre-stored the public key information for the 14 days following the loss, it can match the corresponding device information based on the pre-stored public key information. In this implementation, the Bluetooth broadcast does not directly transmit the public key information of the first electronic device. This prevents other devices receiving the Bluetooth broadcast from knowing the specific information of the first electronic device, thus improving the security of the first electronic device. Furthermore, periodic updates to the public key can avoid the problem of public key information being tracked and cracked, improving the security of information transmission and protecting the privacy of the user of the lost device.

[0188] In some embodiments, the Bluetooth broadcast message carries a loss identifier, such as marking "lost device" in a certain identifier bit of the Bluetooth message. This allows the receiving electronic device to trigger a subsequent step of further confirmation with the server when it receives the Bluetooth broadcast. In some embodiments, the Bluetooth broadcast message carries an event code. For example, event code 01 indicates that receiving the Bluetooth broadcast triggers a subsequent step of further confirmation with the server; event code 02 indicates that receiving the Bluetooth broadcast triggers a subsequent step of reporting the location to the server. After receiving the message, the second electronic device can identify the event corresponding to the event code and execute the corresponding event based on the event code.

[0189] In some embodiments, such as Figure 3 As shown, ⑤ the Bluetooth module of the first electronic device 100 sends a Bluetooth broadcast to the Bluetooth module of the second electronic device 200. Correspondingly, the second electronic device 200 receives the Bluetooth broadcast sent by the first electronic device through its Bluetooth module.

[0190] In some embodiments, the second electronic device can be any device in the vicinity of the lost device, and the second electronic device can communicate with the first electronic device via Bluetooth. The user can enable Bluetooth in the settings of the second electronic device. After Bluetooth is enabled, the second electronic device can listen to broadcasts sent by the first electronic device and assist the first electronic device in locating the device.

[0191] In some implementations, the Bluetooth module of the first electronic device 100 broadcasts Bluetooth information at a preset transmission frequency, for example, once every preset time interval T, and the duration of the Bluetooth broadcast is X seconds, during which the Bluetooth broadcast information is continuously transmitted without interruption. Correspondingly, the Bluetooth module of the second electronic device 200 scans at a preset scanning frequency, wherein the preset second electronic device scans once every y seconds, and each scan lasts for z seconds. The second electronic device can receive the broadcast as long as the first electronic device initiates it. For example, the second electronic device can scan once every 600ms, with each scan lasting 100ms.

[0192] S403. When the second electronic device scans for Bluetooth broadcasts, the second electronic device records the broadcast information corresponding to the Bluetooth broadcast.

[0193] like Figure 3 As shown in Table 2, when the second electronic device scans the Bluetooth broadcast (such as a BLE broadcast) sent by the first electronic device, the second electronic device records the Bluetooth broadcast and stores it in the database in the form of broadcast information. This broadcast information may include the broadcast time (or scan time), BLE broadcast message, MAC address, signal strength RSSI, etc., as shown in Table 2.

[0194] Table 2

[0195]

[0196] S404, The second electronic device obtains the first location information based on Bluetooth broadcast.

[0197] like Figure 3 As shown, after the second electronic device 200 scans for a Bluetooth broadcast, the lookup module in the second electronic device 200 searches for at least one location information acquired by the second electronic device 200 from the recording module based on the broadcast time of the Bluetooth broadcast, and obtains the acquisition time of at least one location information. The lookup module obtains first location information based on the broadcast time, and this first location information is at least one of the at least one location information.

[0198] In some examples, S404 can be specifically implemented as follows:

[0199] S4041. The second electronic device obtains the broadcast time and the acquisition time of at least one location information according to the Bluetooth broadcast.

[0200] When the second electronic device scans for a Bluetooth broadcast, it obtains the broadcast time of the Bluetooth broadcast and the acquisition time of at least one location information stored in the database.

[0201] S4042. The second electronic device acquires the first location information based on the broadcast time and the acquisition time of at least one location information.

[0202] This should be understood as the second electronic device comparing the broadcast time with the acquisition time of at least one location piece of information. The second electronic device uses at least one location piece of information that meets the conditions as the first location piece of information.

[0203] The conditions may include one of the following: the time difference between the broadcast time and the location information acquisition time is the smallest; the time difference between the broadcast time and the location information acquisition time is less than a first threshold; the time difference between the broadcast time and the location information acquisition time is the smallest, and the smallest time difference is less than the first threshold.

[0204] In one possible implementation, the second electronic device determines that the time difference between the acquisition time and the broadcast time of at least one location piece of information is minimized. The second electronic device then uses the at least one location piece of information corresponding to the minimum time difference as the first location piece of information.

[0205] For example, as shown in Tables 1 and 2 above, the second electronic device stores location information L1 with a positioning time of 2021.7.1 16:30:00:020. When the second electronic device scans the first Bluetooth broadcast B1, the broadcast time of the first Bluetooth broadcast is 2021.7.1 16:31:10:121, and the second electronic device calculates the time difference between L1 and B1 to be 1 minute 10 seconds 101 milliseconds. When the second electronic device scans the second Bluetooth broadcast B2, the broadcast time of the second Bluetooth broadcast is 2021.7.1 16:34:22:560, and the second electronic device calculates the time difference between L1 and B2 to be 4 minutes 22 seconds 540 milliseconds. It can be seen that using L1 for positioning B1 has high reliability, while using L1 for positioning B2 has low reliability.

[0206] As shown in the examples in Tables 1 and 2 above, the second electronic device stores multiple location information, including location information L2. The location time of L2 is 16:35:22:560 on July 1, 2021. When the second electronic device scans the first Bluetooth broadcast B1, the broadcast time is 16:31:10:121 on July 1, 2021, and the second electronic device calculates the time difference between L2 and B1 to be 4 minutes, 12 seconds, and 330 milliseconds. When the second electronic device scans the second Bluetooth broadcast B2, the broadcast time is 16:34:22:560 on July 1, 2021, and the second electronic device calculates the time difference between L2 and B2 to be 1 minute. When the second electronic device scans the third Bluetooth broadcast B3, the broadcast time is 16:40:00:230 on July 1, 2021, and the second electronic device calculates the time difference between L2 and B3 to be 4 minutes, 37 seconds, and 670 milliseconds. Therefore, using L2 for B2 positioning has high reliability, using L2 for B1 positioning has medium reliability, and using L2 for B3 positioning has low reliability.

[0207] As can be seen, L1 is used for the location of B1, and L2 is used for the location of B2. When the second electronic device receives broadcast B1 sent by the first electronic device, the second electronic device determines L1 as the location information of the second electronic device; when the second electronic device receives broadcast B2 sent by the first electronic device, the second electronic device determines L2 as the location information of the second electronic device.

[0208] In another specific implementation, to more accurately select the first location information, the minimum time difference is less than a first threshold. That is, the second electronic device determines that the time difference between the broadcast time and the acquisition time of at least one location information is minimal and less than the first threshold; the second electronic device then uses the at least one location information corresponding to the minimum time difference as the first location information. The first threshold can be set by the system, or it can be periodically sent from the cloud server to the terminal by the search module. For example, the first threshold can be 5 minutes or 4 minutes; this application embodiment does not impose a specific limitation, and the actual implementation needs to determine the threshold based on the actual situation.

[0209] In another specific implementation, the second electronic device determines that the time difference between the acquisition time and the broadcast time of at least one location piece of information is less than a first threshold. The second electronic device then uses the at least one location piece of information corresponding to the time difference being less than the first threshold as the first location piece of information.

[0210] For example, assuming the first threshold is 5 minutes, as shown in the examples in Tables 1 and 2 above, the second electronic device stores multiple location information, such as location information L1 and location information L2. The second electronic device calculates the time difference between L1 and B1 to be 1 minute 10 seconds 101 milliseconds, the time difference between L1 and B2 to be 4 minutes 22 seconds 540 milliseconds, the time difference between L2 and B1 to be 4 minutes 12 seconds 330 milliseconds, the time difference between L2 and B2 to be 1 minute, and the time difference between L2 and B3 to be 4 minutes 37 seconds 670 milliseconds. All these time differences are less than 5 minutes. Therefore, when the second electronic device receives broadcast B1 from the first electronic device, it determines L1 and L2 as its location information; when the second electronic device receives broadcast B2 from the first electronic device, it determines L1 and L2 as its location information; and when the second electronic device receives broadcast B3 from the first electronic device, it determines L2 as its location information.

[0211] Therefore, in this embodiment of the application, the second electronic device can use the location information obtained by other applications on the second electronic device, instead of frequently calling the location information obtained by the second application when the second electronic device scans the Bluetooth broadcast. This can effectively reduce power consumption and achieve the effect of reporting location information multiple times, making the search for lost devices more efficient.

[0212] Of course, if the time difference between the broadcast time and the acquisition time of at least one location information by the second electronic device does not meet the above conditions, then the second electronic device acquires the location information in real time and uses the real-time acquired location information as the first location information. For example, such as... Figure 3 As shown in diagram ⑩, the search module of the second electronic device calls the positioning module to obtain location information in real time. For example, the low-power positioning module in the second electronic device calls the fusion positioning module to obtain location information. Then, ③ the recording module of the second electronic device 200 obtains the location information from the positioning module, records the location information, and stores the location information in the database. ⑦ The search module in the second electronic device 200 searches for the location information obtained by the second electronic device 200 from the recording module according to the broadcast time of the Bluetooth broadcast, and uses this location information as the first location information.

[0213] In some embodiments, such as Figure 4b As shown, after executing S404, the device search method provided in this application embodiment may further include:

[0214] S410. The second electronic device detects whether it is connected to the network. If the second electronic device detects that it is connected to the network, then S405 is executed; if the second electronic device does not detect that it is connected to the network, then S411 is executed.

[0215] In one embodiment, the second electronic device connecting to the network can be understood as the second electronic device initiating the network connection via a fourth application. That is, in order to use the fourth application on the second electronic device, the user triggers the second electronic device to connect to the network.

[0216] The fourth application can be understood as any application on the second electronic device, such as a food delivery application, a ride-hailing application, a travel application, a news application, an entertainment application, etc. This embodiment does not specifically limit the fourth application.

[0217] In some embodiments, when the second electronic device detects that a third application is reporting data to the server, the second electronic device reports the first location information to the server. That is, when the second electronic device detects that one of its multiple applications is interacting with the server, the second electronic device reports the first location information to the server. In one specific implementation, the server described in this embodiment and the server of the third application are the same server. This eliminates the need for the second electronic device to deliberately activate the network to report location information, reducing the power consumption of separately activating the network and the power consumption of AP wake-up.

[0218] S411, The second electronic device does not report the second location information to the server.

[0219] In this embodiment, the second electronic device detects whether it has been connected to the network by a fourth application. If the second electronic device detects that it has been connected to the network by the fourth application, it reports the first location information to the server. This eliminates the need for the second electronic device to deliberately activate the network to report location information, thereby reducing the power consumption of AP wake-up and network activation.

[0220] S405, the second electronic device reports the first location information and the device information of the first electronic device to the server.

[0221] like Figure 3 As shown, ⑧ the search module in the second electronic device 200 sends the found first location information and the device information of the first electronic device to the low-power reporting module. ⑨ The low-power reporting module reports the first location information and the device information of the first electronic device to the server.

[0222] The number of first location information can be one or more, and this application embodiment does not make a specific limitation.

[0223] Specifically, the device information of the first electronic device may include the identifier of the first electronic device or the public key information of the first electronic device. The identifier or public key information of the first electronic device can be obtained from the Bluetooth broadcast sent by the first electronic device. The device information of the first electronic device is used to instruct the server to match the location information of the second electronic device with the account of the first electronic device based on the device information of the first electronic device.

[0224] In some embodiments, when the first electronic device can communicate with the second electronic device via Bluetooth short-range communication, the physical distance between the two devices will be within a certain range, such as approximately 10 meters. The location of the second electronic device is reported to the server as the nearby location of the first electronic device for user reference. Specifically, the second electronic device encrypts the first location information before reporting it to the server. As in the example above, the second electronic device encrypts the latitude and longitude and positioning accuracy of L1 before reporting it to the server. For example, the Bluetooth broadcast sent by the first electronic device carries a derived public key Pi of public key P. The second electronic device encrypts the first location information using the elliptic curve integrated encryption scheme (ECIES) algorithm to obtain the ciphertext of the first location information, which carries the hash ciphertext of public key Pi.

[0225] In some embodiments, the second electronic device reports its location information to the server based on the offline location request sent by the first electronic device in S405. Of course, the second electronic device can also decide whether to report its location information to the server based on its own circumstances (such as when the second electronic device detects that other applications are reporting data to the server). Alternatively, the second electronic device can also report its location information upon receiving a reporting instruction from the server. For example, when the third electronic device requests the server to query the location information of the first electronic device, the server sends a command to the second electronic device to report its location information, at which point the second electronic device can report its location information to the server.

[0226] In some embodiments, when the second electronic device receives a broadcast from the first electronic device, the second electronic device determines multiple location information items, and reports these location information items to the server in batches. For example, as in the example above, when the second electronic device receives broadcast B1 from the first electronic device, the second electronic device determines L1 and L2 as its location information. The second electronic device can report both location information L1 and location information L2 to the server together.

[0227] In some embodiments, when a second electronic device receives a broadcast from a first electronic device, regardless of whether the second electronic device determines one or more location information items, the second electronic device can report location information over a period of time to the server in batches. For example, as in the example above, the second electronic device determines location information L1 at 16:31:10:121 on July 1, 2021, and location information L2 at 16:34:22:560 on July 1, 2021. The second electronic device can report both location information L1 and location information L2 to the server together.

[0228] In this embodiment of the application, compared to the second electronic device reporting location information to the server once for each location determined, the second electronic device reporting location information to the server in batches can more effectively save power consumption.

[0229] S406. The server updates the location information of the first electronic device based on the update information.

[0230] The server matches the location information of the second electronic device with the account of the first electronic device based on the device information of the first electronic device. Specifically, the server can determine the account of the first electronic device based on the device information, including the identifier or public key information of the first electronic device. Updating the location information of the first electronic device includes recording the location information of the second electronic device as the location information around the first electronic device. In this way, the location of the second electronic device is associated with the first electronic device and its account.

[0231] In some embodiments, there may be multiple second electronic devices around the first electronic device. In this case, updating the location information of the first electronic device specifically includes: the server can match the location information of the multiple second electronic devices with the account of the first electronic device, and record the location information of the multiple second electronic devices as the location information around the first electronic device.

[0232] S407. The third electronic device sends a query request to the server. The query request is used to request the location information of the first electronic device.

[0233] like Figure 3 As shown, The third electronic device 300 sends a query request to the server.

[0234] In some embodiments, the query request carries device information of the first electronic device. Specifically, the device information includes the identifier of the first electronic device or a derived public key Pi of the first electronic device's public key P. In some embodiments, the information carried by the first instruction may also include the battery level and functional parameters (such as location function) of the second electronic device 200.

[0235] Specifically, users log in to the mobile phone manufacturer's official website through a third electronic device or send a query request through a third application on the third electronic device. In some embodiments, the query request carries the user's account information.

[0236] Example 1: A user can operate a third application on a third electronic device to send a query request to the server through the third application. For example... Figure 7a As shown, users can click the "Find My Device" icon on the third electronic device, and the interface of the third electronic device will then be... Figure 7a The interface shown will redirect to Figure 7b The interface shown is as follows. After the user enters their account and password on this interface and clicks the login control, the third electronic device sends a query request to the server. This query request carries the account and the derived public key Pi of the public key P of the first electronic device.

[0237] Example 2: Users can log in to the official website of a mobile phone manufacturer through a third-party electronic device. For example... Figure 8a As shown, the user opens the official website. The user clicks... Figure 8a The "Find Device" control shown will jump to the interface of the third electronic device. Figure 8b The interface shown is as follows. After entering their account and password, the user clicks the login control to log in via the web browser. The third-party electronic device can then send a query request to the server to enable the device search function.

[0238] Of course, the third electronic device can send a query request to the server before S401, and this application embodiment does not specifically limit it.

[0239] S408. The server sends the first location information to the third electronic device according to the query request.

[0240] like Figure 3 As shown, The server sends the first location information to the third electronic device 300 based on the query request.

[0241] In this process, the user logs in to the account of the first electronic device on the third electronic device. Based on the location information of the second electronic device and the account of the first electronic device that matches it, the server sends the location information of the second electronic device to the device logged in by the account of the first electronic device. That is, the server sends the location information of the first electronic device to the third electronic device, or in other words, the server sends the first location information to the third electronic device.

[0242] Specifically, the server sends the first location information of the second electronic device to the third electronic device, and the third electronic device decrypts the location information using the private key di derived from the private key d.

[0243] The third electronic device receives the ciphertext of the first location information and decrypts the ciphertext of the first location information using di derived from the private key d held by the third electronic device, thereby obtaining the location of the second electronic device.

[0244] S409. The third electronic device displays a first interface, which includes a first location corresponding to the first location information.

[0245] In some embodiments, the third electronic device displays a first interface on its search module based on the acquired location information. The first interface may include at least one of the second electronic devices. The first interface may also display distance scale lines. In this way, the user can visually see the locations of the first electronic devices around the second electronic device by viewing the first interface, allowing the user to determine the approximate range of the first electronic device based on its location. This enables the user to find the lost device more quickly and accurately, improving the recovery rate of lost devices.

[0246] like Figure 7c As shown, the server sends the first location information of the second electronic device to the third electronic device, and the interface on the third electronic device is... Figure 7b The interface shown will redirect to Figure 7c The interface shown displays the approximate area of ​​the first electronic device, its offline time, and functional controls. These functional controls may include controls for locating the device, preset ringtones, loss mode, and deleting data.

[0247] like Figure 7d As shown, the server sends the first location information of the second electronic device to the third electronic device, and another display interface of the third electronic device is... Figure 7d The interface shown. Under the "Offline Search" function option on this interface, you can see "My Device: Huawei P40", offline time "2021-06-30 12:22", successful location time "2021-07-01 16:31:10", and specific location, etc. Figure 7d The interface shown may also include function options such as "Lock Device," "SMS Notification," "Delete Data," and "Preset Ringtone." The "Lock Device" option locks the first electronic device, preventing it from being operated by another party. The "SMS Notification" option sends a text message to the first electronic device. The "Delete Data" option deletes the data stored on the first electronic device to prevent information leakage. The "Preset Ringtone" option sets an alarm ringtone for the first electronic device to alert nearby users that it is a lost device. When the user operates... Figure 7d When the aforementioned functional controls are displayed on the interface shown, the third electronic device sends a corresponding request to the server, and the server performs the operation based on the request.

[0248] In another application scenario, users can log in to the official website of a mobile phone manufacturer through a third-party electronic device. For example... Figure 8a As shown, the user opens the official website. The user clicks... Figure 8a The "Find Device" control shown will jump to the interface of the third electronic device. Figure 8b The interface shown. When the user is in Figure 8b When the login control is used on the interface shown, the server sends the location information with the highest credibility to the third electronic device. For example, taking a laptop as the third electronic device, the third electronic device displays... Figure 7e The interface shown displays multiple location information for the first electronic device. Figure 7e The location information shown includes "2021.7.1 16:31:10 LI" and "2021.7.1 16:34:22 L2".

[0249] In another application scenario, the first electronic device can be a locator or tracker, the second electronic device can be a mobile phone, and the third electronic device can be a mobile phone or computer. The first electronic device can be attached to the user's object (such as a backpack). The first electronic device pairs with the second electronic device via Bluetooth, and can also pair with the third electronic device via a key. The first electronic device sends a Bluetooth broadcast to the second electronic device. When the second electronic device scans the Bluetooth broadcast sent by the first electronic device, it searches for a matching location in its pre-stored location information. The second device reports this location information to the server. When the user uses the third electronic device to locate the first electronic device, the third electronic device sends a query request to the server. The server searches for the second electronic device's location information based on this request and sends it back to the third electronic device. The third electronic device displays the location of the second electronic device, allowing the user to determine the approximate range of the first electronic device based on its location. This enables the user to find their object more quickly and accurately, improving search efficiency.

[0250] The various embodiments of this application can be combined arbitrarily to achieve different technical effects.

[0251] This application also provides an electronic device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, including computer instructions. When the one or more processors execute the computer instructions, the electronic device performs the aforementioned method steps to implement the methods in the above embodiments.

[0252] This application also provides a computer-readable storage medium including instructions that, when run on a computer, cause the computer to perform any of the methods described above.

[0253] This application also provides a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the methods described above.

[0254] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute any of the above methods in the above method embodiments.

[0255] This application also provides a chip including a processor and an interface circuit. The interface circuit is coupled to the processor. The processor is used to run computer programs or instructions to implement the above-described method. The interface circuit is used to communicate with other modules outside the chip.

[0256] In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" means one or more, and "multiple" means two or more. The terms "first," "second," etc., do not limit the quantity or order of execution, and "first," "second," etc., do not necessarily imply differences.

[0257] In the description of this application, the words "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0258] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

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

[0260] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

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

[0262] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially or in other words, the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

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

Claims

1. A device location method, characterized in that, include: The first application of the second electronic device obtains at least one location information; After the first application of the second electronic device obtains at least one location information, the second electronic device scans the first Bluetooth broadcast sent by the first electronic device, where the first electronic device is in an offline state. The second electronic device obtains first location information based on the first Bluetooth broadcast, wherein the first location information is at least one of at least one location information. The second electronic device reports the first location information to the server; When the second electronic device detects that a third application is reporting data to the server, the second electronic device reports the first location information to the server.

2. The method according to claim 1, characterized in that, The second electronic device reports the first location information to the server, including: The second electronic device reports the first location information and the device information of the first electronic device to the server; The device information of the first electronic device is used to instruct the server to match the location information of the second electronic device with the account of the first electronic device based on the device information of the first electronic device.

3. The method according to claim 2, characterized in that, After the second electronic device reports the first location information to the server, the process further includes: The third electronic device sends a query request to the server, the query request being used to request the location of the first electronic device; The server obtains the first location information based on the query request; The server sends the first location information to the third electronic device; The third electronic device displays a first interface, which includes a first location corresponding to the first location information.

4. The method according to claim 3, characterized in that, The second electronic device obtains the first location information according to the first Bluetooth broadcast, including: The second electronic device obtains the broadcast time and the acquisition time of at least one location information based on the first Bluetooth broadcast; The second electronic device acquires the first location information based on the broadcast time and the acquisition time of the at least one location information.

5. The method according to claim 4, characterized in that, The second electronic device acquires the first location information based on the broadcast time and the acquisition time of the at least one location information, including: The second electronic device determines that the time difference between the acquisition time of the at least one location information and the broadcast time is less than a first threshold. The second electronic device uses at least one location information that is less than the first threshold as the first location information.

6. The method according to claim 4, characterized in that, The second electronic device acquires the first location information based on the broadcast time and the acquisition time of the at least one location information, including: The second electronic device determines that the time difference between the acquisition time and the broadcast time of the at least one location information is minimized; The second electronic device uses at least one location information corresponding to the minimum time difference as the first location information.

7. The method according to claim 6, characterized in that, The second electronic device determines that the time difference between the acquisition time and the broadcast time of the at least one location information is minimized, including: The second electronic device determines that the time difference between the acquisition time and the broadcast time of the at least one location information is the smallest and the time difference is less than a second threshold.

8. The method according to claim 7, characterized in that, Also includes: If the time difference between the broadcast time of the second Bluetooth broadcast detected by the second electronic device and the acquisition time of the at least one location information is greater than a third threshold, the second electronic device calls the second application to obtain the location information.

9. The method according to claim 8, characterized in that, The second application is any application in the second electronic device that is capable of obtaining location information.

10. The method according to any one of claims 1-9, characterized in that, The second electronic device reports the first location information to the server, including: When the second electronic device connects to the network, it reports the first location information to the server. The second electronic device connects to the network via a fourth application.

11. The method according to claim 10, characterized in that, The second electronic device reports the first location information to the server, including: The second electronic device simultaneously reports multiple instances of the first location information to the server.

12. The method according to claim 11, characterized in that, Before the first application of the second electronic device obtains at least one location information, it also includes: The second electronic device receives user operations on the first application, wherein the first application has its location acquisition function pre-enabled; In response to the user's operation on the first application, the second electronic device launches the first application.

13. The method according to claim 12, characterized in that, The number of the second electronic devices is at least one.

14. The method according to claim 13, characterized in that, Also includes: The first electronic device is pre-paired with the third electronic device to generate a pair of public and private keys on an elliptic curve. The first electronic device holds the public key, and the third electronic device holds the private key and the public key.

15. The method according to claim 13, characterized in that, Also includes: The first electronic device generates a pair of public and private keys on an elliptic curve. In a trusted environment, the first electronic device synchronizes the public and private keys to the third electronic device, and the third electronic device uses the same account as the first electronic device.

16. A device location system, characterized in that, include: A second electronic device, wherein a first application of the second electronic device acquires at least one location information; A first electronic device is configured to send a first Bluetooth broadcast to a second electronic device after the first application obtains at least one location information, wherein the first electronic device is in an offline state; The second electronic device is used to scan the first Bluetooth broadcast sent by the first electronic device; The second electronic device is used to obtain first location information according to the first Bluetooth broadcast, wherein the first location information is at least one of at least one location information; The second electronic device is used to report the first location information to the server; When the second electronic device detects that a third application is reporting data to the server, it reports the first location information to the server.

17. The system according to claim 16, characterized in that, The second electronic device is also used for: The first location information and the device information of the first electronic device are reported to the server. The device information of the first electronic device is used to instruct the server to match the location information of the second electronic device with the account of the first electronic device based on the device information of the first electronic device.

18. The system according to claim 17, characterized in that, Also includes: A third electronic device is used to send a query request to the server, the query request being used to request the location of the first electronic device; The server is configured to obtain the first location information based on the query request; The server is also used to send the first location information to the third electronic device; The third electronic device is also used to display a first interface, the first interface including a first location corresponding to the first location information.

19. The system according to claim 18, characterized in that, The second electronic device is also used for: The broadcast time and the acquisition time of at least one location information are obtained based on the first Bluetooth broadcast; The first location information is obtained based on the broadcast time and the acquisition time of the at least one location information.

20. The system according to claim 19, characterized in that, The second electronic device is also used for: The time difference between the acquisition time of the at least one location information and the broadcast time is less than a first threshold. At least one location information corresponding to a value less than the first threshold shall be used as the first location information.

21. The system according to claim 19, characterized in that, The second electronic device is also used for: The time difference between the acquisition time and the broadcast time of the at least one location information is minimized. At least one location information corresponding to the smallest time difference is used as the first location information.

22. The system according to claim 21, characterized in that, The second electronic device is also used for: The time difference between the acquisition time and the broadcast time of the at least one location information is determined to be the minimum, and the time difference is less than a second threshold.

23. The system according to claim 22, characterized in that, The second electronic device is also used for: If the time difference between the broadcast time of the second Bluetooth broadcast detected and the acquisition time of the at least one location information is greater than a third threshold, the second application is invoked to acquire the location information.

24. The system according to claim 23, characterized in that, The second application is any application in the second electronic device that is capable of obtaining location information.

25. The system according to any one of claims 16-24, characterized in that, The second electronic device is also used for: When the second electronic device connects to the network, it reports the first location information to the server, wherein the second electronic device is connected to the network by the fourth application.

26. The system according to claim 24, characterized in that, The second electronic device is also used for: Simultaneously, multiple instances of the first location information are reported to the server.

27. The system according to claim 25, characterized in that, The second electronic device is also used for: Receive user operations on the first application, wherein the first application has its location acquisition function pre-enabled; In response to the user's operation on the first application, the first application is launched.

28. The system according to claim 27, characterized in that, The number of the second electronic devices is at least one.

29. The system according to claim 28, characterized in that, The first electronic device is also used for: The device is pre-paired with the third electronic device to generate a pair of public and private keys on an elliptic curve. The first electronic device holds the public key, and the third electronic device holds the private key and the public key.

30. The system according to claim 28, characterized in that, The first electronic device is also used for: Generate a public and private key pair on an elliptic curve. In a trusted environment, the public and private keys are synchronized to the third electronic device, which uses the same account as the first electronic device.

31. An electronic device, which serves as a second electronic device, comprising a touchscreen, a memory, a transceiver, one or more processors, multiple applications, and one or more programs; wherein, The one or more programs are stored in the memory, and the transceiver is used to transmit or receive wireless signals; characterized in that, when the one or more processors execute the one or more programs, the electronic device causes the electronic device to implement the method as described in any one of claims 1-15.

32. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, the computer program including program instructions that, when executed by a computer, cause the computer to perform the method as described in any one of claims 1-15.

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

Citation Information

Patent Citations

  • Method and device for location of mobile terminal

    CN109195109A

  • Method of locating a mobile device and a cloud computer system employing same

    US20160381510A1