CN107884796A - A kind of global positioning system location processing method and terminal - Google Patents
A kind of global positioning system location processing method and terminal Download PDFInfo
- Publication number
- CN107884796A CN107884796A CN201610874924.3A CN201610874924A CN107884796A CN 107884796 A CN107884796 A CN 107884796A CN 201610874924 A CN201610874924 A CN 201610874924A CN 107884796 A CN107884796 A CN 107884796A
- Authority
- CN
- China
- Prior art keywords
- terminal
- status data
- protocol stack
- gps
- data
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining 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/42—Determining position
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/03—Cooperating elements; Interaction or communication between different cooperating elements or between cooperating elements and receivers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0274—Power 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/028—Power 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
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
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
The invention discloses a kind of global positioning system (GPS) location processing method, including:Obtain the current status data of terminal;When determining that terminal is in static condition and no user operation according to the status data, forbid carrying out positioning action.The invention also discloses a kind of terminal, using this method and terminal, is avoided that and makes repeated attempts positioning and cause consumption great amount of terminals electricity.
Description
Technical field
The present invention relates to the location technology in mobile communication, more particularly to a kind of global positioning system (GPS, Global
Positioning System) location processing method and terminal.
Background technology
At present, mobile terminal can be positioned as mobile phone by GPS, and a typical GPS location flow is big
Cause comprises the following steps:The GPS location interface first provided by upper layer application calling platform, the GPS location interface pass through GPS protocol
Stack layer, positioning instruction is sent to GPS chip;After GPS chip receives positioning instruction, start to search for gps satellite, searching satisfaction will
Seek the gps satellite of quantity;Afterwards, the data broadcasted according to gps satellite, mobile phone terminal position is calculated, is positioned to
Work(;After positioning successfully, the result of positioning is beamed back GPS protocol stack layer by GPS chip, and upper layer application is transmitted to after processing;Upper strata
Handled using according to the positioning result is further.
Generally, mobile phone application needs the operation power consumption of the search of satellite from backstage initiation GPS location, GPS location flow
It is larger, in order to save mobile phone electricity, it is necessary to avoid unnecessary GPS location from operating, such as:Mobile phone stands and operated without user
When or mobile phone when being in the weak interior of signal, it is necessary to avoid carrying out GPS location operation as far as possible.For example for, at mobile phone
When interior, applied by mobile phone from the backstage of mobile phone and initiate GPS location, but because indoor signal is weak, may defended in search GPS
Searched during star less than sufficient amount of gps satellite, so as to which positioning can be caused to fail.Because the current general only meeting of mobile phone application is direct
Call GPS location interface to obtain itself current location, can't unsuccessfully do special protectiveness to positioning and handle, then backstage
Using will endlessly be positioned, the operation entered without stopping scanning for satellite, and because the operation of search of satellite consumes
Electricity is larger, it is clear that big volume and electricity in battery of mobile phone can be consumed by ceaselessly scanning for satellite operations, even can be by electricity when serious
Amount exhausts, and influences the normal use of mobile phone.
The content of the invention
To solve existing technical problem, the embodiment of the present invention it is expected to provide a kind of GPS location processing method and end
End, the electric quantity consumption of terminal can be reduced.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of GPS location processing method, methods described includes:
Obtain the current status data of terminal;
When determining that terminal is in static condition and no user operation according to the status data, forbid carrying out positioning action.
In such scheme, the status data includes:Sensor hardware status data and screen state data.
In such scheme, the current status data of the acquisition terminal, including:The positioning application call terminal of terminal
The interface of GPS protocol stack, the GPS protocol stack call the sensor of terminal built-in and the interface of user interface, obtain sensor
Hardware status data and screen state data.
It is described to determine that terminal is in static condition and no user operation includes according to the status data in such scheme:
The GPS protocol stack determines whether terminal is in static condition according to the sensor hardware status data of acquisition;The GPS protocol
Stack determines whether terminal has user's operation according to the screen state data of acquisition.
It is described to forbid progress positioning action to include in such scheme:Positioning application hair of the GPS protocol stack of terminal to terminal
Send positioning failure command.
The embodiment of the present invention additionally provides a kind of terminal, and the terminal includes:
Data capture unit, the status data current for obtaining terminal;
Localization process unit, during for determining that terminal is in static condition and no user and operated according to status data, forbid
Carry out positioning action.
In such scheme, the data capture unit, including:
Sensor assembly, for obtaining sensor hardware status data;
Subscriber interface module, for obtaining screen state data;
In such scheme, the localization process unit, including:
Application module is positioned, for calling the interface of GPS protocol stack module;
GPS protocol stack module, for calling the interface of sensor assembly and subscriber interface module, obtain sensor hardware shape
State data and screen state data;Determine that terminal is in quiet according to the sensor hardware status data of acquisition and screen state data
When configuration state and no user operation, forbid positioning action.
In such scheme, the GPS protocol stack module, it is specifically used for:It is true according to the sensor hardware status data of acquisition
Determine whether emphasis is in static condition;Determine whether terminal has user's operation according to the screen state data of acquisition.
In such scheme, the positioning application module, it is additionally operable to receive the positioning failure command that GPS protocol stack module is sent
To forbid positioning action.
The processing method and terminal of a kind of GPS location failure provided in an embodiment of the present invention, obtain the current state of terminal
Data;When determining that terminal is in static condition and no user operation according to the status data, forbid carrying out positioning action.Can be with
Find out, be not used as long as confirming that terminal is stood in the embodiment of the present invention, positioning action would not be carried out;So, it is possible to avoid
Terminal is attempted unnecessary search of satellite in the case where standing no user's operation and operated for GPS location, and causes to consume
The situation of the big volume and electricity of terminal;The embodiment of the present invention can reduce the electric quantity consumption of terminal, extend the stand-by time of terminal, ensure
The normal use of terminal.
Brief description of the drawings
Fig. 1 is a kind of implementation process figure of GPS location processing method in the embodiment of the present invention;
Fig. 2 is a kind of particular flow sheet of GPS location processing method in the embodiment of the present invention;
Fig. 3 is a kind of composition structural representation of GPS location processing terminal in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of GPS location processing method, flow that this method is realized as shown in figure 1, including
Following steps:
Step 101, the current status data of terminal is obtained;
Wherein, the status data includes:What the sensor hardware status data and user interface that sensor obtains obtained
Screen state data.
Here, the sensor hardware can be acceleration induction device, and acceleration transducer belongs in terminal hardware at present
In the common sensors configured of standard, either Android platform or ios platform can all configure this kind of sensor;Certainly,
Other sensor hardwares can be used, corresponding effect can be reached.
The screen state data of the user interface, for reflecting user's operation all on screen, such as:Screen point
It is bright, press side switch, power key, photograph key and fingerprint recognition region etc..
Step 102, when determining that terminal is in static condition and no user operation according to the status data, forbid being determined
Bit manipulation;
Specifically, when some application software needs to carry out GPS location in terminal, the positioning application of terminal can call terminal
GPS protocol stack interface, GPS protocol stack call terminal built-in sensor and user interface interface, obtain sensor it is hard
Part status data and screen state data.
As shown in Fig. 2 steps 1021, GPS protocol stack determines whether terminal is located according to the sensor hardware status data of acquisition
In static condition;The screen state data that GPS protocol stack obtains according to user interface determine whether terminal has user's operation.
Further, when it is determined that terminal is in static condition and no user operation, progress positioning action is forbidden to include:
GPS protocol stack sends no GPS Location positioning failure commands to positioning application;Positioning application receives no GPS
After Location instructions, the handling process of the service logic before continuing;Here, the service logic specific bit application before described
Initiate ongoing service logic before GPS location operates.
When it is determined that terminal is not in static condition or has user's operation, as shown in Fig. 2 steps 1022, GPS protocol stack meeting
Positioning instruction is sent to the GPS chip of terminal built-in, continues localization process flow, including:GPS chip is received from GPS protocol stack
The positioning instruction sent, corresponding hardware radio frequency operation is started by the antenna of terminal, starts to search for gps satellite;It will be defended from GPS
The GPS location data that star receives is parsed and calculated, and result of calculation is sent back into GPS protocol stack module, GPS protocol stack will
The GPS location data that GPS chip returns is adapted to, and sends back to positioning application;Positioning application according to GPS location data do into
The processing of one step;This position fixing process belongs to the localization process flow of prior art, will not be repeated here.
The embodiment of the present invention additionally provides a kind of GPS location processing terminal, the composition structure of the terminal as shown in figure 3,
The terminal includes:Data capture unit 201 and localization process unit 202;Wherein,
Data capture unit 201, the status data current for obtaining terminal;
Localization process unit 202, during for determining that terminal is in static condition and no user and operated according to status data, prohibit
Only carry out positioning action.
Here, data capture unit 201 includes:Sensor assembly and subscriber interface module;Wherein,
Sensor assembly, for obtaining sensor hardware status data;
Subscriber interface module, for obtaining screen state data.
Localization process unit 202 includes:Position application module and GPS protocol stack module;Wherein,
Application module is positioned, for calling the interface of GPS protocol stack module;
GPS protocol stack module, for calling the interface of sensor assembly and subscriber interface module, obtain sensor hardware shape
State data and screen state data;Determine that terminal is in quiet according to the sensor hardware status data of acquisition and screen state data
When configuration state and no user operation, forbid positioning action.
Specifically, the GPS protocol stack module determines whether terminal is according to the sensor hardware status data of acquisition
Static condition;Determine whether terminal has user's operation according to the screen state data of acquisition.
Specifically, the positioning application module, it is additionally operable to receive positioning failure command that GPS protocol stack module sends to prohibit
Fastening bit manipulation.
When terminal is in static condition and no user operates, GPS protocol stack module sends no to positioning application module
GPS Location position failure command, forbid positioning action.
The localization process unit 202 further comprises GPS chip module, for determining terminal in GPS protocol stack module
When being not on static condition or having user's operation, the positioning instruction that GPS protocol stack module is sent is received.
In actual applications, the data capture unit 201, localization process unit 202 and positioning application module can be by
Central processing unit (CPU, Central Processing Unit), microprocessor (MPU, Micro on mobile terminal
Processor Unit), digital signal processor (DSP, Digital Signal Processor) or field-programmable gate array
(FPGA, Field Programmable Gate Array) etc. is arranged to realize;Sensor assembly can realize by sensor, user
Interface module can be the user interface in mobile terminal;GPS protocol stack module can be the GPS protocol stack in mobile terminal.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware
Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage
The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of global position system GPS location processing method, it is characterised in that methods described includes:
Obtain the current status data of terminal;
When determining that terminal is in static condition and no user operation according to the status data, forbid carrying out positioning action.
2. method according to claim 1, it is characterised in that the status data includes:Sensor hardware status data and
Screen state data.
3. method according to claim 2, it is characterised in that the current status data of the acquisition terminal, including:Terminal
The interface of the GPS protocol stack of application call terminal is positioned, the GPS protocol stack calls the sensor and user interface of terminal built-in
Interface, obtain sensor hardware status data and screen state data.
4. method according to claim 3, it is characterised in that described to determine that terminal is in standing shape according to the status data
State and no user, which operate, to be included:The GPS protocol stack determines whether terminal is according to the sensor hardware status data of acquisition
Static condition;
The GPS protocol stack determines whether terminal has user's operation according to the screen state data of acquisition.
5. according to any one of Claims 1-4 methods described, it is characterised in that described to forbid progress positioning action to include:Terminal
Positioning from GPS protocol stack to terminal application send positioning failure command.
6. a kind of terminal, it is characterised in that the terminal includes:
Data capture unit, the status data current for obtaining terminal;
Localization process unit, during for determining that terminal is in static condition and no user and operated according to status data, forbid carrying out
Positioning action.
7. terminal according to claim 6, it is characterised in that the data capture unit, including:
Sensor assembly, for obtaining sensor hardware status data;
Subscriber interface module, for obtaining screen state data.
8. terminal according to claim 7, it is characterised in that the localization process unit, including:
Application module is positioned, for calling the interface of GPS protocol stack module;
GPS protocol stack module, for calling the interface of sensor assembly and subscriber interface module, obtain sensor hardware status number
According to screen state data;Determine that terminal is according to the sensor hardware status data of acquisition and screen state data and stand shape
When state and no user operation, forbid positioning action.
9. terminal according to claim 8, it is characterised in that the GPS protocol stack module, be specifically used for:According to acquisition
Sensor hardware status data determines whether emphasis is in static condition;Whether terminal is determined according to the screen state data of acquisition
There is user's operation.
10. terminal according to claim 8, it is characterised in that the positioning application module, be additionally operable to receive GPS protocol stack
The positioning failure command that module is sent forbids positioning action.
Priority Applications (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 |
PCT/CN2017/101521 WO2018059236A1 (en) | 2016-09-30 | 2017-09-13 | Positioning processing method and terminal of global positioning system |
Applications Claiming Priority (1)
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 |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107884796A true CN107884796A (en) | 2018-04-06 |
Family
ID=61763133
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610874924.3A Pending CN107884796A (en) | 2016-09-30 | 2016-09-30 | A kind of global positioning system location processing method and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107884796A (en) |
WO (1) | WO2018059236A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109752745A (en) * | 2019-01-28 | 2019-05-14 | Oppo广东移动通信有限公司 | Split type equipment localization method, device, split type equipment and storage medium |
Family Cites Families (5)
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 |
US20100081458A1 (en) * | 2008-10-01 | 2010-04-01 | Qualcomm Incorporated | Mobile Terminal Motion Detection Methods and Systems |
CN104793995B (en) * | 2015-04-27 | 2017-11-10 | 广东欧珀移动通信有限公司 | The method and device for controlling GPS to call |
CN105208215A (en) * | 2015-10-22 | 2015-12-30 | 小米科技有限责任公司 | Locating control method, device and terminal |
CN105960004B (en) * | 2016-06-30 | 2020-04-07 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal positioning function control method and mobile terminal |
-
2016
- 2016-09-30 CN CN201610874924.3A patent/CN107884796A/en active Pending
-
2017
- 2017-09-13 WO PCT/CN2017/101521 patent/WO2018059236A1/en active Application Filing
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109752745A (en) * | 2019-01-28 | 2019-05-14 | Oppo广东移动通信有限公司 | Split type equipment localization method, device, split type equipment and storage medium |
CN109752745B (en) * | 2019-01-28 | 2021-10-26 | Oppo广东移动通信有限公司 | Split type equipment positioning method and device, split type equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2018059236A1 (en) | 2018-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106791892B (en) | Method, device and system for live broadcasting of wheelhouses | |
US9113414B2 (en) | Standby method for handheld mobile terminal, microprocessor, and mobile phone | |
EP3525417A1 (en) | Data processing method, device, storage medium, electronic device and server | |
CN103458124B (en) | A kind of shutdown processing method of terminal, device and terminal equipment | |
US20170098114A1 (en) | Method and system for processing input fingerprint information, and mobile terminal thereof | |
CN109068404A (en) | Dual-card dual-standby terminal network selecting method, device, terminal device and storage medium | |
JP5867541B2 (en) | Communication equipment and program | |
US9542935B2 (en) | Voice recognition function realizing method and device | |
US20120224567A1 (en) | Mobile phone and method for receiving calls | |
CN109195197A (en) | Dual-card dual-standby terminal network selecting method, device, terminal device and storage medium | |
CN105306738A (en) | Timed prompting method and apparatus for mobile terminal | |
CN105120158A (en) | Shooting method and apparatus for mobile terminal | |
CN105205371A (en) | Locking method and locking device of mobile terminal | |
CN110636598A (en) | Terminal power saving control method and device, mobile terminal and storage medium | |
KR20110108504A (en) | Apparatus and method for performing the system inspection in portable terminal | |
CN107884796A (en) | A kind of global positioning system location processing method and terminal | |
JP3860098B2 (en) | Information terminal equipment | |
CN110944318A (en) | Lock card setting method and device, storage medium and terminal | |
CN112866983B (en) | Control method, control device and electronic equipment | |
CN112542867B (en) | Mobile terminal power supply control method and device, terminal equipment and storage medium | |
CN104424198A (en) | Method and device for acquiring page display speed | |
CN110022189B (en) | Data transmission method, device, terminal and storage medium | |
CN103853959A (en) | Permission control device and method | |
CN113613310A (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN107750048B (en) | Interaction method and system based on short-distance wireless communication antenna |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180406 |