CN106713662B - Method and device for optimizing performance of positioning system and mobile terminal - Google Patents
Method and device for optimizing performance of positioning system and mobile terminal Download PDFInfo
- Publication number
- CN106713662B CN106713662B CN201710051100.0A CN201710051100A CN106713662B CN 106713662 B CN106713662 B CN 106713662B CN 201710051100 A CN201710051100 A CN 201710051100A CN 106713662 B CN106713662 B CN 106713662B
- Authority
- CN
- China
- Prior art keywords
- positioning
- state
- application program
- positioning system
- preset
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
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)
- Navigation (AREA)
Abstract
The invention discloses a method and a device for optimizing the performance of a positioning system and a mobile terminal, relates to the technical field of positioning, and mainly aims to solve the problem that terminal equipment consumes unnecessary electric quantity because GPS positioning is still continuously carried out under the condition that a GPS system is not required to be started by a navigation application program. The method comprises the following steps: acquiring historical positioning statistical data of an application program with a positioning function; training the historical positioning statistical data through a preset positioning type recognition model, and determining that the positioning type of the application program is a navigation application program; judging whether a preset starting state optimization rule of a current terminal equipment positioning system is executed or not according to the use state of the navigation application program in the current terminal equipment; and if so, executing the opening or closing operation of the positioning system corresponding to the use state of the navigation application program according to the preset opening state optimization rule. The method is suitable for optimizing the performance of the positioning system.
Description
Technical Field
The present invention relates to the field of positioning technologies, and in particular, to a method and an apparatus for optimizing performance of a positioning system, and a mobile terminal.
Background
With the increasing Positioning coverage of the global Positioning system GPS (global Positioning system), the application developed by using the GPS to position the behavior trajectory of the user is increasing. In order to implement different functions in different applications in different terminals, the GPS needs to track a behavior trajectory of a user in real time.
At present, when an APP with a positioning function is started, a background program can continuously send a GPS positioning request according to a time interval so as to obtain geographical location information of a user through a GPS positioning system, generally, power consumption of the background program during continuous GPS positioning is about 70mA, and power consumption of a terminal in a standby state is between 6 and 10mA, but when a navigation application program is not required to start the GPS system, the GPS positioning is still continuously performed, so that terminal equipment consumes unnecessary power.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for optimizing the performance of a positioning system, and a mobile terminal, and mainly aims to solve the problem that terminal equipment consumes unnecessary power because a navigation application program continuously performs GPS positioning without starting a GPS system.
According to an aspect of the present invention, there is provided a method for optimizing the performance of a positioning system, including:
acquiring historical positioning statistical data of an application program with a positioning function;
training the historical positioning statistical data through a preset positioning type recognition model, and determining that the positioning type of the application program is a navigation application program;
judging whether a preset starting state optimization rule of a positioning system of the current terminal equipment is executed or not according to the use state of the navigation application program in the current terminal equipment, wherein the preset starting state optimization rule comprises positioning system optimization strategies of the navigation application program corresponding to different use states;
and if the preset starting state optimization rule of the current terminal equipment positioning system is executed, executing the starting or closing operation of the positioning system corresponding to the use state of the navigation application program according to the preset starting state optimization rule.
According to another aspect of the present invention, there is provided an apparatus for optimizing the performance of a positioning system, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring historical positioning statistical data of an application program with a positioning function;
the determining unit is used for training the historical positioning statistical data through a preset positioning type recognition model and determining that the positioning type of the application program is a navigation application program;
the first judging unit is used for judging whether to execute a preset opening state optimization rule of a positioning system of the current terminal equipment according to the use state of the navigation application program in the current terminal equipment, wherein the preset opening state optimization rule comprises positioning system optimization strategies corresponding to the navigation application program and different use states;
and the execution unit is used for executing the opening or closing operation of the positioning system corresponding to the use state of the navigation application program according to the preset opening state optimization rule if the preset opening state optimization rule of the current terminal equipment positioning system is executed.
In a third aspect, the present invention provides a mobile terminal having a function of implementing the optimized behavior of the positioning system performance in the first aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible design, the mobile terminal includes a processor and a memory, the memory is used for storing programs for supporting the transceiver to execute the method, and the processor is configured to execute the programs stored in the memory. The mobile terminal apparatus may further comprise a communication interface for the mobile terminal to communicate with other devices or a communication network.
In a fourth aspect, the present invention provides a computer storage medium for storing computer software instructions for the mobile terminal apparatus, which contains a program designed for performing the above aspects for optimizing the performance of the positioning system.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
compared with the prior art that the GPS is still continuously positioned when the navigation application program is not required to be started, so that the terminal equipment consumes unnecessary electric quantity, the method, the device and the mobile terminal for optimizing the performance of the positioning system provided by the invention have the advantages that the current application program is determined to be the navigation application program, and the positioning function of the GPS is closed when the navigation application program is not required to be started or closed according to whether the use state of the navigation application program needs to be started or closed, so that the power consumption is reduced, and the electric energy is saved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating a method for optimizing the performance of a positioning system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a GPS request management state flow provided by an embodiment of the present invention;
FIG. 3 is a schematic diagram of an optimization program framework for positioning system performance according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another method for optimizing the performance of a positioning system according to an embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating a process of determining whether a current terminal device moves according to an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating a process for implementing GPS performance optimization according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram illustrating an apparatus for optimizing the performance of a positioning system according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of an apparatus for optimizing the performance of another positioning system according to an embodiment of the present invention;
fig. 9 is a schematic entity structure diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
An embodiment of the present invention provides a method for optimizing performance of a positioning system, as shown in fig. 1, the method includes:
101. and acquiring historical positioning statistical data of the application program with the positioning function.
The application program with the positioning function is an application program capable of tracking and positioning the geographic position of the current terminal device by starting a global positioning system GPS, such as vehicle-mounted navigation, a map, and the like, the embodiment of the present invention is not particularly limited, the historical positioning statistical data includes the number of times of single positioning initiation, the number of times of single positioning success, and the like acquired when the application program with the positioning function performs positioning, and the specific data is shown in table 1.
TABLE 1
It should be noted that, the package name is an installation package name of an application APP, the TOP mode is that the APP is in a desktop display state, the positioning success in the upper table is that the current terminal device is located outdoors, the GPS can receive a position signal sent by a satellite, the positioning failure in the upper table is that the current terminal device is located indoors, the GPS cannot receive a position information number sent by the satellite, the suspend request is to suspend the GPS, the specific method is that the application program sends a positioning request to a location server, the location server stores the positioning request in a row so as to manage the request, the positioning request sends a start request to the GPS according to a management method, a switch is set in the process of sending the start request, and the GPS is suspended, that is, the start request sent is intercepted by the switch, so that the GPS positioning function of stopping starting is realized. Specific GPS request management state flow diagram as shown in figure 2,
for example, fig. 3 is a program framework of the GPS sending a request according to the use status, after receiving the request, the location server location manager service starts tracking a new request to the QikuLRManager, and if the request is a short-time APP, the new request is directly suspended, and the specific procedure is as shown in fig. 3, which is not repeated herein.
102. Training the historical positioning statistical data through a preset positioning type recognition model, and determining that the positioning type of the application program is a navigation application program.
The preset positioning type identification model is a series of identification formulas obtained through historical positioning statistical data parameter proportion, the series of formulas can be used for calculating the ratio between parameters, and can be preset by technical personnel specifically. Total work-time ratio:
mOverallSuccRate ═ mLocationSuccTime)/(mLocationTotalTime); bright screen opening positioning time ratio: mScOnLocation Rate ═ mScOnLocation TotalTime/mLocation TotalTime;
the APP is the usage time proportion of the TOP mode: mlontoplocationrate ═ m (mScOnTopLocationTime)/(mLocationTotalTime);
foreground positioning success time ratio: mForeGroundSuccRate ═ mforegndlocationsuccttime)/(mlocationsuccttime);
mScOnOnForeGroudSuccRate (mScOnForeGndLocation SuccTime)/(mLocation SuccTime);
the APP accounts for the success ratio of the TOP mode positioning: mOnTopSuccRate ═ mScOnTopLocationSuccTime)/(mLocationSuccTime);
black screen mode location success rate:
mScOffSuccRate=(mLocationSuccTime–mScOnLocationSuccTime)/(mLocationTotalTime-mScOnLocationTotalTime);
successful positioning proportion of the background: (mlocationsuccttime-mloregndlocationsuccttime)/(mlocationstattimeme-mforegndlocationstattime);
the average moving distance per 5 minutes for successful positioning:
mAvgTravelDistance=(mScOnTravelDistance+mScOffTravelDistance)/(mLocationSuccTime/(5*60));
successful black screen positioning averages 5 minutes of movement distance:
mScOffAvgTravelDistance=(mScOffTravelDistance)/((mLocationSuccTime–mScOnLocationSuccTime)/(5*60));
successful bright screen positioning averages 5 minutes moving distance:
mScOnAvgTravelDistance=(mScOnTravelDistance)/(mScOnLocationSuccTime/(5*60))。
the above description is only for the purpose of illustrating embodiments of the present invention and is not intended to be limiting.
It should be noted that after training and learning are performed according to the preset positioning type recognition model, it can be obtained that the current APP belongs to the navigation application system, and different start state optimization rules can be preset for the navigation application system, which is not specifically limited in the embodiment of the present invention.
For example, the distance range of the current terminal device movement in different scenes can be calculated through the formulas, and when the distance range is greater than 12 kilometers, the terminal device moves 1000m in average in 5 minutes; when the distance is more than 6 kilometers, the vehicle is driven by the bicycle, and the average movement is 500m in 5 minutes; when the running and walking are mixed in a scene of about 5 kilometers per hour, the average movement is 416m corresponding to 5 minutes; when walking about 3.5 km/hour scene, corresponding to a5 minute move 291 m.
103. And judging whether to execute a preset starting state optimization rule of the current terminal equipment positioning system according to the use state of the navigation application program in the current terminal equipment.
The preset starting state optimization rule comprises navigation application programs and positioning system optimization strategies corresponding to different using states; the usage state may include a wifi connection state, a positioning system positioning state, an application foreground or background execution state, a screen state, a position change state, and the like of the current terminal device.
It should be noted that, the use state of the current terminal device changes with time or geographic location, and the identification of the use state needs to be updated in time, the APP of one navigation application program may correspond to multiple use states, and the multiple use states may be mapped to different GPS suspend operations or start operations.
For example, when the current running APP is obtained through training of the preset positioning type recognition model and is a navigation type positioning type, the recognized use state is a black screen, the GPS of the current terminal equipment can be hung up, the GPS is optimized, and the power consumption is reduced. For another example, different optimization strategies may be used according to the navigation application APP and the usage state, as shown in table 2.
TABLE 2
104. And if the preset starting state optimization rule of the current terminal equipment positioning system is executed, executing the starting or closing operation of the positioning system corresponding to the use state of the navigation application program according to the preset starting state optimization rule.
The starting operation of the positioning system is to restart the execution of the GPS positioning operation after the current GPS is in the suspension operation and the use state of the current terminal equipment needs to be detected again, and the closing operation of the positioning system is to enable the current GPS not to execute the positioning operation any more according to the optimization rule corresponding to the use state of the navigation application program under the normal positioning operation of the current GPS, namely to suspend the GPS.
In general, the positioning type of the navigation application is not changed, but the use state changes with time or the movement of the current terminal device, so that when the use state of the current terminal device is continuously recognized, the operation of turning on or off the positioning system corresponding to the use state of the navigation application is executed also changes.
Compared with the prior art that the GPS is still continuously positioned when the navigation application program is not required to be started, so that the terminal equipment consumes unnecessary electric quantity, the method for optimizing the performance of the positioning system provided by the invention firstly determines that the current application program is the navigation application program, and the application program which continuously starts the GPS positioning system is required to be started or closed according to the use state of the navigation application program, so that the positioning function of the GPS is closed when the navigation application program is not required to be started, the power consumption is reduced, and the electric energy is saved.
An embodiment of the present invention provides another method for optimizing performance of a positioning system, as shown in fig. 4, where the method includes:
201. and counting the positioning data in the starting state of the application program with the positioning function according to a preset time interval, and storing the positioning data in a preset storage position.
The preset time interval may be a time interval preset by a technician, for example, 10 minutes, 20 minutes, and the like, and the embodiment of the present invention is not limited specifically. The positioning data is data generated when the APP performs positioning operation, such as APP packet name, single positioning initiation times, single positioning success times, last single positioning success time, and the like. The preset storage position may be a local storage position or a cache storage position of the current terminal device, and when the data stored in the preset storage position is excessive, the data may be updated or uploaded to the cloud storage position according to a time interval.
It should be noted that the statistical positioning method can utilize a lightweight, atomicity, consistency, isolation, and persistence database management system database SQLite, which is contained in a relatively small C library. It occupies very low resources, and in embedded devices, only hundreds of K of memory may be needed. Through statistics positioning data and storage in predetermineeing the memory location to when confirming the location type to APP, directly extract useful data from predetermineeing the memory location.
202. And judging whether the application program with the positioning function exists in a preset navigation type white list or not.
The preset navigation type white list comprises navigation type application programs which are pre-stored by technicians and belong to the navigation type, and is used for directly determining the positioning type of the application programs, and the preset navigation type white list can be stored in a local memory or a cache. And judging whether the current application program exists in the white list or not so as to directly determine the positioning type of the application program as the navigation application program.
For example, if the vehicle navigation APP1, the vehicle navigation APP2, and the running APP are stored in the preset navigation type white list, it is determined whether the vehicle navigation APP2, which is an application having a positioning function, exists in the preset navigation type white list.
203. And if the positioning information does not exist in the preset navigation type white list, acquiring historical positioning statistical data of the application program with the positioning function.
This step is the same as the method described in step 101 of fig. 1, and is not described here again.
Parallel to step 203: and if the application program with the positioning function exists in a preset navigation type white list, directly confirming that the application program is a navigation application program.
For the embodiment of the present invention, if the navigation application is directly determined, step 207 is directly executed.
204. And extracting parameters used for determining the positioning type of the application program from the historical positioning statistical data.
The parameter of the application positioning type is used to determine the positioning type of the application, and may be a total successful time ratio, a ratio of bright screen opening positioning time to foreground positioning successful time, and the like.
It should be noted that the parameters for determining different positioning types may be the same or different. The positioning type corresponding to the application program is obtained by determining the parameters of the positioning type of the application program and training the parameters.
205. And training the parameters according to a preset positioning type recognition model.
And configuring different positioning type recognition algorithms for different parameters in the preset positioning type recognition model.
For example, when identifying the car navigation APP, the parameters need to be substituted into several formulas, and then the type is determined, and the total work time ratio (mOverallSuccRate) is greater than 40%; the bright screen opening positioning time ratio (mScOnLocation Rate) is more than 30 percent; the average 5-minute moving distance (mAvgTravelDistance) of successful positioning is more than 500; (foreground positioning success time ratio is more than 50%) or (TOP mode positioning success time ratio is more than 20%), the result obtained according to the formula can be mOverallSurcRate > 50% (prerequisite), mScOnLocationRate > 50% (prerequisite), 5 min average movement: mAvgTravelDistance >500 (a prerequisite), combining the two conditions: mScOnForeGroudSuccRate > 50% or mOnTopSuccRate > 20%. The corresponding relation between another parameter and the algorithm can be further used, for example, the total work time ratio (mOverallSuccRate) is more than 70%; the average 5-minute moving distance (mAvgTravelDistance) of successful positioning is more than 1500, and the corresponding algorithm is as follows: mOverallSurcRate > 70% (requirements), 5 min average moving mAvgTravelDistance > 1500 (requirements), and if one of the above algorithms is met, the current APP can be determined to be the navigation application.
206. And determining the application program to be a navigation application program according to the training result.
The navigation application program is an APP which needs to provide navigation service for a user through data generated by a GPS.
For the embodiment of the present invention, step 206 further includes: and judging whether the trained result is in a preset type division range.
The preset type division range can be divided into a large range and 3 small ranges in the large range, the large range is used for judging whether the preset type division range belongs to a navigation application program, a non-navigation application program and a short-time positioning application program, and the small range is used for judging which positioning type application program specifically belongs to.
It should be noted that the algorithms of the applications with different positioning types may correspond to multiple partition ranges, which depend on parameter characteristics of different APPs, for example, the navigation applications include vehicle navigation applications, running applications, and walking trajectory recording APPs, and the partition ranges corresponding to the navigation positioning types of these applications are all different. In addition, the positioning type of the APP is possibly not accurate enough in the beginning, because the optimization strategy has a mechanism for guaranteeing the use, the use of the user is not influenced, the judgment is still continuous in the use process, and after the long use time, the type judgment becomes accurate.
For the embodiment of the present invention, step 206 may specifically be: and if the training result is in the preset type division range, determining the application program to be the navigation application program according to the preset type division range.
For example, the result after training judges whether or not the total work time ratio is more than 40% (a necessary condition) within the following range; the average moving distance of the positioning success is more than 120m every 5 minutes (necessary condition); and if the success rate of positioning the black screen mode is more than 30 percent (necessary conditions), determining the current APP to be the navigation application program according to the type division range.
For another example, the result after training judges whether the total work time ratio is more than 40% (necessary condition) within the following range; the average moving distance of the positioning success is more than 60m every 5 minutes (necessary condition); the positioning success rate of the black screen mode is more than 30%, or the positioning success rate of the bright screen mode is more than 45%; or the foreground bright screen positioning success rate is more than 30%), and if yes, determining the current APP to be the navigation application program according to the type division range.
207. And monitoring the use state of the current terminal equipment to obtain a wifi connection state, a positioning system positioning state, an application foreground or background execution state, a screen state and a position change state.
The monitoring of the current use state of the terminal device may be performed according to a time interval preset by a technician, such as 1 minute, 3 minutes, and the like, and may also be performed on a change condition of the current use state of the terminal device, which is not specifically limited in the embodiment of the present invention. The wifi connection state comprises that the wifi is in a connection state or the wifi is in an unconnected state, the positioning system positioning state comprises that positioning is successful or positioning is failed, the application foreground or background execution state comprises foreground operation or background operation, the screen state comprises a blank screen or a bright screen, and the position change state comprises a position changed in the past 5 minutes or a position changed in the past 30 minutes. And monitoring the use state so as to carry out optimization strategy on the application program of the current terminal equipment by identifying the use state and the positioning type.
It should be noted that the calculation of the movement distance cannot calculate only the beginning and the end, and the user may be moving around, i.e. calculating the user displacement every 90 s. For example, the movement distance calculation function: logic specific int innovative _ format of macro (src \ frames \ base \ core \ java \ android \ app) running in FOREGROUND, 100; public static finite impulse _ required _ SERVICE 125; black screen foreground public static final in impact _ TOP _ sliding 150; the small window runs public static final int IMPORTANCE _ VISIBLE 200.
For example, when a general installed APP runs in the foreground, processState is 2 and cannot reach a priority of 0 or 1. The special application modifies the priority of the application, and the maximum level can reach 3 after the screen is blacked. This is true, for example, for video applications, where import is always 100(processState < 3 corresponds to import 100). Therefore, the status applied to the front-end (TopMode) can be determined by processState ≦ 2, and is not at the front-end when it equals 3.
208. And judging whether to execute a preset navigation positioning system optimization strategy of the current equipment positioning system according to whether the current terminal equipment is in a moving state.
The preset navigation positioning system optimization strategy is a suspension or start operation executed on the GPS according to the navigation application program and the current terminal device use state, and a specific operation strategy may be preset by a technician, which is not specifically limited in the embodiment of the present invention.
It should be noted that the determination of the moving state specifically determines whether a position change occurs within a certain time, and also needs to perform comprehensive determination with the time length of the APP in the moving state, the time length of the APP in the black screen, the time length of the APP in the TOP mode, the time length of the GPS in the positioning success, and the like, as shown in fig. 5.
For the embodiment of the present invention, step 208 may specifically be: judging whether the current terminal equipment is in a moving state or not according to the positioning state of the positioning system, the foreground or background execution state of the application program, the screen state, the position change state and a preset moving rule; and judging whether to execute a preset navigation positioning system optimization strategy of the current equipment positioning system according to whether the equipment positioning system is in the moving state.
The movement rule may be a rule for judging whether movement exists, and a technician sets in advance, for example, whether APP runs for more than 5 minutes when the APP is in a black screen state, if so, whether GPS positioning is successful within 30s is judged, if so, whether the latest 5-minute position movement is less than 40m and the average speed of the last half hour is less than 20 m/min is judged, if so, a movement state is established, if GPS positioning is failed within 30s, whether the average speed of the half hour is less than 20 m/min is judged, if so, the movement state is established, and otherwise, no movement is established. As shown in fig. 5.
For the embodiment of the present invention, step 208 further includes: and when the current terminal equipment is detected to be in the charging mode state, interrupting the sending of the positioning request of the positioning system.
And interrupting sending a positioning request of a positioning system to suspend the GPS of the current terminal equipment.
It should be noted that, when detecting whether the current terminal device is in the charging mode, it is necessary to ensure that the location type of the APP of the current terminal device is a navigation application or a non-navigation application.
For example, the positioning type of the APP of the current terminal device is a navigation application, and when it is detected that the current terminal device is in the charging mode state, it indicates that the electric quantity is lower than the electric quantity used normally or the battery is in a large charging state, the GPS is directly suspended. By directly suspending the GPS in the charging mode, the large power consumption of the GPS in the charging state is avoided.
209a, if the mobile terminal is in the mobile state, according to the foreground or background execution state of the application program, executing and sending a positioning request of the positioning system, and continuously monitoring the use state of the current terminal equipment.
For example, the current terminal device is in a mobile state and in a foreground execution state, and continues to send a positioning request, execute a GPS positioning operation, and continue to monitor the use state of the current terminal device APP.
For the embodiment of the present invention, in step 209b parallel to step 209a, if the mobile terminal is not in the mobile state, the location request of the location system is interrupted and sent according to the foreground or background execution state of the application program.
For example, the current terminal device is not in a mobile state and is in a background execution state, and the GPS suspend operation is directly executed.
It should be noted that the policy for executing the corresponding operation according to the foreground or the background may be preset by a technician, and the embodiment of the present invention is not particularly limited.
For the embodiment of the present invention, step 210 after step 209b, determines whether to perform re-detection on the current terminal device according to the wifi connection state at a preset time interval.
And the re-detection is to detect whether the current terminal equipment meets the condition of starting the GPS positioning operation. The wifi connection state includes that when wifi is connected, the GPS is in a suspended state, and when wifi is not connected, the GPS is in a suspended state, and the re-detection conditions corresponding to different wifi connection states are different, which is not specifically limited in the embodiment of the present invention, as shown in fig. 6.
The detection may be performed at a preset time interval, and the time interval may be set to be short first and then long, for example, the detection is repeated at intervals of 22234566 … minutes, and the embodiment of the present invention is not particularly limited. And through re-detection, the use state is monitored in real time, and when the use state accords with the corresponding state of starting or suspending, the GPS is started or suspended immediately.
For the embodiment of the present invention, step 210 may specifically be: identifying the state of a wifi MAC address in the wifi connection state; if the wifi MAC address changes, judging whether to detect the current terminal equipment again according to a preset time interval or not in a wifi unconnected state; and if the wifi MAC address is unchanged, monitoring the wifi connection state under the wifi connection state, and judging whether to detect the current terminal equipment again according to the monitoring result at a preset time interval.
The method comprises the steps that the state of a wifi MAC address in the wifi connection state is identified, whether the wifi is in the connection state or the non-connection state can be identified, the wifi MAC address changes, the fact that the current terminal device is in the moving state is indicated, the wifi MAC address does not change, the fact that the current terminal device is in the non-moving state is indicated, and the method is shown in fig. 6.
It should be noted that, if the wifi MAC address is not changed, the GPS in the wifi connection state is entered to hang up, and then after detecting disconnection of the wifi or change of the MAC address, the GPS in the wifi connection state is hung up and ended, the GPS in the wifi disconnection state is entered to hang up, otherwise the GPS in the wifi connection state is continued to hang up.
For the embodiment of the present invention, in step 211a after step 210, if the Cell identification code Cell ID is detected again, it is determined whether the current terminal device executes the positioning request of the positioning system according to the reading condition of the Cell identification code Cell ID, the positioning state of the positioning system, and the position change state.
The policy of whether to execute the positioning request of the positioning system according to the reading condition, the positioning state of the positioning system, and the position change state may be preset by a technician, for example, reading the Cell ID, re-acquiring the latest positioning data after re-sending the 15s positioning request, determining whether the GPS positioning is successful from failure, or determining whether the mobile position change exceeds 40m, or determining that the Cell ID is changed, and then determining whether to execute the GPS positioning operation or re-detect according to the above result, as shown in fig. 6. By reading the Cell ID, the conditions for sending the positioning request of the positioning system are filled, so that the positioning request of the GPS can be sent more accurately.
For the embodiment of the present invention, step 211a may specifically be: judging whether to read the Cell ID; if the CellID is read, judging whether the current terminal equipment executes the positioning request of sending the positioning system or not according to the updated CellID, the positioning state of the positioning system and the position change state; and if the Cell ID is not read, judging whether the current terminal equipment executes the positioning request of the sending positioning system or not according to a preset transient positioning strategy, the positioning state of the positioning system and the position change state.
The preset short-time positioning strategy is to send a GPS positioning request at short time intervals, and the time intervals may be 15s, and the like.
For example, it is determined that only the Cell ID is used for determination, the latest Cell ID is read, it is determined whether GPS positioning is successful from failure, or whether the mobile position change exceeds 40m, or the Cell ID is changed, and it is then determined whether to perform GPS positioning operation or re-detection based on the above results, as shown in fig. 6.
For the embodiment of the present invention, step 212 after step 211a may be: and if the current terminal equipment executes the positioning request of the positioning system, sending the positioning request.
For the embodiment of the present invention, step 211a may be followed by: if the current terminal device does not execute sending the positioning request of the positioning system, the step 210 is returned.
For the embodiment of the present invention, in step 211b parallel to step 211a, if the detection is not performed again, the step of interrupting sending the positioning request of the positioning system is executed according to the wifi connection state.
For the embodiment of the present invention, specific application scenarios may be described as follows, but are not limited to the following scenarios, including: counting historical positioning statistical data of the APP according to a preset time interval, training parameters according to parameters of an application program positioning type and a preset positioning type recognition model, and meeting the condition that the ratio of the total work time is large (mOverallSurcRate): greater than 40%; bright screen on location time occupancy ratio (mScOnLocationRate): greater than 30%; mean 5 min moving distance (mAvgTravelDistance) for successful location: greater than 500; (the ratio of successful time occupation of foreground positioning is high, less screen blank navigation: more than 50%), then confirming that the APP positioning type in the current terminal equipment is a navigation application system, and monitoring the wifi connection state, the positioning system positioning state, the application foreground or background execution state, the screen state and the position change state of the current terminal equipment respectively as follows: wifi is not connected, a positioning success record exists in 0.5 minute, the APP is in a non-TOP state, the screen is dark, the total position change of the past 5 minutes is less than 40m, the average displacement of every 5 minutes in the past 30 minutes is less than 100m, the suspension of the GPS operation is executed, the corresponding optimization strategy can be used for repeatedly monitoring the position change at intervals of 22234566 … minutes, each scanning is performed for 15s, if the continuous 6-time positioning is unsuccessful, the subsequent Cell is not changed, the positioning is not started, if the screen is turned on, the navigation function is immediately recovered, if the position change is detected, the displacement change monitoring lasting for 5 minutes is carried out again, and the optimization strategies corresponding to other use states corresponding to the navigation application program can be referred to table 3.
TABLE 3
According to the other method for optimizing the performance of the positioning system, the positioning type parameters in the historical positioning data are trained, the APP in the current terminal equipment is determined to be a navigation application program according to the training result, and then the optimization rule corresponding to the navigation application program is executed according to the wifi connection state, the positioning system positioning state, the application program foreground or background execution state, the screen state and the position change state of the current terminal equipment, so that whether the GPS is hung up or not is determined according to the use states of whether the GPS is black screen or front background or moved or connected with wifi or not, the positioning function of the GPS is closed under the condition that the GPS is not required to be started, the power consumption is reduced, and the power consumption is saved.
Further, as a specific implementation of the method shown in fig. 1, an embodiment of the present invention provides an apparatus for optimizing performance of a positioning system, where as shown in fig. 7, the apparatus includes:
an acquisition unit 31 for acquiring historical positioning statistical data of an application having a positioning function; the acquisition unit 31 executes a function module for acquiring historical positioning statistical data of an application having a positioning function for an optimization device of positioning system performance.
The determining unit 32 is configured to train the historical positioning statistical data through a preset positioning type identification model, and determine that the positioning type of the application program is a navigation application program; the determining unit 32 performs training on the historical positioning statistical data through a preset positioning type recognition model for an optimizing device of the positioning system performance, and determines that the positioning type of the application program is a functional module of a navigation application program.
A first judging unit 33, configured to judge whether to execute a preset activation state optimization rule of the current terminal device positioning system according to a use state that identifies that the navigation application program is located in the current terminal device, where the preset activation state optimization rule includes positioning system optimization strategies corresponding to different use states of the navigation application program; the first determining unit 33 is a functional module that performs, for an optimizing apparatus of the positioning system performance, a function of determining whether to execute a preset starting state optimization rule of the positioning system of the current terminal device according to the use state of the navigation application program in the current terminal device.
And the executing unit 34 is configured to, if a preset opening state optimization rule of the current terminal device positioning system is executed, execute an operation of opening or closing the positioning system corresponding to the use state of the navigation application program according to the preset opening state optimization rule. The execution unit 34 is a functional module that executes, for the optimization device of the positioning system performance, if the preset opening state optimization rule of the current terminal device positioning system is executed, the operation of opening or closing the positioning system corresponding to the use state of the navigation application program according to the preset opening state optimization rule.
Compared with the prior art that the GPS is still continuously positioned when the navigation application program is not required to be started, and the terminal equipment consumes unnecessary electric quantity, the device for optimizing the performance of the positioning system provided by the invention firstly determines that the current application program is the navigation application program, and the application program which continuously starts the GPS positioning system is required to be started or closed according to the use state of the navigation application program, so that the positioning function of the GPS is closed when the navigation application program is not required to be started, the power consumption is reduced, and the electric energy is saved.
Further, as a specific implementation of the method shown in fig. 4, another apparatus for optimizing the performance of the positioning system is provided in the embodiment of the present invention, as shown in fig. 8, the apparatus includes: the device comprises an acquisition unit 41, a determination unit 42, a first judgment unit 43, an execution unit 44, a second judgment unit 45, a monitoring unit 46 and a statistic unit 47.
An acquisition unit 41 configured to acquire historical positioning statistical data of an application having a positioning function;
the determining unit 42 is configured to train the historical positioning statistical data through a preset positioning type identification model, and determine that the positioning type of the application program is a navigation application program;
a first judging unit 43, configured to judge whether to execute a preset activation state optimization rule of the current terminal device positioning system according to a use state that identifies that the navigation application is located in the current terminal device, where the preset activation state optimization rule includes positioning system optimization strategies corresponding to different use states of the navigation application;
and the executing unit 44 is configured to, if a preset opening state optimization rule of the current terminal device positioning system is executed, execute an operation of opening or closing the positioning system corresponding to the use state of the navigation application program according to the preset opening state optimization rule.
Further, in order to divide the different positioning types in detail, the apparatus further comprises: the second judgment unit 45 is configured to judge,
the second judging unit 45 is configured to judge whether the application program with the positioning function exists in a preset navigation type white list;
the determining unit 42 is further configured to directly determine that the application program with the positioning function is a navigation application program if the application program exists in a preset navigation type white list;
the obtaining unit 41 is specifically configured to obtain historical positioning statistical data of an application having a positioning function if the application does not exist in the preset navigation type white list.
Specifically, to further illustrate the method for determining the location type of the location system, the determining unit 42 includes:
an extraction module 4201, configured to extract a parameter used for determining an application positioning type from the historical positioning statistical data;
a training module 4202, configured to train the parameter according to a preset positioning type recognition model;
a determining module 4203, configured to determine that the application is a navigation application according to the trained result.
A judging module 4204, configured to judge whether the trained result is within a preset navigation class division range;
the determining module 4203 is specifically configured to determine that the application program is a navigation application program according to a preset type division range if the trained result is within the preset navigation division range.
Further, in order to perform an optimization strategy on the application program of the current terminal device by identifying the use state and the positioning type, the apparatus further comprises:
and the monitoring unit 46 is used for monitoring the use state of the current terminal device to obtain a wifi connection state, a positioning system positioning state, an application foreground or background execution state, a screen state and a position change state. The monitoring unit 46 is another function module for monitoring the use state of the current terminal device of the optimization device of the positioning system performance to obtain a wifi connection state, a positioning state of the positioning system, an execution state of a foreground or a background of an application program, a screen state, and a position change state.
The first determining unit 43 is specifically configured to determine whether to execute a preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in a moving state.
Specifically, in order to implement different optimization strategies for different usage states, the execution unit 44 includes:
the first executing module 4401 is configured to execute sending of a positioning system positioning request according to the foreground or background executing state of the application program if the mobile terminal device is in the mobile state, and continue monitoring the use state of the current terminal device;
the second executing module 4402 is configured to execute, if the mobile terminal is not in the mobile state, an interrupt to send a location request of the location system according to the foreground or background execution state of the application.
Specifically, the first judgment unit 43 includes:
the first judging module 4301 is configured to judge whether to perform re-detection on the current terminal device according to a preset time interval according to the wifi connection state;
a second determining module 4302, configured to determine, if the Cell identifier is detected again, whether the current terminal device executes sending of a positioning request of the positioning system according to a reading condition of the Cell ID, the positioning state of the positioning system, and the position change state.
Specifically, the execution unit 44 further includes:
a third executing module 4403, configured to execute, according to the wifi connection state, an interrupt to send a location request of the location system if the detection is not performed again.
Specifically, the first determining module 4301 includes:
the identification submodule 430101 is configured to identify a state of a wifi MAC address in the wifi connection state;
the first judging submodule 430102 is configured to, if the wifi MAC address changes, judge whether to perform redetection on the current terminal device according to a preset time interval in a wifi unconnected state;
and the second judgment submodule 430103 is configured to monitor the wifi connection state in the wifi connection state if the wifi MAC address is unchanged, and judge whether to perform redetection on the current terminal device according to the monitoring result at a preset time interval.
Specifically, the second determining module 4302 includes:
a third judgment sub-module 430201 for judging whether to read the Cell ID;
a fourth determining submodule 430202, configured to determine, if the Cell ID is read, whether the current terminal device executes a positioning request for sending a positioning system according to the updated Cell ID, the positioning state of the positioning system, and the position change state;
a fifth determining sub-module 430202, configured to determine, if the Cell ID is not read, whether the current terminal device executes a location request for sending the location system according to a preset transient location policy, the location state of the location system, and the location change state.
Specifically, the first judging unit 43 further includes:
a sending module 4303, configured to, when detecting that the current terminal device is in the charging mode state, interrupt sending of a positioning request of the positioning system.
The first judging unit 43 is configured to judge whether the current terminal device is in a moving state according to the positioning system positioning state, the application foreground or background execution state, the screen state, the position change state, and a preset moving rule;
the first judging unit 43 has a preset navigation positioning system optimization strategy for further judging whether to execute the current device positioning system according to whether the device positioning system is in the moving state.
Further, in order to directly extract useful data from a preset storage location when confirming the positioning type of the APP, the apparatus further includes:
and the counting unit 47 is configured to count the positioning data in the starting state of the application program with the positioning function according to a preset time interval, and store the positioning data in a preset storage location. The counting unit 47 is a functional module that counts the positioning data in the starting state of the application program with positioning function according to a preset time interval and stores the data in a preset storage location, for another optimization device for the performance of the positioning system.
According to the other positioning system performance optimization device provided by the invention, the positioning type parameters in the historical positioning data are trained, the APP in the current terminal equipment is determined to be the navigation application program according to the training result, and the optimization rule corresponding to the navigation application program is executed according to the wifi connection state, the positioning system positioning state, the application program foreground or background execution state, the screen state and the position change state of the current terminal equipment, so that whether the GPS is hung up or not is determined according to the use states of whether the GPS is black screen or front background or moved or connected with wifi and the like, the positioning function of the GPS is closed under the condition that the GPS is not required to be started, the power consumption is reduced, and the power consumption is saved.
An embodiment of the present invention provides a mobile terminal, as shown in fig. 9, one or more processors (processors) 51, communication interfaces (Communications interfaces) 52, memories (memories) 53, and a bus 54, where the processors 51, the communication interfaces 52, and the memories 53 complete mutual communication through the bus 54. The communication interface 52 may be used for information transfer between the acquisition module, the expansion module and the access module. The processor 51 may invoke logic instructions in the memory 53 to enable the apparatus to perform the image display method of any of the embodiments described above.
In addition, the logic instructions in the memory 53 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Compared with the prior art that the GPS system is not required to be started, the mobile terminal still continuously performs GPS positioning under the condition that the navigation application program is not required to be started, so that the terminal equipment consumes unnecessary electric quantity, the mobile terminal provided by the invention firstly determines that the current application program is the navigation application program, and the application program which continuously starts the GPS positioning system is required to be started or closed according to the use state of the navigation application program, so that the positioning function of the GPS is closed under the condition that the GPS is not required to be started by the navigation application program, the power consumption is reduced, and the electric energy is saved.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the method, apparatus and mobile terminal for optimizing the performance of a positioning system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiment of the invention discloses:
a1, a method for optimizing the performance of a positioning system, comprising:
acquiring historical positioning statistical data of an application program with a positioning function;
training the historical positioning statistical data through a preset positioning type recognition model, and determining that the positioning type of the application program is a navigation application program;
judging whether a preset starting state optimization rule of a positioning system of the current terminal equipment is executed or not according to the use state of the navigation application program in the current terminal equipment, wherein the preset starting state optimization rule comprises positioning system optimization strategies of the navigation application program corresponding to different use states;
and if the preset starting state optimization rule of the current terminal equipment positioning system is executed, executing the starting or closing operation of the positioning system corresponding to the use state of the navigation application program according to the preset starting state optimization rule.
A2, before the obtaining historical positioning statistics of positioning-enabled applications according to the method of A1, the method further comprises:
judging whether the application program with the positioning function exists in a preset navigation type white list or not;
if yes, directly confirming that the application program is a navigation application program;
the acquiring historical positioning statistical data of the application program with the positioning function comprises the following steps:
and if the positioning information does not exist in the preset navigation type white list, acquiring historical positioning statistical data of the application program with the positioning function.
A3, according to the method in A2, the training the historical positioning statistical data through a preset positioning type recognition model, and the determining that the positioning type of the application program is a navigation application program includes:
extracting parameters used for determining the positioning type of the application program from the historical positioning statistical data;
training the parameters according to a preset positioning type recognition model;
and determining the application program to be a navigation application program according to the training result.
A4, according to the method in A3, after the parameters are trained according to the preset positioning type recognition model, the method further comprises:
judging whether the trained result is in a preset navigation class division range or not;
the determining that the application program is a navigation application program according to the trained result comprises:
and if the training result is in a preset navigation class division range, determining the application program to be a navigation class application program according to the preset type division range.
A5, before the method according to A4, according to the use state that the navigation application program is identified to be located in the current terminal device, and whether to execute the preset on-state optimization rule of the current terminal device positioning system, the method further includes:
and monitoring the state of the current terminal equipment to obtain a wireless fidelity wifi connection state, a positioning system positioning state, an application foreground or background execution state, a screen state and a position change state.
A6, according to the method in A5, the determining whether to execute the preset opening state optimization rule of the current terminal device positioning system according to the use state of the navigation application program in the current terminal device includes:
and judging whether to execute a preset navigation positioning system optimization strategy of the current equipment positioning system according to whether the current terminal equipment is in a moving state.
A7, according to the method in A6, after judging whether to execute the preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in the moving state, the method further comprises:
if the mobile terminal is in the mobile state, according to the foreground or background execution state of the application program, executing and sending a positioning request of a positioning system, and continuously monitoring the state of the current terminal equipment;
and if the mobile terminal is not in the mobile state, executing interruption to send a positioning request of the positioning system according to the foreground or background execution state of the application program.
A8, according to the method in a7, after the interrupting sending the positioning request of the positioning system according to the foreground or background execution state of the application program if the mobile terminal is not in the moving state, the method further includes:
judging whether to detect the current terminal equipment again according to a preset time interval or not according to the wifi connection state;
and if the Cell identification code is detected again, judging whether the current terminal equipment executes the positioning request of the sending positioning system or not according to the reading condition of the Cell identification code CelI ID, the positioning state of the positioning system and the position change state.
And if the detection is not carried out again, executing to interrupt the sending of the positioning request of the positioning system according to the wifi connection state.
A9, according to the method of A8, the judging whether to redetect the current terminal device according to the wifi connection state at a preset time interval includes:
identifying the state of a wifi Medium Access Control (MAC) address in the wifi connection state;
if the wifi MAC address changes, judging whether to detect the current terminal equipment again according to a preset time interval or not in a wifi unconnected state;
and if the wifi MAC address is unchanged, monitoring the wifi connection state under the wifi connection state, and judging whether to detect the current terminal equipment again according to the monitoring result at a preset time interval.
A10, according to the method in a9, if the re-detection is performed, the determining whether the current terminal device performs sending the positioning request of the positioning system according to the reading condition of the Cell identity code Cell ID, the positioning state of the positioning system, and the position change state includes:
judging whether to read the Cell ID;
if so, judging whether the current terminal equipment executes a positioning request for sending a positioning system or not according to the updated Cell ID, the positioning state of the positioning system and the position change state;
if not, judging whether the current terminal equipment executes the positioning request of the sending positioning system or not according to a preset transient positioning strategy, the positioning state of the positioning system and the position change state.
A11, before the method of A6, wherein the method determines whether to execute the preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in a moving state, the method further comprises:
and when the current terminal equipment is detected to be in the charging mode state, interrupting the sending of the positioning request of the positioning system.
A12, according to the method in A6, the determining whether to execute the preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in the moving state includes:
judging whether the current terminal equipment is in a moving state or not according to the positioning state of the positioning system, the foreground or background execution state of the application program, the screen state, the position change state and a preset moving rule;
and judging whether to execute a preset navigation positioning system optimization strategy of the current equipment positioning system according to whether the equipment positioning system is in the moving state.
A13, the method of any one of A1-12, wherein before obtaining historical location statistics of a location-enabled application, the method further comprises:
and counting the positioning data in the starting state of the application program with the positioning function according to a preset time interval, and storing the positioning data in a preset storage position.
B14, an apparatus for optimizing the performance of a positioning system, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring historical positioning statistical data of an application program with a positioning function;
the determining unit is used for training the historical positioning statistical data through a preset positioning type recognition model and determining that the positioning type of the application program is a navigation application program;
the first judging unit is used for judging whether to execute a preset opening state optimization rule of a positioning system of the current terminal equipment according to the use state of the navigation application program in the current terminal equipment, wherein the preset opening state optimization rule comprises positioning system optimization strategies corresponding to the navigation application program and different use states;
and the execution unit is used for executing the opening or closing operation of the positioning system corresponding to the use state of the navigation application program according to the preset opening state optimization rule if the preset opening state optimization rule of the current terminal equipment positioning system is executed.
B15, the apparatus of B14, the apparatus further comprising: a second judging unit for judging whether the first signal is a signal,
the second judging unit is used for judging whether the application program with the positioning function exists in a preset navigation type white list or not;
the determining unit is further configured to directly confirm that the application program is a navigation application program if the application program with the positioning function exists in a preset navigation type white list;
the obtaining unit is specifically configured to obtain historical positioning statistical data of an application program with a positioning function if the application program does not exist in a preset navigation type white list.
B16, the apparatus according to B15, the determining unit comprising:
the extraction module is used for extracting parameters used for determining the positioning type of the application program from the historical positioning statistical data;
the training module is used for training the parameters according to a preset positioning type recognition model;
and the determining module is used for determining the application program to be a navigation application program according to the trained result.
B17, the apparatus of B16, the determining unit further comprising: a judgment module for judging whether the received signal is correct,
the judging module is used for judging whether the trained result is in a preset navigation class dividing range or not;
the determining module is specifically configured to determine that the application program is a navigation application program according to a preset type division range if the trained result is within the preset navigation type division range.
B18, the apparatus of B17, the apparatus further comprising:
and the monitoring unit is used for monitoring the use state of the current terminal equipment to obtain a wifi connection state, a positioning system positioning state, an application program foreground or background execution state, a screen state and a position change state.
B19, the device according to B18,
the first judging unit is specifically configured to judge whether to execute a preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in a moving state.
B20, the apparatus of B19, the execution unit comprising:
the first execution module is used for executing and sending a positioning system positioning request according to the foreground or background execution state of the application program if the mobile terminal is in the mobile state, and continuously monitoring the use state of the current terminal equipment;
and the second execution module is used for executing interruption to send the positioning request of the positioning system according to the foreground or background execution state of the application program if the mobile terminal is not in the mobile state.
B21, the device according to B20, the first judging unit includes:
the first judgment module is used for judging whether to detect the current terminal equipment again according to a preset time interval according to the wifi connection state;
and a second determining module, configured to determine, if the Cell identifier is detected again, whether to execute sending of a positioning request of the positioning system by the current terminal device according to a reading condition of the Cell ID, the positioning state of the positioning system, and the position change state.
The execution unit further includes:
and the third execution module is used for executing the positioning request of the interrupt sending positioning system according to the wifi connection state if the detection is not carried out again.
B22, the device according to B21, the first judging module includes:
the identification submodule is used for identifying the state of the wifi MAC address in the wifi connection state;
the first judgment submodule is used for judging whether to detect the current terminal equipment again according to a preset time interval or not in a wifi unconnected state if the wifi MAC address changes;
and the second judgment submodule is used for monitoring the wifi connection state under the wifi connection state if the wifi MAC address is unchanged, and judging whether to detect the current terminal equipment again according to the monitoring result at a preset time interval.
B23, the apparatus according to B22, the second determining module comprising:
a third judging submodule for judging whether to read the Cell ID;
a fourth judging submodule, configured to, if the Cell ID is read, judge whether the current terminal device executes a positioning request for sending a positioning system according to the updated Cell ID, the positioning state of the positioning system, and the position change state;
and the fifth judging submodule is used for judging whether the current terminal equipment executes the positioning request of the sending positioning system or not according to a preset transient positioning strategy, the positioning state of the positioning system and the position change state if the Cell ID is not read.
B24, the apparatus according to B19, the first judgment unit further comprising:
and the sending module is used for interrupting sending of the positioning request of the positioning system when the current terminal equipment is detected to be in the charging mode state.
B25, the device according to B19,
the first judging unit is used for judging whether the current terminal equipment is in a moving state or not according to the positioning state of the positioning system, the foreground or background execution state of an application program, the screen state, the position change state and a preset moving rule;
the first judging unit is provided with a preset navigation positioning system optimization strategy used for judging whether to execute the current equipment positioning system according to the moving state.
B26, the apparatus according to any one of B14-25, further comprising:
and the counting unit is used for counting the positioning data of the application program with the positioning function in the starting state according to the preset time interval and storing the positioning data in a preset storage position.
C27, a mobile terminal comprising a processor and a memory:
the memory is used for storing a program for executing the method of any one of A1-A13,
the processor is configured to execute programs stored in the memory.
Claims (19)
1. A method for optimizing the performance of a positioning system, comprising:
acquiring historical positioning statistical data of an application program with a positioning function;
training the historical positioning statistical data through a preset positioning type recognition model, and determining that the positioning type of the application program is a navigation application program;
judging whether a preset starting state optimization rule of a positioning system of the current terminal equipment is executed or not according to the use state of the navigation application program in the current terminal equipment, wherein the preset starting state optimization rule comprises positioning system optimization strategies of the navigation application program corresponding to different use states;
if the preset starting state optimization rule of the current terminal equipment positioning system is executed, the starting or closing operation of the positioning system corresponding to the use state of the navigation application program is executed according to the preset starting state optimization rule;
before the step of judging whether to execute the preset starting state optimization rule of the current terminal equipment positioning system according to the use state of the navigation application program in the current terminal equipment, the method further comprises the following steps:
monitoring the state of the current terminal equipment to obtain a wireless fidelity wifi connection state, a positioning system positioning state, an application foreground or background execution state, a screen state and a position change state;
the judging whether to execute the preset starting state optimization rule of the current terminal equipment positioning system according to the use state of the navigation application program in the current terminal equipment comprises the following steps:
judging whether to execute a preset navigation positioning system optimization strategy of a current equipment positioning system according to whether the current terminal equipment is in a moving state;
if the mobile terminal is not in the mobile state, executing interruption to send a positioning request of a positioning system according to the foreground or background execution state of the application program;
if the mobile terminal is not in the mobile state, after the positioning request of the positioning system is interrupted and sent according to the execution state of the foreground or the background of the application program, the method further comprises the following steps: judging whether to detect the current terminal equipment again according to a preset time interval or not according to the wifi connection state; if the Cell identification code is detected again, judging whether the current terminal equipment executes a positioning request for sending a positioning system or not according to the reading condition of the Cell identification code Cell ID, the positioning state of the positioning system and the position change state; if the detection is not carried out again, the positioning request of the positioning system is interrupted and sent according to the wifi connection state;
judging whether to retest the current terminal equipment according to the wifi connection state according to the preset time interval includes:
identifying the state of a wifi Medium Access Control (MAC) address in the wifi connection state;
if the wifi MAC address changes, judging whether to detect the current terminal equipment again according to a preset time interval or not in a wifi unconnected state;
and if the wifi MAC address is unchanged, monitoring the wifi connection state under the wifi connection state, and judging whether to detect the current terminal equipment again according to the monitoring result at a preset time interval.
2. The method of claim 1, wherein prior to obtaining historical location statistics for a location-enabled application, the method further comprises:
judging whether the application program with the positioning function exists in a preset navigation type white list or not;
if yes, directly confirming that the application program is a navigation application program;
the acquiring historical positioning statistical data of the application program with the positioning function comprises the following steps:
and if the positioning information does not exist in the preset navigation type white list, acquiring historical positioning statistical data of the application program with the positioning function.
3. The method of claim 2, wherein the training of the historical positioning statistics through a preset positioning type recognition model to determine the positioning type of the application as a navigation application comprises:
extracting parameters used for determining the positioning type of the application program from the historical positioning statistical data;
training the parameters according to a preset positioning type recognition model;
and determining the application program to be a navigation application program according to the training result.
4. The method of claim 3, wherein after the training of the parameters according to the preset location type recognition model, the method further comprises:
judging whether the trained result is in a preset navigation class division range or not;
the determining that the application program is a navigation application program according to the trained result comprises:
and if the training result is in a preset navigation class division range, determining the application program to be a navigation class application program according to the preset type division range.
5. The method of claim 1, wherein after determining whether to execute the preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in a moving state, the method further comprises:
and if the mobile terminal is in the mobile state, executing and sending a positioning system positioning request according to the foreground or background execution state of the application program, and continuously monitoring the state of the current terminal equipment.
6. The method according to claim 1, wherein if the re-detection is performed, the determining whether the current terminal device performs sending the positioning request of the positioning system according to the reading condition of the cell identification code CellID, the positioning state of the positioning system, and the position change state comprises:
judging whether to read the Cell ID;
if so, judging whether the current terminal equipment executes a positioning request for sending a positioning system or not according to the updated Cell ID, the positioning state of the positioning system and the position change state;
if not, judging whether the current terminal equipment executes the positioning request of the sending positioning system or not according to a preset transient positioning strategy, the positioning state of the positioning system and the position change state.
7. The method of claim 1, wherein before determining whether to execute the preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in a moving state, the method further comprises:
and when the current terminal equipment is detected to be in the charging mode state, interrupting the sending of the positioning request of the positioning system.
8. The method of claim 1, wherein the determining whether to execute the preset navigation positioning system optimization strategy of the current device positioning system according to whether the current terminal device is in a moving state comprises:
judging whether the current terminal equipment is in a moving state or not according to the positioning state of the positioning system, the foreground or background execution state of the application program, the screen state, the position change state and a preset moving rule;
and judging whether to execute a preset navigation positioning system optimization strategy of the current equipment positioning system according to whether the equipment positioning system is in the moving state.
9. The method of any of claims 1-8, wherein prior to obtaining historical location statistics for a location-enabled application, the method further comprises:
and counting the positioning data in the starting state of the application program with the positioning function according to a preset time interval, and storing the positioning data in a preset storage position.
10. An apparatus for optimizing the performance of a positioning system, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring historical positioning statistical data of an application program with a positioning function;
the determining unit is used for training the historical positioning statistical data through a preset positioning type recognition model and determining that the positioning type of the application program is a navigation application program;
the first judging unit is used for judging whether to execute a preset opening state optimization rule of a positioning system of the current terminal equipment according to the use state of the navigation application program in the current terminal equipment, wherein the preset opening state optimization rule comprises positioning system optimization strategies corresponding to the navigation application program and different use states;
the execution unit is used for executing the starting or closing operation of the positioning system corresponding to the use state of the navigation application program according to the preset starting state optimization rule if the preset starting state optimization rule of the current terminal equipment positioning system is executed;
the device further comprises:
the monitoring unit is used for monitoring the use state of the current terminal equipment to obtain a wifi connection state, a positioning system positioning state, an application program foreground or background execution state, a screen state and a position change state;
the first judging unit is specifically used for judging whether to execute a preset navigation positioning system optimization strategy of a current equipment positioning system according to whether the current terminal equipment is in a moving state;
the execution unit includes:
the second execution module is used for executing interruption to send a positioning request of the positioning system according to the foreground or background execution state of the application program if the mobile terminal is not in the mobile state;
the first judgment unit includes:
the first judgment module is used for judging whether to detect the current terminal equipment again according to a preset time interval according to the wifi connection state;
a second determining module, configured to determine, if the cell identification code CellID is detected again, whether the current terminal device executes sending of a positioning request of the positioning system according to a reading condition of the cell identification code CellID, the positioning state of the positioning system, and the position change state;
the execution unit further includes:
the third execution module is used for executing the positioning request of the interrupt sending positioning system according to the wifi connection state if the detection is not carried out again;
the first judging module comprises:
the identification submodule is used for identifying the state of the wifi MAC address in the wifi connection state;
the first judgment submodule is used for judging whether to detect the current terminal equipment again according to a preset time interval or not in a wifi unconnected state if the wifi MAC address changes;
and the second judgment submodule is used for monitoring the wifi connection state under the wifi connection state if the wifi MAC address is unchanged, and judging whether to detect the current terminal equipment again according to the monitoring result at a preset time interval.
11. The apparatus of claim 10, further comprising: a second judging unit for judging whether the first signal is a signal,
the second judging unit is used for judging whether the application program with the positioning function exists in a preset navigation type white list or not;
the determining unit is further configured to directly confirm that the application program is a navigation application program if the application program with the positioning function exists in a preset navigation type white list;
the obtaining unit is specifically configured to obtain historical positioning statistical data of an application program with a positioning function if the application program does not exist in a preset navigation type white list.
12. The apparatus of claim 11, wherein the determining unit comprises:
the extraction module is used for extracting parameters used for determining the positioning type of the application program from the historical positioning statistical data;
the training module is used for training the parameters according to a preset positioning type recognition model;
and the determining module is used for determining the application program to be a navigation application program according to the trained result.
13. The apparatus of claim 12, wherein the determining unit further comprises: a judgment module for judging whether the received signal is correct,
the judging module is used for judging whether the trained result is in a preset navigation class dividing range or not;
the determining module is specifically configured to determine that the application program is a navigation application program according to a preset type division range if the trained result is within the preset navigation type division range.
14. The apparatus of claim 10, wherein the execution unit further comprises:
and the first execution module is used for executing and sending a positioning system positioning request according to the foreground or background execution state of the application program if the mobile terminal is in the mobile state, and continuously monitoring the use state of the current terminal equipment.
15. The apparatus of claim 10, wherein the second determining module comprises:
a third judging submodule for judging whether to read the Cell ID;
a fourth judging submodule, configured to, if the Cell ID is read, judge whether the current terminal device executes a positioning request for sending a positioning system according to the updated Cell ID, the positioning state of the positioning system, and the position change state;
and the fifth judging submodule is used for judging whether the current terminal equipment executes the positioning request of the sending positioning system or not according to a preset transient positioning strategy, the positioning state of the positioning system and the position change state if the Cell ID is not read.
16. The apparatus according to claim 10, wherein the first determining unit further comprises:
and the sending module is used for interrupting sending of the positioning request of the positioning system when the current terminal equipment is detected to be in the charging mode state.
17. The apparatus of claim 10,
the first judging unit is used for judging whether the current terminal equipment is in a moving state or not according to the positioning state of the positioning system, the foreground or background execution state of an application program, the screen state, the position change state and a preset moving rule;
the first judging unit is provided with a preset navigation positioning system optimization strategy used for judging whether to execute the current equipment positioning system according to the moving state.
18. The apparatus of any one of claims 10-17, further comprising:
and the counting unit is used for counting the positioning data of the application program with the positioning function in the starting state according to the preset time interval and storing the positioning data in a preset storage position.
19. A mobile terminal, comprising a processor and a memory:
the memory is for storing a program for performing the method of any one of claims 1 to 9, and the processor is configured for executing the program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710051100.0A CN106713662B (en) | 2017-01-23 | 2017-01-23 | Method and device for optimizing performance of positioning system and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710051100.0A CN106713662B (en) | 2017-01-23 | 2017-01-23 | Method and device for optimizing performance of positioning system and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106713662A CN106713662A (en) | 2017-05-24 |
CN106713662B true CN106713662B (en) | 2020-03-24 |
Family
ID=58909466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710051100.0A Active CN106713662B (en) | 2017-01-23 | 2017-01-23 | Method and device for optimizing performance of positioning system and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713662B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107796409B (en) * | 2016-09-05 | 2021-03-05 | 阿里巴巴(中国)有限公司 | Navigation control method and device |
CN106872996B (en) * | 2017-01-23 | 2020-02-14 | 北京安云世纪科技有限公司 | Method and device for optimizing performance of positioning system and mobile terminal |
CN107317923B (en) * | 2017-06-19 | 2021-06-01 | 深圳传音通讯有限公司 | Method, device and terminal for controlling GPS running state |
CN107423618B (en) * | 2017-07-12 | 2021-08-10 | 惠州Tcl移动通信有限公司 | Application program satellite positioning request control method, storage device and mobile terminal |
CN107367743B (en) * | 2017-07-18 | 2020-06-16 | 成都佳锂科技有限公司 | Power consumption control method of electronic positioning equipment |
CN107678803B (en) * | 2017-09-30 | 2020-12-01 | Oppo广东移动通信有限公司 | Application control method and device, storage medium and electronic equipment |
CN108156313B (en) * | 2017-12-13 | 2019-12-31 | Oppo广东移动通信有限公司 | Positioning control method and device, storage medium and terminal equipment |
CN108829228A (en) * | 2018-06-01 | 2018-11-16 | Oppo(重庆)智能科技有限公司 | Positioning function control method, mobile terminal and computer readable storage medium |
CN109274810A (en) * | 2018-09-29 | 2019-01-25 | 努比亚技术有限公司 | A kind of terminal processing method, terminal and computer readable storage medium |
CN112319498B (en) * | 2020-10-12 | 2023-04-11 | 武汉蓝星科技股份有限公司 | Method and system for reducing power consumption of electronic equipment based on GPS |
Citations (4)
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 |
CN105208215A (en) * | 2015-10-22 | 2015-12-30 | 小米科技有限责任公司 | Locating control method, device and terminal |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Method and device for selecting positioning mode by mobile terminal |
CN105955073A (en) * | 2016-04-27 | 2016-09-21 | 乐视控股(北京)有限公司 | Automatic starting method, system and mobile intelligent devices for satellite positioning device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8543135B2 (en) * | 2011-05-12 | 2013-09-24 | Amit Goyal | Contextually aware mobile device |
US9052197B2 (en) * | 2012-06-05 | 2015-06-09 | Apple Inc. | Providing navigation instructions while device is in locked mode |
-
2017
- 2017-01-23 CN CN201710051100.0A patent/CN106713662B/en active Active
Patent Citations (4)
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 |
CN105208215A (en) * | 2015-10-22 | 2015-12-30 | 小米科技有限责任公司 | Locating control method, device and terminal |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Method and device for selecting positioning mode by mobile terminal |
CN105955073A (en) * | 2016-04-27 | 2016-09-21 | 乐视控股(北京)有限公司 | Automatic starting method, system and mobile intelligent devices for satellite positioning device |
Also Published As
Publication number | Publication date |
---|---|
CN106713662A (en) | 2017-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106713662B (en) | Method and device for optimizing performance of positioning system and mobile terminal | |
CN106872996B (en) | Method and device for optimizing performance of positioning system and mobile terminal | |
CN105139641B (en) | A kind of vehicle dispatching method and system based on WiFi relay stations | |
CN103813269B (en) | Traffic management device and flow managing method | |
WO2013112647A1 (en) | Managing data transfers over network connections based on priority and a data usage plan | |
CN112040432A (en) | Method and device for identifying mobile terminal user type | |
CN105760230A (en) | Method and device for automatically adjusting operation of cloud host | |
CN112351447A (en) | Public place security big data collection method and system based on block chain system | |
CN112383874B (en) | Cross-zone coverage identification method, device, equipment and storage medium | |
CN106878945B (en) | Optimization method, device and the mobile terminal of positioning system performance | |
CN108389074A (en) | A kind of data processing method and relevant device based on Car license recognition | |
CN110557722B (en) | Target group partner identification method and related device | |
CN109068329A (en) | Dummy location recognition methods, device, equipment and computer readable storage medium | |
CN112383936B (en) | Method and device for evaluating number of accessible users | |
CN111860875A (en) | Information screening method and device, electronic equipment and storage medium | |
CN108536542A (en) | Position monitoring method and device | |
CN104883705A (en) | Problem positioning method for data service complaints and device thereof | |
CN103222288A (en) | Processing method and network equipment of international mobile equipment identification information IMEI | |
CN104867198A (en) | Queuing time acquiring method and queuing time acquiring apparatus | |
CN110933690B (en) | Mobile terminal room division distinguishing method, device, server and storage medium | |
CN106535102A (en) | Mobile terminal positioning method and mobile terminal | |
CN109121137B (en) | Method and device for identifying user number use type of double-card terminal | |
CN113163331B (en) | Service response method, device, equipment and storage medium | |
CN111787584B (en) | Data acquisition method and system based on Internet of things | |
CN108419238A (en) | A kind of method and device of detection rogue AP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
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: 20170726 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 |