WO2020077738A1 - 一种定位方法和装置 - Google Patents

一种定位方法和装置 Download PDF

Info

Publication number
WO2020077738A1
WO2020077738A1 PCT/CN2018/117256 CN2018117256W WO2020077738A1 WO 2020077738 A1 WO2020077738 A1 WO 2020077738A1 CN 2018117256 W CN2018117256 W CN 2018117256W WO 2020077738 A1 WO2020077738 A1 WO 2020077738A1
Authority
WO
WIPO (PCT)
Prior art keywords
positioning
positioning method
frequency
accuracy
threshold
Prior art date
Application number
PCT/CN2018/117256
Other languages
English (en)
French (fr)
Inventor
余尚春
王伟刚
陈杰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201880098068.4A priority Critical patent/CN112840227A/zh
Publication of WO2020077738A1 publication Critical patent/WO2020077738A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00

Definitions

  • This application relates to the terminal field, and in particular, to a positioning method and device.
  • Mobile smart hardware such as smart bracelets, smart watches, pet trackers, luggage trackers, mobile phones, etc. generally have a location positioning function.
  • a high-precision positioning method may be used to locate the terminal multiple times.
  • Embodiments of the present application provide a positioning method and device, which can reduce power consumption of a terminal during positioning.
  • an embodiment of the present application provides a positioning method, including: a first device determining a first distance between a first device and a second device; when the first distance is greater than or equal to a first threshold, the first device The second device sends first indication information, and the first indication information is used to instruct the second device to adopt the first positioning method; when the first distance is less than the second threshold, the first device sends second indication information to the second device, the second The indication information is used to instruct the second device to adopt the 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 second device when the first distance between the first device and the second device is large (when greater than or equal to the first threshold), the second device may adopt a positioning method with lower accuracy (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 may adopt a positioning method with a higher accuracy (second positioning method). In this way, it can avoid that the second terminal device always adopts a high-precision positioning mode, which can reduce the power consumption of the terminal during the positioning process and reduce the possibility of the terminal shutting down.
  • the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner. 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. That is to say, when using a lower precision positioning method, you can use a lower positioning frequency, you can also use a higher positioning frequency; when using a higher precision positioning method, you can use a lower positioning frequency, also A higher positioning frequency can be used, which is not limited in this application.
  • the positioning frequency of the first positioning manner is less than the positioning frequency of the second positioning manner.
  • a lower-precision positioning method is adopted, and a lower positioning frequency is also adopted, the power consumption of the terminal can be further saved, and the possibility of the terminal being shut down is reduced.
  • a higher-precision positioning method is used, and a higher positioning frequency is also used, the position of the terminal can be more accurately located.
  • the method further includes: the first device receives first positioning information obtained by the second device using the first positioning method, and the first positioning information is used to indicate the first location of the second device; the first The 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 the second positioning mode, and the second positioning information is used to indicate the second The second position of the device; the first device displays the second position of the second device in the 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.
  • a geometric figure for example, a circle
  • the error range of the first position of the second device is within 100 m.
  • the second display mode may be a display mode with higher accuracy.
  • 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 5 m.
  • the method further includes: receiving a first user operation on the location of the second device, and in response to the first operation, to The second display mode displays the location of the second device.
  • the first operation may 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 the first display mode Display accuracy improves user experience.
  • the method further 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 , The third indication information is used to instruct the second device to adopt the third positioning method; wherein, 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 Positioning frequency; 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.
  • the first positioning method includes at least one of base station positioning and Internet protocol IP address positioning;
  • the second positioning method includes satellite positioning, wireless fidelity (Wifi) positioning, Bluetooth positioning, At least one of sensor inertial positioning.
  • an embodiment of the present application provides a positioning method, including: if a second device receives first indication information sent by a first device; the first indication information is used to instruct the second device to adopt the first positioning method; the second device Use the first positioning method and send the first positioning information obtained by using the first positioning method to the first device; where the first positioning information is used to indicate the first position of the second device; if the second device receives the first positioning information Second indication information; the second indication information is used to instruct the second device to adopt the second positioning method; the second device adopts the second positioning method, and sends the second positioning information obtained by using 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 mode is less than the positioning accuracy of the second positioning mode.
  • the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.
  • the positioning frequency of the first positioning manner is less than the positioning frequency of the second positioning manner.
  • the first positioning method includes at least one of base station positioning and Internet protocol IP address positioning;
  • the second positioning method includes satellite positioning, wireless fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning At least one of them.
  • an embodiment of the present application provides a first device, including: a determining unit for determining a first distance between the first device and the second device; a sending unit for when the first distance is greater than or equal to the When a threshold is reached, the first indication information is sent to the second device, the first indication information is used to instruct the second device to adopt the first positioning method; the sending unit is also used to send the second device a second distance when the first distance is less than the second threshold Sending second indication information, where the second indication information is used to instruct the second device to adopt the 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 positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.
  • the positioning frequency of the first positioning manner is less than the positioning frequency of the second positioning manner.
  • it further includes a receiving unit, configured to: receive first positioning information obtained by the second device using the first positioning mode, and the first positioning information is used to indicate the first position of the second device; and the display unit , Used to display the first position of the second device in a first display mode 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, and the second positioning information is used Is used to indicate the second position of the second device; the display unit is used to display the second position of the second device in the second display mode based on the second positioning information; wherein the display accuracy of the first display mode is less than that of the second display mode Precision.
  • the receiving unit is further used to: receive a user's first operation on the position of the second device; the display unit is also used to: in response to the first operation, display the second device's second display mode position.
  • the sending unit is further configured 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, The three indication information is used to instruct the second device to adopt the third positioning method; wherein, 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 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.
  • the first positioning method includes at least one of base station positioning and Internet protocol IP address positioning;
  • the second positioning method includes satellite positioning, wireless fidelity Wifi positioning, Bluetooth positioning, and sensor inertial positioning. At least one.
  • an embodiment of the present application provides a second device, including: a positioning unit, configured to receive first indication information sent by the first device through the receiving unit; the first indication information is used to instruct the second device to adopt the first Positioning method; adopting the first positioning method, and sending the first positioning information obtained by using the first positioning method to the first device through the sending unit; wherein, the first positioning information is used to indicate the first position of the second device; the positioning unit, It is also used to receive the 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 the second positioning method; adopt the second positioning method, and send the adopted to the first device The second positioning information obtained by the second positioning method; 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.
  • the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.
  • the positioning frequency of the first positioning method is less than the positioning frequency of the second positioning method.
  • the first positioning method includes at least one of base station positioning and Internet protocol IP address positioning;
  • the second positioning method includes satellite positioning, wireless fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning At least one of them.
  • an embodiment of the present application provides a first device, including: a processor for determining a first distance between the first device and a second device; a transceiver for when the first distance is greater than or equal to the When a threshold is reached, the first indication information is sent to the second device.
  • the first indication information is used to instruct the second device to adopt the first positioning method;
  • Sending second indication information where the second indication information is used to instruct the second device to adopt the 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 positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.
  • the positioning frequency of the first positioning manner is less than the positioning frequency of the second positioning manner.
  • it further includes a transceiver, 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 the first position of the second device; and the display unit , Used to display the first position of the second device in a first display mode based on the first positioning information; or, the transceiver is used to receive second positioning information obtained by the second device using the second positioning method, and the second positioning information is used Is used to indicate the second position of the second device; the display unit is used to display the second position of the second device in the second display mode based on the second positioning information; wherein the display accuracy of the first display mode is less than that of the second display mode Precision.
  • a transceiver 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 the first position of the second device; and the display unit , Used to display the first position of the second device in a first display mode based on the first positioning information; or, the transceiver is used to receive second positioning
  • the transceiver is further used to: receive the user's first operation on the position of the second device; the display unit is also used to: in response to the first operation, display the second device's second display mode position.
  • the transceiver is further configured 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, The three indication information is used to instruct the second device to adopt the third positioning method; wherein, 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 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.
  • the first positioning method includes at least one of base station positioning and Internet protocol IP address positioning;
  • the second positioning method includes satellite positioning, wireless fidelity Wifi positioning, Bluetooth positioning, and sensor inertial positioning. At least one.
  • an embodiment of the present application provides a second device, including: a processor, configured to receive first indication information sent by the first device through a transceiver; the first indication information is used to instruct the second device to adopt the first Positioning method; adopting the first positioning method, and sending the first positioning information obtained by using 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, It is also used to receive the second indication information sent by the first device through the transceiver; 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 adoption to the first device through the transceiver The second positioning information obtained by the second positioning method; 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.
  • the positioning frequency of the first positioning manner is the same as or different from the positioning frequency of the second positioning manner.
  • the positioning frequency of the first positioning manner is less than the positioning frequency of the second positioning manner.
  • the first positioning method includes at least one of base station positioning and Internet protocol IP address positioning;
  • the second positioning method includes satellite positioning, wireless fidelity Wi-Fi positioning, Bluetooth positioning, and sensor inertial positioning At least one of them.
  • an embodiment of the present invention provides an apparatus that exists in the form of a chip product.
  • the structure of the apparatus includes a processor and a memory.
  • the memory is used to couple with the processor and store necessary program instructions of the apparatus.
  • the processor is used to execute program instructions stored in the memory, so that the apparatus performs the function of the first device or the second device in the above method.
  • an embodiment of the present invention provides a first device or a second device, where the first device or the second device can implement the functions performed by the first device or the second device in the foregoing method embodiments, and the functions It can be realized by hardware, and can also be realized by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • 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 function in the foregoing 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 further include a memory for coupling with the processor, which stores necessary program instructions and data of the first device or the second device.
  • an embodiment of the present invention provides a computer-readable storage medium, including instructions, which when executed on a computer, causes the computer to execute any method provided in the first aspect or the second aspect.
  • an embodiment of the present invention provides a computer program product containing instructions, which when executed on a computer, causes the computer to execute any method provided in the first aspect or the second aspect.
  • an embodiment of the present invention provides a positioning system including the first device described in any possible implementation manner of the third aspect or the fifth aspect, and the fourth aspect or the sixth aspect
  • the second device is described in any possible implementation manner of the aspect.
  • FIG. 1 is a schematic diagram of a communication system architecture suitable for a positioning method provided by an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a first device provided by an embodiment of this application.
  • FIG. 3 is a schematic structural diagram of a second device provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of signal interaction of a positioning method provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a display interface provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a set of display interfaces provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • 11a is a schematic diagram of another set of display interfaces provided by an embodiment of the present application.
  • 11b is a schematic diagram of another group of display interfaces provided by an embodiment of the present application.
  • 11c is a schematic diagram of another display interface provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another display interface provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another group of display interfaces provided by an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of yet another first device provided by an embodiment of this application.
  • 15 is a schematic structural diagram of yet another second device provided by an embodiment of the present application.
  • An 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.
  • 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 via new radio access (new radio access technical, New RAT), long term evolution (LTE), Bluetooth (bluetooth, BT), Wifi, or other protocols.
  • the communication system includes a first device (for example, a mobile phone 10a), a second device (for example, a smart watch 10b), and Network equipment (for example, cloud server 11).
  • the cloud server 11 may be a server corresponding to a positioning 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 another APP, which is not limited in this 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.
  • the positioning information is used to indicate the position of the second device position.
  • the communication between the first device and the cloud server 11 and between the second device and the cloud server 11 can be performed by wireless communication, or by wired communication.
  • the wireless communication method can be, for example, wireless access Network devices (eg, base stations) communicate.
  • the base station may be an evolved node (evolved node, base station, eNB).
  • the base station may be a next-generation base station (gNB), a new radio base station (new radio base station), a macro base station, a micro base station, or a high-frequency base station Base station or transmission and reception point (transmission and reception point, TRP), etc.
  • the wired communication method may be, for example, communication via overhead electrical lines and cable projects (including overhead, underground, underwater cables, and optical cables, etc.) as communication conduction.
  • the first device provided in this embodiment of the present application may be a user equipment (user equipment (UE), for example, a mobile phone, a tablet computer, a desktop, a laptop computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), handheld computers, netbooks, personal digital assistants (PDA) and other devices.
  • UE user equipment
  • the second device may be various wearable electronic devices or IoT devices or UEs, for example, it may be a smart watch, a smart collar, smart glasses, smart gloves, smart apparel, smart shoes, or a car terminal.
  • the first terminal in the above communication system architecture may specifically be 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, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, SIM card connector 195, etc.
  • the sensor module may include a pressure sensor 180A, a gyro 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, bone conduction sensor, etc.
  • the structure shown in the embodiment of the present invention does not constitute a limitation on the mobile phone 100. It may include more or fewer components than shown, or combine certain components, or split certain components, or a different component arrangement.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), and an image signal processor. (image) signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processor (Neural-network Processing Unit, NPU) Wait.
  • application processor application processor
  • AP application processor
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec video codec
  • DSP digital signal processor
  • baseband processor baseband processor
  • / or neural network processor Neural-network Processing Unit, NPU
  • the controller may be a decision maker who directs the various components of the mobile phone 100 to coordinate the work according to the instructions. It is the nerve center and command center of the mobile phone 100.
  • the controller generates the operation control signal according to the instruction operation code and the timing signal, and completes the control of taking the instruction and executing the instruction.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor is a cache memory. You can save the instructions or data that the processor has just used or recycled. If the processor needs to use the instruction or data again, it can be directly called from the memory. Avoid repeated access, reduce the waiting time of the processor, thus improving the efficiency of the system.
  • the processor 110 may include an interface.
  • the interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit, sound, I2S) interface, pulse code modulation (pulse code modulation (PCM) interface, universal asynchronous transceiver transmitter (universal Asynchronous receiver / transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input / output (GPIO) interface, user identification module (subscriber identity module, SIM) interface, And / or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal Asynchronous transceiver transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input / output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL).
  • the processor may contain multiple sets of I2C buses.
  • the processor can be coupled to the touch sensor, charger, flash, camera, etc. through different I2C bus interfaces.
  • the processor may couple the touch sensor through the 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.
  • the I2S interface can be used for audio communication.
  • the processor may contain multiple sets of I2S buses.
  • the processor can be coupled with the audio module through the I2S bus to achieve communication between the processor and the audio module.
  • the audio module can pass the audio signal to the communication module through the I2S interface to realize the function of answering the call through the Bluetooth headset.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module and the communication module may be coupled through a PCM bus interface.
  • the audio module can also transmit audio signals to the communication module through the PCM interface to achieve the function of answering the phone call through the 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.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus is a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor and the communication module 160.
  • the processor communicates with the Bluetooth module through the UART interface to realize the Bluetooth function.
  • the audio module can transmit audio signals to the communication module through the UART interface to achieve the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor to peripheral devices such as display screens and cameras.
  • MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI) and so on.
  • the processor and the camera communicate through a CSI interface to implement the shooting function of the mobile phone 100.
  • the processor and the display screen communicate through the DSI interface to realize the display function of the mobile phone 100.
  • the GPIO interface can be configured via software.
  • the GPIO interface can be configured as a control signal or a data signal.
  • the GPIO interface may be used to connect the processor to the camera, display screen, communication module, audio module, sensor, and the like.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 may be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like.
  • the USB interface can be used to connect a charger to charge the mobile phone 100, and can also be used to transfer data between the mobile phone 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. It can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiments of the present invention is only a schematic illustration, and does not constitute a limitation on the structure of the mobile phone 100.
  • the mobile phone 100 may adopt different interface connection methods in the embodiments of the present invention, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module may receive the charging input of the wired charger through the USB interface.
  • the charging management module may receive wireless charging input through the wireless charging coil of the mobile phone 100. While the charging management module charges the battery, the power management module 141 can also supply power to the terminal device.
  • 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 charge management module, and supplies power to the processor, internal memory, external memory, display screen, camera, and communication module.
  • the power management module can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be disposed in the processor 110.
  • the power management module 141 and the charging management module may also be set in the same device.
  • the wireless communication function of the mobile phone 100 can be realized by the antenna module 1, the antenna module 2, the radio frequency module 150, the communication module 160, the modem, and the baseband processor.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the mobile phone 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the cellular antenna can be multiplexed as a wireless LAN diversity antenna.
  • the antenna may be used in conjunction with a tuning switch.
  • the radio frequency module 150 may provide a communication processing module for a wireless communication solution including 2G / 3G / 4G / 5G and the like applied to the mobile phone 100. It may include at least one filter, switch, power amplifier, low noise amplifier (Low Noise Amplifier, LNA), etc.
  • the radio frequency module receives electromagnetic waves from the antenna 1 and filters, amplifies, etc. the received electromagnetic waves, and transmits them to the modem for demodulation.
  • the radio frequency module can also amplify the signal modulated by the modem and turn it into electromagnetic wave radiation through the antenna 1.
  • at least part of the functional modules of the radio frequency module 150 may be provided in the processor 150.
  • at least part of the functional modules of the radio frequency module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be transmitted into a 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.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to speakers, receivers, etc.), or displays images or videos through the display screen.
  • the modem may be a stand-alone device.
  • the modem may be independent of the processor and set in the same device as the radio frequency module or other functional modules.
  • the communication module 160 can provide wireless local area networks (wireless local area networks, WLAN) (for example, wireless fidelity (WiFi)), Bluetooth, and global navigation satellite system (GNSS) applied to the mobile phone 100. , Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR) and other wireless communication solutions.
  • the communication module 160 may be one or more devices integrating at least one communication processing module.
  • the communication module receives the electromagnetic wave via the antenna 2, frequency-modulates and filters the electromagnetic wave signal, and sends the processed signal to the processor.
  • the communication module 160 can also receive the signal to be transmitted from the processor, frequency-modulate it, amplify it, and convert it to electromagnetic waves through the antenna 2 to radiate it out.
  • 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.
  • the mobile phone 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global mobile communication system (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), LTE, 5G new wireless communication (New Radio, NR), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA broadband Code division multiple access
  • WCDMA wideband code division multiple access
  • time-division code division multiple access time-division code division multiple access
  • LTE Long NR
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation system (BDS), and a quasi-zenith satellite system (quasi -zenith satellite system (QZSS)) and / or satellite-based augmentation systems (SBAS). Therefore, the mobile phone 100 can obtain the positioning (location) information of the mobile phone.
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Bertdou navigation system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the mobile phone 100 realizes a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connecting the display screen and the application processor.
  • the GPU is used to perform mathematical and geometric calculations, and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen includes a display panel.
  • the display panel may use 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 (active-matrix organic light) emitting diodes, AMOLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc.
  • the mobile phone 100 may include 1 or N display screens, and N is a positive integer greater than 1.
  • the mobile phone 100 can realize the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen, and an application processor.
  • the ISP is used to process the data fed back by the camera. For example, when taking a picture, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the optical 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.
  • ISP can also optimize the algorithm of image noise, brightness and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be set in the camera 193.
  • 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 may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CCD charge coupled device
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other image signals.
  • the mobile phone 100 may include 1 or N cameras, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals. In addition to digital image signals, it can also process other digital signals. For example, when the mobile phone 100 is selected at a frequency point, the digital signal processor is used to perform Fourier transform on the energy at the frequency point.
  • Video codec is used to compress or decompress digital video.
  • the mobile phone 100 may support one or more codecs. In this way, the mobile phone 100 can play or record videos in various encoding formats, for example: MPEG1, MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent recognition of the mobile phone 100, such as image recognition, face recognition, voice recognition, and text understanding.
  • 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 realize the data storage function. For example, save music, video and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes instructions stored in the internal memory 121 to execute various functional applications and data processing of the mobile phone 100.
  • the memory 121 may include a storage program area and a storage data area.
  • the storage program area may store an operating system, at least one function required application programs (such as sound playback function, image playback function, etc.) and so on.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the mobile phone 100 and the like.
  • 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 memory (universal flash storage, UFS), etc. .
  • 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 memory (universal flash storage, UFS), etc.
  • the mobile phone 100 can realize audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, and an application processor. For example, music playback, recording, etc.
  • the audio module is used to convert digital audio information into analog audio signal output, and also used to convert analog audio input into digital audio signal.
  • the audio module can also be used to encode and decode audio signals.
  • the audio module may be disposed in the processor 110, or some functional modules of the audio module may be disposed in the processor 110.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the mobile phone 100 can listen to music through a speaker, or listen to a hands-free call.
  • the receiver 170B also known as "handset" is used to convert audio electrical signals into sound signals.
  • the mobile phone 100 answers a call or voice message, it can answer the voice by holding the receiver close to the ear.
  • Microphone 170C also known as “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone through the person's mouth, and input the sound signal to the microphone.
  • the mobile phone 100 may be provided with at least one microphone. In some embodiments, the mobile phone 100 may be provided with two microphones. In addition to collecting sound signals, it may also implement a noise reduction function. In some embodiments, the mobile phone 100 may also be provided with three, four, or more microphones to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the headset interface 170D is used to connect wired headsets.
  • the earphone interface can be a USB interface, or a 3.5mm open mobile terminal (OMTP) standard interface, and the American Telecommunications Industry Association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal
  • CTIA American Telecommunications Industry Association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor may be provided on the display screen.
  • the capacitive pressure sensor may be a parallel plate including at least two conductive materials. When force is applied to the pressure sensor, the capacitance between the electrodes changes. The mobile phone 100 determines the strength of the pressure based on the change in capacitance. When a touch operation is applied to the display screen, the mobile phone 100 detects the intensity of the touch operation according to the pressure sensor. The mobile phone 100 may also calculate the touched position based on the detection signal of the pressure sensor.
  • touch operations that act on the same touch position but have different touch operation intensities may 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.
  • the gyro sensor 180B may be used to determine the movement posture of the mobile phone 100.
  • the angular velocity of the mobile phone 100 around three axes ie, x, y, and z axes
  • the gyro sensor can be used for anti-shake shooting.
  • the gyro sensor detects the shaking angle of the mobile phone 100, and calculates the distance to be compensated by the lens module according to the angle, so that the lens counteracts the shaking of the mobile phone 100 through reverse movement to achieve anti-shake.
  • the gyro sensor can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the mobile phone 100 calculates the altitude using the air pressure value measured by the air pressure sensor to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the mobile phone 100 can detect the opening and closing of the flip holster using a magnetic sensor.
  • the mobile phone 100 can detect the opening and closing of the clamshell according to the magnetic sensor.
  • characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of 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 recognize the posture of the terminal, and be used in applications such as horizontal and vertical screen switching and pedometers.
  • 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 scenes, the mobile phone 100 may use a distance sensor to measure distance to achieve fast focusing.
  • 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 mobile phone 100 can use a 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 leather case mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense the brightness of ambient light.
  • the mobile phone 100 can adaptively adjust the brightness of the display screen 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 touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the mobile phone 100 can use the collected fingerprint characteristics to unlock a fingerprint, access an application lock, take a photo with a fingerprint, and answer a call with a fingerprint.
  • the temperature sensor 180J is used to detect the temperature.
  • 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 the threshold value, the mobile phone 100 performs to reduce the performance of the processor located near the temperature sensor in order to reduce power consumption and implement thermal protection.
  • Touch sensor 180K also known as "touch panel”. Can be set on the display. Used to detect touch operations on or near it. The detected touch operation can be passed to the application processor to determine the type of touch event and provide corresponding visual output through the display screen.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor may acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor may also be provided in the earphone.
  • the audio module 170 may parse out the voice signal based on the vibration signal of the vibrating bone block of the voice part acquired by the bone conduction sensor to realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor to implement the heart rate detection function.
  • the key 190 includes a power-on key, a volume key, and the like.
  • the keys can be mechanical keys. It can also be a touch button.
  • the mobile phone 100 receives key input and generates key signal input related to user settings and function control of the mobile phone 100.
  • the motor 191 may generate a vibration prompt.
  • the motor can be used for vibration notification of incoming calls and can also be used for touch vibration feedback.
  • touch operations applied to different applications may correspond to different vibration feedback effects.
  • Touch operations on different areas of the display screen can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminder, receiving information, alarm clock, game, etc.
  • Touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate a charging state, a power change, and may also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a subscriber identity module (subscriber identity module, SIM).
  • SIM subscriber identity module
  • the SIM card can be inserted into or removed from the SIM card interface to achieve contact and separation with the mobile phone 100.
  • the mobile phone 100 may support one or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted simultaneously in the same SIM card interface. The types of the multiple cards may 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 a SIM card to realize functions such as call and data communication.
  • the mobile phone 100 uses eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the mobile phone 100 and cannot be separated from the mobile phone 100.
  • the second terminal in the above communication system architecture may be, for example, a wearable device 200.
  • the wearable device 200 may include components such as 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 (such as a bone conduction microphone), a speaker 207, and a display screen 208.
  • 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.
  • the wearable device 200 can 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 technologies.
  • GNSS may include GPS, global navigation satellite system, Beidou satellite navigation system, quasi-zenith satellite system and / or satellite-based augmentation system.
  • the wearable device 200 can acquire the positioning information of the wearable device.
  • wearable device 200 may have more or fewer components than those shown in FIG. 3, may combine two or more components, or may have different component configurations.
  • the various components shown in FIG. 3 may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing or application specific integrated circuits.
  • the network architecture and business scenarios described in the embodiments of the present application are to more clearly explain the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. With the evolution of the architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
  • the words “first” and “second” are used to distinguish the same or similar items that have substantially the same functions and functions. Those skilled in the art can understand that the words “first” and “second” do not limit the number and the execution order, and the words “first” and “second” do not necessarily mean different.
  • an embodiment of the present application provides a positioning method.
  • the first device as a mobile phone and the second device as a target device (that is, a device to be located or tracked, for example, a wearable device)
  • the description includes:
  • the first device determines the first distance between the first device and the second device.
  • the user can click the icon 502 of the positioning app of the mobile phone on the desktop 501 of the mobile phone.
  • the positioning APP can be started, and a graphical user interface (GUI) as shown in FIG. 6 can be displayed.
  • the GUI can be referred to as a positioning interface 601 .
  • the positioning interface 601 can display a map of the area where the mobile phone is located (for example, district, city, or province).
  • the positioning interface 601 may further include a control 602 for indicating the target device, a control 603 for enlarging the display level of the current position, a control 604 for reducing the display level of the current position, and so on.
  • 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.
  • WeChat APP APPs of the mobile phone
  • the mobile phone After the mobile phone detects the operation of the user clicking on the control 602 of the target device, for example, the mobile phone displays a GUI as shown in FIG. The user can click the selection button 606 and set the selection button 606 on the right to select the wearable device (1A) as the target device.
  • 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, enter the setting interface 605 of the positioning target device next time, and the selection button 606 is set to the right by default).
  • the user can add a new target device in the target device setting interface 605.
  • new target devices can be added through Bluetooth pairing, mobile phone number search or WeChat friend search, and this application is not limited. It can be understood that the user can simultaneously select multiple target devices to be located, and if the mobile phone determines that the user selects multiple target devices to be located at the same time, the mobile phone can simultaneously display the positions of the multiple target devices. The following uses the number of target devices as an example.
  • the mobile phone After the mobile phone determines that the user selects the target device, it can send a positioning request to the cloud server, where the positioning request is used to request the current location of the target device.
  • the cloud service After receiving the positioning request of the mobile phone, the cloud service notifies the target device to perform positioning and sends (reports) location information to the cloud server.
  • the target device After receiving the notification sent by the cloud server, the target device starts the positioning function and sends the location (information) obtained by the 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 according to the location information of the target device and its own location information.
  • 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.
  • 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 the first positioning mode.
  • the positioning accuracy of the first positioning method is low.
  • the first positioning method may be a positioning method of base station positioning or a positioning method of IP address positioning.
  • the positioning frequency of the first positioning mode can be set lower (for example, 60s / time) to save power consumption.
  • the positioning frequency of the first positioning mode may be the system default, or may be set by the user.
  • the user can click the control 607 on the setting interface 605 of the target device.
  • the mobile phone can display the target device positioning mode setting interface 801 .
  • the control 802 indicates that the first distance is greater than the first threshold (for example, the first threshold is 1 km), and the control 803 indicates that when the first distance is greater than the first threshold, the first positioning method (for example, base station positioning) is used.
  • the control 804 indicates the positioning accuracy of the first positioning method (for example, 100 m), and the control 805 indicates the positioning frequency of the first positioning method (for example, 60 s / time).
  • the mobile phone can display (drop down) the list control 806, and the user can reset (select) the first threshold.
  • the mobile phone can display (drop down) the list control 807, and the user can reset (select) the positioning accuracy of the first positioning method.
  • the mobile phone can display (drop down) the list control 808, and the user can reset (select) the positioning frequency of the first positioning method.
  • the second device receives the first indication information sent by the first device.
  • 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.
  • the second device uses the first positioning method, and sends the first device the first positioning information obtained by using the first positioning method.
  • the first positioning information is used to indicate the first location of the second device.
  • the first device receives the first positioning information obtained by the second device using the first positioning method.
  • 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.
  • the first device displays the first position of the second device in the first display mode based on the first positioning information.
  • the first display mode may be a low-precision display mode, that is, the error range of the positions of the two devices displayed by the first display mode is large.
  • a geometric figure 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 100 m (meter).
  • the error range of the first position of the second device may also be 50m, 200m, 300m, etc., which is not limited in this application.
  • the geometric figure may be a circle (circle), an ellipse, a polygon, a sector or an arc.
  • the mobile phone may display the icon 701 of the target device, the location of the target device (the location of the target device may be represented by a circle 702), and the current positioning method 703 of the target device in the positioning interface 601.
  • the current positioning method of the target device may be the first positioning method (for example, base station positioning); the positioning accuracy may be 100m (within), that is, the error range of the position indicated by the circle 702 is within 100m; the positioning frequency may 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 (not shown in FIG. 10), depending on the positioning method of the mobile phone.
  • the mobile phone may not display the icon 704 of the mobile phone user, which is not limited in this application.
  • the first device after the first device displays the first position of the second device in the first display mode based on the first positioning information, the first device receives the user's first operation on the position of the second device. In response to the first operation, 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 the display accuracy of the first display mode.
  • the user can click the icon 701 or circle 702 of the target device, and the mobile phone can display the function list control 706.
  • the function list control 706 may include a precise positioning control 707.
  • the user can click the precise positioning control 707.
  • the mobile phone can notify the target device to adopt the second positioning method.
  • the mobile phone receives the positioning information obtained by the target device in the second positioning method.
  • the second display mode displays the location of the target device. As shown in (a) of FIG.
  • a smaller geometric figure for example, a smaller circle 7021
  • the error range of the position represented by the circle 7021 is within 50m
  • a point 7022 can be used to indicate the position of the target device, and the error range of the position indicated by the point 7022 can be within 5 meters.
  • the positioning frequency of the second positioning method can remain unchanged.
  • the function list control 706 may further include a distance control 708, a movement speed control 709, a movement direction control 710, a historical track control 711, a route control 712, and the like.
  • the distance control 708 as shown in (a) of FIG. 11b
  • the mobile phone can display the real-time distance 713 between the mobile phone and the target device.
  • the motion speed control 709 as shown in (b) of FIG. 11b
  • the mobile phone can display the real-time motion speed 714 of the target device.
  • the motion direction control 710 as shown in (c) of FIG.
  • the mobile phone can display the real-time motion direction 715 of the target device (for example, the real-time motion direction can be indicated by an arrow or a triangle, which is not limited in this application).
  • the mobile phone can display the historical track 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).
  • the mobile phone can display the preferred travel schemes of different travel modes from "my location" (mobile phone location) to "target device location” (for example, a bus travel scheme (as shown in FIG. 11c) , Ride (share bicycle) travel plan, taxi travel plan, self-driving travel plan or walking travel plan, etc.).
  • 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, sound a reminder, flash a breathing light, or actively light up the screen to remind the user that the location of the target device has been updated .
  • the mobile phone updates the location of the target device in the positioning interface 601.
  • the first device sends second indication information to the second device, and the second indication information is used to instruct the second device to adopt the second positioning mode.
  • the positioning accuracy of the second positioning method is relatively high.
  • the second positioning method may be positioning methods such as satellite positioning, Wifi positioning, Bluetooth positioning, and sensor inertial positioning.
  • the positioning frequency of the second positioning mode can be set higher (for example, 10s / time) to accurately locate the target device.
  • the positioning frequency of the second positioning method may be the system default, or may be set by the user.
  • the user may refer to step 402 for the process of setting the second positioning mode, which will not be repeated here.
  • 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.
  • the positioning frequency of the first positioning manner may be less than the positioning frequency of the second positioning manner.
  • the first device sends third indication information to the second device. Yu instructs the second device to adopt the third positioning method.
  • 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 and the second positioning method The positioning accuracy of is the same, and the positioning frequency of the third positioning method is lower than that of the second positioning method.
  • the second device receives the second indication information sent by the first device.
  • the second device may receive the second indication information through the cloud server. That is, the second device can receive the second indication information forwarded by the cloud server.
  • the second device uses the second positioning method, and sends the second device the second positioning information obtained by using the second positioning method.
  • the second positioning information is used to indicate the second location of the second device.
  • the first device receives second positioning information obtained by the second device using the second positioning method.
  • 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.
  • the first device displays the second position of the second device in the second display mode based on the second positioning information.
  • the display accuracy of the second display mode is greater than the display accuracy 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 position of the second device displayed by the first display mode Of error.
  • a smaller geometry compared to the geometry corresponding to the first display mode
  • a dot can be used to represent the first position of the second device
  • the error range of the first position is within 5m (may also be 1m, 2m, 3m, etc.).
  • 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 method 703 of the target device in the positioning interface 601.
  • the current positioning method of the target device may be the second positioning method (for example, GPS positioning method), and its positioning accuracy may be 5m, that is, the error range of the position represented by point 104 is within 5m, and the positioning frequency may 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 point or a circle (not shown in FIG. 12), depending on the positioning method of the mobile phone.
  • the mobile phone may not display the icon 704 of the mobile phone user, which is not limited in this application.
  • the first device 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 first indication information to the second device to instruct the second device to adopt the first positioning Way; 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 second indication information to the second device to instruct the second device to adopt the second positioning method; wherein, the first The positioning accuracy of the first positioning method is less than the positioning accuracy of the second positioning method. In this way, it can avoid that the second terminal device always adopts a high-precision positioning method, which can reduce the power consumption of the terminal during the positioning process, thereby reducing the possibility of the terminal being shut down.
  • Scenario 1 The owner tracks a pet wearing a device with a positioning function (for example, a pet positioning collar with a positioning function).
  • a positioning function for example, a pet positioning collar with a positioning function.
  • the processing logic is as follows:
  • the second threshold is less than the first threshold
  • the first threshold is 1 kilometer
  • the second threshold is 500 meters.
  • the mobile phone (the owner, represented by icon 704) can remotely indicate the positioning collar (pet dog) , Indicated by icon 701) adopts the first positioning method (for example, the base station positioning method, the positioning accuracy is 100m), and reports position information every 60s.
  • the positioning app of the mobile phone determines that the distance between the dog and the owner is less than 1 kilometer and greater than 500 meters, as shown in (b) of FIG.
  • the mobile phone can remotely indicate that the positioning collar adopts the third positioning method, and the third positioning
  • the positioning accuracy of the method is the same as the first positioning method (for example, the base station positioning method, the positioning accuracy is 100m), and the positioning frequency of the third positioning method is greater than the positioning frequency of the first positioning method (for example, the position information is reported every 30s).
  • the positioning app of the mobile phone determines that the distance between the dog and the owner is less than 1 kilometer and greater than 500 meters, as shown in (c) of FIG. 13, the mobile phone can remotely indicate that the positioning collar adopts the third positioning method.
  • the positioning accuracy of the three positioning methods 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 less than that of the first positioning method (for example, reporting position information every 40s) .
  • the positioning app of the mobile phone determines that the distance between the dog and the owner is less than 500 meters, as shown in (d) of FIG. 13, the mobile phone can remotely indicate that the positioning collar adopts the second positioning method (for example, GPS positioning method, positioning accuracy 5m), and report position information every 10s.
  • the work time of the positioning collar is sacrificed due to excessive pursuit of positioning accuracy and positioning frequency, which can help the owner to find the pet as soon as possible, and prevent the owner from recovering the pet due to the shutdown of the positioning collar.
  • Scenario 2 User 1 and User 2 share their location through WeChat.
  • the mobile phone can remotely instruct the smart watch (user 2, represented by icon 701) to adopt the first positioning method (for example, the base station positioning method with a positioning accuracy of 100m) and report position information every 60s.
  • the first positioning method for example, the base station positioning method with a positioning accuracy of 100m
  • the mobile phone When the mobile phone judges that the distance between user 1 and user 2 is less than 1 kilometer, as shown in FIG. 12, the mobile phone can remotely instruct the smart watch to adopt the second positioning method (for example, GPS positioning method, the positioning accuracy is 5m), and each Report location information once every 10s. And, 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 60s or every 20s or every 10s), so that both parties can share the location.
  • the positioning method of the mobile phone may be the same as or different from that of the smart watch (for example, when the smart watch uses the first positioning method, the mobile phone may use the first positioning method or the second positioning method for positioning).
  • the power consumption of the target terminal increases. Adjusting the positioning accuracy and positioning frequency according to the distance can save the mobile phone and smart watch as close as possible to the target device Positioning power consumption, try to avoid the automatic shutdown of mobile phones and smart watches (for example, in the case of looking for (lost) elderly or children wearing a positioning-enabled device (eg, wearable device), try to stay close to the target and ensure that the target device Automatic shutdown is particularly important).
  • a positioning-enabled device eg, wearable device
  • the first device and the second device include hardware structures and / or software modules corresponding to performing the respective functions.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed by hardware or computer software driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
  • the first device and the second device may be divided into function modules according to the above method examples.
  • each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of the modules in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 14 shows a possible structural schematic diagram 1 of the first device 14 involved in the above embodiment.
  • the first device includes: a determining unit 1401 and a sending unit 1402 , Receiving unit 1403 and display unit 1404.
  • the determining 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 the second device a second distance when the first distance is greater than or equal to the first threshold Sending first indication information, the first indication information is used to instruct the second device to adopt the first positioning method; and also used to send second indication information to the second device when the first distance is less than the second threshold, the second indication information is used Yu instructs the second device to adopt the 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 configured to: receive 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 determine the first positioning information based on The first display mode displays the first position of the second device. Or, the receiving unit 1403 is used to receive second positioning information obtained by the second device using the second positioning mode, and the second positioning information is used to indicate the second position of the second device; the display unit 1404 is used to based on the second positioning information The second position of the second device is displayed in the second display mode; wherein the display accuracy of the first display mode is less than the display accuracy of the second display mode.
  • the determining unit 1401 is used to support the first device to perform the process 401 in FIG. 4; the sending unit 1402 is used to support the first device to perform the process 402 or 407 in FIG. 4; the receiving unit 1403 is used to support the first device to perform FIG. 4 The process 405 or 410 in FIG. 4; the display unit 1404 is used to support the first device to execute the process 406 or 411 in FIG.
  • the first device provided in this embodiment is used to perform the above-mentioned positioning method, and therefore can achieve the same effect as the above-mentioned implementation method.
  • 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 perform the steps performed by the determining unit 1401 and the display unit 1404.
  • the communication module may be used to support the steps performed by the sending unit 1402 and the receiving unit 1403 described above.
  • the storage module may be used to support the first device to store program codes and data.
  • the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, digital signal processing and microprocessor combinations, and so on.
  • the storage module may be a memory.
  • the communication module may specifically be a device that interacts with other first devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.
  • the first device involved in this embodiment may be a device having the structure shown in FIG. 2.
  • FIG. 15 shows a possible structural schematic diagram 1 of the second device 15 involved in the foregoing embodiment.
  • the second device includes: a positioning unit 1501 and a receiving unit 1502 ⁇ ⁇ ⁇ 1503 ⁇ And send unit 1503.
  • the positioning unit 1501 is configured 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; the first positioning method is used And send the first positioning information obtained by using the first positioning method to the first device through the sending unit 1503; where 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 unit 1502 receives the second indication information sent by the first device; 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 method to the first device through the sending unit 1503 The obtained second positioning information; wherein, the second positioning information is used to indicate the second position of the second device; wherein, the positioning accuracy of the first positioning mode is less than the positioning accuracy of the second positioning mode.
  • the positioning unit 1501 and the sending unit 1503 are used to support the second device to perform the process 404 or 409 in FIG. 4; the receiving unit 1502 is used to support the second device to perform the process 403 or 408 in FIG. 4.
  • the second device provided in this embodiment is used to perform the above-mentioned positioning method, and therefore can achieve the same effect as the above-mentioned implementation method.
  • 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 perform the steps performed by the positioning unit 1501.
  • the communication module may be used to support the second device to perform the steps performed 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.
  • the processing module may be a processor or a controller. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, digital signal processors, and so on.
  • 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, or a Wi-Fi chip.
  • the second device involved in this embodiment may be a device having the structure shown in FIG. 3.
  • This embodiment also provides a computer storage medium that stores computer instructions, and when the computer instructions run on the first device or the second device, the first device or the second device executes the above-mentioned related method steps The positioning method in the above embodiment is implemented.
  • This embodiment also provides a computer program product.
  • the computer program product runs on a computer, the computer is caused to perform the above-mentioned relevant steps to implement the positioning method in the above embodiment.
  • the embodiments of the present application also provide an apparatus.
  • the apparatus may specifically be a chip, a component, or a module.
  • the apparatus may include a connected processor and a memory; wherein the memory is used to store computer-executed instructions.
  • the processor can execute computer execution instructions stored in the memory to cause the chip to execute the positioning method in each of the above method embodiments.
  • the first device, the second device, the computer storage medium, the computer program product or the chip provided in this embodiment are used to perform the corresponding methods provided above, therefore, for the beneficial effects that can be achieved, refer to the above The beneficial effects of the provided corresponding methods will not be repeated here.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of modules or units is only a division of logical functions.
  • there may be other divisions for example, multiple units or components may be combined or Can be integrated into another device, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or software function unit.
  • 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.
  • the technical solutions of the embodiments of the present application may be essentially or part of the contribution to the existing technology or all or part of the technical solutions may be embodied in the form of software products, which are stored in a storage medium
  • several instructions are included to enable a device (which may be a single-chip microcomputer, chip, etc.) or processor to execute all or part of the steps of the methods of the embodiments of the present application.
  • the foregoing storage media include various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Telephone Function (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

一种定位方法和装置,涉及终端领域,应用于终端的定位过程中,能够在定位过程中降低终端的电量消耗。定位方法为:第一设备确定第一设备与第二设备之间的第一距离;当第一距离大于或等于第一阈值时,第一设备向第二设备发送第一指示信息,第一指示信息用于指示第二设备采用第一定位方式;当第一距离小于第二阈值时,第一设备向第二设备发送第二指示信息,第二指示信息用于指示第二设备采用第二定位方式;其中,第二阈值小于或等于第一阈值,第一定位方式的定位精度小于第二定位方式的定位精度。

Description

一种定位方法和装置
本申请要求于2018年10月17日提交中国专利局、申请号为201811210028.2、申请名称为“一种定位的方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端领域,尤其涉及一种定位方法和装置。
背景技术
智能手环、智能手表、宠物追踪器、行李追踪器、手机等移动智能硬件(下文称为终端)普遍具有位置定位功能。通常,为了准确定位终端,可以采用高精度的定位方式对终端进行多次定位。
但是,对于宠物找回、接人、追踪移动目标等场景,需要精确接近目标,并且要尽可能地避免目标对象上的终端因电量消耗完而关机。这种情况下,采用高精度的定位方式对终端进行频繁定位会导致终端的电量消耗增大,终端可能会很快自动关机。
发明内容
本申请实施例提供一种定位方法和装置,能够在定位过程中降低终端的电量消耗。
第一方面,本申请实施例提供一种定位方法,包括:第一设备确定第一设备与第二设备之间的第一距离;当第一距离大于或等于第一阈值时,第一设备向第二设备发送第一指示信息,第一指示信息用于指示第二设备采用第一定位方式;当第一距离小于第二阈值时,第一设备向第二设备发送第二指示信息,第二指示信息用于指示第二设备采用第二定位方式;其中,第二阈值小于或等于第一阈值,第一定位方式的定位精度小于第二定位方式的定位精度。也就是说,当第一设备与第二设备之间的第一距离较大时(大于或等于第一阈值时),第二设备可以采用精度较低的定位方式(第一定位方式);当第一设备与第二设备之间的第一距离较小时(小于第二阈值,第二阈值小于第一阈值),第二设备可以采用精度较高的定位方式(第二定位方式)。这样,可以避免第二终端设备一直采用高精度的定位方式,能够在定位过程中降低终端的电量消耗,降低终端关机的可能性。
在一种可能的实现方式中,第一定位方式的定位频率与第二定位方式的定位频率相同或不同。即第一定位方式的定位频率可以大于、小于或等于第二定位方式的定位频率。也就是说,当采用较低精度的定位方式时,可以采用较低的定位频率,也可以采用较高的定位频率;当采用较高精度的定位方式时,可以采用较低的定位频率,也可以采用较高的定位频率,本申请不做限定。
在一种可能的实现方式中,第一定位方式的定位频率小于第二定位方式的定位频率。当采用较低精度的定位方式时,同时采用较低的定位频率,可以进一步节省终端的电量消耗,降低终端关机的可能性。当采用较高精度的定位方式时,同时采用较高 的定位频率,可以更精确的定位终端的位置。
在一种可能的实现方式中,该方法还包括:第一设备接收第二设备采用第一定位方式得到的第一定位信息,第一定位信息用于指示第二设备的第一位置;第一设备基于第一定位信息以第一显示方式显示第二设备的第一位置;或者,第一设备接收第二设备采用第二定位方式得到的第二定位信息,第二定位信息用于指示第二设备的第二位置;第一设备基于第二定位信息以第二显示方式显示第二设备的第二位置;其中,第一显示方式的显示精度小于第二显示方式的显示精度。其中,第一显示方式可以是较低精度显示方式。例如,可以用一个几何图形(例如,圆圈)表示第二设备的第一位置,第二设备的第一位置的误差范围在100m以内。第二显示方式可以是较高精度的显示方式。例如,可以用一个点表示第二设备的第一位置,第二设备的第一位置的误差范围在5m以内。
在一种可能的实现方式中,第一设备以第一显示方式显示第二设备的位置后,该方法还包括:接收用户对第二设备的位置的第一操作,响应于第一操作,以第二显示方式显示第二设备的位置。这样,当用户对第一显示方式的显示精度不满意时,可以进行第一操作,从而第一设备以第二显示方式显示第二设备的位置,第二显示方式的显示精度大于第一显示方式的显示精度,提高用户体验。
在一种可能的实现方式中,该方法还包括:若第二阈值小于第一阈值,当第一距离小于第一阈值且大于第二阈值时,第一设备向第二设备发送第三指示信息,第三指示信息用于指示第二设备采用第三定位方式;其中,第三定位方式的定位精度和第一定位方式的定位精度相同,且第三定位方式的定位频率大于第一定位方式的定位频率;或者,第三定位方式的定位精度和第二定位方式的定位精度相同,且第三定位方式的定位频率小于第二定位方式的定位频率。
在一种可能的实现方式中,第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;第二定位方式包括卫星定位、无线保真(wireless fidelity,Wifi)定位、蓝牙定位、传感器惯性定位中的至少一种。
第二方面,本申请实施例提供一种定位方法,包括:若第二设备接收第一设备发送的第一指示信息;第一指示信息用于指示第二设备采用第一定位方式;第二设备采用第一定位方式,并向第一设备发送采用第一定位方式得到的第一定位信息;其中,第一定位信息用于指示第二设备的第一位置;若第二设备接收第一设备发送的第二指示信息;第二指示信息用于指示第二设备采用第二定位方式;第二设备采用第二定位方式,并向第一设备发送采用第二定位方式得到的第二定位信息;其中,第二定位信息用于指示第二设备的第二位置;其中,第一定位方式的定位精度小于第二定位方式的定位精度。
在一种可能的实现方式中,第一定位方式的定位频率与第二定位方式的定位频率相同或不同。
在一种可能的实现方式中,第一定位方式的定位频率小于第二定位方式的定位频率。
在一种可能的实现方式中,第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;第二定位方式包括卫星定位、无线保真Wi-Fi定位、蓝牙定位、传感器 惯性定位中的至少一种。
第三方面,本申请实施例提供一种第一设备,包括:确定单元,用于确定第一设备与第二设备之间的第一距离;发送单元,用于当第一距离大于或等于第一阈值时,向第二设备发送第一指示信息,第一指示信息用于指示第二设备采用第一定位方式;发送单元,还用于当第一距离小于第二阈值时,向第二设备发送第二指示信息,第二指示信息用于指示第二设备采用第二定位方式;其中,第二阈值小于或等于第一阈值,第一定位方式的定位精度小于第二定位方式的定位精度。
在一种可能的实现方式中,第一定位方式的定位频率与第二定位方式的定位频率相同或不同。
在一种可能的实现方式中,第一定位方式的定位频率小于第二定位方式的定位频率。
在一种可能的实现方式中,还包括接收单元,用于:接收第二设备采用第一定位方式得到的第一定位信息,第一定位信息用于指示第二设备的第一位置;显示单元,用于基于第一定位信息以第一显示方式显示第二设备的第一位置;或者,接收单元,用于接收第二设备采用第二定位方式得到的第二定位信息,第二定位信息用于指示第二设备的第二位置;显示单元,用于基于第二定位信息以第二显示方式显示第二设备的第二位置;其中,第一显示方式的显示精度小于第二显示方式的显示精度。
在一种可能的实现方式中,接收单元还用于:接收用户对第二设备的位置的第一操作;显示单元还用于:响应于第一操作,以第二显示方式显示第二设备的位置。
在一种可能的实现方式中,发送单元还用于:若第二阈值小于第一阈值,当第一距离小于第一阈值且大于第二阈值时,向第二设备发送第三指示信息,第三指示信息用于指示第二设备采用第三定位方式;其中,第三定位方式的定位精度和第一定位方式的定位精度相同,且第三定位方式的定位频率大于第一定位方式的定位频率;或者,第三定位方式的定位精度和第二定位方式的定位精度相同,且第三定位方式的定位频率小于第二定位方式的定位频率。
在一种可能的实现方式中,第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;第二定位方式包括卫星定位、无线保真Wifi定位、蓝牙定位、传感器惯性定位中的至少一种。
第四方面,本申请实施例提供一种第二设备,包括:定位单元,用于若通过接收单元接收第一设备发送的第一指示信息;第一指示信息用于指示第二设备采用第一定位方式;采用第一定位方式,并通过发送单元向第一设备发送采用第一定位方式得到的第一定位信息;其中,第一定位信息用于指示第二设备的第一位置;定位单元,还用于若通过接收单元接收第一设备发送的第二指示信息;第二指示信息用于指示第二设备采用第二定位方式;采用第二定位方式,并通过发送单元向第一设备发送采用第二定位方式得到的第二定位信息;其中,第二定位信息用于指示第二设备的第二位置;其中,第一定位方式的定位精度小于第二定位方式的定位精度。
在一种可能的实现方式中,第一定位方式的定位频率与第二定位方式的定位频率相同或不同。
在一种可能的实现方式中,第一定位方式的定位频率小于第二定位方式的定位频 率。
在一种可能的实现方式中,第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;第二定位方式包括卫星定位、无线保真Wi-Fi定位、蓝牙定位、传感器惯性定位中的至少一种。
第五方面,本申请实施例提供一种第一设备,包括:处理器,用于确定第一设备与第二设备之间的第一距离;收发器,用于当第一距离大于或等于第一阈值时,向第二设备发送第一指示信息,第一指示信息用于指示第二设备采用第一定位方式;收发器,还用于当第一距离小于第二阈值时,向第二设备发送第二指示信息,第二指示信息用于指示第二设备采用第二定位方式;其中,第二阈值小于或等于第一阈值,第一定位方式的定位精度小于第二定位方式的定位精度。
在一种可能的实现方式中,第一定位方式的定位频率与第二定位方式的定位频率相同或不同。
在一种可能的实现方式中,第一定位方式的定位频率小于第二定位方式的定位频率。
在一种可能的实现方式中,还包括收发器,用于:接收第二设备采用第一定位方式得到的第一定位信息,第一定位信息用于指示第二设备的第一位置;显示单元,用于基于第一定位信息以第一显示方式显示第二设备的第一位置;或者,收发器,用于接收第二设备采用第二定位方式得到的第二定位信息,第二定位信息用于指示第二设备的第二位置;显示单元,用于基于第二定位信息以第二显示方式显示第二设备的第二位置;其中,第一显示方式的显示精度小于第二显示方式的显示精度。
在一种可能的实现方式中,收发器还用于:接收用户对第二设备的位置的第一操作;显示单元还用于:响应于第一操作,以第二显示方式显示第二设备的位置。
在一种可能的实现方式中,收发器还用于:若第二阈值小于第一阈值,当第一距离小于第一阈值且大于第二阈值时,向第二设备发送第三指示信息,第三指示信息用于指示第二设备采用第三定位方式;其中,第三定位方式的定位精度和第一定位方式的定位精度相同,且第三定位方式的定位频率大于第一定位方式的定位频率;或者,第三定位方式的定位精度和第二定位方式的定位精度相同,且第三定位方式的定位频率小于第二定位方式的定位频率。
在一种可能的实现方式中,第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;第二定位方式包括卫星定位、无线保真Wifi定位、蓝牙定位、传感器惯性定位中的至少一种。
第六方面,本申请实施例提供一种第二设备,包括:处理器,用于若通过收发器接收第一设备发送的第一指示信息;第一指示信息用于指示第二设备采用第一定位方式;采用第一定位方式,并通过收发器向第一设备发送采用第一定位方式得到的第一定位信息;其中,第一定位信息用于指示第二设备的第一位置;处理器,还用于若通过收发器接收第一设备发送的第二指示信息;第二指示信息用于指示第二设备采用第二定位方式;采用第二定位方式,并通过收发器向第一设备发送采用第二定位方式得到的第二定位信息;其中,第二定位信息用于指示第二设备的第二位置;其中,第一定位方式的定位精度小于第二定位方式的定位精度。
在一种可能的实现方式中,第一定位方式的定位频率与第二定位方式的定位频率相同或不同。
在一种可能的实现方式中,第一定位方式的定位频率小于第二定位方式的定位频率。
在一种可能的实现方式中,第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;第二定位方式包括卫星定位、无线保真Wi-Fi定位、蓝牙定位、传感器惯性定位中的至少一种。
第七方面,本发明实施例提供了一种装置,该装置以芯片的产品形态存在,该装置的结构中包括处理器和存储器,该存储器用于与处理器耦合,保存该装置必要的程序指令和数据,该处理器用于执行存储器中存储的程序指令,使得该装置执行上述方法中第一设备或第二设备的功能。
第八方面,本发明实施例提供了一种第一设备或第二设备,该第一设备或第二设备可以实现上述方法实施例中第一设备或第二设备所执行的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个上述功能相应的模块。
在一种可能的设计中,该第一设备或第二设备的结构中包括处理器和通信接口,该处理器被配置为支持该第一设备或第二设备执行上述方法中相应的功能。该通信接口用于支持该第一设备或第二设备与其他网元之间的通信。该第一设备或第二设备还可以包括存储器,该存储器用于与处理器耦合,其保存该第一设备或第二设备必要的程序指令和数据。
第九方面,本发明实施例提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行第一方面或第二方面提供的任意一种方法。
第十方面,本发明实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行第一方面或第二方面提供的任意一种方法。
第十一方面,本发明实施例提供了一种定位系统,该系统包括第三方面或第五方面中的任一种可能的实现方式中所述的第一设备,以及第四方面或第六方面中的任一种可能的实现方式中所述的第二设备。
附图说明
图1为本申请实施例提供的一种适用于定位方法的通信系统架构示意图;
图2为本申请实施例提供的一种第一设备的结构示意图;
图3为本申请实施例提供的一种第二设备的结构示意图;
图4为本申请实施例提供的一种定位方法的信号交互示意图;
图5为本申请实施例提供的一种显示界面示意图;
图6为本申请实施例提供的又一种显示界面示意图;
图7为本申请实施例提供的再一种显示界面示意图;
图8为本申请实施例提供的再一种显示界面示意图;
图9为本申请实施例提供的一组显示界面示意图;
图10为本申请实施例提供的再一种显示界面示意图;
图11为本申请实施例提供的再一种显示界面示意图;
图11a为本申请实施例提供的又一组显示界面示意图;
图11b为本申请实施例提供的再一组显示界面示意图;
图11c为本申请实施例提供的再一种显示界面示意图;
图12为本申请实施例提供的再一种显示界面示意图;
图13为本申请实施例提供的再一组显示界面示意图;
图14为本申请实施例提供的又一种第一设备的结构示意图;
图15为本申请实施例提供的又一种第二设备的结构示意图。
具体实施方式
本申请实施例提供一种定位方法,应用于第一设备和第二设备组成的定位系统中。例如,应用于手机与(配对的)可穿戴设备(例如,智能手表)组成的定位系统中。第一设备和第二设备之间可以通过新无线接入(new radio access technical,New RAT)、长期演进(long term evolution,LTE)、蓝牙(bluetooth,BT)、Wifi或其它协议进行通信。
如图1所示,为本申请实施例提供的一种适用于定位方法的通信系统架构示意图,该通信系统包括第一设备(例如,手机10a)、第二设备(例如,智能手表10b)和网络设备(例如云服务器11)。云服务器11可以是手机10a和智能手表10b上安装的定位应用(application,APP)对应的服务器,或者可以为集成在其他APP内的定位程序对应的服务器,本申请不做限定。第一设备可以通过云服务器11调整第二设备的定位方式(的定位精度和/或定位频率),并接收第二设备根据相应的定位方式得到的定位信息,定位信息用于指示第二设备的位置。
第一设备和云服务器11之间,第二设备和云服务器11之间,可以通过无线的通信方式进行通信,或者可以通过有线的通信方式进行通信,无线的通信方式例如可以是通过无线接入网设备(例如,基站)进行通信。在LTE网络中,基站可以为演进型基站(evolved node base station,eNB)。在第五代移动通信技术(5-Generation,5G)网络中,基站可以为下一代基站(next generation node base station,gNB)、新型无线电基站(new radio eNB)、宏基站、微基站、高频基站或发送和接收点(transmission and reception point,TRP)等。有线的通信方式例如可以是通过架空电线路和电缆工程(包括架空、地下、水底电缆及光缆等)作为通讯传导的通信形式进行通信。
其中,本申请实施例提供的第一设备可以是用户设备(user equipment,UE),例如可以为手机、平板电脑、桌面型、膝上型笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)等设备。第二设备可以为各种可穿戴电子设备或IoT设备或UE,例如可以为智能手表、智能项圈、智能眼镜、智能手套、智能服饰、智能鞋或车载终端等等。
如图2所示,上述通信系统架构中的第一终端具体可以为手机100。手机100可以包括处理器110,外部存储器接口120,内部存储器121,USB接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,射频模块150,通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及SIM 卡接口195等。其中传感器模块可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器等。
本发明实施例示意的结构并不构成对手机100的限定。可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以是集成在同一个处理器中。
控制器可以是指挥手机100的各个部件按照指令协调工作的决策者。是手机100的神经中枢和指挥中心。控制器根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器中的存储器为高速缓冲存储器。可以保存处理器刚用过或循环使用的指令或数据。如果处理器需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括接口。其中接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器可以包含多组I2C总线。处理器可以通过不同的I2C总线接口分别耦合触摸传感器,充电器,闪光灯,摄像头等。例如:处理器可以通过I2C接口耦合触摸传感器,使处理器与触摸传感器通过I2C总线接口通信,实现手机100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器可以包含多组I2S总线。处理器可以通过I2S总线与音频模块耦合,实现处理器与音频模块之间的通信。在一些实施例中,音频模块可以通过I2S接口向通信模块传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块与通信模块可以通过PCM总线接口耦合。在一些实施例中,音频模块也可以通过PCM接口向通信模块传递音频信号,实现通过蓝牙耳机接听电话的功能。所述 I2S接口和所述PCM接口都可以用于音频通信,两种接口的采样速率不同。
UART接口是一种通用串行数据总线,用于异步通信。该总线为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器与通信模块160。例如:处理器通过UART接口与蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块可以通过UART接口向通信模块传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器与显示屏,摄像头等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器和摄像头通过CSI接口通信,实现手机100的拍摄功能。处理器和显示屏通过DSI接口通信,实现手机100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以配置为控制信号,也可配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器与摄像头,显示屏,通信模块,音频模块,传感器等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口可以用于连接充电器为手机100充电,也可以用于手机100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。还可以用于连接其他电子设备,例如AR设备等。
本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机100的结构限定。手机100可以采用本发明实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块可以通过USB接口接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块可以通过手机100的无线充电线圈接收无线充电输入。充电管理模块为电池充电的同时,还可以通过电源管理模块141为终端设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块接收所述电池和/或充电管理模块的输入,为处理器,内部存储器,外部存储器,显示屏,摄像头,和通信模块等供电。电源管理模块还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在一些实施例中,电源管理模块141也可以设置于处理器110中。在一些实施例中,电源管理模块141和充电管理模块也可以设置于同一个器件中。
手机100的无线通信功能可以通过天线模块1,天线模块2射频模块150,通信模块160,调制解调器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将蜂窝网天线复用为无线局域网分集天线。在一些实施例中,天线可以和调谐开关结合使用。
射频模块150可以提供应用在手机100上的包括2G/3G/4G/5G等无线通信的解决 方案的通信处理模块。可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(Low Noise Amplifier,LNA)等。射频模块由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调器进行解调。射频模块还可以对经调制解调器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,射频模块150的至少部分功能模块可以被设置于处理器150中。在一些实施例中,射频模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调器可以包括调制器和解调器。调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器,受话器等)输出声音信号,或通过显示屏显示图像或视频。在一些实施例中,调制解调器可以是独立的器件。在一些实施例中,调制解调器可以独立于处理器,与射频模块或其他功能模块设置在同一个器件中。
通信模块160可以提供应用在手机100上的包括无线局域网(wireless local area networks,WLAN)(例如,无线保真(wireless fidelity,WiFi))、蓝牙,全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案的通信处理模块。通信模块160可以是集成至少一个通信处理模块的一个或多个器件。通信模块经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器。通信模块160还可以从处理器接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,手机100的天线1和射频模块耦合,天线2和通信模块耦合。使得手机100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),LTE,5G新无线通信(New Radio,NR),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS))和/或星基增强系统(satellite based augmentation systems,SBAS)。从而,手机100可以获取手机的定位(位置)信息。
手机100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic  light emitting diode的,AMOLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏,N为大于1的正整数。
仍如图1所示,手机100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏以及应用处理器等实现拍摄功能。
ISP用于处理摄像头反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机100可以包括1个或N个摄像头,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。手机100可以支持一种或多种编解码器。这样,手机100可以播放或录制多种编码格式的视频,例如:MPEG1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现手机100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机100的存储能力。外部存储卡通过外部存储器接口与处理器通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,其他易失性固态存储器件,通用闪存存储器(universal flash storage,UFS)等。
手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳 机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块还可以用于对音频信号编码和解码。在一些实施例中,音频模块可以设置于处理器110中,或将音频模块的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机100可以通过扬声器收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机100接听电话或语音信息时,可以通过将受话器靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风发声,将声音信号输入到麦克风。手机100可以设置至少一个麦克风。在一些实施例中,手机100可以设置两个麦克风,除了采集声音信号,还可以实现降噪功能。在一些实施例中,手机100还可以设置三个,四个或更多麦克风,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口可以是USB接口,也可以是3.5mm的开放移动终端平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器可以设置于显示屏。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器,电极之间的电容改变。手机100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏,手机100根据压力传感器检测所述触摸操作强度。手机100也可以根据压力传感器的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器确定手机100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器检测手机100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消手机100的抖动,实现防抖。陀螺仪传感器还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,手机100通过气压传感器测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。手机100可以利用磁传感器检测翻盖皮套的开合。在一些实施例中,当手机100是翻盖机时,手机100可以根据磁传感器检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等 特性。
加速度传感器180E可检测手机100在各个方向上(一般为三轴)加速度的大小。当手机100静止时可检测出重力的大小及方向。还可以用于识别终端姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。手机100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,手机100可以利用距离传感器测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。通过发光二极管向外发射红外光。使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定手机100附近有物体。当检测到不充分的反射光时,可以确定手机100附近没有物体。手机100可以利用接近光传感器检测用户手持手机100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。手机100可以根据感知的环境光亮度自适应调节显示屏亮度。环境光传感器也可用于拍照时自动调节白平衡。环境光传感器还可以与接近光传感器配合,检测手机100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,手机100利用温度传感器检测的温度,执行温度处理策略。例如,当温度传感器上报的温度超过阈值,手机100执行降低位于温度传感器附近的处理器的性能,以便降低功耗实施热保护。
触摸传感器180K,也称“触控面板”。可设置于显示屏。用于检测作用于其上或附近的触摸操作。可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型,并通过显示屏提供相应的视觉输出。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器可以获取人体声部振动骨块的振动信号。骨传导传感器也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器也可以设置于耳机中。音频模块170可以基于所述骨传导传感器获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键可以是机械按键。也可以是触摸式按键。手机100接收按键输入,产生与手机100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏不同区域的触摸操作,也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接用户标识模块(subscriber identity module,SIM)。SIM卡 可以通过插入SIM卡接口,或从SIM卡接口拔出,实现和手机100的接触和分离。手机100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口也可以兼容不同类型的SIM卡。SIM卡接口也可以兼容外部存储卡。手机100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,手机100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在手机100中,不能和手机100分离。
如图3所示,上述通信系统架构中的第二终端例如可以为可穿戴设备200。可穿戴设备200中可以包括电源201、处理器202、存储模块203、通信模块204、射频模块205、天线01、天线02、麦克风206(例如骨传导麦克风)、扬声器207以及显示屏208等部件。
在一些实施例中,可穿戴设备200的天线01和通信模块耦合,天线02和射频模块耦合。使得可穿戴设备200可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括LTE,5G NR,BT,GNSS,WLAN,NFC,FM,和/或IR技术等。其中,GNSS可以包括GPS,全球导航卫星系统,北斗卫星导航系统,准天顶卫星系统和/或星基增强系统。从而,可穿戴设备200可以获取可穿戴设备的定位信息。
可以理解的是,上述可穿戴设备200可以具有比图3中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图3中所示出的各种部件可以在包括一个或多个信号处理或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。并且,在本申请的描述中,除非另有说明,“至少一个”是指一个或多个,“多个”是指两个或多于两个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本发明实施例中,“的(of)”,“相应的(corresponding,relevant)”和“对应的(corresponding)”有时可以混用,应当指出的是,在不强调其区别时,其所要表达的含义是一致的。
本申请下述实施例中各个设备之间的消息名字或者消息中各参数的名字仅是一个示例,具体实现中也可以是其他名字,本申请实施例对此不作具体限定。
为了便于理解,以下结合附图对本申请实施例提供的定位方法进行具体介绍。
如图4所示,本申请实施例提供一种定位方法,以第一设备为手机,第二设备为目标设备(即待定位或待追踪设备,例如,可穿戴设备)为例进行说明包括:
401、第一设备确定第一设备与第二设备之间的第一距离。
举例来说,当用户希望通过手机定位或追踪目标设备时,如图5所示,用户可以在手机的桌面501上点击手机的定位APP的图标502。当手机检测到用户点击桌面501上的定位APP的图标502的操作后,可以启动定位APP,显示如图6所示的图形用户界面(graphical user interface,GUI),该GUI可以称为定位界面601。该定位界面601可以显示手机所在区域(例如,区、市或省等)的地图。该定位界面601上还可以包括用于指示目标设备的控件602,用于放大当前位置显示级别的控件603,以及用于缩小当前位置显示级别的控件604等等。
可选的,用户可以通过手机的其他APP(例如,微信APP)中的定位小程序来定位或追踪目标设备,本申请不做限定。
当手机检测到用户点击目标设备的控件602的操作后,示例性的,手机显示如图7所示的GUI,该GUI可以称为目标设备的设置界面605。用户可以通过点击选择按钮606,将选择按钮606设置于右侧以选择可穿戴设备(1A)作为目标设备。手机也可以将上一次选定的目标设备作为默认目标设备(例如,当用户退出定位APP后,下一次进入该定位目标设备的设置界面605,选择按钮606默认设置于右侧)。
可选的,用户可以在目标设备的设置界面605添加新的目标设备。例如,可以通过蓝牙配对、手机号码查找或微信朋友查找的方式来添加新的目标设备,本申请不做限定。可以理解的是,用户可以同时选择多个待定位的目标设备,若手机确定用户同时选择多个待定位的目标设备,手机可同时显示多个目标设备的位置。下文以目标设备的数量为一个进行说明。
当手机确定用户选定目标设备后,可以向云服务器发送定位请求,该定位请求用于请求目标设备的当前位置。云服务接收到手机的定位请求后,通知目标设备进行定位并向云服务器发送(上报)位置信息。目标设备接收到云服务器发送的通知后,开启定位功能,将定位得到的位置(信息)发送给云服务器。云服务器将该位置信息转发给手机。手机接收目标设备的位置信息,同时,手机可以开启定位功能以获取自身的位置信息,手机根据目标设备的位置信息和自身的位置信息确定手机与目标设备之间的第一距离。
当第一设备确定第一距离大于或等于第一阈值时,执行步骤402-406;当第一设备确定第一距离小于第二阈值时,执行步骤407和411。其中,第二阈值小于或等于第一阈值。
402、当第一距离大于或等于第一阈值时,第一设备向第二设备发送第一指示信息,第一指示信息用于指示第二设备采用第一定位方式。
其中,第一定位方式的定位精度较低,例如第一定位方式可以为基站定位的定位方式或IP地址定位的定位方式。第一定位方式的定位频率可以设置得较低(例如60s/次),以节省耗电。第一定位方式的定位频率可以是系统默认的,也可以由用户进行设置。
示例性的,如图7所示,用户可以在目标设备的设置界面605点击控件607,如 图8所示,手机检测到用户点击控件607的操作后,手机可以显示目标设备定位方式设置界面801。其中,控件802表示第一距离大于第一阈值(例如,第一阈值为1km),控件803表示当第一距离大于第一阈值时,采用第一定位方式(例如,基站定位)。控件804表示第一定位方式的定位精度(例如,可以为100m),控件805表示第一定位方式的定位频率(例如,可以为60s/次)。
如图9中的(a)所示,用户点击控件802后,手机可以显示(下拉)列表控件806,用户可以重新设置(选择)第一阈值。如图9中的(b)所示,用户点击控件804后,手机可以显示(下拉)列表控件807,用户可以重新设置(选择)第一定位方式的定位精度。如图9中的(c)所示,用户点击控件805后,手机可以显示(下拉)列表控件808,用户可以重新设置(选择)第一定位方式的定位频率。
403、第二设备接收第一设备发送的第一指示信息。
第二设备可以通过云服务器接收第一指示信息。即第二设备可以接收云服务器转发的第一指示信息。
404、第二设备采用第一定位方式,并向第一设备发送采用第一定位方式得到的第一定位信息。
其中,第一定位信息用于指示第二设备的第一位置。
405、第一设备接收第二设备采用第一定位方式得到的第一定位信息。
第一设备可以通过云服务器接收第一定位信息。即第一设备可以接收云服务器转发的第一定位信息。
406、第一设备基于第一定位信息以第一显示方式显示第二设备的第一位置。
其中,第一显示方式可以是低精度显示方式,即通过第一显示方式显示的二设备的位置的误差范围较大。例如,可以用一个几何图形表示第二设备的第一位置,第二设备的第一位置的误差范围为100m(米)以内。当然,第二设备的第一位置的误差范围在也可以为50m、200m或300m等等,本申请不做限定。其中,几何图形可以是圆(圈)、椭圆、多边形、扇形或弓形等。
举例来说,如图10所示,手机可以在定位界面601中显示目标设备的图标701、目标设备的位置(目标设备的位置可以用圆圈702表示)和目标设备当前的定位方式703。其中,目标设备当前的定位方式可以为第一定位方式(例如,基站定位);定位精度可以是100m(以内),即圆圈702表示的位置的误差范围在100m以内;定位频率可以是60秒(s)/次。手机也可以显示手机用户的图标704以及手机的位置,手机的位置可以显示为一个精确的点或一个圆圈(图10中未示出),可以视手机的定位方式而定。当然,手机也可以不显示手机用户的图标704,本申请不做限定。
在一种可能的设计中,第一设备基于第一定位信息以第一显示方式显示第二设备的第一位置后,第一设备接收用户对第二设备的位置的第一操作。第一设备响应于第一操作,以第二显示方式显示第二设备的位置,第二显示方式的显示精度大于第一显示方式的显示精度。
示例性的,如图11所示,用户可以点击目标设备的图标701或者圆圈702,手机可以显示功能列表控件706。该功能列表控件706可以包括精确定位控件707。用户可以点击精确定位控件707,手机检测到用户点击精确定位控件707的操作后,手机可 以通知目标设备采用第二定位方式,手机接收目标设备以第二定位方式得到的定位信息,而后,手机以第二显示方式显示目标设备的位置。如图11a中的(a)所示,可以用一个更小的几何图形(例如,更小的圆圈7021)表示目标设备的位置,该圆圈7021表示的位置的误差范围在50m以内;或者,如图11a中的(b)所示,可以用一个点7022来表示目标设备的位置,点7022表示的位置的误差范围可以在5米以内。第二定位方式的定位频率可以保持不变。
可选的,如图11所示,该功能列表控件706还可以包括距离控件708、运动速度控件709、运动方向控件710、历史轨迹控件711和路线控件712等。当用户点击距离控件708时,如图11b中的(a)所示,手机可以显示手机与目标设备的实时距离713。当用户点击运动速度控件709时,如图11b中的(b)所示,手机可以显示目标设备的实时运动速度714。当用户点击运动方向控件710时,如图11b中的(c)所示,手机可以显示目标设备的实时运动方向715(例如,实时运动方向可以用箭头或三角形指示,本申请不做限定)。当用户点击历史轨迹控件711时,如图11b中的(d)所示,手机可以显示目标设备的历史轨迹716(其中,圆圈717可以表示手机初次获取到的目标设备的位置)。当用户点击路线控件712时,手机可以显示从“我的位置”(手机的位置)到“目标设备的位置”的不同出行方式的优选出行方案(例如,公交出行方案(如图11c所示),骑行(共享单车)出行方案,打车出行方案,自驾出行方案或步行出行方案等)。
可选的,手机每次接收到目标设备根据第一定位方式的定位频率发送的定位信息后,可以震动、发出提示音、闪烁呼吸灯或主动点亮屏幕,以提醒用户目标设备的位置已更新。同时,手机在定位界面601中更新目标设备的位置。
407、当第一距离小于第二阈值时,第一设备向第二设备发送第二指示信息,第二指示信息用于指示第二设备采用第二定位方式。
第二定位方式的定位精度较高,例如第二定位方式可以为卫星定位、Wifi定位、蓝牙定位、传感器惯性定位等定位方式。第二定位方式的定位频率可以设置得较高(例如,10s/次),以精确定位目标设备。第二定位方式的定位频率可以是系统默认的,也可以由用户进行设置。用户对第二定位方式进行设置的过程可以参考步骤402,在此不做赘述。
需要说明的是,第一定位方式的定位精度小于第二定位方式的定位精度。第一定位方式的定位频率与第二定位方式的定位频率相同或不同。可选的,第一定位方式的定位频率可以小于第二定位方式的定位频率。
在一种可能的设计中,若第二阈值小于第一阈值,当第一距离小于第一阈值且大于第二阈值时,第一设备向第二设备发送第三指示信息,第三指示信息用于指示第二设备采用第三定位方式。其中,第三定位方式的定位精度和第一定位方式的定位精度相同,且第三定位方式的定位频率大于第一定位方式的定位频率;或者,第三定位方式的定位精度和第二定位方式的定位精度相同,且第三定位方式的定位频率小于第二定位方式的定位频率。
408、第二设备接收第一设备发送的第二指示信息。
第二设备可以通过云服务器接收第二指示信息。即第二设备可以接收云服务器转 发的第二指示信息。
409、第二设备采用第二定位方式,并向第一设备发送采用第二定位方式得到的第二定位信息。
其中,第二定位信息用于指示第二设备的第二位置。
410、第一设备接收第二设备采用第二定位方式得到的第二定位信息。
第一设备可以通过云服务器接收第二定位信息。即第一设备可以接收云服务器转发的第二定位信息。
411、第一设备基于第二定位信息以第二显示方式显示第二设备的第二位置。
需要说明的是,第二显示方式的显示精度大于第一显示方式的显示精度,即通过第二显示方式显示的第二设备的位置的误差范围小于通过第一显示方式显示的第二设备的位置的误差范围。例如,可以用一个更小的几何图形(相较于第一显示方式对应的几何图形)表示第二设备的第一位置,或者可以用一个点表示第二设备的第一位置,第二设备的第一位置的误差范围在5m(也可以是1m、2m、3m等等)以内。
如图12所示,手机可以在定位界面601中显示目标设备的图标701、目标设备的位置(目标设备的位置可以用一个点705表示)和目标设备当前的定位方式703。其中,目标设备当前的定位方式可以为第二定位方式(例如,GPS定位方式),其定位精度可以是5m,即点104表示的位置的误差范围在5m之内,定位频率可以是10s/次。手机也可以显示手机用户的图标704以及手机的位置,手机的位置可以显示为一个精确的点或一个圆圈(图12中未示出),视手机的定位方式而定。当然,手机也可以不显示手机用户的图标704,本申请不做限定。
基于上述的技术方案,当第一设备与第二设备之间的第一距离大于或等于第一阈值时,第一设备向第二设备发送第一指示信息,以指示第二设备采用第一定位方式;当第一距离小于第二阈值(第二阈值小于或等于第一阈值)时,第一设备向第二设备发送第二指示信息,以指示第二设备采用第二定位方式;其中,第一定位方式的定位精度小于第二定位方式的定位精度,这样,可以避免第二终端设备一直采用高精度的定位方式,能够在定位过程中降低终端的电量消耗,从而降低终端关机的可能性。
下面结合本申请实施例的应用场景及有益效果对本申请实施例提供的定位方法进行介绍。
场景1:主人追踪佩戴具有定位功能的设备(例如,具有定位功能的宠物定位项圈)的宠物。
在野外游玩时,若佩戴具有定位功能的宠物定位项圈的宠物狗走丢了,主人可以在手机的定位APP上定位宠物狗的位置,处理逻辑如下:
假设第二阈值小于第一阈值,第一阈值为1千米,第二阈值为500米。当手机的定位APP判断狗狗与主人之间的距离大于或等于1千米时,如图13中的(a)所示,手机(主人,以图标704表示)可以远程指示定位项圈(宠物狗,以图标701表示)采用第一定位方式(例如,基站定位方式,定位精度为100m),且每60s上报一次位置信息。当手机的定位APP判断狗狗与主人之间的距离小于1千米且大于500米时,如图13中的(b)所示,手机可以远程指示定位项圈采用第三定位方式,第三定位方式的定位精度与第一定位方式相同(例如,基站定位方式,定位精度为100m),第三 定位方式的定位频率大于第一定位方式的定位频率(例如,每30s上报一次位置信息)。或者,当手机的定位APP判断狗狗与主人之间的距离小于1千米且大于500米时,如图13中的(c)所示,手机可以远程指示定位项圈采用第三定位方式,第三定位方式的定位精度与第二定位方式相同(例如,GPS定位方式,定位精度为5m),第三定位方式的定位频率小于第一定位方式的定位频率(例如,每40s上报一次位置信息)。当手机的定位APP判断狗狗与主人之间的距离小于500米时,如图13中的(d)所示,手机可以远程指示定位项圈采用第二定位方式(例如,GPS定位方式,定位精度为5m),且每10s上报一次位置信息。
这样,避免了因为过度追求定位精度和定位频率而牺牲了定位项圈的工作时长,能够帮助主人尽快找到宠物,避免定位项圈关机导致主人无法找回宠物。
场景2:用户1与用户2通过微信共享位置。
假设用户1和用户2是微信好友,且用户1和用户2都微信在线。用户1在手机上通过微信向用户2佩戴的智能手表发起位置共享,用户2在智能手表上同意位置共享。若第一阈值为1千米,第二阈值等于第一阈值,当手机判断用户1与用户2之间的距离大于或等于1千米时,如图10所示,手机(用户1,以图标704表示)可以远程指示智能手表(用户2,以图标701表示)采用第一定位方式(例如,基站定位方式,定位精度为100m)且每60s上报一次位置信息。当手机判断用户1与用户2之间的距离小于1千米时,如图12所示,手机可以远程指示智能手表采用第二定位方式(例如,GPS定位方式,定位精度为5m),且每10s上报一次位置信息。并且,手机可以将手机的位置信息发送给智能手表(例如,手机可以每60s或每20s或每10s向智能手表发送一次位置信息),以便双方共享位置。另外,手机的定位方式可以与智能手表的定位方式相同或不同(例如,当智能手表采用第一定位方式时,手机可以采用第一定位方式或第二定位方式进行定位)。
这样,相比采用高精度的定位方式对目标终端进行多次定位导致目标终端的电量消耗增大,根据距离大小调整定位精度和定位频率可以在尽量靠近目标设备的情况下节省手机和智能手表的定位功耗,尽量避免手机和智能手表自动关机(例如,在寻找佩戴具有定位功能的设备(例如,可穿戴设备)的(走失的)老人或小孩的场景下,尽量靠近目标且保证目标设备不自动关机是特别重要的)。
上述主要从第一设备和第二设备的角度对本申请实施例提供的方案进行了介绍。可以理解的是,第一设备和第二设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对第一设备和第二设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为 一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图14示出了上述实施例中所涉及的第一设备14的一种可能的结构示意图一,第一设备包括:确定单元1401、发送单元1402、接收单元1403和显示单元1404。在本申请实施例中,确定单元1401,用于确定第一设备与第二设备之间的第一距离;发送单元1402,用于当第一距离大于或等于第一阈值时,向第二设备发送第一指示信息,第一指示信息用于指示第二设备采用第一定位方式;还用于当第一距离小于第二阈值时,向第二设备发送第二指示信息,第二指示信息用于指示第二设备采用第二定位方式;其中,第二阈值小于或等于第一阈值,第一定位方式的定位精度小于第二定位方式的定位精度。接收单元1403,用于:接收第二设备采用第一定位方式得到的第一定位信息,第一定位信息用于指示第二设备的第一位置;显示单元1404,用于基于第一定位信息以第一显示方式显示第二设备的第一位置。或者,接收单元1403,用于接收第二设备采用第二定位方式得到的第二定位信息,第二定位信息用于指示第二设备的第二位置;显示单元1404,用于基于第二定位信息以第二显示方式显示第二设备的第二位置;其中,第一显示方式的显示精度小于第二显示方式的显示精度。
其中,确定单元1401用于支持第一设备执行图4中的过程401;发送单元1402用于支持第一设备执行图4中的过程402或407;接收单元1403用于支持第一设备执行图4中的过程405或410;显示单元1404用于支持第一设备执行图4中的过程406或411。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的第一设备,用于执行上述定位方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,第一设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对第一设备的动作进行控制管理,例如,可以用于支持第一设备执行上述确定单元1401、显示单元1404执行的步骤。通信模块,可以用于支持上述发送单元1402、接收单元1403执行的步骤。存储模块可以用于支持第一设备存储程序代码和数据等。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理和微处理器的组合等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他第一设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的第一设备可以为具有图2所示结构的设备。
在采用对应各个功能划分各个功能模块的情况下,图15示出了上述实施例中所涉及的第二设备15的一种可能的结构示意图一,第二设备包括:定位单元1501、接收单元1502和发送单元1503。在本申请实施例中,定位单元1501,用于若通过接收单元1502接收第一设备发送的第一指示信息;第一指示信息用于指示第二设备采用第一 定位方式;采用第一定位方式,并通过发送单元1503向第一设备发送采用第一定位方式得到的第一定位信息;其中,第一定位信息用于指示第二设备的第一位置;定位单元1501,还用于若通过接收单元1502接收第一设备发送的第二指示信息;第二指示信息用于指示第二设备采用第二定位方式;采用第二定位方式,并通过发送单元1503向第一设备发送采用第二定位方式得到的第二定位信息;其中,第二定位信息用于指示第二设备的第二位置;其中,第一定位方式的定位精度小于第二定位方式的定位精度。
其中,定位单元1501和发送单元1503用于支持第二设备执行图4中的过程404或409;接收单元1502用于支持第二设备执行图4中的过程403或408。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本实施例提供的第二设备,用于执行上述定位方法,因此可以达到与上述实现方法相同的效果。
在采用集成的单元的情况下,第二设备可以包括处理模块、存储模块和通信模块。其中,处理模块可以用于对第二设备的动作进行控制管理,例如,可以用于支持第二设备执行上述定位单元1501执行的步骤。通信模块,可以用于支持第二设备执行上述接收单元1502和发送单元1503执行的步骤。存储模块可以用于支持第二设备存储程序代码和数据等。
其中,处理模块可以是处理器或控制器。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,数字信号处理器等等。存储模块可以是存储器。通信模块具体可以为射频电路、蓝牙芯片、Wi-Fi芯片等与其他第二设备交互的设备。
在一个实施例中,当处理模块为处理器,存储模块为存储器时,本实施例所涉及的第二设备可以为具有图3所示结构的设备。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在第一设备或第二设备上运行时,使得第一设备或第二设备执行上述相关方法步骤实现上述实施例中的定位方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的定位方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的定位方法。
其中,本实施例提供的第一设备、第二设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完 成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (25)

  1. 一种定位方法,其特征在于,包括:
    第一设备确定所述第一设备与第二设备之间的第一距离;
    当所述第一距离大于或等于第一阈值时,所述第一设备向所述第二设备发送第一指示信息,所述第一指示信息用于指示所述第二设备采用第一定位方式;
    当所述第一距离小于第二阈值时,所述第一设备向所述第二设备发送第二指示信息,所述第二指示信息用于指示所述第二设备采用第二定位方式;
    其中,所述第二阈值小于或等于所述第一阈值,所述第一定位方式的定位精度小于所述第二定位方式的定位精度。
  2. 根据权利要求1所述的定位方法,其特征在于,所述第一定位方式的定位频率与所述第二定位方式的定位频率相同或不同。
  3. 根据权利要求1或2所述的定位方法,其特征在于,所述第一定位方式的定位频率小于所述第二定位方式的定位频率。
  4. 根据权利要求1-3任一项所述的定位方法,其特征在于,所述方法还包括:
    所述第一设备接收所述第二设备采用所述第一定位方式得到的第一定位信息,所述第一定位信息用于指示所述第二设备的第一位置;
    所述第一设备基于所述第一定位信息以第一显示方式显示所述第二设备的所述第一位置;或者
    所述第一设备接收所述第二设备采用所述第二定位方式得到的第二定位信息,所述第二定位信息用于指示所述第二设备的第二位置;
    所述第一设备基于所述第二定位信息以第二显示方式显示所述第二设备的所述第二位置;
    其中,所述第一显示方式的显示精度小于所述第二显示方式的显示精度。
  5. 根据权利要求4所述的定位方法,其特征在于,所述第一设备以第一显示方式显示所述第二设备的位置后,所述方法还包括:
    接收用户对所述第二设备的位置的第一操作,响应于所述第一操作,以所述第二显示方式显示所述第二设备的位置。
  6. 根据权利要求1-5任一项所述的定位方法,其特征在于,所述方法还包括:
    若所述第二阈值小于所述第一阈值,当所述第一距离小于所述第一阈值且大于所述第二阈值时,所述第一设备向所述第二设备发送第三指示信息,所述第三指示信息用于指示所述第二设备采用第三定位方式;
    其中,所述第三定位方式的定位精度和所述第一定位方式的定位精度相同,且所述第三定位方式的定位频率大于所述第一定位方式的定位频率;或者,所述第三定位方式的定位精度和所述第二定位方式的定位精度相同,且所述第三定位方式的定位频率小于所述第二定位方式的定位频率。
  7. 根据权利要求1-6任一项所述的定位方法,其特征在于,
    所述第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;
    所述第二定位方式包括卫星定位、无线保真Wifi定位、蓝牙定位、传感器惯性定位中的至少一种。
  8. 一种定位方法,其特征在于,包括:
    若第二设备接收第一设备发送的第一指示信息;所述第一指示信息用于指示所述第二设备采用第一定位方式;所述第二设备采用所述第一定位方式,并向所述第一设备发送采用所述第一定位方式得到的第一定位信息;其中,所述第一定位信息用于指示所述第二设备的第一位置;
    若所述第二设备接收所述第一设备发送的第二指示信息;所述第二指示信息用于指示所述第二设备采用第二定位方式;所述第二设备采用所述第二定位方式,并向所述第一设备发送采用所述第二定位方式得到的第二定位信息;其中,所述第二定位信息用于指示所述第二设备的第二位置;
    其中,所述第一定位方式的定位精度小于所述第二定位方式的定位精度。
  9. 根据权利要求8所述的定位方法,其特征在于,所述第一定位方式的定位频率与所述第二定位方式的定位频率相同或不同。
  10. 根据权利要求8或9所述的定位方法,其特征在于,所述第一定位方式的定位频率小于所述第二定位方式的定位频率。
  11. 根据权利要求8-10任一项所述的定位方法,其特征在于,
    所述第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;
    所述第二定位方式包括卫星定位、无线保真Wi-Fi定位、蓝牙定位、传感器惯性定位中的至少一种。
  12. 一种第一设备,其特征在于,包括:
    确定单元,用于确定所述第一设备与第二设备之间的第一距离;
    发送单元,用于当所述第一距离大于或等于第一阈值时,向所述第二设备发送第一指示信息,所述第一指示信息用于指示所述第二设备采用第一定位方式;
    所述发送单元,还用于当所述第一距离小于第二阈值时,向所述第二设备发送第二指示信息,所述第二指示信息用于指示所述第二设备采用第二定位方式;
    其中,所述第二阈值小于或等于所述第一阈值,所述第一定位方式的定位精度小于所述第二定位方式的定位精度。
  13. 根据权利要求12所述的第一设备,其特征在于,所述第一定位方式的定位频率与所述第二定位方式的定位频率相同或不同。
  14. 根据权利要求12或13所述的第一设备,其特征在于,所述第一定位方式的定位频率小于所述第二定位方式的定位频率。
  15. 根据权利要求12-14任一项所述的第一设备,其特征在于,还包括接收单元,用于:
    接收所述第二设备采用所述第一定位方式得到的第一定位信息,所述第一定位信息用于指示所述第二设备的第一位置;
    显示单元,用于基于所述第一定位信息以第一显示方式显示所述第二设备的所述第一位置;或者
    所述接收单元,用于接收所述第二设备采用所述第二定位方式得到的第二定位信息,所述第二定位信息用于指示所述第二设备的第二位置;
    所述显示单元,用于基于所述第二定位信息以第二显示方式显示所述第二设备的 所述第二位置;
    其中,所述第一显示方式的显示精度小于所述第二显示方式的显示精度。
  16. 根据权利要求15所述的第一设备,其特征在于,所述接收单元还用于:接收用户对所述第二设备的位置的第一操作;
    所述显示单元还用于:响应于所述第一操作,以所述第二显示方式显示所述第二设备的位置。
  17. 根据权利要求12-16任一项所述的第一设备,其特征在于,所述发送单元还用于:
    若所述第二阈值小于所述第一阈值,当所述第一距离小于所述第一阈值且大于所述第二阈值时,向所述第二设备发送第三指示信息,所述第三指示信息用于指示所述第二设备采用第三定位方式;
    其中,所述第三定位方式的定位精度和所述第一定位方式的定位精度相同,且所述第三定位方式的定位频率大于所述第一定位方式的定位频率;或者,所述第三定位方式的定位精度和所述第二定位方式的定位精度相同,且所述第三定位方式的定位频率小于所述第二定位方式的定位频率。
  18. 根据权利要求12-17任一项所述的第一设备,其特征在于,
    所述第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;
    所述第二定位方式包括卫星定位、无线保真Wifi定位、蓝牙定位、传感器惯性定位中的至少一种。
  19. 一种第二设备,其特征在于,包括:
    定位单元,用于若通过接收单元接收第一设备发送的第一指示信息;所述第一指示信息用于指示所述第二设备采用第一定位方式;采用所述第一定位方式,并通过发送单元向所述第一设备发送采用所述第一定位方式得到的第一定位信息;其中,所述第一定位信息用于指示所述第二设备的第一位置;
    所述定位单元,还用于若通过所述接收单元接收所述第一设备发送的第二指示信息;所述第二指示信息用于指示所述第二设备采用第二定位方式;采用所述第二定位方式,并通过所述发送单元向所述第一设备发送采用所述第二定位方式得到的第二定位信息;其中,所述第二定位信息用于指示所述第二设备的第二位置;
    其中,所述第一定位方式的定位精度小于所述第二定位方式的定位精度。
  20. 根据权利要求19所述的第二设备,其特征在于,所述第一定位方式的定位频率与所述第二定位方式的定位频率相同或不同。
  21. 根据权利要求19或20所述的第二设备,其特征在于,所述第一定位方式的定位频率小于所述第二定位方式的定位频率。
  22. 根据权利要求19-21任一项所述的第二设备,其特征在于,
    所述第一定位方式包括基站定位和网际协议IP地址定位中的至少一种;
    所述第二定位方式包括卫星定位、无线保真Wi-Fi定位、蓝牙定位、传感器惯性定位中的至少一种。
  23. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在计算机上运行时,使得计算机执行权利要求1至7任一项所述的定位方法。
  24. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在计算机上运行时,使得计算机执行权利要求8至11任一项所述的定位方法。
  25. 一种定位系统,其特征在于,该系统包括前述权利要求12至18任一项所述的第一设备和前述权利要求19至22任一项所述的第二设备。
PCT/CN2018/117256 2018-10-17 2018-11-23 一种定位方法和装置 WO2020077738A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201880098068.4A CN112840227A (zh) 2018-10-17 2018-11-23 一种定位方法和装置

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811210028 2018-10-17
CN201811210028.2 2018-10-17

Publications (1)

Publication Number Publication Date
WO2020077738A1 true WO2020077738A1 (zh) 2020-04-23

Family

ID=70284450

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117256 WO2020077738A1 (zh) 2018-10-17 2018-11-23 一种定位方法和装置

Country Status (2)

Country Link
CN (1) CN112840227A (zh)
WO (1) WO2020077738A1 (zh)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6972719B1 (en) * 2004-09-30 2005-12-06 Motorola, Inc. Location determination system and method therefor
JP2013228310A (ja) * 2012-04-26 2013-11-07 Mitsubishi Electric Corp 目標追尾装置及び目標追尾方法
CN104678420A (zh) * 2013-11-26 2015-06-03 中兴通讯股份有限公司 一种定位方法、装置和终端
CN105025437A (zh) * 2015-06-02 2015-11-04 北京嘀嘀无限科技发展有限公司 一种定位方法、装置及系统
CN105334527A (zh) * 2015-11-30 2016-02-17 北京奇虎科技有限公司 定位装置切换定位方式的方法和系统
CN106324630A (zh) * 2015-06-30 2017-01-11 华为终端(东莞)有限公司 一种基于可穿戴设备的定位方法及可穿戴设备
CN106341792A (zh) * 2016-11-01 2017-01-18 青岛海信移动通信技术股份有限公司 一种实现定位的方法和装置
CN106557089A (zh) * 2016-11-21 2017-04-05 北京中飞艾维航空科技有限公司 一种无人机自主着陆的控制方法及装置
CN106658414A (zh) * 2017-02-10 2017-05-10 北京拜克洛克科技有限公司 一种找寻预约单车的方法及用户终端

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833678A (zh) * 2012-09-03 2012-12-19 北京汽车股份有限公司 一种寻车装置、寻车方法、车辆及智能手机
CN103625427A (zh) * 2013-11-29 2014-03-12 东风小康汽车有限公司重庆分公司 基于卫星定位技术的汽车车门开闭自动控制方法及系统

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6972719B1 (en) * 2004-09-30 2005-12-06 Motorola, Inc. Location determination system and method therefor
JP2013228310A (ja) * 2012-04-26 2013-11-07 Mitsubishi Electric Corp 目標追尾装置及び目標追尾方法
CN104678420A (zh) * 2013-11-26 2015-06-03 中兴通讯股份有限公司 一种定位方法、装置和终端
CN105025437A (zh) * 2015-06-02 2015-11-04 北京嘀嘀无限科技发展有限公司 一种定位方法、装置及系统
CN106324630A (zh) * 2015-06-30 2017-01-11 华为终端(东莞)有限公司 一种基于可穿戴设备的定位方法及可穿戴设备
CN105334527A (zh) * 2015-11-30 2016-02-17 北京奇虎科技有限公司 定位装置切换定位方式的方法和系统
CN106341792A (zh) * 2016-11-01 2017-01-18 青岛海信移动通信技术股份有限公司 一种实现定位的方法和装置
CN106557089A (zh) * 2016-11-21 2017-04-05 北京中飞艾维航空科技有限公司 一种无人机自主着陆的控制方法及装置
CN106658414A (zh) * 2017-02-10 2017-05-10 北京拜克洛克科技有限公司 一种找寻预约单车的方法及用户终端

Also Published As

Publication number Publication date
CN112840227A (zh) 2021-05-25

Similar Documents

Publication Publication Date Title
WO2020244623A1 (zh) 一种空鼠模式实现方法及相关设备
WO2021023046A1 (zh) 一种电子设备控制方法及一种电子设备
CN111369988A (zh) 一种语音唤醒方法及电子设备
WO2021036776A1 (zh) 一种无线充电方法及电子设备
EP4236434A1 (en) Channel switching method, electronic device, and storage medium
WO2021213031A1 (zh) 图像合成方法及相关装置
WO2021068926A1 (zh) 模型更新方法、工作节点及模型更新系统
CN113973398B (zh) 无线网络连接方法、电子设备及芯片系统
WO2022022319A1 (zh) 一种图像处理方法、电子设备、图像处理系统及芯片系统
WO2021197071A1 (zh) 无线通信系统及方法
CN116156417A (zh) 一种设备定位方法及其相关设备
CN113676339B (zh) 组播方法、装置、终端设备及计算机可读存储介质
CN114727220A (zh) 一种设备搜寻方法以及电子设备
CN112888045A (zh) 小区测量的方法、测量装置、终端设备、芯片及存储介质
WO2022262492A1 (zh) 数据下载方法、装置和终端设备
CN114257920B (zh) 一种音频播放方法、系统和电子设备
CN114554012B (zh) 来电接听方法、电子设备及存储介质
CN112738794A (zh) 驻网方法、芯片、移动终端及存储介质
CN112099741A (zh) 显示屏位置识别方法、电子设备及计算机可读存储介质
WO2020124447A1 (zh) 面向多卡的网络管理
CN112996066B (zh) 驻网方法及相关设备
CN115022807B (zh) 快递信息提醒方法和电子设备
WO2022152167A1 (zh) 一种网络选择方法及设备
CN116055988A (zh) 一种双卡通信的方法和终端设备
WO2020077738A1 (zh) 一种定位方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18937074

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18937074

Country of ref document: EP

Kind code of ref document: A1