A positioning method and device

By dynamically adjusting the accuracy and frequency of the positioning method according to the distance between the terminal device and the reference device, the problem of high-precision positioning causing excessive power consumption is solved, extending the use time of the equipment and improving tracking accuracy.

CN112840227BActive Publication Date: 2025-01-03HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201880098068.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-10-17
Filing Date
2018-11-23
Publication Date
2025-01-03
Estimated Expiration
2038-11-23

AI Technical Summary

Technical Problem

In scenarios such as pet retrieval, picking up people or tracking mobile targets, high-precision positioning will cause the terminal equipment to consume too quickly, which may cause the equipment to automatically shut down and the precise approach to the target cannot be achieved.

Method used

By dynamically adjusting the accuracy and frequency of the positioning method according to the distance between the terminal device and the reference device, low-precision positioning method is adopted for larger distances and high-precision positioning method is used to reduce power consumption and extend the use time of the equipment at a closer distance. .

Benefits of technology

It effectively reduces the power consumption of terminal equipment, reduces the possibility of shutting down due to power exhaustion, and ensures the reliability and accuracy of the equipment during the tracking process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112840227B_ABST
    Figure CN112840227B_ABST
Patent Text Reader

Abstract

A positioning method and device, relating to the field of terminals, are applied to the positioning process of the terminal, and can reduce the power consumption of the terminal during the positioning process. The positioning method is: a first device determines a first distance between the first device and a second device; when the first distance is greater than or equal to a first threshold, the first device sends a first indication message to the second device, and the first indication message is used to instruct the second device to adopt a first positioning method; when the first distance is less than a second threshold, the first device sends a second indication message to the second device, and the second indication message is used to instruct the second device to adopt a second positioning method; wherein the second threshold is less than or equal to the first threshold, and the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims the priority of the Chinese patent application filed with the China Patent Office on October 17, 2018, with application number 201811210028.2 and application name “A positioning method and device”, the entire contents of which are incorporated by reference in this application. Technical Field

[0002] The present application relates to the field of terminals, and in particular to a positioning method and device. Background Art

[0003] Smart bracelets, smart watches, pet trackers, luggage trackers, mobile phones and other mobile smart hardware (hereinafter referred to as terminals) generally have a location positioning function. Usually, in order to accurately locate the terminal, a high-precision positioning method can be used to locate the terminal multiple times.

[0004] However, for scenarios such as pet retrieval, picking up people, and tracking moving targets, it is necessary to accurately approach the target and try to avoid the terminal on the target object shutting down due to power consumption. In this case, frequent positioning of the terminal using high-precision positioning methods will increase the power consumption of the terminal, and the terminal may automatically shut down soon. Summary of the invention

[0005] The embodiments of the present application provide a positioning method and device, which can reduce the power consumption of a terminal during the positioning process.

[0006] In the first aspect, the embodiment of the present application provides a positioning method, including: a first device determines a first distance between the first device and the second device; when the first distance is greater than or equal to a first threshold, the first device sends a first indication message to the second device, and the first indication message is used to indicate that the second device adopts a first positioning method; when the first distance is less than a second threshold, the first device sends a second indication message to the second device, and the second indication message is used to indicate that the second device adopts a second positioning method; wherein the second threshold is less than or equal to the first threshold, and the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method. That is, when the first distance between the first device and the second device is large (greater than or equal to the first threshold), the second device can adopt a positioning method with lower accuracy (the first positioning method); when the first distance between the first device and the second device is small (less than the second threshold, and the second threshold is less than the first threshold), the second device can adopt a positioning method with higher accuracy (the second positioning method). In this way, it can be avoided that the second terminal device always adopts a high-precision positioning method, and the power consumption of the terminal can be reduced during the positioning process, and the possibility of the terminal shutting down can be reduced.

[0007] In a possible implementation, the positioning frequency of the first positioning method is the same as or different from the positioning frequency of the second positioning method. That is, the positioning frequency of the first positioning method may be greater than, less than, or equal to the positioning frequency of the second positioning method. In other words, when a positioning method with lower accuracy is adopted, a lower positioning frequency may be adopted, or a higher positioning frequency may be adopted; when a positioning method with higher accuracy is adopted, a lower positioning frequency may be adopted, or a higher positioning frequency may be adopted, and this application does not make any limitation.

[0008] In a possible implementation, the positioning frequency of the first positioning method is less than the positioning frequency of the second positioning method. When a positioning method with lower accuracy is used, a lower positioning frequency is used at the same time, which can further save the power consumption of the terminal and reduce the possibility of terminal shutdown. When a positioning method with higher accuracy is used, a higher positioning frequency is used at the same time, which can more accurately locate the position of the terminal.

[0009] In a possible implementation, the method further includes: the first device receives first positioning information obtained by the second device using a first positioning method, the first positioning information is used to indicate the first position of the second device; the first device displays the first position of the second device in a first display mode based on the first positioning information; or the first device receives second positioning information obtained by the second device using a second positioning method, the second positioning information is used to indicate the second position of the second device; the first device displays the second position of the second device in a second display mode based on the second positioning information; wherein the display accuracy of the first display mode is less than the display accuracy of the second display mode. The first display mode may be a lower-precision display mode. For example, a geometric figure (e.g., a circle) may be used to represent the first position of the second device, and the error range of the first position of the second device is within 100m. The second display mode may be a higher-precision display mode. For example, a point may be used to represent the first position of the second device, and the error range of the first position of the second device is within 5m.

[0010] In a possible implementation, after the first device displays the position of the second device in the first display mode, the method further includes: receiving a first operation of the user on the position of the second device, and displaying the position of the second device in the second display mode in response to the first operation. In this way, when the user is not satisfied with the display accuracy of the first display mode, the first operation can be performed, so that the first device displays the position of the second device in the second display mode, and the display accuracy of the second display mode is greater than that of the first display mode, thereby improving the user experience.

[0011] In a possible implementation, the method also includes: if the second threshold is less than the first threshold, when the first distance is less than the first threshold and greater than the second threshold, the first device sends third indication information to the second device, and the third indication information is used to instruct the second device to adopt a third positioning method; wherein the positioning accuracy of the third positioning method is the same as the positioning accuracy of the first positioning method, and the positioning frequency of the third positioning method is greater than the positioning frequency of the first positioning method; or, the positioning accuracy of the third positioning method is the same as the positioning accuracy of the second positioning method, and the positioning frequency of the third positioning method is less than the positioning frequency of the second positioning method.

[0012] In a possible implementation, the first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; the second positioning method includes at least one of satellite positioning, wireless fidelity (Wifi) positioning, Bluetooth positioning, and sensor inertial positioning.

[0013] In a second aspect, an embodiment of the present application provides a positioning method, including: if the second device receives the first indication information sent by the first device; the first indication information is used to instruct the second device to adopt a first positioning method; the second device adopts the first positioning method, and sends the first positioning information obtained by the first positioning method to the first device; wherein the first positioning information is used to indicate the first position of the second device; if the second device receives the second indication information sent by the first device; the second indication information is used to instruct the second device to adopt a second positioning method; the second device adopts the second positioning method, and sends the second positioning information obtained by the second positioning method to the first device; wherein the second positioning information is used to indicate the second position of the second device; wherein the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method.

[0014] In a possible implementation manner, the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.

[0015] In a possible implementation manner, the positioning frequency of the first positioning method is less than the positioning frequency of the second positioning method.

[0016] In a possible implementation, the first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; the second positioning method includes at least one of satellite positioning, Wireless Fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning.

[0017] In a third aspect, an embodiment of the present application provides a first device, comprising: a determination unit, used to determine a first distance between the first device and a second device; a sending unit, used to send first indication information to the second device when the first distance is greater than or equal to a first threshold, the first indication information being used to instruct the second device to adopt a first positioning method; the sending unit is also used to send second indication information to the second device when the first distance is less than a second threshold, the second indication information being used to instruct the second device to adopt a second positioning method; wherein the second threshold is less than or equal to the first threshold, and the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method.

[0018] In a possible implementation manner, the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.

[0019] In a possible implementation manner, the positioning frequency of the first positioning method is less than the positioning frequency of the second positioning method.

[0020] In a possible implementation, it also includes a receiving unit, which is used to: receive first positioning information obtained by the second device using a first positioning method, the first positioning information is used to indicate the first position of the second device; a display unit, which is used to display the first position of the second device in a first display method based on the first positioning information; or, a receiving unit, which is used to receive second positioning information obtained by the second device using a second positioning method, the second positioning information is used to indicate the second position of the second device; a display unit, which is used to display the second position of the second device in a second display method based on the second positioning information; wherein the display accuracy of the first display method is less than the display accuracy of the second display method.

[0021] In a possible implementation, the receiving unit is further used to: receive a first operation of a user on the position of the second device; and the display unit is further used to: display the position of the second device in a second display manner in response to the first operation.

[0022] In a possible implementation, the sending unit is also used to: if the second threshold is less than the first threshold, when the first distance is less than the first threshold and greater than the second threshold, send third indication information to the second device, and the third indication information is used to instruct the second device to adopt a third positioning method; wherein the positioning accuracy of the third positioning method is the same as the positioning accuracy of the first positioning method, and the positioning frequency of the third positioning method is greater than the positioning frequency of the first positioning method; or, the positioning accuracy of the third positioning method is the same as the positioning accuracy of the second positioning method, and the positioning frequency of the third positioning method is less than the positioning frequency of the second positioning method.

[0023] In a possible implementation, the first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; the second positioning method includes at least one of satellite positioning, wireless fidelity Wifi positioning, Bluetooth positioning, and sensor inertial positioning.

[0024] In a fourth aspect, an embodiment of the present application provides a second device, including: a positioning unit, which is used to receive first indication information sent by the first device through a receiving unit; the first indication information is used to instruct the second device to adopt a first positioning method; the first positioning method is adopted, and the first positioning information obtained by the first positioning method is sent to the first device through a sending unit; wherein the first positioning information is used to indicate the first position of the second device; the positioning unit is also used to receive second indication information sent by the first device through the receiving unit; the second indication information is used to instruct the second device to adopt a second positioning method; the second positioning method is adopted, and the second positioning information obtained by the second positioning method is sent to the first device through the sending unit; wherein the second positioning information is used to indicate the second position of the second device; wherein the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method.

[0025] In a possible implementation manner, the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.

[0026] In a possible implementation manner, the positioning frequency of the first positioning method is less than the positioning frequency of the second positioning method.

[0027] In a possible implementation, the first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; the second positioning method includes at least one of satellite positioning, Wireless Fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning.

[0028] In a fifth aspect, an embodiment of the present application provides a first device, comprising: a processor, used to determine a first distance between the first device and a second device; a transceiver, used to send first indication information to the second device when the first distance is greater than or equal to a first threshold, the first indication information being used to instruct the second device to adopt a first positioning method; the transceiver is also used to send second indication information to the second device when the first distance is less than a second threshold, the second indication information being used to instruct the second device to adopt a second positioning method; wherein the second threshold is less than or equal to the first threshold, and the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method.

[0029] In a possible implementation manner, the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.

[0030] In a possible implementation manner, the positioning frequency of the first positioning method is less than the positioning frequency of the second positioning method.

[0031] In a possible implementation, it also includes a transceiver, which is used to: receive first positioning information obtained by the second device using a first positioning method, the first positioning information is used to indicate the first position of the second device; a display unit, which is used to display the first position of the second device in a first display method based on the first positioning information; or, a transceiver, which is used to receive second positioning information obtained by the second device using a second positioning method, the second positioning information is used to indicate the second position of the second device; a display unit, which is used to display the second position of the second device in a second display method based on the second positioning information; wherein the display accuracy of the first display method is less than the display accuracy of the second display method.

[0032] In a possible implementation, the transceiver is further used to: receive a first operation of a user on the position of the second device; and the display unit is further used to: display the position of the second device in a second display manner in response to the first operation.

[0033] In one possible implementation, the transceiver is also used to: if the second threshold is less than the first threshold, when the first distance is less than the first threshold and greater than the second threshold, send third indication information to the second device, and the third indication information is used to instruct the second device to adopt a third positioning method; wherein the positioning accuracy of the third positioning method is the same as the positioning accuracy of the first positioning method, and the positioning frequency of the third positioning method is greater than the positioning frequency of the first positioning method; or, the positioning accuracy of the third positioning method is the same as the positioning accuracy of the second positioning method, and the positioning frequency of the third positioning method is less than the positioning frequency of the second positioning method.

[0034] In a possible implementation, the first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; the second positioning method includes at least one of satellite positioning, wireless fidelity Wifi positioning, Bluetooth positioning, and sensor inertial positioning.

[0035] In the sixth aspect, an embodiment of the present application provides a second device, including: a processor, for receiving first indication information sent by the first device through a transceiver; the first indication information is used to instruct the second device to adopt a first positioning method; adopt the first positioning method, and send the first positioning information obtained by the first positioning method to the first device through the transceiver; wherein the first positioning information is used to indicate the first position of the second device; the processor is also used to receive second indication information sent by the first device through the transceiver; the second indication information is used to instruct the second device to adopt a second positioning method; adopt the second positioning method, and send the second positioning information obtained by the second positioning method to the first device through the transceiver; wherein the second positioning information is used to indicate the second position of the second device; wherein the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method.

[0036] In a possible implementation manner, the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.

[0037] In a possible implementation manner, the positioning frequency of the first positioning method is less than the positioning frequency of the second positioning method.

[0038] In a possible implementation, the first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; the second positioning method includes at least one of satellite positioning, Wireless Fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning.

[0039] In the seventh aspect, an embodiment of the present invention provides a device, which exists in the product form of a chip. The structure of the device includes a processor and a memory. The memory is used to couple with the processor to store the necessary program instructions and data for the device. The processor is used to execute the program instructions stored in the memory, so that the device performs the functions of the first device or the second device in the above method.

[0040] In an eighth aspect, an embodiment of the present invention provides a first device or a second device, which can implement the functions performed by the first device or the second device in the above method embodiment, and the functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.

[0041] In one possible design, the structure of the first device or the second device includes a processor and a communication interface, and the processor is configured to support the first device or the second device to perform the corresponding functions in the above method. The communication interface is used to support communication between the first device or the second device and other network elements. The first device or the second device may also include a memory, which is used to couple with the processor and store necessary program instructions and data for the first device or the second device.

[0042] In a ninth aspect, an embodiment of the present invention provides a computer-readable storage medium, comprising instructions, which, when executed on a computer, enables the computer to execute any one of the methods provided in the first aspect or the second aspect.

[0043] In a tenth aspect, an embodiment of the present invention provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any one of the methods provided in the first aspect or the second aspect.

[0044] In the eleventh aspect, an embodiment of the present invention provides a positioning system, which includes the first device described in any possible implementation of the third aspect or the fifth aspect, and the second device described in any possible implementation of the fourth aspect or the sixth aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 A schematic diagram of a communication system architecture suitable for a positioning method provided in an embodiment of the present application;

[0046] Figure 2 A schematic diagram of the structure of a first device provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of a second device provided in an embodiment of the present application;

[0048] Figure 4 A signal interaction diagram of a positioning method provided in an embodiment of the present application;

[0049] Figure 5 A schematic diagram of a display interface provided in an embodiment of the present application;

[0050] Figure 6 A schematic diagram of another display interface provided in an embodiment of the present application;

[0051] Figure 7 A schematic diagram of another display interface provided in an embodiment of the present application;

[0052] Figure 8 A schematic diagram of another display interface provided in an embodiment of the present application;

[0053] Fig. 9 A set of display interface schematic diagrams provided for embodiments of the present application;

[0054] Fig.10 A schematic diagram of another display interface provided in an embodiment of the present application;

[0055] Fig.11 A schematic diagram of another display interface provided in an embodiment of the present application;

[0056] Fig.11a Another set of display interface schematic diagrams provided for embodiments of the present application;

[0057] Fig.11b Another set of display interface schematic diagrams provided for the embodiments of the present application;

[0058] Fig.11c A schematic diagram of another display interface provided in an embodiment of the present application;

[0059] Fig.12 A schematic diagram of another display interface provided in an embodiment of the present application;

[0060] Fig.13 Another set of display interface schematic diagrams provided for the embodiments of the present application;

[0061] Fig.14 A schematic diagram of the structure of another first device provided in an embodiment of the present application;

[0062] Fig.15 A schematic diagram of the structure of another second device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0063] The embodiment of the present application provides a positioning method, which is applied to a positioning system composed of a first device and a second device. For example, it is applied to a positioning system composed of a mobile phone and a (paired) wearable device (for example, a smart watch). The first device and the second device can communicate through new radio access technical (New RAT), long term evolution (LTE), Bluetooth (BT), Wifi or other protocols.

[0064] like Figure 1 As shown, it is a schematic diagram of a communication system architecture suitable for a positioning method provided in an embodiment of the present application, and the communication system includes a first device (e.g., a mobile phone 10a), a second device (e.g., a smart watch 10b) and a network device (e.g., a cloud server 11). The cloud server 11 may be a server corresponding to a positioning application (application, APP) installed on the mobile phone 10a and the smart watch 10b, or may be a server corresponding to a positioning program integrated in other APPs, which is not limited in the present application. The first device may adjust the positioning method (positioning accuracy and / or positioning frequency) of the second device through the cloud server 11, and receive the positioning information obtained by the second device according to the corresponding positioning method, and the positioning information is used to indicate the position of the second device.

[0065] The first device and the cloud server 11, and the second device and the cloud server 11 can communicate through a wireless communication method, or can communicate through a wired communication method. The wireless communication method can be, for example, communication through a wireless access network device (e.g., a base station). In an LTE network, the base station can be an evolved node base station (eNB). In a fifth-generation mobile communication technology (5-Generation, 5G) network, the base station can be a next-generation node base station (gNB), a new radio base station (new radioeNB), a macro base station, a micro base station, a high-frequency base station, or a transmission and reception point (TRP), etc. The wired communication method can be, for example, communication through overhead power lines and cable engineering (including overhead, underground, underwater cables and optical cables, etc.) as a form of communication conduction.

[0066] The first device provided in the embodiment of the present application may be a user equipment (UE), such as a mobile phone, a tablet computer, a desktop, a laptop, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), etc. The second device may be various wearable electronic devices or IoT devices or UE, such as a smart watch, a smart collar, smart glasses, smart gloves, smart clothing, smart shoes, or a vehicle-mounted terminal, etc.

[0067] like Figure 2As shown, the first terminal in the above communication system architecture can be specifically a mobile phone 100. The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a radio frequency module 150, a communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a SIM card interface 195, etc. The sensor module may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor, and the like.

[0068] The structure shown in the embodiment of the present invention does not limit the mobile phone 100. It may include more or fewer components than shown in the figure, or combine some components, or separate some 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.

[0069] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural network processor (NPU), etc. Different processing units may be independent devices or integrated in the same processor.

[0070] The controller can be the decision maker that directs the various components of the mobile phone 100 to work in coordination according to the instructions. It is the nerve center and command center of the mobile phone 100. The controller generates an operation control signal according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0071] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor is a cache memory. Instructions or data that have just been used or are used cyclically by the processor may be stored. If the processor needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor is reduced, and the efficiency of the system is improved.

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

[0073] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor may include multiple sets of I2C buses. The processor may be coupled to a touch sensor, a charger, a flash, a camera, etc. through different I2C bus interfaces. For example, the processor may be coupled to a touch sensor through an I2C interface, so that the processor and the touch sensor communicate through the I2C bus interface to realize the touch function of the mobile phone 100.

[0074] The I2S interface can be used for audio communication. In some embodiments, the processor can include multiple I2S buses. The processor can be coupled to the audio module via the I2S bus to achieve communication between the processor and the audio module. In some embodiments, the audio module can transmit audio signals to the communication module via the I2S interface to achieve the function of answering calls through a Bluetooth headset.

[0075] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module and the communication module can be coupled via a PCM bus interface. In some embodiments, the audio module can also transmit audio signals to the communication module via the PCM interface to realize the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication, and the sampling rates of the two interfaces are different.

[0076] The UART interface is a universal serial data bus for asynchronous communication. The bus is a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor and the communication module 160. For example, the processor communicates with the Bluetooth module through the UART interface to realize the Bluetooth function. In some embodiments, the audio module can transmit an audio signal to the communication module through the UART interface to realize the function of playing music through a Bluetooth headset.

[0077] The MIPI interface can be used to connect the processor to peripheral devices such as display screens and cameras. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor and the camera communicate via the CSI interface to realize the shooting function of the mobile phone 100. The processor and the display communicate via the DSI interface to realize the display function of the mobile phone 100.

[0078] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor to a camera, a display, a communication module, an audio module, a sensor, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0079] The USB interface 130 may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface may be used to connect a charger to charge the mobile phone 100, or may be used to transmit data between the mobile phone 100 and peripheral devices. The USB interface may also be used to connect headphones to play audio through the headphones. The USB interface may also be used to connect other electronic devices, such as AR devices, etc.

[0080] The interface connection relationship between the modules shown in the embodiment of the present invention is only for illustrative purposes and does not constitute a structural limitation on the mobile phone 100. The mobile phone 100 may adopt different interface connection modes in the embodiment of the present invention, or a combination of multiple interface connection modes.

[0081] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module can receive charging input from a wired charger through a USB interface. In some wireless charging embodiments, the charging management module can receive wireless charging input through a wireless charging coil of the mobile phone 100. While the charging management module is charging the battery, it can also power the terminal device through the power management module 141.

[0082] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module receives input from the battery and / or the charging management module to power the processor, internal memory, external memory, display screen, camera, and communication module. The power management module can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some embodiments, the power management module 141 can also be set in the processor 110. In some embodiments, the power management module 141 and the charging management module can also be set in the same device.

[0083] The wireless communication function of the mobile phone 100 can be realized through the antenna module 1, the antenna module 2, the radio frequency module 150, the communication module 160, the modem and the baseband processor.

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

[0085] The RF module 150 can provide a communication processing module for wireless communication solutions including 2G / 3G / 4G / 5G, etc., applied to the mobile phone 100. It can include at least one filter, a switch, a power amplifier, a low noise amplifier (LowNoise Amplifier, LNA), etc. The RF module receives electromagnetic waves from the antenna 1, and filters, amplifies, and processes the received electromagnetic waves, and transmits them to the modem for demodulation. The RF module can also amplify the signal modulated by the modem, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the RF module 150 can be set in the processor 150. In some embodiments, at least some of the functional modules of the RF module 150 can be set in the same device as at least some of the modules of the processor 110.

[0086] The modem may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or video through a display screen. In some embodiments, the modem may be an independent device. In some embodiments, the modem may be independent of the processor and be set in the same device as the RF module or other functional modules.

[0087] The communication module 160 can provide a communication processing module for wireless communication solutions including wireless local area networks (WLAN) (for example, wireless fidelity (WiFi)), Bluetooth, global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the mobile phone 100. The communication module 160 can be one or more devices integrating at least one communication processing module. The communication module receives electromagnetic waves via antenna 2, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor. The communication module 160 can also receive the signal to be sent from the processor, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through antenna 2.

[0088] In some embodiments, the antenna 1 of the mobile phone 100 is coupled to the radio frequency module, and the antenna 2 is coupled to the communication module. This allows the mobile phone 100 to communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global svstem 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), LTE, 5G new wireless communication (New Radio, NR), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS). Thus, the mobile phone 100 can obtain the positioning (location) information of the mobile phone.

[0089] The mobile phone 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0090] The display screen 194 is used to display images, videos, etc. The display screen includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the mobile phone 100 may include 1 or N display screens, where N is a positive integer greater than 1.

[0091] Still Figure 1 As shown, the mobile phone 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen and application processor.

[0092] The ISP is used to process the data fed back by the camera. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0093] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras, where N is a positive integer greater than 1.

[0094] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the mobile phone 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0095] Video codecs are used to compress or decompress digital videos. Mobile phone 100 may support one or more codecs. Thus, mobile phone 100 may play or record videos in multiple coding formats, such as MPEG1, MPEG2, MPEG3, MPEG4, etc.

[0096] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, the intelligent cognition of the mobile phone 100 can be realized, such as: image recognition, face recognition, voice recognition, text understanding, etc.

[0097] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor through the external memory interface to implement a data storage function, such as storing music, video and other files in the external memory card.

[0098] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. The memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the mobile phone 100 (such as audio data, a phone book, etc.), etc. In addition, the memory 121 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, other volatile solid-state storage devices, a universal flash storage (UFS), etc.

[0099] The mobile phone 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

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

[0101] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The mobile phone 100 can listen to music or listen to a hands-free call through the speaker.

[0102] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the mobile phone 100 receives a call or voice message, the voice can be received by placing the receiver close to the human ear.

[0103] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can put the sound signal into the microphone by putting the mouth close to the microphone. The mobile phone 100 can be provided with at least one microphone. In some embodiments, the mobile phone 100 can be provided with two microphones, which can not only collect sound signals but also realize noise reduction function. In some embodiments, the mobile phone 100 can also be provided with three, four or more microphones to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.

[0104] The earphone interface 170D is used to connect a wired earphone, and the earphone interface can be a USB interface, or a 3.5 mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0105] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor can be set on the display screen. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor, the capacitance between the electrodes changes. The mobile phone 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen, the mobile phone 100 detects the touch operation intensity according to the pressure sensor. The mobile phone 100 can also calculate the touch position according to the detection signal of the pressure sensor. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0106] The gyroscope sensor 180B can be used to determine the motion posture of the mobile phone 100. In some embodiments, the angular velocity of the mobile phone 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor. The gyroscope sensor can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor detects the angle of the shaking of the mobile phone 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the mobile phone 100 through reverse movement to achieve anti-shake. The gyroscope sensor can also be used for navigation and somatosensory game scenes.

[0107] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the mobile phone 100 calculates the altitude through the air pressure value measured by the air pressure sensor to assist positioning and navigation.

[0108] The magnetic sensor 180D includes a Hall sensor. The mobile phone 100 can use the magnetic sensor to detect the opening and closing of the flip leather case. In some embodiments, when the mobile phone 100 is a flip phone, the mobile phone 100 can detect the opening and closing of the flip cover according to the magnetic sensor. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover automatic unlocking and other features are set.

[0109] The acceleration sensor 180E can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). When the mobile phone 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the terminal posture and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0110] The distance sensor 180F is used to measure the distance. The mobile phone 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the mobile phone 100 can use the distance sensor to measure the distance to achieve fast focusing.

[0111] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. Infrared light is emitted outward through the light emitting diode. The photodiode is used to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the mobile phone 100. When insufficient reflected light is detected, it can be determined that there is no object near the mobile phone 100. The mobile phone 100 can use the proximity light sensor to detect that the user is holding the mobile phone 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor can also be used in the leather case mode and the pocket mode to automatically unlock and lock the screen.

[0112] The ambient light sensor 180L is used to sense the ambient light brightness. The mobile phone 100 can adaptively adjust the display brightness according to the perceived ambient light brightness. The ambient light sensor can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor can also cooperate with the proximity light sensor to detect whether the mobile phone 100 is in a pocket to prevent accidental touches.

[0113] The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0114] The temperature sensor 180J is used to detect temperature. In some embodiments, the mobile phone 100 uses the temperature detected by the temperature sensor to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor exceeds a threshold, the mobile phone 100 reduces the performance of the processor located near the temperature sensor to reduce power consumption and implement thermal protection.

[0115] The touch sensor 180K, also known as a "touch panel", can be disposed on a display screen and used to detect a touch operation applied thereto or near the touch sensor. The detected touch operation can be transmitted to an application processor to determine the type of touch event and provide a corresponding visual output through the display screen.

[0116] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor can obtain a vibration signal of a vibrating bone block of the human body. The bone conduction sensor can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor can also be set in an earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the human body obtained by the bone conduction sensor to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor to realize a heart rate detection function.

[0117] The key 190 includes a power key, a volume key, etc. The key may be a mechanical key or a touch key. The mobile phone 100 receives the key input and generates a key signal input related to the user settings and function control of the mobile phone 100.

[0118] Motor 191 can generate vibration prompts. The motor can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. Touch operations acting on different areas of the display screen can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0119] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0120] The SIM card interface 195 is used to connect a subscriber identity module (SIM). The SIM card can be connected to and separated from the mobile phone 100 by inserting it into the SIM card interface or pulling it out from the SIM card interface. The mobile phone 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface can support Nano SIM cards, MicroSIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface at the same time. The types of the multiple cards can be the same or different. The SIM card interface can also be compatible with different types of SIM cards. The SIM card interface can also be compatible with external memory cards. The mobile phone 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the mobile phone 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.

[0121] like Figure 3 As shown, the second terminal in the above communication system architecture may be, for example, a wearable device 200. The wearable device 200 may include a power supply 201, a processor 202, a storage module 203, a communication module 204, a radio frequency module 205, an antenna 01, an antenna 02, a microphone 206 (e.g., a bone conduction microphone), a speaker 207, a display screen 208 and other components.

[0122] In some embodiments, the antenna 01 of the wearable device 200 is coupled to the communication module, and the antenna 02 is coupled to the radio frequency module. This allows the wearable device 200 to communicate with the network and other devices through wireless communication technology. The wireless communication technology may include LTE, 5G NR, BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. Among them, GNSS may include GPS, Global Navigation Satellite System, Beidou Satellite Navigation System, Quasi-Zenith Satellite System and / or Satellite-Based Augmentation System. Thus, the wearable device 200 can obtain the positioning information of the wearable device.

[0123] It is understandable that the wearable device 200 may have Figure 3 More or fewer components may be shown, two or more components may be combined, or there may be a different configuration of components. Figure 3 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.

[0124] The network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0125] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. Among them, in the description of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a kind of association relationship describing the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the present application, unless otherwise specified, "at least one" means one or more, and "multiple" means two or more than two. In addition, in order to facilitate the clear description of the technical solution of the embodiment of the present application, in the embodiment of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different.

[0126] It should be noted that in the embodiments of the present invention, the terms “of”, “corresponding”, “relevant” and “corresponding” can sometimes be used interchangeably. It should be pointed out that when the distinction between them is not emphasized, the meanings they intend to express are consistent.

[0127] The message names between the devices or the names of the parameters in the messages in the following embodiments of the present application are merely examples, and other names may be used in specific implementations, which are not specifically limited in the embodiments of the present application.

[0128] For ease of understanding, the positioning method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0129] like Figure 4 As shown, the embodiment of the present application provides a positioning method, which is described by taking the first device as a mobile phone and the second device as a target device (i.e., a device to be located or tracked, such as a wearable device) as an example, including:

[0130] 401. A first device determines a first distance between the first device and a second device.

[0131] For example, when a user wants to locate or track a target device through a mobile phone, Figure 5As shown, the user can click on the icon 502 of the positioning APP of the mobile phone on the desktop 501 of the mobile phone. When the mobile phone detects that the user clicks on the icon 502 of the positioning APP on the desktop 501, the positioning APP can be started and the display as shown in FIG. Figure 6 The graphical user interface (GUI) shown in FIG. 6 is referred to as a positioning interface 601. The positioning interface 601 can display a map of the area (e.g., a district, city, or province, etc.) where the mobile phone is located. The positioning interface 601 can also include a control 602 for indicating a target device, a control 603 for enlarging the display level of the current location, and a control 604 for reducing the display level of the current location, etc.

[0132] Optionally, the user can locate or track the target device through the positioning applet in other APPs of the mobile phone (for example, WeChat APP), which is not limited in this application.

[0133] When the mobile phone detects that the user clicks on the control 602 of the target device, the mobile phone displays the following Figure 7 The GUI shown in the figure can be called the setting interface 605 of the target device. The user can select the wearable device (1A) as the target device by clicking the selection button 606 and setting the selection button 606 on the right. The mobile phone can also use the last selected target device as the default target device (for example, when the user exits the positioning APP and enters the setting interface 605 of the positioning target device next time, the selection button 606 is set on the right by default).

[0134] Optionally, the user can add a new target device in the target device setting interface 605. For example, a new target device can be added by Bluetooth pairing, mobile phone number search, or WeChat friend search, which is not limited in this application. It is understandable that the user can select multiple target devices to be located at the same time. If the mobile phone determines that the user selects multiple target devices to be located at the same time, the mobile phone can display the locations of multiple target devices at the same time. The following description takes the number of target devices as one.

[0135] When the mobile phone determines that the user has selected the target device, it can send a positioning request to the cloud server. The positioning request is used to request the current location of the target device. After the cloud service receives the positioning request from the mobile phone, it notifies the target device to locate and send (report) the location information to the cloud server. After the target device receives the notification sent by the cloud server, it turns on the positioning function and sends the location (information) obtained by positioning to the cloud server. The cloud server forwards the location information to the mobile phone. The mobile phone receives the location information of the target device. At the same time, the mobile phone can turn on the positioning function to obtain its own location information. The mobile phone determines the first distance between the mobile phone and the target device based on the location information of the target device and its own location information.

[0136] When the first device determines that the first distance is greater than or equal to the first threshold, steps 402-406 are performed; when the first device determines that the first distance is less than the second threshold, steps 407 and 411 are performed. The second threshold is less than or equal to the first threshold.

[0137] 402. When the first distance is greater than or equal to a first threshold, the first device sends first indication information to the second device, where the first indication information is used to instruct the second device to adopt a first positioning method.

[0138] Among them, the positioning accuracy of the first positioning method is relatively low. For example, the first positioning method can be a positioning method based on base station positioning or a positioning method based on IP address positioning. The positioning frequency of the first positioning method can be set to be relatively low (for example, 60s / time) to save power consumption. The positioning frequency of the first positioning method can be a system default or can be set by the user.

[0139] For example, Figure 7 As shown, the user can click control 607 in the setting interface 605 of the target device, such as Figure 8 As shown, after the mobile phone detects that the user clicks the control 607, the mobile phone can display the target device positioning mode setting interface 801. Among them, the control 802 indicates that the first distance is greater than the first threshold (for example, the first threshold is 1km), and the control 803 indicates that when the first distance is greater than the first threshold, the first positioning mode (for example, base station positioning) is adopted. The control 804 indicates the positioning accuracy of the first positioning mode (for example, it can be 100m), and the control 805 indicates the positioning frequency of the first positioning mode (for example, it can be 60s / time).

[0140] like Fig. 9 As shown in (a) of FIG. 8 , after the user clicks the control 802, the mobile phone can display a (drop-down) list control 806, and the user can reset (select) the first threshold. Fig. 9 As shown in (b) of FIG. 8 , after the user clicks the control 804, the mobile phone can display (pull-down) a list control 807, and the user can reset (select) the positioning accuracy of the first positioning method. Fig. 9 As shown in (c) in FIG. 8 , after the user clicks the control 805 , the mobile phone may display (pull-down) a list control 808 , and the user may reset (select) the positioning frequency of the first positioning method.

[0141] 403. The second device receives the first indication information sent by the first device.

[0142] The second device may receive the first indication information through the cloud server, that is, the second device may receive the first indication information forwarded by the cloud server.

[0143] 404. The second device adopts the first positioning method and sends first positioning information obtained by adopting the first positioning method to the first device.

[0144] The first positioning information is used to indicate the first position of the second device.

[0145] 405. The first device receives first positioning information obtained by the second device using the first positioning method.

[0146] The first device may receive the first positioning information through the cloud server, that is, the first device may receive the first positioning information forwarded by the cloud server.

[0147] 406. The first device displays the first position of the second device in a first display manner based on the first positioning information.

[0148] Among them, the first display mode can be a low-precision display mode, that is, the error range of the position of the second device displayed by the first display mode is relatively large. For example, a geometric figure can be used to represent the first position of the second device, and the error range of the first position of the second device is within 100m (meters). Of course, the error range of the first position of the second device can also be 50m, 200m or 300m, etc., which is not limited in this application. Among them, the geometric figure can be a circle, an ellipse, a polygon, a sector or an arc, etc.

[0149] For example, if Fig.10 As shown, the mobile phone can display the icon 701 of the target device, the location of the target device (the location of the target device can be represented by a circle 702) and the current positioning mode 703 of the target device in the positioning interface 601. Among them, the current positioning mode of the target device can be the first positioning mode (for example, base station positioning); the positioning accuracy can be 100m (within), that is, the error range of the location represented by the circle 702 is within 100m; the positioning frequency can be 60 seconds (s) / time. The mobile phone can also display the icon 704 of the mobile phone user and the location of the mobile phone. The location of the mobile phone can be displayed as a precise point or a circle ( Fig.10 Of course, the mobile phone may not display the icon 704 of the mobile phone user, and this application does not limit this.

[0150] In a possible design, after the first device displays the first position of the second device in a first display mode based on the first positioning information, the first device receives a first operation of the user on the position of the second device. In response to the first operation, the first device displays the position of the second device in a second display mode, and the display accuracy of the second display mode is greater than the display accuracy of the first display mode.

[0151] For example, Fig.11As shown, the user can click on the icon 701 or circle 702 of the target device, and the mobile phone can display a function list control 706. The function list control 706 may include a precise positioning control 707. The user can click on the precise positioning control 707, and after the mobile phone detects that the user clicks on the precise positioning control 707, the mobile phone can notify the target device to use the second positioning method, and the mobile phone receives the positioning information obtained by the target device in the second positioning method, and then the mobile phone displays the location of the target device in the second display method. Fig.11a As shown in (a) in FIG. 1 , a smaller geometric figure (e.g., a smaller circle 7021) may be used to represent the position of the target device, and the error range of the position represented by the circle 7021 is within 50 m; or Fig.11a As shown in (b) of FIG. 7 , a point 7022 can be used to represent the position of the target device, and the error range of the position represented by the point 7022 can be within 5 meters. The positioning frequency of the second positioning method can remain unchanged.

[0152] Optional, such as Fig.11 As shown, the function list control 706 may also include a distance control 708, a movement speed control 709, a movement direction control 710, a history track control 711, and a route control 712. When the user clicks the distance control 708, as shown in FIG. Fig.11b As shown in (a) of FIG. 7 , the mobile phone can display the real-time distance 713 between the mobile phone and the target device. When the user clicks the motion speed control 709, as shown in FIG. Fig.11b As shown in (b) of FIG. 7 , the mobile phone can display the real-time motion speed 714 of the target device. When the user clicks the motion direction control 710, as shown in FIG. Fig.11b As shown in (c) of FIG. 1 , the mobile phone can display the real-time movement direction 715 of the target device (for example, the real-time movement direction can be indicated by an arrow or a triangle, which is not limited in this application). When the user clicks the history track control 711, as shown in FIG. Fig.11b As shown in (d) in FIG. 1 , the mobile phone can display the historical trajectory 716 of the target device (wherein the circle 717 can represent the location of the target device obtained by the mobile phone for the first time). When the user clicks the route control 712, the mobile phone can display preferred travel plans of different travel modes from "my location" (the location of the mobile phone) to "the location of the target device" (for example, a bus travel plan (such as Fig.11c as shown), cycling (shared bicycle) travel plan, taxi travel plan, self-driving travel plan or walking travel plan, etc.).

[0153] Optionally, each time the mobile phone receives the positioning information sent by the target device according to the positioning frequency of the first positioning method, it can vibrate, emit a prompt sound, flash a breathing light, or actively light up the screen to remind the user that the location of the target device has been updated. At the same time, the mobile phone updates the location of the target device in the positioning interface 601.

[0154] 407. When the first distance is less than the second threshold, the first device sends second indication information to the second device, where the second indication information is used to instruct the second device to adopt a second positioning method.

[0155] The second positioning method has a higher positioning accuracy. For example, the second positioning method can be satellite positioning, Wifi positioning, Bluetooth positioning, sensor inertial positioning, and other positioning methods. The positioning frequency of the second positioning method can be set higher (for example, 10s / time) to accurately locate the target device. The positioning frequency of the second positioning method can be a system default or set by the user. The process of the user setting the second positioning method can refer to step 402, which will not be repeated here.

[0156] It should be noted that the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method. The positioning frequency of the first positioning method is the same as or different from the positioning frequency of the second positioning method. Optionally, the positioning frequency of the first positioning method may be less than the positioning frequency of the second positioning method.

[0157] In a possible design, if the second threshold is less than the first threshold, when the first distance is less than the first threshold and greater than the second threshold, the first device sends a third indication message to the second device, and the third indication message is used to instruct the second device to adopt a third positioning method. The positioning accuracy of the third positioning method is the same as that of the first positioning method, and the positioning frequency of the third positioning method is greater than that of the first positioning method; or, the positioning accuracy of the third positioning method is the same as that of the second positioning method, and the positioning frequency of the third positioning method is less than that of the second positioning method.

[0158] 408. The second device receives the second indication information sent by the first device.

[0159] The second device may receive the second indication information through the cloud server, that is, the second device may receive the second indication information forwarded by the cloud server.

[0160] 409. The second device adopts a second positioning method and sends second positioning information obtained by adopting the second positioning method to the first device.

[0161] The second positioning information is used to indicate the second position of the second device.

[0162] 410. The first device receives second positioning information obtained by the second device using a second positioning method.

[0163] The first device may receive the second positioning information through the cloud server, that is, the first device may receive the second positioning information forwarded by the cloud server.

[0164] 411. The first device displays the second position of the second device in a second display manner based on the second positioning information.

[0165] It should be noted that the display accuracy of the second display mode is greater than that of the first display mode, that is, the error range of the position of the second device displayed by the second display mode is smaller than the error range of the position of the second device displayed by the first display mode. For example, a smaller geometric figure (compared with the geometric figure corresponding to the first display mode) can be used to represent the first position of the second device, or a point can be used to represent the first position of the second device, and the error range of the first position of the second device is within 5m (or 1m, 2m, 3m, etc.).

[0166] like Fig.12 As shown, the mobile phone can display the icon 701 of the target device, the location of the target device (the location of the target device can be represented by a dot 705) and the current positioning mode 703 of the target device in the positioning interface 601. Among them, the current positioning mode of the target device can be the second positioning mode (for example, GPS positioning mode), and its positioning accuracy can be 5m, that is, the error range of the location represented by the dot 104 is within 5m, and the positioning frequency can be 10s / time. The mobile phone can also display the icon 704 of the mobile phone user and the location of the mobile phone. The location of the mobile phone can be displayed as a precise dot or a circle ( Fig.12 Of course, the mobile phone may not display the icon 704 of the mobile phone user, and this application does not limit this.

[0167] Based on the above technical solution, when the first distance between the first device and the second device is greater than or equal to the first threshold, the first device sends a first indication message to the second device to instruct the second device to adopt the first positioning method; when the first distance is less than the second threshold (the second threshold is less than or equal to the first threshold), the first device sends a second indication message to the second device to instruct the second device to adopt the second positioning method; wherein the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method. In this way, the second terminal device can be prevented from always adopting a high-precision positioning method, and the power consumption of the terminal can be reduced during the positioning process, thereby reducing the possibility of the terminal shutting down.

[0168] The positioning method provided by the embodiment of the present application is introduced below in combination with the application scenarios and beneficial effects of the embodiment of the present application.

[0169] Scenario 1: An owner tracks a pet wearing a device with a positioning function (eg, a pet positioning collar with a positioning function).

[0170] When playing outdoors, if a pet dog wearing a pet collar with a positioning function gets lost, the owner can locate the pet dog on the positioning APP on the mobile phone. The processing logic is as follows:

[0171] Assume that the second threshold is less than the first threshold, the first threshold is 1 km, and the second threshold is 500 meters. When the mobile phone positioning APP determines that the distance between the dog and the owner is greater than or equal to 1 km, Fig.13 As shown in (a) of FIG. 1 , the mobile phone (owner, represented by icon 704) can remotely instruct the positioning collar (pet dog, represented by icon 701) to adopt the first positioning method (for example, base station positioning method, positioning accuracy is 100m), and report the location information every 60s. When the positioning APP of the mobile phone determines that the distance between the dog and the owner is less than 1 km and greater than 500 meters, Fig.13 As shown in (b) in the figure, the mobile phone can remotely instruct the positioning collar to use the third positioning method. The positioning accuracy of the third positioning method is the same as that of the first positioning method (for example, the base station positioning method has a positioning accuracy of 100m), and the positioning frequency of the third positioning method is greater than the positioning frequency of the first positioning method (for example, reporting location information every 30s). Alternatively, when the positioning APP of the mobile phone determines that the distance between the dog and the owner is less than 1 km and greater than 500 meters, as Fig.13 As shown in (c) in the figure, the mobile phone can remotely instruct the positioning collar to use the third positioning method. The positioning accuracy of the third positioning method is the same as that of the second positioning method (for example, the GPS positioning method has a positioning accuracy of 5m), and the positioning frequency of the third positioning method is lower than that of the first positioning method (for example, reporting location information every 40s). When the positioning APP of the mobile phone determines that the distance between the dog and the owner is less than 500 meters, Fig.13 As shown in (d), the mobile phone can remotely instruct the positioning collar to adopt a second positioning method (for example, GPS positioning method with a positioning accuracy of 5m) and report the location information every 10s.

[0172] In this way, the working time of the positioning collar can be avoided by excessive pursuit of positioning accuracy and positioning frequency, which can help the owner find the pet as soon as possible and avoid the positioning collar being turned off, making the owner unable to find the pet.

[0173] Scenario 2: User 1 and User 2 share their location via WeChat.

[0174] Assume that user 1 and user 2 are WeChat friends, and both are online. User 1 initiates location sharing to the smartwatch worn by user 2 through WeChat on the mobile phone, and user 2 agrees to location sharing on the smartwatch. If the first threshold is 1 km, and the second threshold is equal to the first threshold, when the mobile phone determines that the distance between user 1 and user 2 is greater than or equal to 1 km, Fig.10As shown, the mobile phone (user 1, represented by icon 704) can remotely instruct the smart watch (user 2, represented by icon 701) to adopt the first positioning method (for example, base station positioning method, positioning accuracy is 100m) and report the location information every 60s. When the mobile phone determines that the distance between user 1 and user 2 is less than 1 km, Fig.12 As shown, the mobile phone can remotely instruct the smart watch to use the second positioning method (for example, GPS positioning method, positioning accuracy is 5m), and report the location information every 10 seconds. In addition, the mobile phone can send the location information of the mobile phone to the smart watch (for example, the mobile phone can send the location information to the smart watch every 60 seconds, every 20 seconds, or every 10 seconds) so that both parties can share the location. In addition, the positioning method of the mobile phone can be the same as or different from the positioning method of the smart watch (for example, when the smart watch adopts the first positioning method, the mobile phone can adopt the first positioning method or the second positioning method for positioning).

[0175] In this way, compared with using high-precision positioning methods to locate the target terminal multiple times, which increases the power consumption of the target terminal, adjusting the positioning accuracy and positioning frequency according to the distance can save the positioning power consumption of mobile phones and smart watches while getting as close to the target device as possible, and try to avoid automatic shutdown of mobile phones and smart watches (for example, in the scenario of looking for (lost) elderly people or children wearing devices with positioning functions (for example, wearable devices), it is particularly important to get as close to the target as possible and ensure that the target device does not shut down automatically).

[0176] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the first device and the second device. It is understandable that, in order to realize the above functions, the first device and the second device include hardware structures and / or software modules corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the algorithm steps 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 the present application.

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

[0178] In the case of dividing each functional module into corresponding functional modules, Fig.14 A possible structural diagram of the first device 14 involved in the above embodiment is shown. Figure 1 , the first device includes: a determination unit 1401, a sending unit 1402, a receiving unit 1403 and a display unit 1404. In the embodiment of the present application, the determination unit 1401 is used to determine the first distance between the first device and the second device; the sending unit 1402 is used to send a first indication message to the second device when the first distance is greater than or equal to a first threshold, and the first indication message is used to indicate that the second device adopts a first positioning method; it is also used to send a second indication message to the second device when the first distance is less than a second threshold, and the second indication message is used to indicate that the second device adopts a second positioning method; wherein the second threshold is less than or equal to the first threshold, and the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method. The receiving unit 1403 is used to: receive the first positioning information obtained by the second device using the first positioning method, and the first positioning information is used to indicate the first position of the second device; the display unit 1404 is used to display the first position of the second device in a first display method based on the first positioning information. Alternatively, the receiving unit 1403 is used to receive second positioning information obtained by the second device using a second positioning method, and the second positioning information is used to indicate a second position of the second device; the display unit 1404 is used to display the second position of the second device in a second display method based on the second positioning information; wherein the display accuracy of the first display method is less than the display accuracy of the second display method.

[0179] The determining unit 1401 is used to support the first device to execute Figure 4 The sending unit 1402 is used to support the first device to execute Figure 4 The receiving unit 1403 is used to support the first device to execute Figure 4 Process 405 or 410 in the display unit 1404 is used to support the first device to execute Figure 4 Process 406 or 411 in.

[0180] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0181] The first device provided in this embodiment is used to execute the above positioning method, and thus can achieve the same effect as the above implementation method.

[0182] In the case of using an integrated unit, the first device may include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the first device, for example, it may be used to support the first device to execute the steps executed by the above-mentioned determination unit 1401 and display unit 1404. The communication module may be used to support the steps executed by the above-mentioned sending unit 1402 and receiving unit 1403. The storage module may be used to support the first device to store program codes and data, etc.

[0183] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other first devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0184] In one embodiment, when the processing module is a processor and the storage module is a memory, the first device involved in this embodiment may be a device having Figure 2 Device of the structure shown.

[0185] In the case of dividing each functional module into corresponding functional modules, Fig.15 A possible structural diagram of the second device 15 involved in the above embodiment is shown. Figure 1 , the second device includes: a positioning unit 1501, a receiving unit 1502 and a sending unit 1503. In the embodiment of the present application, the positioning unit 1501 is used to receive the first indication information sent by the first device through the receiving unit 1502; the first indication information is used to instruct the second device to adopt the first positioning method; adopt the first positioning method, and send the first positioning information obtained by adopting the first positioning method to the first device through the sending unit 1503; wherein the first positioning information is used to indicate the first position of the second device; the positioning unit 1501 is also used to receive the second indication information sent by the first device through the receiving unit 1502; the second indication information is used to instruct the second device to adopt the second positioning method; adopt the second positioning method, and send the second positioning information obtained by adopting the second positioning method to the first device through the sending unit 1503; wherein the second positioning information is used to indicate the second position of the second device; wherein the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method.

[0186] The positioning unit 1501 and the sending unit 1503 are used to support the second device to execute Figure 4 The receiving unit 1502 is used to support the second device to execute Figure 4 403 or 408 in the process.

[0187] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0188] The second device provided in this embodiment is used to execute the above positioning method, and thus can achieve the same effect as the above implementation method.

[0189] In the case of using an integrated unit, the second device may include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the second device, for example, it may be used to support the second device to execute the steps executed by the positioning unit 1501. The communication module may be used to support the second device to execute the steps executed by the receiving unit 1502 and the sending unit 1503. The storage module may be used to support the second device to store program codes and data, etc.

[0190] The processing module may be a processor or a controller. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a digital signal processor, and the like. The storage module may be a memory. The communication module may specifically be a device that interacts with other second devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, and the like.

[0191] In one embodiment, when the processing module is a processor and the storage module is a memory, the second device involved in this embodiment may be a Figure 3 Device of the structure shown.

[0192] This embodiment also provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on the first device or the second device, the first device or the second device executes the above-mentioned related method steps to implement the positioning method in the above-mentioned embodiment.

[0193] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the positioning method in the above-mentioned embodiment.

[0194] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the positioning method in the above-mentioned method embodiments.

[0195] Among them, the first device, the second device, the computer storage medium, the computer program product or the chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0196] Through the description of the above implementation methods, technical personnel in the relevant field can 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.

[0197] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0198] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0199] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0200] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0201] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A positioning method, characterized in that: include: The first device determines a first distance between the first device and a second device; When the first distance is greater than or equal to a first threshold, the first device sends first indication information to the second device, where the first indication information is used to instruct the second device to adopt a first positioning method; When the first distance is less than a second threshold, the first device sends second indication information to the second device, where the second indication information is used to instruct the second device to adopt a second positioning method; The second threshold is less than or equal to the first threshold, and the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method; The method further comprises: The first device receives first positioning information obtained by the second device using the first positioning method, where the first positioning information is used to indicate a first position of the second device; The first device displays the first position of the second device in a first display manner based on the first positioning information; or The first device receives second positioning information obtained by the second device using the second positioning method, where the second positioning information is used to indicate a second position of the second device; The first device displays the second position of the second device in a second display manner based on the second positioning information; The display accuracy of the first display mode is lower than the display accuracy of the second display mode.

2. The positioning method according to claim 1, characterized in that: The positioning frequency of the first positioning method is the same as or different from the positioning frequency of the second positioning method.

3. The positioning method according to claim 1 or 2, characterized in that: The positioning frequency of the first positioning method is lower than the positioning frequency of the second positioning method.

4. The positioning method according to claim 1, characterized in that: After the first device displays the position of the second device in the first display mode, the method further includes: A first operation of a user on the position of the second device is received, and in response to the first operation, the position of the second device is displayed in the second display manner.

5. The positioning method according to claim 1, 2 or 4, characterized in that: The method further comprises: If the second threshold is smaller than the first threshold, when the first distance is smaller than the first threshold and larger than the second threshold, the first device sends third indication information to the second device, where the third indication information is used to instruct the second device to adopt a third positioning method; Among them, the positioning accuracy of the third positioning method is the same as the positioning accuracy of the first positioning method, and the positioning frequency of the third positioning method is greater than the positioning frequency of the first positioning method; or, the positioning accuracy of the third positioning method is the same as the positioning accuracy of the second positioning method, and the positioning frequency of the third positioning method is less than the positioning frequency of the second positioning method.

6. The positioning method according to claim 1, 2 or 4, characterized in that: The first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; The second positioning method includes at least one of satellite positioning, wireless fidelity Wifi positioning, Bluetooth positioning, and sensor inertial positioning.

7. A positioning method, characterized in that: include: If the second device receives the first indication information sent by the first device; The first indication information is used to instruct the second device to adopt a first positioning method; the second device adopts the first positioning method and sends first positioning information obtained by adopting the first positioning method to the first device; wherein the first positioning information is used to indicate a first position of the second device, and the first position of the second device is displayed by the first device in a first display mode based on the first positioning information; If the second device receives the second indication information sent by the first device; the second indication information is used to instruct the second device to adopt a second positioning method; the second device adopts the second positioning method and sends the second positioning information obtained by adopting the second positioning method to the first device; wherein the second positioning information is used to indicate the second position of the second device, and the second position of the second device is displayed by the first device in a second display mode based on the second positioning information; The positioning accuracy of the first positioning method is lower than that of the second positioning method, and the display accuracy of the first display method is lower than that of the second display method.

8. The positioning method according to claim 7, characterized in that: The positioning frequency of the first positioning method is the same as or different from the positioning frequency of the second positioning method.

9. The positioning method according to claim 7 or 8, characterized in that: The positioning frequency of the first positioning method is lower than the positioning frequency of the second positioning method.

10. The positioning method according to claim 7 or 8, characterized in that: The first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; The second positioning method includes at least one of satellite positioning, wireless fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning.

11. A first device, characterized in that: include: a determining unit, configured to determine a first distance between the first device and the second device; a sending unit, configured to send first indication information to the second device when the first distance is greater than or equal to a first threshold, wherein the first indication information is used to instruct the second device to adopt a first positioning method; The sending unit is further configured to send second indication information to the second device when the first distance is less than a second threshold, wherein the second indication information is used to instruct the second device to adopt a second positioning method; The second threshold is less than or equal to the first threshold, and the positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method; Also includes: A receiving unit, configured to receive first positioning information obtained by the second device using the first positioning method, where the first positioning information is used to indicate a first position of the second device; A display unit, configured to display the first position of the second device in a first display manner based on the first positioning information; or The receiving unit is used to receive second positioning information obtained by the second device using the second positioning method, where the second positioning information is used to indicate a second position of the second device; The display unit is configured to display the second position of the second device in a second display manner based on the second positioning information; The display accuracy of the first display mode is lower than the display accuracy of the second display mode.

12. The first device according to claim 11, characterized in that The positioning frequency of the first positioning method is the same as or different from the positioning frequency of the second positioning method.

13. The first device according to claim 11 or 12, characterized in that The positioning frequency of the first positioning method is lower than the positioning frequency of the second positioning method.

14. The first device according to claim 11, characterized in that The receiving unit is further used to: receive a first operation of a user on the position of the second device; The display unit is further configured to: in response to the first operation, display the location of the second device in the second display manner.

15. The first device according to claim 11, 12 or 14, characterized in that The sending unit is also used for: If the second threshold is smaller than the first threshold, when the first distance is smaller than the first threshold and larger than the second threshold, third indication information is sent to the second device, where the third indication information is used to instruct the second device to adopt a third positioning method; Among them, the positioning accuracy of the third positioning method is the same as the positioning accuracy of the first positioning method, and the positioning frequency of the third positioning method is greater than the positioning frequency of the first positioning method; or, the positioning accuracy of the third positioning method is the same as the positioning accuracy of the second positioning method, and the positioning frequency of the third positioning method is less than the positioning frequency of the second positioning method.

16. The first device according to claim 11, 12 or 14, characterized in that The first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; The second positioning method includes at least one of satellite positioning, wireless fidelity Wifi positioning, Bluetooth positioning, and sensor inertial positioning.

17. A second device, characterized in that: include: A positioning unit, configured to receive first indication information sent by a first device through a receiving unit; The first indication information is used to instruct the second device to adopt a first positioning method; adopt the first positioning method, and send the first positioning information obtained by adopting the first positioning method to the first device through a sending unit; wherein the first positioning information is used to indicate a first position of the second device, and the first position of the second device is displayed by the first device in a first display mode based on the first positioning information; The positioning unit is further used for receiving second indication information sent by the first device through the receiving unit; the second indication information is used to instruct the second device to adopt a second positioning method; the second positioning method is adopted, and second positioning information obtained by adopting the second positioning method is sent to the first device through the sending unit; wherein the second positioning information is used to indicate a second position of the second device, and the second position of the second device is displayed by the first device in a second display mode based on the second positioning information; The positioning accuracy of the first positioning method is lower than that of the second positioning method, and the display accuracy of the first display method is lower than that of the second display method.

18. The second device according to claim 17, characterized in that The positioning frequency of the first positioning method is the same as or different from the positioning frequency of the second positioning method.

19. The second device according to claim 17 or 18, characterized in that The positioning frequency of the first positioning method is lower than the positioning frequency of the second positioning method.

20. The second device according to claim 17 or 18, characterized in that The first positioning method includes at least one of base station positioning and Internet Protocol IP address positioning; The second positioning method includes at least one of satellite positioning, wireless fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning.

21. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a computer, the computer is enabled to execute the positioning method according to any one of claims 1 to 6.

22. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on a computer, the computer is enabled to execute the positioning method according to any one of claims 7 to 10.

23. A positioning system, characterized in that: The system comprises the first device according to any one of claims 11 to 16 and the second device according to any one of claims 17 to 20.