CN107454253B - Method for starting Global Positioning System (GPS) and mobile terminal - Google Patents

Method for starting Global Positioning System (GPS) and mobile terminal Download PDF

Info

Publication number
CN107454253B
CN107454253B CN201710587773.8A CN201710587773A CN107454253B CN 107454253 B CN107454253 B CN 107454253B CN 201710587773 A CN201710587773 A CN 201710587773A CN 107454253 B CN107454253 B CN 107454253B
Authority
CN
China
Prior art keywords
mobile terminal
starting
gps
function
environmental parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710587773.8A
Other languages
Chinese (zh)
Other versions
CN107454253A (en
Inventor
肖亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201710587773.8A priority Critical patent/CN107454253B/en
Publication of CN107454253A publication Critical patent/CN107454253A/en
Application granted granted Critical
Publication of CN107454253B publication Critical patent/CN107454253B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location

Abstract

The invention provides a method for starting a Global Positioning System (GPS) and a mobile terminal, which relate to the technical field of communication, and the method comprises the following steps: acquiring at least one environmental parameter of the mobile terminal, wherein the at least one environmental parameter is used for indicating the current state of the mobile terminal; judging whether at least one environmental parameter meets a preset condition, wherein the preset condition is a condition set according to a use record of a GPS function of the mobile terminal; and when at least one environmental parameter meets a preset condition, starting the GPS function of the mobile terminal. The invention judges whether the GPS function needs to be started or not according to at least one environmental parameter, and under the condition of determining that the GPS function needs to be started, the GPS function is started in a hot start mode, so that the time spent for starting the GPS function can be reduced, and the efficiency for starting the GPS function can be improved.

Description

Method for starting Global Positioning System (GPS) and mobile terminal
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for starting a Global Positioning System (GPS) and a mobile terminal.
Background
In the process of traveling, a user usually starts a Global Positioning System (GPS) through a mobile terminal to perform Positioning and navigation, so as to determine a traveling route. The time it takes to start the GPS varies from case to case.
In the related art, starting the GPS may be divided into a hot start, a warm start, and a cold start according to a start speed. The hot start is started according to all data of the last GPS start, the warm start is started according to partial data of the last GPS start, and the cold start is started according to the data of the last GPS start, so that the related data of the GPS start are required to be acquired again to complete the GPS start. Therefore, the hot start is fastest, the cold start is slowest, and the speed of the warm start is between that of the hot start and that of the cold start.
Therefore, when the user starts the GPS, the speed of starting the GPS is slow, which causes a problem of low starting efficiency.
Disclosure of Invention
The invention provides a method for starting a Global Positioning System (GPS) and a mobile terminal, which aim to solve the problem of low starting efficiency caused by low GPS starting speed in the prior art.
According to a first aspect of the present invention, there is provided a method for starting a global positioning system GPS, applied to a mobile terminal, the method comprising:
acquiring at least one environmental parameter of the mobile terminal, wherein the at least one environmental parameter is used for indicating the current state of the mobile terminal;
judging whether the at least one environmental parameter meets a preset condition, wherein the preset condition is a condition set according to a use record of a GPS function of the mobile terminal;
and when the at least one environmental parameter meets the preset condition, starting the GPS function of the mobile terminal.
According to a second aspect of the present invention, there is provided a mobile terminal comprising:
the mobile terminal comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring at least one environmental parameter of the mobile terminal, and the at least one environmental parameter is used for indicating the current state of the mobile terminal;
the first judgment module is used for judging whether the at least one environmental parameter meets a preset condition, wherein the preset condition is a condition set according to a use record of a GPS function of the mobile terminal;
and the starting module is used for starting the GPS function of the mobile terminal when the at least one environmental parameter meets the preset condition.
According to a third aspect of the present invention, there is provided a mobile terminal comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of starting a global positioning system, GPS, as defined in any one of the first aspects.
According to a fourth aspect of the present invention, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of starting a global positioning system, GPS, as set forth in any of the first aspects.
According to the method for starting the GPS and the mobile terminal provided by the embodiment of the invention, whether at least one environmental parameter meets the preset condition is judged by acquiring the at least one environmental parameter of the mobile terminal, the preset condition is a condition set according to the use record of the GPS function of the mobile terminal, when the at least one environmental parameter meets the preset condition, the GPS function of the mobile terminal is started, so that when the GPS function is started by a user in the subsequent detection, the GPS function is started in a hot start mode according to the acquired data required for starting the GPS function, the time spent for starting the GPS function is reduced, and the efficiency for starting the GPS function can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a method for activating a global positioning system GPS according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a method for activating a global positioning system GPS according to an embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 8 is a block diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The term "and/or" in the present invention is only an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a navigation device, a wearable device, a smart band, a pedometer, and the like.
Fig. 1 is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, where the mobile terminal 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile terminal in detail with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000(Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), TDD-LTE (Time Division duplex Long Term Evolution), Time Division-Long Term Evolution (Time Division-Long Term Evolution), Fi-module, NFC module, and Wi-module.
The mobile terminal may assist the user in sending and receiving e-mail, browsing web pages, accessing streaming media, etc. through the network module 102, which provides the user with wireless broadband internet access, and the network module 102 includes, but is not limited to, RJ45 port module, etc.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration) for recognizing the attitude of the mobile terminal, and related functions (such as pedometer and tapping) for vibration recognition; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile terminal, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. In particular, other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although the touch panel 1071 and the display panel 1061 are shown in fig. 1 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the mobile terminal 100 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Based on the hardware structure of the mobile terminal, the following detailed description will be made of embodiments of the present invention.
Example one
Referring to fig. 2, a flowchart illustrating steps of a method for starting a global positioning system GPS according to an embodiment of the present invention may specifically include the following steps:
step 201, at least one environmental parameter of the mobile terminal is collected.
Wherein the at least one environmental parameter is indicative of a current state of the mobile terminal.
In order to judge whether the user starts the GPS function within a future period of time, the mobile terminal needs to acquire at least one environmental parameter, so that the current state of the mobile terminal can be determined according to the at least one environmental parameter in the subsequent step, and whether the user starts the GPS function within a future period of time can be judged according to the determined state, so that whether the GPS function needs to be started can be determined according to the judgment result. Under the condition of starting the GPS function, the data for starting the GPS function can be acquired, so that when a user starts the GPS function, the mobile terminal can start the GPS function in a hot start mode according to the acquired data for starting the GPS function.
The mobile terminal may periodically acquire at least one environmental data, and may also acquire the environmental data in real time, which is not limited in the embodiments of the present invention. Moreover, the future period of time is typically 2 hours, although other periods of time are possible, as the invention is not limited in this respect.
It should be noted that the at least one environmental parameter may include at least one of the following parameters: the method comprises the steps of acquiring the current parameter acquisition time of the mobile terminal, the current geographic position information of the mobile terminal, the current wireless connection state of the mobile terminal and the current charging state of the mobile terminal. Of course, other environmental parameters may also be included, which is not limited in the embodiment of the present invention.
Step 202, determining whether at least one environmental parameter meets a preset condition.
The preset condition is set according to the usage record of the GPS function of the mobile terminal, and the preset condition can be obtained by analyzing and counting sample data acquired when the user starts the GPS function and is used for judging whether the user starts the GPS function within a future period of time according to at least one environmental parameter.
The mobile terminal can match the acquired at least one environmental parameter with a preset condition, and judge whether the at least one environmental parameter meets the preset condition, that is, determine the similarity between the current state of the mobile terminal and the function starting state of the mobile terminal, wherein the function starting state is the state of the mobile terminal before the user starts the GPS function.
If the similarity degree is higher, the user is possible to start the GPS function of the mobile terminal in a future period of time, the at least one environmental parameter meets the preset condition, and the GPS function can be started in the subsequent steps; however, if the similarity degree is not high, it indicates that the user may not turn on the GPS function of the mobile terminal in a future period of time, the at least one environmental parameter does not meet the preset condition, and the GPS function does not need to be turned on in a subsequent step.
That is, whether the user will start the GPS function within a future period of time is determined in advance according to the preset condition in combination with the acquired at least one environmental parameter. If the user is determined to start the GPS function, the GPS function can be started in the subsequent steps to acquire the data for starting the GPS function, so that the user can start the GPS function in a hot start mode according to the data acquired in advance when starting.
Specifically, for each environmental parameter in at least one environmental parameter collected by the mobile terminal, the mobile terminal may determine whether the environmental parameter is consistent with or similar to a corresponding parameter in the function starting state, if the environmental parameter is consistent with or similar to the corresponding parameter, the similarity degree corresponding to the environmental parameter may be obtained according to the weight corresponding to the environmental parameter, and finally, the similarity degree between the current state of the mobile terminal and the function starting state stored in advance is determined according to the similarity degree corresponding to each environmental parameter.
The weight corresponding to the environmental parameter is used for indicating the importance degree of the environmental parameter, and if the weight of a certain environmental parameter is higher, the higher the weight is, the easier the weight is to judge whether the user will start the GPS function within a future period of time according to the environmental parameter.
For example, the similarity may be a numerical value, and when the similarity is greater than a preset threshold, it indicates that the current state of the mobile terminal is similar to or consistent with the pre-stored function-on state, and the user may turn on the GPS function within a future period of time, so that a determination result indicating that the GPS function is turned on may be output.
And 203, when at least one environmental parameter meets a preset condition, starting the GPS function of the mobile terminal.
After judging whether at least one environmental parameter meets the preset condition, the mobile terminal can determine whether the user can start the GPS function within a period of time in the future according to the judgment result. When at least one environmental parameter meets the preset condition, the user can start the GPS function in a period of time in the future, and the GPS function needs to be started at present so as to acquire the data for starting the GPS function.
It is understood that if the at least one environmental parameter does not meet the preset condition, it indicates that the user will not turn on the GPS function in a future period of time, and the GPS function does not need to be turned on to acquire the data for turning on the GPS.
It should be noted that, if it is determined that the GPS function needs to be started according to the determination result, the GPS function needs to be started in a warm start or cold start manner, so as to acquire start data for starting the GPS function, so that when it is detected that the GPS function is started by the user, the mobile terminal may start the GPS function in a warm start manner according to the currently acquired start data.
To sum up, the method for starting a global positioning system GPS according to the embodiment of the present invention judges whether at least one environmental parameter of a mobile terminal meets a preset condition by acquiring the at least one environmental parameter, where the preset condition is a condition set according to a usage record of a GPS function of the mobile terminal, and starts the GPS function of the mobile terminal when the at least one environmental parameter meets the preset condition. Whether the GPS function needs to be started is judged according to at least one environmental parameter, the GPS function can be started and data required for starting the GPS function can be acquired under the condition that the GPS function needs to be started, so that when the GPS function is detected to be started by a user, the GPS function can be started in a hot start mode according to the acquired data required for starting the GPS function, the time spent for starting the GPS function can be reduced, and the efficiency for starting the GPS function can be improved.
Example two
Referring to fig. 3, a flowchart illustrating steps of a method for starting a global positioning system GPS according to an embodiment of the present invention may specifically include the following steps:
step 301, determining a preset condition according to at least one sample data.
In the process of determining whether the user will start the GPS function within a future period of time, it needs to be determined according to the current state of the mobile terminal in combination with a preset condition, and therefore, it needs to perform analysis statistics according to the state of the mobile terminal when the user starts the GPS function, that is, it is set according to the usage record of the GPS function of the mobile terminal, so as to obtain the preset condition.
Specifically, when the mobile terminal detects that the user triggers the operation of starting the GPS function, at least one sample data may be collected and analyzed according to the at least one sample data, so as to obtain the preset condition.
The at least one sample datum is used to indicate a state of the mobile terminal in a function starting time period corresponding to when the GPS function is started, where the function starting time period is a time corresponding to a first time before the GPS function is started to a second time after the GPS function is started, the function starting time period may include a first time period and a second time period, the first time period is a time corresponding to a time from the first time to the time when the GPS function is started, the second time period is a time corresponding to a time from the time when the GPS function is started to the second time, and the first time period and the second time period may be the same or different.
For example, the first time period is 1 hour, the second time period is 0.5 hour, if the mobile terminal detects that the user starts the GPS function at 14:00, the first time is 13:00, the second time is 14:30, and the corresponding function start time period is 13:00 to 14: 30.
It should be noted that the at least one sample data may include at least one of the following parameters: the mobile terminal starts a function starting time period corresponding to the GPS function; the mobile terminal corresponds to the geographical position information within the function starting time period; the wireless connection state of the mobile terminal in the function starting time period, and the charging state of the mobile terminal in the function starting time period. In addition, the at least one sample data may further include a duration for which the mobile terminal turns on the GPS function, that is, from a time when the mobile terminal turns on the GPS function to a time when the mobile terminal turns off the GPS function. Of course, the at least one sample data may also include other data, which is not limited in this embodiment of the present invention.
After the mobile terminal collects at least one sample data, the at least one sample data can be analyzed in a preset mode, and a preset condition is obtained after a large amount of sample data is continuously corrected and improved.
Step 302, at least one environmental parameter of the mobile terminal is collected.
Step 302 is similar to step 201 and will not be described herein again.
Step 303, judging whether the mobile terminal meets the GPS starting condition.
After the mobile terminal collects at least one environmental parameter, whether the mobile terminal meets the GPS starting condition or not can be judged according to the at least one environmental parameter, so that whether the GPS function needs to be started or not can be determined according to the judgment result in the subsequent steps.
Specifically, whether the frequency of starting the GPS function by the mobile terminal is less than a preset frequency may be determined according to the number of times that the mobile terminal starts the GPS function within a first preset time period; and/or judging whether the mobile terminal is located in an outdoor environment according to the wireless signal intensity of the mobile terminal; and/or judging whether the mobile terminal is in a non-hot start state or not according to the time when the mobile terminal closes the GPS function last time.
The preset frequency is used for indicating the frequency of the user using the GPS function, if the frequency of starting the GPS function by the mobile terminal in a first preset time period is not less than the preset frequency, the user frequently uses the GPS function, and when the user starts the GPS function next time, the user can start the GPS function in a hot start mode according to the data of starting the GPS function last time. It should be noted that the first preset time period may be 08: 00-20: 00, and other time periods are also possible, which are not limited in this embodiment of the present invention.
Moreover, when the user is in an indoor environment, the mobile terminal may be in wireless connection with an indoor wireless device, and the user needs to use the GPS function in the outdoor environment, so that whether the current wireless signal strength of the mobile terminal is less than the preset strength can be judged according to the wireless signal strength of the mobile terminal, if the current wireless signal strength of the mobile terminal is less than the preset strength, the user is in the outdoor environment, the GPS function may be started, and the mobile terminal meets the GPS starting condition; however, if the current wireless signal strength of the mobile terminal is not less than the preset strength, it indicates that the user is in an indoor environment, the user may not start the GPS function in a future period of time, and the mobile terminal does not satisfy the GPS start condition. The preset strength may be set according to a wireless connection condition of the mobile terminal, which is not limited in the embodiment of the present invention.
In addition, whether the time difference between the current time and the time of closing the GPS function last time is greater than a preset time length or not can be judged according to the time of closing the GPS function last time of the mobile terminal, if the time difference is greater than the preset time length, the mobile terminal cannot start the GPS function in a hot start mode according to the data of starting the GPS function last time, and the mobile terminal meets the GPS starting condition; if the time difference is not greater than the preset time, it indicates that the mobile terminal can start the GPS function in a hot start mode according to the data of the last GPS function start, and the mobile terminal does not meet the GPS start condition. The preset time period is usually 2 hours, and of course, other time periods may be also used, which is not limited in the embodiment of the present invention.
Step 304, determining whether at least one environmental parameter meets a preset condition.
This step 304 is similar to step 202 and will not be described herein.
It should be noted that, this step 304 may be executed simultaneously with step 303, or may be executed before step 303, and the order of step 303 and step 304 is not limited in the embodiment of the present invention.
And 305, when at least one environmental parameter meets a preset condition and the mobile terminal meets a GPS starting condition, starting a GPS function of the mobile terminal.
When the mobile terminal meets the GPS starting condition, the mobile terminal is indicated that the data required for starting the GPS function may not be stored in the mobile terminal. Accordingly, when it is detected that the user starts the GPS function, the GPS function may not be started in a hot start manner. Therefore, it is necessary to determine whether the GPS function needs to be turned on according to a determination result of whether at least one environmental parameter meets a preset condition. If the judgment result indicates that at least one environmental parameter meets the preset condition, which indicates that the user may start the GPS function in a future period of time, the mobile terminal needs to start the GPS function to acquire data for starting the GPS function, so that when the user is detected to start the GPS function, the mobile terminal can start the GPS function in a hot start manner according to the currently acquired data for starting the GPS function.
Specifically, when the determination result indicates that at least one environmental parameter meets the preset condition, the mobile terminal may immediately start the GPS function and acquire data required to start the GPS function, that is, the data required to start the GPS function may be acquired before it is detected that the user starts the GPS function. When the mobile terminal subsequently detects that the user triggers the operation of starting the GPS function, the GPS function can be started in a hot start mode according to the acquired data required for starting the GPS function, so that the GPS function is quickly started.
It should be noted that, after the mobile terminal determines the preset condition in step 301, the determined preset condition may be maintained and updated. Alternatively, the mobile terminal may update the preset condition according to at least one environmental parameter and the GPS operation. The GPS operation is an operation of turning on the GPS function or not turning on the GPS function triggered by the user within a second preset time period after the acquisition of the at least one environmental parameter, and the second preset time may be determined according to a time at which the user usually turns on the GPS function, which is not limited in the embodiment of the present invention.
Moreover, in the process of updating the preset condition, the mobile terminal can also redistribute the weight corresponding to each environmental parameter according to the actual situation that the user starts the GPS function, so as to more accurately judge whether at least one environmental parameter meets the preset condition.
To sum up, the method for starting a global positioning system GPS according to the embodiment of the present invention determines a preset condition and acquires at least one environmental parameter to determine whether a mobile terminal meets a GPS start condition, and determines whether the at least one environmental parameter meets the preset condition by combining the preset condition. And when the mobile terminal meets the GPS starting condition and the at least one environmental parameter meets the preset condition, determining that the GPS function needs to be started. Whether the mobile terminal meets the GPS starting condition or not is judged, the preset condition is determined, whether the GPS function needs to be started or not is determined according to the preset condition, when at least one environmental parameter meets the preset condition, the GPS function is started and data needed for starting the GPS function is acquired, so that when a user starts the GPS function, the GPS function can be started in a hot start mode according to the acquired data, time spent for starting the GPS function can be reduced, and efficiency for starting the GPS function can be improved.
EXAMPLE III
Referring to fig. 4, a block diagram of a mobile terminal according to an embodiment of the present invention is shown, which may specifically include:
a first collecting module 410, configured to collect at least one environmental parameter of the mobile terminal, where the at least one environmental parameter is used to indicate a current state of the mobile terminal;
a first determining module 420, configured to determine whether the at least one environmental parameter meets a preset condition, where the preset condition is a condition set according to a usage record of a GPS function of the mobile terminal;
the starting module 430 is configured to start the GPS function of the mobile terminal when the at least one environmental parameter meets a preset condition.
On the basis of fig. 4, optionally, referring to fig. 5, the mobile terminal may further include:
a second collecting module 440, configured to collect at least one sample data when an operation of starting the GPS function triggered by a user is detected, where the at least one sample data is used to indicate a state of the mobile terminal in a function starting time period corresponding to when the GPS function is started, where the function starting time period is a time corresponding to a first time before the GPS function is started to a second time after the GPS function is started;
the condition determining module 450 is configured to determine the preset condition according to the at least one sample data.
On the basis of fig. 4, optionally, referring to fig. 6, the mobile terminal may further include:
a second judging module 460, configured to judge whether the mobile terminal meets a GPS start condition;
the start module 430 includes:
the starting sub-module 4301 is configured to start a GPS function of the mobile terminal when the at least one environment parameter meets a preset condition and the mobile terminal meets the GPS start condition.
On the basis of fig. 6, optionally, referring to fig. 7, the second determining module 460 may include:
a first condition determining submodule 4601, configured to determine whether the frequency at which the mobile terminal starts the GPS function is less than a preset frequency according to the number of times that the mobile terminal starts the GPS function within a first preset time period;
and/or, the second condition determining sub-module 4602 is configured to determine whether the mobile terminal is located in an outdoor environment according to the wireless signal strength of the mobile terminal;
and/or, the third condition determining sub-module 4603 is configured to determine whether the mobile terminal is in a non-hot start state according to a time when the mobile terminal last turns off the GPS function.
On the basis of fig. 4, optionally, referring to fig. 8, the mobile terminal may further include:
an updating module 470, configured to update the preset condition according to the at least one environmental parameter and a GPS operation, where the GPS operation is an operation that a user triggers to turn on a GPS function or does not turn on the GPS function within a second preset time period after the at least one environmental parameter is collected.
Optionally, the at least one sample data comprises: the mobile terminal starts a function starting time period corresponding to the GPS function, the duration of the GPS function started by the mobile terminal, the corresponding geographic position information of the mobile terminal in the function starting time period, and the wireless connection state of the mobile terminal in the function starting time period; and a charging state of the mobile terminal during the function-on period.
Optionally, the at least one environmental parameter includes: at least one of the current parameter acquisition time of the mobile terminal, the current geographical location information of the mobile terminal, the current wireless connection state of the mobile terminal and the current charging state of the mobile terminal.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 2 to fig. 3, and is not described herein again to avoid repetition.
According to the mobile terminal provided by the embodiment of the invention, whether at least one environmental parameter meets the preset condition is judged by acquiring the at least one environmental parameter of the mobile terminal, the preset condition is set according to the use record of the GPS function of the mobile terminal, and when the at least one environmental parameter meets the preset condition, the GPS function of the mobile terminal is started. Whether the GPS function needs to be started is judged according to at least one environmental parameter, the GPS function can be started and data required for starting the GPS function can be acquired under the condition that the GPS function needs to be started, so that when the GPS function is detected to be started by a user, the GPS function can be started in a hot start mode according to the acquired data required for starting the GPS function, the time spent for starting the GPS function can be reduced, and the efficiency for starting the GPS function can be improved.
The embodiment of the present invention further provides a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when being executed by the processor, the computer program implements each process of the above-mentioned method for starting a global positioning system GPS, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method for starting a global positioning system GPS, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A method for starting a Global Positioning System (GPS) is applied to a mobile terminal, and is characterized by comprising the following steps:
acquiring at least one environmental parameter of the mobile terminal, wherein the at least one environmental parameter comprises: at least one of the current parameter acquisition time of the mobile terminal, the current geographical position information of the mobile terminal, the current wireless connection state of the mobile terminal and the current charging state of the mobile terminal;
judging whether the at least one environmental parameter meets a preset condition, wherein the preset condition is a condition set according to a use record of a GPS function of the mobile terminal;
when the at least one environmental parameter meets the preset condition, starting a GPS function of the mobile terminal;
the method further comprises the following steps:
judging whether the mobile terminal meets a GPS starting condition or not;
when the at least one environmental parameter meets the preset condition, starting the GPS function of the mobile terminal, including:
when the at least one environmental parameter meets the preset condition and the mobile terminal meets the GPS starting condition, starting the GPS function of the mobile terminal;
when the at least one environmental parameter meets the preset condition and the mobile terminal meets the GPS starting condition, the step of starting the GPS function of the mobile terminal comprises the following steps:
for each environmental parameter in at least one environmental parameter acquired by the mobile terminal, judging whether each environmental parameter is consistent with the corresponding parameter in the function starting state, if so, acquiring the corresponding similarity degree of each environmental parameter according to the corresponding weight of the environmental parameter, and determining the similarity degree of the current state of the mobile terminal and the function starting state which is stored in advance according to the corresponding similarity degree of each environmental parameter; when the similarity degree is greater than a preset threshold value, determining that the current state of the mobile terminal is consistent with a function starting state stored in advance, and outputting a judgment result indicating that the GPS function of the mobile terminal is started;
the judging whether the mobile terminal meets the GPS starting condition comprises the following steps:
judging whether the frequency of starting the GPS function by the mobile terminal is less than a preset frequency or not according to the times of starting the GPS function by the mobile terminal in a first preset time period;
and/or judging whether the mobile terminal is located in an outdoor environment according to the wireless signal intensity of the mobile terminal;
and/or judging whether the mobile terminal is in a non-hot start state or not according to the moment when the mobile terminal closes the GPS function last time.
2. The method of claim 1, further comprising:
when the operation that a user triggers to start the GPS function is detected, acquiring at least one sample data, wherein the at least one sample data is used for indicating the state of the mobile terminal in a corresponding function starting time period when the GPS function is started, and the function starting time period is the time corresponding to a first time before the GPS function is started to a second time after the GPS function is started;
and determining the preset condition according to the at least one sample data.
3. The method of claim 1, further comprising:
and updating the preset condition according to the at least one environmental parameter and the GPS operation, wherein the GPS operation is an operation of starting the GPS function or not starting the GPS function triggered by the user in a second preset time period after the at least one environmental parameter is collected.
4. The method of claim 2, wherein the at least one sample data comprises: the mobile terminal starts at least one of a function starting time period corresponding to the GPS function, duration of the GPS function started by the mobile terminal, geographic position information corresponding to the mobile terminal in the function starting time period, a wireless connection state of the mobile terminal in the function starting time period and a charging state of the mobile terminal in the function starting time period.
5. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring at least one environmental parameter of the mobile terminal, and the at least one environmental parameter comprises: at least one of the current parameter acquisition time of the mobile terminal, the current geographical position information of the mobile terminal, the current wireless connection state of the mobile terminal and the current charging state of the mobile terminal;
the first judgment module is used for judging whether the at least one environmental parameter meets a preset condition, wherein the preset condition is a condition set according to a use record of a GPS function of the mobile terminal;
the starting module is used for starting the GPS function of the mobile terminal when the at least one environmental parameter meets the preset condition;
the second judgment module is used for judging whether the mobile terminal meets the GPS starting condition or not;
the starting module comprises:
the starting module is used for starting the GPS function of the mobile terminal when the at least one environmental parameter meets the preset condition and the mobile terminal meets the GPS starting condition, judging whether each environmental parameter is consistent with the corresponding parameter in the function starting state or not for each environmental parameter in the collected at least one environmental parameter, if so, acquiring the corresponding similarity degree of each environmental parameter according to the corresponding weight of the environmental parameter, and determining the similarity degree of the current state of the mobile terminal and the function starting state which is stored in advance according to the corresponding similarity degree of each environmental parameter; when the similarity degree is greater than a preset threshold value, determining that the current state of the mobile terminal is consistent with a function starting state stored in advance, and outputting a judgment result indicating that the GPS function of the mobile terminal is started;
the second judging module includes:
the first condition judgment submodule is used for judging whether the frequency of starting the GPS function of the mobile terminal is less than the preset frequency or not according to the times of starting the GPS function of the mobile terminal in a first preset time period;
and/or the second condition judgment submodule is used for judging whether the mobile terminal is positioned in an outdoor environment or not according to the wireless signal intensity of the mobile terminal;
and/or the third condition judgment submodule is used for judging whether the mobile terminal is in a non-hot start state or not according to the moment when the mobile terminal closes the GPS function last time.
6. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
the second acquisition module is used for acquiring at least one sample data when the operation of starting the GPS function triggered by the user is detected, wherein the at least one sample data is used for indicating the state of the mobile terminal in a corresponding function starting time period when the GPS function is started, and the function starting time period is the time corresponding to a first time before the GPS function is started to a second time after the GPS function is started;
and the condition determining module is used for determining the preset condition according to the at least one sample data.
7. The mobile terminal of claim 5, wherein the mobile terminal further comprises:
and the updating module is used for updating the preset condition according to the at least one environmental parameter and the GPS operation, wherein the GPS operation is an operation which is triggered by a user to start the GPS function or not to start the GPS function within a second preset time period after the at least one environmental parameter is collected.
8. The mobile terminal of claim 6, wherein the at least one sample data comprises: the mobile terminal starts at least one of a function starting time period corresponding to the GPS function, duration of the GPS function started by the mobile terminal, geographic position information corresponding to the mobile terminal in the function starting time period, a wireless connection state of the mobile terminal in the function starting time period and a charging state of the mobile terminal in the function starting time period.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of enabling GPS according to any of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of enabling a global positioning system GPS according to any one of claims 1 to 4.
CN201710587773.8A 2017-07-18 2017-07-18 Method for starting Global Positioning System (GPS) and mobile terminal Active CN107454253B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710587773.8A CN107454253B (en) 2017-07-18 2017-07-18 Method for starting Global Positioning System (GPS) and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710587773.8A CN107454253B (en) 2017-07-18 2017-07-18 Method for starting Global Positioning System (GPS) and mobile terminal

Publications (2)

Publication Number Publication Date
CN107454253A CN107454253A (en) 2017-12-08
CN107454253B true CN107454253B (en) 2021-01-08

Family

ID=60489015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710587773.8A Active CN107454253B (en) 2017-07-18 2017-07-18 Method for starting Global Positioning System (GPS) and mobile terminal

Country Status (1)

Country Link
CN (1) CN107454253B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112612040B (en) * 2020-12-11 2022-12-09 紫光展锐(重庆)科技有限公司 GNSS starting method and device of global navigation satellite system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974189A (en) * 2013-01-24 2014-08-06 华为终端有限公司 GPS positioning method of mobile terminal and mobile terminal
CN104316935A (en) * 2014-10-15 2015-01-28 泰斗微电子科技有限公司 Method and system for increasing warm start positioning speed of satellite navigation receiver
KR101741208B1 (en) * 2015-12-14 2017-05-29 엘아이지넥스원 주식회사 Gps message transmission system and gps message transmission method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5564275B2 (en) * 2010-01-27 2014-07-30 日本無線株式会社 GPS receiver time determination method
WO2014005266A1 (en) * 2012-07-02 2014-01-09 华为终端有限公司 Method and device for positioning terminal device
CN105163373B (en) * 2015-07-13 2019-02-01 Oppo广东移动通信有限公司 A kind of localization method and mobile terminal
CN106483538B (en) * 2016-09-29 2019-04-05 广东乐心医疗电子股份有限公司 Positioning method of positioning terminal and positioning terminal
CN106897134B (en) * 2017-02-27 2021-01-08 Oppo广东移动通信有限公司 Positioning function management method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974189A (en) * 2013-01-24 2014-08-06 华为终端有限公司 GPS positioning method of mobile terminal and mobile terminal
CN104316935A (en) * 2014-10-15 2015-01-28 泰斗微电子科技有限公司 Method and system for increasing warm start positioning speed of satellite navigation receiver
KR101741208B1 (en) * 2015-12-14 2017-05-29 엘아이지넥스원 주식회사 Gps message transmission system and gps message transmission method thereof

Also Published As

Publication number Publication date
CN107454253A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
CN109343759B (en) Screen-turning display control method and terminal
CN108174044B (en) Alarm clock setting method and mobile terminal
CN108279948B (en) Application program starting method and mobile terminal
CN108337368B (en) Method for updating positioning data and mobile terminal
CN107608855B (en) Reminding method and mobile terminal
CN109284144B (en) Fast application processing method and mobile terminal
CN107888765B (en) Method for switching scene mode and mobile terminal
CN108073458B (en) Memory recovery method, mobile terminal and computer-readable storage medium
CN107463897B (en) Fingerprint identification method and mobile terminal
CN110456395B (en) Positioning method and terminal equipment
CN110365853B (en) Prompting method and electronic equipment
CN108962187B (en) Screen brightness adjusting method and mobile terminal
CN108984066B (en) Application icon display method and mobile terminal
CN109523253B (en) Payment method and device
CN108551525B (en) State determination method of movement track and mobile terminal
CN107800869B (en) Split screen display method, mobile terminal and storage medium
CN111107219B (en) Control method and electronic equipment
CN107277364B (en) Shooting method, mobile terminal and computer readable storage medium
CN107832067B (en) Application updating method, mobile terminal and computer readable storage medium
CN111221602A (en) Interface display method and electronic equipment
CN108089935B (en) Application program management method and mobile terminal
CN108093119B (en) Strange incoming call number marking method and mobile terminal
CN111427644B (en) Target behavior identification method and electronic equipment
CN110069136B (en) Wearing state identification method and equipment and computer readable storage medium
CN109246305B (en) Navigation processing method of navigation equipment, navigation equipment and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant