WO2021027466A1 - 定位方法及终端设备 - Google Patents

定位方法及终端设备 Download PDF

Info

Publication number
WO2021027466A1
WO2021027466A1 PCT/CN2020/101850 CN2020101850W WO2021027466A1 WO 2021027466 A1 WO2021027466 A1 WO 2021027466A1 CN 2020101850 W CN2020101850 W CN 2020101850W WO 2021027466 A1 WO2021027466 A1 WO 2021027466A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
positioning
terminal device
list
preset
Prior art date
Application number
PCT/CN2020/101850
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 维沃移动通信有限公司
Publication of WO2021027466A1 publication Critical patent/WO2021027466A1/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
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/32Multimode operation in a single same satellite system, e.g. GPS L1/L2
    • 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
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/35Constructional details or hardware or software details of the signal processing chain
    • G01S19/37Hardware or software details of the signal processing chain

Definitions

  • the present invention relates to the field of communication technology, in particular to a positioning method and terminal equipment.
  • Positioning system (a collection or device (component) that is related to each other to determine a spatial position as a target) generally refers to the Global Positioning System (GPS).
  • GPS Global Positioning System
  • this is a satellite system consisting of 24 satellites covering the world. This system can ensure that 4 satellites can be observed at any point on the earth at any time, so as to ensure that the satellite can collect the longitude, latitude and altitude of the observation point, so as to realize navigation, positioning, and timing functions.
  • This technology can be used to guide airplanes, ships, vehicles and individuals to safely and accurately follow the selected route and arrive at the destination on time. Take the GPS positioning system as an example.
  • the currently supported frequency bands are L1/L2/L5. Therefore, in order to further improve the positioning accuracy, terminal equipment with GPS positioning system can achieve L1+L5 or L1+L2 or L2+L5 dual Frequency positioning.
  • the embodiment of the present invention provides a positioning method and terminal equipment to solve the problem of waste of power consumption of the terminal equipment caused by the existing indiscriminate multi-frequency positioning.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides a positioning method applied to a terminal device, including:
  • the first application program meets the first preset condition, start the first application program and use multiple frequencies for positioning;
  • the first application program When the first application program meets the second preset condition, the first application program is started, and a single frequency is used for positioning.
  • an embodiment of the present invention also provides a terminal device, including:
  • the receiving module is used to receive the start operation of the first application program
  • the first processing module is configured to start the first application and use multiple frequencies for positioning when the first application meets a first preset condition
  • the second processing module is configured to start the first application and use a single frequency to perform positioning when the first application meets a second preset condition.
  • an embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored on the memory and running on the processor, the computer program being used by the processor. The steps of the positioning method as described above are realized during execution.
  • the embodiments of the present invention also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the positioning method described above are implemented .
  • the embodiments of the present invention also provide a computer program product, the computer program product is stored in a non-volatile storage medium, and the program product is configured to be executed by at least one processor to implement the above The steps of the positioning method described.
  • an embodiment of the present invention also provides a positioning device configured to execute the positioning method described above.
  • the positioning mode of the terminal device is adjusted according to the preset condition that the first application meets.
  • the first preset condition is met, the first application is launched and multiple frequencies are used for positioning; when the first application meets the second preset condition, the first application is launched and a single Frequency positioning to achieve multi-frequency positioning for applications that require high positioning accuracy, and single-frequency positioning for applications that require low positioning accuracy, so as to avoid terminal devices from using multi-frequency positioning indiscriminately.
  • FIG. 1 is a schematic flowchart of a positioning method according to an embodiment of the present invention
  • Figure 2 is one of the schematic diagrams of a terminal device to which the method of the embodiment of the present invention is applied;
  • Figure 3 is a second schematic diagram of a terminal device to which the method of the embodiment of the present invention is applied;
  • FIG. 4 is a third schematic diagram of a terminal device to which the method of the embodiment of the present invention is applied;
  • Figure 5 is a fourth schematic diagram of a terminal device to which the method of the embodiment of the present invention is applied;
  • FIG. 6 is a schematic diagram of the application of the positioning method according to the embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • a positioning method according to an embodiment of the present invention, applied to a terminal device includes:
  • Step 101 Receive a start operation on the first application.
  • the start operation is an operation to start an application
  • the first application corresponding to the start operation is the target application started by the start operation.
  • the startup operation can be the user's startup operation of the first application, or the startup operation that the first application automatically starts when certain preset conditions are met, or it can be the system or the second application.
  • the startup operation triggered by the application program, etc. are not specifically limited in the embodiment of the present invention.
  • the start operation of the first application is received, so that subsequent processing is performed based on the start of the first application in the subsequent processing.
  • Step 102 When the first application program meets a first preset condition, start the first application program and use multiple frequencies for positioning.
  • the first preset condition is one or more preset conditions for judging whether the application needs to use multi-frequency positioning.
  • the activation operation of the first application is received, and the second If an application program meets the first preset condition, that is, the first application program has high requirements for positioning accuracy and needs to use multi-frequency positioning, the first application program is started and multiple frequencies are used for positioning. That is, by adjusting the positioning system of the terminal device to a multi-frequency positioning mode, multiple frequencies are used for positioning to meet the positioning accuracy requirements of the first application.
  • the positioning using the multi-frequency positioning mode can be the dual-frequency positioning of L1+L5 or L1+L2 or L2+L5, or the three-frequency positioning of L1+L2+L5.
  • the embodiment of the present invention There is no specific restriction on this.
  • Step 103 When the first application program meets the second preset condition, start the first application program and use a single frequency for positioning.
  • the second preset condition is one or more preset conditions used to determine whether the application program needs to use single-frequency positioning.
  • step 101 the activation operation of the first application program is received, and the first application program If an application program meets the second preset condition, that is, the first application program has low positioning accuracy requirements, the first application program is started and a single frequency is used for positioning.
  • the positioning system of the terminal device is adjusted to a single-frequency positioning mode, and the preset first frequency is used for positioning, so as to reduce the power consumption of the terminal device.
  • the method of the embodiment of the present invention adjusts the positioning of the terminal device according to the preset condition that the first application program meets in the case of receiving the start operation of the first application program through the above steps 101-103 Way, when the first application program meets the first preset condition, start the first application program and use multiple frequencies for positioning; when the first application program meets the second preset condition, start the first application program
  • the first application program uses a single frequency for positioning to achieve multi-frequency positioning for applications that require higher positioning accuracy, and single-frequency positioning for applications that require less positioning accuracy, thereby avoiding no difference in terminal equipment The problem of wasteful power consumption caused by ground use of multi-frequency positioning.
  • the terminal device uses the Global Positioning System GPS to locate. Since the frequency band supported by GPS is L1/L2/L5, the terminal device can realize single-frequency positioning and multi-frequency positioning (such as L1+L5 dual-frequency positioning, L1+L2+L5 Three-frequency positioning). In this way, when the user performs an operation (start operation) to start the application A, the terminal device will first receive the start operation.
  • GPS Global Positioning System
  • the terminal device After that, if application A is a map application, and application A has higher requirements for positioning accuracy and meets the first preset condition, the terminal device will start application A and adjust its positioning system to adopt L1+L5 Multiple frequency positioning is achieved by means of dual-frequency positioning; if application A is a social application, the positioning accuracy requirements are low, and the second preset condition is met, the terminal device will start application A and adjust its own
  • the positioning system uses L1 single-frequency positioning to achieve single-frequency positioning. In this way, for applications that require high positioning accuracy, the specific requirements for positioning accuracy can be guaranteed; for applications that require low positioning accuracy, only single-frequency positioning is used for rough positioning, so as to achieve savings. The purpose of electricity.
  • the method before starting the first application, the method further includes:
  • the first application belongs to the first application list, determining that the first application meets a first preset condition
  • the first application program does not belong to the first application program list, it is determined that the first application program meets a second preset condition.
  • the first application list is preset in the terminal device. By detecting whether the first application belongs to the first application list, it can be quickly determined whether the first application meets the first set condition or meets the second preset condition. Set conditions to improve processing efficiency.
  • the applications in the first application list are preset types of applications
  • the method further includes:
  • the preset first application list is set based on the application type of the application. Before detecting whether the first application belongs to the first application list, the terminal device will apply the application type according to the application type of the installed application.
  • the program is an application of a preset type and added to the first application list. Of course, this process can be performed immediately after the application is installed, or it can be performed when the application is first used.
  • the application type may be the use purpose that the terminal device can obtain after analyzing the attributes of the application program, such as social interaction, entertainment, learning, maps, etc. If the preset type is a map, when analyzing the attributes of an application and knowing that the application is a map application, the application will be added to the first application list. In addition, the application type can also be classified and set by the user. For example, in the terminal device setting interface-location mode shown in Figure 2, the user categorizes the application accordingly, then the first application list The application program corresponds to the application program under the "high-precision positioning" category.
  • an application in the first application list is an application in a target folder
  • the method further includes:
  • the first application is added to the target folder, or the first application is removed from the target folder.
  • the first application list is set based on the target folder, and the applications in the target folder are the applications in the first application list. Therefore, the terminal device will obtain the user's first operation on the icon of the first application, and in response to the first operation, add the first application to the target folder or remove the first application from the target folder Remove, implement adding or removing the first application from the first application list.
  • the application in the first application list is an application with a preset identifier
  • the method further includes:
  • the preset identifier is added or removed from the first application program.
  • the first application list is based on a preset identification setting of the application, and in order to improve the personalized setting of the terminal device to the user, the preset identification is added by the user to the application. Therefore, the terminal device will obtain the user's second operation on the icon of the first application, and in response to the second operation, add or remove the preset identifier to the first application, so as to implement adding the first application to The first application list or move out of the first application list.
  • the user long presses the icon of application C (the first application), and the "high positioning" item is displayed on the side of the application C icon.
  • the "high positioning" item For the user to click the "high positioning" item (second Operation), a preset logo will be added to application C.
  • the upper right corner of the application C icon displays "high positioning”; or the upper right corner of the application C icon displays special symbols, such as lightning or arrows.
  • the application C will be added to the first application list.
  • the "low positioning" item will be displayed on the side of the application icon.
  • the preset identifier in this embodiment can be displayed visually on the icon of the application program, or it is only used to indicate the level of positioning accuracy required by the application program, and it needs to be displayed on a specific setting interface.
  • the method further includes:
  • the first application program When the first application program is in the background running state and the running time is greater than or equal to the preset time, it is adjusted to use a single frequency for positioning, or the positioning is stopped.
  • the first application program by detecting its use state (running state), the first application program can be converted to the background running state and the running time is greater than or equal to the preset time , Adjust the first application to use a single frequency for positioning, or stop positioning.
  • the specific adjustment means that the terminal device adjusts the positioning system to a single-frequency positioning with lower power consumption or stops the operation of the positioning system. For example, when the power of the terminal device is greater than or equal to a preset threshold, the first application can be adjusted to use a single frequency for positioning, and when the power of the terminal device is less than the preset threshold, the first application stops using GPS.
  • the preset time length is T
  • start a timer to count the time t when the first application program turns to the background operation state, and compare t with T. If t is greater than T, then The positioning method changes from using multiple frequencies for positioning adjustment to using a single frequency for positioning, or stops positioning; if t is less than or equal to T, keep using multiple frequencies for positioning.
  • the application of the method in the embodiment of the present invention is described as follows (the terminal device supports single-frequency positioning and multi-frequency positioning, and the multi-frequency positioning takes dual-frequency positioning as an example):
  • the terminal device For the user to open the application D for positioning operation (such as opening the map navigation software), that is, the start operation, the terminal device will receive the start operation and determine whether the application D is in the preset high-precision positioning application APP white list ( In the first application list), use multiple frequencies for positioning or use a single frequency for positioning.
  • the high-precision positioning APP whitelist can be achieved by application type, target folder or preset identification settings, which will not be repeated here.
  • the application D is in the whitelist of the high-precision positioning APP, the first frequency signal is used for single-frequency positioning by default, and the second frequency signal is opened and searched for dual-frequency positioning.
  • real-time detection of the usage status of the application D is performed, which is divided into the following situations:
  • the opened application D is not in the high-precision positioning APP whitelist, there is no need to perform high-precision positioning, turn off or not turn on the second frequency signal, and only use the first frequency for low-precision positioning, thereby saving power consumption .
  • the method of the embodiment of the present invention adjusts the positioning mode of the terminal device according to the preset condition that the first application program meets in the case of receiving the start operation of the first application program. If the first application program meets the first preset condition, start the first application program and use multiple frequencies for positioning; if the first application program meets the second preset condition, start the first application program , And use a single frequency for positioning to achieve multi-frequency positioning for applications that require high positioning accuracy, and single-frequency positioning for applications that require low positioning accuracy, so as to avoid terminal devices from using multi-frequency indiscriminately Positioning causes waste of power consumption.
  • Fig. 7 is a block diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device 700 shown in FIG. 7 includes a receiving module 710, a first processing module 720, and a second processing module 730.
  • the receiving module 710 is configured to receive the start operation of the first application program
  • the first processing module 720 is configured to start the first application and use multiple frequencies to perform positioning when the first application meets a first preset condition
  • the second processing module 730 is configured to start the first application program and use a single frequency to perform positioning when the first application program meets the second preset condition.
  • the terminal device further includes:
  • the detection module is configured to detect whether the first application belongs to the first application list
  • a first determining module configured to determine that the first application meets a first preset condition if the first application belongs to the first application list
  • the second determining module is configured to determine that the first application meets a second preset condition if the first application does not belong to the first application list.
  • the applications in the first application list are preset types of applications
  • the terminal device also includes:
  • the first obtaining module is used to obtain the application type of the installed application on the terminal device
  • the third processing module is configured to add an application whose application type is the preset type to the first application list.
  • the applications in the first application list are applications in the target folder
  • the terminal device also includes:
  • the second obtaining module is configured to obtain the first operation of the user on the icon of the first application program
  • the fourth processing module is configured to add the first application program to the target folder or remove the first application program from the target folder in response to the first operation.
  • the application in the first application list is an application with a preset identifier
  • the terminal device also includes:
  • the third acquiring module is configured to acquire the second operation of the user on the icon of the first application program
  • the fifth processing module is configured to add or remove the preset identifier to the first application in response to the second operation.
  • the terminal device further includes:
  • a state detection module used to detect the use state of the first application
  • the sixth processing module is used to adjust to use a single frequency for positioning or stop positioning when the first application is in the background running state and the running time is greater than or equal to the preset time.
  • the terminal device 700 can implement each process implemented by the terminal device in the method embodiments of FIG. 1 to FIG. 6, and to avoid repetition, details are not described herein again.
  • the terminal device of the embodiment of the present invention adjusts the positioning mode of the terminal device according to the preset condition that the first application program meets in the case of receiving the start operation of the first application program.
  • the first preset condition is met, the first application is launched and multiple frequencies are used for positioning;
  • the first application meets the second preset condition the first application is launched and a single Frequency positioning to achieve multi-frequency positioning for applications that require high positioning accuracy, and single-frequency positioning for applications that require low positioning accuracy, so as to avoid terminal devices from using multi-frequency positioning indiscriminately.
  • the problem of waste is referred to waste.
  • FIG. 8 is a schematic diagram of the hardware structure of a terminal device for implementing various embodiments of the present invention.
  • the terminal device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, and a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811.
  • a radio frequency unit 801 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, and a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811.
  • the terminal device may include more or less components than shown in the figure, or combine certain components, or different components. Layout.
  • terminal devices include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices
  • the processor 810 is configured to receive a start operation of a first application; when the first application meets a first preset condition, start the first application and use multiple frequencies for positioning ; In the case that the first application meets the second preset condition, start the first application and use a single frequency for positioning.
  • the terminal device when it receives the start operation of the first application program, it adjusts the positioning mode of the terminal device according to the preset condition that the first application program meets.
  • preset conditions start the first application and use multiple frequencies for positioning; when the first application meets the second preset conditions, start the first application and use a single frequency for positioning .
  • the radio frequency unit 801 can be used for receiving and sending signals during information transmission or communication. Specifically, the downlink data from the base station is received and processed by the processor 810; Uplink data is sent to the base station.
  • the radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 801 can also communicate with the network and other devices through a wireless communication system.
  • the terminal device provides users with wireless broadband Internet access through the network module 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 803 can convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the terminal device 800 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 804 is used to receive audio or video signals.
  • the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042.
  • the graphics processor 8041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in the video capture mode or the image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 806.
  • the image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802.
  • the microphone 8042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
  • the terminal device 800 also includes at least one sensor 805, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 8061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 8061 and the display panel 8061 when the terminal device 800 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when it is stationary, and can be used to identify the posture of the terminal device (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; sensor 805 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 806 is used to display information input by the user or information provided to the user.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 807 can be used to receive inputted number or character information, and generate key signal input related to user settings and function control of the terminal device.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072.
  • the touch panel 8071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 8071 or near the touch panel 8071. operating).
  • the touch panel 8071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 810, the command sent by the processor 810 is received and executed.
  • the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 807 may also include other input devices 8072.
  • other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 8071 can cover the display panel 8061.
  • the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event.
  • the type of event provides corresponding visual output on the display panel 8061.
  • the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated
  • the implementation of the input and output functions of the terminal device is not specifically limited here.
  • the interface unit 808 is an interface for connecting an external device with the terminal device 800.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (input/output, I/O) port, video I/O port, headphone port, etc.
  • the interface unit 808 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the terminal device 800 or can be used to connect to the terminal device 800 and external devices. Transfer data between devices.
  • the memory 809 can be used to store software programs and various data.
  • the memory 809 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 809 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 810 is the control center of the terminal device. It uses various interfaces and lines to connect the various parts of the entire terminal device, runs or executes the software programs and/or modules stored in the memory 809, and calls the data stored in the memory 809. , Perform various functions of the terminal equipment and process data, so as to monitor the terminal equipment as a whole.
  • the processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface and application programs, etc., the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
  • the terminal device 800 may also include a power supply 811 (such as a battery) for supplying power to various components.
  • a power supply 811 (such as a battery) for supplying power to various components.
  • the power supply 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system And other functions.
  • the terminal device 800 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides a terminal device, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor to implement the positioning method described above.
  • a terminal device including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor to implement the positioning method described above.
  • a terminal device including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor to implement the positioning method described above.
  • a terminal device including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor to implement the positioning method described above.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
  • a terminal which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, 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 or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the steps of the method in each embodiment of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer readable storage medium. When executed, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • modules, units, and sub-units can be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSP Device, DSPD) ), programmable logic devices (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, and the implementation of the present invention Described functions in other electronic units or combinations thereof.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processor
  • DSP Device Digital Signal Processing Device
  • DSPD Digital Signal Processing Device
  • PLD programmable logic devices
  • Field-Programmable Gate Array Field-Programmable Gate Array
  • FPGA Field-Programmable Gate Array
  • the technology described in the embodiments of the present invention can be implemented by modules (for example, procedures, functions, etc.) that execute the functions described in the embodiments of the present invention.
  • the software codes can be stored in the memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供一种定位方法及终端设备。该方法应用于终端设备,包括:接收对第一应用程序的启动操作;在所述第一应用程序符合第一预设条件的情况下,启动所述第一应用程序,并使用多个频率进行定位;在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。

Description

定位方法及终端设备
相关申请的交叉引用
本申请主张在2019年8月13日在中国提交的中国专利申请号No.201910744675.X的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及通信技术领域,特别涉及一种定位方法及终端设备。
背景技术
定位***(以确定空间位置为目标而构成的相互关联的一个集合体或装置(部件))一般指全球定位***(Global Positioning System,GPS)。简单地说,这是一个由覆盖全球的24颗卫星组成的卫星***。这个***可以保证在任意时刻,地球上任意一点都可以同时观测到4颗卫星,以保证卫星可以采集到该观测点的经纬度和高度,以便实现导航、定位、授时等功能。这项技术可以用来引导飞机、船舶、车辆以及个人,安全、准确地沿着选定的路线,准时到达目的地。以GPS定位***为例,目前的可支持的频段有L1/L2/L5,因此,为了进一步提升定位精度,具有GPS定位***的终端设备可实现L1+L5或者L1+L2或者L2+L5的双频定位。
然而,使用卫星信号进行多频定位的方式虽然提高了定位精确度,但是,会大大增加终端设备的功耗。
发明内容
本发明实施例提供一种定位方法及终端设备,以解决现有的无差别多频定位造成终端设备功耗浪费的问题。
为了解决上述技术问题,本发明是这样实现的:
第一方面,本发明的实施例提供了一种定位方法,应用于终端设备,包括:
接收对第一应用程序的启动操作;
在所述第一应用程序符合第一预设条件的情况下,启动所述第一应用程序,并使用多个频率进行定位;
在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。
第二方面,本发明的实施例还提供了一种终端设备,包括:
接收模块,用于接收对第一应用程序的启动操作;
第一处理模块,用于在所述第一应用程序符合第一预设条件的情况下,启动所述第一应用程序,并使用多个频率进行定位;
第二处理模块,用于在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。
第三方面,本发明实施例还提供了一种终端设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的定位方法的步骤。
第四方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的定位方法的步骤。
第五方面,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述程序产品被配置成被至少一个处理器执行以实现如上所述的定位方法的步骤。
第六方面,本发明实施例还提供了一种定位装置,所述装置被配置成用于执行如上所述的定位方法。
这样,本发明实施例中,在接收到对第一应用程序的启动操作的情况下,针对该第一应用程序所符合的预设条件,来调整终端设备的定位方式,在该第一应用程序符合第一预设条件的情况下,启动该第一应用程序,并使用多个频率进行定位;在该第一应用程序符合第二预设条件的情况下,启动第一应用程序,并使用单个频率进行定位,以实现对定位精准度要求较高的应用程序采用多频定位,对定位精准度要求较低的应用程序采用单频定位,从而避免终端设备无差别地使用多频定位而造成功耗浪费的问题。
附图说明
图1为本发明实施例的定位方法的流程示意图;
图2为应用本发明实施例的方法的终端设备的示意图之一;
图3为应用本发明实施例的方法的终端设备的示意图之二;
图4为应用本发明实施例的方法的终端设备的示意图之三;
图5为应用本发明实施例的方法的终端设备的示意图之四;
图6为本发明实施例的定位方法的应用示意图;
图7为本发明实施例的终端设备的结构示意图;
图8为本发明另一实施例的终端设备的结构示意图。
具体实施方式
为使本发明要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。
如图1所示,本发明实施例的一种定位方法,应用于终端设备,包括:
步骤101,接收对第一应用程序的启动操作。
这里,启动操作为启动应用程序的操作,与该启动操作对应的第一应用程序则为该启动操作启动的目标应用程序。需要说明的是,该启动操作可以为用户对第一应用程序的启动操作,也可以为第一应用程序在满足一定预设条件的情况下自动启动的启动操作,还可以是由***或第二应用程序触发的启动操作等等,本发明实施例对此不作具体限定。在本步骤中,接收对该第一应用程序的启动操作,从而在后续处理中基于该第一应用程序的启动进行后续处理。
步骤102,在所述第一应用程序符合第一预设条件的情况下,启动所述第一应用程序,并使用多个频率进行定位。
这里,第一预设条件是用于判断应用程序是否需要使用多频率定位的一个或多个预设条件,在经步骤101,接收到对第一应用程序的启动操作的情况下,且该第一应用程序符合第一预设条件,即该第一应用程序对定位的精度要求较高,需要使用多频率定位,则启动该第一应用程序,并使用多个频率进行定位。即,通过将该终端设备的定位***调整为多频定位模式,来实现 使用多个频率进行定位,以达到该第一应用程序的定位精度的要求。需要说明的是,利用多频定位模式进行定位,可以是利用L1+L5或者L1+L2或者L2+L5的双频定位,也可以是利用L1+L2+L5的三频定位,本发明实施例对此不作具体限定。
步骤103,在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。
这里,第二预设条件是用于判断应用程序是否需要使用单频率定位的一个或多个预设条件,在经步骤101,接收到对第一应用程序的启动操作的情况下,且该第一应用程序符合第二预设条件,即该第一应用程序对定位精度的要求较低,则启动该第一应用程序,并使用单个频率进行定位。其中会将该终端设备的定位***调整为单频定位模式,使用预先设置的第一频率来进行定位,以降低终端设备的功耗。
如此,本发明实施例的方法,通过上述步骤101-103,在接收到对第一应用程序的启动操作的情况下,针对该第一应用程序所符合的预设条件,来调整终端设备的定位方式,在该第一应用程序符合第一预设条件的情况下,启动该第一应用程序,并使用多个频率进行定位;在该第一应用程序符合第二预设条件的情况下,启动第一应用程序,并使用单个频率进行定位,以实现对定位精准度要求较高的应用程序采用多频定位,对定位精准度要求较低的应用程序采用单频定位,从而避免终端设备无差别地使用多频定位而造成功耗浪费的问题。
例如,终端设备使用全球定位***GPS定位,由于GPS支持的频段有L1/L2/L5,该终端设备上可实现单频定位和多频定位(如L1+L5双频定位,L1+L2+L5的三频定位)。如此,在用户进行启动应用程序A的操作(启动操作)的情况下,终端设备首先会接收该启动操作。之后,若应用程序A为地图应用程序,应用程序A对定位精度的要求较高,符合第一预设条件,该终端设备则会启动应用程序A,并通过调整自身的定位***采用L1+L5双频定位等方式实现多个频率定位;若应用程序A为社交应用程序,对定位精度的要求较低,符合第二预设条件,该终端设备则会启动应用程序A,并通过调整自身的定位***采用L1单频定位的方式实现单个频率定位。如此,对于定 位精准度要求较高的应用程序,能够保证其对定位精度的具体要求;而对于定位精准度要求较低的应用程序,仅使用单频定位的方式来进行粗略定位,从而达到省电的目的。
可选地,该实施例中,所述启动所述第一应用程序之前,还包括:
检测所述第一应用程序是否属于第一应用程序列表;
若所述第一应用程序属于所述第一应用程序列表,则确定所述第一应用程序符合第一预设条件;
若所述第一应用程序不属于所述第一应用程序列表,则确定所述第一应用程序符合第二预设条件。
这里,终端设备中预先设置了第一应用程序列表,通过检测第一应用程序是否属于该第一应用程序列表,就能够快速确定出该第一应用程序是符合第一设条件或符合第二预设条件,提升处理效率。
可选地,所述第一应用程序列表中的应用程序为预设类型的应用程序;
在所述检测所述第一应用程序是否属于第一应用程序列表之前,所述方法还包括:
获取所述终端设备上已安装的应用程序的应用类型;
将应用类型为所述预设类型的应用程序添加到所述第一应用程序列表中。
这里,预先设置的第一应用程序列表是基于应用程序的应用类型设置,在检测第一应用程序是否属于第一应用程序列表之前,终端设备会针对自身已安装的应用程序的应用类型,将应用程序为预设类型的应用程序添加到第一应用程序列表中。当然,该过程可以是在应用程序安装完成后立即进行的,也可以是应用程序首次使用时进行的。
其中,应用类型可以是终端设备基于应用程序的属性分析后,所获知的该应用程序所能够达到的使用目的,如社交、娱乐、学习、地图等等。若预设类型为地图,则在对一应用程序属性分析,获知该应用程序为地图类应用程序时,会将该应用程序添加到第一应用程序列表中。此外,应用类型还可以是用户对应用程序进行分类设置的,例如,用户在图2所示的终端设备设置界面-定位模式下,对应用程序进行相应的归类,则第一应用程序列表中的应用程序是对应于“高精度定位”类下的应用程序。
另外,可选地,所述第一应用程序列表中的应用程序为目标文件夹中的应用程序;
在所述检测所述第一应用程序是否属于第一应用程序列表之前,所述方法还包括:
获取用户对所述第一应用程序的图标的第一操作;
响应于所述第一操作,将所述第一应用程序添加至所述目标文件夹中,或将所述第一应用程序从所述目标文件夹中移除。
这里,第一应用程序列表是基于目标文件夹设置的,目标文件夹中的应用程序即为第一应用程序列表中的应用程序。因此,终端设备会获取用户对第一应用程序的图标的第一操作,响应于该第一操作,将该第一应用程序添加至目标文件夹,或将该第一应用程序从目标文件夹中移除,实现将该与第一应用程序添加到第一应用程序列表或移出第一应用程序列表。
如图3所示,对于用户拖动应用程序B(第一应用程序)的图标到目标文件夹的操作(第一操作),该应用程序B会添加到目标文件夹,相应的,该应用程序B会添加到第一应用程序列表中;对于用户拖动应用程序B的图标移出目标文件夹的操作(第一操作),该应用程序B会移出目标文件夹,相应的,该应用程序B会移出第一应用程序列表。
又或者,可选地,所述第一应用程序列表中的应用程序为具有预设标识的应用程序;
在所述检测所述第一应用程序是否属于第一应用程序列表之前,所述方法还包括:
获取用户对所述第一应用程序的图标的第二操作;
响应于所述第二操作,对所述第一应用程序添加或移除所述预设标识。
这里,第一应用程序列表是基于应用程序的预设标识设置,其中为提升终端设备对用户的个性化设置,该预设标识是用户对应用程序添加的。因此,终端设备会获取用户对该第一应用程序的图标的第二操作,响应于该第二操作,对第一应用程序添加或移除该预设标识,实现将该第一应用程序添加到第一应用程序列表或移出第一应用程序列表。
如图4所示,用户长按应用程序C(第一应用程序)的图标,在该应用 程序C图标一侧显示“高定位”项,对于用户点击该“高定位”项的操作(第二操作),会对应用程序C添加预设标识,如图5所示,应用程序C图标右上角显示“高定位”;或者应用程序C图标右上角显示特殊符号,如闪电或箭头等。相应的,该应用程序C会添加到第一应用程序列表中。而对于已添加预设标识的应用程序,用户长按该应用程序的图标,在该应用程序图标侧会显示“低定位”项,对于用户点击该“低定位”项的操作(第二操作),会移除该应用程序的预设标识,去除应用程序C图标右上角显示“高定位”或特殊符号(如闪电或箭头等),相应的,该应用程序会移出第一应用程序列表。
当然,该实施例中的预设标识可以在应用程序的图标上进行可视化显示,或者,仅用于指示应用程序对定位精度要求的高低,需要在特定的设置界面上才会显示。
另外,该实施例中,在步骤102使用多个频率进行定位之后,所述方法还包括:
检测所述第一应用程序的使用状态;
在所述第一应用程序处于后台运行态,且运行时长大于或等于预设时长的情况下,调整为使用单个频率进行定位,或者,停止定位。
这里,针对使用多个频率定位的第一应用程序,通过对其使用状态(运行状态)的检测,可以在第一应用程序转为后台运行态,且运行时长大于或等于预设时长的情况下,将第一应用程序调整为使用单个频率进行定位,或者,停止定位。其中,具体调整是指终端设备将定位***调整为功耗较低的单频定位或者停止定位***的工作。例如,可以在终端设备的电量大于或等于预设阈值的情况下,将第一应用程序调整为使用单个频率进行定位,在终端设备的电量小于预设阈值的情况下,第一应用程序停止使用定位功能。假设预设时长为T,检测到第一应用程序转为后台运行态后,开启计时器,计时第一应用程序转为后台运行的时间t,将t与T比较,如t大于T,则将定位方式从使用多个频率进行定位调整为使用单个频率进行定位,或者停止定位;如t小于或等于T,则保持使用多个频率进行定位。
结合图6所示,说明本发明实施例的方法的应用如下(终端设备支持单频定位和多频定位,其中,多频定位以双频定位为例):
对于用户打开应用程序D进行定位的操作(如打开地图导航软件),即启动操作,终端设备会接收到该启动操作,判断该应用程序D是否在预设置的高精度定位应用程序APP白名单(第一应用程序列表)内,使用多个频率进行定位或使用单个频率进行定位。此处高精度定位APP白名单可通过应用类型、目标文件夹或者预设标识设置实现,在此不再赘述。
若该应用程序D在高精度定位APP白名单内,则在默认第一频率信号进行单频定位的情况下,开启并搜索第二频率信号进行双频定位。同时也对该应用程序D的使用状态进行实时检测,分为如下情况:
a、如检测到应用程序D正在界面正常运行则保持现状采用双频定位功能;
b、如检测到应用程序D已退出,则关闭双频定位功能回到初始状态(定位不启用或采用单频定位);
c、如检测到应用程序D处于后台运行态后,开启计时器,计时后台运行的时间t(计时时长),将t与预设时长T比较,如t大于T,则调整双频定位为单频定位,或者停止定位;如t小于或等于T,则保持双频定位。
其中,若打开的应用程序D不在高精确定位APP白名单内,则无需进行高精确定位,关闭或不开启第二频率信号,仅使用第一频率进行低精确定位,从而达到节省功耗的目的。
综上所述,本发明实施例的方法,在接收到对第一应用程序的启动操作的情况下,针对该第一应用程序所符合的预设条件,来调整终端设备的定位方式,在该第一应用程序符合第一预设条件的情况下,启动该第一应用程序,并使用多个频率进行定位;在该第一应用程序符合第二预设条件的情况下,启动第一应用程序,并使用单个频率进行定位,以实现对定位精准度要求较高的应用程序采用多频定位,对定位精准度要求较低的应用程序采用单频定位,从而避免终端设备无差别地使用多频定位而造成功耗浪费的问题。
图7是本发明一个实施例的终端设备的框图。图7所示的终端设备700包括接收模块710、第一处理模块720和第二处理模块730。
接收模块710,用于接收对第一应用程序的启动操作;
第一处理模块720,用于在所述第一应用程序符合第一预设条件的情况 下,启动所述第一应用程序,并使用多个频率进行定位;
第二处理模块730,用于在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。
可选地,所述终端设备还包括:
检测模块,用于检测所述第一应用程序是否属于第一应用程序列表;
第一确定模块,用于若所述第一应用程序属于所述第一应用程序列表,则确定所述第一应用程序符合第一预设条件;
第二确定模块,用于若所述第一应用程序不属于所述第一应用程序列表,则确定所述第一应用程序符合第二预设条件。
可选地,所述第一应用程序列表中的应用程序为预设类型的应用程序;
所述终端设备还包括:
第一获取模块,用于获取所述终端设备上已安装的应用程序的应用类型;
第三处理模块,用于将应用类型为所述预设类型的应用程序添加到所述第一应用程序列表中。
可选地,所述第一应用程序列表中的应用程序为目标文件夹中的应用程序;
所述终端设备还包括:
第二获取模块,用于获取用户对所述第一应用程序的图标的第一操作;
第四处理模块,用于响应于所述第一操作,将所述第一应用程序添加至所述目标文件夹中,或将所述第一应用程序从所述目标文件夹中移除。
可选地,所述第一应用程序列表中的应用程序为具有预设标识的应用程序;
所述终端设备还包括:
第三获取模块,用于获取用户对所述第一应用程序的图标的第二操作;
第五处理模块,用于响应于所述第二操作,对所述第一应用程序添加或移除所述预设标识。
可选地,所述终端设备还包括:
状态检测模块,用于检测所述第一应用程序的使用状态;
第六处理模块,用于在所述第一应用程序处于后台运行态,且运行时长 大于或等于预设时长的情况下,调整为使用单个频率进行定位,或者,停止定位。
终端设备700能够实现图1至图6的方法实施例中终端设备实现的各个过程,为避免重复,这里不再赘述。本发明实施例的终端设备,在接收到对第一应用程序的启动操作的情况下,针对该第一应用程序所符合的预设条件,来调整终端设备的定位方式,在该第一应用程序符合第一预设条件的情况下,启动该第一应用程序,并使用多个频率进行定位;在该第一应用程序符合第二预设条件的情况下,启动第一应用程序,并使用单个频率进行定位,以实现对定位精准度要求较高的应用程序采用多频定位,对定位精准度要求较低的应用程序采用单频定位,从而避免终端设备无差别地使用多频定位而造成功耗浪费的问题。
图8为实现本发明各个实施例的一种终端设备的硬件结构示意图,该终端设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,终端设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器810,用于接收对第一应用程序的启动操作;在所述第一应用程序符合第一预设条件的情况下,启动所述第一应用程序,并使用多个频率进行定位;在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。
可见,该终端设备在接收到对第一应用程序的启动操作的情况下,针对该第一应用程序所符合的预设条件,来调整终端设备的定位方式,在该第一应用程序符合第一预设条件的情况下,启动该第一应用程序,并使用多个频率进行定位;在该第一应用程序符合第二预设条件的情况下,启动第一应用程序,并使用单个频率进行定位,以实现对定位精准度要求较高的应用程序采用多频定位,对定位精准度要求较低的应用程序采用单频定位,从而避免 终端设备无差别地使用多频定位而造成功耗浪费的问题。
应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信***与网络和其他设备通信。
终端设备通过网络模块802为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与终端设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。
终端设备800还包括至少一种传感器805,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在终端设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、 敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。
用户输入单元807可用于接收输入的数字或字符信息,以及产生与终端设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现终端设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现终端设备的输入和输出功能,具体此处不做限定。
接口单元808为外部装置与终端设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或 无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(input/output,I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到终端设备800内的一个或多个元件或者可以用于在终端设备800和外部装置之间传输数据。
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器810是终端设备的控制中心,利用各种接口和线路连接整个终端设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行终端设备的各种功能和处理数据,从而对终端设备进行整体监控。处理器810可包括一个或多个处理单元;优选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。
终端设备800还可以包括给各个部件供电的电源811(比如电池),优选的,电源811可以通过电源管理***与处理器810逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
另外,终端设备800包括一些未示出的功能模块,在此不再赘述。
优选的,本发明实施例还提供一种终端设备,包括处理器、存储器及存储在存储器上并可在所述处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述定位方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述定位方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中, 所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接, 可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,RAM)等。
可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,模块、单元、子单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本发明所述功能的其它电子单元或其组合中。
对于软件实现,可通过执行本发明实施例所述功能的模块(例如过程、函 数等)来实现本发明实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (17)

  1. 一种定位方法,应用于终端设备,其特征在于,包括:
    接收对第一应用程序的启动操作;
    在所述第一应用程序符合第一预设条件的情况下,启动所述第一应用程序,并使用多个频率进行定位;
    在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。
  2. 根据权利要求1所述的方法,其特征在于,所述启动所述第一应用程序之前,还包括:
    检测所述第一应用程序是否属于第一应用程序列表;
    若所述第一应用程序属于所述第一应用程序列表,则确定所述第一应用程序符合第一预设条件;
    若所述第一应用程序不属于所述第一应用程序列表,则确定所述第一应用程序符合第二预设条件。
  3. 根据权利要求2所述的方法,其特征在于,所述第一应用程序列表中的应用程序为预设类型的应用程序;
    在所述检测所述第一应用程序是否属于第一应用程序列表之前,所述方法还包括:
    获取所述终端设备上已安装的应用程序的应用类型;
    将应用类型为所述预设类型的应用程序添加到所述第一应用程序列表中。
  4. 根据权利要求2所述的方法,其特征在于,所述第一应用程序列表中的应用程序为目标文件夹中的应用程序;
    在所述检测所述第一应用程序是否属于第一应用程序列表之前,所述方法还包括:
    获取用户对所述第一应用程序的图标的第一操作;
    响应于所述第一操作,将所述第一应用程序添加至所述目标文件夹中,或将所述第一应用程序从所述目标文件夹中移除。
  5. 根据权利要求2所述的方法,其特征在于,所述第一应用程序列表中 的应用程序为具有预设标识的应用程序;
    在所述检测所述第一应用程序是否属于第一应用程序列表之前,所述方法还包括:
    获取用户对所述第一应用程序的图标的第二操作;
    响应于所述第二操作,对所述第一应用程序添加或移除所述预设标识。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,在所述使用多个频率进行定位之后,所述方法还包括:
    检测所述第一应用程序的使用状态;
    在所述第一应用程序处于后台运行态,且运行时长大于或等于预设时长的情况下,调整为使用单个频率进行定位,或者,停止定位。
  7. 一种终端设备,其特征在于,包括:
    接收模块,用于接收对第一应用程序的启动操作;
    第一处理模块,用于在所述第一应用程序符合第一预设条件的情况下,启动所述第一应用程序,并使用多个频率进行定位;
    第二处理模块,用于在所述第一应用程序符合第二预设条件的情况下,启动所述第一应用程序,并使用单个频率进行定位。
  8. 根据权利要求7所述的终端设备,其特征在于,还包括:
    检测模块,用于检测所述第一应用程序是否属于第一应用程序列表;
    第一确定模块,用于若所述第一应用程序属于所述第一应用程序列表,则确定所述第一应用程序符合第一预设条件;
    第二确定模块,用于若所述第一应用程序不属于所述第一应用程序列表,则确定所述第一应用程序符合第二预设条件。
  9. 根据权利要求8所述的终端设备,其特征在于,所述第一应用程序列表中的应用程序为预设类型的应用程序;
    所述终端设备还包括:
    第一获取模块,用于获取所述终端设备上已安装的应用程序的应用类型;
    第三处理模块,用于将应用类型为所述预设类型的应用程序添加到所述第一应用程序列表中。
  10. 根据权利要求8所述的终端设备,其特征在于,所述第一应用程序列 表中的应用程序为目标文件夹中的应用程序;
    所述终端设备还包括:
    第二获取模块,用于获取用户对所述第一应用程序的图标的第一操作;
    第四处理模块,用于响应于所述第一操作,将所述第一应用程序添加至所述目标文件夹中,或将所述第一应用程序从所述目标文件夹中移除。
  11. 根据权利要求8所述的终端设备,其特征在于,所述第一应用程序列表中的应用程序为具有预设标识的应用程序;
    所述终端设备还包括:
    第三获取模块,用于获取用户对所述第一应用程序的图标的第二操作;
    第五处理模块,用于响应于所述第二操作,对所述第一应用程序添加或移除所述预设标识。
  12. 根据权利要求7至11中任一项所述的终端设备,其特征在于,还包括:
    状态检测模块,用于检测所述第一应用程序的使用状态;
    第六处理模块,用于在所述第一应用程序处于后台运行态,且运行时长大于或等于预设时长的情况下,调整为使用单个频率进行定位,或者,停止定位。
  13. 一种终端设备,其特征在于,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述的定位方法的步骤。
  14. 根据权利要求13所述的终端设备,其特征在于,还包括接口单元,所述接口单元为外部装置与所述终端设备连接的接口。
  15. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述的定位方法的步骤。
  16. 一种计算机程序产品,其特征在于,所述计算机程序产品被存储在非易失的存储介质中,所述程序产品被配置成被至少一个处理器执行以实现如权利要求1至6中任一项所述的定位方法的步骤。
  17. 一种定位装置,其特征在于,所述装置被配置成用于执行如权利要求 1至6中任一项所述的定位方法。
PCT/CN2020/101850 2019-08-13 2020-07-14 定位方法及终端设备 WO2021027466A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910744675.XA CN110456395B (zh) 2019-08-13 2019-08-13 一种定位方法及终端设备
CN201910744675.X 2019-08-13

Publications (1)

Publication Number Publication Date
WO2021027466A1 true WO2021027466A1 (zh) 2021-02-18

Family

ID=68486221

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/101850 WO2021027466A1 (zh) 2019-08-13 2020-07-14 定位方法及终端设备

Country Status (2)

Country Link
CN (1) CN110456395B (zh)
WO (1) WO2021027466A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473362A (zh) * 2021-06-29 2021-10-01 北京小米移动软件有限公司 定位方法、装置以及存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456395B (zh) * 2019-08-13 2022-03-04 维沃移动通信有限公司 一种定位方法及终端设备
CN111245450A (zh) * 2020-03-13 2020-06-05 华为技术有限公司 智能穿戴设备
CN111610543B (zh) * 2020-06-23 2023-08-22 湖南国科微电子股份有限公司 低功耗处理方法、装置、定位***和存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080299989A1 (en) * 2007-05-31 2008-12-04 Yahoo! Inc. Centralized location broker
CN105933521A (zh) * 2016-04-22 2016-09-07 广东小天才科技有限公司 一种移动终端选择定位模式的方法和装置
CN108076429A (zh) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 定位方法、装置、存储介质及移动终端
CN109164477A (zh) * 2018-08-29 2019-01-08 维沃移动通信有限公司 一种应用定位的方法及移动终端
CN110456395A (zh) * 2019-08-13 2019-11-15 维沃移动通信有限公司 一种定位方法及终端设备
CN111399013A (zh) * 2020-03-20 2020-07-10 Oppo广东移动通信有限公司 定位方法、装置、终端及存储介质

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3722055B2 (ja) * 2001-11-30 2005-11-30 日本電気株式会社 携帯端末装置
US20090270108A1 (en) * 2008-04-28 2009-10-29 Sharp Laboratories Of America, Inc. Systems and methods for measuring channel quality for persistent scheduled user equipment
FR2974185B1 (fr) * 2011-04-14 2014-01-17 Thales Sa Recepteur bi-frequences de positionnement par satellites et procede de reception associe
US9445334B2 (en) * 2011-04-20 2016-09-13 Qualcomm Incorporated Switching between radio access technologies at a multi-mode access point
US9151826B2 (en) * 2012-06-08 2015-10-06 Symbol Technologies, Llc Locationing via phase difference correlation between two frequency pulses derived from a single frequency emitter ultrasonic burst
JP2016205881A (ja) * 2015-04-17 2016-12-08 カシオ計算機株式会社 電子機器、測位制御方法及びプログラム
CN105223593B (zh) * 2015-09-17 2018-01-23 北京奇虎科技有限公司 终端定位频率调节方法、***和定位间隔调节方法、***
CN105517145A (zh) * 2015-11-27 2016-04-20 深圳市金溢科技股份有限公司 一种车辆无线定位方法、无线定位基站及***
CN107704754A (zh) * 2017-08-22 2018-02-16 努比亚技术有限公司 一种终端控制方法及装置、计算机可读存储介质
CN107809526A (zh) * 2017-09-28 2018-03-16 努比亚技术有限公司 终端应用程序分类方法、移动终端及计算机可读存储介质
CN108151730A (zh) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 定位控制方法、装置、存储介质及终端设备
CN108008423B (zh) * 2017-12-13 2020-01-14 Oppo广东移动通信有限公司 基于定位模块的控制方法、装置、存储介质及移动终端
CN108012237B (zh) * 2017-12-13 2020-02-14 Oppo广东移动通信有限公司 定位控制方法、装置、存储介质及终端设备
CN108055644B (zh) * 2017-12-13 2021-01-15 Oppo广东移动通信有限公司 定位控制方法、装置、存储介质及终端设备
CN108363082A (zh) * 2018-02-02 2018-08-03 上海康斐信息技术有限公司 一种降低gps定位功耗的方法及装置
CN108931793A (zh) * 2018-08-09 2018-12-04 深圳普创天信科技发展有限公司 智能***、定位工作模式调整方法
CN109581437B (zh) * 2018-12-07 2020-11-10 歌尔科技有限公司 一种可穿戴设备及其定位方法、装置
CN109975843A (zh) * 2019-04-02 2019-07-05 甄十信息科技(上海)有限公司 定位手表中的gnss的节电方法及设备
CN110069120B (zh) * 2019-04-30 2021-04-20 满帮信息咨询有限公司 基于网联协同的定位设备控制方法、***、设备及介质

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080299989A1 (en) * 2007-05-31 2008-12-04 Yahoo! Inc. Centralized location broker
CN105933521A (zh) * 2016-04-22 2016-09-07 广东小天才科技有限公司 一种移动终端选择定位模式的方法和装置
CN108076429A (zh) * 2017-12-13 2018-05-25 广东欧珀移动通信有限公司 定位方法、装置、存储介质及移动终端
CN109164477A (zh) * 2018-08-29 2019-01-08 维沃移动通信有限公司 一种应用定位的方法及移动终端
CN110456395A (zh) * 2019-08-13 2019-11-15 维沃移动通信有限公司 一种定位方法及终端设备
CN111399013A (zh) * 2020-03-20 2020-07-10 Oppo广东移动通信有限公司 定位方法、装置、终端及存储介质

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473362A (zh) * 2021-06-29 2021-10-01 北京小米移动软件有限公司 定位方法、装置以及存储介质

Also Published As

Publication number Publication date
CN110456395B (zh) 2022-03-04
CN110456395A (zh) 2019-11-15

Similar Documents

Publication Publication Date Title
US20220276909A1 (en) Screen projection control method and electronic device
WO2021027466A1 (zh) 定位方法及终端设备
WO2020015656A1 (zh) 移动终端和应用程序的权限管理方法、装置
CN107734614B (zh) Wi-Fi天线控制方法、移动终端及计算机可读存储介质
US11604567B2 (en) Information processing method and terminal
US20200257433A1 (en) Display method and mobile terminal
EP3719612A1 (en) Processing method for reducing power consumption and mobile terminal
CN110837327B (zh) 一种消息查看方法及终端
WO2019080775A1 (zh) 通知消息的提示方法及移动终端
WO2020253340A1 (zh) 导航方法及移动终端
US20220278950A1 (en) Information display method, information sending method, and electronic device
CN107888765B (zh) 一种切换场景模式的方法、移动终端
CN108984066B (zh) 一种应用程序图标显示方法及移动终端
US11131557B2 (en) Full-vision navigation and positioning method, intelligent terminal and storage device
WO2020156123A1 (zh) 信息处理方法及终端设备
CN110096203B (zh) 一种截图方法及移动终端
US20230025276A1 (en) Information display method, electronic device, and storage medium
WO2021057712A1 (zh) 接近检测方法及终端设备
CN111125696A (zh) 信息提示方法及电子设备
CN110825474A (zh) 界面显示方法、装置和电子设备
CN108228357B (zh) 一种内存清理方法及移动终端
CN109947617B (zh) 一种监听应用界面显示内容的方法、终端及可读存储介质
CN108988413B (zh) 一种移动终端充电的方法和移动终端
CN109068276B (zh) 一种消息转换方法及终端
CN109413276B (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: 20853006

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: 20853006

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20853006

Country of ref document: EP

Kind code of ref document: A1