CN112444831A - 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 PDF

Info

Publication number
CN112444831A
CN112444831A CN202011398705.5A CN202011398705A CN112444831A CN 112444831 A CN112444831 A CN 112444831A CN 202011398705 A CN202011398705 A CN 202011398705A CN 112444831 A CN112444831 A CN 112444831A
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.)
Granted
Application number
CN202011398705.5A
Other languages
Chinese (zh)
Other versions
CN112444831B (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.)
Zhongan Online P&c Insurance Co ltd
Original Assignee
Zhongan Online P&c Insurance Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongan Online P&c Insurance Co ltd filed Critical Zhongan Online P&c Insurance Co ltd
Priority to CN202011398705.5A priority Critical patent/CN112444831B/en
Publication of CN112444831A publication Critical patent/CN112444831A/en
Application granted granted Critical
Publication of CN112444831B publication Critical patent/CN112444831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/34Power consumption
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

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

Terminal power saving method and device for GPS data acquisition and intelligent terminal
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 purchases a vehicle 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;
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.
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 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 a first threshold; or
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 geofence if the sum of the new geofence and the number of established geofences exceeds a maximum stored number.
In a second aspect, a terminal power saving device for GPS data acquisition is provided, the device comprising:
the device 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 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 geo-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 time length, 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 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 a first threshold; or
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 created geo-fence, if not, creating 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 terminal APP determines whether a vehicle of a driver of the intelligent terminal is started or not through real-time GPS data acquired by the GPS function and acquires 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, the awakening 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 acquired in real time during the driving of the vehicle, and the GPS function is turned off when the vehicle is not started or the driving of the vehicle is finished, the automatic switching between the working state and the dormant state of the terminal APP can be realized, the problem that the GPS function continuously acquires the GPS data to cause large power consumption of the intelligent terminal can be effectively solved, and the driving data in the whole driving process can be accurately and completely acquired, further, the inaccuracy of the insurance company for pricing the vehicle insurance premium of the driver due to incomplete driving behavior data acquisition 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 in one embodiment;
FIG. 3 is a block diagram of a terminal power saving device for GPS data acquisition according to an 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 apparent, the present application is described in further 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 intelligent terminal is greatly consumed to collect 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's GPS function can be controlled intelligent terminal 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 may be an area created by the terminal APP when the terminal APP previously closes the GPS function of the intelligent terminal, centering on a position last acquired by the GPS function, and using a preset distance as a radius, and the geo-fence includes a latitude and longitude range.
After the GPS function is started by the terminal APP, the information such as the current longitude and latitude, the speed, the altitude and the like 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 operating system of the intelligent terminal is in the sleep state at the terminal APP, the GPS function is not turned on, the current position of the intelligent terminal can be obtained by periodically performing base station positioning and/or WiFi positioning on the intelligent terminal, and the current position of the intelligent terminal is compared with the created geo-fence, when the current position of the intelligent terminal is not in the created geo-fence, that is, a driver of the intelligent terminal leaves the created geo-fence, a wake-up notification is generated and sent to the terminal APP to wake up the terminal APP to enter the 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 terminal APP memory.
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 according to real-time GPS data collected 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 the terminal APP creates a new geo-fence, 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 that is 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 terminal APP determines whether a vehicle of a driver of the intelligent terminal is started or not through real-time GPS data acquired by the GPS function and acquires 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, the awakening 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 acquires the GPS data in real time during the driving of the vehicle, and the GPS function is turned off when the vehicle is not started or the driving process of the vehicle is finished, and the working state and the dormant state can be realized, thereby effectively solving the problem that the GPS function continuously acquires the GPS data to cause large power consumption of the intelligent terminal, and accurately and completely acquiring the driving data in the whole driving process, further, the inaccuracy of the insurance company for pricing the vehicle insurance premium of the driver due to incomplete driving behavior data acquisition 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 counts, horizontal acceleration, gravitational acceleration, gyroscope data, angular velocity, orientation, magnetic field, 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 present invention is further described below with reference to 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 a 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 creating a new geo-fence each time, the terminal APP determines whether the current location (longitude and latitude) of the intelligent terminal is located within the created geo-fence, and 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 order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in the above-described 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 sequential, but may be performed alternately or alternatingly with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a terminal power saving apparatus for GPS data acquisition, the apparatus 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 a 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 starts if a terminal APP determines that the vehicle starts;
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
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.
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 geofence if the sum of the number of new geofences and created geofences 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 the corresponding operations of 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, there is provided an intelligent terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
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 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.
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 Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification 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 (10)

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 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.
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 claim 1, wherein the stay time of the intelligent terminal at the important position is not less than a preset time, and the important position is changed when the current position of the intelligent terminal is far away from the important position.
4. The method of any of claims 1 to 3, 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.
5. The method according to claim 4, characterized in that said terminal APP determining whether said vehicle is started or not, 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 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 a first threshold; or
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.
6. 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 created geo-fence, if not, creating the new geo-fence based on the position.
7. The method of claim 1 or 6, further comprising:
deleting the oldest created geofence if the sum of the new geofence and the number of established geofences exceeds a maximum stored number.
8. A terminal power saving device for GPS data acquisition, comprising:
the device 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 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 geo-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.
9. 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 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011398705.5A 2020-12-02 2020-12-02 Terminal power saving method and device for GPS data acquisition and intelligent terminal Active CN112444831B (en)

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 true CN112444831A (en) 2021-03-05
CN112444831B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115018436A (en) * 2021-11-16 2022-09-06 荣耀终端有限公司 Travel reminding method and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
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.
JP2006229479A (en) * 2005-02-16 2006-08-31 Ntt Docomo Inc Notification service control server, message notification service system, mobile terminal, and message notification service control system
CN101360146A (en) * 2008-09-12 2009-02-04 青岛海信移动通信技术股份有限公司 Positioning method and system of mobile communication apparatus
US20090243929A1 (en) * 2008-03-31 2009-10-01 Uttam Sengupta Method and apparatus for faster global positioning system (gps) location using a pre-computed spatial location for tracking gps satellites
CN103675866A (en) * 2012-09-21 2014-03-26 中国移动通信集团公司 Positioning device and method
US20160003637A1 (en) * 2013-11-01 2016-01-07 Yahoo! Inc. Route detection in a trip-oriented message data communications system
CN106707312A (en) * 2016-11-28 2017-05-24 成都路行通信息技术有限公司 Automatic electricity saving method and device for vehicle GPS equipment, and vehicle GPS equipment
WO2018014620A1 (en) * 2016-07-20 2018-01-25 中兴通讯股份有限公司 Control method and apparatus for gps, and storage medium
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

Patent Citations (13)

* Cited by examiner, † Cited by third party
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.
JP2006229479A (en) * 2005-02-16 2006-08-31 Ntt Docomo Inc Notification service control server, message notification service system, mobile terminal, and message notification service control system
US20090243929A1 (en) * 2008-03-31 2009-10-01 Uttam Sengupta Method and apparatus for faster global positioning system (gps) location using a pre-computed spatial location for tracking gps satellites
CN101360146A (en) * 2008-09-12 2009-02-04 青岛海信移动通信技术股份有限公司 Positioning method and system of mobile communication apparatus
CN103675866A (en) * 2012-09-21 2014-03-26 中国移动通信集团公司 Positioning device and method
US20160003637A1 (en) * 2013-11-01 2016-01-07 Yahoo! Inc. Route detection in a trip-oriented message data communications system
WO2018014620A1 (en) * 2016-07-20 2018-01-25 中兴通讯股份有限公司 Control method and apparatus for gps, and storage medium
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 (6)

* Cited by examiner, † Cited by third party
Title
ANDROID功耗: "android功耗(23)---gps定位开发省电要点", 《ZHANGBIJUN1230的专栏-CSDN博客》 *
THOMAS OLUTOYIN OSHIN等: "LALS: A Low Power Accelerometer Assisted Location Sensing technique for smartphones", 《 2013 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM)》 *
崔正杰: "车载4G智慧终端的设计与实现", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 *
张通: "基于手机信息的定位和路况分析系统", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技Ⅱ辑》 *
杨博等: "基于多元自感知的车辆智能服务系统设计", 《物联网技术》 *
金星等: "基于GPS/GSM的低能耗智能小车控制系统设计", 《信息技术与信息化》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115018436A (en) * 2021-11-16 2022-09-06 荣耀终端有限公司 Travel reminding method and electronic equipment
CN115018436B (en) * 2021-11-16 2023-12-01 荣耀终端有限公司 Travel reminding method and electronic equipment

Also Published As

Publication number Publication date
CN112444831B (en) 2023-03-14

Similar Documents

Publication Publication Date Title
CN110873888B (en) Positioning method, positioning device, positioning apparatus, and computer storage medium
CN105981418B (en) Personal geography fence
US11182700B2 (en) Methods, devices, and systems for automatically detecting, tracking, and validating transit journeys
US10297148B2 (en) Network computer system for analyzing driving actions of drivers on road segments of a geographic region
US20170103342A1 (en) Machine learning based determination of accurate motion parameters of a vehicle
US9812015B1 (en) Systems and methods for determining parking information for a vehicle using vehicle data and external parking data
US20130122928A1 (en) Systems and methods for identifying and acting upon states and state changes
CN103428361A (en) Operating Geographic Location Systems
CN105047001A (en) Method, vehicle and mobile terminal for realizing vehicle parking management and control reminding
US11622227B2 (en) Location tracking with loitering logic
CN104596500A (en) Navigation method, navigation apparatus and terminal
CN112444831B (en) Terminal power saving method and device for GPS data acquisition and intelligent terminal
CN111091215B (en) Vehicle identification method, device, computer equipment and storage medium
US11525678B2 (en) Use of offline algorithm to determine location from previous sensor data when location is requested
CN109493447B (en) Method and device for starting driving record, computer equipment and storage medium
CN113204749A (en) Near field information authentication method and device based on time control
CN114879879B (en) Method for displaying health code, electronic equipment and storage medium
CN115240400A (en) Vehicle position recognition method and device, and vehicle position output method and device
CN113840279A (en) Analog card activation method, device, terminal and storage medium
CN111161533B (en) Traffic accident processing method and device and electronic equipment
US11659352B2 (en) Method and apparatus for geofence event predictions
CN111626588A (en) Vehicle delivery area determining method, device, server and storage medium
Panizzi et al. A framework to enhance the user experience of car mobile applications
WO2023124986A1 (en) Positioning-based service implementation method, data processing method, and apparatus
CN113485347B (en) Motion trail optimization method and system

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