CN112312542B - Ephemeris information collection method, device, storage medium and mobile terminal - Google Patents

Ephemeris information collection method, device, storage medium and mobile terminal Download PDF

Info

Publication number
CN112312542B
CN112312542B CN202011155506.1A CN202011155506A CN112312542B CN 112312542 B CN112312542 B CN 112312542B CN 202011155506 A CN202011155506 A CN 202011155506A CN 112312542 B CN112312542 B CN 112312542B
Authority
CN
China
Prior art keywords
mobile terminal
ephemeris information
time
preset
collecting
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
CN202011155506.1A
Other languages
Chinese (zh)
Other versions
CN112312542A (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.)
TCL Communication Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202011155506.1A priority Critical patent/CN112312542B/en
Publication of CN112312542A publication Critical patent/CN112312542A/en
Application granted granted Critical
Publication of CN112312542B publication Critical patent/CN112312542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position

Abstract

The application discloses an ephemeris information collection method, an ephemeris information collection device, a storage medium and a mobile terminal, wherein the ephemeris information collection method is applied to the mobile terminal, when the positioning function of the mobile terminal is not started, if the mobile terminal is detected to be in a preset motion state, a motion scene of the mobile terminal is determined, a period of time is determined according to the motion scene, then ephemeris information is collected at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and the ephemeris information is stored in the mobile terminal to be read by a positioning system so as to keep the real-time performance of the ephemeris information, so that when the positioning function is started for positioning, all the ephemeris information does not need to be downloaded, only part of the real-time information needs to be downloaded, and the time for first positioning after the positioning function is started is shortened.

Description

Ephemeris information collection method, device, storage medium and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for collecting ephemeris information, a storage medium and a mobile terminal.
Background
With the development of terminal technology, the GPS (Global Positioning System) Positioning function has been developed from the selling point of individual terminals to the terminal function standard.
In the process of using the terminal, in order to save the power consumption of the terminal, a user generally does not start the GPS positioning function all the time, and only starts the GPS positioning function when positioning is needed. However, if the position of the terminal is far from the last positioning position when the GPS positioning function is currently turned on, the GPS system needs to download all satellite ephemeris again to perform positioning, and the time consumed for downloading is as long as 20 to 30 seconds, which directly results in that the time for first positioning after the GPS positioning function is turned on is too long, and user experience is seriously affected.
Disclosure of Invention
The invention provides a method and a device for collecting ephemeris information, a storage medium and a mobile terminal, and aims to solve the technical problem that the time for first positioning is too long after a GPS system is started.
The technical scheme provided by the application is as follows:
the application provides a method for collecting ephemeris information, which is applied to a mobile terminal and comprises the following steps:
when the positioning function of the mobile terminal is not started, if the mobile terminal is detected to be in a preset motion state, determining a motion scene of the mobile terminal;
determining a period of time according to the motion scene;
and collecting the ephemeris information at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and storing the ephemeris information in the mobile terminal for a positioning system to read.
The application also provides an ephemeris information collection device, is applied to mobile terminal, includes:
the mobile terminal comprises a first determining module, a second determining module and a judging module, wherein the first determining module is used for determining a motion scene of the mobile terminal if the mobile terminal is detected to be in a preset motion state when the positioning function of the mobile terminal is not started;
the second determining module is used for determining a period of time according to the motion scene;
and the collection module is used for collecting the ephemeris information at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and storing the ephemeris information in the mobile terminal for a positioning system to read.
In the ephemeris information collecting apparatus provided in the present application, the apparatus further includes a third determining module, configured to:
before a first determining module detects that the mobile terminal is in a preset motion state, acquiring the acceleration and the angular velocity of the mobile terminal;
and if the acceleration is greater than the preset acceleration and the angular velocity is greater than the preset angular velocity, determining that the mobile terminal is in a preset motion state.
In the ephemeris information collecting apparatus provided in the present application, the first determining module is specifically configured to:
acquiring the acceleration and the angular velocity of the mobile terminal;
and determining the motion scene of the mobile terminal according to the acceleration and the angular velocity.
In the ephemeris information collection apparatus provided in this application, the collection module is specifically configured to:
recording the duration of the mobile terminal for the preset motion state;
when the duration reaches the interval duration, starting a positioning system and downloading ephemeris information;
after the ephemeris information is downloaded, closing the positioning system and clearing the duration;
and returning to the step of recording the duration of the mobile terminal in the preset motion state.
In the ephemeris information collection apparatus provided in this application, the collection module is specifically configured to:
and replacing or updating the ephemeris information collected at the time with the ephemeris information collected at the last time.
In the ephemeris information collection apparatus provided in this application, the collection module is specifically configured to: and if the mobile terminal is detected to terminate the preset motion state, stopping collecting ephemeris information.
In the ephemeris information collecting apparatus provided in the present application, the second determining module is specifically configured to:
acquiring a preset time length corresponding to the motion scene;
acquiring a current electric quantity value of the mobile terminal;
if the current electric quantity value is smaller than a preset electric quantity value, prolonging the preset time to a target time, and determining the target time as a period of time;
and if the current electric quantity value is not less than a preset electric quantity value, determining the preset time length as a period of time length.
The present application further provides a computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform any of the above ephemeris information collection methods.
The application also provides a mobile terminal, which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing any step in the ephemeris information collection method.
The beneficial effect of this application does: the application discloses an ephemeris information collection method, an ephemeris information collection device, a storage medium and a mobile terminal, wherein the ephemeris information collection method is applied to the mobile terminal, when a positioning function is not started, if the mobile terminal is detected to be in a preset motion state, ephemeris information is periodically acquired and stored, so that the ephemeris information is kept in real-time, when the positioning function is started for positioning, all ephemeris information does not need to be downloaded, only part of real-time information needs to be downloaded, and the time for first positioning after the positioning function is started is shortened.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic flow chart of an ephemeris information collection method according to an embodiment of the present disclosure.
Fig. 2 is another schematic flow chart of the ephemeris information collection method according to the embodiment of the present disclosure.
Fig. 3 is a schematic structural diagram of an ephemeris information collecting apparatus according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Fig. 5 is another schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. In the drawings, elements having similar structures are denoted by the same reference numerals. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The embodiment of the application provides a method and a device for collecting ephemeris information, a storage medium and a mobile terminal.
Referring to fig. 1, fig. 1 is a schematic flow chart of an ephemeris information collecting method according to an embodiment of the present application, where the ephemeris information collecting method is applied to a mobile terminal, and the mobile terminal is any intelligent electronic device with a mobile communication function, such as a smart phone, a tablet computer, and a smart watch. As shown in fig. 1, the ephemeris information collecting method provided in this embodiment mainly includes steps S101 to S103, which are described as follows:
step S101: when the positioning function of the mobile terminal is not started, if the mobile terminal is detected to be in a preset motion state, determining a motion scene of the mobile terminal.
The terminal positioning function is a function of positioning a terminal by using a GPS positioning technology or a base station positioning technology, wherein the positioning mode based on the GPS positioning technology is to use a GPS positioning module on a mobile phone to send a position signal of the terminal to a positioning background to realize positioning, and the positioning mode based on the base station positioning technology is to use a base station to measure and calculate the distance between the base station and the mobile phone to determine the position of the terminal. However, in the process of using the terminal by the user, the GPS function is not always turned on, which causes that when the user starts the GPS function next time, if the distance is far from the last positioning position, all ephemeris information needs to be downloaded again to complete positioning, which directly causes that the time for first positioning after the GPS positioning function is turned on is too long, which affects the experience of the user.
In some embodiments, before the step "detecting that the mobile terminal is in the preset motion state", the method further includes: acquiring the acceleration and the angular velocity of the mobile terminal; and if the acceleration is greater than the preset acceleration and the angular velocity is greater than the preset angular velocity, determining that the mobile terminal is in a preset motion state.
The preset acceleration and the preset angular velocity are values determined by statistically considering a minimum velocity of the mobile terminal user in the occurrence of motion (e.g., walking, running). Specifically, when the acceleration is greater than the preset acceleration and the preset angular velocity is greater than the preset angular velocity, the mobile terminal may be considered to be in the preset motion state, that is, the position of the mobile terminal may change.
Specifically, the mobile terminal may continuously detect acceleration and angular velocity of the mobile terminal through built-in motion sensors, such as G-sensors and gyroscopes.
In some embodiments, the step of "determining a motion scene of the mobile terminal" may mainly include: acquiring the acceleration and the angular velocity of the mobile terminal; and determining the motion scene of the mobile terminal according to the acceleration and the angular velocity.
Specifically, the motion scene of the mobile terminal can be mainly divided into a walking scene, a running scene and a riding scene, and through statistics, the up-and-down shaking degrees of the mobile terminal in the walking scene, the running scene and the riding scene are different, specifically as follows:
(1) a walking scene: the speed of the mobile terminal is 3-5 km/h, the up-down shaking is 0.1-0.2 m, and the shaking frequency is 1-3 times/second.
(2) A running scene: the speed of the mobile terminal is 5-10 km/h, the up-down shaking is 0.2-0.5 m, and the shaking frequency is 3-6 times/s.
(3) A riding scene: the moving speed is more than 40 km/h, the up-and-down shaking is less than 0.1 m, and the shaking frequency exceeds 10 times/s (calculating the slight shaking of the jolt during the riding).
According to the up-and-down shaking degree of the mobile terminal in different motion scenes and the variation range of the acceleration and the angular speed corresponding to the up-and-down shaking degree, the motion scene of the mobile terminal can be determined, and it needs to be explained that the specific value ranges of the acceleration and the angular speed are not limited due to the fact that the G-sensors of different models and gyroscopes have different accuracies and measurement standards.
Step S102: determining a period of time according to the motion scene.
Specifically, if the position of the terminal is far from the last positioning position when the GPS positioning function is currently started, the GPS system needs to download all the satellite ephemeris information again to perform positioning, so that when the mobile terminal moves, by downloading the real-time ephemeris information before the maximum distance when all the satellite ephemeris information needs to be downloaded again is exceeded, the real-time ephemeris information can be maintained, and the situation that the time for downloading all the satellite ephemeris information is too long, which causes the too long time for first positioning after the GPS positioning function is started is avoided.
Because the speed corresponding to the mobile terminal is different in different motion scenes, the time duration for reaching the maximum distance when all the satellite ephemeris information needs to be downloaded again is different, for example, a period of time corresponding to a walking scene may be 10 minutes, and a period of time corresponding to a riding scene may be 40 minutes. It should be noted that the determined period of time may be less than the time that exceeds the maximum distance when all the satellite ephemeris information needs to be downloaded again in the motion scene, so as to improve the fault tolerance rate, and even if the speed of the mobile terminal in the motion scene is higher than the speed in the statistical data, the situation that the mobile terminal needs to download all the ephemeris information every time will not occur.
In some embodiments, step S102 may generally include:
acquiring a preset time corresponding to a motion scene;
acquiring a current electric quantity value of the mobile terminal;
if the current electric quantity value is smaller than the preset electric quantity value, prolonging the preset time length to a target time length, and determining the target time length as a period of time length;
and if the current electric quantity value is not less than the preset electric quantity value, determining the preset time length as a period of time length.
It is easy to understand that, the process of turning on the GPS system to download the ephemeris information will certainly increase the power consumption of the mobile terminal, and in order to avoid that the power consumption of the mobile terminal is increased by downloading the ephemeris information in the background under the condition of low power, the frequency of turning on the GPS system by the mobile terminal to download the ephemeris information under the condition of low power should be reduced. Specifically, the preset electric quantity value may be a maximum electric quantity value of the mobile terminal in a low electric quantity state, or may be set by a user in a customized manner. When the current electric quantity value of the mobile terminal is not greater than the preset electric quantity value, the mobile terminal can be considered to be in a low-electric-quantity state, so as to avoid the occurrence of a situation that the power consumption of the mobile terminal is increased in the process of downloading the ephemeris information, so that the mobile terminal is shut down and user experience is affected, therefore, the number of times that the mobile terminal opens the GPS system to download the ephemeris information should be reduced, and correspondingly, the time interval for the mobile terminal to open the GPS system each time to download the ephemeris information should be properly increased.
It should be noted that the target time duration is shorter than the time duration that the mobile terminal reaches the farthest distance when all the satellite ephemeris information needs to be downloaded again in the motion scene.
Step S103: and collecting the ephemeris information at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and storing the ephemeris information in the mobile terminal for the positioning system to read.
In some embodiments, the step of "collecting ephemeris information at intervals with the determined period of time being a period of time between collecting ephemeris information" may mainly include:
recording the duration of the mobile terminal in a continuous preset motion state;
when the duration reaches the interval duration, starting a positioning system and downloading ephemeris information;
after the ephemeris information is downloaded, closing the positioning system, and resetting the duration;
and returning to the step of recording the duration of the mobile terminal in the preset motion state.
Specifically, the determined period of time is a period of time that the mobile terminal is about to reach a maximum distance beyond a time when all satellite ephemeris information needs to be downloaded again, and if the duration of the mobile terminal continuously presetting the motion state reaches the determined period of time, that is, the interval time, it can be considered that the mobile terminal is about to move to the maximum distance when all satellite ephemeris information needs to be downloaded again, at this time, the positioning system is started and the ephemeris information is downloaded, only part of the real-time ephemeris information needs to be downloaded, and all the ephemeris information does not need to be downloaded, so that the downloading time is saved, and the power consumption of the mobile terminal is reduced.
Furthermore, after the ephemeris information is collected, the positioning system is turned off and timing is performed again to collect the next ephemeris information, so that the ephemeris information is collected by starting the positioning system at intervals in the motion continuous state of the mobile terminal, the real-time performance of the ephemeris information can be ensured, the power consumption of the positioning system can be reduced to the maximum extent, and the electric energy of the mobile terminal is saved.
In this embodiment, the step "storing ephemeris information in the mobile terminal" may mainly include: and replacing or updating the last collected ephemeris information with the ephemeris information collected this time.
Specifically, the ephemeris information may be stored in an internal memory of the terminal, and in order to not affect the storage capability of the terminal, in each time of storage, the ephemeris information collected this time may be used to replace or update the ephemeris information collected last time, so as to save the storage space of the terminal.
In this embodiment, in the process of "collecting ephemeris information at intervals by using the determined period of time as an interval time for collecting ephemeris information", if it is detected that the mobile terminal terminates the preset motion state, the collection of ephemeris information is stopped.
As can be seen from the above, the ephemeris information collecting method provided in this embodiment is applied to a mobile terminal, and when a positioning function of the mobile terminal is not started, if it is detected that the mobile terminal is in a preset motion state, a motion scene of the mobile terminal is determined, a period of time is determined according to the motion scene, and then the ephemeris information is collected at intervals with the determined period of time as an interval time for collecting the ephemeris information, and is stored in the mobile terminal for a positioning system to read, so as to maintain real-time property of the ephemeris information.
Referring to fig. 2, fig. 2 is another flow chart of the ephemeris information collection method according to the embodiment of the present application, where the ephemeris information collection method is applied to a mobile terminal, and mainly includes steps S201 to S206, which are described as follows:
s201: when the positioning function of the mobile terminal is not started, if the mobile terminal is detected to be in a preset motion state, determining a motion scene of the mobile terminal.
Specifically, the specific implementation of step S201 can refer to the embodiment of step S101, and is not described herein again.
S202: and determining a period of time according to the motion scene, wherein the determined period of time is used as the interval time for collecting the ephemeris information.
Specifically, since the speeds corresponding to different motion scenes are different, the time that exceeds the maximum distance when all the satellite ephemeris information needs to be downloaded again is different, for example, a period of time corresponding to a walking scene may be 10 minutes, and a period of time corresponding to a riding scene may be 40 minutes. It should be noted that the determined period of time may be less than the time that exceeds the maximum distance when all the satellite ephemeris information needs to be downloaded again in the motion scene, so as to improve the fault tolerance rate, and even if the speed of the mobile terminal in the motion scene is higher than the speed in the statistical data, the situation that the mobile terminal needs to download all the ephemeris information every time will not occur.
S203: and recording the duration of the continuous motion state of the mobile terminal.
The mobile terminal may be in a preset motion state for a short time, for example, the mobile terminal user moves for a short distance, or the mobile terminal may be in a preset motion state for a long time, for example, the mobile terminal user drives for a long distance. Whether the maximum distance for downloading all the satellite ephemeris information again is about to be achieved by the mobile terminal can be judged by recording the duration of the mobile terminal in the continuous preset motion state.
S204: and when the duration reaches the interval duration, starting the positioning system and downloading the ephemeris information.
Specifically, when the duration reaches the interval duration, it can be considered that the distance from the current position of the mobile terminal to the position before the motion of the mobile terminal is the farthest distance when all the satellite ephemeris information needs to be downloaded again, at this time, the positioning system is started and the ephemeris information is downloaded, only part of the real-time ephemeris information needs to be downloaded, and all the ephemeris information does not need to be downloaded, so that the downloading time is saved, and the power consumption of the mobile terminal is reduced.
S205: and after the ephemeris information is downloaded, replacing or updating the last collected ephemeris information with the ephemeris information collected this time.
Specifically, the ephemeris information may be stored in an internal memory of the terminal, and in order to not affect the storage capability of the terminal, in each time of storage, the ephemeris information collected this time may be used to replace or update the ephemeris information collected last time, so as to save the storage space of the terminal.
S206: and (5) closing the positioning system, clearing the duration and returning to the step of S203.
Specifically, after the ephemeris information is collected, the positioning system is turned off and timing is performed again to collect the next ephemeris information, so that the ephemeris information is collected by starting the positioning system at intervals in the motion continuous state of the mobile terminal, the real-time performance of the ephemeris information can be guaranteed, the power consumption of the positioning system can be reduced to the maximum extent, and the electric energy of the mobile terminal is saved.
As can be seen from the above, the ephemeris information collecting method provided in this embodiment is applied to a mobile terminal, and when a positioning function of the mobile terminal is not started, if it is detected that the mobile terminal is in a preset motion state, a motion scene of the mobile terminal is determined, then a period of time is determined according to the motion scene, the determined period of time is an interval time for collecting ephemeris information, and a duration time of a continuous motion state of the mobile terminal is recorded, when the duration time reaches the interval time, a positioning system is started, and ephemeris information is downloaded to maintain real-time property of the ephemeris information, so that when the positioning function is started for positioning, it is not necessary to download all ephemeris information, but only partial real-time information is downloaded, and a time for first positioning after the positioning function is started is shortened, and then, after the ephemeris information is downloaded, the last collected ephemeris information is replaced or updated, the storage method only needs to occupy a little memory and does not affect the storage capacity of the terminal, then the positioning system is closed, the duration is reset, and the step of executing the duration of the continuous motion state of the mobile terminal is returned, so that the power consumption of the GPS system and the power consumption of the mobile terminal can be reduced to the maximum extent.
According to the methods described in the foregoing embodiments, this embodiment will be further described in terms of an ephemeris information collection apparatus, which may be specifically implemented as an independent entity or integrated in a mobile terminal.
Referring to fig. 3, fig. 3 specifically describes an ephemeris information collecting apparatus provided in the embodiment of the present application, which is applied to a mobile terminal, and the ephemeris information collecting apparatus mainly includes a first determining module 10, a second determining module 20, and a collecting module 30, which are described as follows:
(1) first determination module 10
The first determining module 10 is configured to determine a motion scene of the mobile terminal if it is detected that the mobile terminal is in a preset motion state when the positioning function of the mobile terminal is not started.
In some embodiments, the ephemeris information collecting apparatus may further include a third determining module, configured to obtain the acceleration and the angular velocity of the mobile terminal before the first determining module 10 detects that the mobile terminal is in the preset motion state; and if the acceleration is greater than the preset acceleration and the angular velocity is greater than the preset angular velocity, determining that the mobile terminal is in a preset motion state.
Further, the first determining module 10 may specifically be configured to: acquiring the acceleration and the angular velocity of the mobile terminal; and determining the motion scene of the mobile terminal according to the acceleration and the angular velocity.
(2) Second determination module 20
A second determining module 20, configured to determine a duration according to the motion scene.
In some embodiments, the second determining module may be specifically configured to: acquiring a preset time corresponding to a motion scene; acquiring a current electric quantity value of the mobile terminal; if the current electric quantity value is smaller than the preset electric quantity value, prolonging the preset time length to a target time length, and determining the target time length as a period of time length; and if the current electric quantity value is not less than the preset electric quantity value, determining the preset time length as a period of time length.
(3) Collection module 30
And the collecting module 30 is configured to collect the ephemeris information at intervals by taking the determined period of time as an interval time for collecting the ephemeris information, and store the ephemeris information in the mobile terminal for the positioning system to read.
In some embodiments, the collection module 30 may be specifically configured to:
recording the duration of the mobile terminal in a continuous preset motion state;
when the duration reaches the interval duration, starting a positioning system and downloading ephemeris information;
after the ephemeris information is downloaded, closing the positioning system, and resetting the duration;
and returning to the step of recording the duration of the mobile terminal in the preset motion state.
Furthermore, the collection module 30 may be specifically configured to: and replacing or updating the last collected ephemeris information with the ephemeris information collected this time.
Further, the collection module 30 may also be configured to: and if the mobile terminal is detected to terminate the preset motion state, stopping collecting the ephemeris information.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the ephemeris information collecting apparatus provided in this embodiment is applied to a mobile terminal, and when a positioning function of the mobile terminal is not started, if it is detected that the mobile terminal is in a preset motion state, the first determining module 10 determines a motion scene of the mobile terminal, and then the second determining module 20 determines a period of time according to the motion scene, and then the collecting module 30 collects ephemeris information at intervals by using the determined period of time as an interval time for collecting ephemeris information, and stores the ephemeris information in the mobile terminal for a positioning system to read, so as to maintain real-time property of the ephemeris information, so that when the positioning function is started for positioning, it is not necessary to download all ephemeris information, and only needs to download part of real-time information, thereby shortening time for first positioning after the positioning function is started.
In addition, the embodiment of the application further provides a mobile terminal, and the mobile terminal can be a smart phone, a tablet computer and other devices. As shown in fig. 4, the mobile terminal 500 includes a processor 501, a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 501 is a control center of the mobile terminal 500, 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 running or loading an application stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the mobile terminal.
In this embodiment, the processor 501 in the mobile terminal 500 loads instructions corresponding to processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 runs the application programs stored in the memory 502, so as to implement various functions:
when the positioning function of the mobile terminal is not started, if the mobile terminal is detected to be in a preset motion state, determining a motion scene of the mobile terminal;
determining a period of time according to the motion scene;
and collecting the ephemeris information at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and storing the ephemeris information in the mobile terminal for the positioning system to read.
Fig. 5 is a specific structural block diagram of a mobile terminal according to an embodiment of the present disclosure, where the mobile terminal may be used to implement the ephemeris information collection method provided in the foregoing embodiment. The mobile terminal 300 may be a smart phone or a tablet computer.
The RF circuit 310 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, thereby communicating with a communication network or other devices. RF circuitry 310 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. RF circuit 310 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Internet telephony (voice over Internet Protocol, VoIP), world wide Internet Microwave Access (Microwave for Wireless Communication, Max-1 Max), and other short message Communication protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 320 may be used to store software programs and modules, such as the ephemeris information collection method and corresponding program instructions/modules in the above embodiments, and the processor 380 executes various functional applications and data processing by running the software programs and modules stored in the memory 320, so as to implement the communication data saving function. The memory 320 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 320 may further include memory located remotely from the processor 380, which may be connected to the mobile terminal 300 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 330 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 330 may include a touch-sensitive surface 331 as well as other input devices 332. The touch-sensitive surface 331, also referred to as a touch screen or touch pad, may collect touch operations by a user on or near the touch-sensitive surface 331 (e.g., operations by a user on or near the touch-sensitive surface 331 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 331 may comprise two parts, a touch detection means 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 380, and can receive and execute commands sent by the processor 380. In addition, the touch-sensitive surface 331 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 330 may comprise other input devices 332 in addition to the touch sensitive surface 331. In particular, other input devices 332 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 340 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal 300, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 340 may include a Display panel 341, and optionally, the Display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, touch-sensitive surface 331 may overlay display panel 341, and when touch-sensitive surface 331 detects a touch operation thereon or thereabout, communicate to processor 380 to determine the type of touch event, and processor 380 then provides a corresponding visual output on display panel 341 in accordance with the type of touch event. Although in FIG. 5, touch-sensitive surface 331 and display panel 341 are implemented as two separate components for input and output functions, in some embodiments, touch-sensitive surface 331 and display panel 341 may be integrated for input and output functions.
The mobile terminal 300 may also include at least one sensor 350, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 341 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 341 and/or the backlight when the mobile terminal 300 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured on the mobile terminal 300, detailed descriptions thereof are omitted.
Audio circuitry 360, speaker 361, and microphone 362 may provide an audio interface between a user and the mobile terminal 300. The audio circuit 360 may transmit the electrical signal converted from the received audio data to the speaker 361, and the audio signal is converted by the speaker 361 and output; on the other hand, the microphone 362 converts the collected sound signal into an electrical signal, which is received by the audio circuit 360 and converted into audio data, which is then processed by the audio data output processor 380 and then transmitted to, for example, another terminal via the RF circuit 310, or the audio data is output to the memory 320 for further processing. The audio circuit 360 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal 300.
The mobile terminal 300, which may assist the user in e-mail, web browsing, streaming media access, etc., through the transmission module 370 (e.g., a Wi-Fi module), provides the user with wireless broadband internet access. Although fig. 5 shows the transmission module 370, it is understood that it does not belong to the essential constitution of the mobile terminal 300 and may be omitted entirely within the scope not changing the essence of the invention as needed.
The processor 380 is a control center of the mobile terminal 300, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 300 and processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory 320, thereby integrally monitoring the mobile phone. Optionally, processor 380 may include one or more processing cores; in some embodiments, processor 380 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 380.
The mobile terminal 300 also includes a power supply 390 (e.g., a battery) that provides power to the various components and, in some embodiments, may be logically coupled to the processor 380 via a power management system to manage charging, discharging, and power consumption management functions via the power management system. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 300 may further include a camera (e.g., a front camera, a rear camera), a bluetooth module, etc., which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal is a touch screen display, the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
when the positioning function of the mobile terminal is not started, if the mobile terminal is detected to be in a preset motion state, determining a motion scene of the mobile terminal;
determining a period of time according to the motion scene;
and collecting the ephemeris information at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and storing the ephemeris information in the mobile terminal for the positioning system to read.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the above modules may refer to the foregoing method embodiments, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, embodiments of the present application provide a storage medium including mobile terminal-executable instructions. The mobile terminal executable instructions, when executed by a mobile terminal processor, perform the steps of any one of the ephemeris information collection methods provided in embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium may execute the steps in any ephemeris information collection method provided in the embodiments of the present invention, beneficial effects that any ephemeris information collection method provided in the embodiments of the present invention can achieve may be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
In summary, although the present application has been described with reference to the preferred embodiments, the above-described preferred embodiments are not intended to limit the present application, and those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present application, so that the scope of the present application shall be determined by the appended claims.

Claims (8)

1. An ephemeris information collection method, applied to a mobile terminal, includes:
when the positioning function of the mobile terminal is not started, acquiring the acceleration and the angular velocity of the mobile terminal;
if the acceleration is greater than a preset acceleration and the angular velocity is greater than a preset angular velocity, determining that the mobile terminal is in a preset motion state, and determining a motion scene of the mobile terminal according to the acceleration and the angular velocity, wherein the preset acceleration and the preset angular velocity are determined according to a minimum velocity of motion of a user of the mobile terminal;
determining a period of time according to the motion scene;
and collecting the ephemeris information at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and storing the ephemeris information in the mobile terminal for a positioning system to read.
2. The method for collecting ephemeris information according to claim 1, wherein the collecting ephemeris information at intervals by taking the determined period of time as an interval time for collecting ephemeris information specifically includes:
recording the duration of the mobile terminal for the preset motion state;
when the duration reaches the interval duration, starting a positioning system and downloading ephemeris information;
after the ephemeris information is downloaded, closing the positioning system and clearing the duration;
and returning to the step of recording the duration of the mobile terminal in the preset motion state.
3. The method for collecting ephemeris information according to claim 1, wherein the storing the ephemeris information in the mobile terminal specifically includes:
and replacing or updating the ephemeris information collected at the time with the ephemeris information collected at the last time.
4. The method for collecting ephemeris information according to claim 1, further comprising, during the step of collecting ephemeris information at intervals of the interval duration:
and if the mobile terminal is detected to terminate the preset motion state, stopping collecting ephemeris information.
5. The ephemeris information collection method according to claim 1, wherein the determining a period of time according to the motion scene specifically includes:
acquiring a preset time length corresponding to the motion scene;
acquiring a current electric quantity value of the mobile terminal;
if the current electric quantity value is smaller than a preset electric quantity value, prolonging the preset time to a target time, and determining the target time as a period of time;
and if the current electric quantity value is not less than a preset electric quantity value, determining the preset time length as a period of time length.
6. An ephemeris information collecting device, applied to a mobile terminal, comprising:
the mobile terminal comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for acquiring the acceleration and the angular velocity of the mobile terminal when the positioning function of the mobile terminal is not started;
a third determining module, configured to determine that the mobile terminal is in a preset motion state if the acceleration is greater than a preset acceleration and the angular velocity is greater than a preset angular velocity, and determine a motion scene of the mobile terminal according to the acceleration and the angular velocity, where the preset acceleration and the preset angular velocity are determined according to a minimum velocity of motion of a user of the mobile terminal;
the second determining module is used for determining a period of time according to the motion scene;
and the collection module is used for collecting the ephemeris information at intervals by taking the determined period of time as the interval time for collecting the ephemeris information, and storing the ephemeris information in the mobile terminal for a positioning system to read.
7. A computer readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the ephemeris information collection method of any of claims 1 to 5.
8. A mobile terminal, comprising a processor and a memory, wherein the processor is electrically connected to the memory, and the memory is used for storing instructions and data, and the processor is used for executing the steps of the ephemeris information collection method of any of claims 1 to 5.
CN202011155506.1A 2020-10-26 2020-10-26 Ephemeris information collection method, device, storage medium and mobile terminal Active CN112312542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011155506.1A CN112312542B (en) 2020-10-26 2020-10-26 Ephemeris information collection method, device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011155506.1A CN112312542B (en) 2020-10-26 2020-10-26 Ephemeris information collection method, device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN112312542A CN112312542A (en) 2021-02-02
CN112312542B true CN112312542B (en) 2022-03-25

Family

ID=74331727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011155506.1A Active CN112312542B (en) 2020-10-26 2020-10-26 Ephemeris information collection method, device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN112312542B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116055989B (en) * 2022-06-30 2023-09-15 荣耀终端有限公司 Ephemeris information acquisition method, electronic equipment and intelligent wearable equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7948434B2 (en) * 2008-11-13 2011-05-24 Broadcom Corporation Method and system for maintaining a GNSS receiver in a hot-start state
JP2011220793A (en) * 2010-04-08 2011-11-04 Seiko Epson Corp Position calculation method and position calculation device
CN103675841A (en) * 2012-09-05 2014-03-26 迈实电子(上海)有限公司 Satellite signal receiver and ephemeris update method thereof
CN105866810B (en) * 2016-03-23 2019-04-30 福州瑞芯微电子股份有限公司 The GPS low power targeting methods and device of a kind of electronic equipment
CN106855627A (en) * 2016-12-29 2017-06-16 湖南国科微电子股份有限公司 A kind of method for reducing GNSS receiver power consumption, device and receiver
CN108337368B (en) * 2018-01-16 2021-03-16 维沃移动通信有限公司 Method for updating positioning data and mobile terminal
US10476585B1 (en) * 2018-12-14 2019-11-12 Hughes Network Systems, Llc Distributed network node locations in a mobile node network

Also Published As

Publication number Publication date
CN112312542A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN107800651B (en) Application program closing method and device, storage medium and electronic equipment
CN107272872B (en) Power saving control method and related product
CN106786962B (en) Charging control method and device and terminal
CN108900231B (en) Dynamic antenna adjustment method and related product
CN104093123A (en) Application program information pushing method, device and system and mobile terminal
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN111273955B (en) Thermal restoration plug-in optimization method and device, storage medium and electronic equipment
CN110022405B (en) Radio frequency parameter adjusting method, device and storage medium
WO2015007145A1 (en) Method and device for ascertaining required charging time
JP7272694B2 (en) Method and terminal for reducing power consumption of terminal
CN112312542B (en) Ephemeris information collection method, device, storage medium and mobile terminal
CN111651030B (en) Sensor detection method and device, storage medium and mobile terminal
CN110851014B (en) Touch recognition method and device, storage medium and terminal equipment
CN115985323B (en) Voice wakeup method and device, electronic equipment and readable storage medium
CN106454953B (en) Flow control method, device and terminal
CN109327866B (en) Flow control method, flow control device, mobile terminal and storage medium
CN109672242B (en) Terminal charging control method and device and storage medium
CN112511692A (en) Anti-interference method and device, storage medium and mobile terminal
CN111132282B (en) Application processor awakening method and device applied to mobile terminal
CN109151154B (en) Power consumption control method and mobile terminal
CN111651299A (en) Wireless chip reset control method and device, storage medium and mobile terminal
CN112367428A (en) Electric quantity display method and system, storage medium and mobile terminal
CN111654577A (en) Emergency call method, device, storage medium and mobile terminal
CN111273774A (en) Terminal device display screen control method and system, storage medium and terminal device
CN109561415B (en) NFC function detection method and device, storage medium 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