CN112444831B - Terminal power saving method and device for GPS data acquisition and intelligent terminal - Google Patents
Terminal power saving method and device for GPS data acquisition and intelligent terminal Download PDFInfo
- Publication number
- CN112444831B CN112444831B CN202011398705.5A CN202011398705A CN112444831B CN 112444831 B CN112444831 B CN 112444831B CN 202011398705 A CN202011398705 A CN 202011398705A CN 112444831 B CN112444831 B CN 112444831B
- Authority
- CN
- China
- Prior art keywords
- intelligent terminal
- terminal
- started
- vehicle
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 81
- 230000008569 process Effects 0.000 claims abstract description 38
- 238000004590 computer program Methods 0.000 claims description 13
- 230000007958 sleep Effects 0.000 claims description 9
- 230000006870 function Effects 0.000 description 62
- 230000006399 behavior Effects 0.000 description 7
- 230000001133 acceleration Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008859 change Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000006266 hibernation Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/01—Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/13—Receivers
- G01S19/34—Power consumption
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO 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/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining 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/42—Determining position
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Traffic Control Systems (AREA)
- Navigation (AREA)
Abstract
The application relates to a terminal power saving method and device for GPS data acquisition and an intelligent terminal, and belongs to the technical field of terminal control. The method comprises the following steps: when a terminal APP is started or a wake-up notice is received, the terminal APP enters a working state and starts a GPS function of the intelligent terminal, and the wake-up notice is sent by detecting that the current position of the intelligent terminal is not in the established geo-fence or the important position of the intelligent terminal is changed by an operating system of the intelligent terminal; the method comprises the steps that a terminal APP determines whether a vehicle of a driver of an intelligent terminal is started or not at least based on real-time GPS data collected by a GPS function of the intelligent terminal; if the terminal APP determines that the vehicle is started, real-time GPS data in the driving process after the vehicle is started are obtained and stored; and if the terminal APP determines that the vehicle is not started or the vehicle finishes running, the GPS function is turned off, the awakening notification service is started, and a new geo-fence is created to enter a dormant state. The method and the device can effectively solve the problem that the GPS of the intelligent terminal continuously collects GPS data to cause large power consumption of the intelligent terminal.
Description
Technical Field
The application relates to the technical field of terminal control, in particular to a terminal power saving method and device for GPS data acquisition and an intelligent terminal.
Background
With the popularization of intelligent terminals, businesses in many industries want to record behavior tracks of users in real time through APPs on the intelligent terminals. For example, in the insurance field, driving data of the whole driving process is recorded through APP, so that various behaviors of a driver in the driving process can be analyzed through the data, and an insurance company can perform corresponding premium adjustment when the driver buys car insurance.
The driving data generally includes GPS data acquired by an intelligent terminal through a Global Positioning System (GPS). In order to identify the driving behavior of the user in real time, the intelligent terminal needs to acquire GPS data through a GPS module in real time. However, once the GPS module is turned on, the location information of the terminal device is continuously located, so that the power of the intelligent terminal is greatly consumed to collect the GPS data.
Disclosure of Invention
Therefore, it is necessary to provide a terminal power saving method and apparatus for GPS data acquisition, and an intelligent terminal, which can greatly reduce power consumption of driving data, especially power consumption of the intelligent terminal during GPS data acquisition.
In a first aspect, a terminal power saving method for GPS data acquisition is provided, where the method includes:
when a terminal APP is started or a wake-up notice is received, entering a working state and starting a GPS function of an intelligent terminal, wherein the wake-up notice is sent by detecting that the current position of the intelligent terminal is not in a created geo-fence or an important position is changed by an operating system of the intelligent terminal;
the terminal APP determines whether a vehicle of a driver of the intelligent terminal is started at least based on real-time GPS data acquired by the GPS function of the intelligent terminal;
if the terminal APP determines that the vehicle is started, real-time GPS data in the driving process after the vehicle is started are obtained and stored;
and if the terminal APP determines that the vehicle is not started or the vehicle finishes the driving process, the GPS function is closed, the awakening notification service is started, and a new geo-fence is created to enter a dormant state.
Further, the current position of the intelligent terminal is obtained based on base station positioning and/or WiFi positioning of the intelligent terminal.
Further, when the stay time of the intelligent terminal at the current position is not lower than a preset time length, the important position is changed into the current position.
Further, the method further comprises:
acquiring real-time motion state data of the intelligent terminal through a sensor built in the intelligent terminal;
whether terminal APP is based on at least the real-time GPS data that intelligent terminal's GPS function was gathered confirms whether intelligent terminal's driver's vehicle starts includes:
and the terminal APP determines whether the vehicle is started or not based on the real-time motion state data and the real-time GPS data.
Further, the determining, by the terminal APP, whether the vehicle is started based on the real-time motion state data and the real-time GPS data includes:
determining a motion state and a current speed of the driver based on the real-time motion state data and the real-time GPS data;
determining that the vehicle is started when the motion state of the driver and the current speed satisfy one of the following conditions:
the motion state is a driving state and the current speed is greater than a first threshold; or alternatively
The motion state is not a driving state and the current speed is greater than a second threshold, wherein the second threshold is greater than a first threshold; or alternatively
The motion state is a walking state, the current speed is greater than the first threshold, and a step count statistic within a preset time period before a current time is zero.
Further, the method further comprises:
and judging whether the position of the intelligent terminal when the vehicle is not started or the vehicle finishes running is located in the created geo-fence, if not, creating the new geo-fence based on the position.
Further, the method further comprises:
deleting the oldest created geo-fence if the sum of the new geo-fence and the number of created geo-fences exceeds a maximum storage number.
In a second aspect, a terminal power saving device for GPS data acquisition is provided, the device comprising:
the terminal comprises a wake-up module, a control module and a display module, wherein the wake-up module is used for entering a working state when a terminal APP is started or receives a wake-up notice, and the wake-up notice is sent when an operating system of the intelligent terminal detects that the current position of the intelligent terminal is not in a created geographic fence or an important position is changed;
the starting module is used for starting the GPS function of the intelligent terminal after the terminal APP enters the working state;
the acquisition module is used for acquiring real-time GPS data through the GPS function of the intelligent terminal;
the determining module is used for determining whether a vehicle of a driver of the intelligent terminal is started or not by the terminal APP at least based on real-time GPS data acquired by the GPS function of the intelligent terminal;
the acquisition module is used for acquiring and storing real-time GPS data in a driving process after the vehicle is started if the terminal APP determines that the vehicle is started;
a closing module, configured to close the GPS function if the terminal APP determines that the vehicle is not started or the vehicle ends the driving process;
a hibernation module to turn on a wake up notification service and create a new geofence to enter a hibernation state.
Further, the current position of the intelligent terminal is obtained based on base station positioning and/or WiFi positioning of the intelligent terminal.
Further, when the stay time of the intelligent terminal at the current position is not lower than a preset duration, the important position is changed into the current position.
Further, the acquisition module is further configured to:
acquiring real-time motion state data of the intelligent terminal through a sensor built in the intelligent terminal;
the determination module is further to:
determining whether the vehicle is started based on the real-time motion state data and the real-time GPS data.
Further, the determining module is specifically configured to:
determining a motion state and a current speed of the driver based on the real-time motion state data and the real-time GPS data;
determining that the vehicle is started when the motion state of the driver and the current speed satisfy one of the following conditions:
the motion state is a driving state and the current speed is greater than a first threshold; or
The motion state is not a driving state and the current speed is greater than a second threshold, wherein the second threshold is greater than a first threshold; or alternatively
The motion state is a walking state, the current speed is greater than the first threshold, and a step count statistic within a preset time period before a current time is zero.
Further, the sleep module is further configured to:
and judging whether the position of the intelligent terminal when the vehicle is not started or the vehicle finishes running is located in the established geo-fence, and if not, establishing the new geo-fence based on the position.
Further, the sleep module is further configured to:
deleting the oldest created geofence if the sum of the new geofence and the number of established geofences exceeds a maximum stored number.
In a third aspect, an intelligent terminal is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the following operation steps when executing the computer program:
when a terminal APP is started or a wake-up notice is received, entering a working state and starting a GPS function of an intelligent terminal, wherein the wake-up notice is sent by detecting that the current position of the intelligent terminal is not in a created geo-fence or an important position is changed by an operating system of the intelligent terminal;
the terminal APP determines whether a vehicle of a driver of the intelligent terminal is started at least based on real-time GPS data acquired by the GPS function of the intelligent terminal;
if the terminal APP determines that the vehicle is started, real-time GPS data in the driving process after the vehicle is started are obtained and stored;
and if the terminal APP determines that the vehicle is not started or the vehicle finishes the driving process, the GPS function is closed, the awakening notification service is started, and a new geo-fence is created to enter a dormant state.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the following operational steps:
when a terminal APP is started or a wake-up notice is received, entering a working state and starting a GPS function of an intelligent terminal, wherein the wake-up notice is sent by detecting that the current position of the intelligent terminal is not in a created geo-fence or an important position is changed by an operating system of the intelligent terminal;
the terminal APP determines whether a vehicle of a driver of the intelligent terminal is started at least based on real-time GPS data acquired by the GPS function of the intelligent terminal;
if the terminal APP determines that the vehicle is started, real-time GPS data in the driving process after the vehicle is started are obtained and stored;
and if the terminal APP determines that the vehicle is not started or the vehicle finishes the driving process, the GPS function is closed, the awakening notification service is started, and a new geo-fence is created to enter a dormant state.
According to the terminal power saving method and device for GPS data acquisition and the intelligent terminal, when the terminal APP is started or the awakening notification is received, the terminal APP enters a working state and starts the GPS function of the intelligent terminal, wherein the awakening notification is sent after the operating system of the intelligent terminal detects that the current position of the intelligent terminal is not in the established geo-fence or the important position of the intelligent terminal is changed; the method comprises the steps that a terminal APP determines whether a vehicle of a driver of an intelligent terminal is started through real-time GPS data acquired by the GPS function, and acquires the real-time GPS data in a driving process after the vehicle is started, and the terminal APP closes the GPS function when the vehicle is not started or finishes the driving process, and starts a wake-up notification service and creates a new geo-fence to enter a dormant state, so that the GPS function is started only when the terminal APP enters a working state to determine whether the vehicle is started, and the GPS data is acquired in real time when the vehicle is driving, and when the vehicle is not started or finishes driving, the terminal APP closes the GPS function, and automatic switching between the working state and the dormant state of the terminal APP can be realized, so that the problem that the GPS function continuously acquires the GPS data to cause large power consumption of the intelligent terminal can be effectively solved, the driving data in the whole driving process can be accurately and completely acquired, and further the problem that the accuracy of insurance premium pricing of an insurance company to the driver is influenced due to the fact that the driving behavior data is acquired incompletely is inaccurate is avoided.
Drawings
FIG. 1 is a flow chart illustrating a terminal power saving method for GPS data acquisition according to an embodiment;
FIG. 2 is a diagram of a terminal power saving method for GPS data acquisition according to an embodiment;
FIG. 3 is a block diagram of a terminal power saving device for GPS data acquisition in one embodiment;
fig. 4 is an internal structural diagram of the intelligent terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As described in the foregoing background, in order to be able to identify the driving behavior of the user in real time, the smart terminal needs to collect GPS data through the GPS module in real time. However, once the GPS module is turned on, the location information of the terminal device is continuously located, so that the power of the smart terminal is greatly consumed for collecting the GPS data. Therefore, the application provides a terminal power saving method for GPS data acquisition, and a terminal APP installed on an intelligent terminal can interact with an operating system of the intelligent terminal. The smart terminal may be, but is not limited to, various smart phones, tablet computers, and portable wearable devices, and the operating system of the smart terminal may be an IOS system or an android system. The terminal APP is used for collecting and storing driving data of a driver, and driving behavior analysis service can be achieved through the stored driving data.
In one embodiment, as shown in fig. 1, a terminal power saving method for GPS data acquisition is provided, which may include the steps of:
101, when the terminal APP is started or receives a wake-up notification, entering a working state and starting a GPS function of the intelligent terminal, where the wake-up notification is sent by detecting that the current position of the intelligent terminal is not within the created geo-fence or an important position of the intelligent terminal is changed by an operating system of the intelligent terminal.
Wherein, the opening of terminal APP can control intelligent terminal's GPS function in order to gather real-time GPS data. In specific application, when a user installs a terminal APP on an intelligent terminal, the user only needs to select an authorized terminal APP to use a GPS function, and after the terminal APP is started for the first time, the terminal APP starts a system awakening notification service and creates a new geo-fence (also called an electronic fence).
The running state of the terminal APP comprises a dormant state and a working state, the terminal APP can start the awakening notification service when entering the dormant state, the awakening notification service is used for receiving the awakening notification sent by the operating system, and the terminal APP can close the awakening notification service when entering the working state.
The geo-fence can be an area created by taking the position finally acquired by the GPS function as the center and a preset distance as a radius when the GPS function of the intelligent terminal is closed by the terminal APP at the previous time, and the geo-fence comprises a latitude and longitude range.
After the terminal APP starts the GPS function, information such as current longitude and latitude, speed and altitude can be acquired in real time through the GPS function.
In a preferred example, the current position of the intelligent terminal is obtained based on base station positioning and/or WiFi positioning of the intelligent terminal.
In this embodiment, when the terminal APP is in the sleep state, the operating system of the intelligent terminal does not start the GPS function, may periodically obtain the current position of the intelligent terminal by performing base station positioning and/or WiFi positioning on the intelligent terminal, and compare the current position of the intelligent terminal with the created geo-fence, and when the current position of the intelligent terminal is not within the created geo-fence, that is, a driver of the intelligent terminal leaves the created geo-fence, a wakeup notification may be generated and sent to the terminal APP to wake up the terminal APP to enter a working state. Here, the base station positioning and the WiFi positioning may refer to the prior art, and will not be described herein too much.
In a preferred example, the stay time of the intelligent terminal in the important position is not less than a preset time, and when the current position of the intelligent terminal is far away from the important position, the important position is changed.
The preset time period may be set according to actual needs, for example, set to 2 hours.
In this embodiment, when the terminal APP is in the dormant state, the operating system of the intelligent terminal may periodically obtain the position of the intelligent terminal by performing base station positioning and/or WiFi positioning on the intelligent terminal, and record the stay time of the intelligent terminal staying at the position, and when the stay time at the position is not less than the preset time, determine that the position is an important position. If the current position of the intelligent terminal is far away from the important position, the important position is determined to be changed, a wake-up notice is generated, and after the wake-up notice is sent to the terminal APP, the terminal APP is wakened up to enter a working state so as to start the GPS function of the intelligent terminal.
It can be understood that when the residence time of the intelligent terminal in the created geo-fence exceeds the preset time, the geo-fence is the area where the important location is located.
102, the terminal APP determines whether a vehicle of a driver of the intelligent terminal is started or not at least based on real-time GPS data collected by the GPS function of the intelligent terminal.
The real-time GPS data comprises longitude and latitude information, speed information, acceleration information, azimuth angle information and the like.
Specifically, the moving speed of the driver is determined according to real-time GPS data acquired by the GPS function, whether the vehicle of the driver is started or not is judged according to the moving speed of the driver, wherein when the moving speed of the driver is larger than a preset speed threshold value, the vehicle of the driver is determined to be started, otherwise, the vehicle is determined not to be started, and the preset speed threshold value can be set according to actual needs.
103, if the terminal APP determines that the vehicle is started, the terminal APP acquires and stores real-time GPS data in the driving process after the vehicle is started, and after the step 103, the step 104 is executed.
Specifically, the terminal APP stores real-time GPS data acquired by the GPS function when the vehicle is started and real-time GPS data in a driving process after the vehicle is started into a memory of the terminal APP.
And 104, if the terminal APP determines that the vehicle finishes the driving process, the GPS function is turned off, the awakening notification service is started, and a new geo-fence is created to enter a dormant state.
The terminal APP can determine whether the vehicle finishes the driving process or not according to the real-time GPS data acquired by the GPS function.
And 105, if the terminal APP determines that the vehicle is not started, the GPS function is closed, the awakening notification service is started, and a new geo-fence is created to enter a dormant state.
In this embodiment, when a new geo-fence is created, the terminal APP may create the geo-fence by using the position acquired by the GPS function as the center and using the preset distance as the radius, based on the GPS function of the intelligent terminal being turned off.
It should be noted that the terminal APP does not create a geofence during the driving process of the vehicle, but only when it is determined that the vehicle is not started or the driving process of the vehicle is finished. After each geographic fence is created by the terminal APP, the created geographic fence is sent to the operating system of the intelligent terminal, so that the operating system stores the created geographic fence, and when the terminal APP is in a dormant state, the current position of the intelligent terminal is obtained by periodically carrying out base station positioning and/or WiFi positioning on the intelligent terminal, and whether the current position of the intelligent terminal is in the created geographic fence is judged.
According to the terminal power saving method and device for GPS data acquisition and the intelligent terminal, when the terminal APP is started or the awakening notification is received, the terminal APP enters a working state and starts the GPS function of the intelligent terminal, wherein the awakening notification is sent after the operating system of the intelligent terminal detects that the current position of the intelligent terminal is not in the established geo-fence or the important position of the intelligent terminal is changed; the method comprises the steps that a terminal APP determines whether a vehicle of a driver of an intelligent terminal is started or not through real-time GPS data collected by the GPS function, and collects the real-time GPS data in the driving process after the vehicle is started, the GPS function is turned off when the vehicle is not started or the driving process of the vehicle is finished, a wake-up notification service is turned on, and a new geo-fence is created to enter a dormant state, so that the GPS function is turned on only when the terminal APP enters the working state to determine whether the vehicle is started or not, and the GPS data is collected in real time when the vehicle is not started or the vehicle is finished, the GPS function is turned off by the terminal APP, and the working state and the dormant state can be realized, so that the problem that the GPS function continuously collects the GPS data to cause large power consumption of the intelligent terminal can be effectively solved, the driving data in the whole driving process can be accurately and completely collected, and the inaccuracy of vehicle insurance premium pricing of an insurance company on the driver due to the incomplete collection of the driving behavior data is avoided.
In one embodiment, the method further comprises:
acquiring real-time motion state data of the intelligent terminal through a sensor built in the intelligent terminal, and determining whether a vehicle is started or not by the terminal APP based on the real-time motion state data and the real-time GPS data;
and if the terminal APP determines that the vehicle is started, acquiring and storing real-time GPS data and real-time motion state data in the driving process after the vehicle is started.
In this embodiment, the built-in sensor of the intelligent terminal may be a pedometer sensor, an acceleration sensor, a gyro sensor, an azimuth sensor, a magnetic field sensor, a gravity sensor, a distance sensor, a motion sensor, or the like, but is not limited thereto. Accordingly, the real-time motion state data collected by the sensors may include step numbers, horizontal acceleration, gravitational acceleration, gyroscope data, angular velocities, orientations, magnetic fields, and the like.
In one embodiment, the terminal APP determines whether the vehicle is started based on the real-time motion state data and the real-time GPS data, and the process may include:
determining a motion state and a current speed of the driver based on the real-time motion state data and the real-time GPS data, wherein the motion state of the driver can comprise a static state, a walking state, a riding state, a running state and a driving state;
determining that the vehicle is started when the motion state and the current speed of the driver satisfy one of the following conditions:
the motion state is a driving state and the current speed is greater than a first threshold; or
The motion state is not a driving state and the current speed is greater than a second threshold, wherein the second threshold is greater than the first threshold; or
The motion state is a walking state, the current speed is greater than a first threshold, and the statistics of the number of steps in a preset time period before the current time is zero.
In this embodiment, whether the vehicle starts is judged by combining the real-time GPS data acquired by the GPS function of the intelligent terminal and the real-time motion state data acquired by the various sensors, and compared with the method of judging whether the vehicle starts only by using the GPS data, the method can further improve the judgment accuracy.
The method provided by the embodiment of the invention is further explained in conjunction with fig. 2. Fig. 2 is a technical architecture diagram of a method provided by an embodiment of the present invention, and referring to fig. 2, the method may include:
step one, when a terminal APP receives a notice that a driver leaves a geo-fence or an important position change notice sent by an operating system or the terminal APP is opened, the terminal APP enters a working state to start a GPS function, and whether the following preset conditions are met or not is checked according to the GPS function and data collected by a terminal sensor:
1) The motion state is a driving state and the current speed is greater than 15 km/h;
2) The motion state is not the driving state and the current speed is greater than 30 km/h;
3) The motion state is walking and the current speed is greater than 15km/h and the last 6 seconds step count is 0;
if one of the 3 preset conditions is met, the vehicle of the driver is judged to be started, the vehicle is marked as moving, and collected data (position longitude and latitude, speed, horizontal acceleration, gravity acceleration, gyroscope data, angular speed and the like) are stored to the local terminal;
step two, in the process of movement, if the current state of the driver is detected to stop (movement is finished), the GPS function is closed, the system important position changing service function is started, and a new geo-fence is created based on the position finally acquired by the GPS function;
step three, if any preset condition is not met, judging that the vehicle of the driver is not started, closing the GPS function, starting the system important position change service function, and creating a new geo-fence based on the position finally acquired by the GPS function;
and step four, returning to execute the step one.
In one embodiment, the method further comprises:
and judging whether the position of the intelligent terminal when the vehicle is not started or the vehicle finishes running is located in the established geo-fence, and if not, establishing a new geo-fence based on the position.
Wherein the number of geofences created can be one or more.
In this embodiment, before a new geo-fence is created each time, the terminal APP determines whether the current location (longitude and latitude) of the intelligent terminal is located within the created geo-fence, if so, the new geo-fence does not need to be created, and if not, the new geo-fence needs to be created, so that repeated creation of geo-fences can be avoided.
Further, the method further comprises:
deleting the oldest created geofence if the sum of the number of new geofences and created geofences exceeds the maximum stored number.
The maximum storage amount may be set according to actual needs, for example, set to 20, that is, when the number of the geo-fences stored by the operating system is 20, the geo-fence created first is deleted, so that excessive occupation of storage resources of the operating system can be avoided.
It should be understood that, although the steps in the above-described flowcharts are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the above flowcharts may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the sub-steps or the stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a terminal power saving device for GPS data acquisition, which may include:
the wake-up module 301 is configured to enter a working state when the terminal APP is started or a wake-up notification is received, where the wake-up notification is sent when an operating system of the intelligent terminal detects that a current position of the intelligent terminal is not within a created geo-fence or an important position of the intelligent terminal is changed;
the starting module 302 is used for starting the GPS function of the intelligent terminal after the terminal APP enters the working state;
the acquisition module 303 is used for acquiring real-time GPS data through the GPS function of the intelligent terminal;
a determining module 304, configured to determine, by the terminal APP, whether a vehicle of a driver of the intelligent terminal is started based on at least real-time GPS data acquired by a GPS function of the intelligent terminal;
an obtaining module 305, configured to obtain and store real-time GPS data in a driving process after a vehicle is started if the terminal APP determines that the vehicle is started;
a closing module 306, configured to close the GPS function if the terminal APP determines that the vehicle is not started or the vehicle finishes a driving process;
a sleep module 307 to turn on the wake notification service and create a new geofence to enter a sleep state.
Further, the current position of the intelligent terminal is obtained based on base station positioning and/or WiFi positioning of the intelligent terminal.
Furthermore, the stay time of the intelligent terminal at the important position is not less than the preset time, and when the current position of the intelligent terminal is far away from the important position, the important position is changed.
Further, the acquisition module 303 is further configured to:
acquiring real-time motion state data of the intelligent terminal through a sensor built in the intelligent terminal;
the determination module 304 is further configured to:
determining whether the vehicle is started based on the real-time motion state data and the real-time GPS data.
Further, the determining module 304 is specifically configured to:
determining the motion state and the current speed of the driver based on the real-time motion state data and the real-time GPS data;
determining that the vehicle is started when the motion state and the current speed of the driver satisfy one of the following conditions:
the motion state is a driving state and the current speed is greater than a first threshold; or
The motion state is not a driving state and the current speed is greater than a second threshold, wherein the second threshold is greater than the first threshold; or alternatively
The motion state is a walking state, the current speed is greater than a first threshold, and the statistics of the number of steps in a preset time period before the current time are zero.
Further, the sleep module 307 is further configured to:
and judging whether the position of the intelligent terminal when the vehicle is not started or the vehicle finishes running is located in the established geo-fence, and if not, establishing a new geo-fence based on the position.
Further, the sleep module 307 is further configured to:
deleting the oldest created geo-fence if the sum of the number of new geo-fences and created geo-fences exceeds the maximum stored number.
For specific limitations of the terminal power saving device for GPS data acquisition, reference may be made to the above limitations of the terminal power saving method for GPS data acquisition, which are not described herein again. All or part of each module in the terminal power saving device for GPS data acquisition can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the intelligent terminal, and can also be stored in a memory in the intelligent terminal in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, an intelligent terminal is provided, the internal structure of which can be as shown in fig. 4. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a link simulation testing method. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the intelligent terminal can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the intelligent terminal, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, an intelligent terminal is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:
when a terminal APP is started or a wake-up notice is received, the terminal APP enters a working state and starts a GPS function of the intelligent terminal, and the wake-up notice is sent by detecting that the current position of the intelligent terminal is not in the established geo-fence or the important position of the intelligent terminal is changed by an operating system of the intelligent terminal;
the method comprises the steps that a terminal APP determines whether a vehicle of a driver of an intelligent terminal is started or not at least based on real-time GPS data collected by a GPS function of the intelligent terminal;
if the terminal APP determines that the vehicle is started, real-time GPS data in the driving process after the vehicle is started are obtained and stored;
and if the terminal APP determines that the vehicle is not started or the vehicle finishes the driving process, the GPS function is closed, the awakening notification service is started, and a new geo-fence is created to enter a dormant state.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when a terminal APP is started or a wake-up notice is received, the terminal APP enters a working state and starts a GPS function of the intelligent terminal, and the wake-up notice is sent when an operating system of the intelligent terminal detects that the current position of the intelligent terminal is not in the established geo-fence or an important position is changed;
the method comprises the steps that a terminal APP determines whether a vehicle of a driver of an intelligent terminal is started or not at least based on real-time GPS data collected by a GPS function of the intelligent terminal;
if the terminal APP determines that the vehicle is started, real-time GPS data in the driving process after the vehicle is started are obtained and stored;
and if the terminal APP determines that the vehicle is not started or the vehicle finishes the driving process, the GPS function is closed, the awakening notification service is started, and a new geo-fence is created to enter a dormant state.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (9)
1. A terminal power saving method for GPS data acquisition is characterized by comprising the following steps:
when a terminal APP is started or a wake-up notice is received, entering a working state and starting a GPS function of an intelligent terminal, wherein the wake-up notice is sent by detecting that the current position of the intelligent terminal is not in a created geo-fence or an important position is changed by an operating system of the intelligent terminal;
the terminal APP determines whether a vehicle of a driver of the intelligent terminal is started or not at least based on real-time GPS data acquired by a GPS function of the intelligent terminal;
if the terminal APP determines that the vehicle is started, real-time GPS data in the driving process after the vehicle is started are obtained and stored;
if the terminal APP determines that the vehicle is not started or the vehicle finishes the driving process, the GPS function is closed, a wakeup notification service is started, and a new geo-fence is created to enter a dormant state;
the stay time of the intelligent terminal at the important position is not less than a preset time, and when the current position of the intelligent terminal is far away from the important position, the important position is changed;
the running state of the terminal APP comprises a dormant state and a working state.
2. The method of claim 1, wherein the current location of the intelligent terminal is obtained based on base station positioning and/or WiFi positioning of the intelligent terminal.
3. The method according to any one of claims 1 to 2, further comprising:
acquiring real-time motion state data of the intelligent terminal through a sensor built in the intelligent terminal;
the terminal APP is based on at least real-time GPS data that intelligent terminal's GPS function was gathered, confirms whether intelligent terminal's driver's vehicle starts, include:
and the terminal APP determines whether the vehicle is started or not based on the real-time motion state data and the real-time GPS data.
4. The method according to claim 3, characterized in that said terminal APP determining whether said vehicle is started based on said real-time kinematic state data and said real-time GPS data comprises:
determining a motion state and a current speed of the driver based on the real-time motion state data and the real-time GPS data;
determining that the vehicle is started when the motion state of the driver and the current speed satisfy one of the following conditions:
the motion state is a driving state and the current speed is greater than a first threshold; or
The motion state is not a driving state and the current speed is greater than a second threshold, wherein the second threshold is greater than a first threshold; or alternatively
The motion state is a walking state, the current speed is greater than the first threshold, and the statistics of the number of steps in a preset time period before the current time are zero.
5. The method of claim 1, further comprising:
and judging whether the position of the intelligent terminal when the vehicle is not started or the vehicle finishes running is located in the established geo-fence, and if not, establishing the new geo-fence based on the position.
6. The method according to claim 1 or 5, characterized in that the method further comprises:
deleting the oldest created geo-fence if the sum of the new geo-fence and the number of created geo-fences exceeds a maximum storage number.
7. A terminal power saving device for GPS data acquisition, comprising:
the terminal comprises a wake-up module, a storage module and a processing module, wherein the wake-up module is used for entering a working state when the terminal APP is started or receives a wake-up notice, and the wake-up notice is sent when an operating system of the intelligent terminal detects that the current position of the intelligent terminal is not in a created geo-fence or an important position is changed; the stay time of the intelligent terminal at the important position is not less than a preset time, and when the current position of the intelligent terminal is far away from the important position, the important position is changed;
the starting module is used for starting the GPS function of the intelligent terminal after the terminal APP enters the working state;
the acquisition module is used for acquiring real-time GPS data through the GPS function of the intelligent terminal;
the determining module is used for determining whether a vehicle of a driver of the intelligent terminal is started or not by the terminal APP at least based on real-time GPS data acquired by the GPS function of the intelligent terminal;
the acquisition module is used for acquiring and storing real-time GPS data in a driving process after the vehicle is started if the terminal APP determines that the vehicle is started;
a closing module, configured to close the GPS function if the terminal APP determines that the vehicle is not started or the vehicle ends the driving process;
a sleep module to turn on a wake up notification service and create a new geo-fence to enter a sleep state;
the running state of the terminal APP comprises a dormant state and a working state.
8. An intelligent terminal comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any one of claims 1 to 6.
9. 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 according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011398705.5A CN112444831B (en) | 2020-12-02 | 2020-12-02 | Terminal power saving method and device for GPS data acquisition and intelligent terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011398705.5A CN112444831B (en) | 2020-12-02 | 2020-12-02 | Terminal power saving method and device for GPS data acquisition and intelligent terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112444831A CN112444831A (en) | 2021-03-05 |
CN112444831B true CN112444831B (en) | 2023-03-14 |
Family
ID=74739602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011398705.5A Active CN112444831B (en) | 2020-12-02 | 2020-12-02 | Terminal power saving method and device for GPS data acquisition and intelligent terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112444831B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115018436B (en) * | 2021-11-16 | 2023-12-01 | 荣耀终端有限公司 | Travel reminder methods and electronic devices |
CN115436978A (en) * | 2022-08-15 | 2022-12-06 | 深圳市芯盛智能信息有限公司 | Vehicle-mounted electronic equipment positioning control method based on Beidou satellite navigation |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6693585B1 (en) * | 2002-02-07 | 2004-02-17 | Aradiant Corporation | Self-contained selectively activated mobile object position reporting device with reduced power consumption and minimized wireless service fees. |
CN103675866A (en) * | 2012-09-21 | 2014-03-26 | 中国移动通信集团公司 | Positioning device and method |
CN106707312A (en) * | 2016-11-28 | 2017-05-24 | 成都路行通信息技术有限公司 | Automatic electricity saving method and device for vehicle GPS equipment, and vehicle GPS equipment |
KR101852363B1 (en) * | 2018-01-09 | 2018-04-27 | 이승호 | Method for scheduling to efficient management of power in positioning device of vehicle |
CN109493447A (en) * | 2018-09-26 | 2019-03-19 | 中国平安财产保险股份有限公司 | Start method, apparatus, computer equipment and the storage medium of driving recording |
CN109872197A (en) * | 2019-03-12 | 2019-06-11 | 众安在线财产保险股份有限公司 | Handle the method and device thereof of user information |
CN110657797A (en) * | 2019-10-16 | 2020-01-07 | 上海钧正网络科技有限公司 | Vehicle positioning method and system |
CN110749908A (en) * | 2019-09-27 | 2020-02-04 | 华为终端有限公司 | Positioning method and related equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4680626B2 (en) * | 2005-02-16 | 2011-05-11 | 株式会社エヌ・ティ・ティ・ドコモ | Notification service control server, message notification service system, mobile terminal, and message notification service control method |
US8085190B2 (en) * | 2008-03-31 | 2011-12-27 | Intel Corporation | Method and apparatus for faster global positioning system (GPS) location using a pre-computed spatial location for tracking GPS satellites |
CN101360146B (en) * | 2008-09-12 | 2013-04-10 | 青岛海信移动通信技术股份有限公司 | Positioning method and system of mobile communication apparatus |
US9488487B2 (en) * | 2013-11-01 | 2016-11-08 | Yahoo! Inc. | Route detection in a trip-oriented message data communications system |
CN107643531A (en) * | 2016-07-20 | 2018-01-30 | 西安中兴新软件有限责任公司 | GPS control method and device |
-
2020
- 2020-12-02 CN CN202011398705.5A patent/CN112444831B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6693585B1 (en) * | 2002-02-07 | 2004-02-17 | Aradiant Corporation | Self-contained selectively activated mobile object position reporting device with reduced power consumption and minimized wireless service fees. |
CN103675866A (en) * | 2012-09-21 | 2014-03-26 | 中国移动通信集团公司 | Positioning device and method |
CN106707312A (en) * | 2016-11-28 | 2017-05-24 | 成都路行通信息技术有限公司 | Automatic electricity saving method and device for vehicle GPS equipment, and vehicle GPS equipment |
KR101852363B1 (en) * | 2018-01-09 | 2018-04-27 | 이승호 | Method for scheduling to efficient management of power in positioning device of vehicle |
CN109493447A (en) * | 2018-09-26 | 2019-03-19 | 中国平安财产保险股份有限公司 | Start method, apparatus, computer equipment and the storage medium of driving recording |
CN109872197A (en) * | 2019-03-12 | 2019-06-11 | 众安在线财产保险股份有限公司 | Handle the method and device thereof of user information |
CN110749908A (en) * | 2019-09-27 | 2020-02-04 | 华为终端有限公司 | Positioning method and related equipment |
CN110657797A (en) * | 2019-10-16 | 2020-01-07 | 上海钧正网络科技有限公司 | Vehicle positioning method and system |
Non-Patent Citations (5)
Title |
---|
android功耗(23)---gps定位开发省电要点;android功耗;《zhangbijun1230的专栏-CSDN博客》;20180622;1-2页 * |
LALS: A Low Power Accelerometer Assisted Location Sensing technique for smartphones;Thomas Olutoyin Oshin等;《 2013 IEEE Global Communications Conference (GLOBECOM)》;20131213;1-7页 * |
基于GPS/GSM的低能耗智能小车控制系统设计;金星等;《信息技术与信息化》;20160325(第03期);1-4页 * |
基于手机信息的定位和路况分析系统;张通;《中国优秀博硕士学位论文全文数据库(硕士)工程科技Ⅱ辑》;20170315;1-67页 * |
车载4G智慧终端的设计与实现;崔正杰;《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》;20160515;1-85页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112444831A (en) | 2021-03-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10217055B2 (en) | Methods and systems for sensor-based driving data collection | |
US10297148B2 (en) | Network computer system for analyzing driving actions of drivers on road segments of a geographic region | |
US9424744B2 (en) | Method and apparatus for traffic management | |
US20170103342A1 (en) | Machine learning based determination of accurate motion parameters of a vehicle | |
CN112444831B (en) | Terminal power saving method and device for GPS data acquisition and intelligent terminal | |
CN111247565A (en) | Electronic log recording and tracking identification system for mobile telematics devices and corresponding method thereof | |
US20130122928A1 (en) | Systems and methods for identifying and acting upon states and state changes | |
CN105144140A (en) | Systems and methods for telematics control and communications | |
CN111091215B (en) | Vehicle identification method, device, computer equipment and storage medium | |
CN109389863A (en) | Reminding method and relevant device | |
US11525678B2 (en) | Use of offline algorithm to determine location from previous sensor data when location is requested | |
US20180368095A1 (en) | System and method for positioning a gateway of an architecture | |
US11622227B2 (en) | Location tracking with loitering logic | |
CN109493447B (en) | Method and device for starting driving record, computer equipment and storage medium | |
CN116414817A (en) | Track point processing method, electronic equipment and storage medium | |
CN110516017B (en) | Terminal device-based location information processing method, device, electronic device, and storage medium | |
CN111340965A (en) | Traffic card settlement information processing method and device and traffic card charging terminal | |
CN111626588A (en) | Vehicle delivery area determining method, device, server and storage medium | |
CN111767460B (en) | Information push method and device based on geographic location | |
US20200393573A1 (en) | Control apparatus, method and computer program code for controlling indoor positioning transitions | |
CN111640307A (en) | Method and device for monitoring overspeed driving of vehicle and related product | |
CN115240400A (en) | Vehicle position recognition method and device, and vehicle position output method and device | |
US11659352B2 (en) | Method and apparatus for geofence event predictions | |
CN117295008B (en) | Information push method and device | |
WO2023124986A1 (en) | Positioning-based service implementation method, data processing method, and apparatus |
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 |