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

By introducing shutdown retrieval control logic into the power management module of the terminal device, we ensure that the communication chip can still be powered and enabled after the device is shut down, solving the problem of inability to locate after the terminal device is shut down, and achieving rapid and economical equipment retrieval .

WO2025025954A1PCT designated stage expired Publication Date: 2025-02-06HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/103188
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-07-28
Filing Date
2024-07-02
Publication Date
2025-02-06

AI Technical Summary

Technical Problem

After the terminal device is powered off, how to keep power to communication chips such as Bluetooth chips so that they can send broadcast signals to help users find lost devices.

Method used

By introducing shutdown retrieval control logic into the power management module, it is ensured that the communication chip can still be in the enabled state after the terminal device is shut down, obtain the power from the battery, and send the broadcast signal according to the preset broadcast parameters.

Benefits of technology

After the terminal device is shut down, it can obtain the location information of the lost device economically, simply and easily, help users quickly retrieve the device without affecting the equipment production cycle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024103188_06022025_PF_FP_ABST
    Figure CN2024103188_06022025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals. Disclosed are a method for acquiring position information of a device, and a device and a system. A more economical, simpler, and easier-to-implement solution for acquiring position information of a terminal device that has been powered off after being lost is provided, so as to help a user quickly recover the lost terminal device. In the present application, on the basis of existing hardware of a terminal device, by means of improving software (e.g., pin control logic), a normal power supply to and the enabling of power-off recovery related modules, such as a Bluetooth chip, an ultra wide band radio (UWB) chip and an audio amplifier, are implemented after the terminal device is lost and has been powered off, so that the power-off recovery related modules can normally operate to help the user quickly recover the terminal device, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device and system for obtaining device location information

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on July 28, 2023, with application number 202310956865.4 and application name “A method, device and system for obtaining device location information”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] 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

[0003] With the widespread use of mobile phones, smart watches, tablets, and other terminal devices, people often own multiple devices for daily life and work. While using a terminal device, a user may lose or shut down the device. This can happen, for example, if the user carelessly leaves the device somewhere and shuts down due to low battery or damage, or if the user's device is maliciously stolen and shut down.

[0004] 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.

[0005] However, as we know, after a terminal device is turned off, the terminal device's battery often no longer supplies power to other modules, such as the Bluetooth chip. Without an enable signal, the Bluetooth chip naturally cannot send Bluetooth broadcasts. Therefore, how to maintain power to the Bluetooth chip after the terminal device is turned off is a problem that needs to be solved.

[0006] Summary of the Invention

[0007] 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 lost and turned off, helping users quickly find the lost terminal device.

[0008] To achieve the above objectives, this application adopts the following technical solutions:

[0009] In a first aspect, a method for obtaining device location information is provided, which 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 electrical energy from the battery and sends a broadcast signal according to a first broadcast parameter.

[0010] 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.

[0011] For example, the first condition is generally 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 level of the first device is less than a preset power threshold, or the first device meets a preset condition (such as meeting a scheduled shutdown condition, etc.).

[0012] For example, the power management module may include a control logic unit or a control logic module configured to configure shutdown recovery control logic, configured to manage and execute the shutdown recovery control logic. Upon receiving a first signal from the processor, the power management module may activate the shutdown recovery control logic to instruct the communication chip to enter or remain enabled.

[0013] 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, so 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.

[0014] As a possible implementation method, the above-mentioned 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 above-mentioned 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 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 a broadcast signal, and then successfully help users quickly retrieve lost terminal devices through solutions such as "good people".

[0015] As a possible implementation method, 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 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".

[0016] As one possible implementation, 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 instructing the distance and angle measurement chip to enter or remain enabled based on the first signal. This can help a user more accurately determine the exact location of the first device, allowing the user to more quickly locate a lost first device.

[0017] As a possible implementation, the power management module further includes a fourth general-purpose input / output interface, the distance measurement and angle measurement chip includes a second enable pin, and the fourth general-purpose 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 remain enabled according to the first signal, including: the power management module controls the fourth general-purpose input / output interface according to the first signal to instruct the distance measurement and angle measurement chip to enter or remain enabled. Exemplarily, the fourth general-purpose input / output interface is a GPIO, and taking the distance measurement and angle measurement chip as an ultra-wideband radio (UWB) chip as an example, the second enable pin is 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 shut down, so that the distance measurement and angle measurement chip can operate normally, helping the user to more accurately know the exact location of the first device and helping the user to more quickly find the lost first device.

[0018] 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 cooperates to perform the distance measurement and angle measurement task for the first device based on the distance measurement and angle measurement indication and the first distance measurement and angle measurement parameters. Exemplarily, the first communication interface and the second communication interface are universal asynchronous receiver / transmitter (UART) interfaces. 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, 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.

[0019] As one possible implementation, the communication chip and the distance and angle measurement chip draw power from the battery in the power management module. This provides a more economical, simple, and easy-to-implement solution for maintaining power to the communication chip and the distance and angle measurement chip after the first device is powered off, helping users quickly recover lost devices.

[0020] 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 GPIO interface, the audio amplifier includes a sixth GPIO interface, and the fifth GPIO interface is connected to the sixth GPIO interface. The method further includes: when the second condition is met, the communication chip instructs the audio amplifier via the fifth GPIO interface to play a ringtone through the speaker; wherein the audio amplifier receives power from the battery of the power management module. Based on this, a user can more quickly find the lost first device.

[0021] 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.

[0022] As a possible implementation, the second condition mentioned above includes: receiving a preset instruction from a third device; and establishing a communication connection between the first device and the third device. Based on this, the first device can play a ringtone according to the instruction from the third device, helping the user to more quickly find the lost first device. 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 then, while ensuring the security of device information, instruct the first device to ring through the third device.

[0023] As a possible implementation, the second condition mentioned above also includes: the third device and the first device are logged into the same cloud server account. Based on this, while ensuring the security of device information, the third device can be used to instruct the first device to ring, helping the user find the lost first device more quickly.

[0024] As a possible implementation, the method further includes: in response to a first condition, the processor sending a first broadcast parameter to the communication chip; wherein the first condition includes: the first device receiving a shutdown operation, or the first device's battery level being less than a preset battery threshold, or satisfying a preset condition. Based on this, the communication chip can be guaranteed to send a broadcast signal according to the broadcast parameter preset in the processor after the first device is shut down, thereby ensuring successful retrieval of the first device.

[0025] In a second aspect, a method for obtaining device location information is provided, which is applied to an electronic device, such as a first device, wherein the first device includes 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 enable the communication chip; the communication chip in the enabled state obtains electrical energy from the battery and sends a broadcast signal according to the first broadcast parameter.

[0026] 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.

[0027] For example, the first condition is generally 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 level of the first device is less than a preset power threshold, or the first device meets a preset condition (such as meeting a scheduled shutdown condition, etc.).

[0028] Illustratively, 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.

[0029] 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 it is shut down based on low-cost hardware. The improvement process is simple and time-saving, so 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.

[0030] As a possible implementation, the first device further includes a ranging and angle measuring chip, the communication chip further includes a ninth general-purpose input / output interface, the ranging and angle measuring chip includes a third enable pin, and the ninth general-purpose input / output interface is connected to the third enable pin. The method further includes: after the first device is powered off, the communication chip controls the ranging and angle measuring chip to be in an enabled state via the ninth general-purpose input / output interface. Exemplarily, the ninth general-purpose input / output interface is such as a 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 powered off, so that the ranging and angle measuring chip can operate normally, helping the user to more accurately know the exact location of the first device and helping the user to more quickly find the lost first device.

[0031] As a possible implementation, the communication chip further includes a first communication interface, and the ranging and angle measuring chip further includes a second communication interface, the first communication interface being connected to the second communication interface. 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 via the first communication interface; and the ranging and angle measuring chip cooperates to perform ranging and angle measuring tasks for the first device based on the ranging and angle measuring indication and first ranging and angle measuring parameters. Exemplarily, the first communication interface is 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 shut down, allowing the ranging and angle measuring chip to operate normally, helping the user to more accurately determine the exact location of the first device and helping the user to more quickly find the lost first device.

[0032] As one possible implementation, the first device further includes a power conversion module, from which the communication chip and the ranging and angle measurement chip draw power from a battery. This provides a more economical, simple, and easily implemented solution for maintaining power to the communication chip and the ranging and angle measurement chip after the first device is shut down, helping users quickly recover lost devices.

[0033] 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, and the fifth general-purpose input / output interface is connected to the sixth general-purpose input / output interface. The method further includes: when the second condition is met, the communication chip instructs the audio amplifier via the fifth general-purpose input / output interface to play a ringtone through the speaker; wherein the audio amplifier obtains power from the battery from the power conversion module. Exemplarily, the fifth general-purpose input / output interface and the sixth general-purpose input / output interface are GPIOs. Based on this, it can help users find the lost first device more quickly.

[0034] 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.

[0035] As a possible implementation, the second condition mentioned above includes: 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, helping the user to more quickly find the lost first device. 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 then, while ensuring the security of device information, instruct the first device to ring through the third device.

[0036] As a possible implementation, the second condition mentioned above also includes: the third device and the first device are logged into the same cloud server account. Based on this, while ensuring the security of device information, the third device can be used to instruct the first device to ring, helping the user find the lost first device more quickly.

[0037] As a possible implementation, the method further includes: in response to a first condition, the processor sending a first broadcast parameter to the communication chip; wherein the first condition includes: the first device receiving a shutdown operation, or the first device's battery level being less than a preset battery threshold, or satisfying a preset condition. Based on this, the communication chip can be guaranteed to send a broadcast signal according to the broadcast parameter preset in the processor after the first device is shut down, thereby ensuring successful retrieval of the first device.

[0038] According to a third aspect, an electronic device is provided, such as a 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 based on the first signal; and the communication chip configured to enter or remain in an enabled state after the processor is powered off and the first device is shut down, obtain power from a battery, and transmit a broadcast signal based on a first broadcast parameter. The battery is configured to power various modules in the first device, such as the communication chip after the first device is shut down.

[0039] 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 turned off at an extremely low cost based on the existing hardware of the first device. The improvement process is simple and time-saving, so 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 find the lost first device.

[0040] As a possible implementation method, the above-mentioned 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 above-mentioned 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 and 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".

[0041] As one 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 configured to instruct the communication chip to enter or remain in an enabled state via the first general-purpose input / output interface based on a first signal. Based on this, by improving the power management module's software (such as pin control logic), the power management module can normally power and enable the communication chip after the first device is shut down, allowing the communication chip to operate normally, such as sending broadcast signals, and thus successfully helping users quickly retrieve lost terminal devices through solutions such as "Good Samaritans."

[0042] As one possible implementation, the first device further includes a distance and angle measurement chip. Before the processor is powered off, the power management module is further configured to instruct the distance and angle measurement chip to enter or remain enabled based on the first signal. This allows the user to more accurately determine the exact location of the first device, helping the user more quickly find a lost first device.

[0043] As one possible implementation, the power management module further includes a fourth general-purpose input / output interface, the distance and angle measurement chip includes a second enable pin, and the fourth general-purpose input / output interface is connected to the second enable pin. The power management module is specifically configured to control the fourth general-purpose input / output interface based on the first signal to instruct the distance and angle measurement chip to enter or remain in an enabled state. Based on this, by improving the power management module's software (e.g., pin control logic), the power management module can normally power and enable the distance and angle measurement chip after the first device is shut down, allowing the distance and angle measurement chip to function normally, helping the user more accurately determine the exact location of the first device and more quickly find the lost first device.

[0044] As a possible implementation, the communication chip further includes a first communication interface, and the distance and angle measurement chip further includes a second communication interface, the first communication interface being connected to the second communication interface. The communication chip is further configured to: send a distance and angle measurement indication to the distance and angle measurement chip via the first communication interface when a second condition is met; and the distance and angle measurement chip is configured to: perform distance and angle measurement tasks for the first device based on the distance and angle measurement indication and first distance 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 and angle measurement chip to operate normally according to preset conditions after the first device is powered off, helping users more accurately determine the exact location of the first device and more quickly find the lost first device.

[0045] As one possible implementation, the communication chip and the distance and angle measurement chip draw power from the battery in the power management module. This provides a more economical, simple, and easy-to-implement solution for maintaining power to the communication chip and the distance and angle measurement chip after the first device is powered off, helping users quickly recover lost devices.

[0046] As one possible implementation, the first device further includes an audio amplifier and a speaker, the audio amplifier being connected to the speaker, the communication chip including a fifth GPIO interface, the audio amplifier including a sixth GPIO interface, the fifth GPIO interface being connected to the sixth GPIO interface, and the communication chip being further configured to, when the second condition is met, instruct the audio amplifier via the fifth GPIO interface to play a ringtone through the speaker; wherein the audio amplifier receives power from the battery of the power management module. This can help users more quickly find the lost first device.

[0047] 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.

[0048] 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, 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 shut down, maintain the first enable pin at a high level through the eighth general-purpose input / output interface to enable the communication chip, obtain electrical energy from the battery, and send a broadcast signal according to the first broadcast parameter.

[0049] The solution provided in the fourth aspect above, by 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 it is shut down based on low-cost hardware. The improvement process is simple and time-saving, so 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.

[0050] As one possible implementation, the first device further includes a distance and angle measurement chip, the communication chip further includes a ninth general-purpose input / output interface, the distance and angle measurement chip includes a third enable pin, and the ninth general-purpose input / output interface is connected to the third enable pin. The communication chip is further configured to, after the first device is powered off, control the distance and angle measurement chip to be enabled via the ninth general-purpose input / output interface. Based on this, by improving the pin control logic of the communication chip and the distance and angle measurement chip, the communication chip can normally enable the distance and angle measurement chip after the first device is powered off, allowing the distance and angle measurement chip to function normally, helping the user more accurately determine the exact location of the first device and more quickly find the lost first device.

[0051] As a possible implementation, the communication chip further includes a first communication interface, and the ranging and angle measurement chip further includes a second communication interface, the first communication interface being connected to the second communication interface. The communication chip is further configured to: send a ranging and angle measurement indication to the ranging and angle measurement chip via the first communication interface when a second condition is met; and the ranging and angle measurement chip is further configured to: perform ranging and angle measurement tasks for the first device based on the ranging and angle measurement indication and first ranging and angle measurement parameters. Based on this, by improving the pin control logic of the communication chip and the ranging and angle measurement chip, the communication chip can normally enable the ranging and angle measurement chip after the first device is shut down, allowing the ranging and angle measurement chip to function normally, helping the user more accurately determine the exact location of the first device and more quickly find the lost first device.

[0052] As one possible implementation, the first device further includes a power conversion module for supplying power from the battery to the communication chip and the ranging and angle measurement chip. This provides a more economical, simple, and easily implemented solution for maintaining power to the communication chip and the ranging and angle measurement chip after the first device is shut down, helping users quickly recover lost devices.

[0053] As one possible implementation, the first device further includes an audio amplifier and a speaker, the audio amplifier being connected to the speaker, the communication chip including a fifth GPIO interface, the audio amplifier including a sixth GPIO interface, the fifth GPIO interface being connected to the sixth GPIO interface, and the communication chip being further configured to, when the second condition is met, instruct the audio amplifier via the fifth GPIO interface to play a ringtone through the speaker; wherein the audio amplifier receives power from the battery via the power conversion module. This can help users more quickly find the lost first device.

[0054] 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.

[0055] 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.

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

[0057] FIG1 is a schematic diagram of an implementation architecture of a terminal device in a shutdown state supplying power to a Bluetooth chip, provided by an embodiment of the present application;

[0058] FIG2 is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0059] FIG3 is a schematic diagram of a software structure of a terminal device provided in an embodiment of the present application;

[0060] FIG4 is a schematic diagram of a network architecture provided in an embodiment of the present application;

[0061] FIG5 is a schematic diagram of another network architecture provided in an embodiment of the present application;

[0062] FIG6 is a flow chart of a method for obtaining device location information provided in an embodiment of the present application;

[0063] FIG7 is a schematic diagram of a retrieval function interface provided in an embodiment of the present application;

[0064] FIG8 is a flow chart of another method for obtaining device location information provided in an embodiment of the present application;

[0065] FIG9 is a schematic diagram of two lost device location information display interfaces provided in an embodiment of the present application;

[0066] FIG10 is a schematic diagram of an enabling architecture of a first device according to an embodiment of the present application;

[0067] FIG11 is a first schematic diagram of an enabling process of a first device according to an embodiment of the present application;

[0068] FIG12 is a second schematic diagram of an enabling architecture of a first device provided in an embodiment of the present application;

[0069] FIG13 is a second schematic diagram of an enabling process of a first device provided in an embodiment of the present application;

[0070] FIG14 is a third schematic diagram of an enabling architecture of a first device provided in an embodiment of the present application;

[0071] FIG15 is a third schematic diagram of the enabling process of the first device provided in an embodiment of the present application;

[0072] FIG16 is a fourth schematic diagram of an enabling architecture of a first device provided in an embodiment of the present application;

[0073] FIG17 is a fourth schematic diagram of an enabling process of a first device provided in an embodiment of the present application;

[0074] FIG18 is a fifth schematic diagram of an enabling architecture of a first device provided in an embodiment of the present application;

[0075] FIG19 is a fifth schematic diagram of an enabling process of a first device according to an embodiment of the present application;

[0076] FIG20 is a sixth schematic diagram of an enabling architecture of a first device provided in an embodiment of the present application;

[0077] FIG21 is a sixth schematic diagram of the enabling process of the first device provided in an embodiment of the present application;

[0078] Figure 22 is a structural block diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0079] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying 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 merely a description of the association relationship of associated objects, indicating that three relationships can exist, 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.

[0080] Hereinafter, the terms "first," "second," and so on are used solely to distinguish different descriptive 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 preceding the "field" in "first field" and "second field" does not define the position or order of the "fields." "First" and "second" do not define whether the modified "fields" are in the same message, nor do they restrict the order of the "first field" and "second field." For another example, if the described object is a "level," the ordinal number preceding the "level" in "first level" and "second level" does not define the priority of the "levels." For another example, the number of described objects is not limited by the ordinal number and can be one or more. For example, in the case of "first device," the number of "devices" can be one or more. Furthermore, 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 "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 "second information" can be information of the same content or different contents. In short, the use of prefixes such as ordinal numbers to distinguish the described objects in the embodiments of the present application does not constitute a restriction 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 restrictions should be constituted due to the use of such prefixes.

[0081] 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 connection 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.

[0082] In order to maintain power supply to communication chips such as Bluetooth chips after the terminal device is turned off, so that the communication chip can send broadcast signals (such as Bluetooth broadcasts), and then locate the location of the terminal device through the "Good Samaritan" solution to help users find the terminal device smoothly, as a possible implementation method, the terminal device can power the communication chip of the terminal device after it is turned off based on the architecture shown in Figure 1.

[0083] Taking a Bluetooth chip as an example, as shown in Figure 1, the terminal device includes a processor and a Bluetooth chip. The processor includes an application central processing unit (ACPU), which includes the device retrieval application, the Bluetooth protocol stack, and Bluetooth always-on (e.g., Bluetooth low energy (BLE) always-on) control software. As shown in Figure 1, the processor also includes an always-on processor (AOP) and a power controller.

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

[0085] However, the device retrieval solution based on the technology shown in FIG1 requires adding an AOP to the processor. Adding an AOP to the processor not only increases the design and manufacturing costs of the processing chip, but also requires customization of the processor at an early stage, thereby extending the production cycle of the terminal device.

[0086] Based on the consideration of achieving low-cost retrieval of a device in a powered-off state, 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 quickly retrieve lost terminal devices based on the "good Samaritan" solution.

[0087] As an example, shutdown recovery control logic can 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.

[0088] As an example, a low-cost power conversion module can be added to the terminal device to ensure that the battery can still power the communication chip used to send broadcast signals, such as a Bluetooth chip or a UWB chip, 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.

[0089] The terminal devices described in the embodiments of the present application may include, but are not limited to, smartphones, netbooks, tablet computers, handwriting tablets, smart watches, smart bracelets, phone watches, smart cameras, PDAs, car computers, personal computers (PCs), personal digital assistants (PDAs), portable multimedia players (PMPs), augmented reality (AR) / virtual reality (VR) devices, smart televisions, projection devices, or somatosensory game consoles in human-computer interaction scenarios. Alternatively, the terminal devices may be electronic devices of other types or structures with communication functions, which are not limited in the present application.

[0090] As an example, please refer to Figure 2, which shows a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application.

[0091] As shown in FIG2 , 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. 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.

[0092] It should be understood that the structures illustrated in the embodiments of the present invention do not constitute specific limitations on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0093] 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 processing unit (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). The different processing units may be independent devices or integrated into one or more processors.

[0094] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.

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

[0096] 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.

[0097] The charging management module 240 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 can receive charging input from the wired charger via the USB interface 230. In some wireless charging embodiments, the charging management module 240 can receive wireless charging input via the terminal device's wireless charging coil. While charging the battery 242, the charging management module 240 can also provide power to the terminal device via the power management module 241-1.

[0098] 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 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 count, and battery health status (leakage, impedance). 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.

[0099] 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.

[0100] 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. For example, the power conversion module is an LDO, a DC-DC converter, etc. In some embodiments, the power conversion module 241-2 can be provided 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.

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

[0102] 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 antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.

[0103] 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.

[0104] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted 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 being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 270A, the receiver 270B, etc.) or displays an image or video through the 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 provided in the same device as the mobile communication module 250 or other functional modules.

[0105] 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), etc. 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, frequency 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, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0106] 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.

[0107] 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.

[0108] 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 global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

[0109] The terminal device implements display functionality through a GPU, display screen 294, and an application processor. The GPU is a microprocessor for image processing that 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 that execute program instructions to generate or modify display information.

[0110] 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.

[0111] 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 data storage.

[0112] Internal memory 221 can 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 can store the operating system, at least one application required for a function, etc. The data storage area can 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.

[0113] The terminal device can implement audio functions such as music playback and recording through the audio module 270, speaker 270A, receiver 270B, microphone 270C, and application processor. For the specific working principles and functions of the audio module 270, speaker 270A, receiver 270B, and microphone 270C, please refer to the description in conventional technology.

[0114] 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 signals. The audio module 270 can also be used to encode and decode audio signals. In some embodiments, the audio module 270 can be provided in the processor 210, or some functional modules of the audio module 270 can be provided in the processor 210.

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

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

[0117] It should be understood that the structure illustrated in FIG2 of the present application 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, or may combine or separate 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.

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

[0119] The application layer may include a series of applications, such as the device retrieval application shown in Figure 3. Applications in the application layer may include, but are not limited to, word processing systems (WPS), mailboxes, cameras, photo galleries, calendars, calls, maps, navigation, Bluetooth, music, videos, short messages, memos, screen mirroring, and other applications.

[0120] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. As shown in Figure 3, the framework layer provides window management services (WMS), activity management services (AMS), and package management services (PMS).

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

[0122] 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 storing 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 stored in the task stack (ActivityStack). Among them, ActivityStack is used to uniformly schedule application activities. ActivityStack can specifically store information about all running activities. ActivityStack can also store information about historically run activities.

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

[0124] Of course, the framework layer can also provide other management services, such as content provisioning services, phone management services, resource management services, notification management services, location management services, and a view system. Content provisioning services enable one application to access another application's data or share its own data with other applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and phone books. Phone management services provide methods for accessing terminal device communication status and information, as well as terminal device communication functions, such as managing call status (including connected and disconnected calls). Resource management services provide access to non-code resources, such as local strings, icons, images, graphics, video files, or layout files. Notification management services enable the display of customized notifications in the status bar. These notifications can convey informational messages and can remain for a short time before disappearing automatically, without requiring user interaction. Location management services provide services related to processing geographic location. The view system is used to build the application's display interface. The view system includes visual controls such as text box (TextBox) control, list (List) control, grid (Grid) control, button (Button) control, and embeddable web browser control.

[0125] The kernel layer is the layer between hardware and software. The kernel layer may include Bluetooth drivers, UWB drivers, sensor drivers, display drivers, speaker drivers, etc.

[0126] In embodiments of the present application, the Bluetooth driver can drive the Bluetooth chip to send Bluetooth broadcasts, such as BLE broadcasts and classic Bluetooth broadcasts, 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, as well as obtain UWB signals from other devices. The speaker driver can be used to drive the speaker to play audio.

[0127] It should be noted that Figure 3 is merely an example of a software structure diagram for a terminal device, which simply lists the layers and software modules relevant to the present application. In actual applications, the operating system of the terminal device may further include other layers, and each layer may further include other software modules for implementing one or more functions or services. This embodiment of the present application does not specifically limit this.

[0128] The following will describe in detail a method for obtaining device location information provided in an embodiment of the present application with reference to the accompanying drawings.

[0129] For example, please refer to Figure 4, which is a schematic diagram of a network architecture provided in an embodiment of the present application. As shown in Figure 4, a method for obtaining device location information provided in an embodiment of the present application can be implemented based on the communication system composed of a first device, a second device, a third device and a cloud server as shown in Figure 4. The first device shown in Figure 4 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 authority verification, key generation and synchronization of keys to devices, etc.

[0130] As an example, the cloud server shown in FIG4 may be a server of the device manufacturer or a third-party server authorized by the device manufacturer, and this embodiment of the present application does not specifically limit this.

[0131] Among them, the first device shown in Figure 4 can send a broadcast signal (such as Bluetooth broadcast) according to the preset broadcast parameters (such as the first broadcast parameters) after being turned off. After the second device within the preset range of the first device scans the broadcast signal sent by the first device, it can send the location information to the cloud server. Among them, 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.

[0132] It is understood that if the second device sends the second device's location information to the cloud server, since devices that can scan the first device's broadcast signal are generally 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 the first device. If the second device has the ability to calculate the first device's location based on the relevant information broadcast by the first device's Bluetooth, the second device can also directly send the calculated first device's location information to the cloud server. Based on this, the third device can accurately know the specific location of the first device.

[0133] In some embodiments, to ensure the security of device location information, the first device can transmit location information based on an asymmetric encryption algorithm. Taking the broadcast signal sent by the first device as an example, as shown in Figure 5, the first device can carry a first key (such as a public key P) when sending a Bluetooth broadcast. 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 use the public key to request the location information encrypted using the public key from the cloud server. After the cloud server sends the encrypted location information to the third device, the third device can use the second key corresponding to the first key (such as a private key S) to decrypt the information and successfully obtain the location information of the first device / second device.

[0134] 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. All devices logged into the cloud server account may use the key pair for subsequent information encryption and decryption; alternatively, 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 and synchronization methods of the key pair.

[0135] 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.

[0136] Illustratively, 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.

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

[0138] It should be noted that the above embodiment only uses the second device transmitting location information based on an asymmetric encryption algorithm as an example, but this 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. Correspondingly, when the third device receives the encrypted location information, it decrypts it using the negotiated key to obtain the location information.

[0139] In some embodiments, please refer to Figure 6. Figure 6 uses the architecture diagram shown in Figure 5 as an example, and takes the second device as an example of being able to calculate the location of the first device, to illustrate a flow chart of a method for obtaining device location information provided in an embodiment of the present application. As shown in Figure 6, a method for obtaining device location information provided in an embodiment of the present application can be implemented through S601-S606:

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

[0141] Among them, the first device has enabled the shutdown retrieval function.

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

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

[0144] The first key is used to subsequently encrypt the location information of the second device 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 this embodiment of the application.

[0145] 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 location of the first device based on the "good samaritan" solution, and help the user successfully find the first device after it is shut down.

[0146] As an example, the power management module of the first device may be configured with shutdown recovery control logic. After the first device completes the shutdown process, the power management module of the first device may continue to supply power to the communication chip so that the communication chip can transmit broadcast signals according to the first broadcast parameters. 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 enabled according to the shutdown recovery control logic so that the communication chip can use the power from the power management module to transmit broadcast signals according to the first broadcast parameters.

[0147] 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 a newly added hardware module, which is not limited in the embodiments of the present application.

[0148] 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 changes in software (such as pin control logic), which is very low-cost and the improvement process is simple and time-consuming. Compared with the solution of adding AOP as shown in Figure 1, it can not only realize the power supply of the communication chip of the terminal device after shutdown at an extremely 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, since the functions to be realized are relatively simple and the product structure is simple, the product is relatively mature and the cost is usually very low. Therefore, compared with the solution of adding AOP as shown in Figure 1, it can also realize the power supply of the communication chip of the terminal device after shutdown at an extremely low cost, and will not affect the production cycle of the terminal device.

[0149] 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 the power consumption of the first device.

[0150] 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.

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

[0152] In some embodiments, the communication chip of the first device transmitting a broadcast signal according to the first broadcast parameter may include: the communication chip of the first device transmitting 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 further change the broadcast content of the broadcast signal according to a specified broadcast content change cycle.

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

[0154] As an example, the second device can determine the position of the first device relative to the second device by mathematically calculating the strength of the broadcast signal scanned from the first device using an indoor positioning algorithm. The specific method and process for determining the position of the first device based on the broadcast signal scanned from the first device by the second device is not specifically limited in this embodiment of the application, and reference may be made to conventional techniques.

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

[0156] In some embodiments, the second device can encrypt the location information based on an asymmetric encryption algorithm. For example, the first key is the 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 receiver of the encrypted location information, such as a 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 the 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 receiver of the encrypted location information, such as a 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.

[0157] In some embodiments, the second device may encrypt the location information using a symmetric encryption algorithm. For example, the second device may encrypt the location information of the first device using a pre-negotiated first key. Correspondingly, the receiver of the encrypted location information, such as a third device, decrypts the received information using the first key to obtain the location information of the first device.

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

[0159] The cloud server can be used to provide device recovery services, including shutdown recovery services, such as collecting and distributing device location information, verifying device permissions, generating keys, and synchronizing keys to devices. For example, the cloud server can be a server of the device manufacturer or a third-party server authorized by the device manufacturer, and this embodiment of the application does not specifically limit this.

[0160] In some embodiments, in response to the user's first operation, the third device may request the cloud server to obtain the location information of the first device; correspondingly, the cloud server may, after verifying the third device's permissions, send the encrypted location information of the first device to 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 a first key. The cloud server will verify the third device's permissions based on the public key and then send the encrypted location information using the first key to the third device.

[0161] Among them, the first operation is used to trigger the retrieval of the first device. For example, the first operation may include but is not limited to the user selecting the operation of retrieving the first device or selecting the operation of viewing the location of the first device on the shutdown retrieval function interface of the third device, or a voice instruction, preset gesture operation, preset sliding operation, preset click operation, preset body movement, preset facial expression, etc. for instructing the retrieval of the first device, which is not specifically limited in the embodiment of the present application. For example, Figure 7 shows an example of an operation interface in which a user selects to retrieve the first device on the shutdown retrieval function interface of the third device. The first operation may be that the user clicks the view location option at the first device on the operation interface shown in Figure 7.

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

[0163] For example, if the first device encrypts the 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.

[0164] 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, and thus successfully obtain the location information of the first device.

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

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

[0167] S802: After the shutdown process of the first device is completed, the communication chip of the first device sends a broadcast signal according to the first broadcast parameter, where the broadcast signal carries the first key.

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

[0169] 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 this application and can refer to conventional technologies.

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

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

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

[0173] For a detailed introduction to S801-S806 shown in FIG8 , please refer to the above introduction to S601-S606 , which will not be repeated here.

[0174] It can be understood 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. For example, 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 (as shown in (a) in Figure 9); if the third device obtains the location information of the second device, the shutdown and retrieval function interface of the third device can display the location range of the first device on the map (as shown in (b) in Figure 9).

[0175] In some embodiments, to help the user more quickly find the lost first device, the first device can also support powering an audio amplifier (such as a smart PA) after being turned off, enabling it to play a ringtone at a preset high volume, making it easier for the user to find the first device. The ringtone can be a sound waveform pre-set in the first device, such as a default sound waveform or a user-specified sound waveform, which is not specifically limited in this embodiment of the present application.

[0176] In some examples, when a user turns on a ring button (such as the ring button shown in FIG9 (a) and FIG9 (b)) on the shutdown and retrieval function interface, the third device can send a signal 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, enabling it to play the ringtone at a preset high volume. For example, when a user approaches the first device based on the location information shown in FIG9 (a) or FIG9 (b), 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.

[0177] In some examples, the first device can automatically trigger power to the audio amplifier after the device is turned off, so that the audio amplifier can play the ringtone at a preset higher volume. For example, the first device can automatically trigger power to the audio amplifier after the device is turned off if the user has enabled the ringtone function after the device is turned off.

[0178] In some embodiments, in order to help users find the lost first device more quickly, the first device can also support powering 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.

[0179] In some examples, when the user turns on the UWB ranging and angle measurement button (as shown in (a) and (b) in Figure 9) on the power-off retrieval function interface, the third device can send a signal to the first device via Bluetooth to instruct it to perform UWB ranging and angle measurement. Correspondingly, after receiving the instruction, the first device supplies power to the UWB chip, enabling it to send and receive UWB signals. For example, when the user approaches the first device based on the location information shown in (a) or (b) in Figure 9, 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.

[0180] 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.

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

[0182] Among them, the first device can 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 specific embodiments.

[0183] 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.

[0184] Example 1:

[0185] 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.

[0186] The power management module of the first device includes a control logic unit or a control logic module for managing and executing the shutdown and 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 and recovery control logic to enable the communication chip to operate normally.

[0187] Taking the communication chip as a Bluetooth chip as an example, please refer to Figure 10, which shows a schematic diagram of an enabling architecture of a first device provided in an embodiment of the present application. As shown in Figure 10, the first device may include a battery, a processor, a power management module, and a Bluetooth chip.

[0188] The processor includes an ACPU, which 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). The SPMI is used to transmit and receive information with the power management module. For example, when the shutdown retrieval function is enabled, it sends a first signal (such as a shutdown retrieval indication) to the power management module so that the power management module can activate the shutdown retrieval control logic. The UART is used to transmit relevant data with the Bluetooth chip, such as sending broadcast parameters and rotation keys.

[0189] The power management module includes an SPMI and a PMU general purpose input / output (GPIO) interface 1 (hereinafter referred to as PMU GPIO 1). The 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 a power retrieval control logic (such as provided in a control logic unit or a control logic module) for controlling the Bluetooth enable pin (such as BT_EN) of the Bluetooth chip through the PMU GPIO 1 to enable it. When BT_EN is in the enabled state, the Bluetooth chip can use the power from the power management module to operate normally, such as sending Bluetooth broadcasts.

[0190] The Bluetooth chip includes a Bluetooth controller (such as a 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 based on 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 based on the power obtained from the power management module, such as sending Bluetooth broadcasts.

[0191] Taking the enabling architecture shown in FIG10 as an example, please refer to FIG11. FIG11 takes the first device as an example of a lost mobile phone, and shows a schematic diagram of the enabling process of a first device provided by an embodiment of the present application. As shown in FIG11, the enabling process of the mobile phone may include S1101-S1109:

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

[0193] 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.

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

[0195] Among them, the power-off retrieval function can be turned on manually by the user or by the default setting of the mobile phone, and this embodiment of the application does not make any specific limitation.

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

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

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

[0199] The first broadcast parameters may include but are not limited to broadcast type, broadcast interval, broadcast window, scan interval, scan window, broadcast content, broadcast content replacement period, etc. The rotation key includes a rotation strategy of the first key, such as a key rotation period, etc.

[0200] 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 powered off.

[0201] 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, and this embodiment of the application does not limit this. However, S1104 needs to be executed before S1105, or S1104 needs to be executed before the processor is powered off.

[0202] 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 maintain an enabled state.

[0203] 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 continuously sends broadcast signals for a period of time (such as a first preset duration) to reduce the power consumption of the first device.

[0204] S1106: The mobile phone is powered off.

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

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

[0207] 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 to it is also switched to a high level. Based on this, the Bluetooth chip enters the 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.

[0208] 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.

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

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

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

[0212] 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.

[0213] It can be understood that based on the device enabling process shown in Figure 11, by improving the software of the power management module (such as pin control logic), the communication chip of the terminal device after shutdown can be powered on and enabled at an extremely low cost based on the existing hardware of the first device. The improvement process is simple and time-saving. Compared with the solution of adding AOP shown in Figure 1, it 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 device.

[0214] In some embodiments, in order to help users find the lost first device more quickly, the first device can also support powering and enabling the ranging and angle measurement 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.

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

[0216] Among them, the processor includes an ACPU, which includes a device retrieval application, a Bluetooth protocol stack, and a UWB protocol stack. The processor also includes SPMI, UART 1, and UART 2. Among them, 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, 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.

[0217] The power management module includes the SPMI, PMU GPIO 1, and PMU GPIO 2. The power management module also includes machine retrieval control logic (e.g., in a control logic unit or control logic module) for controlling the Bluetooth chip's Bluetooth enable pin (e.g., BT_EN) to enable it via PMU GPIO 1, and for controlling the UWB chip's UWB enable pin (e.g., UWB_EN) to enable it via PMU GPIO 2. When BT_EN is enabled, the Bluetooth chip can use the power from the power management module to operate normally, such as sending Bluetooth broadcasts; when UWB_EN is enabled, the UWB chip can use the power from the power management module to operate normally, such as sending UWB signals.

[0218] The Bluetooth chip includes a Bluetooth controller (such as a BT / BLE controller), a Bluetooth enable pin (such as BT_EN), UART 1, and UART 2. BT_EN is used to enable or power down the Bluetooth chip by switching between high and low levels. UART 1 is used to transmit relevant data to the processor, such as receiving first broadcast parameters, rotation 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.

[0219] The UWB chip includes a UWB enable pin (e.g., UWB_EN), UART 1, and UART 2. UWB_EN is used to enable or disable 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 ranging and angle measurement parameters. UART 2 is used to initiate the UWB ranging and angle measurement process according to the Bluetooth chip's instructions.

[0220] Taking the enabling architecture shown in FIG12 as an example, please refer to FIG13. FIG13 takes the first device as an example of a lost mobile phone, and shows another schematic diagram of the enabling process of the first device provided by the embodiment of the present application. As shown in FIG13, the enabling process of the mobile phone may include S1301-S1314:

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

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

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

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

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

[0226] 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.

[0227] In some embodiments, after the Bluetooth chip receives the first broadcast parameters and rotation key from the processor, the Bluetooth chip may also disable UART 1 to prevent the Bluetooth chip from mistakenly believing that it needs to receive data from the processor after the phone is powered off. Similarly, after the UWB chip receives the first ranging and angle measurement parameters from the processor, the UWB chip may also disable UART 2 to prevent the UWB chip from mistakenly believing that it needs to receive data from the processor after the phone is powered off.

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

[0229] 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 instruct the Bluetooth chip and the UWB chip to enter or remain enabled.

[0230] S1306: The mobile phone is powered off.

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

[0232] 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.

[0233] 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 the lost mobile phone more quickly.

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

[0235] 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.

[0236] 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 connected thereto are also switched to a low level and thus powered off.

[0237] S1311: The Bluetooth chip verifies whether the first and third devices are logged in with the same account. If verification fails, S1312 is executed, followed by S1309-S1310. If verification passes, S1313-S1314 is executed, followed by S1309-S1310.

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

[0239] Based on this, the mobile phone can disconnect the Bluetooth connection with the third device when the third device is not logged into 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.

[0240] S1313: 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.

[0241] 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.

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

[0243] 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 this application are not specifically limited and conventional technologies can be referred to.

[0244] In some embodiments, the distance measurement and angle measurement may be mainly undertaken 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 undertaken 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 distance measurement and angle measurement related computing capabilities, the distance measurement and angle measurement may be mainly undertaken by the mobile phone. Regarding 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 and will not be elaborated here.

[0245] It can be understood that based on the device enabling process shown in Figure 13, by improving the software of the power management module (such as pin control logic), the communication chip and ranging and angle measurement chip of the terminal device after shutdown can be powered on and enabled at an extremely low cost based on the existing hardware of the first device. The improvement process is simple and time-saving. Compared with the solution of adding AOP shown in Figure 1, it is not only low-cost, but also simple and time-saving, so it will not affect the production cycle of the terminal device. In addition, through ranging and angle measurement, the lost first device can be located more accurately, helping users find the first device more quickly.

[0246] 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 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.

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

[0248] The processor includes an ACPU, which 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-mentioned modules of the processor, power management module, and Bluetooth chip, please refer to the introduction to Figure 10 in the above embodiment, which will not be repeated here.

[0249] As shown in FIG14 , the Bluetooth chip further includes a Bluetooth general input / 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.

[0250] The audio amplifier includes a general-purpose input / output interface (GPIO) such as PA GPIO 1, which is used to trigger or stop the ringing according to the instructions of the Bluetooth chip. The audio amplifier also includes a power amplifier for amplifying the sound waveform. As shown in FIG14 , the audio amplifier can amplify the preset sound waveform in the audio amplifier at a preset power and then play the ringtone at a high volume through an external speaker, making it easier for the user to find the first device.

[0251] Taking the enabling architecture shown in FIG14 as an example, please refer to FIG15. FIG15 takes the first device as an example of a lost mobile phone, and shows another schematic diagram of the enabling process of the first device provided by the embodiment of the present application. As shown in FIG15, the enabling process of the mobile phone may include S1501-S1515:

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

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

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

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

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

[0257] 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 powered off.

[0258] 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 this embodiment of the application. However, S1504 needs to be executed before S1505, or S1504 needs to be executed before the processor is powered off.

[0259] 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 maintain an enabled state.

[0260] S1506: The mobile phone is powered off.

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

[0262] 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.

[0263] Based on this, the mobile phone can trigger the ringtone to play 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 help the user find the lost first device more quickly.

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

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

[0266] S1511: The Bluetooth chip verifies whether the first and third devices are logged in with the same account. If the verification fails, S1512 is executed and then S1509-S1510 are executed; if the verification passes, S1513-S1515 are executed.

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

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

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

[0270] 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.

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

[0272] 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.

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

[0274] It can be understood that based on the device enabling process shown in Figure 15, by improving the software of the power management module (such as pin control logic), the communication chip and audio amplifier of the terminal device after shutdown can be powered on and enabled at an extremely low cost based on the existing hardware of the first device. The improvement process is simple and time-saving. Compared with the solution of adding AOP shown in Figure 1, it is not only low-cost, but also simple and time-saving, so it will not affect the production cycle of the terminal device. In addition, by powering and enabling the audio amplifier, the lost first device can be supported to play ringtones at a preset higher volume, helping users find the first device more quickly.

[0275] Example 2:

[0276] 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 parameter) to support the "good Samaritan" scheme to help users locate the location of the first device, and then help users find the first device smoothly.

[0277] The communication chip includes a GPIO interface that supports maintaining itself in an enabled state so that the communication chip can use the power from the power conversion module to operate normally, such as sending broadcast signals. 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.

[0278] Taking the communication chip as a Bluetooth chip as an example, please refer to Figure 16, which shows a schematic diagram of an enabling architecture of another first device provided in an embodiment of the present application. As shown in Figure 16, the first device may include a battery, a processor, a power conversion module, and a Bluetooth chip.

[0279] The processor includes an ACPU, which includes a device retrieval application and a Bluetooth protocol stack. The processor also includes a UART. A power conversion module such as an LDO is provided. 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 description of the above-mentioned modules of the processor, power management module, and Bluetooth chip, please refer to the description of Figures 10, 12, and 14 in the above embodiments, and will not be repeated here.

[0280] As shown in FIG16 , the processor further includes a processor general-purpose input / output interface, such as SOC GPIO 1, which is configured to instruct the Bluetooth chip to enter or remain enabled by maintaining a high level. The Bluetooth chip further includes a Bluetooth general-purpose input / output interface, such as BT GPIO 1, which is configured to maintain a high level to ensure that the Bluetooth chip remains enabled after the first device is powered off.

[0281] Taking the enabling architecture shown in FIG16 as an example, please refer to FIG17. FIG17 takes the first device as an example of a lost mobile phone, and shows another schematic diagram of the enabling process of the first device provided by the embodiment of the present application. As shown in FIG17, the enabling process of the mobile phone may include S1701-S1709:

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

[0283] 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.

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

[0285] Among them, the power-off retrieval function can be turned on manually by the user or by the default setting of the mobile phone, and this embodiment of the application does not make any specific limitation.

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

[0287] It can be understood that when the processor's SOC GPIO 1 is at a high level, the BT_EN of the connected Bluetooth chip is also switched to a high level, thereby enabling the Bluetooth chip. After the Bluetooth chip enters the enabled state, it can use the power from the power conversion module to operate normally, such as initiating the shutdown recovery process.

[0288] It should be noted that the enabling process shown in Figure 17 only takes the case where the Bluetooth chip is not in the enabled state initially, and the processor instructs the Bluetooth chip to enter the enabled state by controlling SOC GPIO 1 to be at a high level as an example. In some embodiments, for example, when the Bluetooth chip is already in the enabled state, S1703 shown in Figure 17 can also be omitted.

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

[0290] The first broadcast parameters may include but are not limited to broadcast type, broadcast interval, broadcast window, scan interval, scan window, broadcast content, broadcast content replacement period, etc. The rotation key includes a rotation strategy of the first key, such as a key rotation period, etc.

[0291] 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 powered off.

[0292] 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 this embodiment of the application. However, S1704 needs to be executed before S1705, or S1704 needs to be executed before the processor is powered off.

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

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

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

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

[0297] 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.

[0298] S1708: The Bluetooth chip determines whether the first preset time has elapsed. If so, the Bluetooth chip executes S1709. If not, the Bluetooth chip continues to execute S1707.

[0299] Illustratively, 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.

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

[0301] It can be understood that based on the device enabling process shown in Figure 17, by improving the connection relationship of the Bluetooth chip pins so that the Bluetooth chip can manage its own working status, the power supply to the communication chip of the terminal device after shutdown can be enabled at an extremely low cost based on the existing hardware of the first device (such as power conversion module, processor, battery, Bluetooth chip). The improvement process is simple and time-consuming. Compared with the solution of adding AOP shown in Figure 1, it is not only low in cost, but also simple and time-consuming, 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. Therefore, compared with the solution of adding AOP shown in Figure 1, it can also achieve power supply and enabling of the communication chip of the terminal device after shutdown at an extremely low cost, and it will also not affect the production cycle of the terminal device.

[0302] In some embodiments, in order to help users find the lost first device more quickly, the first device can also support powering and enabling the ranging and angle measurement 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.

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

[0304] 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, is provided. 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 description of each of the processor, power management module, and Bluetooth chip, please refer to the description of FIG. 16 in the above embodiment and will not be repeated here.

[0305] As shown in Figure 18, 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 and the rotation key; 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; SOC GPIO 2 is used to control the UWB enable pin (such as UWB_EN) of the UWB chip to enable the UWB chip.

[0306] The Bluetooth chip also includes UART 1, UART 2, and BT GPIO 2. UART 1 is used to transmit relevant data to the processor, such as receiving the first broadcast parameter and the rotation key. 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 to ensure that the UWB chip remains enabled after the first device is powered off.

[0307] 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 down 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 ranging and angle measurement parameters. UART 2 is used to initiate the UWB ranging and angle measurement process according to the instructions of the Bluetooth chip.

[0308] It should be noted that the way in which the processor shown in Figure 18 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. Taking the enabling architecture shown in Figure 18 as an example, please refer to Figure 19. Figure 19 takes the first device as an example of a lost mobile phone, and shows a schematic diagram of the enabling process of another first device provided in an embodiment of the present application. As shown in Figure 19, the enabling process of the mobile phone may include S1901-S1914:

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

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

[0311] 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.

[0312] It should be noted that the enabling process shown in Figure 19 only takes the case where the Bluetooth chip and the UWB chip are not in the enabled state initially, and the processor has respectively instructed the Bluetooth chip and the UWB chip to enter the enabled state by controlling SOC GPIO 1 and SOC GPIO 2 to be at a high level. In some embodiments, for example, when the Bluetooth chip is already in the enabled state, the process of the processor controlling SOC GPIO 1 to be at a high level shown in Figure 19 can be omitted. For example, when the UWB chip is already in the enabled state, the process of the processor controlling SOC GPIO 2 to be at a high level shown in Figure 19 can be omitted.

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

[0314] 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.

[0315] In some embodiments, after the Bluetooth chip receives the first broadcast parameters and rotation key from the processor, the Bluetooth chip may also disable UART 1 to prevent the Bluetooth chip from mistakenly believing that it needs to receive data from the processor after the phone is powered off. Similarly, after the UWB chip receives the first ranging and angle measurement parameters from the processor, the UWB chip may also disable UART 2 to prevent the UWB chip from mistakenly believing that it needs to receive data from the processor after the phone is powered off.

[0316] 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 this embodiment of the application. However, S1904 needs to be executed before S1905, or S1904 needs to be executed before the processor is powered off.

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

[0318] S1906: The phone is powered off.

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

[0320] 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.

[0321] 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 the user to know the exact location of the mobile phone more accurately and help the user find the lost first device more quickly.

[0322] S1909: The Bluetooth chip determines whether the first preset time has elapsed. If so, the Bluetooth chip executes S1910. If not, the Bluetooth chip continues to execute S1907.

[0323] 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.

[0324] 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 connected thereto are also switched to a low level and then powered off.

[0325] S1911: The Bluetooth chip verifies whether the first and third devices are logged in with the same account. If verification fails, S1912 is executed, followed by S1909-S1910. If verification passes, S1913-S1914 is executed, followed by S1909-S1910.

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

[0327] Based on this, the mobile phone can disconnect the Bluetooth connection with the third device when the third device is not logged into 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.

[0328] 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.

[0329] For example, upon receiving a UWB distance measurement and angle measurement instruction from a third device, the Bluetooth chip can control UART 2 to a high level to instruct the UWB chip to initiate the UWB distance measurement and angle measurement process. Based on this, UART 2 of the Bluetooth chip can function as a GPIO, triggering the UWB chip to initiate the UWB distance measurement and angle measurement process using specified distance measurement and angle measurement parameters (such as the first distance measurement and angle measurement parameters).

[0330] S1914: The UWB chip performs distance and angle measurement, allowing a third device to obtain the precise location of the phone.

[0331] 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 this application are not specifically limited and conventional technologies can be referred to.

[0332] In some embodiments, a third device may be primarily responsible for distance and angle measurement, and the mobile phone (i.e., the first device) may cooperate with the third device to complete tasks related to distance and angle measurement. In other embodiments, the mobile phone (i.e., the first device) may be primarily responsible for distance and angle measurement, and the third device may cooperate with the mobile phone to complete tasks related to distance and angle measurement. The embodiments of this application do not limit the primary responsible party for distance and angle measurement, and the specific circumstances may determine the primary responsible party.

[0333] In some embodiments, as shown in FIG19 , after completing S1914, the Bluetooth chip can directly execute S1909-S1910, thereby avoiding excessive battery consumption caused by 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.

[0334] It can be understood that based on the device enabling process shown in Figure 19, by improving the connection relationship between the Bluetooth chip and the UWB chip pins, the Bluetooth chip can manage its own and the working status of the UWB chip, and then based on the existing hardware of the first device (such as power conversion module, processor, battery, Bluetooth chip), the power supply and enable of the communication chip of the terminal device after shutdown are realized at a very low cost. The improvement process is simple and time-consuming. Compared with the solution of adding AOP shown in Figure 1, not only the cost is low, but also the improvement process is simple and time-consuming, 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. Therefore, compared with the solution of adding AOP shown in Figure 1, the power supply and enable of the communication chip of the terminal device after shutdown can also be realized at a very low cost, and the production cycle of the terminal device will not be affected. In addition, by measuring distance and angle, the lost first device can be located more accurately, helping users find the first device more quickly.

[0335] 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 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.

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

[0337] The processor includes an ACPU, which 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 is provided. The Bluetooth chip includes a Bluetooth controller (such as a BT / BLE controller), a Bluetooth enable pin (such as BT_EN), a UART, and BT GPIO 1. For a detailed description of the above-mentioned modules of the processor, power management module, and Bluetooth chip, please refer to the description of Figure 16 in the above embodiment and will not be repeated here.

[0338] As shown in FIG20 , the Bluetooth chip further includes a BT GPIO 2 for instructing the audio amplifier to ring by maintaining a high level, or instructing the audio amplifier to stop ringing by maintaining a low level.

[0339] The audio amplifier includes a general-purpose input / output interface (GPIO) such as PA GPIO 1, which is used to trigger or stop the ringing according to the instructions of the Bluetooth chip. The audio amplifier also includes a power amplifier for amplifying the sound waveform. As shown in FIG20 , the audio amplifier can amplify the preset sound waveform in the audio amplifier at a preset power and then play the ringtone at a high volume through an external speaker, making it easier for the user to find the first device.

[0340] Taking the enabling architecture shown in FIG20 as an example, please refer to FIG21. FIG21 takes the first device as an example of a lost mobile phone, and shows another schematic diagram of the enabling process of the first device provided by the embodiment of the present application. As shown in FIG21, the enabling process of the mobile phone may include S2101-S2114:

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

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

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

[0344] It should be noted that the enabling process shown in Figure 21 only takes 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 as an example. In some embodiments, for example, when the Bluetooth chip is already in the enabled state, S2103 shown in Figure 21 can also be omitted.

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

[0346] 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 powered off.

[0347] 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, and this embodiment of the application does not limit this. However, S2104 needs to be executed before S2105, or S2104 needs to be executed before the processor is powered off.

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

[0349] S2106: The mobile phone is powered off.

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

[0351] 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.

[0352] S2109: The Bluetooth chip determines whether the first preset time has elapsed. If so, the Bluetooth chip executes S2110. If not, the Bluetooth chip continues to execute S2107.

[0353] 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.

[0354] 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 thus powered off.

[0355] S2111: The Bluetooth chip verifies whether the first and third devices are logged in with the same account. If verification fails, the process continues with S2112 and then S2109-S2110. If verification passes, the process continues with S2113-S2114.

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

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

[0358] 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.

[0359] 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.

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

[0361] 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.

[0362] It can be understood that based on the device enabling process shown in FIG21, by improving the connection relationship between the Bluetooth chip and the audio amplifier pins so that the Bluetooth chip can manage its own and the working status of the audio amplifier, the communication chip of the terminal device after being turned off can be powered on and enabled at a very low cost based on the existing hardware of the first device (such as the power conversion module, processor, battery, Bluetooth chip). The improvement process is simple and time-consuming. Compared with the solution of adding an AOP as shown in FIG1, it is not only low in cost, but also simple and time-consuming. Therefore, it 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 its relatively simple functions and simple product structure, the product is relatively mature and the cost is usually very low. Therefore, compared with the solution of adding an AOP as shown in FIG1, it can also achieve power supply and enablement of the communication chip of the terminal device after being turned off at a very low cost, and also will not affect the production cycle of the terminal device. In addition, by powering and enabling the audio amplifier, the lost first device can be supported to play a ringtone at a preset high volume, helping the user to find the first device more quickly.

[0363] It should be noted that the enabling architectures described in Examples 1 and 2 above are merely examples. The present embodiments do not limit the specific hardware and software modules included in the first device, nor do they limit the connections between the modules. For example, the first device may also include other hardware modules such as a display screen. In another example, the battery of the first device may also power other modules, such as a processor.

[0364] 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.

[0365] 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, S1106 and S1107-S1109 shown in Figure 11 can be executed synchronously, or one can be executed before the other; and S1306 and S1307-S1314 shown in Figure 13 can be executed synchronously, or one can be executed before the other; and S1506 and S1507-S1515 shown in Figure 15 can be executed synchronously, or one can be executed before the other; and S1706 and S1707-S1709 shown in Figure 17 can be executed synchronously, or one can be executed before the other; and S1906 and S1907-S1914 shown in Figure 19 can be executed synchronously, or one can be executed before the other; and S2106 and S2107-S2114 shown in Figure 21 can be executed synchronously, or one can be executed before the other. As shown in Figure 11, S1108-S1109 may not be executed; or S1309-S1310 shown in Figure 13 may not be executed; or S1509-S1510 or S1514-S1515 shown in Figure 15 may not be executed; or S1708-S1709 shown in Figure 17 may not be executed; or S1909-S1910 shown in Figure 19 may not be executed; or S2109-S2110 or S2114 shown in Figure 21 may not be executed.

[0366] It should be understood that the various schemes of the embodiments of the present application can be reasonably combined and used, and the explanations or descriptions of the various terms appearing in the embodiments can be referenced or explained with each other in the various embodiments, without limitation to this.

[0367] 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.

[0368] 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. It should be easily appreciated by those skilled in the art 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.

[0369] The embodiments 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 corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules 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 embodiments of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0370] As an example, as shown in FIG22 , a terminal device (such as a first device, a second device, or a 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. 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, for the communication unit 2210 to send and receive broadcast signals; the processing unit 2230 is used to manage communication protocols, issue communication policies (such as first broadcast parameters, first ranging and angle measurement parameters, etc.); and 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.

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

[0372] 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 can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can 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 can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can 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)).

[0373] The steps of the method or algorithm described in conjunction with the embodiments of the present application can be implemented in hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, mobile hard disk, CD-ROM or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part 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.

[0374] 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

Patent Citations

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

    CN119450346A

  • Mobile communication device and method for reporting location thereof

    CN101626541A

  • Apparatus and method for enabling broadcast of a wireless signal when switching operation mode

    CN105917708A

  • Mobile terminal tracking method, server and mobile terminal

    CN106604232A

  • Positioning method and related device

    CN113810532A

Cited By

  • Method of controlling state of electric assist bicycle, control system, and electronic device

    US12337916B2

  • Method of controlling state of electric assist bicycle, control system, and electronic device

    US20240199157A1