CN108235292B - Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium - Google Patents

Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium Download PDF

Info

Publication number
CN108235292B
CN108235292B CN201711498231.XA CN201711498231A CN108235292B CN 108235292 B CN108235292 B CN 108235292B CN 201711498231 A CN201711498231 A CN 201711498231A CN 108235292 B CN108235292 B CN 108235292B
Authority
CN
China
Prior art keywords
state
mobile terminal
communication
vehicle
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711498231.XA
Other languages
Chinese (zh)
Other versions
CN108235292A (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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201711498231.XA priority Critical patent/CN108235292B/en
Publication of CN108235292A publication Critical patent/CN108235292A/en
Application granted granted Critical
Publication of CN108235292B publication Critical patent/CN108235292B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Navigation (AREA)

Abstract

The invention discloses a method, a device, equipment and a readable storage medium for prolonging the endurance of a mobile terminal, wherein the method comprises the following steps: when detecting that the GPS positioning function of the mobile terminal is in a working state, detecting the communication state of wireless communication of the mobile terminal; determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state, and determining the target state of the GPS positioning function according to the position relation; and judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal. The working state of the GPS positioning function is the actual starting state of the GPS positioning function of the mobile terminal, and the target state represents the state of the GPS positioning function. When the two are not consistent, the GPS positioning function is in a closed state, so that the open state is switched to a target closed state, the power consumption of the mobile terminal is reduced, and the cruising ability of the mobile terminal is enhanced.

Description

Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium
Technical Field
The invention mainly relates to the technical field of financial wind control systems, in particular to a method, a device, equipment and a readable storage medium for prolonging the endurance of a mobile terminal.
Background
Currently, with the development of urban roads, navigation and positioning during driving are increasingly common. Many car owners download navigation software or driving recording software through mobile phone terminals to perform navigation positioning, and in order to achieve high-accuracy navigation positioning, a GPS positioning function of the mobile phone terminal needs to be started in the using process. However, after the navigation service is finished, the vehicle owner may not turn off the GPS positioning function of the mobile phone terminal in time, so that the power consumption of the mobile phone terminal is increased, meaningless energy consumption is caused to the mobile phone terminal, and the cruising ability of the vehicle is shortened.
Disclosure of Invention
The invention mainly aims to provide a method, a device and equipment for prolonging the endurance of a mobile terminal and a readable storage medium, and aims to solve the problems that a GPS (global positioning system) positioning function is not closed in time, the power consumption is increased and the endurance is influenced in the prior art.
In order to achieve the above object, the present invention provides a method for prolonging the endurance of a mobile terminal, which comprises the following steps:
when detecting that the GPS positioning function of the mobile terminal is in a working state, detecting the communication state of wireless communication of the mobile terminal;
determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state, and determining the target state of the GPS positioning function according to the position relation;
and judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal.
Preferably, the wireless communication includes WiFi, and the step of determining the location relationship between the mobile terminal and the paired vehicle of the mobile terminal according to the communication status, and determining the target status of the GPS positioning function according to the location relationship includes:
when the communication state of the wireless WiFi is a connection state, determining that the position relation is that the mobile terminal is far away from a matched vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relation that the mobile terminal is far away from the matched vehicle;
and when the communication state of the wireless WiFi is a disconnection state, determining that the position relation is that the mobile terminal approaches the paired vehicle, and determining that the target state of the GPS positioning function is an opening state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the opening state is used as a working state.
Preferably, when the communication state of the wireless WiFi is a connection state, the step of determining that the location relationship is that the mobile terminal is far away from the paired vehicle includes:
when the communication state of the wireless WIFI is a connection state, acquiring a signal identifier of a signal source connected with the wireless WIFI;
and judging whether the signal identifier of the signal source is a preset vehicle-mounted wireless identifier or not, and when the signal identifier is not the preset vehicle-mounted wireless identifier, determining that the position relation is that the mobile terminal is far away from the paired vehicle.
Preferably, the wireless communication includes bluetooth communication, and the determining the position relationship between the mobile terminal and the paired vehicle of the mobile terminal according to the communication state and the determining the target state of the GPS positioning function according to the position relationship includes:
when the communication state of the Bluetooth communication is a connection state, determining that the position relationship is that the mobile terminal approaches a paired vehicle, and determining that the target state of the GPS positioning function is an open state according to the position relationship that the mobile terminal approaches the paired vehicle, wherein the open state is used as a working state;
and when the communication state of the Bluetooth communication is a disconnection state, determining that the position relationship is that the mobile terminal is far away from the paired vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relationship that the mobile terminal is far away from the paired vehicle.
Preferably, when the communication state of the bluetooth communication is a connection state, the step of determining that the location relationship is that the mobile terminal approaches the paired vehicle includes:
when the communication state of the Bluetooth communication is a connection state, acquiring a matching identifier of a matching formula connected with the Bluetooth communication;
and judging whether the matching identification of the matching formula is a preset vehicle-mounted Bluetooth identification, and when the matching identification is the preset vehicle-mounted Bluetooth identification, determining that the position relationship is that the mobile terminal approaches to the matched vehicle.
Preferably, the step of judging whether the target state and the working state are consistent comprises the following steps:
and when the target state is consistent with the working state, controlling the GPS positioning function to continuously run in the working state.
In addition, in order to achieve the above object, the present invention further provides a device for extending endurance of a mobile terminal, including:
the detection module is used for detecting the communication state of the wireless communication of the mobile terminal when the GPS positioning function of the mobile terminal is detected to be in the working state;
the determining module is used for determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state and determining the target state of the GPS positioning function according to the position relation;
and the judging module is used for judging whether the target state is consistent with the working state or not, and switching the working state into the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal.
Preferably, the wireless communication includes wireless WiFi, and the determining module includes:
the first determining unit is used for determining that the position relation is that the mobile terminal is far away from the paired vehicle when the communication state of the wireless WiFi is a connection state, and determining that the target state of the GPS positioning function is a closing state according to the position relation that the mobile terminal is far away from the paired vehicle;
and the second determining unit is used for determining that the position relation is that the mobile terminal approaches the paired vehicle when the communication state of the wireless WiFi is a disconnected state, and determining that the target state of the GPS positioning function is an on state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the on state is taken as a working state.
In addition, to achieve the above object, the present invention further provides an apparatus for extending endurance of a mobile terminal, including: the system comprises a memory, a processor, a communication bus and an extended mobile terminal endurance program stored on the memory;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the extended endurance procedure of the mobile terminal to implement the following steps:
when detecting that the GPS positioning function of the mobile terminal is in a working state, detecting the communication state of wireless communication of the mobile terminal;
determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state, and determining the target state of the GPS positioning function according to the position relation;
and judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal.
Further, to achieve the above object, the present invention also provides a readable storage medium storing one or more programs, the one or more programs being executable by one or more processors for:
when detecting that the GPS positioning function of the mobile terminal is in a working state, detecting the communication state of wireless communication of the mobile terminal;
determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state, and determining the target state of the GPS positioning function according to the position relation;
and judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal.
According to the method for prolonging the endurance of the mobile terminal, when the GPS positioning function of the terminal is detected to be in the started working state, the communication state of the wireless communication of the mobile terminal is detected; determining the target state of the GPS positioning function according to the position relation of the mobile terminal and the matched vehicle of the mobile terminal according to the detected communication state; and when the target state is inconsistent with the working state, switching the working state of the GPS positioning function to the target state so as to prolong the endurance of the mobile terminal. According to the scheme, under the condition that the GPS positioning function of the mobile terminal is in the working state, the communication state of wireless communication of the mobile terminal is detected. The GPS positioning function is in a working state, which indicates the actual starting state of the GPS positioning function of the mobile terminal; the communication state of the wireless communication is used for representing the close or far position relation between the mobile terminal and the paired vehicle, the target state of the GPS positioning function can be determined according to the close or far position relation, and the target state is used for representing the state where the GPS positioning function should be located theoretically. When the actual on state is inconsistent with the theoretical target state, it is indicated that the GPS positioning function should be in the off state, so that the on state is switched to the off state of the target, thereby reducing the power consumption of the mobile terminal and enhancing the cruising ability of the mobile terminal.
Drawings
FIG. 1 is a flowchart illustrating a method for extending endurance of a mobile terminal according to a first embodiment of the present invention;
FIG. 2 is a functional block diagram of a first embodiment of a device for extending endurance of a mobile terminal according to the present invention;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a method for prolonging the endurance of a mobile terminal.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for extending a endurance of a mobile terminal according to a first embodiment of the present invention. In this embodiment, the method for extending the endurance of the mobile terminal includes:
step S10, when detecting that the GPS positioning function of the mobile terminal is in working state, detecting the communication state of the mobile terminal wireless communication;
the scheme is suitable for determining that the mobile terminal finishes the vehicle navigation service through the communication state of the wireless communication of the mobile terminal, and closing the GPS positioning function, so that the energy consumption of the mobile terminal is saved, and the continuation of the journey of the mobile terminal is prolonged. The mobile terminal is a terminal with a GPS positioning function, such as a smart phone, a tablet personal computer and the like; the GPS is a Global Positioning System (Global Positioning System), and the basic principle of the navigation function is to measure the distance between a satellite with a known position and a mobile terminal of a user, and then integrate data of multiple satellites to determine the specific position of the mobile terminal of the user. The mobile terminal is internally provided with a GPS module and navigation software, and the GPS module is used for completing data acquisition work such as searching and tracking, positioning speed and the like of a GPS satellite; the map function in the navigation software is used for refreshing the electronic map according to the position information obtained by the GPS module, so that the position of a user continuously moves and changes on the map, and the path guiding calculation function in the navigation software is used for planning a navigation route to a destination according to the requirements of the user so as to guide the user.
In the driving process, a user usually starts navigation function software in the mobile terminal for navigation, and in order to ensure the navigation accuracy, a GPS positioning function needs to be started. When the embodiment detects that the GPS positioning function of the mobile terminal is in the working state, it indicates that the user is performing vehicle navigation through the GPS positioning function, and it is considered that the navigation service of the user may be ended, but the GPS positioning function is not turned off in time. Therefore, the communication state of the wireless communication of the mobile terminal is further detected, and whether the navigation service of the user is finished or not is judged according to the communication state of the wireless communication. Wireless communication is a communication method for exchanging information by using the characteristic that electromagnetic wave signals propagate in free space, and applications thereof in mobile terminals include WiFi (Wireless Fidelity), bluetooth, and the like. The communication state of the wireless communication of the mobile terminal comprises connection and disconnection, a carrier needs to be connected during connection, the mobile terminal is connected with the connection carrier, for example, WiFi is connected with a signal source serving as a WiFi hotspot, or Bluetooth is connected with Bluetooth of another device in a matching manner, and the signal source or the matched Bluetooth is the connection carrier. Because the connection requirement of the connection carrier is vehicle or non-vehicle, namely the connection is carried out in the vehicle or outside the vehicle, the position relation between the mobile terminal and the vehicle can be judged according to the connection or disconnection communication state of the wireless communication, and whether the navigation service of the mobile terminal to the vehicle is finished or not is judged.
Step S20, according to the communication state, determining the position relation between the mobile terminal and the vehicle matched with the mobile terminal, and according to the position relation, determining the target state of the GPS positioning function;
further, after detecting the communication state of the mobile terminal wireless communication, according to the communication state, the position relationship between the mobile terminal and the paired vehicle of the mobile terminal is determined, wherein the paired vehicle of the mobile terminal is a vehicle having a navigation relationship with the mobile terminal, namely, the mobile terminal user navigates the driving route of the vehicle through the mobile terminal. The position relationship between the mobile terminal and the paired vehicle comprises that the mobile terminal is far away from the paired vehicle and the mobile terminal is close to the paired vehicle. For different types of wireless communication, different communication states of the mobile terminal represent that the mobile terminal is far away from the paired vehicle or is close to the paired vehicle. For WiFi, when the communication state is connected, the mobile terminal is far away from the paired vehicle; and for Bluetooth, the communication state of the Bluetooth is disconnected, and the mobile terminal is far away from the paired vehicle. Therefore, the position relationship between the mobile terminal and the paired vehicle needs to be determined according to the specific type of wireless communication and the communication state of the wireless communication, whether the vehicle navigation function is finished or not is determined according to the position relationship, if the vehicle navigation function is finished, the GPS positioning function can be turned off to be in a turned-off state, and if the vehicle navigation function is not finished, the working state of the GPS positioning function is kept. The determined off state or on state is the target state of the GPS positioning function, i.e., the target state of the GPS positioning function is determined by the position relationship.
And step S30, judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal.
Furthermore, after the target state of the GPS positioning function is determined, whether the target state is consistent with the working state is judged; the target state is used for representing the state that the GPS positioning function should be in theoretically after detecting the communication state of the wireless communication, and the working state is used for indicating the actual starting state of the GPS positioning function of the mobile terminal. When the target state is consistent with the working state, it indicates that the actual state of the GPS positioning function is the state that the GPS positioning function should be theoretically in, i.e., the working state. Therefore, the GPS positioning function is controlled to continuously run in the working state, and the working state is kept. When the target state is inconsistent with the working state, the state that the GPS positioning function is actually in is different from the state that the GPS positioning function is supposed to be in theoretically, and the theoretical target state is prioritized. The working state is the starting state of the GPS positioning function, so that the target state inconsistent with the working state is the closing state of the GPS positioning function, the working state is switched to the target state, the GPS positioning function is closed, the power consumption of the mobile terminal caused by the starting of the GPS positioning function is reduced, and the cruising ability of the mobile terminal is enhanced.
According to the method for prolonging the endurance of the mobile terminal, when the GPS positioning function of the terminal is detected to be in the started working state, the communication state of the wireless communication of the mobile terminal is detected; determining the target state of the GPS positioning function according to the position relation of the mobile terminal and the matched vehicle of the mobile terminal according to the detected communication state; and when the target state is inconsistent with the working state, switching the working state of the GPS positioning function to the target state so as to prolong the endurance of the mobile terminal. The present embodiment detects a communication state of wireless communication of a mobile terminal in a situation where a GPS positioning function of the mobile terminal is in an operating state. The GPS positioning function is in a working state, which indicates the actual starting state of the GPS positioning function of the mobile terminal; the communication state of the wireless communication is used for representing the close or far position relation between the mobile terminal and the paired vehicle, the target state of the GPS positioning function can be determined according to the close or far position relation, and the target state is used for representing the state where the GPS positioning function should be located theoretically. When the actual on state is inconsistent with the theoretical target state, it is indicated that the GPS positioning function should be in the off state, so that the on state is switched to the off state of the target, thereby reducing the power consumption of the mobile terminal and enhancing the cruising ability of the mobile terminal.
Further, in another embodiment of the method for extending a endurance of a mobile terminal of the present invention, the wireless communication includes WiFi, and the step of determining a location relationship between the mobile terminal and a paired vehicle of the mobile terminal according to the communication status and determining a target status of the GPS positioning function according to the location relationship includes:
step S21, when the communication state of the wireless WiFi is the connection state, determining that the position relation is that the mobile terminal is far away from the paired vehicle, and determining that the target state of the GPS positioning function is the closing state according to the position relation that the mobile terminal is far away from the paired vehicle;
further, the wireless communication in this embodiment is WiFi, the WiFi is connected through a signal source, and the signal source is usually in an indoor space, so when it is detected that the communication status of the WiFi is a connection status, it indicates that the mobile terminal is in the indoor space, and it is determined that the position relationship between the mobile terminal and the paired vehicle is that the mobile terminal is far away from the paired vehicle. Because the mobile terminal is far away from the paired vehicle, the navigation service of the mobile terminal to the vehicle can be ended, and the GPS positioning function can be turned off, namely, the target state of the GPS positioning function is determined to be the turning-off state. Considering that a vehicle-mounted WiFi signal source is available at present and used for providing WiFi signals on a vehicle, the mobile terminal is connected with the vehicle-mounted WiFi signal source, and the wireless WiFi communication state of the mobile terminal on the vehicle is in a connection state, namely the mobile terminal is not far away from the vehicle. The connection state and the wireless WiFi are connected with a signal source of an indoor space, and the position relation contradiction that the mobile terminal is far away from the paired vehicle is judged. In order to avoid the contradiction, a distinguishing mechanism for the two connection states is provided, and specifically, when the communication state of the wireless WiFi is the connection state, the step of determining that the position relationship is that the mobile terminal is far away from the paired vehicle includes:
step S211, when the communication state of the wireless WIFI is a connection state, acquiring a signal identifier of a signal source connected with the wireless WIFI;
understandably, each wireless WiFi signal source carries an identifier to characterize different types of WiFi signal sources, such as bus type identifiers typically carried by WiFi signal sources for application on vehicles. Therefore, when the communication state of the wireless WiFi is detected to be the connection state, the signal identification of the signal source connected with the wireless WiFi is obtained, and the type of the signal source connected with the wireless WiFi is determined through the signal identification.
Step S212, determining whether the signal identifier of the signal source is a preset vehicle-mounted wireless identifier, and when the signal identifier is not the preset vehicle-mounted wireless identifier, determining that the position relationship is that the mobile terminal is far away from the paired vehicle.
Further, after a signal identifier of a signal source connected to the wireless WiFi is obtained, whether the signal identifier is a preset vehicle-mounted wireless identifier is judged, and the preset vehicle-mounted wireless identifier is used for indicating that the wireless signal source is a vehicle-mounted WiFi signal source, that is, a WiFi signal source connected to the wireless WiFi of the mobile terminal is a WiFi signal used on a vehicle. In addition, the mobile terminal used by the user is relatively fixed with the vehicle, and if the vehicle is provided with the vehicle-mounted WiFi signal source, the identifier of the vehicle-mounted WiFi signal source can be added into the mobile terminal and serves as the preset vehicle-mounted wireless identifier. When the identifier of the signal source is detected to be the preset vehicle-mounted wireless identifier, the fact that the WiFi signal source connected with the wireless WiFi of the mobile terminal is the vehicle-mounted WiFi signal source is indicated. Since the wireless WiFi needs to be connected in a short distance, and thus it is determined that the mobile terminal is close to the paired vehicle, the navigation service of the mobile terminal may still be needed. And when the signal identifier of the signal source is not the preset vehicle-mounted wireless identifier, the signal identifier indicates that the mobile terminal is connected with a WiFi signal source suitable for the indoor space, so that the mobile terminal is judged to be far away from the paired vehicle.
Step S22, when the communication state of the wireless WiFi is a disconnection state, the position relation is determined to be that the mobile terminal approaches the paired vehicle, and the target state of the GPS positioning function is determined to be an opening state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the opening state is taken as a working state.
Further, when the communication state of the wireless WiFi is detected to be a disconnected state, namely the wireless WiFi of the mobile terminal is not connected with a signal source, the mobile terminal is judged to be located in the vehicle, and the position relation between the mobile terminal and the paired vehicle is that the mobile terminal is close to the paired vehicle, so that the vehicle is guided. When the mobile terminal is in navigation, the GPS positioning function needs to be started, so that the navigation requirement of the paired vehicle is determined according to the position relation of the mobile terminal close to the paired vehicle, the target state of the GPS positioning function is a starting state, and the starting state machine is in a working state so as to navigate the paired vehicle.
Further, in another embodiment of the method for extending a endurance of a mobile terminal of the present invention, the wireless communication includes bluetooth communication, and the step of determining a location relationship between the mobile terminal and a paired vehicle of the mobile terminal according to the communication status and determining a target status of the GPS positioning function according to the location relationship includes:
step S23, when the communication state of the Bluetooth communication is the connection state, determining that the position relation is that the mobile terminal approaches the paired vehicle, and determining that the target state of the GPS positioning function is the opening state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the opening state is taken as the working state;
further, the wireless communication of this embodiment is bluetooth communication, and bluetooth communication carries out the accordant connection through two devices that have bluetooth module for be provided with bluetooth module on the mobile terminal of navigation, also be provided with on-vehicle bluetooth module on the vehicle, can carry out communication connection between the two. Because the Bluetooth communication is short-distance communication, when the communication state of the Bluetooth communication is detected to be a connection state, the mobile terminal can be judged to be close to the paired vehicle, and navigation service is carried out on the vehicle. When the mobile terminal is in navigation, the GPS positioning function needs to be started, so that the navigation requirement of the paired vehicle is determined according to the position relation of the mobile terminal close to the paired vehicle, the target state of the GPS positioning function is a starting state, and the starting state machine is in a working state so as to navigate the paired vehicle. And it is considered that the bluetooth communication can be matched and connected between any devices having the bluetooth module, that is, the mobile terminal for navigation can be matched and connected with other mobile terminals having the bluetooth module. Therefore, when the communication state of the bluetooth communication is detected to be the connection state, the connection of the mobile terminal with other mobile terminals may be possible, not with the vehicle-mounted bluetooth module. Therefore, it is necessary to distinguish the connected bluetooth, and specifically, when the communication status of the bluetooth communication is the connection status, the step of determining that the location relationship is that the mobile terminal approaches the paired vehicle includes:
step S231, when the communication state of the Bluetooth communication is the connection state, acquiring the matching identification of the matching formula connected with the Bluetooth communication;
understandably, the matching identifiers of the terminals carrying the bluetooth function are different, so as to represent the matching with different bluetooth. Such as for onboard bluetooth applications in vehicles, typically carry an identifier of BYDAOUT. Therefore, when the communication state of the Bluetooth communication is detected to be the connection state, the matching identification of the matching formula connected with the Bluetooth communication is obtained, and the matching identification of the matching formula connected with the Bluetooth communication is determined through the matching identification.
Step S232, judging whether the matching identification of the matching formula is a preset vehicle-mounted Bluetooth identification or not, and when the matching identification is the preset vehicle-mounted Bluetooth identification, determining that the position relationship is that the mobile terminal approaches to a matched vehicle.
Further, after the matching identification of the matching formula connected with the Bluetooth communication is obtained, whether the matching identification is a preset vehicle-mounted Bluetooth identification is judged, the preset vehicle-mounted Bluetooth identification is used for indicating that the connected matching party is vehicle-mounted Bluetooth, namely the matching formula connected with the Bluetooth of the mobile terminal is vehicle-mounted Bluetooth on a vehicle. In addition, the mobile terminal used by the user is fixed relative to the vehicle, and the vehicle-mounted Bluetooth of the vehicle is also fixed, so that the identifier of the vehicle-mounted Bluetooth can be added into the mobile terminal and used as the preset vehicle-mounted Bluetooth identifier. When the matching identification is detected to be the preset vehicle-mounted Bluetooth identification, the matching party connected with the Bluetooth communication of the mobile terminal is the vehicle-mounted Bluetooth. Since the bluetooth communication requires a close connection, and thus it is determined that the mobile terminal is close to the paired vehicle, a navigation service of the mobile terminal may still be required. And when the matching identifier of the signal source is not the preset vehicle-mounted Bluetooth identifier, the matching party connected with the mobile terminal is the Bluetooth of other terminals, so that the mobile terminal is judged to be far away from the paired vehicle.
And step S24, when the communication state of the Bluetooth communication is a disconnection state, determining that the position relationship is that the mobile terminal is far away from the paired vehicle, and determining that the target state of the GPS positioning function is a disconnection state according to the position relationship that the mobile terminal is far away from the paired vehicle.
Further, when the communication state of the bluetooth communication is detected to be the disconnection state, it is described that the bluetooth communication of the mobile terminal is not matched with the vehicle-mounted bluetooth. Because of at the in-process of navigation, need carry out voice broadcast through connecting on-vehicle bluetooth, and because of the connection closely of bluetooth communication demand to when mobile terminal bluetooth communication's communication state was the disconnection state, explain that mobile terminal keeps away from the pairing vehicle, and mobile terminal does not carry out navigation service, can close GPS locate function. And determining the target state of the GPS positioning function as the closing state according to the position relation of the mobile terminal far away from the paired vehicle.
It should be noted that the bluetooth communication of the present embodiment and the wireless WiFi of the above embodiments may be combined together to determine the position relationship between the mobile terminal and the paired vehicle. When the communication state of the Bluetooth communication is a connection vehicle-mounted Bluetooth state and the communication state of the wireless WiFi is a disconnection state, judging that the position relation between the mobile terminal and the vehicle is close; and when the communication state of the Bluetooth communication is a disconnection state and the communication state of the wireless WiFi is a connection state, judging that the position relation between the mobile terminal and the vehicle is far away. The target state of the GPS positioning function is determined through the close or far position relation.
In addition, referring to fig. 2, the present invention provides a device for extending endurance of a mobile terminal, in a first embodiment of the device for extending endurance of a mobile terminal of the present invention, the device for extending endurance of a mobile terminal includes:
the detection module 10 is used for detecting the communication state of the wireless communication of the mobile terminal when detecting that the GPS positioning function of the mobile terminal is in the working state;
the scheme is suitable for determining that the mobile terminal finishes the vehicle navigation service through the communication state of the wireless communication of the mobile terminal, and closing the GPS positioning function, so that the energy consumption of the mobile terminal is saved, and the continuation of the journey of the mobile terminal is prolonged. The mobile terminal is a terminal with a GPS positioning function, such as a smart phone, a tablet personal computer and the like; the GPS is a Global Positioning System (Global Positioning System), and the basic principle of the navigation function is to measure the distance between a satellite with a known position and a mobile terminal of a user, and then integrate data of multiple satellites to determine the specific position of the mobile terminal of the user. The mobile terminal is internally provided with a GPS module and navigation software, and the GPS module is used for completing data acquisition work such as searching and tracking, positioning speed and the like of a GPS satellite; the map function in the navigation software is used for refreshing the electronic map according to the position information obtained by the GPS module, so that the position of a user continuously moves and changes on the map, and the path guiding calculation function in the navigation software is used for planning a navigation route to a destination according to the requirements of the user so as to guide the user.
In the driving process, a user usually starts navigation function software in the mobile terminal for navigation, and in order to ensure the navigation accuracy, a GPS positioning function needs to be started. In the embodiment, when the detection module 10 detects that the GPS positioning function of the mobile terminal is in an operating state, it indicates that the user is performing vehicle navigation through the GPS positioning function, considering that the navigation service of the user may have ended, but the GPS positioning function is not turned off in time. Therefore, the communication state of the wireless communication of the mobile terminal is further detected, and whether the navigation service of the user is finished or not is judged according to the communication state of the wireless communication. Wireless communication is a communication method for exchanging information by using the characteristic that electromagnetic wave signals propagate in free space, and applications thereof in mobile terminals include WiFi (Wireless Fidelity), bluetooth, and the like. The communication state of the wireless communication of the mobile terminal comprises connection and disconnection, a carrier needs to be connected during connection, the mobile terminal is connected with the connection carrier, for example, WiFi is connected with a signal source serving as a WiFi hotspot, or Bluetooth is connected with Bluetooth of another device in a matching manner, and the signal source or the matched Bluetooth is the connection carrier. Because the connection requirement of the connection carrier is vehicle or non-vehicle, namely the connection is carried out in the vehicle or outside the vehicle, the position relation between the mobile terminal and the vehicle can be judged according to the connection or disconnection communication state of the wireless communication, and whether the navigation service of the mobile terminal to the vehicle is finished or not is judged.
A determining module 20, configured to determine, according to the communication state, a position relationship between the mobile terminal and a vehicle paired with the mobile terminal, and determine, according to the position relationship, a target state of the GPS positioning function;
further, after detecting the communication state of the mobile terminal wireless communication, the determining module 20 determines the position relationship between the mobile terminal and the paired vehicle of the mobile terminal according to the communication state, and the paired vehicle of the mobile terminal and the vehicle of which the mobile terminal has a navigation relationship, that is, the mobile terminal user navigates the driving route on the vehicle through the mobile terminal. The position relationship between the mobile terminal and the paired vehicle comprises that the mobile terminal is far away from the paired vehicle and the mobile terminal is close to the paired vehicle. For different types of wireless communication, different communication states of the mobile terminal represent that the mobile terminal is far away from the paired vehicle or is close to the paired vehicle. For WiFi, when the communication state is connected, the mobile terminal is far away from the paired vehicle; and for Bluetooth, the communication state of the Bluetooth is disconnected, and the mobile terminal is far away from the paired vehicle. Therefore, the position relationship between the mobile terminal and the paired vehicle needs to be determined according to the specific type of wireless communication and the communication state of the wireless communication, whether the vehicle navigation function is finished or not is determined according to the position relationship, if the vehicle navigation function is finished, the GPS positioning function can be turned off to be in a turned-off state, and if the vehicle navigation function is not finished, the working state of the GPS positioning function is kept. The determined off state or on state is the target state of the GPS positioning function, i.e., the target state of the GPS positioning function is determined by the position relationship.
And the judging module 30 is configured to judge whether the target state and the working state are consistent, and switch the working state to the target state when the target state and the working state are inconsistent, so as to prolong the endurance of the mobile terminal.
Further, after determining the target state of the GPS positioning function, the determining module 30 determines whether the target state and the working state are consistent; the target state is used for representing the state that the GPS positioning function should be in theoretically after detecting the communication state of the wireless communication, and the working state is used for indicating the actual starting state of the GPS positioning function of the mobile terminal. When the target state is consistent with the working state, it indicates that the actual state of the GPS positioning function is the state that the GPS positioning function should be theoretically in, i.e., the working state. Therefore, the GPS positioning function is controlled to continuously run in the working state, and the working state is kept. When the target state is inconsistent with the working state, the state that the GPS positioning function is actually in is different from the state that the GPS positioning function is supposed to be in theoretically, and the theoretical target state is prioritized. The working state is the starting state of the GPS positioning function, so that the target state inconsistent with the working state is the closing state of the GPS positioning function, the working state is switched to the target state, the GPS positioning function is closed, the power consumption of the mobile terminal caused by the starting of the GPS positioning function is reduced, and the cruising ability of the mobile terminal is enhanced.
In the device for prolonging the endurance of the mobile terminal, when the detection module 10 detects that the GPS positioning function of the terminal is in the on working state, the communication state of the wireless communication of the mobile terminal is detected; according to the detected communication state, the determining module 20 determines the position relationship between the mobile terminal and the vehicle paired with the mobile terminal, and determines the target state of the GPS positioning function according to the position relationship; when the determining module 30 determines that the target state is inconsistent with the operating state, the operating state of the GPS positioning function is switched to the target state. The present embodiment detects a communication state of wireless communication of a mobile terminal in a situation where a GPS positioning function of the mobile terminal is in an operating state. The GPS positioning function is in a working state, which indicates the actual starting state of the GPS positioning function of the mobile terminal; the communication state of the wireless communication is used for representing the close or far position relation between the mobile terminal and the paired vehicle, the target state of the GPS positioning function can be determined according to the close or far position relation, and the target state is used for representing the state where the GPS positioning function should be located theoretically. When the actual on state is inconsistent with the theoretical target state, it is indicated that the GPS positioning function should be in the off state, so that the on state is switched to the off state of the target, thereby reducing the power consumption of the mobile terminal and enhancing the cruising ability of the mobile terminal.
Further, in another embodiment of the apparatus for extending endurance of a mobile terminal of the present invention, the wireless communication includes wireless WiFi, and the determining module includes:
the first determining unit 21 is configured to determine that the position relationship is that the mobile terminal is far away from the paired vehicle when the communication state of the wireless WiFi is a connection state, and determine that a target state of the GPS positioning function is an off state according to the position relationship that the mobile terminal is far away from the paired vehicle;
further, the wireless communication in this embodiment is WiFi, the WiFi is connected through a signal source, and the signal source is usually in an indoor space, so when it is detected that the communication status of the WiFi is a connection status, it indicates that the mobile terminal is in the indoor space, and the first determining unit 21 determines that the position relationship between the mobile terminal and the paired vehicle is that the mobile terminal is far away from the paired vehicle. Because the mobile terminal is far away from the paired vehicle, the navigation service of the mobile terminal to the vehicle can be ended, and the GPS positioning function can be turned off, namely, the target state of the GPS positioning function is determined to be the turning-off state. Considering that a vehicle-mounted WiFi signal source is available at present and used for providing WiFi signals on a vehicle, the mobile terminal is connected with the vehicle-mounted WiFi signal source, and the wireless WiFi communication state of the mobile terminal on the vehicle is in a connection state, namely the mobile terminal is not far away from the vehicle. The connection state and the wireless WiFi are connected with a signal source of an indoor space, and the position relation contradiction that the mobile terminal is far away from the paired vehicle is judged. In order to avoid this conflict, a mechanism for distinguishing between these two types of connection states is provided, in particular the first determination unit 21 is configured to perform the following steps:
step q1, when the communication state of the wireless WIFI is a connection state, acquiring a signal identifier of a signal source connected with the wireless WIFI;
understandably, each wireless WiFi signal source carries an identifier to characterize different types of WiFi signal sources, such as bus type identifiers typically carried by WiFi signal sources for application on vehicles. Therefore, when the communication state of the wireless WiFi is detected to be the connection state, the signal identification of the signal source connected with the wireless WiFi is obtained, and the type of the signal source connected with the wireless WiFi is determined through the signal identification.
And q2, judging whether the signal identifier of the signal source is a preset vehicle-mounted wireless identifier, and when the signal identifier is not the preset vehicle-mounted wireless identifier, determining that the position relationship is that the mobile terminal is far away from the paired vehicle.
Further, after a signal identifier of a signal source connected to the wireless WiFi is obtained, whether the signal identifier is a preset vehicle-mounted wireless identifier is judged, and the preset vehicle-mounted wireless identifier is used for indicating that the wireless signal source is a vehicle-mounted WiFi signal source, that is, a WiFi signal source connected to the wireless WiFi of the mobile terminal is a WiFi signal used on a vehicle. In addition, the mobile terminal used by the user is relatively fixed with the vehicle, and if the vehicle is provided with the vehicle-mounted WiFi signal source, the identifier of the vehicle-mounted WiFi signal source can be added into the mobile terminal and serves as the preset vehicle-mounted wireless identifier. When the identifier of the signal source is detected to be the preset vehicle-mounted wireless identifier, the fact that the WiFi signal source connected with the wireless WiFi of the mobile terminal is the vehicle-mounted WiFi signal source is indicated. Since the wireless WiFi needs to be connected in a short distance, and thus it is determined that the mobile terminal is close to the paired vehicle, the navigation service of the mobile terminal may still be needed. And when the signal identifier of the signal source is not the preset vehicle-mounted wireless identifier, the signal identifier indicates that the mobile terminal is connected with a WiFi signal source suitable for the indoor space, so that the mobile terminal is judged to be far away from the paired vehicle.
The second determining unit 22 is configured to determine that the location relationship is that the mobile terminal approaches the paired vehicle when the communication state of the WiFi is the disconnected state, and determine that the target state of the GPS positioning function is the on state according to the location relationship that the mobile terminal approaches the paired vehicle, where the on state is used as the operating state.
Further, when it is detected that the communication state of the WiFi is disconnected, that is, the WiFi of the mobile terminal is not connected to the signal source, the second determining unit 22 determines that the mobile terminal is located in the vehicle, and the location relationship between the mobile terminal and the paired vehicle is that the mobile terminal is close to the paired vehicle, so as to perform a navigation service for the vehicle. When the mobile terminal is in navigation, the GPS positioning function needs to be started, so that the navigation requirement of the paired vehicle is determined according to the position relation of the mobile terminal close to the paired vehicle, the target state of the GPS positioning function is a starting state, and the starting state machine is in a working state so as to navigate the paired vehicle.
Referring to fig. 3, fig. 3 is a schematic device structure diagram of a hardware operating environment related to the method according to the embodiment of the present invention.
The device for prolonging the endurance of the mobile terminal can be a PC (personal computer), and can also be a terminal device such as a smart phone, a tablet personal computer, an electronic book reader, a portable computer and the like.
As shown in fig. 3, the apparatus for extending endurance of a mobile terminal may include: a processor 1001, such as a CPU, a memory 1005, and a communication bus 1002. The communication bus 1002 is used for realizing connection communication between the processor 1001 and the memory 1005. The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the apparatus for extending endurance of a mobile terminal may further include a user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. The user interface may comprise a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the configuration of the extended mobile terminal endurance shown in fig. 3 does not constitute a limitation of the extended mobile terminal endurance, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 3, a memory 1005, which is one type of computer storage medium, may include an operating system, a network communication module, and an extended mobile terminal endurance program. The operating system is a program for managing and controlling hardware and software resources of the extended endurance device of the mobile terminal, and supports the operation of the extended endurance program of the mobile terminal and other software and/or programs. The network communication module is used to enable communication between the various components within the memory 1005, as well as with other hardware and software within the extended mobile terminal endurance device.
In the extended mobile terminal endurance apparatus shown in fig. 3, the processor 1001 is configured to execute an extended mobile terminal endurance program stored in the memory 1005, and implement the following steps:
when detecting that the GPS positioning function of the mobile terminal is in a working state, detecting the communication state of wireless communication of the mobile terminal;
determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state, and determining the target state of the GPS positioning function according to the position relation;
and judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal.
Further, the wireless communication includes wireless WiFi, and the step of determining the location relationship between the mobile terminal and the paired vehicle of the mobile terminal according to the communication status, and determining the target status of the GPS positioning function according to the location relationship includes:
when the communication state of the wireless WiFi is a connection state, determining that the position relation is that the mobile terminal is far away from a matched vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relation that the mobile terminal is far away from the matched vehicle;
and when the communication state of the wireless WiFi is a disconnection state, determining that the position relation is that the mobile terminal approaches the paired vehicle, and determining that the target state of the GPS positioning function is an opening state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the opening state is used as a working state.
Further, when the communication state of the wireless WiFi is a connection state, the step of determining that the location relationship is that the mobile terminal is far away from the paired vehicle includes:
when the communication state of the wireless WIFI is a connection state, acquiring a signal identifier of a signal source connected with the wireless WIFI;
and judging whether the signal identifier of the signal source is a preset vehicle-mounted wireless identifier or not, and when the signal identifier is not the preset vehicle-mounted wireless identifier, determining that the position relation is that the mobile terminal is far away from the paired vehicle.
Further, the wireless communication includes bluetooth communication, and the step of determining the position relationship between the mobile terminal and the paired vehicle of the mobile terminal according to the communication state and determining the target state of the GPS positioning function according to the position relationship includes:
when the communication state of the Bluetooth communication is a connection state, determining that the position relationship is that the mobile terminal approaches a paired vehicle, and determining that the target state of the GPS positioning function is an open state according to the position relationship that the mobile terminal approaches the paired vehicle, wherein the open state is used as a working state;
and when the communication state of the Bluetooth communication is a disconnection state, determining that the position relationship is that the mobile terminal is far away from the paired vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relationship that the mobile terminal is far away from the paired vehicle.
Further, when the communication state of the bluetooth communication is the connection state, the step of determining that the location relationship is that the mobile terminal approaches the paired vehicle includes:
when the communication state of the Bluetooth communication is a connection state, acquiring a matching identifier of a matching formula connected with the Bluetooth communication;
and judging whether the matching identification of the matching formula is a preset vehicle-mounted Bluetooth identification, and when the matching identification is the preset vehicle-mounted Bluetooth identification, determining that the position relationship is that the mobile terminal approaches to the matched vehicle.
Further, after the step of determining whether the target state and the operating state are consistent, the processor 1001 is configured to execute the extended endurance program stored in the memory 1005, and implement the following steps:
and when the target state is consistent with the working state, controlling the GPS positioning function to continuously run in the working state.
The specific implementation of the method for prolonging the endurance of the mobile terminal is basically the same as that of each embodiment of the method for prolonging the endurance of the mobile terminal, and is not described herein again.
The present invention provides a readable storage medium storing one or more programs, the one or more programs further executable by one or more processors for:
when detecting that the GPS positioning function of the mobile terminal is in a working state, detecting the communication state of wireless communication of the mobile terminal;
determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state, and determining the target state of the GPS positioning function according to the position relation;
and judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal.
Further, the wireless communication includes wireless WiFi, and the step of determining the location relationship between the mobile terminal and the paired vehicle of the mobile terminal according to the communication status, and determining the target status of the GPS positioning function according to the location relationship includes:
when the communication state of the wireless WiFi is a connection state, determining that the position relation is that the mobile terminal is far away from a matched vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relation that the mobile terminal is far away from the matched vehicle;
and when the communication state of the wireless WiFi is a disconnection state, determining that the position relation is that the mobile terminal approaches the paired vehicle, and determining that the target state of the GPS positioning function is an opening state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the opening state is used as a working state.
Further, when the communication state of the wireless WiFi is a connection state, the step of determining that the location relationship is that the mobile terminal is far away from the paired vehicle includes:
when the communication state of the wireless WIFI is a connection state, acquiring a signal identifier of a signal source connected with the wireless WIFI;
and judging whether the signal identifier of the signal source is a preset vehicle-mounted wireless identifier or not, and when the signal identifier is not the preset vehicle-mounted wireless identifier, determining that the position relation is that the mobile terminal is far away from the paired vehicle.
Further, the wireless communication includes bluetooth communication, and the step of determining the position relationship between the mobile terminal and the paired vehicle of the mobile terminal according to the communication state and determining the target state of the GPS positioning function according to the position relationship includes:
when the communication state of the Bluetooth communication is a connection state, determining that the position relationship is that the mobile terminal approaches a paired vehicle, and determining that the target state of the GPS positioning function is an open state according to the position relationship that the mobile terminal approaches the paired vehicle, wherein the open state is used as a working state;
and when the communication state of the Bluetooth communication is a disconnection state, determining that the position relationship is that the mobile terminal is far away from the paired vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relationship that the mobile terminal is far away from the paired vehicle.
Further, when the communication state of the bluetooth communication is the connection state, the step of determining that the location relationship is that the mobile terminal approaches the paired vehicle includes:
when the communication state of the Bluetooth communication is a connection state, acquiring a matching identifier of a matching formula connected with the Bluetooth communication;
and judging whether the matching identification of the matching formula is a preset vehicle-mounted Bluetooth identification, and when the matching identification is the preset vehicle-mounted Bluetooth identification, determining that the position relationship is that the mobile terminal approaches to the matched vehicle.
Further, after the step of determining whether the target state and the working state are consistent, the one or more programs may be further executable by the one or more processors for:
and when the target state is consistent with the working state, controlling the GPS positioning function to continuously run in the working state.
The specific implementation of the readable storage medium of the present invention is substantially the same as the embodiments of the method for extending the endurance of the mobile terminal, and is not described herein again.
It should also be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A method for prolonging the endurance of a mobile terminal is characterized by comprising the following steps:
when detecting that the GPS positioning function of the mobile terminal is in a working state, detecting the communication state of wireless communication of the mobile terminal;
determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state, and determining the target state of the GPS positioning function according to the position relation;
judging whether the target state is consistent with the working state, and switching the working state to the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal;
the wireless communication comprises wireless WiFi, the step of determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state and the step of determining the target state of the GPS positioning function according to the position relation comprise the following steps:
when the communication state of the wireless WiFi is a connection state, determining that the position relation is that the mobile terminal is far away from a matched vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relation that the mobile terminal is far away from the matched vehicle, wherein the connection state is that the wireless WiFi is connected with an indoor space signal source;
and when the communication state of the wireless WiFi is a disconnection state, determining that the position relation is that the mobile terminal approaches a paired vehicle, and determining that the target state of the GPS positioning function is an opening state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the opening state is a working state, and the disconnection state is that the wireless WiFi is disconnected from an indoor space signal source.
2. The method of claim 1, wherein the step of determining that the location relationship is that the mobile terminal is away from the paired vehicle when the communication status of the WiFi is a connected status comprises:
when the communication state of the wireless WIFI is a connection state, acquiring a signal identifier of a signal source connected with the wireless WIFI;
and judging whether the signal identifier of the signal source is a preset vehicle-mounted wireless identifier or not, and when the signal identifier is not the preset vehicle-mounted wireless identifier, determining that the position relation is that the mobile terminal is far away from the paired vehicle.
3. The method of claim 1, wherein the wireless communication comprises bluetooth communication, and wherein determining the location relationship of the mobile terminal and the paired vehicle of the mobile terminal based on the communication status and determining the target status of the GPS positioning function based on the location relationship comprises:
when the communication state of the Bluetooth communication is a connection state, determining that the position relationship is that the mobile terminal approaches a paired vehicle, and determining that the target state of the GPS positioning function is an open state according to the position relationship that the mobile terminal approaches the paired vehicle, wherein the open state is used as a working state;
and when the communication state of the Bluetooth communication is a disconnection state, determining that the position relationship is that the mobile terminal is far away from the paired vehicle, and determining that the target state of the GPS positioning function is a closing state according to the position relationship that the mobile terminal is far away from the paired vehicle.
4. The method for extending endurance of a mobile terminal of claim 3, wherein said determining the location relationship as the mobile terminal approaching the paired vehicle when the communication status of the bluetooth communication is the connection status comprises:
when the communication state of the Bluetooth communication is a connection state, acquiring a matching identifier of a matching formula connected with the Bluetooth communication;
and judging whether the matching identification of the matching formula is a preset vehicle-mounted Bluetooth identification, and when the matching identification is the preset vehicle-mounted Bluetooth identification, determining that the position relationship is that the mobile terminal approaches to the matched vehicle.
5. The method for extending endurance of a mobile terminal of any one of claims 1 to 4, wherein said step of determining if the target state and the operating state are consistent comprises:
and when the target state is consistent with the working state, controlling the GPS positioning function to continuously run in the working state.
6. An apparatus for extending endurance of a mobile terminal, the apparatus comprising:
the detection module is used for detecting the communication state of the wireless communication of the mobile terminal when the GPS positioning function of the mobile terminal is detected to be in the working state;
the determining module is used for determining the position relation between the mobile terminal and a vehicle matched with the mobile terminal according to the communication state and determining the target state of the GPS positioning function according to the position relation;
the judging module is used for judging whether the target state is consistent with the working state or not, and switching the working state into the target state when the target state is inconsistent with the working state so as to prolong the endurance of the mobile terminal;
wherein the wireless communication comprises wireless WiFi, and the determining module comprises:
the first determining unit is used for determining that the position relation is that the mobile terminal is far away from a matched vehicle when the communication state of the wireless WiFi is a connection state, and determining that the target state of the GPS positioning function is a closing state according to the position relation that the mobile terminal is far away from the matched vehicle, wherein the connection state is that the wireless WiFi is connected with an indoor space signal source;
and the second determining unit is used for determining that the position relation is that the mobile terminal approaches the paired vehicle when the communication state of the wireless WiFi is a disconnection state, and determining that the target state of the GPS positioning function is an opening state according to the position relation that the mobile terminal approaches the paired vehicle, wherein the opening state is used as a working state, and the disconnection state is that the wireless WiFi is disconnected from an indoor space signal source.
7. An extended mobile terminal endurance device, comprising: the system comprises a memory, a processor, a communication bus and an extended mobile terminal endurance program stored on the memory;
the communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute the extended mobile terminal endurance procedure to implement the steps of the extended mobile terminal endurance method according to any of claims 1-5.
8. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon an extended mobile terminal endurance program which, when executed by a processor, implements the steps of the extended mobile terminal endurance method of any of claims 1-5.
CN201711498231.XA 2017-12-29 2017-12-29 Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium Active CN108235292B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498231.XA CN108235292B (en) 2017-12-29 2017-12-29 Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498231.XA CN108235292B (en) 2017-12-29 2017-12-29 Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium

Publications (2)

Publication Number Publication Date
CN108235292A CN108235292A (en) 2018-06-29
CN108235292B true CN108235292B (en) 2020-11-17

Family

ID=62642385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498231.XA Active CN108235292B (en) 2017-12-29 2017-12-29 Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium

Country Status (1)

Country Link
CN (1) CN108235292B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702692A (en) * 2015-03-16 2015-06-10 北京微格互动科技有限公司 Intelligent driving trace recording instrument
CN104871228A (en) * 2012-12-14 2015-08-26 三菱重工业株式会社 Vehicle-mounted device, vehicle management system, recording medium, and vehicle management method
CN105163373A (en) * 2015-07-13 2015-12-16 广东欧珀移动通信有限公司 Positioning method and mobile terminal
CN105388503A (en) * 2015-11-20 2016-03-09 小米科技有限责任公司 Navigation method and device
CN105807302A (en) * 2016-03-16 2016-07-27 广东欧珀移动通信有限公司 Intelligent terminal and GPS module control method and device thereof
CN106019330A (en) * 2016-05-18 2016-10-12 Tcl移动通信科技(宁波)有限公司 GPS energy-saving control method and system based on mobile terminal
CN106092124A (en) * 2016-07-22 2016-11-09 柳州易旺科技有限公司 A kind of onboard navigation system
CN206086586U (en) * 2016-08-29 2017-04-12 深圳市欧特瑞科技有限公司 Energy -conserving on -vehicle vehicle GPS locator
CN106643776A (en) * 2017-03-20 2017-05-10 上海卓易科技股份有限公司 Navigation method, device and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008003688A (en) * 2006-06-20 2008-01-10 Denso Corp In-vehicle communication system and in-vehicle radio communication equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871228A (en) * 2012-12-14 2015-08-26 三菱重工业株式会社 Vehicle-mounted device, vehicle management system, recording medium, and vehicle management method
CN104702692A (en) * 2015-03-16 2015-06-10 北京微格互动科技有限公司 Intelligent driving trace recording instrument
CN105163373A (en) * 2015-07-13 2015-12-16 广东欧珀移动通信有限公司 Positioning method and mobile terminal
CN105388503A (en) * 2015-11-20 2016-03-09 小米科技有限责任公司 Navigation method and device
CN105807302A (en) * 2016-03-16 2016-07-27 广东欧珀移动通信有限公司 Intelligent terminal and GPS module control method and device thereof
CN106019330A (en) * 2016-05-18 2016-10-12 Tcl移动通信科技(宁波)有限公司 GPS energy-saving control method and system based on mobile terminal
CN106092124A (en) * 2016-07-22 2016-11-09 柳州易旺科技有限公司 A kind of onboard navigation system
CN206086586U (en) * 2016-08-29 2017-04-12 深圳市欧特瑞科技有限公司 Energy -conserving on -vehicle vehicle GPS locator
CN106643776A (en) * 2017-03-20 2017-05-10 上海卓易科技股份有限公司 Navigation method, device and terminal

Also Published As

Publication number Publication date
CN108235292A (en) 2018-06-29

Similar Documents

Publication Publication Date Title
US9544414B2 (en) Mobile communication terminal, control method thereof, auxiliary terminal and vehicle
US9903727B2 (en) Method and navigation device for providing geo-fence services, and computer-readable medium storing program for executing the same
US8583364B2 (en) Navigation method of mobile terminal and apparatus thereof
KR101495166B1 (en) Mobile vehicle navigation method and apparatus thereof
KR101595393B1 (en) Information providing system and method thereof
US20130268139A1 (en) Vehicular remote start system
JP2007033220A (en) On-vehicle navigation system, its information processing method, portable communication terminal used for it and navigation device
CN105704200B (en) Multimedia terminal, control method thereof, and recording medium
US11644318B2 (en) Navigation data processing system, apparatus and computer readable medium
US9791285B2 (en) Navigation apparatus and method
KR101562581B1 (en) Navigation apparatus and method thereof
CN105677396A (en) Method and device for controlling map application in intelligent mobile terminal and intelligent mobile terminal
CN107941229B (en) Vehicle positioning method and vehicle positioning system
CN108235292B (en) Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium
CN105589081A (en) Navigation method, terminal and navigation system
US10559204B2 (en) Leading system, leading device, and control method of leading system
CN113301531B (en) Network access system, method and device for vehicle automatic driving test
KR101537695B1 (en) Navigation system and method thereof
CN112327817B (en) Portable terminal and route guidance control method for portable terminal
CN109841082B (en) Notification system, notification device, and notification method
KR101631915B1 (en) Navigation apparatus and method thereof
KR101513633B1 (en) Call control method for telematics terminal and apparatus thereof
JP6597281B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN204360474U (en) Self-service car management control system
CN110766969A (en) Vehicle searching method and device and vehicle equipment

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