Method, device and system for acquiring position information of device

By adding shutdown retrieval control logic to the power management module of the terminal device, the Bluetooth chip power supply problem after the device is shut down is solved, and the device position is quickly positioned and retrieved, with low cost and simple implementation.

CN119450346APending Publication Date: 2025-02-14HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310956865.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-28
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

How to keep powering the Bluetooth chip after the terminal device is turned off so that it can send Bluetooth broadcasts to help users find the lost device.

Method used

By adding shutdown retrieval control logic in the power management module, it instructs the communication chip to remain enabled after the device is shut down, and obtains power from the battery to send a broadcast signal.

Benefits of technology

It realizes a communication chip that can still work normally after the terminal device is shut down, helping users quickly find lost devices through the "good-hearted person" solution, and it is low in cost and simple in implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119450346A_ABST
    Figure CN119450346A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device and a system for acquiring position information of a device, relates to the technical field of terminals, and can provide a more economical, simple and easy-to-implement scheme for acquiring the position information of a terminal device which is shut down after being lost so as to help a user to quickly find the lost terminal device. On the basis of existing hardware of the terminal equipment, normal power supply and enabling of relevant modules, such as a Bluetooth chip, an ultra wide band (UWB) chip and an audio amplifier, for the shutdown after the terminal equipment is lost and shut down are realized by improving software (such as pin control logic), so that the terminal equipment can work normally, and the power consumption of the terminal equipment is reduced. A user is helped to quickly find the terminal equipment, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method, device and system for obtaining device location information. Background Art

[0002] With the popularization of mobile phones, smart watches, tablet computers and other terminal devices, people often have multiple terminal devices for daily life and work. When users use terminal devices, the terminal devices may be lost and shut down. For example, the user carelessly loses the terminal device in a corner and shuts down due to low power or damage, or the user's terminal device is maliciously stolen and shut down by others.

[0003] In order to help users find the terminal device smoothly in the scenario where the terminal device is lost and turned off, as a possible implementation method, it can be implemented through the "good Samaritan" solution. For example, the lost terminal device can send a Bluetooth broadcast after being turned off. When other terminal devices around scan the Bluetooth broadcast, they can send their own location information to the cloud. Based on this, the cloud can obtain the location of the lost terminal device and remind the user.

[0004] However, we know that after the terminal device is turned off, the battery of the terminal device often no longer supplies power to other modules, such as the Bluetooth chip. The Bluetooth chip that does not receive the enable signal naturally cannot send Bluetooth broadcasts. Therefore, how to keep the Bluetooth chip powered after the terminal device is turned off is a problem that needs to be solved. Summary of the invention

[0005] The present application provides a method, device and system for obtaining device location information, which can provide a more economical, simple and easy-to-implement solution for obtaining the location information of a terminal device that has been turned off after being lost, helping users quickly find the lost terminal device.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, a method for obtaining device location information is provided, and the method is applied to an electronic device, such as a first device, wherein the first device includes a battery, a power management module, a processor and a communication chip, and the method includes: in response to a first condition, the processor sends a first signal to the power management module; the power management module instructs the communication chip to enter or remain in an enabled state according to the first signal; the first device is shut down after the processor is powered off; after the first device is shut down, the communication chip is in an enabled state; the communication chip in the enabled state obtains power from the battery and sends a broadcast signal according to a first broadcast parameter.

[0008] When the communication chip is in the enabled state, the communication chip can use the power from the battery to operate normally, including sending a broadcast signal according to the first broadcast parameter.

[0009] Exemplarily, the first condition is usually used to trigger the first device to shut down. For example, the first condition may be that the first device receives a shutdown operation, or the power of the first device is less than a preset power threshold, or the first device meets a preset condition (such as meeting a timed shutdown condition, etc.).

[0010] Exemplarily, the power management module may include a control logic unit or a control logic module for setting the shutdown recovery control logic, which is used to manage and execute the shutdown recovery control logic. When the power management module receives the first signal from the processor, the shutdown recovery control logic may be started to instruct the communication chip to enter or maintain an enabled state.

[0011] The solution provided in the first aspect above, through improving the software of the power management module (such as the shutdown and retrieval control logic), can realize the power supply and enabling of the communication chip of the first device after it is shut down at an extremely low cost based on the existing hardware of the first device. The improvement process is simple and time-saving. Therefore, it can provide a more economical, simple and easy-to-implement solution for obtaining the location information of the first device that is turned off after being lost, thereby helping users to quickly retrieve the lost first device.

[0012] As a possible implementation, the processor may include a first system power management interface, the power management module may include a second system power management interface, the first system power management interface is connected to the second system power management interface, and the processor sends a first signal to the power management module, including: the processor sends the first signal to the power management module through the first system power management interface. Exemplarily, the first system power management interface is such as a system power management interface (SPMI), and the second system power management interface is such as an SPMI interface. Based on this, by improving the software of the power management module (such as the pin control logic), the processor can instruct the power management module to start the shutdown retrieval control logic through a first signal before the first device is shut down, to ensure that the power management module can normally power and enable the communication chip after the first device is shut down, so that the communication chip can work normally, such as sending a broadcast signal, and then smoothly help users quickly retrieve lost terminal devices through solutions such as "good people".

[0013] As a possible implementation, the power management module includes a first general purpose input / output interface, the communication chip includes a first enable pin, and the first general purpose input / output interface is connected to the first enable pin; the power management module instructs the communication chip to enter or maintain an enabled state according to the first signal, including: the power management module instructs the communication chip to enter or maintain an enabled state through the first general purpose input / output interface according to the first signal. Exemplarily, the first general purpose input / output interface is a general purpose input / output (general purpose input / output, such as GPIO), and taking the communication chip as a Bluetooth chip as an example, the first enable pin is such as BT_EN. Based on this, by improving the software of the power management module (such as pin control logic), the power management module can normally power and enable the communication chip after the first device is shut down, so that the communication chip can work normally, such as sending broadcast signals, and then smoothly help users quickly find lost terminal devices through solutions such as "good people".

[0014] As a possible implementation, the first device further includes a distance measurement and angle measurement chip, and before the processor is powered off, the method further includes: the power management module instructs the distance measurement and angle measurement chip to enter or maintain an enabled state according to the first signal. Based on this, the user can know the exact location of the first device more accurately, and find the lost first device more quickly.

[0015] As a possible implementation, the power management module further includes a fourth general input / output interface, the distance measurement and angle measurement chip includes a second enable pin, and the fourth general input / output interface is connected to the second enable pin; the power management module instructs the distance measurement and angle measurement chip to enter or maintain an enabled state according to the first signal, including: the power management module controls the fourth general input / output interface according to the first signal to instruct the distance measurement and angle measurement chip to enter or maintain an enabled state. Exemplarily, the fourth general input / output interface is such as GPIO, and taking the distance measurement and angle measurement chip as an ultra wide band radio (UWB) chip as an example, the second enable pin is such as UWB_EN. Based on this, by improving the software of the power management module (such as the pin control logic), the power management module can normally power and enable the distance measurement and angle measurement chip after the first device is turned off, so that the distance measurement and angle measurement chip can work normally, helping the user to know the exact location of the first device more accurately, and helping the user to find the lost first device more quickly.

[0016] As a possible implementation, the communication chip further includes a first communication interface, the distance measurement and angle measurement chip further includes a second communication interface, the first communication interface is connected to the second communication interface, and the method further includes: when the second condition is met, the communication chip sends a distance measurement and angle measurement indication to the distance measurement and angle measurement chip through the first communication interface; the distance measurement and angle measurement chip performs the distance measurement and angle measurement task of the first device in cooperation with the first distance measurement and angle measurement parameters according to the distance measurement and angle measurement indication. Exemplarily, the first communication interface and the second communication interface are such as universal asynchronous receiver / transmitter (UART) interfaces. Based on this, by improving the software of the power management module (such as pin control logic), the power management module can trigger the distance measurement and angle measurement chip to work normally according to preset conditions after the first device is turned off, so as to help the user know the exact location of the first device more accurately and help the user find the lost first device more quickly.

[0017] As a possible implementation, the communication chip and the distance and angle measurement chip obtain power from the battery from the power management module. Based on this, a more economical, simple, and easy-to-implement solution can be provided to provide normal power supply to the communication chip and the distance and angle measurement chip after the first device is turned off, helping users to quickly find the lost terminal device.

[0018] As a possible implementation, the first device further includes an audio amplifier and a speaker, the audio amplifier is connected to the speaker, the communication chip includes a fifth general purpose input / output interface, the audio amplifier includes a sixth general purpose input / output interface, the fifth general purpose input / output interface is connected to the sixth general purpose input / output interface, and the method further includes: when the second condition is met, the communication chip instructs the audio amplifier to play a ringtone through the speaker through the fifth general purpose input / output interface; wherein the audio amplifier obtains power from the battery from the power management module. Based on this, it can help users find the lost first device more quickly.

[0019] Exemplarily, a sound waveform is pre-set in the audio amplifier, and the ringtone played by the speaker is the ringtone corresponding to the sound waveform.

[0020] As a possible implementation, the second condition is satisfied, including: receiving a preset instruction from a third device; wherein the first device establishes a communication connection with the third device. Based on this, the first device can play a ringtone according to the instruction of the third device to help the user find the lost first device more quickly. For example, the user can turn on the ring button on the third device that has established a communication connection with the first device, and under the premise of ensuring the security of device information, instruct the first device to ring through the third device.

[0021] As a possible implementation, the second condition is met, and further includes: the third device and the first device are logged into the same cloud server account. Based on this, the third device can be used to instruct the first device to ring while ensuring the security of device information, so as to help the user find the lost first device more quickly.

[0022] As a possible implementation, the method further includes: in response to the first condition, the processor sends a first broadcast parameter to the communication chip; wherein the first condition includes: the first device receives a shutdown operation, or the power of the first device is less than a preset power threshold, or a preset condition is satisfied. Based on this, it can be ensured that the communication chip sends a broadcast signal according to the broadcast parameter preset in the processor after the first device is shut down, thereby ensuring the smooth retrieval of the first device.

[0023] In a second aspect, a method for obtaining device location information is provided, and the method is applied to an electronic device, such as a first device, the first device including a battery, a processor and a communication chip, wherein the processor includes a seventh general purpose input / output interface, the communication chip includes a first enable pin and an eighth general purpose input / output interface, the seventh general purpose input / output interface is connected to the first enable pin, and the eighth general purpose input / output interface is connected to the first enable pin, and the above method includes: in response to a first condition, the processor instructs the communication chip to enter or maintain an enabled state through the seventh general purpose input / output interface; the first device is shut down after the processor is powered off; after the first device is shut down, the communication chip maintains the first enable pin at a high level through the eighth general purpose input / output interface to put the communication chip in an enabled state; the communication chip in the enabled state obtains electrical energy from the battery, and sends a broadcast signal according to the first broadcast parameter.

[0024] When the communication chip is in the enabled state, the communication chip can use the power from the battery to operate normally, including sending a broadcast signal according to the first broadcast parameter.

[0025] Exemplarily, the first condition is usually used to trigger the first device to shut down. For example, the first condition may be that the first device receives a shutdown operation, or the power of the first device is less than a preset power threshold, or the first device meets a preset condition (such as meeting a timed shutdown condition, etc.).

[0026] Exemplarily, the seventh general purpose input / output interface and the eighth general purpose input / output interface are such as GPIOs, and taking the communication chip as a Bluetooth chip as an example, the first enable pin is such as BT_EN.

[0027] The solution provided in the second aspect above, through improving the shutdown and retrieval control logic of the power conversion module and the communication chip, can realize the power supply and enabling of the communication chip of the first device after shutdown based on low-cost hardware cost. The improvement process is simple and time-saving. Therefore, it can provide a more economical, simple and easy-to-implement solution for obtaining the location information of the first device that is turned off after being lost, helping users to quickly retrieve the lost first device.

[0028] As a possible implementation, the first device further includes a ranging and angle measuring chip, the communication chip further includes a ninth general input and output interface, the ranging and angle measuring chip includes a third enable pin, the ninth general input and output interface is connected to the third enable pin, and the method further includes: after the first device is turned off, the communication chip controls the ranging and angle measuring chip to be in an enabled state through the ninth general input and output interface. Exemplarily, the ninth general input and output interface is such as GPIO, and taking the ranging and angle measuring chip as a UWB chip as an example, the third enable pin is such as UWB_EN. Based on this, by improving the pin control logic of the communication chip and the ranging and angle measuring chip, the communication chip can enable the ranging and angle measuring chip normally after the first device is turned off, so that the ranging and angle measuring chip can work normally, helping the user to know the exact location of the first device more accurately, and helping the user to find the lost first device more quickly.

[0029] As a possible implementation, the communication chip further includes a first communication interface, the ranging and angle measuring chip further includes a second communication interface, the first communication interface is connected to the second communication interface, and the method further includes: when the second condition is met, the communication chip sends a ranging and angle measuring indication to the ranging and angle measuring chip through the first communication interface; the ranging and angle measuring chip cooperates to perform the ranging and angle measuring task for the first device based on the ranging and angle measuring indication and the first ranging and angle measuring parameters. Exemplarily, the first communication interface is such as a UART interface. Based on this, by improving the pin control logic of the communication chip and the ranging and angle measuring chip, the communication chip can enable the ranging and angle measuring chip normally after the first device is turned off, so that the ranging and angle measuring chip can work normally, helping the user to know the exact location of the first device more accurately, and helping the user to find the lost first device more quickly.

[0030] As a possible implementation, the first device further includes a power conversion module, and the communication chip and the distance and angle measurement chip obtain power from the battery from the power conversion module. Based on this, a more economical, simple, and easy-to-implement solution can be provided for normal power supply to the communication chip and the distance and angle measurement chip after the first device is turned off, so as to help users quickly find the lost terminal device.

[0031] As a possible implementation, the first device further includes an audio amplifier and a speaker, the audio amplifier is connected to the speaker, the communication chip includes a fifth general purpose input and output interface, the audio amplifier includes a sixth general purpose input and output interface, the fifth general purpose input and output interface is connected to the sixth general purpose input and output interface, and the method further includes: when the second condition is met, the communication chip instructs the audio amplifier to play the ringtone through the speaker through the fifth general purpose input and output interface; wherein the audio amplifier obtains power from the battery from the power conversion module. Exemplarily, the fifth general purpose input and output interface and the sixth general purpose input and output interface are such as GPIO. Based on this, it can help users find the lost first device more quickly.

[0032] Exemplarily, a sound waveform is pre-set in the audio amplifier, and the ringtone played by the speaker is the ringtone corresponding to the sound waveform.

[0033] As a possible implementation, the second condition is satisfied, including: receiving a preset instruction from a third device; wherein the first device establishes a communication connection with the third device. Based on this, the first device can play a ringtone according to the instruction of the third device to help the user find the lost first device more quickly. For example, the user can turn on the ring button on the third device that has established a communication connection with the first device, and under the premise of ensuring the security of device information, instruct the first device to ring through the third device.

[0034] As a possible implementation, the second condition is met, and further includes: the third device and the first device are logged into the same cloud server account. Based on this, the third device can be used to instruct the first device to ring while ensuring the security of device information, so as to help the user find the lost first device more quickly.

[0035] As a possible implementation, the method further includes: in response to the first condition, the processor sends a first broadcast parameter to the communication chip; wherein the first condition includes: the first device receives a shutdown operation, or the power of the first device is less than a preset power threshold, or a preset condition is satisfied. Based on this, it can be ensured that the communication chip sends a broadcast signal according to the broadcast parameter preset in the processor after the first device is shut down, thereby ensuring the smooth retrieval of the first device.

[0036] In a third aspect, an electronic device is provided, such as a first device, the first device comprising: a processor, configured to send a first signal to a power management module in response to a first condition; the power management module, configured to instruct a communication chip to enter or remain in an enabled state according to the first signal; and a communication chip, configured to be in an enabled state after the processor is powered off and the first device is shut down, obtain power from a battery, and send a broadcast signal according to a first broadcast parameter. The battery is used to power various modules in the first device, such as powering the communication chip after the first device is shut down.

[0037] The solution provided in the third aspect above, through the improvement of the software of the power management module, can realize the power supply and enabling of the communication chip of the first device after it is shut down at an extremely low cost based on the existing hardware of the first device. The improvement process is simple and time-saving. Therefore, it can provide a more economical, simple and easy-to-implement solution for obtaining the location information of the first device that is turned off after being lost, thereby helping users to quickly find the lost first device.

[0038] As a possible implementation, the processor may include a first system power management interface, the power management module may include a second system power management interface, the first system power management interface is connected to the second system power management interface, and the processor is specifically used to: send a first signal to the power management module through the first system power management interface. Based on this, by improving the software of the power management module (such as the pin control logic), the processor can instruct the power management module to start the shutdown retrieval control logic through the first signal before the first device is shut down, to ensure that the power management module can normally power and enable the communication chip after the first device is shut down, so that the communication chip can work normally, such as sending broadcast signals, and then successfully help users quickly retrieve lost terminal devices through solutions such as "good people".

[0039] As a possible implementation, the power management module includes a first general purpose input / output interface, the communication chip includes a first enable pin, and the first general purpose input / output interface is connected to the first enable pin; the power management module is specifically used to: instruct the communication chip to enter or maintain an enabled state through the first general purpose input / output interface according to the first signal. Based on this, by improving the software of the power management module (such as the pin control logic), the power management module can normally power and enable the communication chip after the first device is shut down, so that the communication chip can work normally, such as sending broadcast signals, and then successfully help users quickly find lost terminal devices through solutions such as "good people".

[0040] As a possible implementation, the first device further includes a distance measurement and angle measurement chip, and before the processor is powered off, the power management module is further used to: instruct the distance measurement and angle measurement chip to enter or maintain an enabled state according to the first signal. Based on this, the user can know the exact location of the first device more accurately, and find the lost first device more quickly.

[0041] As a possible implementation, the power management module further includes a fourth general input / output interface, the distance measurement and angle measurement chip includes a second enable pin, and the fourth general input / output interface is connected to the second enable pin; the power management module is specifically used to: control the fourth general input / output interface according to the first signal to instruct the distance measurement and angle measurement chip to enter or maintain an enabled state. Based on this, by improving the software of the power management module (such as the pin control logic), the power management module can normally power and enable the distance measurement and angle measurement chip after the first device is turned off, so that the distance measurement and angle measurement chip can work normally, helping the user to know the exact location of the first device more accurately, and helping the user to find the lost first device more quickly.

[0042] As a possible implementation, the communication chip further includes a first communication interface, the distance measurement and angle measurement chip further includes a second communication interface, the first communication interface is connected to the second communication interface, and the communication chip is further used to: when the second condition is met, send a distance measurement and angle measurement indication to the distance measurement and angle measurement chip through the first communication interface; the distance measurement and angle measurement chip is used to: perform the distance measurement and angle measurement task of the first device based on the distance measurement and angle measurement indication and the first distance measurement and angle measurement parameters. Based on this, by improving the software of the power management module (such as the pin control logic), the power management module can trigger the distance measurement and angle measurement chip to work normally according to preset conditions after the first device is turned off, so as to help the user know the exact location of the first device more accurately and find the lost first device more quickly.

[0043] As a possible implementation, the communication chip and the distance and angle measurement chip obtain power from the battery from the power management module. Based on this, a more economical, simple, and easy-to-implement solution can be provided to provide normal power supply to the communication chip and the distance and angle measurement chip after the first device is turned off, helping users to quickly find the lost terminal device.

[0044] As a possible implementation, the first device further includes an audio amplifier and a speaker, the audio amplifier is connected to the speaker, the communication chip includes a fifth general purpose input / output interface, the audio amplifier includes a sixth general purpose input / output interface, the fifth general purpose input / output interface is connected to the sixth general purpose input / output interface, and the communication chip is further used to: when the second condition is met, instruct the audio amplifier to play a ringtone through the speaker through the fifth general purpose input / output interface; wherein the audio amplifier obtains power from the battery from the power management module. Based on this, it can help users find the lost first device more quickly.

[0045] Exemplarily, a sound waveform is pre-set in the audio amplifier, and the ringtone played by the speaker is the ringtone corresponding to the sound waveform.

[0046] In a fourth aspect, a terminal device is provided, such as a first device, which includes: a battery, a processor and a communication chip, wherein the processor includes a seventh general-purpose input-output interface, and the communication chip includes a first enable pin and an eighth general-purpose input-output interface, the seventh general-purpose input-output interface is connected to the first enable pin, and the eighth general-purpose input-output interface is connected to the first enable pin; wherein the processor is used to: in response to a first condition, instruct the communication chip to enter or maintain an enabled state through the seventh general-purpose input-output interface; the communication chip is used to: after the processor is powered off and the first device is turned off, maintain the first enable pin at a high level through the eighth general-purpose input-output interface to enable the communication chip, and obtain power from the battery, and send a broadcast signal according to the first broadcast parameter.

[0047] The solution provided in the fourth aspect above, through improving the shutdown and retrieval control logic of the power conversion module and the communication chip, can realize the power supply and enabling of the communication chip of the first device after shutdown based on low-cost hardware cost. The improvement process is simple and time-saving. Therefore, it can provide a more economical, simple and easy-to-implement solution for obtaining the location information of the first device that is turned off after being lost, helping users to quickly retrieve the lost first device.

[0048] As a possible implementation, the first device further includes a distance measurement and angle measurement chip, the communication chip further includes a ninth general input and output interface, the distance measurement and angle measurement chip includes a third enable pin, the ninth general input and output interface is connected to the third enable pin, and the communication chip is further used to: after the first device is turned off, control the distance measurement and angle measurement chip to be in an enabled state through the ninth general input and output interface. Based on this, by improving the pin control logic of the communication chip and the distance measurement and angle measurement chip, the communication chip can enable the distance measurement and angle measurement chip normally after the first device is turned off, so that the distance measurement and angle measurement chip can work normally, helping the user to know the exact location of the first device more accurately, and helping the user to find the lost first device more quickly.

[0049] As a possible implementation, the communication chip further includes a first communication interface, the ranging and angle measuring chip further includes a second communication interface, the first communication interface is connected to the second communication interface, and the communication chip is further used to: when the second condition is met, send a ranging and angle measuring indication to the ranging and angle measuring chip through the first communication interface; the ranging and angle measuring chip is further used to: according to the ranging and angle measuring indication, cooperate to perform the ranging and angle measuring task for the first device based on the first ranging and angle measuring parameters. Based on this, by improving the pin control logic of the communication chip and the ranging and angle measuring chip, the communication chip can enable the ranging and angle measuring chip normally after the first device is turned off, so that the ranging and angle measuring chip can work normally, helping the user to know the exact location of the first device more accurately, and helping the user to find the lost first device more quickly.

[0050] As a possible implementation, the first device further includes a power conversion module, which is used to: provide power from the battery to the communication chip and the ranging and angle measuring chip. Based on this, a more economical, simple, and easy-to-implement solution can be provided to provide normal power supply to the communication chip and the ranging and angle measuring chip after the first device is turned off, so as to help users quickly find the lost terminal device.

[0051] As a possible implementation, the first device further includes an audio amplifier and a speaker, the audio amplifier is connected to the speaker, the communication chip includes a fifth general purpose input / output interface, the audio amplifier includes a sixth general purpose input / output interface, the fifth general purpose input / output interface is connected to the sixth general purpose input / output interface, and the communication chip is further used to: when the second condition is met, instruct the audio amplifier to play a ringtone through the speaker through the fifth general purpose input / output interface; wherein the audio amplifier obtains power from the battery from the power conversion module. Based on this, it can help users find the lost first device more quickly.

[0052] Exemplarily, a sound waveform is pre-set in the audio amplifier, and the ringtone played by the speaker is the ringtone corresponding to the sound waveform.

[0053] In a fifth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the method in any possible implementation of the first aspect or the second aspect is implemented.

[0054] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to implement a method in any possible implementation of the first aspect or the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of an implementation architecture for a terminal device in a shutdown state to supply power to a Bluetooth chip provided in an embodiment of the present application;

[0056] Figure 2 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0057] Figure 3 A schematic diagram of the software structure of a terminal device provided in an embodiment of the present application;

[0058] Figure 4 A schematic diagram of a network architecture provided for an embodiment of the present application;

[0059] Figure 5 Another schematic diagram of a network architecture provided for an embodiment of the present application;

[0060] Figure 6 A flow chart of a method for obtaining device location information provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of a retrieval function interface provided in an embodiment of the present application;

[0062] Figure 8 A flowchart of another method for obtaining device location information provided in an embodiment of the present application;

[0063] Fig. 9 Schematic diagram of two lost device location information display interfaces provided in embodiments of the present application;

[0064] Fig.10 Schematic diagram of the enabling architecture of the first device provided in the embodiment of the present application Figure 1 ;

[0065] Fig.11 Schematic diagram of the enabling process of the first device provided in the embodiment of the present application Figure 1 ;

[0066] Fig.12 Schematic diagram of the enabling architecture of the first device provided in the embodiment of the present application Figure 2 ;

[0067] Fig.13 Schematic diagram of the enabling process of the first device provided in the embodiment of the present application Figure 2 ;

[0068] Fig.14 Schematic diagram of the enabling architecture of the first device provided in the embodiment of the present application Figure 3 ;

[0069] Fig.15 Schematic diagram of the enabling process of the first device provided in the embodiment of the present application Figure 3 ;

[0070] Fig.16 Schematic diagram of the enabling architecture of the first device provided in the embodiment of the present application Figure 4 ;

[0071] Fig.17 Schematic diagram of the enabling process of the first device provided in the embodiment of the present application Figure 4 ;

[0072] Fig.18 Schematic diagram of the enabling architecture of the first device provided in the embodiment of the present application Figure 5 ;

[0073] Fig.19 Schematic diagram of the enabling process of the first device provided in the embodiment of the present application Figure 5 ;

[0074] Fig. 20 Schematic diagram of the enabling architecture of the first device provided in the embodiment of the present application Figure 6 ;

[0075] Fig.21 Schematic diagram of the enabling process of the first device provided in the embodiment of the present application Figure 6 ;

[0076] Fig. 22 A structural block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0077] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0078] In the following, the terms "first", "second", etc. are only used to distinguish different description objects, and have no limiting effect on the position, order, priority, quantity or content of the described objects. For example, if the described object is a "field", the ordinal number before the "field" in the "first field" and the "second field" does not limit the position or order between the "fields", and the "first" and "second" do not limit whether the "fields" they modify are in the same message, nor do they limit the order of the "first field" and the "second field". For another example, if the described object is a "level", the ordinal number before the "level" in the "first level" and the "second level" does not limit the priority between the "levels". For another example, the number of described objects is not limited by the ordinal number, and can be one or more. Taking the "first device" as an example, the number of "devices" can be one or more. In addition, the objects modified by different prefixes can be the same or different. For example, if the described object is a "device", the "first device" and the "second device" can be the same type of device or different types of devices. For another example, if the described object is "information", the "first information" and the "second information" can be information of the same content or information of different contents. In summary, the use of prefixes such as ordinal numbers to distinguish the described objects in the embodiments of the present application does not constitute a limitation on the described objects. For the statement of the described objects, please refer to the description in the context of the claims or embodiments, and no unnecessary limitation should be constituted due to the use of such prefixes.

[0079] Furthermore, in the embodiments of the present application, "connection" may be a direct connection or an indirect connection; in addition, it may refer to an electrical connection or a communication connection; for example, the connection between two electrical components A and B may refer to a direct connection between A and B, or may refer to an indirect connection between A and B through other electrical components or connecting media, or may refer to an indirect connection between A and B through other communication devices or communication media, as long as communication between A and B can be achieved.

[0080] In order to keep the power supply to the communication chip such as the Bluetooth chip after the terminal device is turned off, so that the communication chip can send a broadcast signal (such as Bluetooth broadcast), and then locate the location of the terminal device through the "good Samaritan" scheme to help users find the terminal device smoothly, as a possible implementation method, the terminal device can be based on Figure 1 The architecture shown realizes powering the communication chip of the terminal device after it is shut down.

[0081] Take the communication chip as a Bluetooth chip as an example. Figure 1 As shown, the terminal device includes a processor and a Bluetooth chip, wherein the processor includes an application central processor (application CPU, ACPU), and the ACPU includes a device retrieval application, a Bluetooth protocol stack, and Bluetooth always-on (such as low-energy (BLE) always on) control software. Figure 1 As shown, the processor also includes an always on processor (AOP) and a power controller.

[0082] in, Figure 1 The device retrieval application shown is used to provide a device retrieval function, such as providing a shutdown retrieval function for a device in a shutdown state based on the "good Samaritan" solution. For example, the device retrieval application can instruct the AOP to keep supplying power to the Bluetooth chip through the Bluetooth always-on control software when the device is in a shutdown state. Exemplarily, in the shutdown state, the AOP can supply power to the Bluetooth chip through the power controller, and the Bluetooth chip can send a Bluetooth broadcast based on the relevant provisions of the Bluetooth protocol stack.

[0083] However, based on Figure 1 The device retrieval solution using the technology shown requires adding an AOP to the processor. Adding an AOP to the processor will not only increase the design and manufacturing costs of the processing chip, but also require customization of the processor at an early stage, thus extending the production cycle of the terminal device.

[0084] Based on the consideration of realizing the retrieval of a device in a powered-off state at a low cost, an embodiment of the present application provides a method for obtaining device location information. This method does not require customization or modification of the processor of the terminal device, and can power the communication chip of the terminal device after it is powered off at an extremely low cost, thereby helping users to quickly retrieve lost terminal devices based on the "good Samaritan" solution.

[0085] As an example, a shutdown recovery control logic may be added to the power management unit (PMU) of the terminal device to control the power management module to continue to support power supply to communication chips used to send broadcast signals, such as Bluetooth chips, ultra wide band radio (UWB) chips, etc., after the terminal device is shut down.

[0086] As an example, a low-cost power conversion module can be added to the terminal device to support the battery to still supply power to the communication chip used to send broadcast signals, such as Bluetooth chip, UWB chip, etc., after the terminal device is turned off. Exemplarily, the power conversion module can include but is not limited to a low dropout regulator (LDO), a direct current-direct current (DC-DC) converter, etc.

[0087] The terminal device described in the embodiment of the present application may include but is not limited to a smart phone, a netbook, a tablet computer, a handwriting tablet, a smart watch, a smart bracelet, a phone watch, a smart camera, a PDA, a car computer, a personal computer (PC), a personal digital assistant (PDA), a portable multimedia player (PMP), (augmented reality, AR) / virtual reality (VR) equipment, a smart TV, a projection device or a somatosensory game console in a human-computer interaction scene, etc. Alternatively, the terminal device may also be an electronic device with a communication function of other types or structures, which is not limited in the present application.

[0088] As an example, see Figure 2 , Figure 2 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown.

[0089] like Figure 2As shown, the terminal device may include a processor 210, a memory (including an external memory interface 220 and an internal memory 221), a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241-1, a power conversion module 241-2, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, an earphone interface 270D, a sensor module 280, a button 290, a motor 291, an indicator 292, a camera 293, a display screen 294, etc. Among them, the sensor module 280 may include but is not limited to a touch sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, an ambient light sensor, a bone conduction sensor, etc.

[0090] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

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

[0092] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0093] In some embodiments, the processor 210 may include one or more interfaces. The interface 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.

[0094] Exemplarily, the processor 210 may include a system on a chip (SOC), and the above functions of the processor 210 may be implemented by the SOC.

[0095] The charging management module 240 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of a terminal device. While the charging management module 240 is charging the battery 242, it may also power the terminal device through the power management module 241-1.

[0096] The power management module 241-1 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241-1 receives input from the battery 242 and / or the charging management module 240, and provides power to the processor 210, the internal memory 221, the display screen 294, the camera 293, and the wireless communication module 260. The power management module 241-1 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 241-1 can also be set in the processor 210. In other embodiments, the power management module 241-1 and the charging management module 240 can also be set in the same device.

[0097] In the embodiment of the present application, the power management module 241 - 1 can also be used to power a Bluetooth chip, a UWB chip, a speaker 270A, etc.

[0098] The power conversion module 241-2 is used to perform voltage conversion, such as converting the voltage provided by the battery into a voltage suitable for the Bluetooth chip. Exemplarily, the power conversion module is such as an LDO, a DC-DC converter, etc. In some embodiments, the power conversion module 241-2 can be arranged in the power management module 241-1. Of course, the power conversion module 241-2 can also be independent of the power management module 241-1, which is not limited in the embodiments of the present application.

[0099] The wireless communication function of the terminal device can be realized through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor.

[0100] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0101] The mobile communication module 250 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to terminal devices. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 can be set in the same device as at least some of the modules of the processor 210.

[0102] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate 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 the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 270A, a receiver 270B, etc.), or displays an image or video through a display screen 294. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 210 and be set in the same device as the mobile communication module 250 or other functional modules.

[0103] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as WiFi networks), Bluetooth (BT), UWB, global navigation satellite system (GNSS), near field communication (NFC), infrared (IR) and the like applied to the terminal device. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0104] In some embodiments of the present application, the wireless communication module 260 may include a Bluetooth chip for providing Bluetooth wireless communication, such as sending Bluetooth broadcasts and / or receiving Bluetooth broadcasts.

[0105] In some embodiments of the present application, the wireless communication module 260 may include a UWB chip for providing ultra-wideband broadcast communication, such as sending ultra-wideband signals and / or receiving ultra-wideband signals.

[0106] In some embodiments, the antenna 1 of the terminal device is coupled to the mobile communication module 250, and the antenna 2 is coupled to the wireless communication module 260, so that the terminal device can communicate with the network and other devices through wireless communication technology. The wireless communication technology 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 technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

[0107] The terminal device implements the display function through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or change display information.

[0108] The display screen 294 is used to display images, videos, etc. The display screen 294 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 294, where N is a positive integer greater than 1.

[0109] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function.

[0110] Internal memory 221 may be used to store computer executable program code. For example, the computer program may include an operating system program and an application program. The operating system may include but is not limited to OS and other operating systems. Among them, the executable program code includes instructions. The processor 210 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 221. The internal memory 221 may include a program storage area and a data storage area. Among them, the program storage area may store the operating system, at least one application required for a function, etc. The data storage area may store data created during the use of the terminal device (such as broadcast parameters, ranging and angle measurement parameters, key pairs, etc.). In addition, the internal memory 221 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the terminal device by running the instructions stored in the internal memory 221, and / or the instructions stored in the memory provided in the processor.

[0111] The terminal device can realize audio functions through the audio module 270, the speaker 270A, the receiver 270B, the microphone 270C and the application processor, such as music playing, recording, etc. For the specific working principles and functions of the audio module 270, the speaker 270A, the receiver 270B and the microphone 270C, reference can be made to the introduction in the conventional technology.

[0112] The audio module 270 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signal. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be arranged in the processor 210, or some functional modules of the audio module 270 can be arranged in the processor 210.

[0113] The speaker 270A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal device can listen to music or listen to a hands-free call through the speaker 270A.

[0114] For the introduction of hardware such as the button 290 , the motor 291 , and the indicator 292 , reference may be made to conventional technologies, and the embodiments of the present application will not be described in detail.

[0115] It is understandable that this application Figure 2The illustrated structure does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0116] As a possible example, see Figure 3 , Figure 3 FIG. 1 shows a schematic diagram of the software structure of a terminal device provided in an embodiment of the present application. Figure 3 As shown, the operating system of the terminal device may include an application layer, a framework layer (framework, FWK) and a kernel layer.

[0117] The application layer can include a range of applications, such as Figure 3 Of course, the applications in the application layer may include but are not limited to word processing system (WPS), mailbox, camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, short message, memo, screen projection application and other applications.

[0118] The framework layer is used to provide application programming interface (API) and programming framework for applications in the application layer. Figure 3 As shown, the framework layer can provide window management service (WindowManagerService, WMS), activity management service (activity management service, AMS), and package management service (package management service, PMS).

[0119] Among them, the window management service is used to provide window management, such as window creation, window activation, window deletion, window movement, and management of window position / size / style, etc.

[0120] The activity management service is responsible for managing activities, starting, switching, and scheduling various components in the system, as well as managing and scheduling applications. Specifically, AMS defines data classes for saving processes, activities, and tasks. Among them, the data class corresponding to the process can include process file information, process memory status information, and the activities and services contained in the process. Activity information can be saved in the task stack (ActivityStack). Among them, ActivityStack is used to uniformly schedule application activities. ActivityStack can specifically save information about all running activities. ActivityStack can also save information about historically run activities.

[0121] The package management service is responsible for program management within the system.

[0122] Of course, the framework layer can also be used to provide other management services, such as content provision services, phone management services, resource management services, notification management services, location management services, and view system services. Among them, the content service is used to support an application to access the data of another application, or share its own data with other applications, where the data may include video, images, audio, dialed and received calls, browsing history and bookmarks, phone books, etc. The phone management service is used to provide a method for accessing the status and information related to the communication of the terminal device; and provide the communication function of the terminal device, such as the management of the call status (including connecting, hanging up, etc.). The resource management service is used to provide access to non-code resources, such as local strings, icons, pictures, graphics, video files or layout files. The notification management service is used to provide the function of displaying customized prompt information in the status bar. The prompt information can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. The location management service is used to provide services related to processing geographic location. The view system can be used to build the display interface of the application. The view system includes visual controls such as text box controls, list controls, grid controls, button controls, and embeddable web browser controls.

[0123] The kernel layer is the layer between hardware and software. The kernel layer can include Bluetooth driver, UWB driver, sensor driver, display driver, speaker driver, etc.

[0124] In the embodiment of the present application, the Bluetooth driver can drive the Bluetooth chip to send Bluetooth broadcasts, such as BLE broadcasts, classic Bluetooth broadcasts, etc. according to the Bluetooth communication protocol; and perform broadcast scanning through the Bluetooth chip to obtain Bluetooth broadcasts from other devices. The UWB driver can drive the UWB chip to send UWB signals according to the UWB communication protocol, and obtain UWB signals from other devices, etc. The speaker driver can be used to drive the speaker to play audio.

[0125] It should be noted that Figure 3 This is only an example of a software structure diagram of a terminal device, in which only the layers and software modules related to the solution of the present application are simply listed. In practical applications, the operating system of the terminal device may also include other layers, and each layer may also include other software modules for implementing one or more functions or services. This embodiment of the present application does not specifically limit this.

[0126] A method for obtaining device location information provided in an embodiment of the present application will be specifically introduced below in conjunction with the accompanying drawings.

[0127] For example, please refer to Figure 4 , Figure 4 A schematic diagram of a network architecture provided in an embodiment of the present application. Figure 4 As shown, a method for obtaining device location information provided in an embodiment of the present application can be based on Figure 4 The communication system shown is implemented by a first device, a second device, a third device and a cloud server. Figure 4 The first device shown is the lost terminal device (hereinafter referred to as the "lost device"), the second device is the device that scans the broadcast signal (such as Bluetooth broadcast) of the lost device (hereinafter referred to as the "good Samaritan" device), and the third device is the device that initiates the retrieval (hereinafter referred to as the "retrieval device"). The cloud server is used to provide device retrieval related services, including shutdown retrieval services, such as providing device location information collection and distribution, device permission verification, key generation and key synchronization to the device, etc.

[0128] As an example, Figure 4 The cloud server shown can be a device manufacturer's server or a third-party server authorized by the device manufacturer, and this embodiment of the application does not make any specific limitations on this.

[0129] in, Figure 4The first device shown can send a broadcast signal (such as Bluetooth broadcast) according to preset broadcast parameters (such as first broadcast parameters) after being turned off. After scanning the broadcast signal sent by the first device, the second device within the preset range of the first device can send the location information to the cloud server. The location information can be the location information of the second device, or it can be the location information of the first device calculated by the second device based on the relevant information of the received broadcast signal. Furthermore, the cloud server can send the location information to the third device when the user retrieves the first device through the third device. Based on this, the third device can know the specific location of the first device / second device.

[0130] It is understandable that if the second device sends the location information of the second device to the cloud server, since the device that can scan the broadcast signal of the first device is usually within the preset range of the first device, the third device can know the approximate range of the first device, which can also help users narrow the range of finding the first device. If the second device has the ability to calculate the location of the first device based on the relevant information from the Bluetooth broadcast of the first device, the second device can also send the calculated location information of the first device directly to the cloud server, based on which the third device can accurately know the specific location of the first device.

[0131] In some embodiments, in order to ensure the security of device location information, the first device can transmit the location information based on an asymmetric encryption algorithm. For example, the broadcast signal sent by the first device is a Bluetooth broadcast. Figure 5 As shown, the first device can carry a first key (such as a public key P) when sending a Bluetooth broadcast, and the second device can use the first key to encrypt the location information and then send it to the cloud server; the first device can request the location information encrypted using the public key from the cloud server through the public key, and after the cloud server sends the encrypted location information to the third device, the third device can successfully obtain the location information of the first device / second device after decrypting the information using the second key (such as a private key S) corresponding to the first key.

[0132] In some embodiments, the first key and the second key may be a key pair generated by a cloud server for use by the first device and the second device when performing a shutdown recovery service, such as using the first key to encrypt information and using the second key to decrypt information. For example, the cloud server may generate a key pair for a cloud server account, and synchronize the key pair to multiple devices (such as the first device and the third device) logged into the cloud server account, and the devices logged into the cloud server account may use the key pair for subsequent information encryption and decryption; or, the key pair may be generated by a device logged into the cloud server account and synchronized to other devices logged into the cloud server account. The embodiments of the present application do not specifically limit the generation method and synchronization method of the key pair.

[0133] In other embodiments, the first key and the second key may be generated by any one of a plurality of terminal devices logged into the same cloud server account and synchronized to a plurality of devices logged into the cloud server account.

[0134] Exemplarily, the first key is a public key P, and the second key is a private key S; or the first key is a private key S, and the second key is a public key P. The public key may include but is not limited to a hashed public key.

[0135] In some embodiments, the same cloud server account may correspond to a group of key pairs. For example, the same cloud server account may correspond to a group of first keys and a second key. The terminal device under the account may use the first key in the key group to encrypt information based on a preset key rotation strategy, and use the second key to decrypt information. Based on the key rotation strategy, the security of key use can be enhanced by regular rotation to achieve data protection security. For the introduction of key pairs and key rotation strategies, reference may be made to conventional technologies, and the embodiments of the present application do not make specific limitations.

[0136] It should be noted that the above embodiment only takes the second device transmitting location information based on an asymmetric encryption algorithm as an example, but the present application does not limit the specific manner and method of encrypting and decrypting location information by the second device. For example, the device may also transmit location information based on a symmetric encryption algorithm, such as the second device encrypting the location information using a key (such as a private key) negotiated with the first device, and correspondingly, the third device uses the negotiated key to decrypt the encrypted location information to obtain the location information when receiving the encrypted location information.

[0137] In some embodiments, please refer to Figure 6 , Figure 6 by Figure 5 Taking the architecture diagram as an example, taking the second device having the ability to calculate the location of the first device as an example, a flow chart of a method for obtaining device location information provided by an embodiment of the present application is shown. Figure 6 As shown, a method for obtaining device location information provided in an embodiment of the present application can be implemented through S601-S606:

[0138] S601: The first device starts a shutdown recovery process when the shutdown process starts.

[0139] Among them, the first device has turned on the shutdown recovery function.

[0140] In an embodiment of the present application, the shutdown process of the first device can be initiated manually (such as manually clicking a shutdown button, etc.), or it can be triggered by low battery or preset conditions (such as a timed shutdown condition), etc., and the embodiment of the present application does not make specific limitations.

[0141] S602: The communication chip of the first device sends a broadcast signal according to the first broadcast parameter after the shutdown process of the first device is completed, and the broadcast signal carries the first key.

[0142] The first key is used for the subsequent second device to encrypt the location information to ensure the security of the location information. The first key can be a public key or a private key, which is not limited in the embodiment of the present application.

[0143] In the solution provided in the present application, after the shutdown process of the first device is completed (i.e., the first device is shut down), the first device will still continue to supply power to the communication chip to support the communication chip to send broadcast signals, so as to locate the position of the first device based on the "good samaritan" solution, and help the user successfully find the first device after it is shut down.

[0144] As an example, the power management module of the first device may be provided with a shutdown retrieval control logic, and after the shutdown process of the first device is completed, the power management module of the first device may continue to supply power to the communication chip so that the communication chip can send a broadcast signal according to the first broadcast parameter. For example, after the first device is shut down, the power management module of the first device may control the Bluetooth enable pin to be in an enabled state according to the shutdown retrieval control logic, so that the communication chip can use the power from the power management module to send a broadcast signal according to the first broadcast parameter.

[0145] As another example, the first device may include a power conversion module. After the shutdown process of the first device is completed, the power conversion module can continue to obtain power from the battery of the first device and convert it into a voltage suitable for the communication chip, and supply power to the communication chip, so that the communication chip can send a broadcast signal according to the first broadcast parameter. For example, after the first device is shut down, the power conversion module of the first device can directly obtain power from the battery of the first device and convert it into a voltage suitable for the Bluetooth chip. At the same time, the Bluetooth chip can keep its own GPIO interface at a high level to keep itself in an enabled state, and then use the power from the power conversion module to send a broadcast signal according to the first broadcast parameter. Among them, the power conversion module can be an existing hardware module of the first device (such as a hardware module in the power management module), or it can be a newly added hardware module, which is not limited in the embodiments of the present application.

[0146] It can be understood that in the solution of supplying power to the communication chip in the shutdown state by improving the power management module or the power conversion module, the improvement of the power management module or the power conversion module only involves the change of software (such as pin control logic), the cost is very low and the improvement process is simple and time-consuming. Figure 1 The solution of adding AOP shown in the figure can not only realize the power supply of the communication chip of the terminal device after shutdown at a very low cost based on the existing hardware of the first device, but also will not affect the production cycle of the terminal device. Alternatively, even if the power conversion module in the first device is a newly added hardware module, due to the relatively simple functions to be realized and the simple product structure, the product is relatively mature and the cost is usually very low, so compared with Figure 1 The solution of adding AOP shown can also realize power supply to the communication chip of the terminal device after shutdown at a very low cost, and will not affect the production cycle of the terminal device.

[0147] In some embodiments, when the first device supplies power to the communication chip after being shut down, the first device may also control the communication chip to power off after the communication chip continues to send broadcast signals for a period of time (such as a first preset duration) to reduce power consumption of the first device.

[0148] The specific manner and process of the battery of the first device supplying power to the communication chip after the shutdown process of the first device is completed will be described in detail below in conjunction with specific embodiments.

[0149] The broadcast parameters may include but are not limited to broadcast type, broadcast interval, broadcast window, scan interval, scan window, broadcast content, broadcast content change cycle, etc.

[0150] In some embodiments, the communication chip of the first device sending a broadcast signal according to the first broadcast parameter may include: the communication chip of the first device sending a broadcast signal of a specified type including broadcast content within a specified broadcast window according to the broadcast interval specified by the first broadcast parameter. In some embodiments, the communication chip of the first device may also change the broadcast content in the broadcast signal accordingly according to a specified broadcast content change cycle.

[0151] S603: The second device determines the location of the first device when scanning the broadcast signal from the first device.

[0152] As an example, the second device can calculate the position of the first device relative to the second device through a mathematical relationship based on the strength of the scanned broadcast signal from the first device and the indoor positioning algorithm, thereby determining the position of the first device. The specific method and process for the second device to determine the position of the first device based on the scanned broadcast signal from the first device is not specifically limited in the embodiments of the present application, and reference can be made to conventional technologies.

[0153] S604: The second device encrypts the location information of the first device.

[0154] In some embodiments, the second device can encrypt the location information based on an asymmetric encryption algorithm. For example, the first key is a public key in a key pair, and the second device can use the public key to encrypt the location information of the first device; correspondingly, the receiving end of the encrypted location information, such as the third device, can use the private key in the key pair to decrypt the received information to obtain the location information of the first device. For another example, the first key is a private key in a key pair, and the second device can use the private key to encrypt the location information of the first device; correspondingly, the receiving end of the encrypted location information, such as the third device, can use the public key in the key pair to decrypt the received information to obtain the location information of the first device.

[0155] In some embodiments, the second device may encrypt the location information based on a symmetric encryption algorithm. For example, the second device may use a pre-agreed first key to encrypt the location information of the first device; correspondingly, the receiving end of the encrypted location information, such as the third device, decrypts the received information using the first key to obtain the location information of the first device.

[0156] S605: The second device sends the encrypted location information of the first device to the third device via the cloud server.

[0157] Among them, the cloud server can be used to provide device recovery related services, including shutdown recovery services, such as providing device location information collection and distribution, device authority verification, key generation and key synchronization to the device, etc. Exemplarily, the cloud server can be a device manufacturer server or a third-party server authorized by the device manufacturer, and the embodiments of this application do not specifically limit this.

[0158] In some embodiments, the third device may request the cloud server to obtain the location information of the first device in response to the user's first operation; correspondingly, the cloud server may send the encrypted location information of the first device to the third device after verifying the authority of the third device. For example, when the third device requests the cloud server to obtain the location information of the first device, it may carry the first key, and the cloud server may verify the authority of the third device according to the public key and send the encrypted location information using the first key to the third device.

[0159] The first operation is used to trigger the retrieval of the first device. Exemplarily, the first operation may include but is not limited to the user selecting an operation to retrieve the first device or selecting an operation to view the location of the first device on the shutdown retrieval function interface of the third device, or a voice command, a preset gesture operation, a preset sliding operation, a preset clicking operation, a preset body movement, a preset facial expression, etc. for instructing the retrieval of the first device, which is not specifically limited in the embodiments of the present application. Exemplarily, Figure 7 An example of an operation interface in which a user selects to retrieve a first device on a shutdown retrieval function interface of a third device is shown. The first operation may be that the user selects to retrieve a first device on a shutdown retrieval function interface of a third device. Figure 7 On the operation interface shown, click the view location option at the first device.

[0160] S606: The third device decrypts to obtain the location information of the first device.

[0161] Exemplarily, if the first device encrypts location information based on an asymmetric encryption algorithm, when the third device receives the location information of the first device encrypted using the first key, it can use the second key corresponding to the first key to decrypt the received encrypted location information of the first device, thereby successfully obtaining the location information of the first device.

[0162] If the first device encrypts the location information based on a symmetric encryption algorithm, when the third device receives the location information of the first device encrypted using the first key, it can use the first key to decrypt the received encrypted location information of the first device, thereby successfully obtaining the location information of the first device.

[0163] In some embodiments, please refer to Figure 8 , Figure 8 by Figure 5Taking the architecture diagram as an example, taking the second device sending its own (i.e., the first device) location to the cloud service area as an example, another method flow chart for obtaining device location information provided by an embodiment of the present application is shown. Figure 8 As shown, a method for obtaining device location information provided in an embodiment of the present application can be implemented through S801-S806:

[0164] S801: The first device starts the shutdown recovery process when the shutdown process starts.

[0165] S802: The communication chip of the first device sends a broadcast signal according to the first broadcast parameter after the shutdown process of the first device is completed, and the broadcast signal carries the first key.

[0166] S803: The second device determines the location of the second device when scanning the broadcast signal from the first device.

[0167] Among them, the second device can determine the position of the second device through any method such as positioning system positioning, sensor positioning, etc., which is not specifically limited in the embodiments of the present application and can refer to conventional technologies.

[0168] S804: The second device encrypts the location information of the second device.

[0169] S805: The second device sends the encrypted location information of the second device to the third device via the cloud server.

[0170] S806: The third device decrypts to obtain the location information of the second device.

[0171] about Figure 8 For the detailed introduction of S801-S806 shown, please refer to the introduction of S601-S606 above, which will not be repeated here.

[0172] It is understandable that if the third device obtains the location information of the second device, since the device that can scan the broadcast signal of the first device is usually within the preset range of the first device, the third device can know the approximate range of the first device, which can also help the user narrow the range of searching for the first device. If the third device obtains the location information of the first device, the third device can accurately know the specific location of the first device. Exemplarily, after the third device obtains the location information of the first device or the location information of the second device, the corresponding location information can also be displayed on the shutdown and retrieval function interface of the third device. For example, if the third device obtains the location information of the first device, the shutdown and retrieval function interface of the third device can display the specific location point of the first device on the map (such as Fig. 9If the third device obtains the location information of the second device, the shutdown and retrieval function interface of the third device may display the location range of the first device on the map (such as Fig. 9 , as shown in (b) in the figure).

[0173] In some embodiments, in order to help the user find the lost first device more quickly, the first device may also support powering the audio amplifier (such as smart PA) after being turned off, so that it can play a ringtone at a preset high volume, which is convenient for the user to find the first device. The above ringtone may be a sound waveform pre-set in the first device, such as a default sound waveform or a sound waveform specified by the user, etc., which is not specifically limited in the embodiments of the present application.

[0174] In some examples, the third device can enable a ring button (such as Fig. 9 (a) and Fig. 9 When the ring button (as shown in (b)) is operated, a signal is sent to the first device via Bluetooth to instruct it to ring. Correspondingly, after receiving the instruction, the first device supplies power to the audio amplifier so that it can play the ringtone at a preset high volume. Fig. 9 (a) or Fig. 9 In the process of the location information shown in (b) approaching the first device, when the user is close to the first device, in order to quickly find the first device, the user can trigger the first device to ring by clicking the ring button.

[0175] In some examples, the first device can automatically trigger power supply to the audio amplifier after the device is turned off, so that it can play the ringtone at a preset higher volume. For example, the first device can automatically trigger power supply to the audio amplifier after the device is turned off after the user turns on the ringing after loss function.

[0176] In some embodiments, in order to help the user find the lost first device more quickly, the first device can also support powering a ranging and angle measuring chip (such as a UWB chip) after being shut down, so that it can send and receive UWB signals to facilitate other devices (such as a second device or a third device) to accurately obtain the location of the first device.

[0177] In some examples, the third device can enable the UWB ranging and angle measurement button (such as Fig. 9 (a) and Fig. 9 In the operation shown in (b) of FIG. 1 , a signal is sent to the first device via Bluetooth to instruct it to perform UWB distance measurement and angle measurement. Correspondingly, after receiving the instruction, the first device supplies power to the UWB chip so that it can send and receive UWB signals. Fig. 9 (a) or Fig. 9 In the process of the location information shown in (b) approaching the first device, when the user is close to the first device, in order to quickly find the first device, the user can trigger UWB ranging and angle measurement of the first device by clicking the UWB ranging and angle measurement button.

[0178] In some examples, the first device can automatically trigger power supply to the UWB chip after the device is turned off, so that it can cooperate with other devices (such as the second device or the third device) to accurately locate the first device.

[0179] Of course, the embodiment of the present application does not limit the specific timing and time when the first device triggers the ringing or UWB ranging and angle measurement, which may depend on the specific device situation and usage scenario.

[0180] Among them, the first device may supply power to the audio amplifier or UWB chip after the device is shut down, including but not limited to power supply through a power management module or a power conversion module. The specific implementation process will be described in detail below in conjunction with the specific embodiments.

[0181] The following will specifically introduce a method for obtaining device location information provided in an embodiment of the present application in combination with Example 1 and Example 2.

[0182] Embodiment 1:

[0183] In Example 1, after the lost first device is turned off, the first device can continue to supply power to the communication chip through the power management module so that the communication chip can send a broadcast signal according to preset broadcast parameters (such as the first broadcast parameters) to support the "good Samaritan" scheme to help users locate the location of the first device, thereby helping users find the first device smoothly.

[0184] The power management module of the first device includes a control logic unit or a control logic module for managing and executing the shutdown recovery control logic. After the first device is shut down, the power management module of the first device can control the communication enable pin to be in an enabled state according to the shutdown recovery control logic so that the communication chip can work normally.

[0185] Take the Bluetooth chip as an example, please refer to Fig.10 , Fig.10 A schematic diagram of an enabling architecture of a first device provided in an embodiment of the present application is shown. Fig.10 As shown, the first device may include a battery, a processor, a power management module and a Bluetooth chip.

[0186] The processor includes an ACPU, and the ACPU includes a device retrieval application and a Bluetooth protocol stack. The processor also includes a system power management interface (SPMI) and a universal asynchronous receiver / transmitter (UART). SPMI is used to send and receive information with the power management module, such as sending a first signal (such as a shutdown retrieval indication) to the power management module when the shutdown retrieval function is turned on, so that the power management module can start the shutdown retrieval control logic. UART is used to transmit relevant data with the Bluetooth chip, such as sending broadcast parameters, rotating keys, etc.

[0187] The power management module includes SPMI and PMU general purpose input / output (GPIO) interface 1 (hereinafter referred to as PMU GPIO 1). SPMI is used to send and receive information with the processor, such as receiving a first signal from the processor (such as a shutdown retrieval indication). The power management module is also provided with shutdown retrieval control logic (such as provided in a control logic unit or a control logic module), which is used to control the Bluetooth enable pin (such as BT_EN) of the Bluetooth chip through PMU GPIO 1 to enable it to be in an enabled state. When BT_EN is in an enabled state, the Bluetooth chip can use the power from the power management module to work normally, such as sending Bluetooth broadcasts.

[0188] The Bluetooth chip includes a Bluetooth controller (such as BT / BLE controller), which is used to perform Bluetooth broadcasting, Bluetooth scanning, establishing Bluetooth connections and other related processes. The Bluetooth chip also includes a Bluetooth enable pin (such as BT_EN) and a communication interface (such as UART). Among them, BT_EN is used to enable the Bluetooth chip in an enabled state or a power-off state by switching between high and low levels. For example, BT_EN can also switch to a high level according to the high-level signal of PMU GPIO 1 from the power management module, so that the Bluetooth chip is in an enabled state, thereby supporting the Bluetooth chip to work normally according to the power obtained from the power management module, such as sending Bluetooth broadcasts.

[0189] by Fig.10 For example, please refer to the enabling architecture shown in Fig.11 , Fig.11 Taking the first device as a lost mobile phone as an example, a schematic diagram of an enabling process of a first device provided by an embodiment of the present application is shown. Fig.11 As shown, the enabling process of the mobile phone may include S1101-S1109:

[0190] S1101: The processor starts the shutdown process.

[0191] Among them, the start of the shutdown process can be triggered manually (such as manually clicking the shutdown button, etc.), or it can be triggered by low power or preset conditions (such as timed shutdown conditions), etc., and the embodiments of this application do not make specific limitations.

[0192] S1102: The processor determines whether the shutdown recovery function is enabled. If enabled, execute S1103-S1109; if not enabled, directly execute S1106.

[0193] Among them, the power-off retrieval function can be enabled manually by the user or by the default setting of the mobile phone, and the embodiments of the present application do not make specific limitations.

[0194] S1103: The processor instructs the power management module to start the shutdown recovery process through SPMI.

[0195] For example, the processor may send a first signal to the power management module via SPMI to instruct the power management module to start a shutdown recovery process.

[0196] S1104: The processor sends the first broadcast parameter and the rotation key to the Bluetooth chip through the UART.

[0197] The first broadcast parameter may include but is not limited to broadcast type, broadcast interval, broadcast window, scan interval, scan window, broadcast content, broadcast content replacement cycle, etc. The rotation key includes a rotation strategy of the first key, such as a key rotation cycle, etc.

[0198] In some embodiments, after the Bluetooth chip receives the first broadcast parameter and the rotation key from the processor, the Bluetooth chip may also disable the UART to prevent the Bluetooth chip from mistakenly believing that there is data to be received from the processor after the mobile phone is turned off.

[0199] It should be noted that the above S1103 and S1104 can be executed simultaneously, or S1103 can be executed before S1104, or S1104 can be executed before S1103, which is not limited in the present embodiment. However, S1104 needs to be executed before S1105, or S1104 needs to be executed before the processor is powered off.

[0200] S1105: The power management module manages the power clock of the Bluetooth chip and controls PMU GPIO 1 to be at a high level to instruct the Bluetooth chip to enter or remain in an enabled state.

[0201] Among them, the power management module manages the power clock of the Bluetooth chip for Bluetooth enabling duration management. Based on this, the power management module can control the Bluetooth chip to power off after the Bluetooth chip continues to send broadcast signals for a period of time (such as a first preset duration) to reduce the power consumption of the first device.

[0202] S1106: The mobile phone is turned off and powered off.

[0203] Exemplarily, the process of shutting down and powering off the mobile phone may be handled by the power management module, and reference may be made to conventional technologies for this.

[0204] S1107: The Bluetooth chip sends a Bluetooth broadcast according to the first broadcast parameter, and the Bluetooth broadcast carries the first key.

[0205] It can be understood that when the PMU GPIO 1 of the power management module is at a high level, the BT_EN of the Bluetooth chip connected thereto is also switched to a high level. Based on this, the Bluetooth chip enters an enabled state. The Bluetooth chip in the enabled state can use the power from the power management module to work normally, such as sending Bluetooth broadcasts.

[0206] The first key is used to encrypt the location information of the second device that scans the Bluetooth broadcast to ensure the security of the device location information.

[0207] S1108: The power management module determines whether the first preset time has passed. If yes, the power management module executes S1109. If no, the power management module does not process, and the Bluetooth chip continues to execute S1107.

[0208] Based on this, the power consumption of the first device can be reduced.

[0209] S1109: The power management module controls PMU GPIO 1 to be at a low level to instruct the Bluetooth chip to power off.

[0210] When the PMU GPIO 1 of the power management module is at a low level, the BT_EN of the Bluetooth chip connected thereto is also switched to a low level. Based on this, the power management module can instruct the Bluetooth chip to power off.

[0211] Understandably, based on Fig.11 The device enabling process shown in the figure can realize the power supply and enabling of the communication chip of the terminal device after shutdown at a very low cost based on the existing hardware of the first device by improving the software of the power management module (such as the pin control logic). The improvement process is simple and time-saving. Figure 1 The solution of increasing AOP shown not only has low cost, but also has a simple and short improvement process, and therefore will not affect the production cycle of the terminal equipment.

[0212] In some embodiments, in order to help the user find the lost first device more quickly, the first device can also support powering and enabling the ranging and angle measuring chip (such as a UWB chip) after being shut down, so that it can send and receive UWB signals to facilitate other devices (such as a second device or a third device) to accurately obtain the location of the first device.

[0213] Take the distance measurement and angle measurement chip as an example, please refer to Fig.12 , Fig.12 FIG. 2 shows a schematic diagram of an enabling architecture of another first device provided in an embodiment of the present application. Fig.12 As shown, the first device may include a battery, a processor, a power management module, a Bluetooth chip, and a UWB chip.

[0214] The processor includes an ACPU, and the ACPU includes a device retrieval application, a Bluetooth protocol stack, and a UWB protocol stack. The processor also includes SPMI, UART 1, and UART 2. SPMI is used to send and receive information with the power management module, such as sending a first signal (such as a shutdown retrieval indication) to the power management module when the shutdown retrieval function is turned on, so that the power management module can start the shutdown retrieval control logic. UART 1 is used to transmit relevant data with the Bluetooth chip, such as sending the first broadcast parameter, rotating key, etc. UART 2 is used to transmit ranging and angle measurement related data with the UWB chip, such as sending the first ranging and angle measurement parameters, etc.

[0215] The power management module includes SPMI, PMU GPIO 1 and PMU GPIO 2. The power management module is also provided with a machine retrieval control logic (such as provided in a control logic unit or a control logic module), which is used to control the Bluetooth enable pin (such as BT_EN) of the Bluetooth chip through PMU GPIO 1 to enable it, and to control the UWB enable pin (such as UWB_EN) of the UWB chip through PMU GPIO 2 to enable it. When BT_EN is in the enabled state, the Bluetooth chip can use the power from the power management module to work normally, such as sending Bluetooth broadcasts; when UWB_EN is in the enabled state, the UWB chip can use the power of the power management module to work normally, such as sending UWB signals.

[0216] The Bluetooth chip includes a Bluetooth controller (such as BT / BLE controller), a Bluetooth enable pin (such as BT_EN), UART 1 and UART 2. Among them, BT_EN is used to enable the Bluetooth chip in an enabled state or a power-off state by switching between high and low levels. UART 1 is used to transmit relevant data with the processor, such as receiving the first broadcast parameter, rotating keys, etc. UART 2 is used to instruct the UWB chip to start the UWB ranging and angle measurement process. For example, UART 2 can instruct the UWB chip to start the UWB ranging and angle measurement process by maintaining a high level.

[0217] The UWB chip includes a UWB enable pin (such as UWB_EN), UART 1 and UART 2. Among them, UWB_EN is used to enable or power off the UWB chip by switching between high and low levels. UART 1 is used to transmit relevant data to the processor, such as receiving the first distance measurement and angle measurement parameters. UART 2 is used to start the UWB distance measurement and angle measurement process according to the instructions of the Bluetooth chip.

[0218] by Fig.12 For example, please refer to the enabling architecture shown in Fig.13 , Fig.13 Taking the first device being a lost mobile phone as an example, another schematic diagram of the enabling process of the first device provided by the embodiment of the present application is shown. Fig.13 As shown, the enabling process of the mobile phone may include S1301-S1314:

[0219] S1301: The processor starts the shutdown process.

[0220] S1302: The processor determines whether the shutdown recovery function is enabled. If enabled, execute S1303-S1314; if not enabled, directly execute S1306.

[0221] S1303: The processor instructs the power management module to start the shutdown recovery process through SPMI.

[0222] For example, the processor may send a first signal to the power management module via SPMI to instruct the power management module to start a shutdown recovery process.

[0223] S1304: The processor sends a first broadcast parameter and a rotation key to the Bluetooth chip through UART 1, and sends a first ranging and angle measurement parameter to the UWB chip through UART 2.

[0224] Among them, the first ranging and angle measurement parameters may include but are not limited to ranging and angle measurement methods, signal transmission cycles, signal transmission intervals, etc., which are not specifically limited in the embodiments of the present application and can refer to conventional technologies.

[0225] In some embodiments, after the Bluetooth chip receives the first broadcast parameter and the rotation key from the processor, the Bluetooth chip may also disable UART 1 to prevent the Bluetooth chip from mistakenly thinking that there is data from the processor that needs to be received after the mobile phone is powered off. Similarly, after the UWB chip receives the first distance measurement and angle measurement parameter from the processor, the UWB chip may also disable UART 2 to prevent the UWB chip from mistakenly thinking that there is data from the processor that needs to be received after the mobile phone is powered off.

[0226] It should be noted that the above S1303 and S1304 can be executed simultaneously, or S1303 can be executed first and then S1304, or S1304 can be executed first and then S1303, which is not limited in the present embodiment. However, S1304 needs to be executed before S1305, or S1304 needs to be executed before the processor is powered off.

[0227] S1305: The power management module manages the power clock of the Bluetooth chip and controls PMU GPIO 1 and PMU GPIO 2 to be at a high level to respectively instruct the Bluetooth chip and the UWB chip to enter or remain in an enabled state.

[0228] S1306: The mobile phone is turned off and powered off.

[0229] S1307: The Bluetooth chip sends a Bluetooth broadcast according to the first broadcast parameter, and the Bluetooth broadcast carries the first key.

[0230] S1308: The Bluetooth chip determines whether the mobile phone has established a Bluetooth connection with the third device. If so, execute S1311; if not, execute S1309.

[0231] Based on this, the mobile phone can trigger the UWB chip to be enabled when the third device is relatively close to the mobile phone, so that the UWB chip uses the power from the power management module to support the distance and angle measurement process between the mobile phone and the third device, thereby helping users to know the exact location of the mobile phone more accurately and help users find lost mobile phones more quickly.

[0232] S1309: The power management module determines whether the first preset time has passed. If yes, the power management module executes S1310. If no, the power management module does not process, and the Bluetooth chip continues to execute S1307.

[0233] S1310: The power management module controls PMU GPIO 1 and PMU GPIO 2 to be at a low level to instruct the Bluetooth chip and the UWB chip to power off respectively.

[0234] Among them, when PMU GPIO 1 and PMU GPIO 2 of the power management module are at a low level, BT_EN of the Bluetooth chip and UWB_EN of the UWB chip respectively connected thereto are also switched to a low level and then powered off.

[0235] S1311: The Bluetooth chip verifies whether the first device and the third device have logged into the same account. If the verification fails, S1312 is executed and then S1309-S1310 is executed; if the verification passes, S1313-S1314 is executed and then S1309-S1310 is executed.

[0236] S1312: The Bluetooth chip disconnects the Bluetooth connection with the third device.

[0237] Based on this, the mobile phone can disconnect the Bluetooth connection with the third device when the third device is not logged in to the same account as the mobile phone, thereby saving the mobile phone's power to the greatest extent while ensuring the security of the location information of the first device.

[0238] S1313: The Bluetooth chip controls UART 2 to be at a high level to instruct the UWB chip to start the UWB distance measurement and angle measurement process.

[0239] For example, upon receiving a UWB ranging and angle measurement instruction sent by a third device, the Bluetooth chip may control UART 2 to be at a high level to instruct the UWB chip to start the UWB ranging and angle measurement process.

[0240] S1314: The UWB chip performs distance and angle measurement so that a third device can obtain the precise location of the mobile phone.

[0241] Exemplarily, the UWB chip can perform ranging and angle measurement based on but not limited to one or more of the following methods: time difference of arrival (TDOA) positioning method, time of arrival (TOA) positioning method, angle of arrival (AOA) positioning method, etc. The embodiments of the present application are not specifically limited and conventional technologies can be referred to.

[0242] In some embodiments, the distance measurement and angle measurement may be mainly responsible for by a third device, and the mobile phone may cooperate with the third device to complete the distance measurement and angle measurement related tasks. In other embodiments, the distance measurement and angle measurement may be mainly responsible for by the mobile phone, and the third device may cooperate with the third device to complete the distance measurement and angle measurement related tasks. The embodiments of the present application do not limit the main responsible party for distance measurement and angle measurement, depending on the specific circumstances. For example, when the third device does not have the relevant computing capabilities for distance measurement and angle measurement, the distance measurement and angle measurement may be mainly responsible for by the mobile phone. For the detailed methods and specific processes of distance measurement and angle measurement (such as UWB distance measurement and angle measurement), reference may be made to conventional technologies, which will not be elaborated here.

[0243] Understandably, based on Fig.13 The device enabling process shown in the figure can realize the power supply and enabling of the communication chip and the ranging and angle measuring chip of the terminal device after shutdown based on the existing hardware of the first device at a very low cost by improving the software of the power management module (such as the pin control logic). The improvement process is simple and time-saving. Figure 1 The solution of adding AOP shown in the figure not only has low cost, but also has a simple and short improvement process, and therefore will not affect the production cycle of the terminal device. In addition, by measuring distance and angle, the lost first device can be located more accurately, helping the user to find the first device more quickly.

[0244] In some embodiments, in order to help the user find the lost first device more quickly, the first device can also support powering and enabling an audio amplifier (such as a smart PA) after being turned off, so that it can play ringtones at a preset higher volume, making it easier for the user to find the first device smoothly.

[0245] Please refer to Fig.14 , Fig.14 FIG. 2 shows a schematic diagram of an enabling architecture of another first device provided in an embodiment of the present application. Fig.14 As shown, the first device may include a battery, a processor, a power management module, a Bluetooth chip, and an audio amplifier.

[0246] The processor includes an ACPU, and the ACPU includes a device retrieval application and a Bluetooth protocol stack. The processor also includes an SPMI and a UART. The power management module includes an SPMI and a PMU GPIO 1. The Bluetooth chip includes a Bluetooth controller (such as a BT / BLE controller), a Bluetooth enable pin (such as BT_EN) and a UART. For a detailed introduction to the above modules of the processor, the power management module and the Bluetooth chip, please refer to the description of the above embodiments. Fig.10 The introduction of , I will not go into details here.

[0247] like Fig.14 As shown, the Bluetooth chip also includes a Bluetooth general input and output interface, such as BT GPIO 2, which is used to instruct the audio amplifier to ring by maintaining a high level, or to instruct the audio amplifier to stop ringing by maintaining a low level.

[0248] The audio amplifier includes an audio amplifier general input and output interface, such as PA GPIO 1, which is used to trigger or stop the ringing according to the instruction of the Bluetooth chip. The audio amplifier also includes a power amplifier, which is used to increase the power of the sound waveform. Fig.14As shown, the audio amplifier can amplify the preset sound waveform in the audio amplifier at a preset power, and then play the ringtone at a relatively high volume through an external speaker, so that the user can find the first device smoothly.

[0249] by Fig.14 For example, please refer to the enabling architecture shown in Fig.15 , Fig.15 Taking the first device being a lost mobile phone as an example, another schematic diagram of the enabling process of the first device provided by the embodiment of the present application is shown. Fig.15 As shown, the enabling process of the mobile phone may include S1501-S1515:

[0250] S1501: The processor starts the shutdown process.

[0251] S1502: The processor determines whether the shutdown recovery function is enabled. If enabled, execute S1503-S1515; if not enabled, directly execute S1506.

[0252] S1503: The processor instructs the power management module to start the shutdown recovery process through SPMI.

[0253] For example, the processor may send a first signal to the power management module via SPMI to instruct the power management module to start a shutdown recovery process.

[0254] S1504: The processor sends the first broadcast parameter and the rotation key to the Bluetooth chip through the UART.

[0255] In some embodiments, after the Bluetooth chip receives the first broadcast parameter and the rotation key from the processor, the Bluetooth chip may also disable the UART to prevent the Bluetooth chip from mistakenly believing that there is data to be received from the processor after the mobile phone is turned off.

[0256] It should be noted that the above S1503 and S1504 can be executed simultaneously, or S1503 can be executed before S1504, or S1504 can be executed before S1503, which is not limited in the present embodiment. However, S1504 needs to be executed before S1505, or S1504 needs to be executed before the processor is powered off.

[0257] S1505: The power management module manages the power clock of the Bluetooth chip and controls PMU GPIO 1 to be at a high level to instruct the Bluetooth chip to enter or remain in an enabled state.

[0258] S1506: The mobile phone is turned off and powered off.

[0259] S1507: The Bluetooth chip sends a Bluetooth broadcast according to the first broadcast parameter, and the Bluetooth broadcast carries the first key.

[0260] S1508: The Bluetooth chip determines whether the mobile phone has established a Bluetooth connection with the third device. If so, execute S1511-S1515; if not, execute S1509-S1510.

[0261] Based on this, the mobile phone can trigger the playing of a ringtone when the third device is relatively close to the mobile phone, thereby helping the user to know the exact location of the mobile phone more accurately and helping the user to find the lost first device more quickly.

[0262] S1509: The power management module determines whether the first preset time has passed. If yes, the power management module executes S1510. If no, the power management module does not process, and the Bluetooth chip continues to execute S1507.

[0263] S1510: The power management module controls PMU GPIO 1 to be at a low level to instruct the Bluetooth chip to power off.

[0264] S1511: The Bluetooth chip verifies whether the first device and the third device have logged into the same account. If the verification fails, execute S1512 and then execute S1509-S1510; if the verification passes, execute S1513-S1515.

[0265] S1512: The Bluetooth chip disconnects the Bluetooth connection with the third device.

[0266] Based on this, the mobile phone can disconnect the Bluetooth connection with the third device when the third device is not logged in to the same account as the mobile phone, thereby saving the power of the mobile phone to the greatest extent while ensuring the security of the first device.

[0267] S1513: The Bluetooth chip controls BT GPIO 2 to be at a high level to instruct the audio amplifier to ring.

[0268] For example, upon receiving a ringing instruction sent by a third device, the Bluetooth chip may control BT GPIO 2 to be at a high level to instruct the audio amplifier to ring.

[0269] S1514: The Bluetooth chip determines whether the received ringing request has timed out. If not, execute S1513; if so, execute S1515.

[0270] Based on this, it is possible to avoid excessive consumption of battery power due to the continuous ringing of the mobile phone, and to avoid the noise caused to the environment by the continuous ringing of the mobile phone.

[0271] S1515: The Bluetooth chip controls BT GPIO 2 to be at a low level to instruct the audio amplifier to stop ringing.

[0272] Understandably, based on Fig.15The device enabling process shown in the figure can realize the power supply and enabling of the communication chip and audio amplifier of the terminal device after shutdown at a very low cost based on the existing hardware of the first device by improving the software of the power management module (such as the pin control logic). The improvement process is simple and time-saving. Figure 1 The solution of adding AOP shown in the figure not only has low cost, but also has a simple and short improvement process, so it will not affect the production cycle of the terminal equipment. In addition, by powering and enabling the audio amplifier, the lost first device can be supported to play the ringtone at a preset higher volume, helping the user to find the first device more quickly.

[0273] Embodiment 2:

[0274] In Example 2, after the lost first device is turned off, the power conversion module of the first device obtains power from the battery of the first device and converts it into a voltage suitable for the communication chip, and continues to supply power to the communication chip so that the communication chip can send a broadcast signal according to preset broadcast parameters (such as the first broadcast parameters) to support the "good Samaritan" scheme to help users locate the location of the first device, thereby helping users find the first device smoothly.

[0275] The communication chip includes a GPIO interface, which supports maintaining itself in an enabled state so that the communication chip can use the power from the power conversion module to work normally, such as sending a broadcast signal. The power conversion module can be an existing hardware module of the first device (such as a hardware module in the power management module) or a newly added hardware module, which is not limited in the embodiments of the present application.

[0276] Take the Bluetooth chip as an example, please refer to Fig.16 , Fig.16 FIG. 2 shows a schematic diagram of an enabling architecture of another first device provided in an embodiment of the present application. Fig.16 As shown, the first device may include a battery, a processor, a power conversion module and a Bluetooth chip.

[0277] The processor includes an ACPU, and the ACPU includes a device retrieval application and a Bluetooth protocol stack. The processor also includes a UART. A power conversion module such as an LDO. The Bluetooth chip includes a Bluetooth controller (such as a BT / BLE controller), a Bluetooth enable pin (such as BT_EN) and a UART. For a detailed introduction to the above modules of the processor, power management module and Bluetooth chip, please refer to the description of the above embodiments. Fig.10 , Fig.12 and Fig.14 The introduction of , I will not go into details here.

[0278] like Fig.16As shown, the processor also includes a processor general input and output interface, such as SOC GPIO 1, which is used to indicate that the Bluetooth chip enters or remains enabled by being at a high level. The Bluetooth chip also includes a Bluetooth general input and output interface, such as BT GPIO 1, which is used to maintain a high level so that the Bluetooth chip remains enabled after the first device is powered off.

[0279] by Fig.16 For example, please refer to the enabling architecture shown in Fig.17 , Fig.17 Taking the first device being a lost mobile phone as an example, another schematic diagram of the enabling process of the first device provided by the embodiment of the present application is shown. Fig.17 As shown, the enabling process of the mobile phone may include S1701-S1709:

[0280] S1701: The processor starts the shutdown process.

[0281] Among them, the start of the shutdown process can be triggered manually (such as manually clicking the shutdown button, etc.), or it can be triggered by low power or preset conditions (such as timed shutdown conditions), etc., and the embodiments of this application do not make specific limitations.

[0282] S1702: The processor determines whether the shutdown recovery function is enabled. If enabled, execute S1703-S1709; if not enabled, directly execute S1706.

[0283] Among them, the power-off retrieval function can be enabled manually by the user or by the default setting of the mobile phone, and the embodiments of the present application do not make specific limitations.

[0284] S1703: The processor controls SOC GPIO 1 to be at a high level to instruct the Bluetooth chip to enter or remain in an enabled state.

[0285] It can be understood that when the SOC GPIO 1 of the processor is at a high level, the BT_EN of the Bluetooth chip connected thereto is also switched to a high level, based on which the Bluetooth chip can enter an enabled state. After the Bluetooth chip enters the enabled state, it can use the power from the power conversion module to work normally, such as starting the shutdown recovery process.

[0286] It should be noted that Fig.17 The enabling process shown is only based on the case where the Bluetooth chip is not in the enabled state initially, and the processor controls SOC GPIO 1 to be at a high level to instruct the Bluetooth chip to enter the enabled state. In some embodiments, for example, when the Bluetooth chip is originally in the enabled state, Fig.17 The shown S1703 may also be omitted.

[0287] S1704: The processor sends the first broadcast parameter and the rotation key to the Bluetooth chip through the UART.

[0288] The first broadcast parameter may include but is not limited to broadcast type, broadcast interval, broadcast window, scan interval, scan window, broadcast content, broadcast content replacement cycle, etc. The rotation key includes a rotation strategy of the first key, such as a key rotation cycle, etc.

[0289] In some embodiments, after the Bluetooth chip receives the first broadcast parameter and the rotation key from the processor, the Bluetooth chip may also disable the UART to prevent the Bluetooth chip from mistakenly believing that there is data to be received from the processor after the mobile phone is turned off.

[0290] It should be noted that the above S1703 and S1704 can be executed simultaneously, or S1703 can be executed first and then S1704, or S1704 can be executed first and then S1703, which is not limited in the present embodiment. However, S1704 needs to be executed before S1705, or S1704 needs to be executed before the processor is powered off.

[0291] S1705: The Bluetooth chip controls BT GPIO 1 to be at a high level to maintain the Bluetooth chip in an enabled state.

[0292] like Fig.16 As shown, due to the effect of the diode, when BT GPIO 1 is at a high level, BT_EN of the Bluetooth chip is at a high level. Based on this, the Bluetooth chip can be maintained in an enabled state.

[0293] S1706: The mobile phone is powered off.

[0294] S1707: The Bluetooth chip sends a Bluetooth broadcast according to the first broadcast parameter, and the Bluetooth broadcast carries the first key.

[0295] The first key is used to encrypt the location information of the second device that scans the Bluetooth broadcast to ensure the security of the device location information.

[0296] S1708: The Bluetooth chip determines whether the first preset time has passed. If yes, the Bluetooth chip executes S1709. If no, the Bluetooth chip continues to execute S1707.

[0297] Exemplarily, the Bluetooth controller may manage a power clock of the Bluetooth chip, and the Bluetooth controller may determine whether a first preset time period has elapsed based on the power clock.

[0298] S1709: The Bluetooth chip controls BT GPIO 1 to be at a low level to power off the Bluetooth chip.

[0299] Understandably, based on Fig.17 The device enabling process shown in the figure improves the connection relationship of the Bluetooth chip pins so that the Bluetooth chip can manage its own working state, and then based on the existing hardware of the first device (such as power conversion module, processor, battery, Bluetooth chip), the power supply of the communication chip of the terminal device after shutdown is enabled at a very low cost. The improvement process is simple and time-saving. Figure 1 The solution of adding AOP shown in the figure is not only low in cost, but also simple and time-saving in improvement process, so it will not affect the production cycle of the terminal device; or, even if the power conversion module in the first device is a newly added hardware module, since the functions to be implemented are relatively simple and the product structure is simple, the product is relatively mature and the cost is usually very low, so compared with Figure 1 The solution of adding AOP shown can also realize power supply and enabling of the communication chip of the terminal device after shutdown at a very low cost, and also will not affect the production cycle of the terminal device.

[0300] In some embodiments, in order to help the user find the lost first device more quickly, the first device can also support powering and enabling the ranging and angle measuring chip (such as a UWB chip) after being shut down, so that it can send and receive UWB signals to facilitate other devices (such as a second device or a third device) to accurately obtain the location of the first device.

[0301] Take the distance measurement and angle measurement chip as an example, please refer to Fig.18 , Fig.18 FIG. 2 shows a schematic diagram of an enabling architecture of another first device provided in an embodiment of the present application. Fig.18 As shown, the first device may include a battery, a processor, a power conversion module, a Bluetooth chip, and a UWB chip.

[0302] The processor includes an ACPU, which includes a device retrieval application, a Bluetooth protocol stack, a UWB protocol stack, and a SOC GPIO 1. A power conversion module such as an LDO. The Bluetooth chip includes a Bluetooth controller (such as a BT / BLE controller), a Bluetooth enable pin (such as BT_EN), and a BT GPIO 1. For a detailed introduction to the processor, the power management module, and the Bluetooth chip, please refer to the description of the above embodiments. Fig.16 The introduction of , I will not go into details here.

[0303] like Fig.18As shown, the processor also includes UART 1, UART 2 and SOC GPIO 2. UART 1 is used to transmit relevant data with the Bluetooth chip, such as sending the first broadcast parameter, the rotation key, etc.; UART 2 is used to transmit ranging and angle measurement related data with the UWB chip, such as sending the first ranging and angle measurement parameters, etc.; SOC GPIO 2 is used to control the UWB enable pin (such as UWB_EN) of the UWB chip to enable the UWB chip.

[0304] The Bluetooth chip also includes UART 1, UART 2 and BT GPIO 2. UART 1 is used to transmit relevant data with the processor, such as receiving the first broadcast parameter, the rotation key, etc.; UART 2 is used to instruct the UWB chip to start the UWB ranging and angle measurement process. For example, UART 2 can instruct the UWB chip to start the UWB ranging and angle measurement process by maintaining a high level; BT GPIO 2 is used to maintain a high level so that the UWB chip remains in an enabled state after the first device is powered off.

[0305] The UWB chip includes a UWB enable pin (such as UWB_EN), UART 1 and UART 2. UWB_EN is used to enable or power off the UWB chip by switching between high and low levels; UART 1 is used to transmit relevant data to the processor, such as receiving the first distance measurement and angle measurement parameters; UART 2 is used to start the UWB distance measurement and angle measurement process according to the instructions of the Bluetooth chip.

[0306] It should be noted that Fig.18 The way in which the processor controls the UWB enable pin (such as UWB_EN) of the UWB chip through SOC GPIO 2 to enable the UWB chip is only an example. In some embodiments, the processor may not include SOC GPIO 2, and the UWB chip can be mainly controlled by the Bluetooth chip through BT GPIO 2 to enter or maintain the enabled state. Fig.18 For example, please refer to the enabling architecture shown in Fig.19 , Fig.19 Taking the first device being a lost mobile phone as an example, another schematic diagram of the enabling process of the first device provided by the embodiment of the present application is shown. Fig.19 As shown, the enabling process of the mobile phone may include S1901-S1914:

[0307] S1901: The processor starts the shutdown process.

[0308] S1902: The processor determines whether the shutdown recovery function is enabled. If enabled, execute S1903-S1914; if not enabled, directly execute S1906.

[0309] S1903: The processor controls SOC GPIO 1 and SOC GPIO 2 to be at a high level to respectively instruct the Bluetooth chip and the UWB chip to enter or remain in an enabled state.

[0310] It should be noted that Fig.19 The enabling process shown only takes the case where the Bluetooth chip and the UWB chip are not in the enabled state initially, and the processor controls SOC GPIO 1 and SOC GPIO 2 to be at a high level, respectively instructing the Bluetooth chip and the UWB chip to enter the enabled state as an example. In some embodiments, for example, when the Bluetooth chip is originally in the enabled state, Fig.19 The process of the processor controlling SOC GPIO 1 to be at a high level can be omitted. For example, when the UWB chip is already in an enabled state, Fig.19 The process of the processor controlling the SOC GPIO 2 to be at a high level may be omitted.

[0311] S1904: The processor sends a first broadcast parameter and a rotation key to the Bluetooth chip through UART 1, and sends a first ranging and angle measurement parameter to the UWB chip through UART 2.

[0312] Among them, the first ranging and angle measurement parameters may include but are not limited to ranging and angle measurement methods, signal transmission cycles, signal transmission intervals, etc., which are not specifically limited in the embodiments of the present application and can refer to conventional technologies.

[0313] In some embodiments, after the Bluetooth chip receives the first broadcast parameter and the rotation key from the processor, the Bluetooth chip may also disable UART 1 to prevent the Bluetooth chip from mistakenly thinking that there is data from the processor that needs to be received after the mobile phone is powered off. Similarly, after the UWB chip receives the first distance measurement and angle measurement parameter from the processor, the UWB chip may also disable UART 2 to prevent the UWB chip from mistakenly thinking that there is data from the processor that needs to be received after the mobile phone is powered off.

[0314] It should be noted that the above S1903 and S1904 can be executed simultaneously, or S1903 can be executed first and then S1904, or S1904 can be executed first and then S1903, which is not limited in the present embodiment. However, S1904 needs to be executed before S1905, or S1904 needs to be executed before the processor is powered off.

[0315] S1905: The Bluetooth chip controls BT GPIO 1 to be at a high level to maintain the Bluetooth chip in an enabled state.

[0316] S1906: The mobile phone is turned off and powered off.

[0317] S1907: The Bluetooth chip sends a Bluetooth broadcast according to the first broadcast parameter, and the Bluetooth broadcast carries the first key.

[0318] S1908: The Bluetooth chip determines whether the mobile phone has established a Bluetooth connection with the third device. If so, execute S1911; if not, execute S1909.

[0319] Based on this, the mobile phone can enable the UWB chip when the third device is relatively close to the mobile phone, so that the UWB chip can use the power from the power conversion module to support the distance and angle measurement process between the mobile phone and the third device, thereby helping users to know the exact location of the mobile phone more accurately and help users find the lost first device more quickly.

[0320] S1909: The Bluetooth chip determines whether the first preset time has passed. If yes, the Bluetooth chip executes S1910. If no, the Bluetooth chip continues to execute S1907.

[0321] S1910: The Bluetooth chip controls BT GPIO 1 and BT GPIO 2 to be at a low level to power off the Bluetooth chip and the UWB chip respectively.

[0322] Among them, in the shutdown state, when the BT GPIO 1 and BT GPIO 2 of the Bluetooth chip are at a low level, the BT_EN of the Bluetooth chip and the UWB_EN of the UWB chip respectively connected thereto are also switched to a low level and then powered off.

[0323] S1911: The Bluetooth chip verifies whether the first device and the third device have logged into the same account. If the verification fails, execute S1912 and then execute S1909-S1910; if the verification passes, execute S1913-S1914 and then execute S1909-S1910.

[0324] S1912: The Bluetooth chip disconnects the Bluetooth connection with the third device.

[0325] Based on this, the mobile phone can disconnect the Bluetooth connection with the third device when the third device is not logged in to the same account as the mobile phone, thereby saving the mobile phone's power to the greatest extent while ensuring the security of the location information of the first device.

[0326] S1913: The Bluetooth chip controls UART 2 to be at a high level to instruct the UWB chip to start the UWB ranging and angle measurement process.

[0327] For example, when receiving a UWB distance measurement and angle measurement instruction sent by a third device, the Bluetooth chip can control UART 2 to be at a high level to instruct the UWB chip to start the UWB distance measurement and angle measurement process. Based on this, UART 2 of the Bluetooth chip can play the role of GPIO, triggering the UWB chip to use the specified distance measurement and angle measurement parameters (such as the first distance measurement and angle measurement parameters) to start the UWB distance measurement and angle measurement process.

[0328] S1914: The UWB chip measures distance and angle so that a third device can obtain the precise location of the phone.

[0329] Exemplarily, the UWB chip can perform ranging and angle measurement based on but not limited to one or more of the following methods: TDOA positioning method, TOA positioning method, AOA positioning method, etc. The embodiments of the present application are not specifically limited and conventional technologies can be referred to.

[0330] In some embodiments, the distance measurement and angle measurement may be mainly performed by a third device, and the mobile phone (i.e., the first device) may cooperate with the third device to complete the distance measurement and angle measurement related tasks. In other embodiments, the distance measurement and angle measurement may be mainly performed by the mobile phone (i.e., the first device), and the third device may cooperate with the mobile phone to complete the distance measurement and angle measurement related tasks. The embodiments of the present application do not limit the main responsible party for distance measurement and angle measurement, which depends on the specific circumstances.

[0331] In some embodiments, Fig.19 As shown, after completing S1914, the Bluetooth chip can directly execute S1909-S1910, avoiding excessive consumption of battery power due to the continuous operation of the Bluetooth chip and UWB chip of the mobile phone, thereby saving power. Of course, in some embodiments, after completing S1914, the Bluetooth chip can also execute S1912 first and then execute S1909-S1910 to save power.

[0332] Understandably, based on Fig.19 The device enabling process shown in the figure improves the connection relationship between the Bluetooth chip and the UWB chip pins so that the Bluetooth chip can manage its own working state and the UWB chip, and then based on the existing hardware of the first device (such as power conversion module, processor, battery, Bluetooth chip), the communication chip of the terminal device after shutdown is powered on and enabled at a very low cost. The improvement process is simple and time-saving. Figure 1 The solution of adding AOP shown in the figure is not only low in cost, but also simple and time-saving in improvement process, so it will not affect the production cycle of the terminal device; or, even if the power conversion module in the first device is a newly added hardware module, since the functions to be implemented are relatively simple and the product structure is simple, the product is relatively mature and the cost is usually very low, so compared with Figure 1The solution of adding AOP as shown can also realize power supply and enabling of the communication chip of the terminal device after shutdown at a very low cost, and will not affect the production cycle of the terminal device. In addition, by measuring distance and angle, the lost first device can be located more accurately, helping the user to find the first device more quickly.

[0333] In some embodiments, in order to help the user find the lost first device more quickly, the first device can also support powering and enabling an audio amplifier (such as a smart PA) after being turned off, so that it can play ringtones at a preset higher volume, making it easier for the user to find the first device smoothly.

[0334] Please refer to Fig. 20 , Fig. 20 FIG. 2 shows a schematic diagram of an enabling architecture of another first device provided in an embodiment of the present application. Fig. 20 As shown, the first device may include a battery, a processor, a power conversion module, a Bluetooth chip, and an audio amplifier.

[0335] The processor includes an ACPU, and the ACPU includes a device retrieval application and a Bluetooth protocol stack. The processor also includes a SOC GPIO1 and a UART. A power conversion module such as an LDO. The Bluetooth chip includes a Bluetooth controller (such as BT / BLEcontroller), a Bluetooth enable pin (such as BT_EN), a UART, and a BT GPIO 1. For a detailed introduction to the above modules of the processor, the power management module, and the Bluetooth chip, please refer to the description of the above embodiments. Fig.16 The introduction of , I will not go into details here.

[0336] like Fig. 20 As shown, the Bluetooth chip further includes BT GPIO 2, which is used to instruct the audio amplifier to ring by maintaining a high level, or to instruct the audio amplifier to stop ringing by maintaining a low level.

[0337] The audio amplifier includes an audio amplifier general input and output interface, such as PA GPIO 1, which is used to trigger or stop the ringing according to the instruction of the Bluetooth chip. The audio amplifier also includes a power amplifier, which is used to increase the power of the sound waveform. Fig.19 As shown, the audio amplifier can amplify the preset sound waveform in the audio amplifier at a preset power, and then play the ringtone at a relatively high volume through an external speaker, so that the user can find the first device smoothly.

[0338] by Fig. 20 For example, please refer to the enabling architecture shown in Fig.21 , Fig.21 Taking the first device being a lost mobile phone as an example, another schematic diagram of the enabling process of the first device provided by the embodiment of the present application is shown. Fig.21As shown, the enabling process of the mobile phone may include S2101-S2114:

[0339] S2101: The processor starts the shutdown process.

[0340] S2102: The processor determines whether the shutdown recovery function is enabled. If enabled, S2103-S2114 are executed; if not enabled, S2106 is directly executed.

[0341] S2103: The processor controls SOC GPIO 1 to be at a high level to instruct the Bluetooth chip to enter or remain enabled.

[0342] It should be noted that Fig.21 The enabling process shown is only based on the case where the Bluetooth chip is not in the enabled state initially, and the processor controls SOC GPIO 1 to be at a high level to instruct the Bluetooth chip to enter the enabled state. In some embodiments, for example, when the Bluetooth chip is originally in the enabled state, Fig.21 The shown S2103 may also be omitted.

[0343] S2104: The processor sends the first broadcast parameter and the rotation key to the Bluetooth chip through the UART.

[0344] In some embodiments, after the Bluetooth chip receives the first broadcast parameter and the rotation key from the processor, the Bluetooth chip may also disable the UART to prevent the Bluetooth chip from mistakenly believing that there is data to be received from the processor after the mobile phone is turned off.

[0345] It should be noted that the above S2103 and S2104 can be executed simultaneously, or S2103 can be executed before S2104, or S2104 can be executed before S2103, which is not limited in the present embodiment. However, S2104 needs to be executed before S2105, or S2104 needs to be executed before the processor is powered off.

[0346] S2105: The Bluetooth chip controls BT GPIO 1 to be at a high level to maintain the Bluetooth chip in an enabled state.

[0347] S2106: The mobile phone is turned off and powered off.

[0348] S2107: The Bluetooth chip sends a Bluetooth broadcast according to the first broadcast parameter, and the Bluetooth broadcast carries the first key.

[0349] S2108: The Bluetooth chip determines whether the mobile phone has established a Bluetooth connection with the third device. If so, execute S2111; if not, execute S2109.

[0350] S2109: The Bluetooth chip determines whether the first preset time has passed. If yes, the Bluetooth chip executes S2110. If no, the Bluetooth chip continues to execute S2107.

[0351] S2110: The Bluetooth chip controls BT GPIO 1 and BT GPIO 2 to be at a low level to power off the Bluetooth chip and the audio amplifier respectively.

[0352] Among them, in the shutdown state, when the BT GPIO 1 and BT GPIO 2 of the Bluetooth chip are at a low level, the BT_EN of the Bluetooth chip and the PA GPIO 1 of the audio amplifier respectively connected thereto are also switched to a low level and then powered off.

[0353] S2111: The Bluetooth chip verifies whether the first device and the third device have logged into the same account. If the verification fails, execute S2112 and then execute S2109-S2110; if the verification passes, execute S2113-S2114.

[0354] S2112: The Bluetooth chip disconnects the Bluetooth connection with the third device.

[0355] S2113: The Bluetooth chip controls BT GPIO 2 to be at a high level to instruct the audio amplifier to ring.

[0356] For example, upon receiving a ringing instruction sent by a third device, the Bluetooth chip may control BT GPIO 2 to be at a high level to instruct the audio amplifier to ring.

[0357] S2114: The Bluetooth chip determines whether the received ringing request has timed out. If not, execute S2113; if so, execute S2112 and then execute S2109-S2110.

[0358] In some embodiments, the Bluetooth chip may not execute S2112 upon receiving a ringing request timeout, and directly execute S2109-S2110, which is not specifically limited in the embodiments of the present application.

[0359] Based on this, it is possible to avoid excessive consumption of battery power due to the continuous ringing of the mobile phone, and to avoid the noise caused to the environment by the continuous ringing of the mobile phone.

[0360] Understandably, based on Fig.21 The device enabling process shown in the figure improves the connection relationship between the Bluetooth chip and the audio amplifier pins so that the Bluetooth chip can manage its own working state and the audio amplifier, and then based on the existing hardware of the first device (such as the power conversion module, the processor, the battery, the Bluetooth chip) at a very low cost to realize the power supply and enabling of the communication chip of the terminal device after shutdown. The improvement process is simple and time-saving. Figure 1The solution of adding AOP shown in the figure is not only low in cost, but also simple and time-saving in improvement process, so it will not affect the production cycle of the terminal device; or, even if the power conversion module in the first device is a newly added hardware module, since the functions to be implemented are relatively simple and the product structure is simple, the product is relatively mature and the cost is usually very low, so compared with Figure 1 The solution of adding AOP can also realize power supply and enabling of the communication chip of the terminal device after shutdown at a very low cost, and will not affect the production cycle of the terminal device. In addition, by supplying power and enabling the audio amplifier, the lost first device can be supported to play the ringtone at a preset high volume, helping the user to find the first device more quickly.

[0361] It should be noted that the several enabling architectures introduced in the above-mentioned Embodiments 1 and 2 are only examples, and the embodiments of the present application do not limit the specific hardware and software modules included in the first device, nor do they limit the connection relationship between the modules. For example, the first device may also include other hardware modules such as a display screen; for another example, the battery of the first device may also supply power to other modules, such as a processor.

[0362] In addition, the various interfaces or pins in the processor, power management module, power conversion module, Bluetooth chip, UWB chip or audio amplifier in the several enabling architectures introduced in the above-mentioned Examples 1 and 2 are only examples, and the embodiments of the present application do not make specific limitations. For terminal devices whose other interfaces or pins can provide corresponding enabling / control functions, the solutions provided in the embodiments of the present application are also applicable.

[0363] In addition, the enabling processes of several mobile phones described in the above-mentioned embodiments 1 and 2 are only examples. In actual use, the execution order of certain steps is not limited and can be adaptively adjusted according to the actual device capabilities and specific software implementation process. For example, Fig.11 As shown, S1106 and S1107-S1109 can be executed synchronously, or one can be executed before the other; and Fig.13 As shown, S1306 and S1307-S1314 can be executed synchronously, or one can be executed before the other; and Fig.15 As shown, S1506 and S1507-S1515 can be executed synchronously, or one can be executed before the other; and Fig.17 As shown, S1706 and S1707-S1709 can be executed synchronously, or one can be executed before the other; and Fig.19 As shown, S1906 and S1907-S1914 can be executed synchronously, or one can be executed before the other; and Fig.21As shown, S2106 and S2107-S2114 can be executed synchronously, or one can be executed before the other. Fig.11 S1108-S1109 shown may also not be executed; or Fig.13 S1309-S1310 shown may also not be executed; or Fig.15 S1509-S1510 or S1514-S1515 shown may not be executed; or Fig.17 S1708-S1709 shown may also not be executed; or Fig.19 S1909-S1910 shown may also not be executed; or Fig.21 The shown S2109-S2110 or S2114 may not be executed.

[0364] It should be understood that the various schemes of the embodiments of the present application can be used in reasonable combination, and the explanations or descriptions of the various terms appearing in the embodiments can be mutually referenced or explained in the various embodiments, without limitation.

[0365] It should also be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0366] It is understandable that, in order to implement the functions of any of the above-mentioned embodiments, the terminal device (such as the first device, the second device or the third device) includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0367] The embodiment of the present application can divide the terminal device (such as the first device, the second device or the third device) into functional modules. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0368] As an example, Fig. 22As shown, the terminal device (such as the first device, the second device or the third device) may include a communication unit 2210, a power supply unit 2220, a processing unit 2230 and a storage unit 2240 according to the division of functional modules. Among them, the communication unit 2210 is used to send and receive information, such as sending and receiving broadcast signals; the power supply unit 2220 is used to power the communication unit 2210, the processing unit 2230, etc. when the terminal device is turned on, and to power the communication unit 2210 when the terminal device is turned off, and is used for the communication unit 2210 to send and receive broadcast signals; the processing unit 2230 is used to manage the communication protocol, send the communication strategy (such as the first broadcast parameter, the first distance measurement and angle measurement parameter, etc.); the storage unit 2240 is used to store computer program instructions, data created during the use of the terminal device, etc. Of course, in some examples, the terminal device may also include other units, such as an audio unit for playing ringtones, etc., which are not specifically limited in the embodiments of the present application.

[0369] It should also be understood that each module in the terminal device can be implemented in software and / or hardware form, and there is no specific limitation on this. In other words, the terminal device is presented in the form of functional modules. The "module" here can refer to a specific application integrated circuit ASIC, a circuit, a processor and a memory that executes one or more software or firmware programs, an integrated logic circuit, and / or other devices that can provide the above functions.

[0370] In an optional manner, when data transmission is implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is implemented in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disk (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0371] The steps of the method or algorithm described in conjunction with the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in a terminal device. Of course, the processor and the storage medium can also exist as discrete components.

[0372] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned 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.

Claims

1. A method for obtaining device location information, characterized in that: Applied to a first device, the first device includes a battery, a power management module, a processor, and a communication chip, and the method includes: In response to a first condition, the processor sends a first signal to the power management module; The power management module instructs the communication chip to enter or maintain an enabled state according to the first signal; After the processor is powered off, the first device is shut down; After the first device is shut down, the communication chip is in an enabled state; The communication chip obtains electric energy from the battery and sends a broadcast signal according to a first broadcast parameter.

2. The method according to claim 1, characterized in that The processor includes a first system power management interface, the power management module includes a second system power management interface, the first system power management interface is connected to the second system power management interface, and the processor sends a first signal to the power management module, including: The processor sends the first signal to the power management module through the first system power management interface.

3. The method according to claim 1 or 2, characterized in that: The power management module includes a first universal input-output interface, the communication chip includes a first enable pin, and the first universal input-output interface is connected to the first enable pin; The power management module instructs the communication chip to enter or remain enabled according to the first signal, including: the power management module instructs the communication chip to enter or remain enabled through the first general input and output interface according to the first signal.

4. The method according to claim 3, characterized in that The first device further includes a distance and angle measurement chip. Before the processor is powered off, the method further includes: The power management module instructs the distance and angle measurement chip to enter or maintain an enabled state according to the first signal.

5. The method according to claim 4, characterized in that The power management module further includes a fourth general input / output interface, the distance and angle measurement chip includes a second enable pin, and the fourth general input / output interface is connected to the second enable pin; The power management module instructs the distance and angle measurement chip to enter or maintain an enabled state according to the first signal, including: The power management module controls the fourth general input and output interface according to the first signal to instruct the distance and angle measurement chip to enter or maintain an enabled state.

6. The method according to claim 4 or 5, characterized in that: The communication chip further includes a first communication interface, the distance measurement and angle measurement chip further includes a second communication interface, the first communication interface is connected to the second communication interface, and the method further includes: When the second condition is met, the communication chip sends a distance and angle measurement instruction to the distance and angle measurement chip through the first communication interface; The distance measurement and angle measurement chip cooperates to perform the distance measurement and angle measurement task of the first device according to the distance measurement and angle measurement indication and based on the first distance measurement and angle measurement parameters.

7. The method according to claim 6, characterized in that The communication chip and the distance and angle measurement chip obtain electric energy from the battery through the power management module.

8. The method according to claim 3, characterized in that The first device further includes an audio amplifier and a speaker, the audio amplifier is connected to the speaker, the communication chip includes a fifth general purpose input and output interface, the audio amplifier includes a sixth general purpose input and output interface, the fifth general purpose input and output interface is connected to the sixth general purpose input and output interface, and the method further includes: When the second condition is met, the communication chip instructs the audio amplifier to play the ringtone through the speaker through the fifth universal input and output interface; wherein the audio amplifier obtains power from the battery from the power management module.

9. The method according to claim 8, characterized in that A sound waveform is pre-set in the audio amplifier, and the ringtone played by the speaker is the ringtone corresponding to the sound waveform.

10. The method according to any one of claims 6 to 9, characterized in that: The second condition is met, including: receiving a preset instruction from a third device; Wherein, the first device establishes a communication connection with the third device.

11. The method according to claim 10, characterized in that The second condition is met, further comprising: The third device and the first device log in to the same cloud server account.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises: In response to a first condition, the processor sends the first broadcast parameter to the communication chip; The first condition includes: the first device receives a shutdown operation, or the power level of the first device is less than a preset power threshold, or a preset condition is met.

13. A method for obtaining device location information, characterized in that: Applied to a first device, the first device includes a battery, a processor and a communication chip, the processor includes a seventh general purpose input and output interface, the communication chip includes a first enable pin and an eighth general purpose input and output interface, the seventh general purpose input and output interface is connected to the first enable pin, and the eighth general purpose input and output interface is connected to the first enable pin, and the method includes: In response to the first condition, the processor instructs the communication chip to enter or maintain an enabled state through the seventh general purpose input and output interface; After the processor is powered off, the first device is shut down; After the first device is shut down, the communication chip maintains the first enable pin at a high level through the eighth general input and output interface, so that the communication chip is in an enabled state; The communication chip obtains electric energy from the battery and sends a broadcast signal according to a first broadcast parameter.

14. The method according to claim 13, characterized in that The first device further includes a distance measurement and angle measurement chip, the communication chip further includes a ninth general input and output interface, the distance measurement and angle measurement chip includes a third enable pin, the ninth general input and output interface is connected to the third enable pin, and the method further includes: After the first device is shut down, the communication chip controls the distance and angle measurement chip to be in an enabled state through the ninth universal input and output interface.

15. The method according to claim 14, characterized in that The communication chip further includes a first communication interface, the distance measurement and angle measurement chip further includes a second communication interface, the first communication interface is connected to the second communication interface, and the method further includes: When the second condition is met, the communication chip sends a distance and angle measurement instruction to the distance and angle measurement chip through the first communication interface; The distance measurement and angle measurement chip cooperates to perform the distance measurement and angle measurement task of the first device according to the distance measurement and angle measurement indication and based on the first distance measurement and angle measurement parameters.

16. The method according to claim 15, characterized in that The first device further includes a power conversion module, and the communication chip and the distance and angle measurement chip obtain electrical energy from the battery from the power conversion module.

17. The method according to claim 13, characterized in that The first device further includes an audio amplifier and a speaker, the audio amplifier is connected to the speaker, the communication chip includes a fifth general purpose input and output interface, the audio amplifier includes a sixth general purpose input and output interface, the fifth general purpose input and output interface is connected to the sixth general purpose input and output interface, and the method further includes: When the second condition is met, the communication chip instructs the audio amplifier to play the ringtone through the speaker through the fifth universal input and output interface; wherein the audio amplifier obtains power from the battery from the power conversion module.

18. The method according to claim 17, characterized in that A sound waveform is pre-set in the audio amplifier, and the ringtone played by the speaker is the ringtone corresponding to the sound waveform.

19. The method according to claim 15 or 17, characterized in that: The second condition is met, including: receiving a preset instruction from a third device; Wherein, the first device establishes a communication connection with the third device.

20. The method according to claim 19, characterized in that The second condition is met, further comprising: The third device and the first device log in to the same cloud server account.

21. The method according to any one of claims 13 to 20, characterized in that The method further comprises: In response to a first condition, the processor sends the first broadcast parameter to the communication chip; The first condition includes: the first device receives a shutdown operation, or the power level of the first device is less than a preset power threshold, or a preset condition is met.

22. A terminal device, characterized in that: The terminal device comprises: a battery, a power management module, a processor and a communication chip, and the terminal device is used to implement the method according to any one of claims 1-12.

23. A terminal device, characterized in that: The terminal device comprises: a battery, a power conversion module, a processor and a communication chip, and the terminal device is used to implement the method as described in any one of claims 13-21.

24. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processing circuit, the method according to any one of claims 1-12 or 13-21 is implemented.

25. A computer program product comprising instructions, characterized in that When the computer program product is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 12 or 13 to 21.

26. A chip system, characterized in that: The chip system includes a processing circuit and a storage medium, wherein the storage medium stores computer program instructions; when the computer program instructions are executed by the processing circuit, the method as described in any one of claims 1-12 or 13-21 is implemented.

Citation Information

Cited By

  • Method for acquiring position information of device, and device and system

    EP4718881A1

  • Method for acquiring position information of device, and device and system

    WO2025025954A1