CN109032322B - Navigation control method, navigation control device, terminal equipment and storage medium - Google Patents

Navigation control method, navigation control device, terminal equipment and storage medium Download PDF

Info

Publication number
CN109032322B
CN109032322B CN201810587851.9A CN201810587851A CN109032322B CN 109032322 B CN109032322 B CN 109032322B CN 201810587851 A CN201810587851 A CN 201810587851A CN 109032322 B CN109032322 B CN 109032322B
Authority
CN
China
Prior art keywords
navigation
electric quantity
display screen
terminal equipment
preset
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
CN201810587851.9A
Other languages
Chinese (zh)
Other versions
CN109032322A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810587851.9A priority Critical patent/CN109032322B/en
Publication of CN109032322A publication Critical patent/CN109032322A/en
Application granted granted Critical
Publication of CN109032322B publication Critical patent/CN109032322B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the application discloses a navigation control method, a navigation control device, terminal equipment and a storage medium, wherein the method comprises the steps of acquiring navigation data information when a navigation function is detected to run, wherein the navigation data information comprises current position data of the terminal equipment and navigation path data from the current position to a navigation terminal point; determining whether a display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information; if the residual navigation distance is smaller than the preset distance threshold, the navigation function is closed, and the scheme remarkably reduces the power consumption of the terminal equipment, so that the navigation function is more complete.

Description

Navigation control method, navigation control device, terminal equipment and storage medium
Technical Field
The embodiment of the application relates to computer technologies, and in particular, to a navigation control method, a navigation control device, a terminal device, and a storage medium.
Background
With the increase of the popularity of the terminal devices, more and more users use the terminal devices to execute various functions to meet the requirements of the users, such as reading characters, watching videos, listening to music, playing games and the like by using the terminal devices, wherein the navigation function of the terminal devices is greatly convenient for the users to go out, and the users can drive according to navigation routes and navigation prompt tones in the process of driving to the destination.
In the prior art, after a user sets a navigation starting point and a navigation end point, navigation software starts to execute a navigation function, the power consumption of terminal equipment in the navigation process is too high, so that the power consumption of the terminal equipment is reduced quickly, and a disadvantage end is particularly obvious when the power consumption of the terminal equipment is low, so that the function design defect exists.
Disclosure of Invention
The invention provides a navigation control method, a navigation control device, terminal equipment and a storage medium, which reduce the electric quantity consumption of the terminal equipment.
In a first aspect, an embodiment of the present application provides a navigation control method, including:
acquiring navigation data information when a navigation function is detected to run, wherein the navigation data information comprises current position data of terminal equipment and navigation path data from the current position to a navigation terminal point;
determining whether a display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information;
and if the residual navigation distance is smaller than a preset distance threshold, closing the navigation function.
In a second aspect, an embodiment of the present application further provides a navigation control apparatus, including:
the data acquisition module is used for acquiring navigation data information when detecting that a navigation function runs, wherein the navigation data information comprises current position data of the terminal equipment and navigation path data from the current position to a navigation terminal point;
the condition judgment module is used for determining whether a display screen of the terminal equipment is in a bright screen state or not, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information;
and the control closing module is used for closing the navigation function if the residual navigation distance is smaller than a preset distance threshold.
In a third aspect, an embodiment of the present application further provides a terminal device, including: the navigation control system comprises a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the navigation control method according to the embodiment of the application.
In a fourth aspect, the present application further provides a storage medium containing terminal device executable instructions, where the terminal device executable instructions are executed by a terminal device processor to perform the navigation control method according to the present application.
According to the scheme, navigation data information is acquired when the navigation function is detected to run, the navigation data information comprises current position data of the terminal equipment and navigation path data from the current position to a navigation terminal, whether a display screen of the terminal equipment is in a bright screen state or not is determined, if the display screen is in the bright screen state, a residual navigation distance is determined according to the navigation data information, if the residual navigation distance is smaller than a preset distance threshold value, the navigation function is closed, the power consumption of the terminal equipment is remarkably reduced, and the navigation function is more perfect.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a navigation control method provided in an embodiment of the present application;
FIG. 2 is a flow chart of another navigation control method provided by an embodiment of the invention;
FIG. 3 is a flow chart of another navigation control method provided by an embodiment of the present application;
FIG. 4 is a flow chart of another navigation control method provided by the embodiments of the present application;
FIG. 5 is a flow chart of another navigation control method provided by an embodiment of the present application;
FIG. 6 is a flow chart of another navigation control method provided by an embodiment of the present application;
fig. 7 is a block diagram of a navigation control device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of a navigation control method provided in an embodiment of the present application, which is applicable to control a navigation function of a terminal device, where the method may be executed by the terminal device provided in the embodiment of the present application, and a navigation control device of the terminal device may be implemented in a software and/or hardware manner, as shown in fig. 1, a specific scheme provided in this embodiment is as follows:
and S101, acquiring navigation data information when the navigation function is detected to run.
The navigation function is a function when navigation software (such as a high-grade map, a Baidu map, an Tencent map and the like) carried by or installed in the terminal equipment executes a navigation process. Generally, navigation software provides one or more navigation paths for a user according to a set navigation starting point and a set navigation end point according to the setting of the user, the user can select one navigation path, a 'start navigation' button can be correspondingly clicked to start a navigation function when the user selects the navigation path, the navigation software can correspondingly send out navigation prompt voice after the navigation function is started, and meanwhile, a display screen of terminal equipment displays a specific navigation picture to assist the user in reaching the navigation end point.
In one embodiment, after detecting that the navigation function starts to operate, navigation data information is correspondingly obtained, and the navigation data information may be obtained in real time or once every preset time (e.g. 3 minutes, 5 minutes or 10 minutes), where the navigation data information includes current position data of the terminal device and navigation path data from the current position to a navigation end point, where the current position data is a position of a current driving point on a navigation path where the terminal device is located, and the navigation path data is a path between the current position data and the navigation end point, and a user drives a vehicle along the navigation path to reach the navigation end point. Optionally, the navigation data information may be obtained through an API interface of the navigation software.
Step S102, determining whether a display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information.
The terminal equipment displays an operation interface or information for a user to operate and read through the display screen, the display screen is in a bright screen state to provide picture information in the process of user operation or interaction with the terminal equipment, and when the user does not need to interact with the terminal equipment through the display screen, the display screen of the terminal equipment becomes dark after several seconds and is finally in an off state in order to save terminal electric quantity.
In an embodiment, after the navigation data information is acquired, it is correspondingly determined whether the display screen of the terminal device is in a bright screen state, specifically, taking the android system as an example, whether the display screen is in the bright screen state may be acquired and determined by calling a PowerManager service interface. When the display screen is determined to be in the bright screen state, determining the residual navigation distance according to the navigation data information, wherein when the navigation function is started, the display screen of the terminal equipment is always in the bright screen state, when a user switches the current display interface to display a non-navigation function interface, the display screen automatically becomes the off state after several seconds, and the navigation function is in the background running state and only provides the voice prompt function. Specifically, the remaining navigation distance is determined according to the current position of the terminal device in the navigation data information and the position of the navigation path plan to the navigation end point, for example, the navigation full distance is 20 km, and the remaining navigation distance determined in real time at different time points may be 10 km, 5 km, 1 km, 300 m, and the like.
And step S103, if the residual navigation distance is smaller than a preset distance threshold, closing the navigation function.
The preset distance threshold may be set by default in a program, or may be set manually by a user, and for example, the preset distance threshold may be 2 km, 1 km, or the like. In one embodiment, if it is determined that the remaining navigation distance is less than the preset distance threshold, the navigation function is turned off accordingly to save power. Optionally, a voice prompt may be sent while the navigation function is closed to prompt the user that the navigation function is to be closed, and if an instruction that the user prohibits closing the navigation function is not detected within 3 seconds, the navigation function is closed. The instruction for forbidding closing the navigation function can be identified through the received voice data, and if the identification result contains keywords such as 'forbid' and the like, the corresponding triggering is carried out. When the navigation function is turned off, the display screen of the terminal device is turned off after a certain time (e.g., 5 seconds) based on the original function setting.
According to the above content, when the navigation function is detected to be operated and the display screen is in the bright screen state, if the fact that the remaining navigation distance is short is determined, the navigation function is correspondingly closed, and therefore the electric quantity of the terminal device is saved.
Fig. 2 is a flowchart of another navigation control method provided in the embodiment of the present application, and optionally before the acquiring navigation data information, the method further includes: acquiring a residual electric quantity value of the terminal equipment, and judging whether the residual electric quantity value is smaller than a first preset electric quantity threshold value or not; correspondingly, the acquiring navigation data information includes: and if the residual electric quantity value is smaller than a first preset electric quantity value, acquiring navigation data information. As shown in fig. 2, the technical solution is as follows:
step S201, when the navigation function is detected to be operated, the residual electric quantity value of the terminal equipment is obtained, and whether the residual electric quantity value is smaller than a first preset electric quantity threshold value or not is judged.
The residual electric quantity value represents the sustainable endurance time of the terminal device, if the full-specification electric quantity value is 100, the residual electric quantity value is gradually reduced along with the use of the terminal device, and when the residual electric quantity value is reduced to 0, the terminal device is automatically turned off. Taking the android system as an example, an event intentFilter for monitoring the ACTION _ BATTERY _ CHANGED may be created in advance, monitoring may be performed by registering a broadcastereiver object, and a remaining electric quantity value of the current terminal device may be determined by a BATTERY state information parameter transmitted during monitoring. Wherein the first preset charge threshold may be 35.
And S202, if the residual electric quantity value is smaller than a first preset electric quantity value, acquiring navigation data information.
And when the residual electric quantity value of the terminal equipment is determined to be smaller than the first preset electric quantity value, correspondingly acquiring navigation data information to execute a subsequent navigation control method.
Step S203, determining whether the display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information.
And step S204, if the residual navigation distance is smaller than a preset distance threshold, sending a voice prompt for closing the navigation, and if an instruction for forbidding closing the navigation is not detected within the preset prompt time, closing the navigation function.
Therefore, under the condition that the electric quantity value of the terminal equipment is lower, whether the navigation function is closed or not is judged, so that the electric quantity is saved under the state that the electric quantity needs to be saved more, and under the condition that the residual value of the electric quantity is higher, the navigation function can be continuously executed without influencing the original navigation function.
Fig. 3 is a flowchart of another navigation control method provided in the embodiment of the present application, optionally, if a display screen of the terminal device is in an off state, determining whether the remaining electric quantity value is smaller than a second preset electric quantity value, where the second preset electric quantity value is smaller than the first preset electric quantity value; and if the residual electric quantity value is smaller than a second preset electric quantity value, closing the navigation function. As shown in fig. 3, the technical solution is as follows:
step S301, when the navigation function is detected to be operated, obtaining a residual electric quantity value of the terminal equipment, and judging whether the residual electric quantity value is smaller than a first preset electric quantity threshold value.
Step S302, if the residual electric quantity value is smaller than a first preset electric quantity value, navigation data information is obtained.
Step S303, determining whether the display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information.
Step S304, if the remaining navigation distance is smaller than a preset distance threshold, judging whether the remaining electric quantity value is smaller than a second preset electric quantity value.
The second preset electric quantity value is smaller than the first preset electric quantity threshold, and may be 10 or 20.
Step S305, if the residual electric quantity value is smaller than a second preset electric quantity value, a voice prompt for closing the navigation is sent out, and if the instruction for forbidding closing the navigation is not detected within the preset prompt time, the navigation function is closed.
Generally, the navigation function can run in the background, only a voice prompt mode is provided for navigation, the display screen can be kept in a blank state, and when the residual electric quantity value of the terminal equipment is too low (for example, the residual electric quantity value is smaller than a second preset electric quantity threshold value), the navigation function which runs in the background and is only used for voice prompt is also closed, so that less residual electric quantity is saved.
Therefore, when the fact that the residual electric quantity of the terminal equipment is too low is detected, the navigation function of background operation is correspondingly closed, the voice prompt is cut off to guarantee that the terminal equipment can be reserved with partial electric quantity to execute other follow-up functions, and the situation that the terminal equipment is automatically shut down when the electric quantity consumption is 0 due to navigation is avoided.
On the basis of the above embodiment, optionally, if the remaining navigation distance is greater than or equal to the preset distance threshold, the display screen of the terminal device is controlled to be in an off state, the navigation function is switched to a background to run, only a voice prompt operation is provided, and power consumption caused by the display screen of the terminal device is avoided.
Fig. 4 is a flowchart of another navigation control method provided in the embodiment of the present application, and optionally before the controlling the display screen of the terminal device to be in the off state, the method further includes: acquiring sensing data acquired by a gravity sensor integrated with the terminal equipment; determining orientation information of the display screen according to the sensing data, and controlling the display screen to be in a turning-off state if the orientation information meets a preset adjusting condition. As shown in fig. 4, the technical solution is as follows:
step S401, navigation data information is obtained when the navigation function running is detected.
Step S402, determining whether the display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information.
Step S403, if the remaining navigation distance is greater than or equal to the preset distance threshold, acquiring sensing data acquired by the gravity sensor integrated with the terminal device.
Step S404, determining orientation information of the display screen according to the sensing data, and controlling the display screen to be in a turning-off state if the orientation information meets a preset adjusting condition.
Wherein the preset condition may be that the display screen of the terminal device is directed downward. Specifically, the sensing data acquired by the gravity sensor are used for respectively obtaining the included angles of the x axis, the y axis and the z axis of the terminal device in the three-dimensional space coordinate system (the terminal device is vertically placed and the front surface is forward, one side of the screen direction is the y axis forward direction, the z axis forward direction is from bottom to top, and the x axis forward direction is from left to right).
Therefore, when the display screen is determined to be downward and the user does not perform navigation interaction through the display screen, the display screen is correspondingly turned off to save the electric quantity of the terminal equipment.
Fig. 5 is a flowchart of another navigation control method provided in the embodiment of the present application, and optionally, if the remaining navigation distance is greater than or equal to a preset distance threshold, determining the number of branches according to the navigation path data, and if the number of branches is less than the preset number of branches, closing the navigation function. As shown in fig. 5, the technical solution is as follows:
and S501, acquiring navigation data information when the navigation function is detected to run.
Step S502, determining whether a display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information.
Step S503, if the residual navigation distance is greater than or equal to the preset distance threshold, determining the number of the branches according to the navigation path data.
The number of the branches may be the number of intersections in the navigation path where the vehicle needs to turn more than 90 °, for example, 10 intersections need to pass through from the current position point to the navigation terminal in the navigation path, where 3 intersections are respectively a left turn, a right turn, and a u turn, and the corresponding determined number of the branches is 3.
And step S504, if the number of the branches is less than the preset number of the branches, closing the navigation function.
And if the number of the branches required to pass by when the navigation terminal is reached is determined to be less than the preset number, correspondingly closing the navigation function.
Therefore, for the simple route, the closing operation of the navigation function is executed, so that the power consumption of the terminal equipment is saved, and the cruising ability of the terminal equipment is improved.
Fig. 6 is a flowchart of another navigation control method provided in the embodiment of the present application, and optionally, if the remaining navigation distance is greater than or equal to a preset distance threshold, it is determined whether the vehicle is currently in an expressway driving state according to the navigation path data, and if so, the navigation function is turned off. As shown in fig. 6, the technical solution is as follows:
step S601, navigation data information is obtained when the navigation function is detected to run.
Step S602, determining whether the display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information.
And step S603, if the residual navigation distance is greater than or equal to a preset distance threshold, determining whether the vehicle is in a highway driving state or not according to the navigation path data.
The state that the vehicle runs on the highway is defined as the highway running state, and whether the current vehicle runs on the highway is judged through the navigation path.
And step S604, if the current position is in the highway driving state, closing the navigation function, and when the current position is determined not to be the highway through the GPS data, opening the navigation function again.
And if the vehicle is determined to be running on the highway, closing the navigation function to save the electric quantity, and correspondingly opening the navigation function again to ensure that the vehicle can normally run to a navigation terminal point after the vehicle is detected to be running away from the highway.
Therefore, for the high-speed route, the closing operation of the navigation function is executed, so that the power consumption of the terminal equipment is saved, and the cruising ability of the terminal equipment is improved.
Fig. 7 is a block diagram of a navigation control device according to an embodiment of the present application, where the navigation control device is configured to execute a navigation control method according to the foregoing embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 7, the apparatus specifically includes: a data acquisition module 101, a condition judgment module 102, and a control shutdown module 103, wherein,
the data obtaining module 101 is configured to obtain navigation data information when detecting that the navigation function is running, where the navigation data information includes current position data of the terminal device and navigation path data from the current position to a navigation end point.
The navigation function is a function when navigation software (such as a high-grade map, a Baidu map, an Tencent map and the like) carried by or installed in the terminal equipment executes a navigation process. Generally, navigation software provides one or more navigation paths for a user according to a set navigation starting point and a set navigation end point according to the setting of the user, the user can select one navigation path, a 'start navigation' button can be correspondingly clicked to start a navigation function when the user selects the navigation path, the navigation software can correspondingly send out navigation prompt voice after the navigation function is started, and meanwhile, a display screen of terminal equipment displays a specific navigation picture to assist the user in reaching the navigation end point.
In one embodiment, after detecting that the navigation function starts to operate, navigation data information is correspondingly obtained, and the navigation data information may be obtained in real time or once every preset time (e.g. 3 minutes, 5 minutes or 10 minutes), where the navigation data information includes current position data of the terminal device and navigation path data from the current position to a navigation end point, where the current position data is a position of a current driving point on a navigation path where the terminal device is located, and the navigation path data is a path between the current position data and the navigation end point, and a user drives a vehicle along the navigation path to reach the navigation end point. Optionally, the navigation data information may be obtained through an API interface of the navigation software.
And the condition judgment module 102 is configured to determine whether a display screen of the terminal device is in a bright screen state, and determine a remaining navigation distance according to the navigation data information if the display screen is in the bright screen state.
The terminal equipment displays an operation interface or information for a user to operate and read through the display screen, the display screen is in a bright screen state to provide picture information in the process of user operation or interaction with the terminal equipment, and when the user does not need to interact with the terminal equipment through the display screen, the display screen of the terminal equipment becomes dark after several seconds and is finally in an off state in order to save terminal electric quantity.
In an embodiment, after the navigation data information is acquired, it is correspondingly determined whether the display screen of the terminal device is in a bright screen state, specifically, taking the android system as an example, whether the display screen is in the bright screen state may be acquired and determined by calling a PowerManager service interface. When the display screen is determined to be in the bright screen state, determining the residual navigation distance according to the navigation data information, wherein when the navigation function is started, the display screen of the terminal equipment is always in the bright screen state, when a user switches the current display interface to display a non-navigation function interface, the display screen automatically becomes the off state after several seconds, and the navigation function is in the background running state and only provides the voice prompt function. Specifically, the remaining navigation distance is determined according to the current position of the terminal device in the navigation data information and the position of the navigation path plan to the navigation end point, for example, the navigation full distance is 20 km, and the remaining navigation distance determined in real time at different time points may be 10 km, 5 km, 1 km, 300 m, and the like.
And a control closing module 103, configured to close the navigation function if the remaining navigation distance is smaller than a preset distance threshold.
The preset distance threshold may be set by default in a program, or may be set manually by a user, and for example, the preset distance threshold may be 2 km, 1 km, or the like. In one embodiment, if it is determined that the remaining navigation distance is less than the preset distance threshold, the navigation function is turned off accordingly to save power. Optionally, a voice prompt may be sent while the navigation function is closed to prompt the user that the navigation function is to be closed, and if an instruction that the user prohibits closing the navigation function is not detected within 3 seconds, the navigation function is closed. The instruction for forbidding closing the navigation function can be identified through the received voice data, and if the identification result contains keywords such as 'forbid' and the like, the corresponding triggering is carried out. When the navigation function is turned off, the display screen of the terminal device is turned off after a certain time (e.g., 5 seconds) based on the original function setting.
According to the above content, when the navigation function is detected to be operated and the display screen is in the bright screen state, if the fact that the remaining navigation distance is short is determined, the navigation function is correspondingly closed, and therefore the electric quantity of the terminal device is saved.
In a possible embodiment, before the acquiring the navigation data information, the method further includes:
acquiring a residual electric quantity value of the terminal equipment, and judging whether the residual electric quantity value is smaller than a first preset electric quantity threshold value or not;
correspondingly, the acquiring navigation data information includes:
and if the residual electric quantity value is smaller than a first preset electric quantity value, acquiring navigation data information.
In one possible embodiment, if the display screen of the terminal device is in an off state, determining whether the remaining electric quantity value is smaller than a second preset electric quantity value, wherein the second preset electric quantity value is smaller than the first preset electric quantity value;
and if the residual electric quantity value is smaller than a second preset electric quantity value, closing the navigation function.
In a possible embodiment, if the remaining navigation distance is greater than or equal to the preset distance threshold, the display screen of the terminal device is controlled to be in an off state.
In a possible embodiment, before the controlling the display screen of the terminal device to be in the off state, the method further includes:
acquiring sensing data acquired by a gravity sensor integrated with the terminal equipment;
determining orientation information of the display screen according to the sensing data, and controlling the display screen to be in a turning-off state if the orientation information meets a preset adjusting condition.
In a possible embodiment, if the remaining navigation distance is greater than or equal to a preset distance threshold, determining the number of branches according to the navigation path data, and if the number of branches is less than the preset number of branches, closing the navigation function.
In one possible embodiment, if the remaining navigation distance is greater than or equal to a preset distance threshold, determining whether the vehicle is currently in a highway driving state according to the navigation path data, and if so, closing the navigation function.
In this embodiment, a terminal device is provided on the basis of the foregoing embodiments, and fig. 8 is a schematic structural diagram of a terminal device provided in an embodiment of the present application, and as shown in fig. 8, the terminal device 200 includes: memory 201, processor (CPU) 202, peripheral interfaces 203, RF (Radio Frequency) circuitry 205, audio circuitry 206, speaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, other input/control devices 210, and external port 204, which communicate via one or more communication buses or signal lines 207.
It should be understood that the illustrated terminal device 200 is only one example of a terminal device, and that the terminal device 200 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device for rights management of multi-open applications provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 201, the memory 201 being accessible by the CPU202, the peripheral interface 203, and the like, the memory 201 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 203, said peripheral interface 203 may connect input and output peripherals of the device to the CPU202 and the memory 201.
An I/O subsystem 209, the I/O subsystem 209 may connect input and output peripherals on the device, such as a touch screen 212 and other input/control devices 210, to the peripheral interface 203. The I/O subsystem 209 may include a display controller 2091 and one or more input controllers 2092 for controlling the other input/control devices 210. Where one or more input controllers 2092 receive electrical signals from or transmit electrical signals to other input/control devices 210, the other input/control devices 210 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 2092 may be coupled to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 212, the touch screen 212 being an input interface and an output interface between the user terminal and the user, displaying visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 2091 within the I/O subsystem 209 receives electrical signals from the touch screen 212 or transmits electrical signals to the touch screen 212. The touch screen 212 detects a contact on the touch screen, and the display controller 2091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 212, i.e., implements a human-machine interaction, and the user interface object displayed on the touch screen 212 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 205 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, the RF circuitry 205 receives and transmits RF signals, also referred to as electromagnetic signals, through which the RF circuitry 205 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 205 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 206 is mainly used to receive audio data from the peripheral interface 203, convert the audio data into an electric signal, and transmit the electric signal to the speaker 211.
And a speaker 211 for reproducing the voice signal received by the handset from the wireless network through the RF circuit 205 into sound and playing the sound to the user.
And the power management chip 208 is used for supplying power and managing power to the hardware connected with the CPU202, the I/O subsystem and the peripheral interface.
The navigation control device of the terminal device and the terminal device provided in the above embodiments can execute the navigation control method of the terminal device provided in any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a navigation control method of a terminal device provided in any embodiment of the present invention.
Embodiments of the present application further provide a storage medium containing terminal device executable instructions, which when executed by a terminal device processor, are configured to perform a navigation control method, where the method includes:
acquiring navigation data information when a navigation function is detected to run, wherein the navigation data information comprises current position data of terminal equipment and navigation path data from the current position to a navigation terminal point;
determining whether a display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information;
and if the residual navigation distance is smaller than a preset distance threshold, closing the navigation function.
In a possible embodiment, before the acquiring the navigation data information, the method further includes:
acquiring a residual electric quantity value of the terminal equipment, and judging whether the residual electric quantity value is smaller than a first preset electric quantity threshold value or not;
correspondingly, the acquiring navigation data information includes:
and if the residual electric quantity value is smaller than a first preset electric quantity value, acquiring navigation data information.
In one possible embodiment, if the display screen of the terminal device is in an off state, determining whether the remaining electric quantity value is smaller than a second preset electric quantity value, wherein the second preset electric quantity value is smaller than the first preset electric quantity value;
and if the residual electric quantity value is smaller than a second preset electric quantity value, closing the navigation function.
In a possible embodiment, if the remaining navigation distance is greater than or equal to the preset distance threshold, the display screen of the terminal device is controlled to be in an off state.
In a possible embodiment, before the controlling the display screen of the terminal device to be in the off state, the method further includes:
acquiring sensing data acquired by a gravity sensor integrated with the terminal equipment;
determining orientation information of the display screen according to the sensing data, and controlling the display screen to be in a turning-off state if the orientation information meets a preset adjusting condition.
In a possible embodiment, if the remaining navigation distance is greater than or equal to a preset distance threshold, determining the number of branches according to the navigation path data, and if the number of branches is less than the preset number of branches, closing the navigation function.
In one possible embodiment, if the remaining navigation distance is greater than or equal to a preset distance threshold, determining whether the vehicle is currently in a highway driving state according to the navigation path data, and if so, closing the navigation function.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the navigation control method described above, and may also perform related operations in the navigation control method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A navigation control method is characterized by comprising the following steps:
when the navigation function is detected to be operated, acquiring a residual electric quantity value of the terminal equipment, and judging whether the residual electric quantity value is smaller than a first preset electric quantity threshold value or not;
if the residual electric quantity value is smaller than a first preset electric quantity value, navigation data information is obtained, and the navigation data information comprises current position data of the terminal equipment and navigation path data from the current position to a navigation end point;
determining whether a display screen of the terminal equipment is in a bright screen state, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information; when the navigation function is started, the display screen of the terminal equipment is always in a bright screen state, when a user switches the current display interface to display a non-navigation function interface, the display screen automatically becomes a turned-off state after a few seconds, and the navigation function is in a background running state and only provides a voice prompt function;
if the residual navigation distance is smaller than a preset distance threshold, closing the navigation function; and sending a voice prompt while the navigation function is closed to prompt a user that the navigation function is to be closed.
2. The method according to claim 1, wherein if the display screen of the terminal device is in an off state, determining whether the remaining electric quantity value is smaller than a second preset electric quantity value, wherein the second preset electric quantity value is smaller than the first preset electric quantity value;
and if the residual electric quantity value is smaller than a second preset electric quantity value, closing the navigation function.
3. The method according to claim 1, wherein if the remaining navigation distance is greater than or equal to the preset distance threshold, controlling a display screen of the terminal device to be in an off state.
4. The method according to claim 3, before the controlling the display screen of the terminal device to be in an off state, further comprising:
acquiring sensing data acquired by a gravity sensor integrated with the terminal equipment;
determining orientation information of the display screen according to the sensing data, and controlling the display screen to be in a turning-off state if the orientation information meets a preset adjusting condition.
5. The method according to any one of claims 1-4, wherein if the remaining navigation distance is greater than or equal to a preset distance threshold, determining the number of branches according to the navigation path data, and if the number of branches is less than a preset number of branches, turning off the navigation function.
6. The method according to any one of claims 1 to 4, wherein if the remaining navigation distance is greater than or equal to a preset distance threshold, determining whether it is currently in a highway driving state according to the navigation path data, and if so, turning off the navigation function.
7. A navigation control device is characterized by comprising:
the data acquisition module is used for acquiring a residual electric quantity value of the terminal equipment when the navigation function is detected to be operated, and judging whether the residual electric quantity value is smaller than a first preset electric quantity threshold value or not;
if the residual electric quantity value is smaller than a first preset electric quantity value, navigation data information is obtained, and the navigation data information comprises current position data of the terminal equipment and navigation path data from the current position to a navigation end point;
the condition judgment module is used for determining whether a display screen of the terminal equipment is in a bright screen state or not, and if the display screen is in the bright screen state, determining the residual navigation distance according to the navigation data information; when the navigation function is started, the display screen of the terminal equipment is always in a bright screen state, when a user switches the current display interface to display a non-navigation function interface, the display screen automatically becomes a turned-off state after a few seconds, and the navigation function is in a background running state and only provides a voice prompt function;
the control closing module is used for closing the navigation function if the residual navigation distance is smaller than a preset distance threshold; and sending a voice prompt while the navigation function is closed to prompt a user that the navigation function is to be closed.
8. A terminal device, comprising: processor, memory and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the navigation control method according to any of claims 1-6 when executing the computer program.
9. A storage medium containing terminal device-executable instructions, which when executed by a terminal device processor, are configured to perform the navigation control method of any one of claims 1-6.
CN201810587851.9A 2018-06-08 2018-06-08 Navigation control method, navigation control device, terminal equipment and storage medium Active CN109032322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810587851.9A CN109032322B (en) 2018-06-08 2018-06-08 Navigation control method, navigation control device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810587851.9A CN109032322B (en) 2018-06-08 2018-06-08 Navigation control method, navigation control device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109032322A CN109032322A (en) 2018-12-18
CN109032322B true CN109032322B (en) 2020-07-21

Family

ID=64612492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810587851.9A Active CN109032322B (en) 2018-06-08 2018-06-08 Navigation control method, navigation control device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109032322B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112327817B (en) * 2019-07-17 2024-04-30 阿尔派株式会社 Portable terminal and route guidance control method for portable terminal
CN113670321A (en) * 2021-07-14 2021-11-19 维沃移动通信(杭州)有限公司 Navigation mode adjusting method and device and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241692A (en) * 2007-02-08 2008-08-13 佛山市顺德区顺达电脑厂有限公司 Power-saving control system and method for display panel
TW201005261A (en) * 2008-07-30 2010-02-01 Arima Communication Corp Power-saving method for GPS satellite navigation device
CN101641567A (en) * 2007-01-10 2010-02-03 通腾科技股份有限公司 A method of conserving power in a navigation device and a power conserving navigation device
CN105388503A (en) * 2015-11-20 2016-03-09 小米科技有限责任公司 Navigation method and device
CN105491241A (en) * 2016-01-13 2016-04-13 广东欧珀移动通信有限公司 Navigation method, navigation device and mobile terminal integrated with navigation device
CN105674977A (en) * 2016-01-06 2016-06-15 华为技术有限公司 Navigation device and navigation method
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal
CN107367742A (en) * 2016-05-12 2017-11-21 北京搜狗科技发展有限公司 A kind of electricity saving method based on navigation, device and electronic equipment
CN107610674A (en) * 2017-08-25 2018-01-19 维沃移动通信有限公司 Screen luminance adjustment method and mobile terminal in a kind of navigation procedure
CN108055642A (en) * 2017-12-13 2018-05-18 广东欧珀移动通信有限公司 Control method, device, storage medium and the mobile terminal of locating module

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2954345B1 (en) * 2013-02-05 2023-01-11 Nokia Technologies Oy Method and apparatus for power saving scheme in a location sensor

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101641567A (en) * 2007-01-10 2010-02-03 通腾科技股份有限公司 A method of conserving power in a navigation device and a power conserving navigation device
CN101241692A (en) * 2007-02-08 2008-08-13 佛山市顺德区顺达电脑厂有限公司 Power-saving control system and method for display panel
TW201005261A (en) * 2008-07-30 2010-02-01 Arima Communication Corp Power-saving method for GPS satellite navigation device
CN105388503A (en) * 2015-11-20 2016-03-09 小米科技有限责任公司 Navigation method and device
CN105674977A (en) * 2016-01-06 2016-06-15 华为技术有限公司 Navigation device and navigation method
CN105491241A (en) * 2016-01-13 2016-04-13 广东欧珀移动通信有限公司 Navigation method, navigation device and mobile terminal integrated with navigation device
CN107367742A (en) * 2016-05-12 2017-11-21 北京搜狗科技发展有限公司 A kind of electricity saving method based on navigation, device and electronic equipment
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal
CN107610674A (en) * 2017-08-25 2018-01-19 维沃移动通信有限公司 Screen luminance adjustment method and mobile terminal in a kind of navigation procedure
CN108055642A (en) * 2017-12-13 2018-05-18 广东欧珀移动通信有限公司 Control method, device, storage medium and the mobile terminal of locating module

Also Published As

Publication number Publication date
CN109032322A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US11861161B2 (en) Display method and apparatus
EP3579104B1 (en) Method and apparatus for establishing an application prediction model, storage medium and terminal
US8675024B2 (en) Mobile terminal and displaying method thereof
CN107688638B (en) Recommendation method and device for application list, storage medium and mobile terminal
US20120184247A1 (en) Electronic device and method of controlling the same
KR101171826B1 (en) Mobile Terminal And Method Of Controlling The Same
CN108076507B (en) Positioning mode control method and device, storage medium and mobile terminal
CN108076223B (en) Task switching method and device, terminal equipment and storage medium
KR20140111088A (en) Mobile apparatus providing preview by detecting rub gesture and control method thereof
US9438715B2 (en) Broadcast mode control method and system
CN109460364B (en) Application program detection method and device, storage medium and mobile terminal
EP2827571B1 (en) Mobile terminal and method of controlling the same
WO2021027466A1 (en) Positioning method and terminal device
US11131557B2 (en) Full-vision navigation and positioning method, intelligent terminal and storage device
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
CN109032322B (en) Navigation control method, navigation control device, terminal equipment and storage medium
CN107995367B (en) Arrival reminding method and device, storage medium and mobile terminal
CN107490380B (en) Navigation method, navigation device, storage medium and mobile terminal
CN108958578B (en) File control method and device and electronic device
CN109186657B (en) Proximity sensor parameter calibration method and device, terminal equipment and storage medium
CN108196664B (en) Screen display method and device, storage medium and terminal
CN108156313B (en) Positioning control method and device, storage medium and terminal equipment
US10050660B2 (en) Electronic device with radio function and operating method thereof
KR20110033469A (en) Mobile terminal and method of performing data communication using the same
CN108563752B (en) Data interaction method and device, terminal equipment and storage medium

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