WO2017088111A1 - 一种获取位置信息的方法和系统 - Google Patents

一种获取位置信息的方法和系统 Download PDF

Info

Publication number
WO2017088111A1
WO2017088111A1 PCT/CN2015/095464 CN2015095464W WO2017088111A1 WO 2017088111 A1 WO2017088111 A1 WO 2017088111A1 CN 2015095464 W CN2015095464 W CN 2015095464W WO 2017088111 A1 WO2017088111 A1 WO 2017088111A1
Authority
WO
WIPO (PCT)
Prior art keywords
location
information
mobile terminal
distance
location information
Prior art date
Application number
PCT/CN2015/095464
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 PCT/CN2015/095464 priority Critical patent/WO2017088111A1/zh
Publication of WO2017088111A1 publication Critical patent/WO2017088111A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method and system for acquiring location information.
  • the photo app will add a display of the shooting location on the photographed photos, which can add photos.
  • the amount of information high user experience.
  • the location information of the location where the mobile phone is photographed is mainly obtained by positioning the GPS function of the GPS in the mobile phone.
  • the GPS receiver will receive and report the satellite positioning position information according to the position request of the photographing APP, for example, receiving and reporting once in one second, thereby causing a large power consumption and reducing the life time of the smartphone. problem.
  • the present invention provides a method and system for acquiring location information, such that the user reduces the power consumption of the system without significantly reducing the accuracy of the location information.
  • an embodiment of the present invention provides a method for acquiring location information, where the performing by the mobile terminal includes: acquiring location information of the mobile terminal at a first location; stopping acquiring satellite positioning location information; acquiring the mobile terminal Distance information between the second location and the first location, the distance information indicating a distance between the mobile terminal and the first location at the second location; if the mobile terminal is at the second location The distance between the first location is less than or equal to the first preset threshold, and the location information of the mobile terminal at the first location is used as the location information of the mobile terminal at the second location.
  • the mobile terminal may not open the satellite positioning location information receiver, for example, the GPS receiver performs location information reception, that is, does not update the location information, due to short-distance movement.
  • the change of the position information has a very small influence on the positioning accuracy, so the power consumption of the mobile terminal can be reduced without affecting the positioning accuracy, and the battery life can be extended and the standby time can be increased for the battery-powered mobile terminal. Improve the endurance of mobile terminals.
  • the acquiring, by the mobile terminal, the distance information between the second location and the first location includes: acquiring the mobile terminal from the first location to the first The number of steps moved by the second position. The distance is determined by obtaining the number of steps that the mobile terminal moves between the two locations, which is simple to implement, does not need to increase the hardware of the mobile terminal, does not bring an additional computing burden to the mobile terminal, and can achieve the required precision.
  • the acquiring the distance information between the second location and the first location of the mobile terminal specifically includes: acquiring the mobile when detecting that a preset event occurs The distance information between the terminal and the first location at the second location, wherein the preset event may be a startup camera application; launching the fitness application; enabling sharing of the multimedia file and the first timer overflow.
  • the location information is acquired only when the preset event occurs, which avoids the burden caused by frequently acquiring unnecessary location information to the device, and can further reduce the power consumption of the mobile terminal.
  • the step of acquiring the mobile terminal to move from the first location to the second location is specifically: when the mobile terminal is off the screen, Synchronizing the first step on the wearable device connected to the mobile terminal; synchronizing the second step from the wearable device when the terminal detects that the preset event occurs after the terminal is bright again; according to the first The number of steps and the second step determine a moving distance of the mobile terminal between the second location and the first location.
  • the implementation manner can obtain the number of steps of the mobile terminal movement from the external device that communicates with the mobile terminal, and synchronize the steps when the screen is off, and the screen is re-lit and the preset event occurs. The accuracy of the measurement steps is guaranteed without wasting system resources.
  • the method before the acquiring the distance information between the mobile terminal and the first location, the method further includes: acquiring a moving speed of the mobile terminal Or acceleration, determining that the moving speed of the mobile terminal is less than or equal to a second preset speed threshold or that the speed and acceleration of the mobile terminal are respectively less than or equal to a preset speed and an acceleration threshold.
  • acquiring the moving speed or speed and acceleration of the mobile terminal it is ensured that the mobile terminal implements or switches to the implementation mode in the low speed state, because the position of the moving speed is relatively small, and the number of times of updating the position information is reduced.
  • the degree of influence is relatively small, so that the accuracy of the location information provided to each positioning application of the mobile terminal can be guaranteed.
  • the method further includes: if the distance between the mobile terminal and the first location is greater than a first preset threshold, acquiring satellite positioning location information, A location information at the second location is determined. In this implementation manner, the location of the mobile beyond the preset range is updated, and the current location information of the mobile terminal is obtained by reacquiring the satellite positioning location information, thereby ensuring the accuracy of the geographical location of the mobile terminal.
  • the method further includes: when the preset event occurs, for example, when another APP that requires high-precision location information or the second timer overflows, re-acquiring the satellite positioning location information, That is to say, even if the mobile terminal moves within the preset range, the satellite positioning position information is forcibly acquired when the preset event occurs.
  • the second timer and the first timer may be the same timer or not.
  • the implementation mode can forcibly enter the state of acquiring the satellite positioning position information in real time when the position APP that requires the high-precision position is activated, so as to ensure the user's demand for the position information, or to prevent the satellite positioning position information receiver from not receiving the satellite for too long.
  • the search time caused by the signal is too long, to avoid system power consumption increase and user satisfaction is reduced.
  • the embodiment of the present invention further provides a geolocation system, including: a satellite positioning location information receiver, configured to receive satellite positioning location information, and a processor, configured to acquire a location of the system at the first location Information; stopping acquiring satellite positioning location information; obtaining distance information between the system and the first location at the second location, the distance information indicating a distance between the system and the first location at the second location If the system is at the second location with the The distance between the first position is less than or equal to the first preset threshold, and the position information of the system at the first position is used as the position information of the system at the second position.
  • a geolocation system including: a satellite positioning location information receiver, configured to receive satellite positioning location information, and a processor, configured to acquire a location of the system at the first location Information; stopping acquiring satellite positioning location information; obtaining distance information between the system and the first location at the second location, the distance information indicating a distance between the system and the first location at the second location If the system is at the second location with the The distance between the first position is less
  • the system provided by the embodiment of the present invention can stop acquiring the satellite positioning position information in the process of moving the system within the preset range without increasing the system hardware, and the position information of the starting point is used as the current position information of the system. Reduce system power consumption, save battery power, and improve system endurance.
  • the processor is configured to acquire location information of the system at a first location; and stopping acquiring the satellite positioning location information specifically includes: the processor is configured by using the satellite A location information receiver, such as a GPS receiver, acquires location information of the system at the first location, and stops acquiring satellite location location information after acquiring the location information.
  • the position information at the first position that is, the movement start position is obtained by the GPS receiver, so that the position information of the precise positioning is adopted when the system moves within the preset range, and the second position can be improved. Positioning accuracy at the location.
  • the obtaining the distance information between the second location and the first location of the system specifically includes: acquiring the system from the first location to the second location The number of steps moved.
  • the implementation is simple, does not increase system resource consumption and can save energy.
  • the method before the obtaining the distance information between the second location and the first location, the method further includes: acquiring a moving speed or an acceleration of the system And determining that the moving speed of the system is less than or equal to a second preset speed threshold or that the speed and acceleration of the system are respectively less than or equal to a preset speed and acceleration threshold.
  • the solution in this embodiment can be implemented only in a low-speed state of the system, so as to ensure that the positioning accuracy of the system can meet the needs of the location application and ensure user satisfaction. degree.
  • the distance information between the second location and the first location of the system is acquired only when a preset event is detected.
  • the implementation can reduce system consumption and reduce system power consumption.
  • the system further includes a display screen, wherein the step of acquiring the system to move from the first location to the second location is specifically: When extinguished, the first step is synchronized from the wearable device connected to the system; when the display is illuminated again and a preset event is detected, the second step is synchronized from the wearable device And determining, according to the first step number and the second step number, distance information between the second position and the first position of the system.
  • the implementation can ensure the accuracy of the step measurement and reduce the system's own resource consumption.
  • the method further includes: if the system moves within the preset range, as long as the preset event is detected, for example, another APP that requires high-precision location information or a specific timer overflow At the time, the satellite positioning position information is re-acquired for positioning to ensure the user's demand for the location information, or the satellite positioning position information receiver is not prevented from being too long to receive the satellite signal, and the search time is too long to avoid system work. Increased consumption and reduced user satisfaction.
  • the embodiment of the present invention further provides a geolocation system, including a satellite positioning location information receiving module, and an acquiring module, configured to acquire location information of the system at a first location, and stop acquiring satellite positioning. Position information; and obtaining distance information between the second location and the first location of the system, the distance information indicating a distance between the system and the first location at the second location; determining module: using Where the distance between the system and the first location at the second location is less than or equal to a first predetermined threshold, the location information of the system at the first location is taken as the system at the second location Location information.
  • the embodiment of the invention enables the user to no longer acquire the satellite positioning location information when moving within a preset distance after acquiring an accurate positioning information, and directly uses the acquired precise positioning information as the current location information.
  • the embodiment of the invention can realize that in the case of short-distance movement, the position information is not updated by acquiring satellite positioning position information, so as to reduce satellite positioning.
  • the location information receiver consumes power.
  • the obtaining the distance information between the second location and the first location of the system specifically includes: acquiring the system from the first location to the second location The number of steps moved.
  • the implementation manner is simple, and the system hardware configuration is not increased, and finally the system power consumption is reduced. .
  • the distance information between the second location and the first location of the system is acquired only when a preset event is detected.
  • the implementation manner can ensure that the system performs location update only when needed, thereby reducing system performance. Consumption, improve endurance.
  • the system further includes a display device, wherein the step of acquiring the system to move from the first location to the second location is specifically: when the display device is turned off Synchronizing the first step from the wearable device connected to the system; when the display device is lit again and detecting that a preset event occurs, synchronizing the second step from the wearable device; The first step number and the second step number determine distance information between the second position and the first position of the system.
  • the implementation manner can obtain the number of moving steps by communicating with an external device, and the step number measurement can be ensured. Accuracy.
  • the method before the obtaining the distance information between the second location and the first location, the method further includes: acquiring a moving speed or an acceleration of the system And determining that the moving speed of the system is less than or equal to a second preset speed threshold or that the speed and acceleration of the system are respectively less than or equal to a preset speed and an acceleration threshold.
  • the implementation manner can ensure that the location information is obtained by the GPS receiver at a low speed of the system, and the positioning accuracy of the system is ensured. Meet the needs of users.
  • the processing module is further configured to restart if the distance between the mobile terminal and the first location is greater than a first preset threshold Obtaining satellite positioning location information, and acquiring, by the GPS receiver, location information of the mobile terminal at the second location.
  • the location update is performed for the mobile that exceeds the preset range, and the location information is obtained by re-enabling the GPS receiver to ensure the accurate positioning of the system. Sex.
  • the method further includes: when a preset event occurs, for example, when another APP that requires high-precision location information or a specific timer overflows, forcibly re-acquiring the satellite positioning location information, To ensure the user's demand for location information, or to prevent the satellite positioning location information receiver from being too long to receive satellite signals, the search time is too long, to avoid system power consumption increase and user satisfaction is reduced.
  • a preset event occurs, for example, when another APP that requires high-precision location information or a specific timer overflows, forcibly re-acquiring the satellite positioning location information.
  • FIG. 1 is a schematic diagram of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a method for acquiring location information according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another method for acquiring location information according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another method for acquiring location information according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an embodiment of a geolocation system according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of another embodiment of a geolocation system according to an embodiment of the present invention.
  • Embodiments of the present invention provide a method and system for acquiring location information, which achieves a reduction in system power consumption without significantly reducing positioning accuracy.
  • FIG. 1 illustrates an example of a mobile terminal (mobile device) 100 (eg, a wireless mobile device) that can run a geolocation application.
  • the mobile device has a user interface (UI) 110 that allows a user 115, such as a human operator of the mobile device 100, to interact with an application executing on the mobile device.
  • UI user interface
  • An application is a collection of program code that can be executed by computer system components of mobile device 100.
  • mobile device 100 can have an application processor 170 that executes an application.
  • the application processor 170 may be a single component such as a microprocessor, a microcontroller, or an ASIC (Application Specific Integrated Circuit), or the application processor 170 may be a combination of these kinds of components or other components, or the application processor 170 may It is a subcomponent of another component (eg, application processor 170 can be part of a microprocessor).
  • ASIC Application Specific Integrated Circuit
  • Applications may be stored in a data storage device (not shown) of mobile device 100, such as a solid state memory, flash memory, or other type of data storage device.
  • a data storage device such as a solid state memory, flash memory, or other type of data storage device.
  • the application When the application is executed (eg, after the mobile device 100 receives an indication to execute the camera application from the user 115), the application's program code is executed on the mobile device.
  • An application having program code executing on the mobile device 100 can run on the mobile device 100.
  • a location application is one of the applications.
  • the location application is to use a location letter about the mobile device 100 Application of interest.
  • the location information about the mobile device 100 can be collected/acquired according to the needs of the location application.
  • One example of a location application is the camera application 130.
  • the camera application 130 is capable of superimposing positional information of the shooting locations on the photographed photographs so that the photographs display the positional information of the photographing place to the user when being browsed or shared.
  • Another example of a location application is the personal fitness application 140.
  • the personal fitness application 140 can display information on the user interface 110 that a user, such as the user 115, can use in a personal fitness activity. For example, assuming the user is running along a running path, the personal fitness application 140 can indicate other information such as the user's current location, current running speed, or other location determined based on the location of the mobile device 100.
  • the satellite positioning position information receiver mentioned in the embodiments of the present invention is a user side receiver that receives a satellite signal providing a global positioning function. Specifically, it can receive signals from the Global Navigation Satellite System, GNSS, such as Global Positioning System GPS, Beidou satellite navigation system, Galileo navigation system, GLONASS navigation system or other navigation satellite systems.
  • GNSS Global Navigation Satellite System
  • the following uses GNSS as an example to illustrate that location information used by each location application can be received from the GNSS receiver 120.
  • the GNSS receiver 120 determines the physical location of the mobile device 100, for example, by longitude and latitude. In some examples, GNSS receiver 120 determines the physical location of mobile device 100 by receiving data from satellites in Earth orbit and calculating a location based on the received data. In use, the GNSS receiver 120 draws power from the power source 150 of the mobile device 100.
  • the power source 150 can be a battery such as a lithium ion battery.
  • the GNSS receiver 120 is in communication with the baseband processor 160.
  • the baseband processor 160 calculates location data based on signals received from the GNSS receiver 120, such as calculating a corresponding geographic location, such as 220 Kushiro Road, Yangpu District, Shanghai.
  • the baseband processor 160 may be a single component such as a microprocessor, microcontroller, or ASIC (Application Specific Integrated Circuit), or the baseband processor 160 may be a combination of these kinds of components or other components, or the baseband processor 160 may It is a subcomponent of another component (eg, baseband processor 160 can be part of a microprocessor).
  • the baseband processor 160 can operate independently of the application processor 170. For example, application processor 170 need not be in an active state for baseband processor 160 to communicate with the GNSS receiver.
  • baseband processor 160 calculates location data 162 based on signals received at GNSS receiver 120 and provides location data 162 to application processor 170, which may also directly receive latitude and longitude information received at GNSS receiver 120.
  • the location data is provided to the application processor, and the geographic location calculated according to the latitude and longitude information may also be provided as location data to the application processor, or the latitude and longitude information and the geographical location calculated according to the latitude and longitude information may be provided as location data together.
  • Application processor. Location data 162 can be provided to application processor 170 for use by a location application, such as camera application 130 or personal fitness application 140.
  • the GNSS receiver 120 is described by taking a GPS receiver as an example.
  • the user interface 110 is a human-computer interaction interface for implementing various functions in accordance with user instructions. These UIs can be presented on display screens of a variety of electronic devices including, but not limited to, laptop computers, desktop computers, computer terminals, television systems, tablet computers, e-book readers, wearable devices, and smart phones. One or more of these electronic devices can include a touch sensitive surface.
  • the touch sensitive surface is capable of processing one input point or multiple simultaneous input points, including processing data regarding pressure, time, frequency or position of each input point.
  • the satellite positioning location information may be stopped by sending a request to the satellite positioning location information receiver by stopping the location application; or the satellite positioning location information may be disabled by The receiver stops acquiring satellite positioning position information, for example, when the receiving function of the GPS receiver is disabled, the receiving function of the GPS receiver can be placed on pause, close or stop.
  • the baseband processor disables the receiving function of the GPS receiver, for example, by transmitting a disable signal. It is also possible to stop acquiring satellite positioning position information by turning off the satellite positioning function.
  • the function of turning off the satellite positioning function includes stopping the acquisition of the satellite positioning position information, stopping monitoring the satellite positioning position information, and stopping the processing of the acquired satellite positioning position information.
  • FIG. 2 is a schematic flowchart of a method for acquiring location information according to an embodiment of the present invention. As shown in Figure 2, the acquisition The method of taking location information may include the following steps:
  • S101 Acquire location information of the mobile terminal at the first location.
  • the location information of the mobile terminal at the first location may be satellite positioning location information received by the GPS receiver, such as latitude and longitude information, or may be a geographic location received by the GPS receiver and calculated via the baseband processor, such as Beijing Tiananmen Square. Beijing National Stadium (Bird's Nest).
  • the location information of the mobile terminal at the first location may also be obtained by positioning through WiFi.
  • the principle of WiFi positioning 1.
  • Each wireless access node (AP), such as a router, has a globally unique MAC address, and generally the wireless AP does not move for a period of time; 2. The device is turned on.
  • the surrounding AP signals can be scanned and collected, whether or not encrypted, whether connected, or even if the signal strength is insufficient to be displayed in the wireless signal list, the MAC address broadcast by the AP can be obtained;
  • the device sends the data indicating the AP to the location server, and the server retrieves the geographic location of each AP, and calculates the geographic location of the device and returns to the user equipment according to the strength of each signal; 4.
  • Location service provider It is necessary to constantly update and supplement your own database to ensure the accuracy of the data.
  • the location information of the mobile terminal at the first location may also be obtained by using a network positioning method, specifically, acquiring the location information of the user according to the network provided by the operator (such as GSM), and may be located according to the cell of the base station where the user is currently located.
  • the relative location between the mobile phone and the base stations can be determined according to the geographic location of the base station; the location information of the mobile terminal at the first location can also be obtained by combining the network and GPS provided by the operator, for example, network assistance.
  • GPS positioning Assisted GPS, AGPS
  • AGPS AGPS
  • GPS receivers are configured with a satellite positioning location information receiver, and the GPS receiver is taken as an example, and the GPS receivers are all enabled (or enabled/activated). status.
  • the acquisition of the satellite positioning location information is stopped, that is, the location information is no longer acquired by the satellite positioning location information receiver, such as a GPS.
  • the satellite positioning location information receiver such as a GPS.
  • the location information of the mobile terminal at the first location can only be obtained by using the GPS receiver as described above. The way outside is obtained.
  • S105 Obtain distance information between the mobile terminal and the first location at the second location, where the distance information indicates a distance between the mobile terminal and the first location at the second location.
  • the number of steps that the mobile terminal moves from the first location to the second location may be obtained by using a sensor on the mobile terminal to obtain a distance between the mobile terminal and the first location at the second location. information.
  • the location information of the mobile terminal at the second and first locations may also be obtained through WiFi or a network provided by the operator, thereby determining distance information between the first and second locations. It can also be determined according to the received positioning information. For example, some large buildings may have a locator inside to transmit their own location information, and the two locations may be determined according to the positioning information received at the second and first locations.
  • the received positioning information can be combined with the obtained number of moving steps to determine the distance information, for example, the positioning information is received at the first position, and the last step of receiving the positioning information is followed by 5 steps.
  • the distance from the first position can be determined according to the last received positioning information, and the distance between the second position and the first position can be obtained by adding 5 steps* the preset step.
  • the determination of the distance may be implemented by the WiFi or the network provided by the operator, the number of steps, and any combination of the positioning information, or the other technologies that can implement the distance measurement may be used in the embodiments of the present invention.
  • the number of steps can be obtained by the pedometer on the mobile terminal; it can also be obtained by an acceleration sensor, a vibration sensor, etc., and can also be obtained by combining a gyroscope; or by wireless communication, such as through Bluetooth, near field communication (Near Field) Communication, NFC) or other means of communication are obtained from an external device, such as from a pedometer, or a wristband with a step counter function, a watch, or other external device.
  • wireless communication such as through Bluetooth, near field communication (Near Field) Communication, NFC) or other means of communication are obtained from an external device, such as from a pedometer, or a wristband with a step counter function, a watch, or other external device.
  • obtaining the distance information between the second location and the first location of the mobile terminal may be real-time, as long as the detection of the occurrence of the movement triggers the distance measurement; or may occur under a specific event trigger, for example, It is detected that the camera application is turned on, the shutter of the camera application is detected to be pressed, the sharing command is detected, the position display command is detected, the timer expires (ie, the timing is measured), and the like.
  • the acquisition of the distance information between two locations under the trigger of a specific event is more conducive to system resources than the real-time distance detection.
  • a preset step threshold for example, 50 steps
  • stopping acquiring satellite positioning location information that is, not using satellite positioning location information
  • a receiver such as a GPS receiver
  • obtains location information of the mobile terminal at the second location and uses location information of the mobile terminal at the first location as location information of the mobile terminal at the second location; or if obtained
  • the product of the number of steps moved by the mobile terminal from the first position to the second position and the preset stride is less than or equal to a preset distance threshold, for example, 25 meters (ie, 50 steps * 0.5 m / step)
  • the acquisition of the satellite is stopped.
  • Positioning the location information that is, not transmitting the location request to the GPS receiver, not acquiring the location information of the mobile terminal at the second location by the GPS receiver, and using the location information of the mobile terminal at the first location as the mobile terminal Location information at the second location.
  • the method may further include: Step S109: if the distance between the mobile terminal and the first location is greater than the preset distance threshold, acquiring the satellite positioning location information Location information of the mobile terminal at the second location. That is, after the mobile terminal moves beyond the preset range, the GPS receiver is re-opened or the location request information is sent to the GPS receiver to update the location information of the mobile terminal.
  • the method further includes: recovering acquiring the satellite positioning location information when detecting that the second preset event occurs, where the second preset event may initiate navigation for the user It is also required to apply high-precision position information; it may also take a long time for a timer to avoid the satellite positioning position information receiver, such as a GPS receiver, after receiving the satellite positioning position information for a long time and then receiving it again.
  • the satellite positioning position information receiver such as a GPS receiver
  • Time and more power for satellite search by setting a timer, such as 2 hours or other shorter time, forcing the acquisition of satellite positioning position information when the timer overflows, ensuring that the GPS is warm-started or warm-started instead of Cold start, which can search for stars based on the satellites retained by the final positioning, can save power for the system and prevent a decline in user experience due to long search time.
  • a timer such as 2 hours or other shorter time
  • the embodiment of the present invention stops updating the position information of the mobile terminal by acquiring the satellite positioning position information when moving within the preset range, thereby realizing the reduction of the system power consumption without significantly reducing the position accuracy.
  • the embodiment of the invention further provides a method for acquiring location information, taking a camera application and a GPS receiver as a satellite positioning location information receiver as an example, please refer to FIG. 3 .
  • This embodiment is a specific application of the previous embodiment. All the steps in the previous embodiment can be performed in this embodiment. Other applications and other satellite positioning location information receivers can be implemented according to the embodiment of the present invention. Sexual changes will not be repeated.
  • FIG. 3 is a schematic flowchart of a method for acquiring location information by a photographing application according to an embodiment of the present invention. As shown in FIG. 3, the method for obtaining location information may include the following steps:
  • S201 Open the camera of the mobile terminal, that is, enable/activate the camera application, and the user can know the state of the object to be photographed through the display interface of the mobile terminal or the frame of the camera.
  • S203 The user selects a GPS positioning function. Selecting the GPS positioning function means selecting the satellite positioning position information through the GPS receiver to realize the positioning function.
  • the user can select the GPS positioning function by selecting the function of superimposing the position information on the photo or video; or directly select or activate the GPS positioning function according to the interface prompt; the user can also open the GPS positioning function under the system function setting menu. Other ways to achieve the choice of GPS positioning function. It should be noted that the steps may be determined according to the order in which the user opens the location application and the satellite positioning location information receiver.
  • the execution order of S201 and S203 for example, in the case of turning on the GPS positioning function under the system function, the execution order of steps S201 and S203 can be reversed.
  • the location information of the current location (first location) of the mobile terminal can be obtained by using a GPS receiver, for example, 113°56′ east longitude and 22°30′ north latitude.
  • the location application such as the camera application stops sending the location request to the GPS receiver, and can also pause/disable/deactivate the receiving (and reporting) function of the GPS receiver, so that the GPS receiver is no longer Get (and report) location information at regular intervals.
  • the mobile terminal may further determine whether the moving speed or acceleration of the mobile terminal is lower than a preset threshold, for example, less than 5 km/hour, if lower than the preset threshold, It indicates that the current mobile terminal is in a low speed state, and the mobile terminal performs stop acquiring the satellite positioning location information. If the current moving speed or acceleration of the mobile terminal is higher than the preset threshold, it means that the mobile terminal is in or about to be in a high-speed motion state, the position change will be very fast, and the frequency requirement for updating the location information will be higher, then automatically The embodiment of the present invention is exited, and the state of receiving the location information in real time through the satellite positioning location information receiver is entered.
  • a preset threshold for example, less than 5 km/hour
  • S207 Obtain a number of steps of the user of the mobile terminal by using the sensor, that is, after stopping acquiring the satellite positioning location information by, for example, a GPS receiver, the mobile terminal acquires the number of steps of the user movement by using the sensor.
  • the number of steps can be obtained by a gravity sensor (also combined with a gyroscope) or a pedometer on the mobile terminal; or can be connected to the mobile terminal by wireless or wired communication methods such as Bluetooth, WiFi, NFC, etc.
  • the number of steps is obtained at the external device, and the external devices acquire the number of steps the user moves by the mobile terminal through their own sensors.
  • the user's moving steps are simply obtained, for example, the user walks 20 steps south from the first position, and then goes north 25 steps. If you stop, the total number of steps you get is 45 steps. You can also combine the gyroscope to calculate the distance from the first position where the user is currently moving, and still take the user 20 steps south. Taking 25 steps in the north as an example, the number of steps determined by the gravity sensor combined with the gyroscope from the first position is 5 steps in the north direction.
  • S209 Determine whether the number of steps is less than 50 steps.
  • the mobile terminal can obtain the number of steps of the user by using the self-sensor or the external device, and further determine whether the number of acquired steps is less than or equal to 50 steps, and can also directly obtain whether the number of steps is less than or equal to 50 steps from the external device, for example, It is known from the Bluetooth communication watch that the number of steps is 100 steps, that is, more than 50 steps.
  • 50 is just an example of a preset step threshold, which can be set according to the accuracy requirements, or set by the user.
  • this step may also be to determine whether the product of the number of steps and the stride is less than (or equal to) a preset distance threshold, for example, 25 meters.
  • the stride can also have a system default value, such as 0.5 m / step, or can be set by the user.
  • the location APP sends a location request to the satellite positioning location receiver, and the first location is updated by receiving the satellite positioning location information.
  • Location information such as 113°55' east longitude and 22°30' north latitude.
  • the location information of the second location herein may be latitude and longitude information, or may be location information obtained according to latitude and longitude information and corresponding to a specific location on the map, such as Shenzhen Lianhua Mountain.
  • the map here can be a network map obtained through the network, or an offline map downloaded by the mobile terminal to the local. By downloading the map to the local, the interaction with the network can be reduced when the photographing location (geographical location) is obtained, and the power consumption of the mobile terminal is further saved.
  • the function provided by the embodiment of the present invention may be automatically performed by the mobile terminal, or a GPS power saving mode may be added in an option set by the camera application, prompting the user that the function may be more
  • location information is provided for the user to select and is executed when the user selects the GPS power saving mode.
  • the method further includes: recovering acquiring the satellite positioning location information when detecting that the second preset event occurs, where the second preset event is, for example, requiring the user to start navigation, and the like, requiring high-precision location information.
  • the second preset event is, for example, requiring the user to start navigation, and the like, requiring high-precision location information.
  • it can also be a timer to avoid the satellite positioning position information receiver, such as a GPS receiver, it takes a long time and more power to receive the satellite positioning position information after receiving it for a long time.
  • Satellite search by setting a timer, such as 2 hours or other shorter time, forcing the acquisition of satellite positioning position information when the timer overflows, that is, ensuring that the GPS can perform warm start or hot start instead of cold start, based on the final positioning.
  • the retained satellite base is searched for stars, thus saving power to the system and preventing a drop in user experience due to long search times.
  • the embodiment of the present invention can also be applied to a scenario such as a fitness application, a walking navigation, etc., where the accuracy of position information is relatively low.
  • the embodiment of the present invention reduces the capability of the mobile terminal itself, such as a gravity sensor, a gyroscope, or the like, or an external device that communicates with it, such as a pedometer, a distance calculation function, etc., without increasing the hardware cost of the device.
  • the power consumption of the system since the accuracy of the location information is not significantly reduced, the user experience is not affected.
  • An embodiment of the present invention further provides a method for acquiring location information, where the camera application and the GPS receiver are taken as an example to obtain location information of the mobile terminal at the first location, where the location information at the first location may be through the GPS of the mobile terminal.
  • the receiver obtains, and can also be acquired by an external device that communicates with the mobile terminal; the number of steps that the user moves from the first location to the second location is obtained by the external device, and it is determined whether the number of steps is less than a preset threshold, and is less than or equal to the preset.
  • the location information is not updated when the threshold is used, and the location information at the first location is used as the location information at the second location, and is updated when the threshold is greater than the preset threshold, and the satellite positioning location information at the second location is acquired by the GPS receiver.
  • Figure 4. 4 is a photographing application obtaining position disclosed in an embodiment of the present invention; Schematic diagram of the flow of information methods. As shown in FIG. 4 , taking the camera application and the GPS receiver as an example, the method for acquiring location information can further improve the accuracy of positioning by acquiring the first location information when the terminal is off. Specifically, the method for obtaining location information may include the following steps:
  • S301 The user is off the screen.
  • the user of the mobile terminal turns off the screen in any application, any interface, or the screen automatically goes out.
  • S303 Acquire current location information, for example, acquire satellite positioning location information at the first location by using GPS; and then stop acquiring satellite positioning location information.
  • the timing of performing GPS location information acquisition in this step is when the mobile terminal is off, or when the mobile terminal receives the screen-out command, or after the screen is off. Except for this point, it is the same as S203 and S205, and will not be described again.
  • S305 Turn on the Bluetooth and synchronize the number of steps in the bracelet. That is, after obtaining the blanking command of the mobile terminal, or obtaining the command to cancel the screen, this step may be performed simultaneously with S301 and S303, or may be performed by executing S303 first, or performing this step before executing S303.
  • This step execution can be implemented by wireless communication methods such as Bluetooth, NFC, WiFi, and the like. Taking Bluetooth as an example, if the Bluetooth on the mobile terminal is off, the Bluetooth is turned on, and an external device that communicates with the mobile terminal, such as a wristband, is synchronized via Bluetooth, and the number of steps is synchronized, so that the mobile terminal knows that the pedometer is off when the screen is off.
  • the number of steps counted that is, the number of steps at the first position, for subsequent use. For example, if the user opens the camera application and closes the screen after taking a photo, the wristband information is synchronized when the screen is closed, and the number of steps recorded on the wristband at the first position of the current user is 200 steps.
  • the mobile terminal does not acquire the number of steps on the wristband, but when the Bluetooth is synchronized with the wristband, the command bracelet starts to step, that is, the current first position is used as a starting point to start counting.
  • S307 The user turns on the camera again. That is, when the user opens the camera application, or the user calls up the camera application running in the background, the camera is turned on.
  • S309 Synchronize the number of steps with the bracelet again using Bluetooth, and calculate the difference from the number of synchronized steps.
  • the number of steps recorded on the current external device such as the wristband is obtained again through Bluetooth; and the difference between the number of steps obtained this time and the number of steps recorded last time is calculated. Get the number of steps the user has moved during the screen. For example, when the user turns on the camera again, the number of steps is synchronized again, and the number of steps recorded on the wristband at the second position where the user is currently located can be obtained, for example, 300 steps.
  • the mobile terminal can obtain an external device, such as a wristband, via Bluetooth, and the recorded mobile terminal moves to the current second position starting point from the first location. That is, the mobile terminal obtains the number of steps or distances of movement from the first position to the second position directly from the wristband.
  • an external device such as a wristband
  • S3011 Determine whether the number of steps is less than 50 after the screen is off. According to the number of steps of the user moving from the first position to the second position obtained in S309, it is determined whether the number of steps is less than or equal to a preset step threshold, for example, 50 steps. In this step, according to the screen-off period obtained in S309, that is, the first position to the second position, the number of steps moved by the user, and the set stride, it is determined whether the product of the number of steps and the stride is less than or equal to a preset. Distance threshold, for example 25 meters. This step determines whether the distance moved by the user during the screen is within a preset range.
  • a preset step threshold for example 25 meters.
  • the camera application sends a location request to the GPS receiver, or opens/activates the GPS receiver to acquire satellite positioning location information to update the location information of the current location of the mobile terminal.
  • S3013 Perform photographing according to a user instruction. If the result of the determination is yes, that is, the number of steps after the screen is off is less than or equal to 50, it means that the user's moving distance is within the preset range, and the GPS update position information is not turned on, that is, the position information of the second position is still the position of the first position. Information; the second location information is available for use by one or more location applications, such as for a camera application. The mobile terminal performs a photographing operation after receiving a photo command from the user.
  • step S3015 Combine the previous location information into the photo. That is, if the movement is within the preset range, the position information at the first position is incorporated into the photographed photo or video file, if the movement range is exceeded The preset range is used to merge the satellite positioning position information updated by the GPS receiver into the captured photo or video file. This step is the same as step S2013 and will not be described again.
  • the method further includes: when the second preset event is detected, recovering the acquiring the satellite positioning location information, where the second preset event is, for example, the user initiating navigation and the like requiring high-precision location information.
  • the second preset event is, for example, the user initiating navigation and the like requiring high-precision location information.
  • it can also be a time when the timer expires, in order to avoid the satellite positioning position information receiver, such as a GPS receiver, it takes a long time and more power to carry out the satellite when it does not receive the satellite positioning position information for a long time and then receives it again.
  • Search by setting a timer, for example 2 hours or other shorter time, forcing the acquisition of satellite positioning position information when the timer overflows, that is, ensuring that the GPS can perform warm start or warm start, based on the satellite base reserved for the final positioning. Searching for stars can save power for the system and prevent user experience due to long search times.
  • the location information is not updated by receiving the satellite positioning location information, and the location information at the first location is used as the location information of the current location of the mobile terminal, thereby reducing the satellite positioning location.
  • the information receiver receives the number of satellite signals, saves system power consumption, prolongs the life time of the mobile terminal, and improves the user experience.
  • the embodiment of the present invention further provides a system for performing geolocation, which is used to implement the method of the foregoing method embodiments.
  • the system can provide location information for each location application, and take a photo application as an example.
  • FIG. 5 is a schematic structural diagram of a geolocation system according to an embodiment of the present invention.
  • the geolocation system can include:
  • a satellite positioning location information receiver 501 such as a global positioning system GPS receiver, for receiving satellite positioning location information for determining latitude and longitude information at a location where the system is located;
  • the processor 503 is configured to acquire location information of the system at the first location; stopping acquiring the satellite positioning location information may be implemented by, for example, stopping sending a location request to the GPS receiver 501, or disabling a receiving function of the GPS receiver; Obtaining distance information between the second location and the first location of the system, the distance information indicating that the system is at the second location and the first location a distance between the system if the distance between the system and the first location at the second location is less than or equal to a first predetermined threshold, the location information of the system at the first location is used as the system in the second Location information at the location.
  • the processor 503 may acquire the location information of the system at the first location by using the GPS receiver 501, and stop acquiring the satellite positioning location information after acquiring the location information at the first location.
  • the distance information between the system and the first position is then acquired by a sensor 507, such as a gravity sensor, or a gravity sensor in combination with the gyroscope; or by other devices in communication with the system, such as a wristband, the acquisition system is Distance information between the two locations and the first location.
  • the distance information between the acquisition system and the first location at the second location is the number of steps the system moves from the first location to the second location.
  • the position information is not updated by receiving the satellite positioning position information, and the position information at the second position is given the position information at the first position.
  • the location information is updated by acquiring the satellite positioning location information, for example, sending a location request to the GPS receiver to obtain the current location at the second location. information.
  • the number of steps moved from the first location to the second location is obtained by using an external device, and specifically, the specific operation is performed in the location application, for example, when the camera APP performs a shutter press operation, the current location is obtained from the external device, that is, The number of steps at the first position, and the number of steps at the current second position is acquired from the external device when the shutter is pressed again, and the step of moving the system from the first position to the second position is determined according to the difference between the two acquisition steps Number or distance.
  • Position trigger event occurs, for example If the camera application is turned on, you can enter the camera application after lighting the screen, or you can enter the camera application while lighting the screen, and synchronize the number of steps counted on the bracelet again; get the movement based on the difference between the two synchronized steps The number of steps can be obtained from the first position to the second position.
  • the acquired location information of the second location may be provided for use by one or more location applications.
  • the second location information may be directly provided to each location application in a latitude and longitude manner; or the corresponding geographic location may be determined by the processor corresponding to the network map; the map may be pre-stored in the storage space of the system, and the offline is searched by latitude and longitude. The map obtains the corresponding geographical location.
  • offline maps can reduce the interaction between the system and the Internet than using the network map, which can further save system power consumption.
  • the processor may not acquire the second location information until a preset event occurs, for example, receiving a location information request sent by one or more location applications, or detecting a timer overflow of the location update; or detecting Share files with location information, such as photos.
  • the processor may further calculate the current speed of the system according to the data input by the GPS receiver or other sensors, and the current speed is lower than a preset speed or acceleration threshold, for example, the speed is 10 km/hour, that is, When it is determined that the current system is in a low speed state, the GPS receiver update position information is not turned on when the system moves within the preset range, and if the system moves at a speed higher than the preset speed or the acceleration threshold, the system is in high speed motion. Or the high-speed motion state is about to enter, and the frequency of the location information update is high, and the GPS receiver can be kept on regardless of the above scheme. In addition, when it is detected that there is a change in the system moving speed, for example, from a high speed to a low speed state, the normal state (real-time acquisition of satellite positioning position information) can be automatically switched to execution of the present scheme.
  • a preset speed or acceleration threshold for example, the speed is 10 km/hour
  • the processor is further configured to: when the distance between the system and the first location is greater than the first preset threshold, restarting acquiring the satellite positioning location information, determining that the mobile terminal is at the second location Location information.
  • the processor may be further configured to forcibly resume acquiring the satellite positioning location information when detecting that the second preset event occurs, where the second preset event is, for example, that the user initiates navigation, etc.
  • satellite positioning position information receiver such as GPS receiver, it takes a lot of time to receive satellite positioning position information for a long time and then receive it again.
  • the system described in this embodiment may be the mobile terminal 100 as shown in FIG. 1, wherein the processor may be the baseband processor 160; and the satellite positioning location information receiver may be the GNSS receiver 120.
  • the user 115 can enter the camera application 130 through the user interface 110, and the baseband processor 160 acquires location data 162 (eg, latitude and longitude information) from the GNSS receiver 120 to the camera application processor 170 according to the location request sent by the camera application processor 170.
  • location data 162 eg, latitude and longitude information
  • the application processor 170 stops acquiring the satellite positioning location information after acquiring the location data, for example, stopping the sending of the location request to the GNSS receiver 120 by the camera application processor 170; and acquiring the moving distance of the mobile terminal by using the sensor or from the external device, on the mobile
  • the preset distance range is not exceeded, the satellite positioning position information is not acquired, and the original position data 162 is supplied to the camera application processor 170.
  • the system current location data 162 is updated by acquiring satellite positioning location information and provided to the camera application processor 170 for use.
  • the system provided by the embodiment of the present invention has a small change in position when moving in a short distance. Therefore, by not acquiring the satellite positioning position information when moving within the preset range, but providing the position application with the unupdated position information, the Under the premise of significantly reducing the position accuracy, the system reduces the battery consumption, prolongs the system's battery life, and improves the system's portability.
  • the embodiment of the present invention further provides a system for performing geolocation, which is used to perform the methods of the foregoing method embodiments, and also takes a camera application and a GPS receiver as an example.
  • FIG. 6 is a schematic structural diagram of a geolocation system according to an embodiment of the present invention. Specifically, the geographic location system The system can include:
  • the obtaining module 603 is configured to: acquire location information of the system at the first location, stop acquiring satellite positioning location information, for example, stop acquiring satellite positioning location information from the GPS receiving module 601; and acquire the system at the second location with the Distance information between the first location, the distance information indicating a distance between the system and the first location at the second location; determining module 605: for when the system is at the second location and the first location When the distance between the two is less than or equal to the first preset threshold, the position information of the system at the first position is used as the position information of the system at the second position.
  • the obtaining module 603 is specifically configured to: acquire the satellite positioning location information by using the GPS receiving module 601 to determine location information of the system at the first location, and stop acquiring the satellite positioning location information after acquiring the location information; Obtaining distance information between the system at the second location and the first location, the distance information indicating a distance between the system and the first location at the second location.
  • the distance information between the second location and the first location of the acquiring system specifically includes: the number of steps that the acquiring system moves from the first location to the second location.
  • the distance information between the second location and the first location of the acquiring system specifically includes: when the preset event is detected, the acquiring system is between the second location and the first location Distance information.
  • the preset event may be an application such as starting a camera; enabling sharing of multimedia files; receiving geographic information requests and timer overflows.
  • the system may further determine that the moving speed or acceleration of the system is less than or equal to a preset speed or acceleration threshold.
  • the step of moving the acquisition system from the first location to the second location may specifically include: synchronizing the first step from the wearable device connected to the system when the display device 607 is turned off; when the display device 607 After lighting up again and detecting that a preset event occurs, synchronizing the second step from the wearable device; determining, according to the first step and the second step, that the system is between the second position and the first position Distance information.
  • the location information of the system at the first location as the location information of the system at the second location may specifically include: if the acquired system moves from the first location to the second location, the number of steps is less than or equal to The first preset step threshold, then stop acquiring satellite positioning location information Determining the location information of the system at the second location, and directly using the location information of the system at the first location as the location information of the system at the second location; or if the acquired system moves from the first location to the second location
  • the product of the number of steps and the preset stride is less than or equal to the first preset distance threshold, then the acquisition of the satellite positioning position information is stopped to determine the position information of the system at the second position, and the position of the system at the first position is directly The information is the location information of the system at the second location.
  • the user does not enable the satellite positioning position information receiver with large power consumption to perform position update when moving within the preset range, thereby reducing system power consumption and improving the endurance capability of the system.
  • the determining module 605 is further configured to: when the distance between the system and the first location at the second location is greater than the first preset threshold, instruct the acquiring module to acquire the satellite positioning location information, to update the system in the second Location information at the location.
  • the processor may be further configured to resume acquiring the satellite positioning location information when detecting that the second preset event occurs, where the second preset event is, for example, an application that requires high-precision location information, such as a user to initiate navigation. It is also possible to take a long time and more power for satellite search in order to avoid satellite positioning position information receiver, such as GPS receiver, after receiving the satellite positioning position information for a long time without receiving the timer.
  • satellite positioning position information is forcibly acquired when the timer overflows, that is, the GPS can be warm-started or warm-started, and can be based on the satellite base reserved for the final positioning. Searching for stars can save power for the system and prevent user experience due to long search times.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
  • the terminal described in all the embodiments of the present invention may be a mobile phone, a tablet computer, or a smart phone.
  • the camera and other terminals are not limited herein.
  • the address information may be IP address information or MAC address information, which is not limited herein.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • 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, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Navigation (AREA)

Abstract

本发明实施例公开了一种获取位置信息的方法和系统,其中,该方法包括:获取移动终端在第一位置处的位置信息;停止获取卫星定位位置信息;获取该移动终端在第二位置处与所述第一位置之间的距离信息;如果该第二位置处与第一位置之间的距离小于等于第一预设阈值,则将所述移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息。采用本实施例方案,用户能够在预设范围内移动时不启用功耗较大的卫星定位位置信息接收器进行位置更新,使得用户在不显著牺牲定位精度的情况下获得系统功耗的降低,可延长移动终端的续航时间。

Description

一种获取位置信息的方法和系统 技术领域
本发明涉及通讯技术领域,具体涉及一种获取位置信息的方法和系统。
背景技术
目前,随着通信技术的迅猛发展,智能手机中使用地理位置信息的应用(Application,APP)也越来越多,例如拍照APP会在拍摄的照片上面加上拍摄地点的显示,这样能增加照片的信息量,体高用户体验。目前记录手机拍照地点的位置信息主要是通过手机中的全球定位系统GPS功能进行定位获取。但使用GPS功能定位时,GPS接收器会根据拍照APP的位置请求进行卫星定位位置信息的接收和上报,例如1秒接收和上报一次,因此带来耗电量大,降低智能手机的续航时间的问题。
发明内容
本发明提供了一种获取位置信息的方法和系统,使得用户在不明显降低位置信息精确度的前提下降低系统的功耗。
本发明实施例的具体技术方案如下:
第一方面,本发明实施例提供了一种获取位置信息的方法,由移动终端执行包括:获取所述移动终端在第一位置处的位置信息;停止获取卫星定位位置信息;获取该移动终端在第二位置处与所述第一位置之间的距离信息,该距离信息指示该移动终端在第二位置处与所述第一位置之间的距离;如果该移动终端在第二位置处与所述第一位置之间的距离小于等于第一预设阈值,则将所述移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息。
本发明实施例中,移动终端在移动距离小于等于预设阈值的情况下,可以不开启卫星定位位置信息接收器,例如GPS接收器进行位置信息的接收,即不更新位置信息,由于短距离移动时位置信息的变化对定位精度的影响非常小,因此可以降低移动终端的耗电量同时又不影响定位精确度,对于采用电池供电的移动终端来说能延长电池的使用时间,增加待机时间,提高移动终端的续航能力。
在第一方面的第一种可能的实现方式中,所述获取该移动终端在第二位置处与所述第一位置之间的距离信息具体包括:获取所述移动终端从第一位置到第二位置所移动的步数。通过获取移动终端在两个位置之间移动的步数来确定距离,实现简单,无需增加移动终端的硬件,不会给移动终端带来额外的运算负担,且能达到需要的精度。
在第一方面的第二种可能的实现方式中,所述获取该移动终端在第二位置处与所述第一位置之间的距离信息具体包括:当检测到预设事件发生时获取该移动终端在第二位置处与所述第一位置之间的距离信息,其中预设事件可以为启动相机应用;启动健身应用;使能分享多媒体文件和第一定时器溢出等。本实现方式只在预设事件发生时才进行位置信息的获取,避免了频繁获取不必要的位置信息给设备造成的负担,能进一步降低移动终端的功耗。
在第一方面的第三种可能的实现方式中,所述获取所述移动终端从第一位置到第二位置所移动的步数具体为:在所述移动终端灭屏时,从与所述移动终端连接的可穿戴设备上同步第一步数;当所述终端再次亮屏后检测到所述预设事件发生时,从所述可穿戴设备上同步第二步数;根据所述第一步数和第二步数,确定该移动终端在第二位置处与所述第一位置之间的移动距离。本实现方式通过从与移动终端相通信的外部设备处获取移动终端移动的步数,并在灭屏时,以及重新亮屏且预设事件发生时这两个时间点进行步数的同步,能够保证测量步数的精度又不会浪费系统资源。
在第一方面的第四种可能的实现方式中,在所述获取该移动终端在第二位置处与所述第一位置之间的距离信息之前,还包括:获取所述移动终端的移动速度或加速度,确定所述移动终端的移动速度小于等于第二预设速度阈值或者所述移动终端的速度和加速度分别小于等于预设速度和加速度阈值。本实现方式中通过获取移动终端的移动速度或速度和加速度,确保移动终端在低速状态下实施或切换到实施本实现方式,由于移动速度慢位置变化相对小,减少位置信息更新的次数对定位精确度的影响相对较小,因此能保证提供给移动终端各定位应用的位置信息的精度。
在第一方面的第五种可能的实现方式中,还包括:如果该移动终端在第二位置处与所述第一位置之间的距离大于第一预设阈值,则获取卫星定位位置信息,以确定第二位置处的位置信息。本实现方式中对于超出预设范围的移动予以位置更新,通过重新获取卫星定位位置信息来获取移动终端当前位置信息,能保证移动终端地理定位的准确性。
在第一方面的第六种可能的实现方式中,还包括:在预设事件发生时,例如有其他要求高精度位置信息的APP或者第二定时器溢出时,重新获取卫星定位位置信息,也就是说,即使移动终端在预设范围内移动,在预设事件发生时也强制获取卫星定位位置信息。其中第二定时器和第一定时器可以是同一个定时器也可以不是。本实现方式能在要求高精度位置的位置APP启动时强制进入实时获取卫星定位位置信息的状态,以保证用户对位置信息的需求,或者避免卫星定位位置信息接收器不会因为太久没有接收卫星信号而导致的搜星时间过长,避免系统功耗增加以及用户满意度降低。
第二方面,本发明实施例还提供了一种地理定位系统,包括:卫星定位位置信息接收器,用于接收卫星定位位置信息;处理器,用于获取所述系统在第一位置处的位置信息;停止获取卫星定位位置信息;获取该系统在第二位置处与所述第一位置之间的距离信息,该距离信息指示该系统在第二位置处与所述第一位置之间的距离;如果该系统在第二位置处与所述 第一位置之间的距离小于等于第一预设阈值,则将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息。
本发明实施例提供的系统能在不增加系统硬件的基础上,在系统于预设范围内移动的过程中停止获取卫星定位位置信息,而以起始点的位置信息作为系统当前的位置信息,可以降低系统功耗,节约电池电量,提高系统的续航能力。
在第二方面的第一种可能的实现方式中,所述处理器用于获取所述系统在第一位置处的位置信息;停止获取卫星定位位置信息具体包括:所述处理器通过所述卫星定位位置信息接收器,例如GPS接收器获取所述系统在第一位置处的位置信息,并在获取该位置信息后停止获取卫星定位位置信息。本实现方式中,通过GPS接收器来获取第一位置处即移动起始位置处的位置信息,能保证系统在预设范围内移动时采用的都是该精确定位的位置信息,能提高第二位置处的定位精度。
在第二方面的第二种可能的实现方式中,所述获取该系统在第二位置处与所述第一位置之间的距离信息具体包括:获取所述系统从第一位置到第二位置所移动的步数。如第一方面的第一种可能的实现方式中的描述,实现简单,不增加系统资源耗用并能节能。
在第二方面的第三种可能的实现方式中,在所述获取该系统在第二位置处与所述第一位置之间的距离信息之前,还包括:获取所述系统的移动速度或加速度,确定所述系统的移动速度小于等于第二预设速度阈值或者所述系统的速度和加速度分别小于等于预设的速度和加速度阈值。如在第一方面的第四种可能的实现方式中的描述,能保证本实施例方案仅在系统低速的状态下实现,以保证系统的定位精确度能满足位置应用的需要,保证用户的满意度。
在第二方面的第四种可能的实现方式中,仅在当检测到预设事件发生时获取该系统在第二位置处与所述第一位置之间的距离信息。如在第一方 面的第二种可能的实现方式中的描述,本实现方式能降低系统消耗减少系统耗电量。
在第二方面的第五种可能的实现方式中,所述系统还包括显示屏,其中所述获取所述系统从第一位置到第二位置所移动的步数具体为:在所述显示屏熄灭时,从与所述系统连接的可穿戴设备上同步第一步数;当所述显示屏再次点亮后且检测到预设事件发生时,从所述可穿戴设备上同步第二步数;根据所述第一步数和第二步数,确定该系统在第二位置处与所述第一位置之间的距离信息。如在第一方面的第三种可能的实现方式中的描述,本实现方式能保证步数测量的精度又减少系统自身资源消耗。
在第二方面的第六种可能的实现方式中,还包括:即使系统在预设范围内移动,但只要检测到预设事件发生,例如有其他要求高精度位置信息的APP或者特定定时器溢出时,重新获取卫星定位位置信息来进行定位,以保证用户对位置信息的需求,或者避免卫星定位位置信息接收器不会因为太久没有接收卫星信号而导致的搜星时间过长,避免系统功耗增加以及用户满意度降低。
第三方面,本发明实施例还提供了一种地理定位系统,包括卫星定位位置信息接收模块,还包括:获取模块:用于获取所述系统在第一位置处的位置信息,停止获取卫星定位位置信息;以及获取该系统在第二位置处与所述第一位置之间的距离信息,该距离信息指示该系统在第二位置处与所述第一位置之间的距离;确定模块:用于在该系统在第二位置处与所述第一位置之间的距离小于等于第一预设阈值的情况下,将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息。
本发明实施例使得用户能够在获取一个精确的定位信息之后,在预设的距离内移动时不再获取卫星定位位置信息,而直接将该获取的精确定位信息作为当前位置信息。通过本发明实施例可以实现在近距离移动的情况下,不通过获取卫星定位位置信息来更新位置信息,以达到降低卫星定位 位置信息接收器耗电的目的。
在第三方面的第一种可能的实现方式中,所述获取该系统在第二位置处与所述第一位置之间的距离信息具体包括:获取所述系统从第一位置到第二位置所移动的步数。如在第一方面的第一种可能的实现方式,以及第二方面的第二种可能的实现方式中的描述,本实现方式实现简单,不会增加系统硬件配置而最终能达到系统耗电下降。
在第三方面的第二种可能的实现方式中,仅在当检测到预设事件发生时获取该系统在第二位置处与所述第一位置之间的距离信息。如在第一方面的第二种可能的实现方式以及第二方面的第四种可能的实现方式中的描述,本实现方式能保证系统只在需要的时候才执行位置更新,因此可以降低系统功耗,提高续航能力。
在第三方面的第三种可能的实现方式中,系统还包括显示装置,其中所述获取所述系统从第一位置到第二位置所移动的步数具体为:在所述显示装置熄灭时,从与所述系统连接的可穿戴设备上同步第一步数;当所述显示装置再次点亮后且检测到预设事件发生时,从所述可穿戴设备上同步第二步数;根据所述第一步数和第二步数,确定该系统在第二位置处与所述第一位置之间的距离信息。如在第一方面的第三种可能的实现方式以及第二方面的第五种可能的实现方式中的描述,本实现方式能通过与外部设备的通信获取移动步数,可以保证步数测量的精确度。
在第三方面的第四种可能的实现方式中,在所述获取该系统在第二位置处与所述第一位置之间的距离信息之前,还包括:获取所述系统的移动速度或加速度,确定所述系统的移动速度小于等于第二预设速度阈值或者所述系统的速度和加速度分别小于等于预设速度和加速度阈值。如在第一方面的第四种可能的实现方式以及第二方面的第三种可能的实现方式中的描述,本实现方式能保证系统低速下才通过GPS接收器获取位置信息,保证系统定位精度符合用户需求。
在第三方面的第五种可能的实现方式中,所述处理模块还用于:如果该移动终端在第二位置处与所述第一位置之间的距离大于第一预设阈值,则重启获取卫星定位位置信息,通过所述GPS接收器获取该移动终端在第二位置处的位置信息。如在第一方面的第五种可能的实现方式中描述的,本实现方式中对于超出预设范围的移动予以位置更新,通过重新开启GPS接收器来获取位置信息,能保证系统地理定位的准确性。
在第三方面的第六种可能的实现方式中,还包括:在预设事件发生时,例如有其他要求高精度位置信息的APP或者特定定时器溢出时,强制重新获取卫星定位位置信息,以保证用户对位置信息的需求,或者避免卫星定位位置信息接收器不会因为太久没有接收卫星信号而导致的搜星时间过长,避免系统功耗增加以及用户满意度降低。
附图说明
图1为本发明实施例中一种移动终端的示意图;
图2为本发明实施例中获取位置信息的一个方法实施例示意图;
图3为本发明实施例中获取位置信息的另一个方法实施例示意图;
图4为本发明实施例中获取位置信息的另一个方法实施例示意图;
图5为本发明实施例中地理定位系统的一个实施例示意图;
图6为本发明实施例中地理定位系统的另一个实施例示意图。
具体实施方式
本发明实施例提供了一种获取位置信息的方法和系统,实现了在不明显降低定位精确度的情况下系统功耗的降低。
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述, 显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
请参阅图1,图1示出了可运行地理定位应用的移动终端(移动设备)100(例如,无线移动设备)的示例。移动设备具有允许诸如移动设备100的人类操作者的用户115与在移动设备上执行的应用交互的用户界面(user interface,UI)110。应用是可由移动设备100的计算机系统组件执行的程序代码的集合。例如,移动设备100可具有执行应用的应用处理器170。应用处理器170可以是诸如微处理器、微控制器、或ASIC(特定用途集成电路)的单个组件,或者应用处理器170可以是这些种类的组件或其他组件的组合,或者应用处理器170可以是另一组件的子组件(例如,应用处理器170可以是微处理器的一部分)。
应用可以存储在移动设备100的数据存储装置(未示出)中,例如,固态存储器、闪存或其他类型的数据存储装置。当执行应用时(例如在移动设备100从用户115处接收了执行相机应用的指示后),应用的程序代码在移动设备上执行。具有在移动设备100上执行的程序代码的应用可以在移动设备100上运行。
位置应用是应用的一种。位置应用是使用关于移动设备100的位置信 息的应用。关于移动设备100的位置信息可以根据位置应用的需要进行收集/获取。位置应用的一个示例是相机应用130。相机应用130能够在拍摄的照片上叠加拍摄地点的位置信息,使得这些照片在被浏览或共享出去时向用户显示其拍摄地点的位置信息。位置应用的另一个示例是个人健身应用140。个人健身应用140能够在用户界面110上显示用户(诸如用户115)可以在个人健身活动中使用的信息。例如,假设用户在沿着跑步路径跑步,个人健身应用140能够指示诸如用户当前位置、当前跑步速度、或者其他基于移动设备100的位置而确定的其他信息。
本发明各实施例中提及的卫星定位位置信息接收器是接收提供全球定位功能的卫星信号的用户侧接收器。具体可以接收全球导航卫星系统Global Navigation Satellite System,GNSS,例如全球定位系统GPS,北斗卫星导航系统、伽利略导航系统、格洛纳斯导航系统或其他导航卫星系统的信号。以下以GNSS为例说明,各位置应用使用的位置信息可以从GNSS接收器120接收。该GNSS接收器120确定移动设备100的物理位置,例如,通过经度和纬度来表示。在一些示例中,GNSS接收器120通过接收来自地球轨道上的卫星的数据并且基于接收的数据计算位置来确定移动设备100的物理位置。在使用中,GNSS接收器120从移动设备100的电源150中汲取电力。例如,电源150可以是诸如锂离子电池的电池。
GNSS接收器120与基带处理器160通信。基带处理器160基于从GNSS接收器120处接收的信号来计算位置数据,如计算出对应的地理位置,例如上海市杨浦区邯郸路220号。基带处理器160可以是诸如微处理器、微控制器、或ASIC(特定用途集成电路)的单个组件,或者基带处理器160可以是这些种类的组件或其他组件的组合,或者基带处理器160可以是另一组件的子组件(例如,基带处理器160可以是微处理器的一部分)。基带处理器160可以独立于应用处理器170运行。例如,应用处理器170不需要为了基带处理器160与GNSS接收器通信而处于激活状态。
在使用中,基带处理器160基于在GNSS接收器120处接收的信号计算位置数据162并提供位置数据162给应用处理器170,基带处理器也可以将在GNSS接收器120处接收的经纬度信息直接作为位置数据提供给应用处理器,也可以将根据经纬度信息计算获得的地理位置作为位置数据提供给应用处理器,也可以将经纬度信息和根据经纬度信息计算获得的地理位置一并作为位置数据提供给应用处理器。位置数据162可以被提供给应用处理器170,以供诸如相机应用130或个人健身应用140等位置应用来使用。本发明以下实施例GNSS接收器120以GPS接收器为例进行说明。
用户界面110是人机交互界面,用来根据用户指令实现各种功能。这些UI能够呈现在多种电子设备的显示屏上,包括但不局限于膝上型计算机、桌面计算机、计算机终端、电视系统、平板计算机、电子书阅读器,可穿戴设备以及智能电话。一个或多个这些电子设备可以包含有触摸敏感表面。该触摸敏感表面能够处理一个输入点或者多个同时的输入点,包括处理关于每个输入点的压力、时间,频率或位置等的数据。
由于卫星定位位置信息是根据位置应用的请求而进行收集/获取的,因此,可以通过停止位置应用向卫星定位位置信息接收器发送请求来停止获取卫星定位位置信息;也可以通过禁用卫星定位位置信息接收器来停止获取卫星定位位置信息,例如当GPS接收器的接收功能被禁用时,GPS接收器的接收功能可以被置于暂停、关闭或者停止。在一些示例中,基带处理器禁用GPS接收器的接收功能,例如,通过发送禁用信号。也可以通过关闭卫星定位功能来实现停止获取卫星定位位置信息,关闭卫星定位功能包括停止获取卫星定位位置信息,停止监测卫星定位位置信息和停止处理获取的卫星定位位置信息。
本发明实施例提供一种获取位置信息的方法,请参阅图2,图2是本发明实施例公开的一种获取位置信息方法的流程示意图。如图2所示,该获 取位置信息的方法可以包括以下步骤:
S101:获取所述移动终端在第一位置处的位置信息。
移动终端在第一位置处的位置信息可以是通过GPS接收器接收的卫星定位位置信息,例如经纬度信息,也可以是通过GPS接收器接收并经由基带处理器计算获得的地理位置,例如北京天安门广场,北京国家体育场(鸟巢)。移动终端在第一位置处的位置信息还可以是通过WiFi进行定位获取的。WiFi定位的原理:1、每一个无线接入节点(Access Point,AP)例如路由器,都有一个全球唯一的MAC地址,并且一般来说无线AP在一段时间内不会移动;2、设备在开启Wi-Fi的情况下,即可扫描并收集周围的AP信号,无论是否加密,是否已连接,甚至信号强度不足以显示在无线信号列表中,都可以获取到AP广播出来的MAC地址;3、设备将这些能够标示AP的数据发送到位置服务器,服务器检索出每一个AP的地理位置,并结合每个信号的强弱程度,计算出设备的地理位置并返回到用户设备;4、位置服务商要不断更新、补充自己的数据库,以保证数据的准确性。移动终端在第一位置处的位置信息还可以通过网络定位的方法获取,具体的为根据运营商提供的网络(如GSM)来获取用户的位置信息—根据用户当前所处基站的小区,可以定位出手机和这些基站之间的相对位置,根据基站的地理位置可确定用户的地理位置;移动终端在第一位置处的位置信息还可以通过结合运营商提供的网络和GPS来获取,例如网络辅助GPS定位(Assisted GPS,AGPS)方式获取,即结合上述两种定位方法获取位置信息,使用基站信息对获取的GPS进行辅助定位,以及对获取到的GPS结果进行修正,使得在GPS信号不理想的地方(例如地下室、遂道或高楼林立的地方)实现精确定位,也可以减少GPS信号的接收和处理实现电量消耗的减少。需要指出的是,本发明所有实施例中的移动终端或系统中都配置有卫星定位位置信息接收器,以GPS接收器为例,且该GPS接收器均为使能(或者说开启/激活)状态。
S103:停止获取卫星定位位置信息。
在获取到移动终端在第一位置处的位置信息后,停止获取卫星定位位置信息,即不再通过卫星定位位置信息接收器,如GPS获取位置信息。或者在停止获取卫星定位位置信息后,再获取移动终端在第一位置处的位置信息,此种情况下,移动终端在第一位置处的位置信息只能通过上面描述的除利用GPS接收器之外的方式获得。
S105:获取该移动终端在第二位置处与所述第一位置之间的距离信息,该距离信息指示该移动终端在第二位置处与所述第一位置之间的距离。
具体的,可以通过移动终端上的传感器来获取所述移动终端从第一位置到第二位置所移动的步数,来获取该移动终端在第二位置处与所述第一位置之间的距离信息。也可以通过WiFi或运营商提供的网络来获取该移动终端在第二和第一位置的位置信息,进而确定第一和第二位置之间的距离信息。还可以根据接收到的定位信息来确定,例如一些大型建筑内部会设有定位器,向外发送自身的位置信息,可以根据在第二和第一位置接收到的定位信息来确定这两个位置之间的距离信息;也可以将接收到的定位信息与获得的移动步数相结合来确定距离信息,例如在第一位置接收到定位信息,在最后一次接收到定位信息后行走了5步到达第二位置,则可以根据最后一次接收的定位信息确定此处距离第一位置的距离,再加上5步*预设步幅,可以获得第二位置处到第一位置之间的距离。也可以通过WiFi或运营商提供的网络,步数,以及定位信息的任意组合来实现距离的确定,或者利用其他可实现距离测量的现有技术,本发明实施例不做限制。另外,步数可以通过移动终端上的计步器获取;也可以通过加速度传感器,振动传感器等获得,还可以结合陀螺仪获得;也可以通过无线通信方式,如通过蓝牙、近场通信(Near Field Communication,NFC)或其他通信方式从从外部设备获取,例如从计步器,或者具有计步功能的手环、手表或其他外部设备处获取。
可选的,获取移动终端在第二位置处与第一位置之间的距离信息可以是实时的,只要检测到有移动发生就触发距离测量;也可以是在特定的事件触发下发生的,例如检测到相机应用开启,检测到相机应用中快门的按下,检测到分享命令,检测到位置显示命令,定时器超时(即定时测距)等。在特定的事件触发下进行两个位置间距离信息的获取相对实时距离检测更节约系统资源。
S107:如果该移动终端在第二位置处与所述第一位置之间的距离小于等于第一预设阈值,则将所述移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息,即不更新位置信息。
具体的,如果获取到的移动终端从第一位置到第二位置所移动的步数小于等于一个预设步数阈值,例如50步,则停止获取卫星定位位置信息,即不通过卫星定位位置信息接收器,例如GPS接收器,获取该移动终端在第二位置处的位置信息,而将移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息;或者如果获取到的移动终端从第一位置到第二位置所移动的步数与预设步幅的乘积,小于等于一个预设距离阈值,例如25米(即50步*0.5米/步),则停止获取卫星定位位置信息,即不向GPS接收器发送位置请求、不通过所述GPS接收器获取该移动终端在第二位置处的位置信息,而将移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息。
可选的,在步骤S107之后还可以包括步骤S109:如果该移动终端在第二位置处与所述第一位置之间的距离大于该预设距离阈值,则通过获取卫星定位位置信息来获取该移动终端在第二位置处的位置信息。即在移动终端移动距离超出预设范围后,重新打开GPS接收器或者重启向GPS接收器发送位置请求信息,以更新该移动终端的位置信息。
可选的,还可以在步骤S107之后包括:在检测到第二预设事件发生时,恢复获取所述卫星定位位置信息,其中,第二预设事件可为用户启动导航 等要求高精度位置信息的应用;也可以为一个定时器到时,为避免卫星定位位置信息接收器,例如GPS接收器,长时间不接收卫星定位位置信息后再次进行接收时,需要花费很长时间和较多电力进行卫星搜索,通过设置定时器,例如2小时或其他更短时间,在定时器溢出时强制进行卫星定位位置信息的获取,能保证GPS由此进行暖启动或热启动而不是冷启动,即能基于最后定位所保留的卫星基础进行搜星,因此能为系统节电且防止因搜星时间长导致的用户体验下降。
本发明实施例通过在预设范围内移动时停止通过获取卫星定位位置信息来更新移动终端的位置信息,实现了在不显著降低位置精度的情况下系统功耗的降低。
本发明实施例还提供一种获取位置信息的方法,以拍照应用以及GPS接收器作为卫星定位位置信息接收器为例,请参阅图3。本实施例是上一个实施例的具体应用,上一实施例中的所有步骤都可在本实施例中执行,其他应用和其他卫星定位位置信息接收器实现本发明实施例可参考图3做适应性改动,不再赘述。图3是本发明实施例公开的一种拍照应用获取位置信息方法的流程示意图。如图3所示,该获取位置信息的方法可以包括以下步骤:
S201:打开移动终端的摄像头,即开启/激活相机应用,用户可以通过移动终端的显示界面或摄像头的取景框获知待拍摄对象的状态。
S203:用户选择GPS定位功能。选择GPS定位功能就是选择通过GPS接收器接收卫星定位位置信息实现定位功能。用户可以通过选择开启在照片或视频上叠加位置信息的功能来进行GPS定位功能的选择;也可以直接选择或根据界面提示开启GPS定位功能;用户还可以在系统功能设定菜单下打开GPS定位功能等方式来实现GPS定位功能的选择。需要指出的是,可以根据用户打开位置应用和卫星定位位置信息接收器的顺序确定步骤 S201和S203的执行顺序,例如对于系统功能下开启GPS定位功能的情景下,步骤S201和S203的执行顺序可以对调。
S205:获取当前位置信息后,停止获取卫星定位位置信息。具体的,可以通过GPS接收器来获取移动终端当前所在位置(第一位置)的位置信息,例如东经113°56',北纬22°30'。获取到第一位置的位置信息后,位置应用如相机应用停止向GPS接收器发送位置请求,也可以暂停/禁止/去使能GPS接收器的接收(和上报)功能,使得GPS接收器不再定时获取(和上报)位置信息。可选的,移动终端在获取到第一位置信息后,还可以进一步确定移动终端的移动速度或加速度是否低于预设阈值,例如低于5公里/小时,如果低于该预设阈值,则表示当前移动终端处于低速状态,移动终端执行停止获取卫星定位位置信息。如果移动终端当前移动速度或加速度高于预设阈值,则表示移动终端正处于或即将处于高速运动状态,则其位置变化将会很快,对位置信息更新的频率要求就会更高,则自动退出本发明实施例,进入通过卫星定位位置信息接收器实时接收位置信息的状态。
S207:使用传感器获取该移动终端的用户的脚步数,即在停止通过例如GPS接收器获取卫星定位位置信息之后,该移动终端通过传感器获取用户移动的脚步数。具体的,可以通过移动终端上的重力传感器(也可以结合陀螺仪)或者计步器来获取脚步数,;也可以通过蓝牙,WiFi,NFC等无线或有线通信的方法从与移动终端相连的其他外部设备处获取脚步数,而这些外部设备通过自身的传感器获取该移动终端用户移动的脚步数。例如,通过移动终端上的重力传感器,结合现有的计步器算法,单纯获取用户的移动步数,例如用户从第一位置处向南走了20步,然后又向北走了25步并停下,则获取到的总脚步数是45步;也可以再结合陀螺仪,更精确的计算用户当前移动到的位置距第一位置处的距离,仍以用户先向南走20步再向北走25步为例,重力传感器结合陀螺仪确定的距第一位置处的脚步数则为北向5步。
S209:判断脚步数是否小于50步。
具体的,移动终端可以通过自身传感器或者外部设备获取用户的脚步数,进而判断该获取的脚步数是否小于或者等于50步,也可以从外部设备处直接获取脚步数是否小于或者等于50步,例如从蓝牙通信的手表处获知脚步数为100步,即大于50步。当然,50只是一个预设步数阈值示例,可以根据精度需求设置系统默认值,或者由用户自行设置。另外,如上一个实施例所描述,本步骤也可以是判断脚步数与步幅的乘积是否小于(或等于)一个预设距离阈值,例如25米。其中,步幅同样可以有系统默认值,如0.5米/步,也可以由用户自行设定。
如果判断结果为否,即脚步数大于50,则表示用户移动的距离超出了系统设置的容忍范围,位置APP向卫星定位位置接收器发送位置请求,通过接收卫星定位位置信息来更新第一位置的位置信息,例如东经113°55',北纬22°30'。
S2011:如果判断结果为是,即脚步数小于等于50,则表示用户移动的距离在系统设置的容忍范围内,则不通过接收卫星定位位置信息来更新当前位置信息,而是将第一位置处的位置信息作为当前位置的位置信息;如果此时用户按下快门或启动摄像功能,则执行相应的拍照或摄像功能。
S2013:将之前的位置信息合入照片。具体的,在拍摄的照片或视频上合入第二位置的位置信息。此处第二位置的位置信息可以是经纬度信息,也可以是根据经纬度信息,再对应地图上的具体位置,获取的地理位置信息,例如深圳莲花山。这里的地图可以是通过网络获取的网络地图,也可以是移动终端下载到本地的离线地图。通过将地图下载到本地,在获取拍照地点(地理位置)时可以减少与网络的交互,进一步节约移动终端的功耗。
可选的,本发明实施例提供的功能可以是移动终端自动执行,也可以在相机应用设置的选项中增加GPS省电模式,提示用户此功能可以在更加 省电的情况下提供位置信息,供用户选择,并在用户选择该GPS省电模式下执行。
可选的,还可以在步骤S2013之后包括:在检测到第二预设事件发生时,恢复获取所述卫星定位位置信息,其中,第二预设事件例如为用户启动导航等要求高精度位置信息的应用;也可以为一个定时器到时,为避免卫星定位位置信息接收器,例如GPS接收器,长时间不接收卫星定位位置信息后再次进行接收时,需要花费很长时间和较多电力进行卫星搜索,通过设置定时器,例如2小时或其他更短时间,在定时器溢出时强制进行卫星定位位置信息的获取,即保证GPS能够进行暖启动或热启动而非冷启动,能基于最后定位所保留的卫星基础进行搜星,因此能为系统节电且防止因搜星时间长导致的用户体验下降。
同理,本发明实施例也可以应用于如健身类应用,步行导航等对位置信息精度要求相对不太高的场景下。
本发明实施例通过利用移动终端自身的能力,比如重力传感器,陀螺仪等或者与之通信的外部设备的能力,比如计步器,距离计算功能等,在不增加设备硬件成本的前提下,降低系统的功耗;由于不显著降低位置信息的精度,也不影响用户的体验。
本发明实施例还提供一种获取位置信息的方法,以拍照应用和GPS接收器为例,获取移动终端在第一位置处的位置信息,该第一位置处的位置信息可以通过移动终端的GPS接收器获取,也可以通过与移动终端通信的外部设备获取;通过该外部设备获取用户从第一位置到第二位置所移动的步数,判断脚步数是否小于预设阈值,在小于等于预设阈值时不更新位置信息,将第一位置处的位置信息作为第二位置处的位置信息,在大于该预设阈值时更新,通过GPS接收器获取第二位置处的卫星定位位置信息。但进一步的,请参阅图4。图4是本发明实施例公开的一种拍照应用获取位置 信息方法的流程示意图。如图4所示,以拍照应用和GPS接收器为例,该获取位置信息的方法通过在终端熄屏时获取第一位置信息,可以进一步提高定位的精确度。具体的,该获取位置信息的方法可以包括以下步骤:
S301:用户灭屏。移动终端的用户在任何应用、任何界面下关闭屏幕,或者屏幕自动熄灭。
S303:获取当前位置信息,例如通过GPS获取第一位置处的卫星定位位置信息;然后停止获取卫星定位位置信息。本步骤执行GPS位置信息获取的时机是在移动终端灭屏时,或者说在移动终端接收到灭屏指令时,或者灭屏之后。除这点之外都与S203和S205相同,不再赘述。
S305:打开蓝牙,同步手环的脚步数。即在获得移动终端灭屏指令时,或获得灭屏指令之后,本步骤与S301,S303可以同时执行,也可以先执行S303再执行本步骤,或者先执行本步骤再执行S303。本步骤执行可以通过诸如蓝牙,NFC,WiFi等无线通信方式实现。以蓝牙为例,如果移动终端上的蓝牙处于关闭状态则打开蓝牙,通过蓝牙将与移动终端通信的外部设备,如手环,进行脚步数的同步,使得移动终端获知在灭屏时计步器计得的脚步数,即第一位置处的脚步数,供后续使用。举个例子,用户打开相机应用,拍了一张照片后关闭屏幕,则在关闭屏幕时同步手环信息,获知当前用户所在第一位置处手环上记录的脚步数是200步。
可选的,本步骤也可以是移动终端不获取手环上的脚步数,而是通过蓝牙与手环同步时,指令手环开始计步,即以当前第一位置为起始点开始计步。
S307:用户再次打开摄像头。即当用户开启拍照应用,或者用户调出在后台运行的拍照应用,因此打开摄像头。
S309:使用蓝牙再次和手环同步脚步数,计算与上次同步脚步数的差值。在打开或调出拍照应用时,通过蓝牙再次获得当前外部设备如手环上记录的脚步数;并计算本次获得的脚步数和上次记录的脚步数的差值,以 获得在灭屏期间用户移动的脚步数。例如用户再次打开摄像头时,再次同步脚步数,可以获得用户当前所在的第二位置处手环上记录的脚步数,例如是300步。则根据步骤S305获得的第一位置处的脚步数和本步骤获得的第二位置处的脚步数,计算出用户从灭屏到再次打开摄像头期间移动的脚步数,即300-200=100(步)。也可以获得对应的距离为100步*0.5米/步=50米。
可选的,移动终端可以通过蓝牙获得外部设备,如手环,记录的移动终端以第一位置为起始点,移动到当前的第二位置处的步数。即移动终端直接从手环处获得从第一位置到第二位置之间移动的步数或者距离。
S3011:判断灭屏后脚步数是否小于50。根据S309获得的第一位置到第二位置用户移动的脚步数,判断该脚步数是否小于或等于预设步数阈值,例如50步。本步骤也可以根据S309获得的灭屏期间,即第一位置到第二位置,用户移动的脚步数,以及设定的步幅,判断该脚步数与步幅的乘积是否小于或等于一个预设距离阈值,例如25米。本步骤确定用户在灭屏期间移动的距离是否在预设范围内。如果判断结果是否,例如灭屏期间用户移动脚步数为100步,大于50步,或者移动距离为50米,大于25米,则表示用户移动距离超出了预设范围,需要更新位置信息,因此再次返回步骤S303,相机应用向GPS接收器发送位置请求,或者打开/激活GPS接收器获取卫星定位位置信息,以更新移动终端当前所在位置的位置信息。
S3013:根据用户指令执行拍照。如果判断结果为是,即灭屏后脚步数小于或等于50,则表示用户移动距离在预设范围内,则不打开GPS更新位置信息,即第二位置的位置信息仍为第一位置的位置信息;该第二位置信息可供一个或多个位置应用使用,例如给相机应用使用。移动终端收到用户发出拍照命令则执行拍照操作。
S3015:将之前的位置信息合入照片。即如果在预设范围内移动,则将第一位置处的位置信息合入拍摄的照片或视频文件中,如果移动范围超出 了预设范围,则将通过GPS接收器更新的卫星定位位置信息合入拍摄获得的照片或视频文件中。本步骤与步骤S2013一样,不再赘述。
可选的,在步骤S3015之后还包括:在检测到第二预设事件发生时,恢复获取所述卫星定位位置信息,其中,第二预设事件例如为用户启动导航等要求高精度位置信息的应用;也可以为一个定时器到时,为避免卫星定位位置信息接收器,例如GPS接收器,长时间不接收卫星定位位置信息后再次进行接收时,需要花费很长时间和较多电力进行卫星搜索,通过设置定时器,例如2小时或其他更短时间,在定时器溢出时强制进行卫星定位位置信息的获取,即保证GPS能够进行暖启动或热启动,能基于最后定位所保留的卫星基础进行搜星,因此能为系统节电且防止因搜星时间长导致的用户体验不好。
本发明实施例的用户如果在预设的距离范围内移动则不通过接收卫星定位位置信息进行位置更新,而将第一位置处的位置信息作为移动终端当前位置的位置信息,从而减少卫星定位位置信息接收器接收卫星信号的数量,节约系统功耗,延长移动终端的续航时间,提高用户体验。
本发明实施例还提供一种地理定位的系统,用于实现以上各方法实施例的方法,本系统可以为各位置应用提供位置信息,以拍照应用为例,请参阅图5。图5是本发明实施例公开的一种地理定位系统的结构示意图。具体的,该地理定位系统可以包括:
卫星定位位置信息接收器501,例如全球定位系统GPS接收器,用于接收卫星定位位置信息,以供确定系统所在位置处的经纬度信息;
处理器503,用于获取系统在第一位置处的位置信息;停止获取卫星定位位置信息,可以通过如停止向所述GPS接收器501发送位置请求,或禁止GPS接收器的接收功能来实现;获取该系统在第二位置处与所述第一位置之间的距离信息,该距离信息指示该系统在第二位置处与所述第一位置 之间的距离;如果该系统在第二位置处与所述第一位置之间的距离小于等于第一预设阈值,则将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息。
具体的,处理器503可以通过GPS接收器501来获取系统在第一位置处的位置信息,并在获取到第一位置处的位置信息之后,停止获取卫星定位位置信息。然后通过传感器507,例如重力传感器,或者重力传感器结合陀螺仪,获取系统在第二位置处与第一位置之间的距离信息;或者通过与系统通信的其他设备,例如手环,获取系统在第二位置处与第一位置之间的距离信息。具体的参考方法实施例中的描述。可选的,获取系统在第二位置处与第一位置之间的距离信息是系统从第一位置到第二位置所移动的步数。那么如果该获取的系统从第一位置到第二位置所移动的步数小于等于预设步数阈值,或者如果该获取的系统从第一位置到第二位置所移动的步数与预设步幅的乘积小于等于预设距离阈值,表示系统在预设范围内移动,则不通过接收卫星定位位置信息来更新位置信息,第二位置处的位置信息被赋予第一位置处的位置信息。如果该获取的系统从第一位置到第二位置所移动的步数大于预设步数阈值,或者如果该获取的系统从第一位置到第二位置所移动的步数与预设步幅的乘积大于预设距离阈值,则表示系统的移动已经超出了预设的距离范围,则通过获取卫星定位位置信息进行更新位置信息,例如向GPS接收器发送位置请求以获取当前第二位置处的位置信息。可选的,通过外部设备获取从第一位置到第二位置所移动步数,具体可以为,在位置应用执行特定操作,比如拍照APP执行快门按下操作时,从外部设备获取当前位置,即第一位置处的步数,并在再次按下快门时从外部设备获取当前第二位置处的步数,根据两次获取步数的差值确定系统从第一位置到第二位置所移动步数或距离。也可以在系统的显示屏熄灭时,从该外部设备,如可穿戴设备(例如手环)同步显示屏熄灭时手环上计得的步数,当显示屏再次被点亮且检测到预设位置触发事件发生,例 如相机应用开启,可以在点亮屏幕之后进入相机应用,也可以进入相机应用的同时点亮屏幕,并再次同步手环上计得的步数;根据两次同步的步数的差值获得移动的步数,即可获得系统从第一位置到第二位置的距离。
获取到的第二位置的位置信息可以被提供给一个或多个位置应用使用。该第二位置信息可以直接以经纬度方式提供给各位置应用使用;也可以由处理器对应网络地图,确定对应的地理位置;还可以预先将地图保存在系统的存储空间里,用经纬度查找该离线地图获取对应的地理位置,使用离线地图比使用网络地图能减少系统与互联网的交互,可进一步的节约系统用电。
可选的,处理器可以不获取第二位置信息,直到有预设事件发生,例如收到一个或多个位置应用发出的位置信息请求,或者检测到到位置更新的定时器溢出;或者检测到分享具有位置信息的文件,例如相片等。
可选的,处理器还可以根据GPS接收器或其他传感器输入的数据,计算出系统当前的速度,并在当前速度低于一个预设速度或加速度阈值,例如速度为10公里/小时,即在确定当前系统处于低速状态时,才执行当系统在预设范围内移动时不开启GPS接收器更新位置信息,如果系统在以高于预设速度或加速度阈值的速度移动,则表示系统高速运动中或即将进入高速运动状态,对位置信息更新的频率要求高,则可以不执行以上方案而保持GPS接收器一直开启状态。另外,当检测到系统运动速度有变化,例如从高速进入到低速状态,则可从正常状态(实时获取卫星定位位置信息)自动切换到执行本方案。
可选的,处理器还可以用于当系统在第二位置处与所述第一位置之间的距离大于第一预设阈值时,重启获取卫星定位位置信息确定该移动终端在第二位置处的位置信息。
可选的,处理器还可以用于在检测到第二预设事件发生时,强制恢复获取所述卫星定位位置信息,其中,第二预设事件例如为用户启动导航等 要求高精度位置信息的应用;也可以为一个定时器到时或溢出,为避免卫星定位位置信息接收器,例如GPS接收器,长时间不接收卫星定位位置信息后再次进行接收时,需要花费很长时间和较多电力进行卫星搜索,通过设置定时器,例如2小时或其他更短时间,在定时器溢出时强制进行卫星定位位置信息的获取,即保证GPS能够进行暖启动或热启动而不是冷启动,以基于最后定位所保留的卫星基础进行搜星,可为系统节电且防止因搜星时间长导致的用户体验下降。
可选的,本实施例描述的系统可以是如图1所示的移动终端100,其中,处理器可以是基带处理器160;卫星定位位置信息接收器可以是GNSS接收器120。用户115可以通过用户界面110进入相机应用130,基带处理器160根据相机应用处理器170发送的位置请求,从GNSS接收器120获取位置数据162(例如经纬度信息)发送给相机应用处理器170,相机应用处理器170在获取位置数据后停止获取卫星定位位置信息,例如通过相机应用处理器170停止向GNSS接收器120发送位置请求;并通过传感器或从外部设备处获取移动终端的移动距离,在移动不超过预设距离范围时,不获取卫星定位位置信息,而将原有的位置数据162提供给相机应用处理器170。在移动超出超过预设距离范围时,通过获取卫星定位位置信息来更新系统当前位置数据162,并提供给相机应用处理器170使用。
本发明实施例提供的系统由于在短距离移动时位置变化很小,因此通过在预设范围内移动时不获取卫星定位位置信息,而是为位置应用提供未更新的位置信息,来达到在不显著降低位置精度的前提下,减小系统对电池的消耗,延长系统的续航时间,提高系统的便携性能。
本发明实施例还提供一种地理定位的系统,用于执行以上各方法实施例的方法,同样以相机应用和GPS接收器为例,请参阅图6。图6是本发明实施例公开的一种地理定位系统的结构示意图。具体的,该地理定位系 统可以包括:
获取模块603:用于获取系统在第一位置处的位置信息,停止获取卫星定位位置信息,例如停止获取从GPS接收模块601处获取卫星定位位置信息;以及获取系统在第二位置处与所述第一位置之间的距离信息,该距离信息指示系统在第二位置处与所述第一位置之间的距离;确定模块605:用于当系统在第二位置处与所述第一位置之间的距离小于等于第一预设阈值时,将系统在第一位置处的位置信息作为系统在第二位置处的位置信息。
其中,可选的,获取模块603具体用于:通过GPS接收模块601获取卫星定位位置信息以确定系统在第一位置处的位置信息,并在获取该位置信息后停止获取卫星定位位置信息;以及获取系统在第二位置处与所述第一位置之间的距离信息,该距离信息指示系统在第二位置处与所述第一位置之间的距离。其中,可选的,获取系统在第二位置处与所述第一位置之间的距离信息具体包括:获取系统从第一位置到第二位置所移动的步数。以及可选的,获取系统在第二位置处与所述第一位置之间的距离信息具体包括:当检测到预设事件发生时获取系统在第二位置处与所述第一位置之间的距离信息。其中,预设事件可以是启动相机等应用;使能分享多媒体文件;接收到地理信息请求和定时器溢出等。可选的,获取系统在第二位置处与所述第一位置之间的距离信息之前,还可以确定系统的移动速度或加速度小于等于预设的速度或加速度阈值。以及可选的,获取系统从第一位置到第二位置所移动的步数具体可以包括:在显示装置607熄灭时,从与系统连接的可穿戴设备上同步第一步数;当显示装置607再次点亮后且检测到预设事件发生时,从可穿戴设备上同步第二步数;根据第一步数和第二步数,确定系统在第二位置处与所述第一位置之间的距离信息。
另外,可选的,将系统在第一位置处的位置信息作为系统在第二位置处的位置信息具体可以包括:如果获取到的系统从第一位置到第二位置所移动的步数小于等于第一预设步数阈值,则停止获取卫星定位位置信息来 确定系统在第二位置处的位置信息,而将系统在第一位置处的位置信息直接作为系统在第二位置处的位置信息;或者如果获取到的系统从第一位置到第二位置所移动的步数与预设步幅的乘积,小于等于第一预设距离阈值,则停止获取卫星定位位置信息来确定系统在第二位置处的位置信息,而直接将系统在第一位置处的位置信息作为系统在第二位置处的位置信息。本实施例使得用户在预设范围内移动时不启用功耗较大的卫星定位位置信息接收器进行位置更新,因此降低系统功耗,提高系统的续航能力。
可选的,确定模块605还用于当系统在第二位置处与所述第一位置之间的距离大于第一预设阈值时,指示获取模块获取卫星定位位置信息,以更新系统在第二位置处的位置信息。
可选的,处理器还可以用于在检测到第二预设事件发生时,恢复获取所述卫星定位位置信息,其中,第二预设事件例如为用户启动导航等要求高精度位置信息的应用;也可以为一个定时器到时,为避免卫星定位位置信息接收器,例如GPS接收器,长时间不接收卫星定位位置信息后再次进行接收时,需要花费很长时间和较多电力进行卫星搜索,通过设置定时器,例如2小时或其他更短时间,在定时器溢出时强制进行卫星定位位置信息的获取,即保证GPS能够进行暖启动或热启动,能基于最后定位所保留的卫星基础进行搜星,因此能为系统节电且防止因搜星时间长导致的用户体验不好。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可实现如上述各方法实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
上述本发明所有实施例中所述的终端,可以是手机、平板电脑、智能 相机等各种终端,此处不作具体限定,地址信息可以为IP地址信息,也可以是MAC地址信息,此处不作限定。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全 部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims (31)

  1. 一种获取位置信息的方法,由移动终端执行,包括:
    获取所述移动终端在第一位置处的位置信息;
    停止获取卫星定位位置信息;
    获取该移动终端在第二位置处与所述第一位置之间的距离信息,该距离信息指示该移动终端在第二位置处与所述第一位置之间的距离;
    如果该移动终端在第二位置处与所述第一位置之间的距离小于等于第一预设阈值,则将所述移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息。
  2. 如权利要求1所述的方法,所述获取所述移动终端在第一位置处的位置信息,停止获取卫星定位位置信息具体包括:通过获取卫星定位位置信息确定所述移动终端在第一位置处的位置信息,并在获取该位置信息后停止获取卫星定位位置信息。
  3. 如权利要求1或2所述的方法,所述获取该移动终端在第二位置处与所述第一位置之间的距离信息具体包括:
    当检测到第一预设事件发生时获取该移动终端在第二位置处与所述第一位置之间的距离信息。
  4. 如权利要求3所述的方法,所述预设事件为以下事件中的至少一个:启动相机应用;启动健身应用;使能分享多媒体文件和第一定时器溢出。
  5. 如权利要求1-4任意一项所述的方法,所述获取该移动终端在第二位置处与所述第一位置之间的距离信息具体包括:获取所述移动终端从第一位置到第二位置所移动的步数。
  6. 如权利要求5所述的方法,所述如果该移动终端在第二位置处与所述第一位置之间的距离小于等于第一预设阈值,则将所述移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息具体包括:
    如果获取到的所述移动终端从第一位置到第二位置所移动的步数小于 等于第一预设步数阈值,则停止获取卫星定位位置信息,将所述移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息;或者
    如果获取到的所述移动终端从第一位置到第二位置所移动的步数与预设步幅的乘积,小于等于第一预设距离阈值,则停止获取卫星定位位置信息,将所述移动终端在第一位置处的位置信息作为该移动终端在第二位置处的位置信息。
  7. 如权利要求5所述的方法,所述获取所述移动终端从第一位置到第二位置所移动的步数具体为:
    在所述移动终端灭屏时,从与所述移动终端连接的可穿戴设备上同步第一步数;
    当所述终端再次亮屏后检测到所述预设事件发生时,从所述可穿戴设备上同步第二步数;
    根据所述第一步数和第二步数,确定该移动终端在第二位置处与所述第一位置之间的距离信息。
  8. 如权利要求1-7任意一项所述的方法,在所述获取该移动终端在第二位置处与所述第一位置之间的距离信息之前,还包括:获取所述移动终端的移动速度,确定所述移动终端的移动速度小于等于第二预设阈值。
  9. 如权利要求1-8任意一项所述的方法,还包括:如果该移动终端在第二位置处与所述第一位置之间的距离大于第一预设阈值,则获取卫星定位位置信息以确定该移动终端在第二位置处的位置信息。
  10. 如权利要求1-9任意一项所述的方法,还包括:
    在检测到第二预设事件发生时,恢复获取所述卫星定位位置信息。
  11. 如权10所述的方法,所述第二预设事件为以下事件中的至少一个:启动导航应用;第二定时器溢出。
  12. 如权利要求1-11任意一项所述的方法,所述第二位置处的位置信息为经纬度信息;所述方法还包括:根据所述第二位置处的经纬度信息, 以及获取到的地图信息,确定所述第二位置对应的地理位置。
  13. 一种地理定位系统,包括:
    卫星定位位置信息接收器,用于接收卫星定位位置信息;
    处理器,用于获取所述系统在第一位置处的位置信息;停止获取卫星定位位置信息;获取该系统在第二位置处与所述第一位置之间的距离信息,该距离信息指示该系统在第二位置处与所述第一位置之间的距离;如果该系统在第二位置处与所述第一位置之间的距离小于等于第一预设阈值,则将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息。
  14. 如权利要求13或26所述的系统,所述获取所述系统在第一位置处的位置信息;停止获取卫星定位位置信息具体包括:
    通过卫星定位位置信息接收器获取所述系统在第一位置处的位置信息,并在获取该位置信息后停止获取卫星定位位置信息。
  15. 如权利要求14或13或26所述的系统,所述获取该系统在第二位置处与所述第一位置之间的距离信息具体包括:
    当检测到第一预设事件发生时获取该移动终端在第二位置处与所述第一位置之间的距离信息。
  16. 如权利要求15所述的系统,所述预设事件为以下事件中的至少一个:启动相机应用;启动健身应用;使能分享多媒体文件和第一定时器溢出。
  17. 如权利要求13-16或26任意一项权利要求所述的系统,所述获取该系统在第二位置处与所述第一位置之间的距离信息具体包括:
    获取所述系统从第一位置到第二位置所移动的步数。
  18. 如权利要求17所述的系统,所述如果该系统在第二位置处与所述第一位置之间的距离小于等于第一预设阈值,则将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息具体包括:
    如果获取到的所述系统从第一位置到第二位置所移动的步数小于等于第一预设步数阈值,则停止获取卫星定位位置信息,而将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息;或者
    如果获取到的所述系统从第一位置到第二位置所移动的步数与预设步幅的乘积,小于等于第一预设距离阈值,则停止获取卫星定位位置信息,而将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息。
  19. 如权利要求17所述的系统,还包括显示屏,其中所述获取所述系统从第一位置到第二位置所移动的步数具体为:
    在所述显示屏熄灭时,从与所述系统连接的可穿戴设备上同步第一步数;
    当所述显示屏再次点亮后且检测到预设事件发生时,从所述可穿戴设备上同步第二步数;
    根据所述第一步数和第二步数,确定该系统在第二位置处与所述第一位置之间的距离信息。
  20. 如权利要求13-19及26任意一项所述的系统,在所述获取该系统在第二位置处与所述第一位置之间的距离信息之前,还包括:
    获取所述系统的移动速度或加速度,确定所述系统的移动速度或加速度小于等于第二预设阈值。
  21. 如权利要求13-20任意一项所述的系统,所述处理器还用于:如果该系统在第二位置处与所述第一位置之间的距离大于第一预设阈值,则获取卫星定位位置信息以确定该系统在第二位置处的位置信息。
  22. 如权利要求13-21任意一项所述的系统,所述处理器还用于:
    在检测到第二预设事件发生时,恢复获取所述卫星定位位置信息。
  23. 如权22所述的系统,所述第二预设事件为以下事件中的至少一个:启动导航应用;第二定时器溢出。
  24. 如权利要求13-23任意一项所述的系统,所述第二位置处的位置信息为经纬度信息;所述处理器还用于:根据所述第二位置处的经纬度信息,以及获取到的地图信息,确定所述第二位置对应的地理位置。
  25. 如权利要求13-24任意一项所述的系统,所述处理器为基带处理器;所述系统为移动终端。
  26. 一种地理定位系统,包括卫星定位位置信息接收模块,其特征在于,还包括:
    获取模块:用于获取所述系统在第一位置处的位置信息,以及获取该系统在第二位置处与所述第一位置之间的距离信息,该距离信息指示该系统在第二位置处与所述第一位置之间的距离;
    确定模块:用于停止获取卫星定位位置信息;在该系统在第二位置处与所述第一位置之间的距离小于等于第一预设阈值的情况下,将所述系统在第一位置处的位置信息作为该系统在第二位置处的位置信息。
  27. 如权利要求26所述的系统,所述处理模块还用于:如果该系统在第二位置处与所述第一位置之间的距离大于第一预设阈值,则获取卫星定位位置信息以确定该系统在第二位置处的位置信息。
  28. 如权利要求26或27所述的系统,所述确定模块还用于获在检测到第二预设事件发生时,恢复获取所述卫星定位位置信息。
  29. 如权28所述的系统,所述第二预设事件为以下事件中的至少一个:启动导航应用;第二定时器溢出。
  30. 如权利要求26-29任意一项所述的系统,所述第二位置处的位置信息为经纬度信息;所述确定模块还用于:根据所述第二位置处的经纬度信息,以及获取到的地图信息,确定所述第二位置对应的地理位置。
  31. 一种计算机程序产品,包括程序代码,当计算机运行所述程序代码时,所述程序代码执行如权利要求1-12任意一项所述的方法。
PCT/CN2015/095464 2015-11-24 2015-11-24 一种获取位置信息的方法和系统 WO2017088111A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/095464 WO2017088111A1 (zh) 2015-11-24 2015-11-24 一种获取位置信息的方法和系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/095464 WO2017088111A1 (zh) 2015-11-24 2015-11-24 一种获取位置信息的方法和系统

Publications (1)

Publication Number Publication Date
WO2017088111A1 true WO2017088111A1 (zh) 2017-06-01

Family

ID=58762872

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/095464 WO2017088111A1 (zh) 2015-11-24 2015-11-24 一种获取位置信息的方法和系统

Country Status (1)

Country Link
WO (1) WO2017088111A1 (zh)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784819A (zh) * 2019-10-15 2020-02-11 恒鸿达科技有限公司 一种自适应定位方法及终端
CN112770389A (zh) * 2020-12-17 2021-05-07 歌尔光学科技有限公司 定位精度反馈方法、装置、设备及计算机可读存储介质
CN112880686A (zh) * 2021-01-20 2021-06-01 湖南赫兹信息技术有限公司 一种物体运动监测与定位方法、设备及存储介质
CN113541761A (zh) * 2020-04-10 2021-10-22 华为技术有限公司 一种通信方法和装置
WO2022028362A1 (zh) * 2020-08-05 2022-02-10 华为技术有限公司 一种设备定位方法及其相关设备
CN114245306A (zh) * 2021-12-14 2022-03-25 深圳市融纳海川科技有限公司 一种定位修正的方法、装置及系统
WO2023005121A1 (zh) * 2021-07-30 2023-02-02 西安广和通无线软件有限公司 一种终端定位方法、设备、存储介质及定位模组
CN116224387A (zh) * 2023-05-09 2023-06-06 深圳市易赛通信技术有限公司 可穿戴设备的定位方法、装置、设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090215427A1 (en) * 2008-02-21 2009-08-27 Embarq Holdings Company, Llc System and method for updating location information of voice-over-internet protocol based devices for E911 service
CN103454657A (zh) * 2012-05-30 2013-12-18 中兴通讯股份有限公司 智能终端综合定位方法及定位装置
CN104066163A (zh) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 功耗节省装置、移动终端和功耗节省方法
CN104581628A (zh) * 2014-12-11 2015-04-29 北京智慧图科技有限责任公司 一种建立位置与特征信号的对应关系列表的方法及装置
CN204578787U (zh) * 2015-04-21 2015-08-19 北京朗动科技有限公司 一种用于移动终端的地理位置记录装置
CN104950318A (zh) * 2015-06-29 2015-09-30 北京锤子数码科技有限公司 一种gps定位模块的省电方法及移动设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090215427A1 (en) * 2008-02-21 2009-08-27 Embarq Holdings Company, Llc System and method for updating location information of voice-over-internet protocol based devices for E911 service
CN103454657A (zh) * 2012-05-30 2013-12-18 中兴通讯股份有限公司 智能终端综合定位方法及定位装置
CN104066163A (zh) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 功耗节省装置、移动终端和功耗节省方法
CN104581628A (zh) * 2014-12-11 2015-04-29 北京智慧图科技有限责任公司 一种建立位置与特征信号的对应关系列表的方法及装置
CN204578787U (zh) * 2015-04-21 2015-08-19 北京朗动科技有限公司 一种用于移动终端的地理位置记录装置
CN104950318A (zh) * 2015-06-29 2015-09-30 北京锤子数码科技有限公司 一种gps定位模块的省电方法及移动设备

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110784819A (zh) * 2019-10-15 2020-02-11 恒鸿达科技有限公司 一种自适应定位方法及终端
CN110784819B (zh) * 2019-10-15 2021-05-04 恒鸿达科技有限公司 一种自适应定位方法及终端
CN113541761A (zh) * 2020-04-10 2021-10-22 华为技术有限公司 一种通信方法和装置
WO2022028362A1 (zh) * 2020-08-05 2022-02-10 华为技术有限公司 一种设备定位方法及其相关设备
CN112770389A (zh) * 2020-12-17 2021-05-07 歌尔光学科技有限公司 定位精度反馈方法、装置、设备及计算机可读存储介质
CN112770389B (zh) * 2020-12-17 2023-04-25 歌尔科技有限公司 定位精度反馈方法、装置、设备及计算机可读存储介质
CN112880686A (zh) * 2021-01-20 2021-06-01 湖南赫兹信息技术有限公司 一种物体运动监测与定位方法、设备及存储介质
WO2023005121A1 (zh) * 2021-07-30 2023-02-02 西安广和通无线软件有限公司 一种终端定位方法、设备、存储介质及定位模组
CN114245306A (zh) * 2021-12-14 2022-03-25 深圳市融纳海川科技有限公司 一种定位修正的方法、装置及系统
CN116224387A (zh) * 2023-05-09 2023-06-06 深圳市易赛通信技术有限公司 可穿戴设备的定位方法、装置、设备及存储介质
CN116224387B (zh) * 2023-05-09 2023-07-07 深圳市易赛通信技术有限公司 可穿戴设备的定位方法、装置、设备及存储介质

Similar Documents

Publication Publication Date Title
WO2017088111A1 (zh) 一种获取位置信息的方法和系统
CN109891934B (zh) 一种定位方法及装置
EP2130361B1 (en) Updating position assist data on a mobile computing device
JP6055826B2 (ja) 端末機器を位置決めするための方法及び装置
EP3017321B1 (en) Methods and apparatuses for use in providing location parameters to mobile applications
JP6400700B2 (ja) モバイルデバイスクロック管理のための方法およびシステム
CN105933862B (zh) 一种智能终端的定位方法、装置和一种移动终端
US8989763B2 (en) Updating position assist data on a mobile computing device
US20120098705A1 (en) Use of heuristic data for sending message from mobile computing device
CN110168395B (zh) 处理用于长期演进定位协议型的定位会话的早期位置定位
JP2015507865A (ja) 選択可能な電力モードを有するデバイスにおけるタイミング回路較正
WO2018129838A1 (zh) 一种定位方法、终端及服务器
EP3066879A2 (en) Methods and systems for mobile device clock management
US11474259B2 (en) Positioning method and device
EP2965116B1 (en) Synchronous network device time transfer for location determination
WO2019216982A1 (en) Aligning gnss location determination with wireless wide area network paging slots
WO2022001728A1 (zh) 运动数据获取方法及装置、智能可穿戴设备、存储介质
US11864117B2 (en) Program and electronic device
US9319986B2 (en) Method of controlling mobile information terminal and mobile information terminal
WO2022110176A1 (zh) 一种定位方法、装置、设备及存储介质
EP3729842B1 (en) System and method for sharing cluster head assistance data in a device cluster
US20170367066A1 (en) Terrestrial transceiver-based positioning data download for semi-connected devices
WO2023201654A1 (zh) 测量结果接收、发送方法和装置
WO2023206085A1 (zh) 辅助信息接收、发送方法和装置、通信装置及存储介质
JP5864927B2 (ja) 撮像装置、撮像装置の制御方法、および、プログラム

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

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

Country of ref document: EP

Kind code of ref document: A1