WO2018059236A1 - Positioning processing method and terminal of global positioning system - Google Patents

Positioning processing method and terminal of global positioning system Download PDF

Info

Publication number
WO2018059236A1
WO2018059236A1 PCT/CN2017/101521 CN2017101521W WO2018059236A1 WO 2018059236 A1 WO2018059236 A1 WO 2018059236A1 CN 2017101521 W CN2017101521 W CN 2017101521W WO 2018059236 A1 WO2018059236 A1 WO 2018059236A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
positioning
data
gps
protocol stack
Prior art date
Application number
PCT/CN2017/101521
Other languages
French (fr)
Chinese (zh)
Inventor
杨鑫
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018059236A1 publication Critical patent/WO2018059236A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/03Cooperating elements; Interaction or communication between different cooperating elements or between cooperating elements and receivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present disclosure relates to a positioning technology in mobile communication, and in particular, to a global positioning system (GPS) positioning processing method and a terminal.
  • GPS global positioning system
  • a mobile terminal such as a mobile phone can generally be located by using GPS.
  • a typical GPS positioning process generally includes the following steps: first, the GPS positioning interface provided by the upper application is invoked by the platform, and the GPS positioning interface passes through the GPS protocol stack layer to the GPS chip. After the GPS chip receives the positioning command, it starts to search for the GPS satellite and searches for the GPS satellite that meets the required number. After that, according to the data broadcast by the GPS satellite, the location of the mobile terminal is calculated and the positioning is successful; after the positioning is successful, The GPS chip sends the result of the positioning back to the GPS protocol stack layer, and after processing, forwards it to the upper layer application; the upper layer application further processes according to the positioning result.
  • the mobile phone application needs to initiate GPS positioning from the background.
  • the operation of searching for satellites in the GPS positioning process consumes a large amount of power.
  • unnecessary GPS positioning operations need to be avoided, for example, when the mobile phone is stationary and there is no user operation, Or when the mobile phone is in a weak signal room, it is necessary to avoid GPS positioning operation as much as possible.
  • the mobile phone application initiates GPS positioning from the background of the mobile phone.
  • due to weak indoor signals a sufficient number of GPS satellites may not be searched when searching for GPS satellites, which may result in positioning failure.
  • the current mobile phone application generally only directly calls the GPS positioning interface to obtain its current location, it does not perform special protection processing for the positioning failure, so the background application will repeatedly locate and continuously search for the satellite.
  • the embodiments of the present disclosure are expected to provide a GPS positioning processing method and a terminal, which can reduce power consumption of the terminal.
  • An embodiment of the present disclosure provides a GPS positioning processing method, where the method includes:
  • the positioning operation is prohibited.
  • the status data includes: sensor hardware status data and screen status data.
  • the obtaining the current state data of the terminal includes: the positioning application of the terminal invokes an interface of the GPS protocol stack of the terminal, and the GPS protocol stack invokes a sensor built in the terminal and an interface of the user interface to obtain sensor hardware state data and Screen status data.
  • the determining, according to the status data, that the terminal is in a resting state and no user operation comprises: The GPS protocol stack determines whether the terminal is in a resting state according to the obtained sensor hardware state data; and the GPS protocol stack determines whether the terminal has a user operation according to the obtained screen state data.
  • the prohibiting the positioning operation includes: the GPS protocol stack of the terminal sends a positioning failure instruction to the positioning application of the terminal.
  • the embodiment of the present disclosure further provides a terminal, where the terminal includes:
  • a data acquiring unit configured to obtain current state data of the terminal
  • the positioning processing unit is configured to prohibit the positioning operation when the terminal is determined to be in a resting state according to the state data and there is no user operation.
  • the data acquiring unit includes:
  • a sensor module configured to obtain sensor hardware status data
  • a user interface module configured to obtain screen state data
  • the positioning processing unit includes:
  • the GPS protocol stack module is configured to invoke the interface of the sensor module and the user interface module to obtain sensor hardware state data and screen state data; and determine, according to the obtained sensor hardware state data and the screen state data, that the terminal is in a standing state and has no user operation, Positioning is prohibited.
  • the GPS protocol stack module is exemplarily configured to: determine whether the focus is in a resting state according to the obtained sensor hardware state data; and determine whether the terminal has a user operation according to the obtained screen state data.
  • the positioning application module is further configured to receive a positioning failure instruction sent by the GPS protocol stack module to prohibit the positioning operation.
  • Embodiments of the present disclosure also provide a storage medium configured to store program code for performing the method of any of the above.
  • the method and the terminal for processing the GPS positioning failure provided by the embodiment of the present disclosure obtain the current state data of the terminal, and determine that the positioning operation is prohibited when the terminal is in the resting state and there is no user operation according to the state data. It can be seen that, in the embodiment of the present disclosure, as long as it is confirmed that the terminal is not used, the positioning operation is not performed; thus, the terminal can be prevented from attempting unnecessary search satellite operation for GPS positioning without being operated by the user. In the case of the terminal, the power consumption of the terminal can be reduced, the standby time of the terminal is extended, and the normal use of the terminal is ensured.
  • FIG. 1 is a flowchart of implementing a GPS positioning processing method according to an embodiment of the present disclosure
  • FIG. 2 is an exemplary flowchart of a GPS positioning processing method in an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of a GPS positioning processing terminal according to an embodiment of the present disclosure.
  • the embodiment of the present disclosure provides a GPS positioning processing method.
  • the process implemented by the method is as shown in FIG. 1 and includes the following steps:
  • Step 101 Obtain current state data of the terminal.
  • the status data includes: sensor hardware status data obtained by the sensor and screen status data obtained by the user interface.
  • the sensor hardware may be an acceleration sensor.
  • the acceleration sensor is currently a standard common configuration sensor in the terminal hardware, and the sensor may be configured on both the Android platform and the IOS platform; of course, other sensor hardware may also be used. The corresponding effect can be.
  • the screen state data of the user interface is used to reflect all user operations on the screen, such as: screen lighting, pressing a side button, a power button, a camera button, and a fingerprint identification area.
  • Step 102 Determine, according to the state data, that the terminal is in a static state and has no user operation, and prohibits the positioning operation;
  • the positioning application of the terminal invokes the interface of the GPS protocol stack of the terminal, and the GPS protocol stack calls the sensor built in the terminal and the interface of the user interface to obtain the sensor hardware state. Data and screen status data.
  • the GPS protocol stack determines whether the terminal is in a resting state according to the obtained sensor hardware state data; and the GPS protocol stack determines whether the terminal has a user operation according to the screen state data obtained by the user interface.
  • the prohibiting the positioning operation includes: the GPS protocol stack sends a no GPS Location location failure instruction to the positioning application; after the positioning application receives the no GPS Location instruction, the positioning application continues The processing flow of the previous business logic; here, the previous business logic specifies the business logic that the bit application is in prior to initiating the GPS positioning operation.
  • the GPS protocol stack sends a positioning instruction to the built-in GPS chip of the terminal, and continues the positioning processing process, including: the GPS chip receives the GPS protocol stack.
  • the positioning command sent by the terminal initiates the corresponding hardware RF operation to start searching for GPS satellites; the GPS position data received from the GPS satellites is parsed and calculated, and the calculation result is sent back to the GPS protocol stack module, GPS protocol
  • the stack adapts the GPS position data returned by the GPS chip and sends it back to the positioning application; the positioning application further processes according to the GPS location data; the positioning process belongs to the positioning processing flow of the related technology, and will not be described herein.
  • the embodiment of the present disclosure further provides a GPS positioning processing terminal, and the composition of the terminal is as shown in FIG. 3, and the terminal includes: a data acquiring unit 201 and a positioning processing unit 202;
  • the data obtaining unit 201 is configured to obtain current state data of the terminal
  • the positioning processing unit 202 is configured to prohibit the positioning operation when the terminal is determined to be in a resting state according to the state data and there is no user operation.
  • the data acquisition unit 201 includes: a sensor module and a user interface module; wherein
  • a sensor module configured to obtain sensor hardware status data
  • User interface module set to get screen status data.
  • the positioning processing unit 202 includes: a positioning application module and a GPS protocol stack module; wherein
  • the GPS protocol stack module is configured to invoke the interface of the sensor module and the user interface module to obtain sensor hardware state data and screen state data; and determine, according to the obtained sensor hardware state data and the screen state data, that the terminal is in a standing state and has no user operation, Positioning is prohibited.
  • the GPS protocol stack module determines whether the terminal is in a resting state according to the obtained sensor hardware state data; and determines whether the terminal has a user operation according to the obtained screen state data.
  • the positioning application module is further configured to receive a positioning failure instruction sent by the GPS protocol stack module to prohibit the positioning operation.
  • the GPS protocol stack module When the terminal is in the resting state and there is no user operation, the GPS protocol stack module sends a no GPS Location location failure instruction to the positioning application module to prohibit the positioning operation.
  • the positioning processing unit 202 includes a GPS chip module configured to receive a positioning instruction sent by the GPS protocol stack module when the GPS protocol stack module determines that the terminal is not in a resting state or has a user operation.
  • the data acquiring unit 201, the positioning processing unit 202, and the positioning application module may each be a central processing unit (CPU), a microprocessor (MPU, a Micro Processor Unit), and a digital terminal located on the mobile terminal.
  • sensor module can be implemented by sensors, user interface module can be user interface in mobile terminal;
  • GPS protocol stack The module can be a GPS protocol stack in a mobile terminal.
  • embodiments of the present disclosure can be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that the computer Or performing a series of operational steps on other programmable devices to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing a block in a flow or a flow and/or block diagram of the flowchart Or the steps of the function specified in multiple boxes.
  • the global positioning system GPS positioning processing method provided by the embodiment of the present disclosure can reduce the power consumption of the terminal by obtaining the current state data of the terminal and determining that the terminal is in the standing state according to the state data and the positioning operation is prohibited when no user operates.

Landscapes

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

Abstract

Provided are a positioning processing method and terminal of a global positioning system (GPS). The method comprises: acquiring current state data (101) of a terminal; and when it is determined that the terminal is in a static state and not operated by a user according to the state data, forbidding a positioning operation being performed (102). Using the method and terminal can prevent a large quantity of electricity of a terminal being consumed caused by repeatedly attempting to position.

Description

一种全球定位系统定位处理方法及终端Global positioning system positioning processing method and terminal 技术领域Technical field
本公开涉及移动通信中的定位技术,特别涉及一种全球定位系统(GPS,Global Positioning System)定位处理方法及终端。The present disclosure relates to a positioning technology in mobile communication, and in particular, to a global positioning system (GPS) positioning processing method and a terminal.
背景技术Background technique
目前,移动终端如手机一般可以通过GPS来进行定位,一个典型的GPS定位流程大致包括以下步骤:先由上层应用调用平台提供的GPS定位接口,该GPS定位接口经过GPS协议栈层,向GPS芯片发出定位指令;GPS芯片收到定位指令后,开始搜索GPS卫星,搜索到满足要求数量的GPS卫星;之后,根据GPS卫星所广播的数据,计算得到手机终端所在位置,定位成功;定位成功后,GPS芯片将定位的结果发回GPS协议栈层,经处理后转发给上层应用;上层应用根据该定位结果做进一步的处理。At present, a mobile terminal such as a mobile phone can generally be located by using GPS. A typical GPS positioning process generally includes the following steps: first, the GPS positioning interface provided by the upper application is invoked by the platform, and the GPS positioning interface passes through the GPS protocol stack layer to the GPS chip. After the GPS chip receives the positioning command, it starts to search for the GPS satellite and searches for the GPS satellite that meets the required number. After that, according to the data broadcast by the GPS satellite, the location of the mobile terminal is calculated and the positioning is successful; after the positioning is successful, The GPS chip sends the result of the positioning back to the GPS protocol stack layer, and after processing, forwards it to the upper layer application; the upper layer application further processes according to the positioning result.
通常,手机应用需要从后台发起GPS定位,GPS定位流程中搜索卫星的操作耗电量较大,为了节省手机电量,需要避免不必要的GPS定位操作,比如:手机静置且没有用户操作时、或者手机处于信号弱的室内时,需要尽量避免进行GPS定位操作。举个例子来说,手机处于室内时,由手机应用从手机的后台发起GPS定位,但由于室内信号弱,可能会在搜索GPS卫星时搜不到足够数量的GPS卫星,从而会导致定位失败。由于目前的手机应用一般只会直接调用GPS定位接口来获得自身当前位置,并不会对定位失败做专门的保护性处理,于是后台应用就会反复不停地进行定位,进而不停进行搜索卫星的操作,而由于搜索卫星的操作耗电量较大,显然不停地进行搜索卫星操作会消耗手机电池中大量电量,严重时甚至会将电量耗尽,影响手机的正常使用。Generally, the mobile phone application needs to initiate GPS positioning from the background. The operation of searching for satellites in the GPS positioning process consumes a large amount of power. In order to save the power of the mobile phone, unnecessary GPS positioning operations need to be avoided, for example, when the mobile phone is stationary and there is no user operation, Or when the mobile phone is in a weak signal room, it is necessary to avoid GPS positioning operation as much as possible. For example, when the mobile phone is indoors, the mobile phone application initiates GPS positioning from the background of the mobile phone. However, due to weak indoor signals, a sufficient number of GPS satellites may not be searched when searching for GPS satellites, which may result in positioning failure. Since the current mobile phone application generally only directly calls the GPS positioning interface to obtain its current location, it does not perform special protection processing for the positioning failure, so the background application will repeatedly locate and continuously search for the satellite. The operation, and because of the large power consumption of the search satellite operation, it is obvious that the search satellite operation will consume a large amount of power in the mobile phone battery, and even in a serious case, the power will be exhausted, which affects the normal use of the mobile phone.
发明内容Summary of the invention
为解决相关存在的技术问题,本公开实施例期望提供一种GPS定位处理方法及终端,能减少终端的电量消耗。In order to solve the related technical problems, the embodiments of the present disclosure are expected to provide a GPS positioning processing method and a terminal, which can reduce power consumption of the terminal.
为达到上述目的,本公开实施例的技术方案是这样实现的:In order to achieve the above object, the technical solution of the embodiment of the present disclosure is implemented as follows:
本公开实施例提供了一种GPS定位处理方法,所述方法包括:An embodiment of the present disclosure provides a GPS positioning processing method, where the method includes:
获得终端当前的状态数据;Obtaining current status data of the terminal;
根据所述状态数据确定终端处于静置状态且无用户操作时,禁止进行定位操作。When it is determined according to the state data that the terminal is in a resting state and there is no user operation, the positioning operation is prohibited.
上述方案中,所述状态数据包括:传感器硬件状态数据和屏幕状态数据。In the above solution, the status data includes: sensor hardware status data and screen status data.
上述方案中,所述获得终端当前的状态数据,包括:终端的定位应用调用终端的GPS协议栈的接口,所述GPS协议栈调用终端内置的传感器及用户界面的接口,获得传感器硬件状态数据和屏幕状态数据。In the above solution, the obtaining the current state data of the terminal includes: the positioning application of the terminal invokes an interface of the GPS protocol stack of the terminal, and the GPS protocol stack invokes a sensor built in the terminal and an interface of the user interface to obtain sensor hardware state data and Screen status data.
上述方案中,所述根据所述状态数据确定终端处于静置状态且无用户操作包括:所述 GPS协议栈根据获得的传感器硬件状态数据确定终端是否处于静置状态;所述GPS协议栈根据获得的屏幕状态数据确定终端是否有用户操作。In the above solution, the determining, according to the status data, that the terminal is in a resting state and no user operation comprises: The GPS protocol stack determines whether the terminal is in a resting state according to the obtained sensor hardware state data; and the GPS protocol stack determines whether the terminal has a user operation according to the obtained screen state data.
上述方案中,所述禁止进行定位操作包括:终端的GPS协议栈向终端的定位应用发送定位失败指令。In the above solution, the prohibiting the positioning operation includes: the GPS protocol stack of the terminal sends a positioning failure instruction to the positioning application of the terminal.
本公开实施例还提供了一种终端,所述终端包括:The embodiment of the present disclosure further provides a terminal, where the terminal includes:
数据获取单元,设置为获得终端当前的状态数据;a data acquiring unit, configured to obtain current state data of the terminal;
定位处理单元,设置为根据状态数据确定终端处于静置状态且无用户操作时,禁止进行定位操作。The positioning processing unit is configured to prohibit the positioning operation when the terminal is determined to be in a resting state according to the state data and there is no user operation.
上述方案中,所述数据获取单元,包括:In the above solution, the data acquiring unit includes:
传感器模块,设置为获得传感器硬件状态数据;a sensor module configured to obtain sensor hardware status data;
用户界面模块,设置为获得屏幕状态数据;a user interface module configured to obtain screen state data;
上述方案中,所述定位处理单元,包括:In the above solution, the positioning processing unit includes:
定位应用模块,设置为调用GPS协议栈模块的接口;Positioning the application module, set to call the interface of the GPS protocol stack module;
GPS协议栈模块,设置为调用传感器模块及用户界面模块的接口,获得传感器硬件状态数据和屏幕状态数据;根据获得的传感器硬件状态数据和屏幕状态数据确定终端处于静置状态且无用户操作时,禁止定位操作。The GPS protocol stack module is configured to invoke the interface of the sensor module and the user interface module to obtain sensor hardware state data and screen state data; and determine, according to the obtained sensor hardware state data and the screen state data, that the terminal is in a standing state and has no user operation, Positioning is prohibited.
上述方案中,所述GPS协议栈模块,示例性设置为:根据获得的传感器硬件状态数据确定重点是否处于静置状态;根据获得的屏幕状态数据确定终端是否有用户操作。In the above solution, the GPS protocol stack module is exemplarily configured to: determine whether the focus is in a resting state according to the obtained sensor hardware state data; and determine whether the terminal has a user operation according to the obtained screen state data.
上述方案中,所述定位应用模块,还设置为接收GPS协议栈模块发送的定位失败指令来禁止定位操作。In the above solution, the positioning application module is further configured to receive a positioning failure instruction sent by the GPS protocol stack module to prohibit the positioning operation.
本公开实施例还提供了一种存储介质,设置为存储程序代码,所述程序代码用于执行上述任一项所述的方法。Embodiments of the present disclosure also provide a storage medium configured to store program code for performing the method of any of the above.
本公开实施例提供的一种GPS定位失败的处理方法及终端,获得终端当前的状态数据;根据所述状态数据确定终端处于静置状态且无用户操作时,禁止进行定位操作。可以看出,本公开实施例中只要确认终端静置未使用,就不会进行定位操作;如此,就可以避免终端在静置没有用户操作的情况下尝试不必要的搜索卫星操作用于GPS定位,而导致消耗终端大量电量的情况;本公开实施例能够减少终端的电量消耗,延长终端的待机时间,保证终端的正常使用。The method and the terminal for processing the GPS positioning failure provided by the embodiment of the present disclosure obtain the current state data of the terminal, and determine that the positioning operation is prohibited when the terminal is in the resting state and there is no user operation according to the state data. It can be seen that, in the embodiment of the present disclosure, as long as it is confirmed that the terminal is not used, the positioning operation is not performed; thus, the terminal can be prevented from attempting unnecessary search satellite operation for GPS positioning without being operated by the user. In the case of the terminal, the power consumption of the terminal can be reduced, the standby time of the terminal is extended, and the normal use of the terminal is ensured.
附图说明DRAWINGS
图1为本公开实施例中一种GPS定位处理方法的实现流程图;FIG. 1 is a flowchart of implementing a GPS positioning processing method according to an embodiment of the present disclosure;
图2为本公开实施例中一种GPS定位处理方法的示例性流程图;2 is an exemplary flowchart of a GPS positioning processing method in an embodiment of the present disclosure;
图3为本公开实施例中一种GPS定位处理终端的组成结构示意图。FIG. 3 is a schematic structural diagram of a GPS positioning processing terminal according to an embodiment of the present disclosure.
具体实施方式 detailed description
本公开实施例提供了一种GPS定位处理方法,该方法实现的流程如图1所示,包括以下步骤:The embodiment of the present disclosure provides a GPS positioning processing method. The process implemented by the method is as shown in FIG. 1 and includes the following steps:
步骤101,获得终端当前的状态数据;Step 101: Obtain current state data of the terminal.
其中,所述状态数据包括:传感器获得的传感器硬件状态数据和用户界面获得的屏幕状态数据。The status data includes: sensor hardware status data obtained by the sensor and screen status data obtained by the user interface.
这里,所述传感器硬件可以为加速度感应器,加速度传感器目前在终端硬件中属于标准的常见配置传感器,无论是Android平台还是IOS平台都会配置这类传感器;当然,也可以使用其它传感器硬件,能达到相应效果即可。Here, the sensor hardware may be an acceleration sensor. The acceleration sensor is currently a standard common configuration sensor in the terminal hardware, and the sensor may be configured on both the Android platform and the IOS platform; of course, other sensor hardware may also be used. The corresponding effect can be.
所述用户界面的屏幕状态数据,用于反映屏幕上所有的用户操作,比如:屏幕点亮、按侧键、电源键、照相键和指纹识别区域等。The screen state data of the user interface is used to reflect all user operations on the screen, such as: screen lighting, pressing a side button, a power button, a camera button, and a fingerprint identification area.
步骤102,根据所述状态数据确定终端处于静置状态且无用户操作时,禁止进行定位操作;Step 102: Determine, according to the state data, that the terminal is in a static state and has no user operation, and prohibits the positioning operation;
示例性而言,当终端上某个应用软件需要进行GPS定位时,终端的定位应用会调用终端的GPS协议栈的接口,GPS协议栈调用终端内置的传感器及用户界面的接口,获得传感器硬件状态数据和屏幕状态数据。For example, when an application software on the terminal needs to perform GPS positioning, the positioning application of the terminal invokes the interface of the GPS protocol stack of the terminal, and the GPS protocol stack calls the sensor built in the terminal and the interface of the user interface to obtain the sensor hardware state. Data and screen status data.
如图2步骤1021所示,GPS协议栈根据获得的传感器硬件状态数据确定终端是否处于静置状态;GPS协议栈根据用户界面获得的屏幕状态数据确定终端是否有用户操作。As shown in step 1021 of FIG. 2, the GPS protocol stack determines whether the terminal is in a resting state according to the obtained sensor hardware state data; and the GPS protocol stack determines whether the terminal has a user operation according to the screen state data obtained by the user interface.
在一实施例中,当确定终端处于静置状态且无用户操作时,禁止进行定位操作包括:GPS协议栈向定位应用发送no GPS Location定位失败指令;定位应用接收到no GPS Location指令后,继续之前的业务逻辑的处理流程;这里,所述之前的业务逻辑指定位应用发起GPS定位操作之前正在进行的业务逻辑。In an embodiment, when it is determined that the terminal is in a resting state and there is no user operation, the prohibiting the positioning operation includes: the GPS protocol stack sends a no GPS Location location failure instruction to the positioning application; after the positioning application receives the no GPS Location instruction, the positioning application continues The processing flow of the previous business logic; here, the previous business logic specifies the business logic that the bit application is in prior to initiating the GPS positioning operation.
当确定终端未处于静置状态或有用户操作时,如图2步骤1022所示,GPS协议栈会向终端内置的GPS芯片发出定位指令,继续定位处理流程,包括:GPS芯片接收从GPS协议栈发来的定位指令,通过终端的天线启动相应的硬件射频操作,开始搜索GPS卫星;将从GPS卫星收到的GPS位置数据进行解析和计算,将计算结果发回给GPS协议栈模块,GPS协议栈将GPS芯片返回的GPS位置数据进行适配,并发回给定位应用;定位应用根据GPS位置数据做进一步处理;此定位过程属于相关技术的定位处理流程,在此不再赘述。When it is determined that the terminal is not in the resting state or has a user operation, as shown in step 1022 of FIG. 2, the GPS protocol stack sends a positioning instruction to the built-in GPS chip of the terminal, and continues the positioning processing process, including: the GPS chip receives the GPS protocol stack. The positioning command sent by the terminal initiates the corresponding hardware RF operation to start searching for GPS satellites; the GPS position data received from the GPS satellites is parsed and calculated, and the calculation result is sent back to the GPS protocol stack module, GPS protocol The stack adapts the GPS position data returned by the GPS chip and sends it back to the positioning application; the positioning application further processes according to the GPS location data; the positioning process belongs to the positioning processing flow of the related technology, and will not be described herein.
本公开实施例还提供了一种GPS定位处理终端,所述终端的组成结构如图3所示,所述终端包括:数据获取单元201和定位处理单元202;其中,The embodiment of the present disclosure further provides a GPS positioning processing terminal, and the composition of the terminal is as shown in FIG. 3, and the terminal includes: a data acquiring unit 201 and a positioning processing unit 202;
数据获取单元201,设置为获得终端当前的状态数据;The data obtaining unit 201 is configured to obtain current state data of the terminal;
定位处理单元202,设置为根据状态数据确定终端处于静置状态且无用户操作时,禁止进行定位操作。The positioning processing unit 202 is configured to prohibit the positioning operation when the terminal is determined to be in a resting state according to the state data and there is no user operation.
这里,数据获取单元201包括:传感器模块和用户界面模块;其中,Here, the data acquisition unit 201 includes: a sensor module and a user interface module; wherein
传感器模块,设置为获得传感器硬件状态数据; a sensor module configured to obtain sensor hardware status data;
用户界面模块,设置为获得屏幕状态数据。User interface module, set to get screen status data.
定位处理单元202包括:定位应用模块和GPS协议栈模块;其中,The positioning processing unit 202 includes: a positioning application module and a GPS protocol stack module; wherein
定位应用模块,设置为调用GPS协议栈模块的接口;Positioning the application module, set to call the interface of the GPS protocol stack module;
GPS协议栈模块,设置为调用传感器模块及用户界面模块的接口,获得传感器硬件状态数据和屏幕状态数据;根据获得的传感器硬件状态数据和屏幕状态数据确定终端处于静置状态且无用户操作时,禁止定位操作。The GPS protocol stack module is configured to invoke the interface of the sensor module and the user interface module to obtain sensor hardware state data and screen state data; and determine, according to the obtained sensor hardware state data and the screen state data, that the terminal is in a standing state and has no user operation, Positioning is prohibited.
示例性而言,所述GPS协议栈模块根据获得的传感器硬件状态数据确定终端是否处于静置状态;根据获得的屏幕状态数据确定终端是否有用户操作。Illustratively, the GPS protocol stack module determines whether the terminal is in a resting state according to the obtained sensor hardware state data; and determines whether the terminal has a user operation according to the obtained screen state data.
示例性而言,所述定位应用模块,还设置为接收GPS协议栈模块发送的定位失败指令来禁止定位操作。For example, the positioning application module is further configured to receive a positioning failure instruction sent by the GPS protocol stack module to prohibit the positioning operation.
当终端处于静置状态且无用户操作时,GPS协议栈模块向定位应用模块发送no GPS Location定位失败指令,禁止定位操作。When the terminal is in the resting state and there is no user operation, the GPS protocol stack module sends a no GPS Location location failure instruction to the positioning application module to prohibit the positioning operation.
在一实施例中,所述定位处理单元202包括GPS芯片模块,设置为在GPS协议栈模块确定终端没有处于静置状态或有用户操作时,接收GPS协议栈模块发送的定位指令。In an embodiment, the positioning processing unit 202 includes a GPS chip module configured to receive a positioning instruction sent by the GPS protocol stack module when the GPS protocol stack module determines that the terminal is not in a resting state or has a user operation.
在实际应用中,所述数据获取单元201、定位处理单元202和定位应用模块均可由位于移动终端上的中央处理器(CPU,Central Processing Unit)、微处理器(MPU,Micro Processor Unit)、数字信号处理器(DSP,Digital Signal Processor)、或现场可编程门阵列(FPGA,Field Programmable Gate Array)等实现;传感器模块可以由传感器实现,用户界面模块可以是移动终端中的用户界面;GPS协议栈模块可以是移动终端中的GPS协议栈。In an actual application, the data acquiring unit 201, the positioning processing unit 202, and the positioning application module may each be a central processing unit (CPU), a microprocessor (MPU, a Micro Processor Unit), and a digital terminal located on the mobile terminal. Signal processor (DSP, Digital Signal Processor), or Field Programmable Gate Array (FPGA) implementation; sensor module can be implemented by sensors, user interface module can be user interface in mobile terminal; GPS protocol stack The module can be a GPS protocol stack in a mobile terminal.
本领域内的技术人员应明白,本公开的实施例可提供为方法、系统、或计算机程序产品。因此,本公开可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本公开可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present disclosure can be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本公开是参照根据本公开实施例的方法、设备(系统)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the present disclosure. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that the computer Or performing a series of operational steps on other programmable devices to produce computer-implemented processing such that instructions executed on a computer or other programmable device are provided for implementing a block in a flow or a flow and/or block diagram of the flowchart Or the steps of the function specified in multiple boxes.
以上所述,仅为本公开的较佳实施例而已,并非用于限定本公开的保护范围。The above description is only for the preferred embodiments of the present disclosure, and is not intended to limit the scope of the disclosure.
工业实用性Industrial applicability
本公开实施例提供的全球定位系统GPS定位处理方法,通过获得终端当前的状态数据并根据所述状态数据确定终端处于静置状态且无用户操作时禁止进行定位操作,可以降低终端耗电量。 The global positioning system GPS positioning processing method provided by the embodiment of the present disclosure can reduce the power consumption of the terminal by obtaining the current state data of the terminal and determining that the terminal is in the standing state according to the state data and the positioning operation is prohibited when no user operates.

Claims (11)

  1. 一种全球定位系统GPS定位处理方法,其中,所述方法包括:A global positioning system GPS positioning processing method, wherein the method comprises:
    获得终端当前的状态数据;Obtaining current status data of the terminal;
    根据所述状态数据确定终端处于静置状态且无用户操作时,禁止进行定位操作。When it is determined according to the state data that the terminal is in a resting state and there is no user operation, the positioning operation is prohibited.
  2. 根据权利要求1所述方法,其中,所述状态数据包括:传感器硬件状态数据和屏幕状态数据。The method of claim 1 wherein said status data comprises: sensor hardware status data and screen status data.
  3. 根据权利要求2所述方法,其中,所述获得终端当前的状态数据,包括:终端的定位应用调用终端的GPS协议栈的接口,所述GPS协议栈调用终端内置的传感器及用户界面的接口,获得传感器硬件状态数据和屏幕状态数据。The method according to claim 2, wherein the obtaining the current state data of the terminal comprises: the positioning application of the terminal invoking an interface of the GPS protocol stack of the terminal, the GPS protocol stack calling the interface of the built-in sensor and the user interface of the terminal, Get sensor hardware status data and screen status data.
  4. 根据权利要求3所述方法,其中,所述根据所述状态数据确定终端处于静置状态且无用户操作包括:所述GPS协议栈根据获得的传感器硬件状态数据确定终端是否处于静置状态;The method of claim 3, wherein the determining, according to the status data, that the terminal is in a resting state and having no user operation comprises: determining, by the GPS protocol stack, whether the terminal is in a resting state according to the obtained sensor hardware state data;
    所述GPS协议栈根据获得的屏幕状态数据确定终端是否有用户操作。The GPS protocol stack determines whether the terminal has a user operation based on the obtained screen state data.
  5. 根据权利要求1至4任一项所述方法,其中,所述禁止进行定位操作包括:终端的GPS协议栈向终端的定位应用发送定位失败指令。The method according to any one of claims 1 to 4, wherein said prohibiting the positioning operation comprises: the GPS protocol stack of the terminal transmitting a positioning failure instruction to the positioning application of the terminal.
  6. 一种终端,其中,所述终端包括:A terminal, wherein the terminal comprises:
    数据获取单元,设置为获得终端当前的状态数据;a data acquiring unit, configured to obtain current state data of the terminal;
    定位处理单元,设置为根据状态数据确定终端处于静置状态且无用户操作时,禁止进行定位操作。The positioning processing unit is configured to prohibit the positioning operation when the terminal is determined to be in a resting state according to the state data and there is no user operation.
  7. 根据权利要求6所述终端,其中,所述数据获取单元,包括:The terminal according to claim 6, wherein the data acquisition unit comprises:
    传感器模块,设置为获得传感器硬件状态数据;a sensor module configured to obtain sensor hardware status data;
    用户界面模块,设置为获得屏幕状态数据。User interface module, set to get screen status data.
  8. 根据权利要求7所述终端,其中,所述定位处理单元,包括:The terminal according to claim 7, wherein the positioning processing unit comprises:
    定位应用模块,设置为调用GPS协议栈模块的接口;Positioning the application module, set to call the interface of the GPS protocol stack module;
    GPS协议栈模块,设置为调用传感器模块及用户界面模块的接口,获得传感器硬件状态数据和屏幕状态数据;根据获得的传感器硬件状态数据和屏幕状态数据确定终端处于静置状态且无用户操作时,禁止定位操作。The GPS protocol stack module is configured to invoke the interface of the sensor module and the user interface module to obtain sensor hardware state data and screen state data; and determine, according to the obtained sensor hardware state data and the screen state data, that the terminal is in a standing state and has no user operation, Positioning is prohibited.
  9. 根据权利要求8所述终端,其中,所述GPS协议栈模块,设置为:根据获得的传感器硬件状态数据确定重点是否处于静置状态;根据获得的屏幕状态数据确定终端是否有用户操作。The terminal according to claim 8, wherein the GPS protocol stack module is configured to: determine whether the focus is in a resting state according to the obtained sensor hardware state data; and determine whether the terminal has a user operation according to the obtained screen state data.
  10. 根据权利要求8所述终端,其中,所述定位应用模块,还设置为接收GPS协议栈模块发送的定位失败指令来禁止定位操作。The terminal according to claim 8, wherein the positioning application module is further configured to receive a positioning failure instruction sent by the GPS protocol stack module to prohibit the positioning operation.
  11. 一种存储介质,设置为存储程序代码,所述程序代码用于执行权利要求1至5中任一项所述的方法。 A storage medium arranged to store a program code for performing the method of any one of claims 1 to 5.
PCT/CN2017/101521 2016-09-30 2017-09-13 Positioning processing method and terminal of global positioning system WO2018059236A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610874924.3A CN107884796A (en) 2016-09-30 2016-09-30 A kind of global positioning system location processing method and terminal
CN201610874924.3 2016-09-30

Publications (1)

Publication Number Publication Date
WO2018059236A1 true WO2018059236A1 (en) 2018-04-05

Family

ID=61763133

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/101521 WO2018059236A1 (en) 2016-09-30 2017-09-13 Positioning processing method and terminal of global positioning system

Country Status (2)

Country Link
CN (1) CN107884796A (en)
WO (1) WO2018059236A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109752745B (en) * 2019-01-28 2021-10-26 Oppo广东移动通信有限公司 Split type equipment positioning method and device, split type equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359713B1 (en) * 2003-02-28 2008-04-15 Trimble Navigation Limited Battery consumption optimization for mobile users
CN102150465A (en) * 2008-10-01 2011-08-10 高通股份有限公司 Mobile terminal motion detection methods and systems
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN105208215A (en) * 2015-10-22 2015-12-30 小米科技有限责任公司 Locating control method, device and terminal
CN105960004A (en) * 2016-06-30 2016-09-21 宇龙计算机通信科技(深圳)有限公司 Mobile terminal positioning function control method, and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359713B1 (en) * 2003-02-28 2008-04-15 Trimble Navigation Limited Battery consumption optimization for mobile users
CN102150465A (en) * 2008-10-01 2011-08-10 高通股份有限公司 Mobile terminal motion detection methods and systems
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN105208215A (en) * 2015-10-22 2015-12-30 小米科技有限责任公司 Locating control method, device and terminal
CN105960004A (en) * 2016-06-30 2016-09-21 宇龙计算机通信科技(深圳)有限公司 Mobile terminal positioning function control method, and mobile terminal

Also Published As

Publication number Publication date
CN107884796A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
EP3972330B1 (en) Network connection control method, terminal, and storage medium
KR101641174B1 (en) Method for enabling shutdown alarm clock and mobile terminal, and program, and recording medium for enabling shutdown alarm clock
RU2686673C1 (en) Device and method of terminal control and terminal
KR101722042B1 (en) Power efficient location notification
US20180206064A1 (en) Apparatus and method for determining a wireless device's location after shutdown
JP5165246B2 (en) Method and system for a multi-function satellite positioning system receiver
CN102594984A (en) Mobile terminal, and system and method for quickly photographing mobile terminal
US20140032955A1 (en) Method, device, and system for delaying packets during a network-triggered wake of a computing device
US20130090110A1 (en) Managing battery power usage of a lost mobile device to extend search time for the lost mobile device
WO2017092452A1 (en) Method for starting application according to location information about mobile device, and mobile device
US20110154008A1 (en) Electronic device and method for booting up and shutting down the electronic device
WO2017054117A1 (en) Method for controlling transmission power of wireless communication terminal, and wireless communication terminal
WO2018094875A1 (en) Information processing method, positioning chip, and mobile terminal
WO2018126884A1 (en) Power saving method for terminal device and terminal device
WO2018176702A1 (en) Method for detecting wireless signal, and terminal device
WO2018059236A1 (en) Positioning processing method and terminal of global positioning system
WO2017206318A1 (en) Mobile device, and method and apparatus for sharing location thereof
US8631125B2 (en) Network device and mobile device with state capture services
JP2014023148A (en) Portable radio communication device
WO2022156572A1 (en) Control method, control apparatus, and electronic device
CN115623557A (en) Network finding frequency determining method, network finding frequency determining device and electronic equipment
EP2654354B1 (en) Providing a current position while reducing an overall power consumption
TWI453676B (en) Electronic system and controlling method thereof
WO2016145854A1 (en) Gps function power-off method, device and terminal
US20140082754A1 (en) Electronic device and method for disabling application and hardware

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

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

Country of ref document: EP

Kind code of ref document: A1