CN106878945B - Optimization method, device and the mobile terminal of positioning system performance - Google Patents

Optimization method, device and the mobile terminal of positioning system performance Download PDF

Info

Publication number
CN106878945B
CN106878945B CN201710057155.2A CN201710057155A CN106878945B CN 106878945 B CN106878945 B CN 106878945B CN 201710057155 A CN201710057155 A CN 201710057155A CN 106878945 B CN106878945 B CN 106878945B
Authority
CN
China
Prior art keywords
application program
positioning
positioning system
state
terminal equipment
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
CN201710057155.2A
Other languages
Chinese (zh)
Other versions
CN106878945A (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co 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 Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710057155.2A priority Critical patent/CN106878945B/en
Publication of CN106878945A publication Critical patent/CN106878945A/en
Application granted granted Critical
Publication of CN106878945B publication Critical patent/CN106878945B/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
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)
  • Navigation (AREA)

Abstract

The invention discloses optimization method, device and the mobile terminals of a kind of positioning system performance, it is related to field of locating technology, main purpose is to solve certain applications without when opening GPS, the unnecessary electricity of consumption is reduced for GPS is opened or closed, the corresponding optimisation strategy different problems of application APP of different align_types.The described method includes: the history for obtaining the application program with positioning function positions statistical data;It extracts in the history positioning statistical data for determining the parameter of application program align_type;The parameter is trained according to default positioning type identification model;The align_type of the application program is determined according to the result after training;Judge whether that the preset opening state optimization for executing the present terminal equipment positioning system is regular according to the align_type that the identification application program is located at use state and the application program in present terminal equipment.The present invention is suitable for the optimization of positioning system performance.

Description

Optimization method, device and the mobile terminal of positioning system performance
Technical field
The present invention relates to a kind of field of locating technology, more particularly to optimization method, the device of a kind of positioning system performance And mobile terminal.
Background technique
As the positioning covering power of global position system GPS (Global Positioning System) is more and more stronger, The application for being positioned and being developed using action trail of the GPS to user is also more and more.Wherein, in order in different terminals Different application realize different functions, GPS needs to carry out real-time tracking to the action trail of user.
Currently, background program can be according to the continual transmission of time interval when unlatching needs positioning function application APP GPS positioning request, will pass through the geographical location information that GPS positioning system obtains user, certain applications are without opening GPS When, GPS positioning is still constantly carried out, so that the unnecessary electricity of terminal device consumption, and the application for different align_types Demand of the APP to GPS positioning is different, when application APP is it is not necessary that the case where opening GPS system or when standby mode, difference is fixed Position type the optimisation strategy that GPS is opened or closed using APP it is also different, therefore, to different positioning functions application APP into Row classification is a problem to be solved.
Summary of the invention
In view of this, the present invention provides optimization method, device and the mobile terminal of a kind of positioning system performance, main purpose It is to solve certain applications without reducing the unnecessary electricity of consumption for GPS is opened or closed, difference when opening GPS The corresponding optimisation strategy different problems of application APP of align_type.
According to the present invention on one side, a kind of optimization method of positioning system performance is provided, comprising:
The history for obtaining the application program with positioning function positions statistical data;
It extracts in the history positioning statistical data for determining the parameter of application program align_type;
The parameter is trained according to default positioning type identification model;
Determine that the align_type of the application program, the align_type include navigation type application according to the result after training Program, non-navigational class application program, short time position application program;
According to identifying that the application program is located at determining for the use state in present terminal equipment and the application program Position type judges whether to execute the preset opening state optimization rule of the present terminal equipment positioning system.
According to the present invention on the other hand, a kind of optimization device of positioning system performance is provided, comprising:
Acquiring unit, the history for obtaining the application program with positioning function position statistical data;
Extraction unit, for extracting in the history positioning statistical data for determining the ginseng of application program align_type Number;
Training unit, for being trained according to default positioning type identification model to the parameter;
Determination unit, for determining the align_type of the application program, the align_type according to the result after training Application program is positioned including navigation type application program, non-navigational class application program, short time;
First judging unit, for being located at the use state in present terminal equipment according to the identification application program, with And the align_type of the application program judges whether that the preset opening state for executing the present terminal equipment positioning system is excellent Change rule.
The third aspect, the present invention provides a kind of mobile terminal, which has fixed in the above-mentioned first aspect of realization The function of the optimization behavior of position system performance.The function can also be executed corresponding by hardware realization by hardware Software realization.The hardware or software include one or more modules corresponding with above-mentioned function.
It include processor and memory in the structure of mobile terminal in a possible design, the memory is used for Storage supports R-T unit to execute the program of the above method, the processor is configured to storing in the memory for executing Program.The mobile terminal apparatus can also include communication interface, logical for mobile terminal and other equipment or communication network Letter.
Fourth aspect, the present invention provides a kind of computer storage mediums, for being stored as above-mentioned mobile terminal apparatus institute Computer software instructions, it includes for executing program designed by the optimization that above-mentioned aspect is positioning system performance.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention is at least had the advantage that
Optimization method, device and the mobile terminal of a kind of positioning system performance provided by the invention, work as part with existing It applies and is compared without in the case where opening GPS, still constantly carrying out GPS positioning, the present invention passes through to positioning function The align_type of application program is determined as navigation type application program, non-navigational class application program, short time positioning application program, so Need are determined whether according to the use state of navigation type application program, non-navigational class application program, short time positioning application program afterwards Open or close to the lasting application program for opening GPS positioning system operation, realization is the unnecessary unlatching GPS the case where Under, different align_types correspond to different optimisation strategies, to close the positioning function of GPS, reduce power consumption, save electric energy.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of optimization method flow diagram of positioning system performance provided in an embodiment of the present invention;
Fig. 2 shows a kind of GPS request controlled state flow diagrams provided in an embodiment of the present invention;
Fig. 3 shows a kind of optimization program frame schematic diagram of positioning system performance provided in an embodiment of the present invention;
Fig. 4 shows the optimization method flow diagram of another positioning system performance provided in an embodiment of the present invention;
Fig. 5 shows a kind of flow diagram for judging present terminal equipment and whether moving provided in an embodiment of the present invention;
Fig. 6 shows a kind of flow diagram for realizing the optimization of GPS performance provided in an embodiment of the present invention;
Fig. 7 shows a kind of optimization apparatus structure schematic diagram of positioning system performance provided in an embodiment of the present invention;
Fig. 8 shows the optimization apparatus structure schematic diagram of another positioning system performance provided in an embodiment of the present invention;
Fig. 9 shows a kind of entity structure schematic diagram of mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of optimization methods of positioning system performance, as shown in Figure 1, which comprises
101, the history for obtaining the application program with positioning function positions statistical data.
Wherein, the application program with positioning function is that can carry out tracking and positioning by opening global position system GPS The application program of present terminal device geographical location, e.g., vehicle mounted guidance, map etc., the embodiment of the present invention is not specifically limited, institute State history positioning statistical data include there is the application program of positioning function to acquire when being positioned single positioning initiation number, Single positions number of success etc., and specific data are as shown in table 1.
Table 1
It should be noted that wrapping the installation kit title of entitled application APP, TOP mode is that APP is in desktop display shape State, the positioning in upper table is successfully that present terminal equipment is located outside, and GPS can receive the position signal of satellite transmission, on Positioning in table is unsuccessfully in present terminal device location room, and GPS receiver is less than the location information number that satellite is sent, the hang-up To hang up GPS, specific method can send Location Request to location server for application program for request, Location server by Location Request carry out by column store, to be managed to request, Location Request according to management side Normal direction GPS sends starting request, and one switch of setting, GPS is hung up as passing through this in sending starting request process A switch intercepts the starting request of transmission, to realize stopping starting GPS positioning kinetic energy.Specific GPS request management shape State flow chart as shown in Fig. 2,
For example, Fig. 3 is the program frame that GPS sends request according to use state, location server After LocationManagerService receives request, start the tracking to newly requesting to QikuLRManager, if in short-term Between class APP then directly hang up, specific procedure is as shown in figure 3, the embodiment of the present invention repeats no more.
102, it extracts in the history positioning statistical data for determining the parameter of application program align_type.
Wherein, the parameter of the application program align_type is used to determine the align_type of application program, can be assembly Function time ratio, bright screen open positioning time accounting, foreground positions successfully time accounting etc., and the embodiment of the present invention does not do specific limit It is fixed.
It should be noted that determining that the parameter of different align_types may be the same or different.Journey is applied by determining The parameter of sequence align_type is trained the corresponding align_type of the program that is applied to parameter will pass through.
103, the parameter is trained according to default positioning type identification model.
Wherein, align_type different to different parameter configurations in the default positioning type identification model, which identifies, calculates Method, the default positioning type identification model are a series of identifications public affairs for positioning statistical data parameter logistic by history and obtaining The ratio between parameter can be calculated in formula, this Formula Series, can specifically be preset by technical staff, this hair Bright embodiment is not specifically limited, and by the value range of ratio, finally obtains the align_type of current APP, a series of formula May include: total success time ratio:
MOverallSuccRate=(mLocationSuccTime)/(mLocationTotalTime);Bright screen is opened fixed Position time accounting: mScOnLocationRate=mScOnLocationTotalTime/mLocationTotalT ime;
APP is the use time scale of TOP mode: mOnTopLocationRate= (mScOnTopLocationTime)/(mLocationTotalTime);
Foreground positions successfully time accounting: mForeGroundSuccRate=(mForeGndLocationSuccTime)/ (mLocationSuccTime);
Bright screen foreground positions successfully time accounting: mScOnForeGroundSuccRate= (mScOnForeGndLocationSuccTime)/(mLocationSuccTime);
APP is TOP Pattern localization success accounting: mOnTopSuccRate=(mScOnTopLocationSuccTime)/ (mLocationSuccTime);
Blank screen Pattern localization success rate:
MScOffSuccRate=(mLocationSuccTime-mScOnLocationSuccTime)/ (mLocationTotalTime-mScOnLocationTotalTime);
Backstage success localization ratio: mBackGroundSuccRate=(mLocationSuccTime- mForeGndLocationSuccTime)/(mLocationTotalTime-mForeGndLocationTotalTime);
Position successfully average every 5 minutes moving distances:
MAvgTravelDistance=(mScOnTravelDistance+mScOffTravelDistance)/ (mLocationSuccTime/(5*60));
Blank screen positions the 5 minutes moving distances that are successfully averaged:
MScOffAvgTravelDistance=(mScOffTravelDistance)/((mLocationSuccTime- mScOnLocationSuccTime)/(5*60));
Bright screen positions the 5 minutes moving distances that are successfully averaged:
MScOnAvgTravelDistance=(mScOnTravelDistance)/(mScOnLocationSuccTime/ (5*60))。
The above content only does explanation of the embodiment of the present invention, is not specifically limited.
It should be noted that available current APP belongs to after being trained study according to default positioning type identification model In which kind of align_type, the different open state principles of optimality can be preset for different align_types, the present invention is real Example is applied to be not specifically limited.
For example, the distance range that present terminal equipment is mobile under different scenes can be calculated by these formula, when Greater than 12 kilometers, for driving or by bus, scene, correspondence averagely move 1000m in 5 minutes;It is to cycle scene when being greater than 6 kilometers, it is right It answers 5 minutes and averagely moves 500m;When running, mixing about 5 kilometers of scenes per hour of walking, 416m is averagely moved within corresponding 5 minutes;When Walking is walked about 3.5 kilometers of scenes per hour, corresponding 5 minutes mobile 291m.
For another example, it when identifying vehicle mounted guidance APP, needs to carry out parameter the substitution of following several formula, then carries out true Determine type, always succeeds time ratio (mOverallSuccRate) greater than 40%;Bright screen opens positioning time accounting (mScOnLocationRate) it is greater than 30%;Position successfully be averaged 5 minutes moving distance (mAvgTravelDistance) be greater than 500;(foreground positions successfully time accounting and is greater than 50%) or (TOP Pattern localization success time accounting is greater than 20%), according to public affairs The result correspondence that formula obtains can be mOverallSuccRate > 50% (necessary condition), mScOnLocationRate > 50% (necessary condition), 5 minutes are average mobile: mAvgTravelDistance > 500 (necessary condition) combines alternative condition: MScOnForeGroundSuccRate > 50% or mOnTopSuccRate > 20%.It can also be another parameter and algorithm pair It should be related to, such as total success time ratio (mOverallSuccRate) is greater than 70%;Position the 5 minutes moving distances that are successfully averaged (mAvgTravelDistance) it is greater than 1500, corresponding algorithm: mOverallSuccRate > 70% (necessary condition), 5 minutes MAvgTravelDistance > 1500 (necessary condition) is averagely moved, as long as meeting one kind of above-mentioned algorithm, can determine and work as The align_type of preceding APP.
104, the align_type of the application program is determined according to the result after training.
Wherein, the align_type includes navigation type application program, non-navigational class application program, short time positioning using journey Sequence, the navigation type application program are described non-to lead to need the data generated by GPS to provide the APP of navigation Service for user Boat class application program is needs the data generated by GPS to provide the APP of track record service for user, in general, except navigation Other of the application program of class be with the APP of GPS positioning are non-navigational class application program, and the short time positions application program For according to longer time interval to GPS initiate the short time Location Request APP, generally comprise most location-based service The APP of LBS.
It should be noted that when dividing align_type, can according to first judging whether to belong to navigation type application system, if Belong to, then execute the corresponding optimisation strategy of navigation type, if being not belonging to, continues to determine whether to belong to non-navigational class application system, if Belong to, then execute the corresponding optimisation strategy of non-navigational, if being not belonging to, then judge whether to belong to short time class application system, if belonging to In then executing the corresponding optimisation strategy of short time class and directly hang up GPS if being not belonging to, APP no longer executes positioning operation. By divide application program align_type, judge whether the GPS of APP needs to hang up according to align_type, realize no matter Star or positioning successful pattern are being searched, the GPS request of all APP is directly hung up, pause searches star, can save the electric current of about 70mA.
105, use state and the application program in present terminal equipment are located at according to the identification application program Align_type judge whether to execute the preset opening state optimization rule of the present terminal equipment positioning system.
Wherein, the preset opening state optimization rule includes the positioning corresponding from different use states of different align_types System optimization strategy, the use state may include the wifi connection status of present terminal equipment, positioning system positioning states, Application program foreground or backstage execute state, screen state, change in location state etc., and the embodiment of the present invention is not specifically limited, The preset opening state optimization rule can be different according to the corresponding different use state of align_type to current end GPS in end equipment carries out pending operation or opening operation.
It should be noted that the use state of present terminal equipment was changed with time or geographical location, to making It to be timely updated with the identification of state, the APP of an align_type can correspond to out a variety of use states, and a variety of use states can To map out different GPS pending operation or opening operation.
For example, when obtain currently running APP by default positioning type identification model training as navigation type class align_type, The use state of identification is blank screen, can carry out pending operation to the GPS of present terminal equipment, optimize it, reduce electricity Amount consumption.For another example, different optimisation strategies can be corresponded to according to the align_type of APP and use state, as shown in table 2.
Table 2
If 106, the present terminal equipment executes the preset opening state optimization rule of positioning system, according to described pre- It sets the open state principle of optimality and executes positioning system corresponding with the align_type of the use state and the application program Open or close operation.
Wherein, the preset opening state optimization rule includes being divided into navigation type application program, non-navigational class application journey The align_type positioning system optimisation strategy corresponding from different use states of sequence, short time positioning application program, the positioning The opening operation of system is to detect the use state of present terminal equipment again in the case where current GPS is in pending operation to need GPS It after positioning, reopens and executes GPS positioning operation, the shutoff operation of the positioning system is to be in normal positioning in current GPS Under operation, current GPS is set no longer to execute positioning operation according to the align_type of APP and the corresponding principle of optimality of use state, i.e., GPS is hung up.
It should be noted that generally, after the align_type of APP determines, align_type is constant, but use state meeting Change with the movement of time or present terminal equipment, so being held in the constantly use state of identification present terminal equipment The the opening or closing to operate of corresponding with the use state and align_type positioning system of row can also change.
The optimization method of a kind of positioning system performance provided by the invention, with existing when certain applications are without opening In the case where GPS, still constantly carries out GPS positioning and compare, the present invention passes through the positioning to the application program with positioning function Type is determined as navigation type application program, non-navigational class application program, short time positioning application program, is then answered according to navigation type It is determined the need for the use state of program, non-navigational class application program, short time positioning application program to lasting unlatching GPS The application program of positioning system carries out opening or closing operation, realizes different align_types in the case where unnecessary unlatching GPS Corresponding different optimisation strategy reduces power consumption to close the positioning function of GPS, saves electric energy.
The embodiment of the invention provides the optimization methods of another positioning system performance, as shown in figure 4, the method packet It includes:
201, there is the location data under the application program open state of positioning function according to prefixed time interval statistics, and It is stored in preset memory locations.
Wherein, the prefixed time interval can be the preset time interval of technical staff, such as 10 minutes, 20 points Clock etc., the embodiment of the present invention is not specifically limited.The location data is generated data executing positioning operation for APP, Such as APP packet name, single positioning initiation number, single positioning number of success, last time single position successfully time etc., the present invention Embodiment is not specifically limited.Position or buffer memory can be locally stored for present terminal equipment in the preset memory locations Position can be updated or be uploaded to cloud according to time interval when storing the overabundance of data in preset memory locations Storage location, the embodiment of the present invention are not specifically limited.
It should be noted that statistics location data method can use it is a it is light-duty, abide by atomicity, consistency, The database SQLite of isolation, persistent data base management system, it is included in the relatively small library C.It occupies money Source is very low, in embedded device, may only need the memory of several hundred K.By statistics location data and it is stored in default Storage location, directly to extract useful data from preset memory locations when carrying out confirmation align_type to APP.
202, there is the application program of positioning function whether there is in preset navigation type white list for judgement.
Wherein, the preset navigation type white list include technical staff pre-save belong to navigation type application program, For directly determining the align_type of application program, the preset navigation type white list is storable in local memory, can also To store in the buffer.By judge current application program whether there is in white list, to directly determine application program Align_type be navigation type application program.
For example, being stored with vehicle mounted guidance APP1, vehicle mounted guidance APP2, running APP in preset navigation type white list, then sentence The disconnected current application program vehicle mounted guidance APP2 with positioning function whether there is in preset navigation type white list.
203, if it does not exist in preset navigation type white list, then the history with the application program of positioning function is obtained Position statistical data.
This step is identical as method described in step 101 described in Fig. 1, and which is not described herein again.
The step arranged side by side with step 203: if the application program with positioning function is present in preset navigation type white list In, then directly confirm that the application program is navigation type application program.
For the embodiment of the present invention, if being directly confirmed as navigation type application program, step 207 is directly executed.
204, it extracts in the history positioning statistical data for determining the parameter of application program align_type.
This step is identical as method described in step 102 described in Fig. 1, and which is not described herein again.
205, the parameter is trained according to default positioning type identification model.
This step is identical as method described in step 103 described in Fig. 1, and which is not described herein again.
206, the align_type of the application program is determined according to the result after training.
This step is identical as method described in step 104 described in Fig. 1, and which is not described herein again.
For the embodiment of the present invention, before step 206 further include: whether the result after training of judgement draws in preset kind Divide in range.
Wherein, the preset kind divide range can be divided into one it is a wide range of and this it is a wide range of in 3 small models It encloses, it is a wide range of for judging whether to belong to navigation type application program, non-navigational class application program, short time positioning application program, Small range is used to judge to particularly belong to the application program of which align_type.
It should be noted that the algorithm of the application program of different align_types can correspond to multiple division ranges, specifically take Certainly in the parameter attribute of different APP, such as navigation type application program includes that vehicle mounted guidance and running, foot path record APP, this The corresponding division range of navigation type align_type of a little application programs is different.In addition, the align_type of APP is identified when starting May be not accurate enough, because of the secure mechanism used of optimisation strategy, the use of user is not influenced, in use process or constantly Judgement, longer using after the time, type decision will become accurate.
For the embodiment of the present invention, step 206 is specifically as follows: if the result after training is in preset kind and divides range It is interior, then range is divided according to preset kind determine that the align_type of the application program is navigation type application program, non-navigational class One of application program, short time positioning application program.
For example, the result after training judges whether in following range, total success time ratio is greater than 40% (necessary condition); It positions successfully average every 5 minutes moving distances and is averagely greater than 120m (necessary condition);Blank screen Pattern localization success rate is greater than 30% (necessary condition) is if so, confirm that current APP is navigation type application program according to Type division range.
For another example, the result after training judges whether in following range, and total success time ratio is greater than 40% (necessary condition); It positions successfully average every 5 minutes moving distances and is averagely greater than 60m (necessary condition);Blank screen Pattern localization success rate is greater than 30%, Or bright screen Pattern localization success rate is greater than 45%;Or the bright screen position success rate in foreground is greater than 30%) if so, according to Type division model It encloses and confirms that current APP is navigation type application program.
207, the use state for monitoring present terminal equipment obtains wifi connection status, positioning system positioning states, application Program foreground or backstage execute state, screen state, change in location state.
Wherein, the use state of the monitoring present terminal equipment can be according to the pre-set time interval of technical staff It is monitored, such as 1 minute, 3 minutes, the situation of change of the use state of present terminal equipment can also be monitored, this Inventive embodiments are not specifically limited.The wifi connection status includes that wifi is under connection status or wifi is in not connected Under state, the positioning system positioning states include positioning successfully or positioning failure, and the application program foreground or backstage execute State includes front stage operation or running background, and the screen state includes blank screen or bright screen, and the change in location state included It goes to the position of variation in 5 minutes or the position of variation in 30 minutes, the embodiment of the present invention is not specifically limited in the past.It is used by monitoring State optimizes strategy to the application program of present terminal equipment will pass through identification use state and align_type.
It should be noted that the calculating of moving distance cannot only calculate beginning ending, user may move in pitch of the laps, i.e., often 90s calculates user's displacement.Such as, moving distance calculates function: loc.distanceTo (lastLoc) ActivityManager.java (src frameworks base core java android app) sentencing in front stage operation Broken strip part public static final int IMPORTANCE_FOREGROUND=100;public static final Int IMPORTANCE_FOREGROUND_SERVICE=125;Blank screen foreground public static final int IMPORTANCE_TOP_SLEEPING=150;Wicket runs public static final int IMPORTANCE_ VISIBLE=200.
For example, when the APP generally installed operates in foreground, processState=2 cannot reach 0 or 1 priority. Special applications modify the priority of oneself, and after blank screen, highest can achieve 3 rank.Such as video application be exactly in this way, Importance is always 100 (processState≤3 just corresponding importance=100).Therefore available processState ≤ 2 judge to apply the state (TopMode) in front end, not in front end when being equal to 3.
208a, when the align_type of the application system is the short time to position application program, according to identifying the application Program is located at the use state in present terminal equipment, judges whether the preset short time for executing present terminal equipment positioning system Positioning system optimisation strategy.
Wherein, the preset short time positioning system optimisation strategy is to be set according to short time class application program and present terminal For the corresponding hang-up or opening operation executed to GPS of use state, concrete operations strategy can be pre- advanced according to technical staff Row setting, the embodiment of the present invention are not specifically limited, for example, the align_type of current APP is short time class application program, it is preset Short time positioning system optimisation strategy directly executes pending operation to GPS, i.e., ought recognize to be under non-TOP mode as APP Present terminal equipment use state is that APP is under non-TOP mode, then directly executes pending operation to GPS.
For the embodiment of the present invention, after step 208a can be with are as follows: if not executing present terminal equipment positioning system Preset short time positioning system optimisation strategy, then return step 207.
For the embodiment of the present invention, with step 208a step 208b arranged side by side, when the align_type of the application system be When navigation type application program or non-navigational class application program, judge whether to hold according to whether present terminal equipment is in moving condition The preset navigation positioning system optimisation strategy or preset non-navigational positioning system optimisation strategy of terminal device positioning system before the trade.
Wherein, the preset navigation positioning system optimisation strategy is to be made according to navigation type application program and present terminal equipment With the corresponding hang-up or opening operation executed to GPS of state, concrete operations strategy can be set in advance according to technical staff Fixed, the embodiment of the present invention is not specifically limited, and the preset non-navigational positioning system optimisation strategy is according to non-navigational class application Program and the corresponding hang-up or opening operation executed to GPS of present terminal equipment use state, concrete operations strategy can root It is set in advance according to technical staff, the embodiment of the present invention is not specifically limited.
It should be noted that the judgement of moving condition specifically judges whether appearance position variation within a certain period of time, also need The duration that moving condition is in APP, the duration run under blank screen, the duration run under TOP mode and GPS, which is in, positions the progress comprehensive descision such as successful duration, as shown in Figure 5.
For the embodiment of the present invention, step 208b is specifically as follows: when the application system is navigation type application program, State, screen state, change in location state are executed according to the positioning system positioning states, application program foreground or backstage, with And default first movement rule judges whether present terminal equipment is in moving condition;Whether sentenced in moving condition according to described The disconnected preset navigation positioning system optimisation strategy for whether executing present terminal equipment positioning system.
Wherein, the first movement rule can be to judge whether there is mobile rule, and technical staff sets in advance Determine, such as whether APP runs in blank screen more than 5 minutes, if then judging whether GPS positions success in 30s, if success Judge whether nearest 5 minutes positions movement is less than 40m and whether the average speed of half an hour is less than 20m/ minutes in the past, if then Judge whether the average speed of half an hour is less than 20m/ minutes, if then if GPS positioning fails in 30s for moving condition For moving condition, it is on the contrary then not move.As shown in Figure 5.
For the embodiment of the present invention, step 208b is specifically as follows: when the application system is non-navigational class application program When, state, screen state, change in location state are executed according to the positioning system positioning states, application program foreground or backstage, And default second movement rule judges whether present terminal equipment is in moving condition;Whether moving condition is according to described Judge whether the preset non-navigational positioning system optimisation strategy of execution present terminal equipment positioning system.
Wherein, second movement rule can be to judge whether there is mobile rule, and technical staff sets in advance Determine, such as whether APP is run under non-TOP state more than 3 minutes, if then judging whether GPS positions success in 30s, if It is successful then judge that nearest 5 minutes positions are mobile and whether be less than 40m and whether the average speed of half an hour is less than 20m/ minutes in the past, If being then moving condition, if the GPS positioning failure in 30s, judges whether the average speed of half an hour is less than 20m/ minutes, If then be moving condition, on the contrary it is then be do not move.As shown in Figure 5.
For the embodiment of the present invention, before step 208b further include: when detecting that the present terminal equipment is in charging Mode state then interrupts the Location Request for sending positioning system.
Wherein, the Location Request for interrupting transmission positioning system is that the GPS of present terminal equipment is executed pending operation.
It should be noted that when detecting whether present terminal equipment in charge mode, therefore, to assure that present terminal is set The align_type of standby APP is navigation type application program or non-navigational class application program.
For example, the align_type of the APP of present terminal equipment is navigation type application program, when detecting present terminal equipment When in charge mode, illustrates that electricity is in a large amount of charged states lower than the electricity or battery of normal use, then directly will GPS is hung up.By the way that in charging mode, directly hang-up GPS is avoided in the charge state, a large amount of power consumptions of the unlatching of GPS.
For the embodiment of the present invention, if step 209a after step 208b, being in moving condition, according to the application Program foreground or backstage execute state, execute and send positioning system Location Request, and continue to monitor the use of present terminal equipment State.
For example, present terminal equipment is in moving condition, and state is executed in foreground, continues to send Location Request, hold The operation of row GPS positioning, and continue to monitor the use state of present terminal equipment APP.
For the embodiment of the present invention, if step 209b after step 208b, being not at moving condition, answered according to State, which is executed, with program foreground or backstage executes the Location Request that interruption sends positioning system.
For example, present terminal equipment is not at moving condition, and state is executed in backstage, directly execution GPS hangs up behaviour Make.
It should be noted that can be pre- advanced according to technical staff according to the strategy that foreground or backstage execute corresponding operation Row setting, the embodiment of the present invention are not specifically limited.
For the embodiment of the present invention, step 209c after step 208a can be with are as follows: if executing the positioning of present terminal equipment The preset short time positioning system optimisation strategy of system, then according to the preset short time positioning system optimisation strategy execution and institute That states use state and the short time corresponding positioning system of positioning application program opens or closes operation.Wherein, described short The corresponding positioning system of time application program opens or closes operation and executes shape according to the application program front and back in use state State, screen state are judged that the embodiment of the present invention is not specifically limited.For example, the corresponding terminal of short time application program is set Standby use state is non-TOP, directly hangs up GPS.It is by positioning application program judgement according to use state and short time It is no to execute preset short time positioning system optimisation strategy, to execute the optimization plan of short time positioning system according to use state Slightly, to reduce resource loss.
For the embodiment of the present invention, step 2010 after step 209b judges whether according to the wifi connection status Present terminal equipment is detected again according to prefixed time interval.
Wherein, described to be detected as whether detection present terminal equipment meets unlatching GPS positioning operating condition again.It is described When wifi connection status includes that wifi is in connection, GPS is in suspended state and wifi is in when being not connected with, and GPS, which is in, to be hung The state of rising, the corresponding condition detected again of different wifi connection status is different, and the embodiment of the present invention is not specifically limited, such as Shown in Fig. 6.
It should be noted that detection can be carried out according to preset time interval, time interval can be set as elder generation Long form after short, such as with 22234566 ... the interval of the number of minutes repeats to detect, and the embodiment of the present invention is not specifically limited.It is logical It crosses and detects again, to be monitored in real time to use state, when meeting unlatching or hanging up corresponding state, immediately to GPS Carry out unlatching or pending operation.
For the embodiment of the present invention, step 2010 is specifically as follows: with identifying in the wifi connection status wifi MAC The state of location;If wifi MAC Address variation, judge whether in the case where wifi is not connected to state to present terminal equipment by It is detected again according to prefixed time interval;If the wifi MAC Address is constant, wifi is monitored under wifi connection status Connection status, and judge whether to examine present terminal equipment again according to prefixed time interval according to the monitoring result It surveys.
Wherein, the state of wifi MAC Address can identify that wifi is connection status in the identification wifi connection status Or not-connected status, the wifi MAC Address variation, illustrates that present terminal equipment is in moving condition, the wifi MAC Address does not change, and illustrates that present terminal equipment is in non-moving condition, as shown in Figure 6.
It should be noted that if the wifi MAC Address is constant, then enters GPS under wifi connection status and hang up, then After detecting wifi disconnection or MAC Address variation, then GPS hang-up terminates under wifi connection status, under wifi not-connected status Otherwise GPS Suspend Mode continues GPS under wifi connection status and hangs up.
For the embodiment of the present invention, if step 211a after step 2010, detecting again, according to cell ID The reading situation of Cell ID and the positioning system positioning states, the change in location state, judge present terminal equipment Whether execution send positioning system Location Request.
Wherein, whether the reading situation, positioning system positioning states, change in location state are corresponding executes transmission positioning system The strategy of the Location Request of system can be set in advance by technical staff, for example, reading Cell ID, retransmit 15s After Location Request, the data of newest positioning are reacquired, judge that GPS positioning from unsuccessfully becoming success, or judges that shift position becomes Change and whether change more than 40m or Cell ID, then judge whether to execute GPS positioning operation according to the above results or examines again It surveys, as shown in Figure 6.By the reading to Cell ID, the condition for the Location Request for sending positioning system is filled, so that More accurately send the Location Request of GPS.
For the embodiment of the present invention, step 211a is specifically as follows: judging whether to read Cell ID;If reading Cell ID judges present terminal then according to updated Cell ID and the positioning system positioning states, the change in location state Whether equipment executes the Location Request for sending positioning system;If not reading Cell ID, according to preset of short duration positioning strategy and institute Positioning system positioning states, the change in location state are stated, judges whether present terminal equipment executes and sends determining for positioning system Position request.
Wherein, the preset of short duration positioning strategy is to send GPS positioning request according to the time interval of short time, between the time Every that can be 15s etc., the embodiment of the present invention be not specifically limited.
For example, judging only to be judged with Cell ID, then newest Cell ID is read, judges GPS positioning from unsuccessfully becoming Success, or judge whether shift position variation changes more than 40m or Cell ID, then judge whether to execute according to the above results GPS positioning is operated or is detected again, as shown in Figure 6.
For the embodiment of the present invention, step 212 after step 211a can be with are as follows: if present terminal equipment execute send it is fixed The Location Request of position system, then send Location Request.
It can be with for the embodiment of the present invention, after step 211a are as follows: if present terminal equipment does not execute transmission positioning system The Location Request of system, then return step 210.
For the embodiment of the present invention, if the step 211b arranged side by side with step 211a, not detecting again, according to the wifi Connection status executes the Location Request interrupted and send positioning system.
For the embodiment of the present invention, specific application scenarios can be as described below, but not limited to this, comprising: according to pre- If the history that time interval counts APP positions statistical data, according to the parameter of application program align_type, according to default positioning class Type identification model is trained parameter, and it is larger (mOverallSuccRate): greater than 40% to meet total success time ratio;It is bright It is high (mScOnLocationRate): greater than 30% that screen opens positioning time accounting;Position the 5 minutes moving distances that are successfully averaged (mAvgTravelDistance): greater than 500;(it is high that foreground positions successfully time accounting, it is less with blank screen navigation: greater than 50%), then confirm that the APP align_type in present terminal equipment is navigation type application system, monitoring present terminal equipment Wifi connection status, positioning system positioning states, application program foreground or backstage execute state, screen state, change in location shape State is respectively as follows: not connected wifi, positions in 0.5 minute and successfully records, and APP is in non-TOP state, and blank screen, past 5 minutes is always Change in location≤40m, and every 5 minutes average displacement < 100m in 30 minutes in the past, execute and hang up GPS operation, corresponding excellent Change strategy can be subsequent with 22234566 ..., and the interval of the number of minutes repeats monitoring change in location, 15s is scanned every time, if continuously 6 positioning are unsuccessful, and subsequent Cell is constant, then do not restart positioning, if bright screen, recovers immediately navigation feature, if position Variation, re-starts lasting 5 minutes change in displacement monitoring, other corresponding use states of navigation type application program are corresponding excellent Change strategy to be referred to shown in table 3.
Table 3
The optimization method of another kind positioning system performance provided by the invention, the present invention is by first judging current application program Whether it is navigation type application program in white list, the location data of the APP in present terminal equipment is counted if not, root Whether the align_type that APP is determined according to the parameter of determining application program align_type is navigation type application program, non-navigational class Application program, short time position application program, if not GPS is directly hung up, if navigation type application program, non-navigational class application One kind of program, short time positioning application program, then position shape according to the wifi connection status of present terminal equipment, positioning system State, application program foreground or backstage execute state, screen state, change in location state, execute with navigation type application program, non-lead The corresponding preset opening state optimization rule of class application program, the short time positioning application program of navigating, is realized according to navigation type Application program, non-navigational class application program, the corresponding use state of short time positioning application program and optimisation strategy, to drive It moves in the case where unnecessary unlatching GPS, closes the positioning function of GPS, reduce power consumption, save power consumption.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of positioning system performances Optimization device, as shown in fig. 7, described device includes: acquiring unit 31, extraction unit 32, training unit 33, determination unit 34, the first judging unit 35, execution unit 36.
Acquiring unit 31, the history for obtaining the application program with positioning function position statistical data;Acquiring unit 31 position statistical data for the history of application program of the optimization device execution acquisition with positioning function of positioning system performance Functional module.
Extraction unit 32, for extracting in the history positioning statistical data for determining the ginseng of application program align_type Number;Extraction unit 32 is executed to extract for the optimization device of positioning system performance and be answered in the history positioning statistical data for determining With the functional module of the parameter of program align_type.
Training unit 33, for being trained according to default positioning type identification model to the parameter;Training unit 33 The function being trained according to default positioning type identification model to the parameter is executed for the optimization device of positioning system performance Module.
Determination unit 34, for determining the align_type of the application program, the positioning class according to the result after training Type includes navigation type application program, non-navigational class application program, short time positioning application program;Determination unit 34 is positioning system The optimization device of performance executes the functional module that the align_type of the application program is determined according to the result after training.
First judging unit 35, for being located at the use state in present terminal equipment according to the identification application program, And the align_type of the application program judges whether to execute the preset opening state of the present terminal equipment positioning system The principle of optimality;First judging unit 35, which executes to be located at according to the identification application program for the optimization device of positioning system performance, works as The align_type of use state and the application program in preceding terminal device judges whether to execute the present terminal equipment The functional module of the preset opening state optimization rule of positioning system.
Execution unit 36, if executing the preset opening state optimization rule of positioning system for the present terminal equipment, It is then executed according to the preset opening state optimization rule corresponding with the align_type of the use state and the application program Positioning system open or close operation, the preset opening state optimization rule include be divided into navigation type application program, The align_type positioning system optimization corresponding from different use states of non-navigational class application program, short time positioning application program Strategy.If the optimization device that execution unit 36 is positioning system performance executes the present terminal equipment and executes the pre- of positioning system The open state principle of optimality is set, then is executed and the use state and the application according to the preset opening state optimization rule The functional module for opening or closing operation of the corresponding positioning system of the align_type of program.
The optimization device of a kind of positioning system performance provided by the invention, with existing when certain applications are without opening In the case where GPS, still constantly carries out GPS positioning and compare, the present invention passes through the positioning to the application program with positioning function Type is determined as navigation type application program, non-navigational class application program, short time positioning application program, is then answered according to navigation type It is determined the need for the use state of program, non-navigational class application program, short time positioning application program to lasting unlatching GPS The application program of positioning system carries out opening or closing operation, realizes different align_types in the case where unnecessary unlatching GPS Corresponding different optimisation strategy reduces power consumption to close the positioning function of GPS, saves electric energy.
Further, the specific implementation as Fig. 4 the method, the embodiment of the invention provides another positioning systems The optimization device of energy, as shown in figure 8, described device includes: acquiring unit 41, extraction unit 42, training unit 43, determination unit 44, the first judging unit 45, execution unit 46, second judgment unit 47, third judging unit 48, monitoring unit 49, statistics are single Member 410.
Acquiring unit 41, the history for obtaining the application program with positioning function position statistical data;
Extraction unit 42, for extracting in the history positioning statistical data for determining the ginseng of application program align_type Number;
Training unit 43, for being trained according to default positioning type identification model to the parameter;
Determination unit 44, for determining the align_type of the application program, the positioning class according to the result after training Type includes navigation type application program, non-navigational class application program, short time positioning application program;
First judging unit 45, for being located at the use state in present terminal equipment according to the identification application program, And the align_type of the application program judges whether to execute the preset opening state of the present terminal equipment positioning system The principle of optimality;
Execution unit 46, if executing the preset opening state optimization rule of positioning system for the present terminal equipment, It is then executed according to the preset opening state optimization rule corresponding with the align_type of the use state and the application program Positioning system open or close operation, the preset opening state optimization rule include be divided into navigation type application program, The align_type positioning system optimization corresponding from different use states of non-navigational class application program, short time positioning application program Strategy.
Further, in order to the detailed division of different align_types progress, described device further include: second judgment unit 47,
The second judgment unit 47 divides in range for whether the result after training of judgement to be in preset kind;
The determination unit 44 divides in range if being in preset kind specifically for the result after training, according to pre- If Type division range determine the align_type of the application program be navigation type application program, it is non-navigational class application program, short One of timi requirement application program.
Further, by judge current application program whether there is in white list, to directly determine application program Align_type be navigation type application program, described device further include: third judging unit 48,
The third judging unit 48, for judging that the application program with positioning function whether there is in preset navigation type In type white list;
The confirmation unit 44, if being present in the white name of preset navigation type specifically for the application program with positioning function Dan Zhong then directly confirms that the application program is navigation type application program;
The acquiring unit 41 is specifically used for if it does not exist in preset navigation type white list, then obtaining has positioning The history of the application program of function positions statistical data.
Further, excellent in order to be carried out by identification use state and align_type to the application program of present terminal equipment Change strategy, described device further include:
It is fixed to obtain wifi connection status, positioning system for monitoring the use state of present terminal equipment for monitoring unit 49 Position state, application program foreground or backstage execute state, screen state, change in location state.Monitoring unit 49 is positioning system The optimization device of performance executes the use state of monitoring present terminal equipment, obtains wifi connection status, positioning system positioning shape State, application program foreground or backstage execute the functional module of state, screen state, change in location state.
Specifically, described in order to realize that the application program of different align_types corresponds to different positioning system optimisation strategies First judging unit 45 includes:
First judgment module 4501, for when the align_type of the application system be the short time position application program when, It is located at the use state in present terminal equipment according to the identification application program, judges whether to execute the positioning of present terminal equipment The preset short time positioning system optimisation strategy of system;Or
Second judgment module 4502 is navigation type application program or non-navigational for the align_type when the application system When class application program, judge whether to execute present terminal equipment positioning system according to whether present terminal equipment is in moving condition Preset navigation positioning system optimisation strategy or preset non-navigational positioning system optimisation strategy.
Specifically, in order to realize that different use states correspond to different optimisation strategies, the execution unit 46 includes:
First execution module 4601, if being executed for being in moving condition according to the application program foreground or backstage State executes and sends positioning system Location Request, and continues to monitor the use state of present terminal equipment;
Second execution module 4602, if being held for being not at moving condition according to the application program foreground or backstage Row state executes the Location Request interrupted and send positioning system.
Specifically, first judging unit 45 includes:
Third judgment module 4503, for being judged whether to present terminal equipment according to the wifi connection status according to pre- If time interval is detected again;
4th judgment module 4504, if for detecting again, according to the reading situation of cell ID Cell ID, with And the positioning system positioning states, the change in location state, judge whether present terminal equipment executes transmission positioning system Location Request;
The execution unit 46 further include:
Third execution module 4603, if being executed according to the wifi connection status for not detecting again and interrupting transmission The Location Request of positioning system.
Specifically, the third judgment module 4503 includes:
Identify submodule 450301, for identification in the wifi connection status wifi MAC Address state;
First judging submodule 450302, if changing for the wifi MAC Address, in the case where wifi is not connected to state Judge whether to detect present terminal equipment again according to prefixed time interval;
Second judgment submodule 450303 is supervised under wifi connection status if constant for the wifi MAC Address Wifi connection status is surveyed, and is judged whether to carry out weight according to prefixed time interval to present terminal equipment according to the monitoring result New detection.
Specifically, the 4th judgment module 4504 includes:
Third judging submodule 450401 reads Cell ID for judging whether;
4th judging submodule 450402, if for reading Cell ID, according to updated Cell ID and described fixed Position system positioning states, the change in location state judge whether present terminal equipment executes and send the positioning of positioning system and ask It asks;
5th judging submodule 450403, if for not reading Cell ID, according to preset of short duration positioning strategy and described Positioning system positioning states, the change in location state, judge whether present terminal equipment executes the positioning for sending positioning system Request.
Specifically, first judging unit 45 includes:
Sending module 4505, for when detecting that the present terminal equipment is in charge mode, then interrupting transmission The Location Request of positioning system.
Second judgment module 4502 is specifically used for when the application system is navigation type application program, according to institute Positioning system positioning states, application program foreground or backstage execution state, screen state, change in location state are stated, and default First movement rule judges whether present terminal equipment is in moving condition;
Second judgment module 4502 is specifically also used to judge whether that execution is worked as according to the moving condition that whether is in The preset navigation positioning system optimisation strategy of preceding terminal device positioning system;Or
Second judgment module 4502 is specifically used for when the application system is non-navigational class application program, according to The positioning system positioning states, application program foreground or backstage execute state, screen state, change in location state, and pre- If the second movement rule judges whether present terminal equipment is in moving condition;
Second judgment module 4502 is specifically also used to judge whether that execution is worked as according to the moving condition that whether is in The preset non-navigational positioning system optimisation strategy of preceding terminal device positioning system.
Further, in order to directly extract useful number from preset memory locations when carrying out confirmation align_type to APP According to described device further include:
Statistic unit 410, for having under the application program open state of positioning function according to prefixed time interval statistics Location data, and be stored in preset memory locations.
The optimization device of another kind positioning system performance provided by the invention, the present invention is by first judging current application program Whether it is navigation type application program in white list, the location data of the APP in present terminal equipment is counted if not, root Whether the align_type that APP is determined according to the parameter of determining application program align_type is navigation type application program, non-navigational class Application program, short time position application program, if not GPS is directly hung up, if navigation type application program, non-navigational class application One kind of program, short time positioning application program, then position shape according to the wifi connection status of present terminal equipment, positioning system State, application program foreground or backstage execute state, screen state, change in location state, execute with navigation type application program, non-lead The corresponding preset opening state optimization rule of class application program, the short time positioning application program of navigating, is realized according to navigation type Application program, non-navigational class application program, the corresponding use state of short time positioning application program and optimisation strategy, to drive It moves in the case where unnecessary unlatching GPS, closes the positioning function of GPS, reduce power consumption, save power consumption.
The embodiment of the invention provides a kind of mobile terminals, as shown in figure 9, one or more processors (processor) 51, communication interface (Communications Interface) 52, memory (memory) 53 and bus 54, wherein processor 51, communication interface 52, memory 53 complete mutual communication by bus 54.Communication interface 52 can be used for obtaining module, Information transmission between expansion module and access modules.Processor 51 can call the logical order in memory 53, so that institute State the image display method that device is able to carry out in above-mentioned any embodiment.
In addition, the logical order in above-mentioned memory 53 can be realized and as only by way of SFU software functional unit Vertical product when selling or using, can store in a computer readable storage medium.Based on this understanding, this hair Substantially the part of the part that contributes to existing technology or the technical solution can be with soft in other words for bright technical solution The form of part product embodies, which is stored in a storage medium, including some instructions are to make It obtains a computer equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment of the present invention The all or part of the steps of the method.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. it is various It can store the medium of program code.
A kind of mobile terminal provided by the invention works as certain applications in the case where being not necessarily to open GPS with existing, still It constantly carries out GPS positioning to compare, the present invention is determined as navigation type by the align_type to the application program with positioning function Application program, non-navigational class application program, short time position application program, then according to navigation type application program, non-navigational class Application program, the use state of short time positioning application program are determined the need for the lasting application for opening GPS positioning system Program carries out opening or closing operation, realizes in the case where unnecessary unlatching GPS, different align_types correspond to different optimization Strategy reduces power consumption to close the positioning function of GPS, saves electric energy.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
It is understood that the correlated characteristic in the above method and device can be referred to mutually.In addition, in above-described embodiment " first ", " second " etc. be and not represent the superiority and inferiority of each embodiment for distinguishing each embodiment.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, In Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the optimization side of positioning system performance according to an embodiment of the present invention The some or all functions of some or all components in method, device and mobile terminal.The present invention is also implemented as using In executing some or all device or device programs of method as described herein (for example, computer program and meter Calculation machine program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one The form of a or multiple signals.Such signal can be downloaded from an internet website to obtain, or mention on the carrier signal For, or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
Embodiment of the invention discloses:
A1, a kind of optimization method of positioning system performance, comprising:
The history for obtaining the application program with positioning function positions statistical data;
It extracts in the history positioning statistical data for determining the parameter of application program align_type;
The parameter is trained according to default positioning type identification model;
Determine that the align_type of the application program, the align_type include navigation type application according to the result after training Program, non-navigational class application program, short time position application program;
According to identifying that the application program is located at determining for the use state in present terminal equipment and the application program Position type judges whether to execute the preset opening state optimization rule of the present terminal equipment positioning system;
If the present terminal equipment executes the preset opening state optimization rule of positioning system, preset opened according to described Open the unlatching that state optimization rule executes positioning system corresponding with the align_type of the use state and the application program Or shutoff operation, the preset opening state optimization rule include be divided into navigation type application program, non-navigational class application program, The align_type positioning system optimisation strategy corresponding from different use states of short time positioning application program.
A2, method according to a1, it is described that it is trained to the parameter according to default positioning type identification model Afterwards, the method also includes:
Whether the result after training of judgement, which is in preset kind, divides in range;
The result according to after training determines the align_type of the application program:
If the result after trained is in preset kind and divides in range, divides according to preset kind and answered described in range determination It is one of navigation type application program, non-navigational class application program, short time positioning application program with the align_type of program.
A3, the method according to A2, the history for obtaining the application program with positioning function position statistical data Before, the method also includes:
Judge to have the application program of positioning function to whether there is in preset navigation type white list;
If so, directly confirming that the application program is navigation type application program;
The history positioning statistical data for obtaining the application program with positioning function includes:
If it does not exist in preset navigation type white list, then the history positioning of the application program with positioning function is obtained Statistical data.
A4, method according to a3, it is described that use in present terminal equipment is located at according to the identification application program The align_type of state and the application program judges whether to execute the preset opening of the present terminal equipment positioning system Before state optimization rule, the method also includes:
The state for monitoring present terminal equipment obtains Wireless Fidelity wifi connection status, positioning system positioning states, application Program foreground or backstage execute state, screen state, change in location state.
A5, method according to a4, it is described that use in present terminal equipment is located at according to the identification application program The align_type of state and the application program judges whether to execute the preset opening of the present terminal equipment positioning system State optimization rule includes:
When the align_type of the application system is the short time to position application program, according to the identification application program position Use state in present terminal equipment judges whether positioning of the preset short time system for executing present terminal equipment positioning system System optimisation strategy;Or
When the align_type of the application system is navigation type application program or non-navigational class application program, according to current Whether terminal device, which is in moving condition, judges whether that the preset navigation positioning system for executing present terminal equipment positioning system is excellent Change strategy or preset non-navigational positioning system optimisation strategy.
A6, method according to a5 judge whether to execute currently according to whether present terminal equipment is in moving condition After the preset short time positioning system optimisation strategy of terminal device positioning system, the method also includes;
If being in moving condition, state is executed according to the application program foreground or backstage, executes and sends positioning system Location Request, and continue to monitor the state of present terminal equipment;
If being not at moving condition, state is executed according to the application program foreground or backstage and executes interruption transmission positioning The Location Request of system.
A7, the method according to A6, if described be not at moving condition, according to the application program foreground or backstage After execution state executes the Location Request for interrupting transmission positioning system, the method also includes:
Judge whether to examine present terminal equipment again according to prefixed time interval according to the wifi connection status It surveys;
If detecting again, shape is positioned according to the reading situation of cell ID Cell ID and the positioning system State, the change in location state, judge whether present terminal equipment executes the Location Request for sending positioning system.
If not detecting again, is executed according to the wifi connection status and interrupt the Location Request for sending positioning system.
A8, the method according to A7, it is described according to the wifi connection status judge whether to present terminal equipment by Carrying out detection again according to prefixed time interval includes:
Identify the state of wifi medium access control MAC Address in the wifi connection status;
If wifi MAC Address variation, judge whether in the case where wifi is not connected to state to present terminal equipment according to Prefixed time interval is detected again;
If the wifi MAC Address is constant, wifi connection status is monitored under wifi connection status, and according to described Monitoring result judges whether to detect present terminal equipment again according to prefixed time interval.
A9, the method according to A8, if described detect again, according to the reading situation of cell ID Cell ID, And the positioning system positioning states, the change in location state, judge whether present terminal equipment executes transmission positioning system The Location Request of system includes:
Judge whether to read Cell ID;
If so, being sentenced according to updated Cell ID and the positioning system positioning states, the change in location state Whether disconnected present terminal equipment executes the Location Request for sending positioning system;
If it is not, then being sentenced according to preset of short duration positioning strategy and the positioning system positioning states, the change in location state Whether disconnected present terminal equipment executes the Location Request for sending positioning system.
A10, method according to a5, it is described when the align_type of the application system is navigation type application program or non- When navigation type application program, judge whether present terminal equipment is in front of moving condition, the method also includes:
When detecting that the present terminal equipment is in charge mode, then interrupt sending the positioning of positioning system and ask It asks.
A11, method according to a5, it is described when the align_type of the application system is navigation type application program or non- When navigation type application program, judge present terminal equipment whether in moving condition include:
When the application system is navigation type application program, before the positioning system positioning states, application program Platform or backstage execute state, screen state, change in location state and default first movement rule and judge that present terminal equipment is It is no to be in moving condition;
When the application system is non-navigational class application program, according to the positioning system positioning states, application program Foreground or backstage execute state, screen state, change in location state, and default second movement rule judges present terminal equipment Whether moving condition is in.
A12, according to the described in any item methods of A1-11, the history for obtaining the application program with positioning function is fixed Before the statistical data of position, the method also includes:
There is the location data under the application program open state of positioning function according to prefixed time interval statistics, and store In preset memory locations.
B13, a kind of optimization device of positioning system performance, comprising:
Acquiring unit, the history for obtaining the application program with positioning function position statistical data;
Extraction unit, for extracting in the history positioning statistical data for determining the ginseng of application program align_type Number;
Training unit, for being trained according to default positioning type identification model to the parameter;
Determination unit, for determining the align_type of the application program, the align_type according to the result after training Application program is positioned including navigation type application program, non-navigational class application program, short time;
First judging unit, for being located at the use state in present terminal equipment according to the identification application program, with And the align_type of the application program judges whether that the preset opening state for executing the present terminal equipment positioning system is excellent Change rule;
Execution unit, if executing the preset opening state optimization rule of positioning system for the present terminal equipment, It is executed according to the preset opening state optimization rule corresponding with the align_type of the use state and the application program Positioning system opens or closes operation, and the preset opening state optimization rule includes being divided into navigation type application program, non- Navigation type application program, the align_type positioning system corresponding from different use states of short time positioning application program optimize plan Slightly.
B14, device according to b13, described device further include: second judgment unit,
The second judgment unit divides in range for whether the result after training of judgement to be in preset kind;
The determination unit divides in range if being in preset kind specifically for the result after training, according to default Type division range determines that the align_type of the application program is navigation type application program, non-navigational class application program, in short-term Between position one of application program.
B15, device according to b14, described device further include: third judging unit,
The third judging unit, for judging that the application program with positioning function whether there is in preset navigation type In white list;
The confirmation unit, if being present in preset navigation type white list specifically for the application program with positioning function In, then directly confirm that the application program is navigation type application program;
The acquiring unit, is specifically used for if it does not exist in preset navigation type white list, then obtaining has positioning function The history of the application program of energy positions statistical data.
B16, the device according to B15, described device further include:
Monitoring unit obtains wifi connection status, positioning system positioning shape for monitoring the state of present terminal equipment State, application program foreground or backstage execute state, screen state, change in location state.
B17, the device according to B16, first judging unit include:
First judgment module, for when the align_type of the application system be the short time position application program when, according to It identifies the use state that the application program is located in present terminal equipment, judges whether to execute present terminal equipment positioning system Preset short time positioning system optimisation strategy;Or
Second judgment module is that navigation type application program or non-navigational class are answered for the align_type when the application system When with program, judge whether to execute the pre- of present terminal equipment positioning system according to whether present terminal equipment is in moving condition Set navigation positioning system optimisation strategy or preset non-navigational positioning system optimisation strategy.
B18, the device according to B17, the execution unit include:
First execution module, if executing state according to the application program foreground or backstage for being in moving condition, It executes and sends positioning system Location Request, and continue to monitor the state of present terminal equipment;
Second execution module, if executing shape according to the application program foreground or backstage for being not at moving condition State executes the Location Request interrupted and send positioning system.
B19, the device according to B18, first judging unit include:
Third judgment module, for according to the wifi connection status judge whether to present terminal equipment according to it is default when Between be spaced and detected again;
4th judgment module, if for detecting again, according to the reading situation of cell ID Cell ID, Yi Jisuo Positioning system positioning states, the change in location state are stated, judges whether present terminal equipment executes and sends determining for positioning system Position request;
The execution unit further include:
Third execution module, if being executed according to the wifi connection status for not detecting again and interrupting transmission positioning The Location Request of system.
B20, the device according to B19, the third judgment module include:
Identify submodule, for identification in the wifi connection status wifi MAC Address state;
First judging submodule, if changing for the wifi MAC Address, in the case where wifi is not connected to state, judgement is It is no that present terminal equipment is detected again according to prefixed time interval;
Second judgment submodule monitors wifi under wifi connection status if constant for the wifi MAC Address Connection status, and judge whether to examine present terminal equipment again according to prefixed time interval according to the monitoring result It surveys.
B21, the device according to B20, the 4th judgment module include:
Third judging submodule reads Cell ID for judging whether;
4th judging submodule, if for reading Cell ID, according to updated Cell ID and the positioning system Positioning states, the change in location state, judge whether present terminal equipment executes the Location Request for sending positioning system;
5th judging submodule, if being according to preset of short duration positioning strategy and the positioning for not reading Cell ID System positioning states, the change in location state, judge whether present terminal equipment executes the Location Request for sending positioning system.
B22, the device according to B17, first judging unit include:
Sending module, for when detecting that the present terminal equipment is in charge mode, then interrupting transmission positioning The Location Request of system.
B23, the device according to B17,
Second judgment module is specifically used for when the application system is navigation type application program, according to described fixed Position system positioning states, application program foreground or backstage execute state, screen state, change in location state, and default first Movement rule judges whether present terminal equipment is in moving condition;
Second judgment module is specifically also used to judge whether to execute current end according to the moving condition that whether is in The preset navigation positioning system optimisation strategy of end equipment positioning system;Or
Second judgment module is specifically used for when the application system is non-navigational class application program, according to described Positioning system positioning states, application program foreground or backstage execute state, screen state, change in location state, and default the Two movement rules judge whether present terminal equipment is in moving condition;
Second judgment module is specifically also used to judge whether to execute current end according to the moving condition that whether is in The preset non-navigational positioning system optimisation strategy of end equipment positioning system.
B24, according to the described in any item devices of B13-23, described device further include:
Statistic unit is determined under the application program open state of positioning function for having according to prefixed time interval statistics Position data, and be stored in preset memory locations.
C25, a kind of mobile terminal, including processor and memory:
The memory is used to store the program for executing any one of A1 to A12 the method, the processor is configured to For executing the program stored in the memory.

Claims (19)

1. a kind of optimization method of positioning system performance characterized by comprising
The history for obtaining the application program with positioning function positions statistical data;
It extracts in the history positioning statistical data for determining the parameter of application program align_type;
The parameter is trained according to default positioning type identification model;
Determine that the align_type of the application program, the align_type include navigation type application journey according to the result after training Sequence, non-navigational class application program and short time position application program;
It is located at the positioning class of use state and the application program in present terminal equipment according to the identification application program Type judges whether to execute the preset opening state optimization rule of the present terminal equipment positioning system;
If the present terminal equipment executes the preset opening state optimization rule of positioning system, according to the preset opening shape The state principle of optimality executes unlatching or the pass of positioning system corresponding with the align_type of the use state and the application program Closed operation, the preset opening state optimization rule include being divided into navigation type application program, non-navigational class application program and short The align_type of timi requirement application program positioning system optimisation strategy corresponding from different use states;
It is described according to identifying that the application program is located at determining for the use state in present terminal equipment and the application program Position type judges whether that the preset opening state optimization rule for executing the present terminal equipment positioning system includes:
When the align_type of the application system is navigation type application program or non-navigational class application program, according to present terminal Whether equipment, which is in moving condition, judges whether to execute the preset navigation positioning system optimization plan of present terminal equipment positioning system Summary or preset non-navigational positioning system optimisation strategy;
If being not at moving condition, state is executed according to the application program foreground or backstage and executes interruption transmission positioning system Location Request;
If described be not at moving condition, state is executed according to the application program foreground or backstage and executes interruption transmission positioning It after the Location Request of system, further include being judged whether to present terminal equipment according to wifi connection status according to preset time Again it is detected at interval;If detecting again, positioned according to the reading situation and positioning system of cell ID CellID State, change in location state, judge whether present terminal equipment executes the Location Request for sending positioning system;If not examining again It surveys, is then executed according to the wifi connection status and interrupt the Location Request for sending positioning system;
It is described according to identifying that the application program is located at determining for the use state in present terminal equipment and the application program Before position type judges whether that the preset opening state optimization for executing the present terminal equipment positioning system is regular, the method Further include:
The use state for monitoring present terminal equipment, obtains the wifi connection status, positioning system positioning states, application program Foreground or backstage execute state, screen state, change in location state;
Before the history positioning statistical data for obtaining the application program with positioning function, the method also includes:
Judge to have the application program of positioning function to whether there is in preset navigation type white list;
If so, directly confirming that the application program is navigation type application program;
The history positioning statistical data for obtaining the application program with positioning function includes:
If it does not exist in preset navigation type white list, then the history for obtaining the application program with positioning function positions statistics Data.
2. the method according to claim 1, wherein it is described according to default positioning type identification model to the ginseng After number is trained, the method also includes:
Whether the result after training of judgement, which is in preset kind, divides in range;
The result according to after training determines the align_type of the application program:
If the result after training is in preset kind and divides in range, determined according to preset kind division range described using journey The align_type of sequence is one of navigation type application program, non-navigational class application program, short time positioning application program.
3. the method according to claim 1, wherein described be located at present terminal according to the identification application program The align_type of use state and the application program in equipment judges whether to execute present terminal equipment positioning system The preset opening state optimization rule of system includes:
When the align_type of the application system is the short time to position application program, work as according to identifying that the application program is located at Use state in preceding terminal device judges whether that the preset short time positioning system for executing present terminal equipment positioning system is excellent Change strategy.
4. according to the method described in claim 3, it is characterized in that, whether being in moving condition judgement according to present terminal equipment Preset navigation positioning system optimisation strategy or the preset non-navigational positioning system for whether executing present terminal equipment positioning system are excellent After changing strategy, the method also includes;
If being in moving condition, state is executed according to the application program foreground or backstage, executes and sends positioning system positioning Request, and continue to monitor the use state of present terminal equipment.
5. the method according to claim 1, wherein described judge whether according to the wifi connection status to working as Preceding terminal device carries out detection again according to prefixed time interval
Identify the state of wifi medium access control MAC Address in the wifi connection status;
If the wifi MAC Address variation, judges whether to present terminal equipment in the case where wifi is not connected to state according to default Time interval is detected again;
If the wifi MAC Address is constant, wifi connection status is monitored under wifi connection status, and according to the monitoring As a result judge whether to detect present terminal equipment again according to prefixed time interval.
6. the method according to claim 1, wherein if described detect again, according to cell ID Cell The reading situation of ID and the positioning system positioning states, the change in location state, judge whether present terminal equipment is held Row send positioning system Location Request include:
Judge whether to read Cell ID;
If so, being worked as according to updated Cell ID and the positioning system positioning states, the change in location state, judgement Whether preceding terminal device executes the Location Request for sending positioning system;
If it is not, then being worked as according to preset of short duration positioning strategy and the positioning system positioning states, the change in location state, judgement Whether preceding terminal device executes the Location Request for sending positioning system.
7. according to the method described in claim 3, it is characterized in that, described when the align_type of the application system is navigation type When application program or non-navigational class application program, judge whether present terminal equipment is in front of moving condition, the method is also Include:
When detecting that the present terminal equipment is in charge mode, then the Location Request for sending positioning system is interrupted.
8. according to the method described in claim 3, it is characterized in that, described when the align_type of the application system is navigation type When application program or non-navigational class application program, judge present terminal equipment whether in moving condition include:
When the application system be navigation type application program when, according to the positioning system positioning states, application program foreground or Backstage executes state, screen state, change in location state and default first movement rule and judges whether present terminal equipment is located In moving condition;
When the application system is non-navigational class application program, according to the positioning system positioning states, application program foreground Or backstage executes state, screen state, change in location state, and whether default second movement rule judges present terminal equipment In moving condition.
9. method according to claim 1-8, which is characterized in that described to obtain the application journey with positioning function Before the history positioning statistical data of sequence, the method also includes:
There is the location data under the application program open state of positioning function according to prefixed time interval statistics, and be stored in pre- If in storage location.
10. a kind of optimization device of positioning system performance characterized by comprising
Acquiring unit, the history for obtaining the application program with positioning function position statistical data;
Extraction unit, for extracting in the history positioning statistical data for determining the parameter of application program align_type;
Training unit, for being trained according to default positioning type identification model to the parameter;
Determination unit, for determining that the align_type of the application program, the align_type include according to the result after training Navigation type application program, non-navigational class application program and short time position application program;
First judging unit, for being located at the use state in present terminal equipment, Yi Jisuo according to the identification application program The align_type for stating application program judges whether to execute the preset opening state optimization rule of the present terminal equipment positioning system Then;
Execution unit, if executing the preset opening state optimization rule of positioning system for the present terminal equipment, according to The preset opening state optimization rule executes positioning corresponding with the align_type of the use state and the application program System opens or closes operation, and the preset opening state optimization rule includes being divided into navigation type application program, non-navigational The align_type positioning system optimisation strategy corresponding from different use states of class application program and short time positioning application program;
First judging unit includes:
Second judgment module is navigation type application program or non-navigational class application journey for the align_type when the application system When sequence, whether preset the leading that moving condition judges whether execution present terminal equipment positioning system is according to present terminal equipment Positioning system optimisation strategy of navigating or preset non-navigational positioning system optimisation strategy;
The execution unit includes:
Second execution module, if being held for being not at moving condition according to the application program foreground or backstage execution state Row interrupts the Location Request for sending positioning system;
First judging unit further include:
Third judgment module is held if described be not at moving condition according to the application program foreground or backstage execution state After row interrupts the Location Request for sending positioning system, further include, for being judged whether according to wifi connection status to current end End equipment is detected again according to prefixed time interval;
4th judgment module, if for detecting again, according to the reading situation and positioning system of cell ID CellID Positioning states, change in location state, judge whether present terminal equipment executes the Location Request for sending positioning system;
The execution unit further includes,
Third execution module, if being executed according to the wifi connection status for not detecting again and interrupting transmission positioning system Location Request;
Described device further include:
Monitoring unit obtains the wifi connection status, positioning system positioning for monitoring the use state of present terminal equipment State, application program foreground or backstage execute state, screen state, change in location state;
Third judging unit, for judging that the application program with positioning function whether there is in preset navigation type white list In;
The determination unit, if being present in preset navigation type white list specifically for the application program with positioning function, Then directly confirm that the application program is navigation type application program;
The acquiring unit is specifically used for if it does not exist in preset navigation type white list, then obtaining has positioning function The history of application program positions statistical data.
11. device according to claim 10, which is characterized in that described device further include: second judgment unit,
The second judgment unit divides in range for whether the result after training of judgement to be in preset kind;
The determination unit divides in range if being in preset kind specifically for the result after training, according to preset kind It divides range and determines that the align_type of the application program is fixed for navigation type application program, non-navigational class application program, short time One of position application program.
12. device according to claim 10, which is characterized in that first judging unit includes:
First judgment module, for when the align_type of the application system be the short time position application program when, according to identification The application program is located at the use state in present terminal equipment, judges whether to execute the pre- of present terminal equipment positioning system Set short time positioning system optimisation strategy.
13. device according to claim 12, which is characterized in that the execution unit further include:
First execution module, if executing state for being in moving condition according to the application program foreground or backstage, executing Positioning system Location Request is sent, and continues to monitor the use state of present terminal equipment.
14. device according to claim 10, which is characterized in that the third judgment module includes:
Identify submodule, for identification in the wifi connection status wifi MAC Address state;
First judging submodule judges whether pair if changing for the wifi MAC Address in the case where wifi is not connected to state Present terminal equipment is detected again according to prefixed time interval;
Second judgment submodule monitors wifi connection if constant for the wifi MAC Address under wifi connection status State, and judge whether to detect present terminal equipment again according to prefixed time interval according to the monitoring result.
15. device according to claim 14, which is characterized in that the 4th judgment module includes:
Third judging submodule reads CellID for judging whether;
4th judging submodule, if being positioned for reading Cell ID according to updated Cell ID and the positioning system State, the change in location state, judge whether present terminal equipment executes the Location Request for sending positioning system;
5th judging submodule, if for not reading Cell ID, it is fixed according to preset of short duration positioning strategy and the positioning system Position state, the change in location state, judge whether present terminal equipment executes the Location Request for sending positioning system.
16. device according to claim 12, which is characterized in that first judging unit includes:
Sending module, for when detecting that the present terminal equipment is in charge mode, then interrupting transmission positioning system Location Request.
17. device according to claim 12, which is characterized in that
Second judgment module is specifically used for when the application system is navigation type application program, according to positioning system System positioning states, application program foreground or backstage execute state, screen state, change in location state and default first movement Rule judges whether present terminal equipment is in moving condition;
Second judgment module is specifically also used to judge whether that executing present terminal sets according to the moving condition that whether is in The preset navigation positioning system optimisation strategy of standby positioning system;Or
Second judgment module is specifically used for when the application system is non-navigational class application program, according to the positioning System positioning states, application program foreground or backstage execute state, screen state, change in location state, and default second moves Dynamic rule judges whether present terminal equipment is in moving condition;
Second judgment module is specifically also used to judge whether that executing present terminal sets according to the moving condition that whether is in The preset non-navigational positioning system optimisation strategy of standby positioning system.
18. the described in any item devices of 0-17 according to claim 1, which is characterized in that described device further include:
Statistic unit, for having the positioning number under the application program open state of positioning function according to prefixed time interval statistics According to, and be stored in preset memory locations.
19. a kind of mobile terminal, which is characterized in that including processor and memory:
The memory is used to store the program that perform claim requires any one of 1 to 9 the method,
The processor is configured to for executing the program stored in the memory.
CN201710057155.2A 2017-01-23 2017-01-23 Optimization method, device and the mobile terminal of positioning system performance Active CN106878945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710057155.2A CN106878945B (en) 2017-01-23 2017-01-23 Optimization method, device and the mobile terminal of positioning system performance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710057155.2A CN106878945B (en) 2017-01-23 2017-01-23 Optimization method, device and the mobile terminal of positioning system performance

Publications (2)

Publication Number Publication Date
CN106878945A CN106878945A (en) 2017-06-20
CN106878945B true CN106878945B (en) 2019-11-26

Family

ID=59158839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710057155.2A Active CN106878945B (en) 2017-01-23 2017-01-23 Optimization method, device and the mobile terminal of positioning system performance

Country Status (1)

Country Link
CN (1) CN106878945B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108012233A (en) * 2017-12-05 2018-05-08 北京元心科技有限公司 Method and apparatus for providing location services
CN108288069B (en) * 2018-01-11 2021-11-02 上海展扬通信技术有限公司 Positioning function management method, mobile terminal and readable storage medium
CN109164477B (en) * 2018-08-29 2021-05-25 维沃移动通信有限公司 Application positioning method and mobile terminal
CN111159015B (en) * 2019-12-13 2022-01-14 华为技术有限公司 Method and device for positioning problem

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103424756A (en) * 2012-05-24 2013-12-04 Lg电子株式会社 Mobile terminal and GPS engine control method thereof
CN103428361A (en) * 2012-04-30 2013-12-04 苹果公司 Operating Geographic Location Systems
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN105677719A (en) * 2015-12-29 2016-06-15 小米科技有限责任公司 Application management method and apparatus
CN105933521A (en) * 2016-04-22 2016-09-07 广东小天才科技有限公司 Mobile terminal positioning mode selection method and device
CN105955073A (en) * 2016-04-27 2016-09-21 乐视控股(北京)有限公司 Automatic starting method, system and mobile intelligent devices for satellite positioning device
CN105960004A (en) * 2016-06-30 2016-09-21 宇龙计算机通信科技(深圳)有限公司 Mobile terminal positioning function control method, and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7633389B2 (en) * 2006-04-14 2009-12-15 Motorola, Inc. Location enabled device with power saving control and method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428361A (en) * 2012-04-30 2013-12-04 苹果公司 Operating Geographic Location Systems
CN103424756A (en) * 2012-05-24 2013-12-04 Lg电子株式会社 Mobile terminal and GPS engine control method thereof
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN105677719A (en) * 2015-12-29 2016-06-15 小米科技有限责任公司 Application management method and apparatus
CN105933521A (en) * 2016-04-22 2016-09-07 广东小天才科技有限公司 Mobile terminal positioning mode selection method and device
CN105955073A (en) * 2016-04-27 2016-09-21 乐视控股(北京)有限公司 Automatic starting method, system and mobile intelligent devices for satellite positioning device
CN105960004A (en) * 2016-06-30 2016-09-21 宇龙计算机通信科技(深圳)有限公司 Mobile terminal positioning function control method, and mobile terminal

Also Published As

Publication number Publication date
CN106878945A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106878945B (en) Optimization method, device and the mobile terminal of positioning system performance
CN106713662A (en) Method and device for optimizing performance of positioning system, and mobile terminal
CN106872996A (en) The optimization method of alignment system performance, device and mobile terminal
CN110166943B (en) Method for processing terminal position information
KR20150124396A (en) System and Method for Location Determination, Mapping, and Data Management through Crowdsourcing
CN110525823A (en) A kind of method, apparatus and system that monitoring rubbish is put on by classification
CN104915351A (en) Picture sorting method and terminal
CN109145828A (en) Method and apparatus for generating video classification detection model
US20210342959A1 (en) Paying for parking with electrical power from an electric vehicle
CN109324962A (en) A kind of test method and equipment of the application program based on cloud internet of things technology
CN102914761A (en) System and method for monitoring quality of intelligent electric energy meter
CN110347407A (en) A kind of method, apparatus, computer equipment and medium obtaining EMS memory occupation amount
CN109193802A (en) A kind of Demand-side resource regulating method and system considering new energy prediction error
CN109873790A (en) Network security detection method, device and computer readable storage medium
CN112233428B (en) Traffic flow prediction method, device, storage medium and equipment
CN110099106A (en) A kind of data synchronous method and terminal between block chain interior joint
CN112291728A (en) Private industry application platform implementation architecture based on 5G network
CN110990917A (en) BIM model display method, device and system
CN111311193B (en) Method and device for configuring public service resources
CN110083433A (en) Embedded software running method and device, terminal and computer readable storage medium
CN106851801B (en) Optimization method, device and the mobile terminal of positioning system performance
CN112925416A (en) User sight tracking method, device and system
CN104657902A (en) Integrated support intelligent terminal system for equipment and implementation method of intelligent terminal system
CN104750239A (en) Application method and equipment based on spatial gesture access terminal equipment
CN112527943A (en) Map rendering method, map rendering device, map rendering equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170720

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant