CN105682198B - A kind of position control method of mobile terminal, device and mobile terminal - Google Patents

A kind of position control method of mobile terminal, device and mobile terminal Download PDF

Info

Publication number
CN105682198B
CN105682198B CN201610023215.4A CN201610023215A CN105682198B CN 105682198 B CN105682198 B CN 105682198B CN 201610023215 A CN201610023215 A CN 201610023215A CN 105682198 B CN105682198 B CN 105682198B
Authority
CN
China
Prior art keywords
gps module
lbs
mobile terminal
value
module
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.)
Active
Application number
CN201610023215.4A
Other languages
Chinese (zh)
Other versions
CN105682198A (en
Inventor
蒋世民
刘文杰
吴丕和
林华秋
张强
雷辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610023215.4A priority Critical patent/CN105682198B/en
Publication of CN105682198A publication Critical patent/CN105682198A/en
Application granted granted Critical
Publication of CN105682198B publication Critical patent/CN105682198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • 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

Abstract

The embodiment of the invention discloses a kind of position control method of mobile terminal, device and mobile terminals.This method includes:When monitoring that being applied based on location-based service LBS in mobile terminal attempts to be positioned by global position system GPS module, determine whether GPS module can realize positioning;If GPS module can not realize positioning, LBS is obtained using the degree of dependence value to GPS module;The working condition of GPS module is controlled according to degree of dependence value, wherein, the working condition of GPS module includes closed state and opening.The embodiment of the present invention is by using above-mentioned technical proposal, when LBS applications are run in the terminal, the working condition of the GPS module in mobile terminal can rationally be controlled, it can be under the premise of ensureing to timely respond to the preferable user experience of LBS application Location Requests, mobile terminal power consumption is reduced to greatest extent, improves the cruising ability of mobile terminal.

Description

A kind of position control method of mobile terminal, device and mobile terminal
Technical field
The present embodiments relate to mobile device technology field more particularly to a kind of position control method of mobile terminal, Device and mobile terminal.
Background technology
It is to obtain mobile terminal by location technology to use based on location-based service (Location Based Service, LBS) The location information at family and the value-added service for providing respective service to the user, at present, many applications in mobile terminal are all based on What LBS developed, range has covered the fields such as amusement and recreation, service for life and social networking application, so, LBS technologies Play important role in all trades and professions.
At present, the positioning method of mobile terminal mainly includes global positioning system (Global Positioning System, GPS) positioning, network positions and base station location etc..Wherein, GPS positioning mode has positioning accuracy high and is not required to The advantages that using mobile data network, but locating speed is slow, and relies on the signal condition of GPS satellite, and not being suitable for interior makes With;Network positions do not depend on GPS satellite signal, are applicable to interior, but need using mobile data network, and positioning accuracy It is low;Base station location is equally applicable to interior, and locating speed is very fast, but positioning accuracy is low.
In order to accelerate location response and improve positioning accuracy, current LBS application generally use GPS positionings are determined with network Position (or base station location) mode that is combined carries out mobile terminal location.In order to promote user experience, make user should in opening First time learns the position of oneself, and LBS applications can automatically turn on GPS module on startup.However, user is being not suitable for LBS is opened in the environment of GPS work (such as in the poor environment of interior GPS signal) in application, GPS module can equally be held automatically It opens, power consumption when GPS module is in opening is larger, so using LBS application programs in the environment for being not suitable for GPS work When, mobile terminal power consumption can be increased, waste the electric power of battery of mobile terminal.To solve the above-mentioned problems, existing a kind of way It is, when detecting that current environment is not suitable for GPS module work, to close GPS module to save mobile terminal electric power.However, this The positioning function that sample may result in LBS applications reports an error, and when user is moved in the environment that GPS signal improves, by The Location Request of LBS applications, poor user experience are closed and can not timely respond in GPS module.
Invention content
The purpose of the embodiment of the present invention is to provide a kind of position control method of mobile terminal, device and mobile terminal, with Rationally control the working condition of GPS module in mobile terminal.
In a first aspect, an embodiment of the present invention provides a kind of position control method of mobile terminal, including:
It monitors to attempt to carry out by global position system GPS module based on location-based service LBS applications in mobile terminal During positioning, determine whether the GPS module can realize positioning;
If the GPS module can not realize positioning, the LBS is obtained using the degree of dependence value to the GPS module;
The working condition of the GPS module is controlled according to the degree of dependence value, wherein, the work shape of the GPS module State includes closed state and opening.
Second aspect, an embodiment of the present invention provides a kind of position control device of mobile terminal, including:
Determining module, for passing through global location using trial based on location-based service LBS in mobile terminal is monitored When System GPS module is positioned, determine whether the GPS module can realize positioning;
Degree of dependence value acquisition module, for when the GPS module can not realize positioning, obtaining the LBS applications pair The degree of dependence value of the GPS module;
Working state control module, for controlling the working condition of the GPS module according to the degree of dependence value, In, the working condition of the GPS module includes closed state and opening.
The third aspect, an embodiment of the present invention provides a kind of mobile terminal, which is integrated with the embodiment of the present invention In mobile terminal position control device.
The location control scheme of the mobile terminal provided in the embodiment of the present invention, when monitor the LBS in mobile terminal should During with attempting to be positioned by GPS module, however, it is determined that GPS module can not realize positioning, then obtain LBS and apply to GPS module Degree of dependence value, the working condition for controlling GPS module according to degree of dependence value is in off state or opening.By using Above-mentioned technical proposal when LBS applications are run in the terminal, can rationally control the work of the GPS module in mobile terminal Make state, can to greatest extent reduce and move under the premise of ensureing to timely respond to the preferable user experience of LBS application Location Requests Dynamic power consumption of terminal improves the cruising ability of mobile terminal.
Description of the drawings
Fig. 1 is the flow diagram of the position control method of a kind of mobile terminal that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram whether determining GPS module that the embodiment of the present invention one provides can realize positioning.
Fig. 3 is a kind of flow diagram of the position control method of mobile terminal provided by Embodiment 2 of the present invention;
Fig. 4 is the flow diagram of the position control method of a kind of mobile terminal that the embodiment of the present invention three provides;
Fig. 5 is the structure diagram of the position control device of a kind of mobile terminal that the embodiment of the present invention four provides.
Specific embodiment
Technical solution to further illustrate the present invention below with reference to the accompanying drawings and specific embodiments.It is appreciated that It is that specific embodiment described herein is used only for explaining the present invention rather than limitation of the invention.It further needs exist for illustrating , part related to the present invention rather than entire infrastructure are illustrated only for ease of description, in attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Embodiment one
The flow diagram of the position control method of a kind of mobile terminal that Fig. 1 is provided for the embodiment of the present invention one, the party Method can be performed by the position control device of mobile terminal, and wherein the device can generally be integrated by software and or hardware realization In the terminal.As shown in Figure 1, this method includes:
Step 101 when monitoring LBS in mobile terminal using attempting to be positioned by GPS module, determines GPS moulds Whether block can realize positioning.
Illustratively, the mobile terminal in the present embodiment can concretely load LBS application mobile phone, smartwatch and The equipment such as tablet computer, preferably smart mobile phone.
Illustratively, in order to promote user experience, user is made to learn the position of oneself in the first time for opening LBS applications It puts, LBS applications can generally automatically turn on GPS module on startup.Therefore, after LBS applications start in the terminal, GPS moulds Block is in opening, and LBS applications can be attempted to be positioned by GPS module.In this step in mobile terminal is monitored When LBS is using attempting to be positioned by GPS module, determine whether GPS module can realize positioning.GPS positioning mode passes through Overhead satellites position is observed to obtain satellite information, and is positioned according to satellite information, in some environments (as it is indoor or its He close or semiclosed environment in) satellite-signal is poor, GPS module possibly can not realize positioning.
Determine GPS module whether can realize positioning mode can there are many kinds of, the present embodiment is not especially limited.Show Example property, the environmental information of mobile terminal can be obtained, and determine whether GPS module can realize positioning according to environmental information.
Specifically, determine whether GPS module can realize that positioning may include following steps according to environmental information:Timing acquisition The satellite information of the GPS module acquisition, and when the satellite information currently obtained is identical with the upper satellite information once obtained, The value of pre-set environmental parameter is added 1, the initial value of the environmental parameter is 0;The ring obtained in preset time When the value of border parameter is more than default environmental parameter threshold value, determine that GPS module can not realize positioning.
Further, determine whether GPS module can realize that positioning may also include according to environmental information:What is currently obtained When satellite information is differed with the last satellite information obtained, if the intensity value of satellite information Satellite signal currently obtained Less than preset signal strength threshold value, and the number of satellites in the satellite information currently obtained is less than default value, then joins environment Several values add 1;Otherwise, it determines GPS module can realize positioning.
If step 102, GPS module can not realize positioning, LBS is obtained using the degree of dependence value to GPS module.
Illustratively, it is distinguishing to the degree of dependence of GPS module that different LBS, which is applied,.For example, map or navigation type Higher using the degree of dependence to GPS module, such application needs to provide accurately positioning in real time with the movement of mobile terminal Information is to user;And the services for life class such as take-away or shopping is using, such application most relatively low to the degree of dependence of GPS module The current location of positioning mobile terminal is needed, and recommends businessman nearby for user, after the completion of the positioning of current location, then substantially no longer It needs to be positioned by GPS module, and when positioning failure, also allows for user by being manually entered the side of the position of oneself Formula realizes the major functions such as make a reservation or do shopping of such application.
Illustratively, each LBS can be prestored or count in the terminal to apply to the degree of dependence value of GPS module, Current LBS is directly read when performing this step using corresponding degree of dependence value.Specifically, determine that LBS is applied to GPS moulds The mode of the degree of dependence value of block can there are many kinds of, the present embodiment is not especially limited.For example, it can be answered by system according to LBS History service condition is counted;Also it can be configured by user according to personal use situation.
Step 103, the working condition that GPS module is controlled according to degree of dependence value.
Wherein, the working condition of GPS module includes closed state and opening.
Illustratively, when being meant that degree of dependence is higher representated by degree of dependence value, GPS module can be kept to open State avoids the positioning function that LBS is applied from reporting an error, and can also avoid when user is moved in the environment that GPS signal improves, due to GPS module is closed and can not timely respond to LBS application Location Requests, and user is needed to carry out manually opened wait and is operated; When being meant that degree of dependence is relatively low representated by degree of dependence value, the working condition of controllable GPS module switches to closing shape State, to reduce the power consumption of mobile terminal.
The embodiment of the present invention one provide mobile terminal position control method, when monitor the LBS in mobile terminal should During with attempting to be positioned by GPS module, however, it is determined that GPS module can not realize positioning, then obtain LBS and apply to GPS module Degree of dependence value, the working condition for controlling GPS module according to degree of dependence value is in off state or opening.By using Above-mentioned technical proposal when LBS applications are run in the terminal, can rationally control the work of the GPS module in mobile terminal Make state, can to greatest extent reduce and move under the premise of ensureing to timely respond to the preferable user experience of LBS application Location Requests Dynamic power consumption of terminal improves the cruising ability of mobile terminal.
Illustratively, Fig. 2 is whether the determining GPS module that the embodiment of the present invention one provides can realize that the flow of positioning is shown It is intended to.As shown in Fig. 2, determining whether GPS module can realize that positioning specifically comprises the following steps:
Step 201, initialization context parametric variable STimer=0.
Step 202, the satellite information for obtaining GPS module acquisition.
Whether the satellite information that step 203, judgement currently obtain and the satellite information that the last time obtains are identical, if so, Perform step 205;Otherwise, step 204 is performed.
Step 204 judges whether that the CN values of satellite information Satellite signal currently obtained are less than preset signal strength threshold Value MIN_VALUE, and number of satellites is less than default minimum satellite vehicle number MIN_NUM, if so, performing step 205;Otherwise, it performs Step 207.
Wherein, CN values refer to the power ratio of carrier wave and noise, for weighing the intensity of satellite information.
Step 205, STimer values add 1.
Step 206 judges whether STimer is more than default environmental parameter threshold value MAX_NUM, if so, step 208 is performed, Terminate flow;Otherwise, it returns and performs step 202.
Step 207 reinitializes STimer=0, and returns and perform step 202.
Illustratively, illustrate that GPS module at this time can realize positioning.
Step 208 determines that GPS module can not realize positioning.
Embodiment two
Fig. 3 be a kind of flow diagram of the position control method of mobile terminal provided by Embodiment 2 of the present invention, this reality It applies example to optimize based on above-described embodiment, in the present embodiment, " the LBS applications in mobile terminal is monitored in step When trial is positioned by GPS module, determine whether GPS module can realize positioning " it increases before:Count LBS applications The number of normal operation in the case where GPS module can not realize positioning;The corresponding current value of number is determined as LBS applications To the degree of dependence value of GPS module.
Further, " working condition for controlling GPS module according to degree of dependence " can be optimized for including:Work as degree of dependence When value is more than default degree of dependence threshold value, control GPS module enters closed state.
Further, " working condition that GPS module is controlled according to degree of dependence " may also include:When degree of dependence value is less than Or during equal to default degree of dependence threshold value, control GPS module is kept it turned on.
Correspondingly, the method for the present embodiment includes the following steps:
Step 301, statistics LBS apply the number of the normal operation in the case where GPS module can not realize positioning.
Specifically, this step may include:The value of number is set as 0;After LBS applications start in the terminal, Determine that LBS applies the duration run in the case where GPS module can not realize positioning;When length reaches preset duration at that time, determine This of LBS applications operates to normal operation, and the value of number is added 1.
Illustratively, can according to LBS application start to LBS application be closed between time interval determine operation when It is long;Also the duration that the time interval that LBS applications are switched between running background determines operation can be started to according to LBS applications. The preset duration can be adjusted according to actual conditions.
Illustratively, LBS can be counted since when LBS applications are loaded into mobile terminal to apply and can not realize in GPS module The number of normal operation in the case of positioning.
For example, when LBS is applied as map application, map application is after mobile terminal startup, if user has found positioning function It is abnormal, it will usually to close map application or map application is switched into running background;For another example, when LBS is applied as shopping application, purchase Object is applied after mobile terminal startup, even if user has found that positioning function is abnormal, can also be carried out normally browsing commodity and be placed an order Deng operation, generally running background will not be closed or switched to shopping application.The use that can be applied according to above-mentioned user to LBS History come count LBS apply GPS module can not realize positioning in the case of normal operation number.
The corresponding current value of number is determined as LBS using the degree of dependence value to GPS module by step 302.
Illustratively, the current value of number is higher, and degree of dependence value is higher, illustrates LBS using the dependence to GPS module Degree is lower.As it can be seen that the height of the degree of dependence value and degree of dependence in the present embodiment can be considered as inverse relation, actually should Used time, designer can be adjusted according to actual conditions.
Step 303 monitors that the LBS in mobile terminal is positioned using trial by GPS module.
Step 304 determines whether GPS module can realize positioning, if so, performing step 308;Otherwise, step is performed 305。
Step 305 obtains LBS using the degree of dependence value to GPS module.
Step 306 judges whether degree of dependence value is more than default degree of dependence threshold value, if so, performing step 307;It is no Then, step 308 is performed.
Step 307, control GPS module enter closed state.
Step 308, control GPS module are kept it turned on.
Preferably, it is that LBS is applied to the degree of dependence value of GPS module that variables D EP can be set in the present embodiment;Set constant MIN_TIME is preset duration, the standard as measurement LBS applications whether normal operation;Set be always on MIN_DEP as it is default according to Rely degree threshold value, the standard of GPS module whether is relied on as measurement LBS applications.After LBS applications start in the terminal, And determine that current GPS module can not realize positioning, start to count the duration time of LBS application operations, if time reaches MIN_ The value of variables D EP is then added 1 by TIME.With the value of above-mentioned regular real-time update DEP.Needing to obtain LBS using to GPS moulds During the degree of dependence value of block, the current value of variables D EP is directly acquired, if judging, the current value of DEP is more than MIN_DEP, Think that LBS applications do not depend on GPS module or relatively low to the degree of dependence of GPS module, controllable GPS module enters closed state; Otherwise it is assumed that LBS applications rely on GPS module or higher to the degree of dependence of GPS module, controllable GPS module keeps it turned on shape State, to ensure that GPS module can timely respond to LBS application Location Requests.
The position control method of mobile terminal provided by Embodiment 2 of the present invention, statistics LBS is applied can not be real in GPS module The corresponding current value of number is determined as LBS using the dependence to GPS module by the number of normal operation in the case of now positioning Degree value can improve and judge LBS using the accuracy to GPS module degree of dependence, further rationally to control in mobile terminal GPS module working condition.
Embodiment three
The flow diagram of the position control method of a kind of mobile terminal that Fig. 4 is provided for the embodiment of the present invention three, this reality Example is applied to optimize based on above-described embodiment, in the present embodiment, step " control GPS module enter closed state " it Afterwards, it increases:Judge current time apart from GPS module enter closed state when time interval whether reach preset time week Phase, if so, control GPS module enters opening, and repeat whether determining GPS module can realize the behaviour of positioning Make.
Further, above-mentioned new content can be also optimized for:Judge that current time enters closed state apart from GPS module When time interval whether reach preset period of time, if so, control GPS module enter opening;If detect movement The motion state of terminal is more than default acceleration of gravity threshold value for acceleration of gravity or detects that the displacement distance of mobile terminal is big In pre-determined distance threshold value, then repeat whether determining GPS module can realize the operation of positioning.
Correspondingly, the method for the present embodiment includes the following steps:
Step 401, statistics LBS apply the number of the normal operation in the case where GPS module can not realize positioning.
The corresponding current value of number is determined as LBS using the degree of dependence value to GPS module by step 402.
Step 403 monitors that the LBS in mobile terminal is positioned using trial by GPS module.
Step 404 determines whether GPS module can realize positioning, if so, performing step 411;Otherwise, step is performed 405。
Step 405 obtains LBS using the degree of dependence value to GPS module.
Step 406 judges whether degree of dependence value is more than default degree of dependence threshold value, if so, performing step 407;It is no Then, step 411 is performed.
Step 407, control GPS module enter closed state.
Step 408, judge current time apart from GPS module enter closed state when time interval whether reach default when Between the period, if so, perform step 409;Otherwise, this step 408 is continued to execute.
Illustratively, preset period of time can be fixed or be adjusted by preset rules into Mobile state.Tool Body, preset rules can be:If LBS applies the front stage operation in mobile terminal, preset period of time is adjusted to first Preset period of time;If LBS applies the running background in mobile terminal, preset period of time is adjusted to the second preset time Period.Preferably, the first preset period of time is less than the second preset period of time.
Step 409, control GPS module enter opening.
Whether step 410, the acceleration of gravity for detecting mobile terminal are more than default acceleration of gravity threshold value, if so, holding Row step 404;Otherwise, step 407 is performed.
Optionally, this step is alternatively:Whether the displacement distance for detecting mobile terminal is more than pre-determined distance threshold value, if so, Then perform step 404;Otherwise, step 407 is performed.
Illustratively, the motion state of mobile terminal can be detected in predetermined time period, when detecting mobile terminal When motion state is more than default acceleration of gravity threshold value for acceleration of gravity, alternatively, when the displacement distance for detecting mobile terminal During more than pre-determined distance threshold value, illustrating that user is likely to carry mobile terminal and leaves current makes GPS module that can not realize positioning Environment, at this point, can redefine whether GPS module can realize positioning by repeating step 404.If when default Between above-mentioned motion state is not detected in length, then can perform step 407 to close GPS module.
In the present embodiment the detection mode of acceleration of gravity and displacement distance can there are many kinds of, do not limit specifically herein It is fixed.Illustratively, the acceleration of gravity of mobile terminal can be detected as the gravity sensor built in mobile terminal;Mobile terminal Displacement distance can be detected by the base station location module built in mobile terminal or network location module etc., can also pass through weight The testing result of force snesor and timer is calculated.
Step 411, control GPS module are kept it turned on.
The embodiment of the present invention three provide mobile terminal position control method, after GPS module is closed, according to it is default when Between the period periodically redefine whether GPS module can realize positioning, so as to the further reasonable work for controlling GPS module Make state, it is ensured that GPS module can timely respond to LBS application Location Requests.
Example IV
The structure diagram of the position control device of a kind of mobile terminal that Fig. 5 is provided for the embodiment of the present invention four, the device Can be typically integrated in mobile terminal by software and or hardware realization, can by perform the position control method of mobile terminal come Rationally control the working condition of GPS module in mobile terminal.As shown in figure 5, the device includes determining module 501, degree of dependence It is worth acquisition module 502 and working state control module 503.
Wherein it is determined that module 501, for being passed through in mobile terminal is monitored based on location-based service LBS using trial When global position system GPS module is positioned, determine whether the GPS module can realize positioning;Degree of dependence value obtains Module 502, for when the GPS module can not realize positioning, obtaining the LBS using the dependence journey to the GPS module Angle value;Working state control module 503, for controlling the working condition of the GPS module according to the degree of dependence value, In, the working condition of the GPS module includes closed state and opening.
The position control device for the mobile terminal that the embodiment of the present invention four provides, when LBS applications are run in the terminal When, which can rationally control the working condition of the GPS module in mobile terminal, can ensure that timely responding to LBS applications determines Under the premise of the preferable user experience of position request, mobile terminal power consumption is reduced to greatest extent, improves the continuation of the journey energy of mobile terminal Power.
On the basis of above-described embodiment, which may also include number statistical module and degree of dependence value determining module. Wherein, number statistical module, for being positioned in the LBS monitored in mobile terminal using trial by GPS module When, before determining whether the GPS module can realize positioning, statistics LBS applies the situation that positioning can not be realized in GPS module The number of lower normal operation;Degree of dependence value determining module, for the corresponding current value of the number to be determined as the LBS Using the degree of dependence value to the GPS module.
On the basis of above-described embodiment, the number statistical module may include that number initialization unit, duration determine list Member and number statistic unit.Wherein, number initialization unit, for the value of number to be set as 0;Duration determination unit is used After applying and starting in the mobile terminal in LBS, determine that the LBS applies the situation that positioning can not be realized in GPS module The duration of lower operation;Number statistic unit, for when the duration reaches preset duration, determine LBS application this Normal operation is operated to, and the value of the number is added 1.
On the basis of above-described embodiment, the working state control module can be used for:When the degree of dependence value is more than During default degree of dependence threshold value, the GPS module is controlled to enter closed state.
On the basis of above-described embodiment, the working state control module can be additionally used in:When degree of dependence value is small When the default degree of dependence threshold value, the GPS module is controlled to keep it turned on.
On the basis of above-described embodiment, which may also include:Time interval judgment module, in the control institute GPS module is stated to enter after closed state, judge current time apart from the GPS module enter closed state when time interval Whether reach preset period of time, if so, the GPS module is controlled to enter opening, and repeat the determining institute State whether GPS module can realize the operation of positioning.
On the basis of above-described embodiment, the preset period of time can be adjusted by preset rules into Mobile state.
On the basis of above-described embodiment, the preset rules can be:It is transported if the LBS is applied on the foreground of mobile terminal Row, then be adjusted to the first preset period of time by the preset period of time;It is transported if the LBS is applied on the backstage of mobile terminal Row, then be adjusted to the second preset period of time by the preset period of time.
On the basis of above-described embodiment, the time interval judgment module can be used for:Judge described in current time distance Whether time interval when GPS module enters closed state reaches preset period of time, if so, control the GPS module into Enter opening;If detecting, the motion state of mobile terminal is more than default acceleration of gravity threshold value or inspection for acceleration of gravity Whether the displacement distance for measuring mobile terminal is more than pre-determined distance threshold value, then repeat the determining GPS module and can Realize the operation of positioning.
On the basis of above-described embodiment, the determining module can be used for:Monitor that the LBS applications in mobile terminal are attempted When being positioned by GPS module, the environmental information of mobile terminal is obtained, and the GPS moulds are determined according to the environmental information Whether block can realize positioning.
On the basis of above-described embodiment, the determining module is particularly used in:Monitor the LBS applications in mobile terminal When trial is positioned by GPS module, the satellite information of GPS module acquisition described in timing acquisition, and defended what is currently obtained When star information is identical with the satellite information that the last time obtains, the value of pre-set environmental parameter is added 1, the environmental parameter Initial value be 0;When the value of the environmental parameter obtained in preset time is more than default environmental parameter threshold value, determine described GPS module can not realize positioning.
On the basis of above-described embodiment, the determining module specifically can be additionally used in:The satellite information that currently obtains with When the satellite information that last time obtains differs, if the intensity value of satellite information Satellite signal currently obtained is less than in advance If signal strength threshold, and the number of satellites in the satellite information currently obtained is less than default value, then by the environment The value of parameter adds 1;Otherwise, it determines the GPS module can realize positioning.
Embodiment five
The present embodiment five provides a kind of mobile terminal, which is integrated with the movement described in the embodiment of the present invention The position control device of terminal.
Illustratively, the mobile terminal in the present embodiment can concretely load LBS application mobile phone, smartwatch and The equipment such as tablet computer.
User is during mobile terminal provided in an embodiment of the present invention is used, when LBS applications are run in the terminal When, the working condition of the GPS module in mobile terminal can be rationally controlled, can ensure to timely respond to LBS application Location Requests Preferable user experience under the premise of, reduce mobile terminal power consumption to greatest extent, improve the cruising ability of mobile terminal.
The position control device and mobile terminal of the mobile terminal provided in above-described embodiment can perform of the invention arbitrary real The position control method for the mobile terminal that example is provided is applied, has and performs the corresponding function module of this method and advantageous effect.Not The technical detail of detailed description in the above-described embodiments, reference can be made to the positioning for the mobile terminal that any embodiment of the present invention is provided Control method.
Note that it above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The present invention is not limited to specific embodiment described here, can carry out for a person skilled in the art various apparent variations, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above example to the present invention It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also It can include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.

Claims (21)

1. a kind of position control method of mobile terminal, which is characterized in that including:
It monitors to attempt to be positioned by global position system GPS module based on location-based service LBS applications in mobile terminal When, determine whether the GPS module can realize positioning;
If the GPS module can not realize positioning, the LBS is obtained using the degree of dependence value to the GPS module;
The working condition of the GPS module is controlled according to the degree of dependence value, wherein, the working condition packet of the GPS module Include closed state and opening;
Wherein, when the LBS monitored in mobile terminal is using attempting to be positioned by GPS module, the GPS is determined Before whether module can realize positioning, including:
The value of number is set as 0;After LBS, which is applied, to be started in the mobile terminal, determine that the LBS is applied in GPS The duration that module is run in the case of can not realizing positioning;When the duration reaches preset duration, the LBS applications are determined This operates to normal operation, and the value of the number is added 1;The duration of the operation starts to LBS according to LBS applications should It is determined with the time interval between being closed, is switched alternatively, the duration of the operation starts to LBS applications according to LBS applications It is determined to the time interval between running background;The corresponding current value of the number is determined as the LBS to apply to described The degree of dependence value of GPS module.
2. according to the method described in claim 1, it is characterized in that, described control the GPS module according to the degree of dependence Working condition, including:
When the degree of dependence value is more than default degree of dependence threshold value, the GPS module is controlled to enter closed state.
3. according to the method described in claim 2, it is characterized in that, described control the GPS module according to the degree of dependence Working condition, further include:
When the degree of dependence value is less than or equal to the default degree of dependence threshold value, the GPS module is controlled to keep it turned on State.
4. according to the method described in claim 2, it is characterized in that, the control GPS module enter closed state it Afterwards, it further includes:
Judge current time apart from the GPS module enter closed state when time interval whether reach preset period of time, If so, the GPS module is controlled to enter opening, and repeat whether the determining GPS module can be realized The operation of positioning.
5. according to the method described in claim 4, it is characterized in that, the preset period of time by preset rules into Mobile state tune It is whole.
6. according to the method described in claim 5, it is characterized in that, the preset rules are:If the LBS is applied mobile whole The preset period of time is then adjusted to the first preset period of time by the front stage operation at end;If the LBS is applied mobile whole The preset period of time is then adjusted to the second preset period of time by the running background at end.
7. according to the method described in claim 4, it is characterized in that, the control GPS module enters opening, lay equal stress on The operation for determining the GPS module and whether can realizing positioning is performed again, including:
The GPS module is controlled to enter opening;
If detecting, the motion state of mobile terminal is more than default acceleration of gravity threshold value for acceleration of gravity or detects movement The displacement distance of terminal is more than pre-determined distance threshold value, then repeats whether the determining GPS module can realize positioning Operation.
8. according to the described method of any one of claim 1-7, which is characterized in that described to determine that the GPS module whether It is enough to realize positioning, including:
The environmental information of mobile terminal is obtained, and determines whether the GPS module can realize positioning according to the environmental information.
9. according to the method described in claim 8, it is characterized in that, it is described obtain mobile terminal environmental information, according to described Environmental information determines whether the GPS module can realize positioning, including:
Described in timing acquisition GPS module acquire satellite information, and the satellite information currently obtained with it is upper once obtain defend When star information is identical, the value of pre-set environmental parameter is added 1, the initial value of the environmental parameter is 0;
When the value of the environmental parameter obtained in preset time is more than default environmental parameter threshold value, determine the GPS module without Method realizes positioning.
10. it according to the method described in claim 9, it is characterized in that, further includes:
When the satellite information currently obtained is differed with the upper satellite information once obtained, if the satellite letter currently obtained The intensity value for ceasing Satellite signal is less than preset signal strength threshold value, and the number of satellites in the satellite information currently obtained Less than default value, then the value of the environmental parameter is added 1;Otherwise, it determines the GPS module can realize positioning.
11. a kind of position control device of mobile terminal, which is characterized in that including:
Determining module, for passing through global positioning system using trial based on location-based service LBS in mobile terminal is monitored When GPS module is positioned, determine whether the GPS module can realize positioning;
Degree of dependence value acquisition module is applied for when the GPS module can not realize positioning, obtaining the LBS to described The degree of dependence value of GPS module;
Working state control module, for controlling the working condition of the GPS module according to the degree of dependence value, wherein, institute The working condition for stating GPS module includes closed state and opening;
Wherein, which further includes:
Number statistical module, for being positioned in the LBS monitored in mobile terminal using trial by GPS module When, before determining whether the GPS module can realize positioning, statistics LBS applies the situation that positioning can not be realized in GPS module The number of lower normal operation;
Degree of dependence value determining module is applied for the corresponding current value of the number to be determined as the LBS to the GPS The degree of dependence value of module;
The number statistical module, including:
Number initialization unit, for the value of number to be set as 0;
Duration determination unit, for after LBS is applied and started in the mobile terminal, determining that the LBS is applied in GPS module The duration run in the case of can not realizing positioning;The duration of the operation starts to LBS applications according to LBS applications and is closed it Between time interval determine, alternatively, the duration of the operation according to LBS application start to LBS application be switched to running background Between time interval determine;
Number statistic unit, this for when the duration reaches preset duration, determining LBS application operate to normally Operation, and the value of the number is added 1.
12. according to the devices described in claim 11, which is characterized in that the working state control module is used for:
When the degree of dependence value is more than default degree of dependence threshold value, the GPS module is controlled to enter closed state.
13. device according to claim 12, which is characterized in that the working state control module is additionally operable to:
When the degree of dependence value is less than or equal to the default degree of dependence threshold value, the GPS module is controlled to keep it turned on State.
14. device according to claim 12, which is characterized in that further include:
Time interval judgment module, after entering closed state in the control GPS module, judge current time away from Whether time interval when entering closed state from the GPS module reaches preset period of time, if so, controlling the GPS Module enters opening, and repeats the operation for determining the GPS module and whether can realizing positioning.
15. device according to claim 14, which is characterized in that the preset period of time is by preset rules into Mobile state Adjustment.
16. device according to claim 15, which is characterized in that the preset rules are:If the LBS is applied in movement The preset period of time is then adjusted to the first preset period of time by the front stage operation of terminal;If the LBS is applied in movement The preset period of time is then adjusted to the second preset period of time by the running background of terminal.
17. device according to claim 14, which is characterized in that the time interval judgment module is used for:
Judge current time apart from the GPS module enter closed state when time interval whether reach preset period of time, If so, the GPS module is controlled to enter opening;
If detecting, the motion state of mobile terminal is more than default acceleration of gravity threshold value for acceleration of gravity or detects movement The displacement distance of terminal is more than pre-determined distance threshold value, then repeats whether the determining GPS module can realize positioning Operation.
18. according to the device described in any one of claim 11-17, which is characterized in that the determining module is used for:
When monitoring the LBS in mobile terminal using attempting to be positioned by GPS module, the environment letter of mobile terminal is obtained Breath, and determine whether the GPS module can realize positioning according to the environmental information.
19. device according to claim 18, which is characterized in that the determining module is specifically used for:
When monitoring the LBS in mobile terminal using attempting to be positioned by GPS module, GPS module described in timing acquisition is adopted The satellite information of collection, and when the satellite information currently obtained is identical with the upper satellite information once obtained, it will be pre-set The value of environmental parameter adds 1, and the initial value of the environmental parameter is 0;
When the value of the environmental parameter obtained in preset time is more than default environmental parameter threshold value, determine the GPS module without Method realizes positioning.
20. device according to claim 19, which is characterized in that the determining module is specifically additionally operable to:
When the satellite information currently obtained is differed with the upper satellite information once obtained, if the satellite letter currently obtained The intensity value for ceasing Satellite signal is less than preset signal strength threshold value, and the number of satellites in the satellite information currently obtained Less than default value, then the value of the environmental parameter is added 1;Otherwise, it determines the GPS module can realize positioning.
21. a kind of mobile terminal, which is characterized in that the mobile terminal is integrated with as described in claim 11-20 any one Mobile terminal position control device.
CN201610023215.4A 2016-01-13 2016-01-13 A kind of position control method of mobile terminal, device and mobile terminal Active CN105682198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610023215.4A CN105682198B (en) 2016-01-13 2016-01-13 A kind of position control method of mobile terminal, device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610023215.4A CN105682198B (en) 2016-01-13 2016-01-13 A kind of position control method of mobile terminal, device and mobile terminal

Publications (2)

Publication Number Publication Date
CN105682198A CN105682198A (en) 2016-06-15
CN105682198B true CN105682198B (en) 2018-06-08

Family

ID=56300636

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610023215.4A Active CN105682198B (en) 2016-01-13 2016-01-13 A kind of position control method of mobile terminal, device and mobile terminal

Country Status (1)

Country Link
CN (1) CN105682198B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106546999A (en) * 2016-10-20 2017-03-29 宇龙计算机通信科技(深圳)有限公司 The control method of GPS module, control device and terminal
CN106572442A (en) * 2016-10-28 2017-04-19 宇龙计算机通信科技(深圳)有限公司 Positioning method, positioning device and mobile terminal
CN106973150B (en) 2017-03-16 2019-12-03 Oppo广东移动通信有限公司 Positioning accuracy level adjustment method, device and mobile terminal
CN108093367B (en) * 2017-12-13 2020-01-21 Oppo广东移动通信有限公司 Control method and device based on positioning module, storage medium and mobile terminal
CN108055643A (en) * 2017-12-13 2018-05-18 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device
CN108076428B (en) * 2017-12-13 2020-01-14 Oppo广东移动通信有限公司 Control method and device based on positioning module, storage medium and mobile terminal
CN108008423B (en) * 2017-12-13 2020-01-14 Oppo广东移动通信有限公司 Control method and device based on positioning module, storage medium and mobile terminal
CN108093373B (en) * 2017-12-13 2020-09-15 Oppo广东移动通信有限公司 Positioning control method and device, storage medium and terminal equipment
CN108169775B (en) * 2017-12-13 2020-05-12 Oppo广东移动通信有限公司 Control method and device based on positioning module, storage medium and mobile terminal
CN108093368B (en) * 2017-12-13 2020-07-31 Oppo广东移动通信有限公司 Control method and device based on positioning module, storage medium and mobile terminal
CN108020851B (en) * 2017-12-13 2020-01-14 Oppo广东移动通信有限公司 Control method and device based on positioning module, storage medium and mobile terminal
CN111148031B (en) * 2019-04-24 2022-05-03 广东小天才科技有限公司 Method for saving GPS positioning power consumption and wearable device
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium
CN111953845A (en) * 2020-07-17 2020-11-17 五八有限公司 Vehicle driving positioning method and device, electronic equipment and medium
CN116224387B (en) * 2023-05-09 2023-07-07 深圳市易赛通信技术有限公司 Positioning method, device and equipment of wearable equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103209A (en) * 2009-12-17 2011-06-22 深圳富泰宏精密工业有限公司 GPS automatic electricity-saving system and method
CN102967867A (en) * 2012-11-23 2013-03-13 苏州海客科技有限公司 Power saving system and method for global positioning system (GPS) module in intelligent tour guide software automatic broadcast function
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving method
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN104950318A (en) * 2015-06-29 2015-09-30 北京锤子数码科技有限公司 Power-saving method for GPS (global position system) positioning module and mobile device
US9191897B2 (en) * 2013-03-22 2015-11-17 Qualcomm Incorporated Mobile device power management while providing location services

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102103209A (en) * 2009-12-17 2011-06-22 深圳富泰宏精密工业有限公司 GPS automatic electricity-saving system and method
CN102967867A (en) * 2012-11-23 2013-03-13 苏州海客科技有限公司 Power saving system and method for global positioning system (GPS) module in intelligent tour guide software automatic broadcast function
US9191897B2 (en) * 2013-03-22 2015-11-17 Qualcomm Incorporated Mobile device power management while providing location services
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving method
CN104822133A (en) * 2015-04-22 2015-08-05 广东欧珀移动通信有限公司 Method and device for controlling positioning mode of intelligent terminal
CN104950318A (en) * 2015-06-29 2015-09-30 北京锤子数码科技有限公司 Power-saving method for GPS (global position system) positioning module and mobile device

Also Published As

Publication number Publication date
CN105682198A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN105682198B (en) A kind of position control method of mobile terminal, device and mobile terminal
US8271057B2 (en) Condition-based activation, shut-down and management of applications of mobile devices
CN105682032B (en) A kind of station-keeping mode control method, device and mobile terminal
CN106031261B (en) A kind of localization method, device and mobile terminal
EP1938469B1 (en) Methods, apparatus, systems and computer program products for energy management of short-range communication modules in mobile terminal devices
US20160323934A9 (en) Techniques to manage a mobile device based on network density
CN103458440B (en) Method and mobile terminal based on motion state adjustment WIFI scan frequencies
KR101741406B1 (en) System and method for detecting beacon
González et al. Energy-efficient indoor localization WiFi-fingerprint system: An experimental study
EP3332308A1 (en) Context aware system with multiple power consumption modes
CN107391198A (en) Method for scheduling task and device, computer-readable recording medium, mobile terminal
US20170195840A1 (en) Position information processing method and electronic device
CN109783223A (en) A kind of memory method for cleaning, terminal and computer readable storage medium
Pendão et al. Energy consumption in personal mobile devices sensing applications
JPWO2016175078A1 (en) Electronic device, control method of electronic device, and program
CN106211293A (en) Control method, device and the mobile terminal of a kind of Wireless Fidelity function
CN110006438A (en) Navigation control method, device and computer equipment
CN110062412B (en) Wireless pairing method, system, storage medium and mobile terminal
CN109739404A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN106454728B (en) A kind of network control method of terminal applies, device and terminal
CN109167874A (en) Mobile terminal and monitoring drive the method, apparatus of user action state
Frank et al. Energy-efficient rate-adaptive passive traffic sensing using smartphones
Phan Intelligent energy-efficient triggering of geolocation fix acquisitions based on transitions between activity recognition states
CN111285252B (en) Method and device for controlling use of positioning equipment
CN110979345B (en) Verification method and device of vehicle control system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder