CN107846518B - Navigation state switching method, mobile terminal and computer readable storage medium - Google Patents
Navigation state switching method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN107846518B CN107846518B CN201711129832.3A CN201711129832A CN107846518B CN 107846518 B CN107846518 B CN 107846518B CN 201711129832 A CN201711129832 A CN 201711129832A CN 107846518 B CN107846518 B CN 107846518B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- navigation
- screen
- preset
- current position
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 56
- 238000004590 computer program Methods 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 12
- 230000001133 acceleration Effects 0.000 claims description 8
- 238000001514 detection method Methods 0.000 claims description 6
- 230000006870 function Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 9
- 230000004044 response Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000010438 heat treatment Methods 0.000 description 3
- 230000002035 prolonged effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72457—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/10—Details of telephonic subscriber devices including a GPS signal receiver
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Navigation (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a navigation state switching method, a mobile terminal and a computer readable storage medium. The method comprises the following steps: when the mobile terminal is in a screen-off navigation state, acquiring the current position of the mobile terminal; judging whether a preset bright screen navigation condition is met or not according to the current position of the mobile terminal; and if the bright screen navigation condition is met, lightening the screen of the mobile terminal and displaying a navigation interface through the screen. Compared with the prior art, the navigation state switching method provided by the invention is more convenient and faster to operate, and meanwhile, the potential safety hazard in the prior art is better avoided.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a navigation state switching method, a mobile terminal, and a computer-readable storage medium.
Background
With the continuous development of communication technology, the popularity of mobile terminals such as mobile phones is higher and higher, and the mobile terminals can realize more personalized functions, such as navigation function. At present, in order to improve the endurance of a mobile terminal, the mobile terminal supports a screen-off navigation function. When the mobile terminal is in the off-screen navigation state, if a user needs to check a navigation map in the navigation interface, the mobile terminal needs to be switched to the on-screen navigation state, and at this time, the user needs to manually wake up and unlock the mobile terminal and enter the navigation interface to check the current navigation map, so that the operation is complex, the attention of the user can be dispersed, and great potential safety hazards are brought.
Disclosure of Invention
The embodiment of the invention provides a navigation state switching method, a mobile terminal and a computer readable storage medium, which are used for solving the problems of complex operation and potential safety hazard of the conventional navigation state switching method.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a navigation state switching method, where the method includes:
when the mobile terminal is in a screen-off navigation state, acquiring the current position of the mobile terminal;
judging whether a preset bright screen navigation condition is met or not according to the current position of the mobile terminal;
and if the bright screen navigation condition is met, lightening the screen of the mobile terminal and displaying a navigation interface through the screen.
In a second aspect, an embodiment of the present invention provides a mobile terminal, where the mobile terminal includes:
the acquisition module is used for acquiring the current position of the mobile terminal when the mobile terminal is in a screen-off navigation state;
the judging module is used for judging whether a preset bright screen navigation condition is met or not according to the current position of the mobile terminal; if the bright screen navigation condition is met, triggering a processing module;
and the processing module is used for lightening the screen of the mobile terminal and displaying a navigation interface through the screen.
In a third aspect, an embodiment of the present invention provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the above navigation state switching method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the navigation state switching method are implemented.
In the embodiment of the invention, when the mobile terminal is in the screen-off navigation state, the mobile terminal automatically acquires the current position of the mobile terminal, judges whether the preset bright-screen navigation condition is met or not according to the current position, and automatically switches the navigation state into the bright-screen navigation state under the condition of meeting, so that a user can conveniently check the navigation map. Therefore, the mobile terminal can automatically identify the condition that the navigation map is required to be viewed according to the current position of the mobile terminal, and the navigation state is switched under the condition. Therefore, compared with the prior art, the navigation state switching method provided by the embodiment of the invention is more convenient and faster to operate, and meanwhile, the potential safety hazard in the prior art is better avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a navigation state switching method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 3 is a second schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a third schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 5 is a fourth schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a fifth schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 7 is a sixth schematic structural diagram of a mobile terminal according to an embodiment of the present invention;
fig. 8 is a hardware diagram of another mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First, a navigation state switching method provided in an embodiment of the present invention is described below.
It should be noted that the navigation state switching method provided by the embodiment of the present invention may be applied to a mobile terminal. Specifically, the mobile terminal may be any device having a communication function, such as: mobile phones, tablet personal computers (tablet personal Computer), Laptop computers (Laptop Computer), Personal Digital Assistants (PDA), Mobile Internet Devices (MID), Wearable devices (Wearable Device), and the like.
Referring to fig. 1, a flowchart of a navigation state switching method according to an embodiment of the present invention is shown. As shown in fig. 1, the method is applied to a mobile terminal, and includes the following steps:
It is understood that the navigation state of the mobile terminal may be an on-screen navigation state or an off-screen navigation state. Generally speaking, when a navigation start instruction input by a user is acquired, the mobile terminal starts a navigation function, and the navigation state of the mobile terminal is a bright-screen navigation state at this time. Under the condition that the navigation state is the bright screen navigation state, if the mobile terminal is in a certain time length (the certain time length can be the automatic screen-off interval time length of the mobile terminal, under the normal condition, under the condition that the mobile terminal is bright screen, if the touch operation is not detected within the automatic screen-off interval time length, the mobile terminal can extinguish the screen), for example, the touch operation input by the user is not detected within 15 seconds, the mobile terminal extinguishes the screen, so that the navigation state is switched from the bright screen navigation state to the screen-off navigation state, the electric quantity loss of the mobile terminal is reduced, the endurance time length of the mobile terminal is prolonged, and meanwhile, the heating condition of the mobile terminal is improved.
It should be noted that, if the mobile terminal is in the off-screen navigation state, the user cannot quickly view the navigation map in the navigation interface, but the user still needs to view the navigation map in many cases, and therefore, the mobile terminal performs the operation of acquiring the current position. Specifically, the mobile terminal may acquire the current location using a current navigation map, or the mobile terminal may call a Global Positioning System (GPS) to acquire the current location. After the current position is acquired, the mobile terminal executes subsequent steps according to the acquired current position so as to identify the condition that the requirement for viewing the navigation map exists, and when the condition occurs, the navigation state is switched, so that the user can rapidly view the navigation map.
On the contrary, if the mobile terminal is not in the off-screen navigation state (i.e. the mobile terminal is in the on-screen navigation state), even if the situation that the requirement for viewing the navigation map occurs, the user can directly view the navigation map displayed on the on-screen of the mobile terminal, and therefore, the mobile terminal does not need to execute the operation of acquiring the current position.
It should be noted that the specific implementation form of step 102 is various, and two implementation forms are described below by way of example.
In a first implementation form, the step 102 of determining whether a preset bright-screen navigation condition is met according to the current position of the mobile terminal includes:
obtaining a road sign between the current position of the mobile terminal and a first target position along the navigation route; the first target position is located in front of the current position of the mobile terminal and is a first preset distance away from the current position of the mobile terminal.
The landmark along the navigation landmark and between the current position and the first target position may be a high-speed entrance, a high-speed exit, a high-speed rest area, a crossroad, an overpass road segment, a school road segment, or a hospital road segment, and the first preset distance may be 100 meters, 150 meters, or 200 meters. Of course, the types of the road signs and the values of the first preset distance are not limited to the above listed situations, and may be determined according to actual situations, which is not limited in this embodiment.
It is noted that the first target position is located in front of the current position of the mobile terminal, and then the first target position should be located between the current position and the navigation destination position.
And if the preset navigation road sign exists in the acquired road signs, determining that the preset bright-screen navigation condition is met.
Generally, there is a high possibility that a user has a need to view a navigation map near a high-speed exit, a high-speed rest area, an intersection, an overpass section, etc., and thus, the preset navigation landmarks may include the high-speed exit, the high-speed rest area, the intersection, and the overpass section.
For the mobile terminal, after acquiring the current location, it may acquire a landmark along the navigation landmark between the current location and the first target location using the current navigation map. And then, the mobile terminal compares the acquired road signs with each road sign in the preset navigation road signs so as to judge whether the preset navigation road signs exist in the acquired road signs. If the judgment result is that the bright screen navigation condition is met, the possibility that the requirement for viewing the navigation map exists currently is very high, and therefore the mobile terminal judges that the preset bright screen navigation condition is met. Thus, the mobile terminal performs the following step 103.
It can be seen that, in the first implementation form, the mobile terminal can conveniently identify the condition that the preset bright-screen navigation condition is satisfied according to the current position.
In a second implementation form, the step 102 of determining whether the preset bright-screen navigation condition is met according to the current position of the mobile terminal includes:
acquiring the distance between the current position of the mobile terminal and a navigation target position;
and if the acquired distance is smaller than a second preset distance, determining that the preset bright screen navigation condition is met.
The second preset distance may be 180 meters, 200 meters, or 220 meters, and certainly, a value of the second preset distance is not limited thereto, and may be determined specifically according to an actual situation, which is not limited in this embodiment.
In general, in order to confirm whether or not the navigation destination position is reached, there is a high possibility that the user has a need to view the navigation map in the vicinity of the navigation destination position. In view of this, after acquiring the current location, the mobile terminal may acquire the distance between the current location and the navigation destination location using the current navigation map. And then, the mobile terminal compares the acquired distance with a second preset distance. If the obtained distance is smaller than the second preset distance, which indicates that the current position is very close to the navigation target position, the possibility that the navigation map is viewed at present is very high, and therefore the mobile terminal judges that the preset bright-screen navigation condition is met. Thus, the mobile terminal performs the following step 103.
It can be seen that, in the second implementation form, the mobile terminal can also conveniently identify the condition that the preset bright-screen navigation condition is satisfied according to the current position.
Optionally, after determining that the preset bright-screen navigation condition is satisfied, and before performing step 103, the mobile terminal may output voice query information for querying whether the user performs bright-screen navigation. For example, the content of the voice query message may be "whether the intersection ahead is on screen for navigation, please answer YES or NO". And the mobile terminal starts the recording device while outputting the voice inquiry information. After the voice response information of the user is collected by the recording equipment, the mobile terminal performs voice recognition on the voice response information.
If the voice response information is "YES", then, through voice recognition, the mobile terminal can determine that the user indicates to perform bright screen navigation, which indicates that there is a current demand for viewing the navigation map, so that the mobile terminal executes step 103, that is, the screen of the mobile terminal is lit, and the navigation interface is displayed through the screen, so as to switch the navigation state to the bright screen navigation state, thereby facilitating the user to view the navigation map.
If the voice response message is "NO", then, through voice recognition, the mobile terminal can determine that the user indicates not to perform on-screen navigation, which indicates that there is NO need to view a navigation map currently, and therefore, the mobile terminal does not perform step 103, i.e., does not switch the navigation state, and thus, the navigation state remains in the off-screen navigation state.
In the embodiment of the invention, when the mobile terminal is in the screen-off navigation state, the mobile terminal automatically acquires the current position of the mobile terminal, judges whether the preset bright-screen navigation condition is met or not according to the current position, and automatically switches the navigation state into the bright-screen navigation state under the condition of meeting, so that a user can conveniently check the navigation map. Therefore, the mobile terminal can automatically identify the condition that the navigation map is required to be viewed according to the current position of the mobile terminal, and the navigation state is switched under the condition. Therefore, compared with the prior art, the navigation state switching method provided by the embodiment of the invention is more convenient and faster to operate, and meanwhile, the potential safety hazard in the prior art is better avoided.
Optionally, when the step 102 adopts the first implementation form, before obtaining the landmark between the current position of the mobile terminal and the first target position along the navigation route, the method further includes:
a target travel pattern of the mobile terminal is determined.
Among them, the target travel mode of the mobile terminal may be variously possible, such as a driving mode, a riding mode, or a walking mode. It can be understood that, in different traveling modes, the speed and the acceleration of the mobile terminal are different, and therefore, in this embodiment, a speed sensor and an acceleration sensor may be disposed in the mobile terminal, and the mobile terminal may obtain its own speed through the speed sensor, obtain its own acceleration through the acceleration sensor, and determine the target traveling mode according to the obtained speed and acceleration.
And determining the distance corresponding to the target traveling mode based on the preset corresponding relationship between the traveling mode and the distance.
And taking the determined distance as a first preset distance.
The correspondence between the preset traveling mode and the distance may be stored in the mobile terminal in advance, and the correspondence may be specifically shown in table 1 below.
Travel mode | Distance between two adjacent plates |
Driving mode | 400 m |
Riding mode | 80 m |
Walking mode | 20 m |
TABLE 1
It should be noted that, before executing step 103, if the mobile terminal outputs the voice query information and determines whether to perform the bright-screen navigation according to the voice response information of the user, the mobile terminal needs to reserve sufficient response time for the user. Generally, the mobile terminal has the fastest traveling speed in the driving mode and the slowest traveling speed in the walking mode, and then the distances corresponding to the driving mode, the riding mode and the walking mode can be decreased progressively.
Assuming that the target traveling mode determined by the mobile terminal is the driving mode, according to table 1 above, the mobile terminal can determine that the distance corresponding to the target traveling mode is 400 meters, and the mobile terminal will use 400 meters as the first preset distance. Thus, in acquiring a landmark between the current location of the mobile terminal and the first target location along the navigation route, the mobile terminal acquires a landmark between the current location and a location 400 meters ahead.
It can be seen that, in this embodiment, the mobile terminal can determine different first preset distances for different traveling modes, so that the first preset distances are adapted to the traveling modes.
Optionally, when the step 102 adopts the first implementation form, after the screen of the mobile terminal is lighted up and the navigation interface is displayed through the screen, the method further includes:
after the mobile terminal reaches the preset time of the second target position, turning off the screen; the second target position is the position where a preset navigation road sign exists in the acquired road sign, and the preset time length is less than the automatic screen-off interval time length of the mobile terminal.
The preset time period may be 0 second, 1 second, 2 seconds or 3 seconds, and of course, the value of the preset time period is not limited thereto, and may be determined specifically according to an actual situation, which is not limited in this embodiment.
Assuming that the current position acquired by the mobile terminal in the off-screen navigation state is position a and the first preset distance is 400 meters, the mobile terminal acquires that a preset navigation landmark exists in landmarks along the navigation route between position a and position B (located in front of position a and spaced apart from position a by 400 meters), and the preset navigation landmark is located at position C (i.e., the second target position) between position a and position B. If the preset time is 2 seconds, the possibility that the requirement for viewing the navigation map exists after the preset time reaches 2 seconds of the position C is low, and therefore the mobile terminal can extinguish the screen without the automatic screen extinguishing interval time, the electric quantity loss of the mobile terminal can be reduced, the endurance time of the mobile terminal is prolonged, and meanwhile the heating condition of the mobile terminal is improved.
Optionally, after determining whether the preset bright-screen navigation condition is met, the method further includes:
and if the bright screen navigation condition is not met and the mobile terminal is in the off-screen voice navigation state, detecting whether voice navigation information from the navigation server is received or not.
For the mobile terminal, after judging that the preset bright screen navigation condition is not met according to the current position, the mobile terminal can further judge whether the mobile terminal is in a screen-off voice navigation state. If the judgment result is yes, the mobile terminal detects whether the voice navigation information from the navigation server is received. If the judgment result is negative, the mobile terminal can start the voice navigation function so as to place the mobile terminal in the screen-off voice navigation state.
And if the voice navigation information is received, lightening a screen of the mobile terminal and displaying a navigation interface through the screen.
It should be noted that, if the mobile terminal receives the voice navigation information from the navigation server, the possibility of viewing the navigation map is higher at present, so that the mobile terminal can light the screen and display the navigation interface through the screen when playing the voice navigation information, so as to facilitate the user to view the navigation map.
Therefore, the navigation state switching method provided by the embodiment is convenient to operate, and meanwhile potential safety hazards in the prior art can be well avoided.
Optionally, if the voice navigation information is received, lighting a screen of the mobile terminal, and displaying a navigation interface through the screen, including:
and if the voice navigation information is received and is preset key navigation information, lightening a screen of the mobile terminal and displaying a navigation interface through the screen.
In this embodiment, the mobile terminal may store a key navigation information list, where the key navigation information list includes key navigation information such as a left turn at a front intersection, a right turn at the front intersection, and a u-turn at the front intersection. After receiving the voice navigation information from the navigation server, the mobile terminal judges whether the voice navigation information is located in the key navigation information list.
If the voice navigation information is the preset key navigation information, the possibility that the navigation map is required to be viewed is higher, and therefore the mobile terminal performs the operation of lightening the screen and displaying the navigation interface through the screen to switch the navigation state of the mobile terminal into the bright-screen voice navigation state, and a user can view the navigation map conveniently.
If the voice navigation information is not the preset key navigation information, the possibility that the requirement for viewing the navigation map exists currently is not necessarily high, and therefore the mobile terminal does not execute the operation of switching the navigation state, but keeps the screen-off voice navigation state.
It should be noted that, in this embodiment, the mobile terminal may also store a non-key navigation information list instead of the key navigation information list, where the non-key navigation information list includes non-key navigation information such as keep-straight-going, slow-down-going, and the like. After receiving the voice navigation information from the navigation server, the mobile terminal judges whether the voice navigation information is in the non-key navigation information list. If the voice navigation information is located in the screen-off voice navigation state, the voice navigation information is considered to be not the preset key navigation information, so that the mobile terminal does not execute the operation of switching the navigation state, but keeps the screen-off voice navigation state; if the voice navigation information is not located, the voice navigation information can be regarded as preset key navigation information, and the mobile terminal executes the operation of switching the navigation state, so that a user can conveniently check the navigation map.
It can be seen that, in this embodiment, the mobile terminal switches the navigation state only when part of the voice navigation information is received, so that the number of times of screen lightening of the mobile terminal can be reduced, the power consumption of the mobile terminal is reduced, the endurance of the mobile terminal is prolonged, and the heating condition of the mobile terminal is improved.
In summary, compared with the prior art, the navigation state switching method provided by the embodiment of the invention is more convenient and faster to operate, and meanwhile, the potential safety hazard in the prior art is better avoided.
Referring to fig. 2, a schematic structural diagram of a mobile terminal (i.e., the mobile terminal 100) according to an embodiment of the present invention is shown. As shown in fig. 2, the mobile terminal 100 includes:
the obtaining module 21 is configured to obtain a current position of the mobile terminal when the mobile terminal is in a screen-off navigation state;
the judging module 22 is configured to judge whether a preset bright-screen navigation condition is met according to the current position of the mobile terminal; if the bright screen navigation condition is met, triggering the processing module 23;
and the processing module 23 is used for lighting the screen of the mobile terminal and displaying the navigation interface through the screen.
Optionally, on the basis of the embodiment shown in fig. 2, as shown in fig. 3, the determining module 22 includes:
a first obtaining unit 221 for obtaining a landmark between a current position of the mobile terminal and a first target position along the navigation route; the first target position is located in front of the current position of the mobile terminal and is a first preset distance away from the current position of the mobile terminal;
the first determining unit 222 is configured to determine that a preset bright-screen navigation condition is met if a preset navigation landmark exists in the acquired landmarks.
Optionally, on the basis of the embodiment shown in fig. 3, as shown in fig. 4, the mobile terminal 100 further includes:
a first determining module 41 for determining a target travel mode of the mobile terminal before obtaining a landmark along the navigation route between the current position of the mobile terminal and the first target position;
a second determining module 42, configured to determine a distance corresponding to the target travel mode based on a preset correspondence between the travel mode and the distance;
and a third determining module 43, configured to use the determined distance as the first preset distance.
Optionally, on the basis of the embodiment shown in fig. 3, as shown in fig. 5, the mobile terminal 100 further includes:
the screen extinguishing module 51 is used for extinguishing the screen after the mobile terminal reaches a preset time of a second target position after the screen of the mobile terminal is lightened and a navigation interface is displayed through the screen; the second target position is the position where a preset navigation road sign exists in the acquired road sign, and the preset time length is less than the automatic screen-off interval time length of the mobile terminal.
Optionally, on the basis of the embodiment shown in fig. 2, as shown in fig. 6, the determining module 22 includes:
a second obtaining unit 223, configured to obtain a distance between the current position of the mobile terminal and the navigation destination position;
the second determining unit 224 is configured to determine that the preset bright-screen navigation condition is met if the obtained distance is smaller than a second preset distance.
Optionally, on the basis of the embodiment shown in fig. 2, as shown in fig. 7, the mobile terminal 100 further includes:
the detection module 71 is configured to, after determining whether a preset bright-screen navigation condition is met, detect whether voice navigation information from the navigation server is received if the bright-screen navigation condition is not met and the mobile terminal is in a screen-off voice navigation state; if the voice navigation information is received, the processing module 23 is triggered.
Optionally, the detection module 71 is specifically configured to:
and if the voice navigation information is received and is preset key navigation information, triggering the processing module.
It should be noted that, the mobile terminal 100 provided in the embodiment of the present invention is capable of implementing each process implemented by the mobile terminal in the foregoing method embodiment, and details are not described here to avoid repetition. Therefore, compared with the prior art, the navigation state switching method provided by the embodiment of the invention is more convenient and faster to operate, and meanwhile, the potential safety hazard in the prior art is better avoided.
Referring to fig. 8, a hardware structure diagram of a mobile terminal (i.e., mobile terminal 200) implementing various embodiments of the present invention is shown. As shown in fig. 8, the mobile terminal 200 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the mobile terminal structure illustrated in fig. 8 is not intended to be limiting of the mobile terminal 200, and that the mobile terminal 200 may include more or less components than those illustrated, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal 200 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 810 is configured to:
when the mobile terminal is in a screen-off navigation state, acquiring the current position of the mobile terminal;
judging whether a preset bright screen navigation condition is met or not according to the current position of the mobile terminal;
and if the bright screen navigation condition is met, lightening the screen of the mobile terminal and displaying a navigation interface through the screen.
Therefore, compared with the prior art, the navigation state switching method provided by the embodiment of the invention is more convenient and faster to operate, and meanwhile, the potential safety hazard in the prior art is better avoided.
Optionally, the processor 810 is specifically configured to:
obtaining a road sign between the current position of the mobile terminal and a first target position along the navigation route; the first target position is located in front of the current position of the mobile terminal and is a first preset distance away from the current position of the mobile terminal;
and if the preset navigation road sign exists in the acquired road signs, determining that the preset bright-screen navigation condition is met.
Optionally, before obtaining the waypoint along the navigation route between the current location of the mobile terminal and the first target location, the processor 810 is further configured to:
determining a target traveling mode of the mobile terminal;
determining a distance corresponding to the target traveling mode based on a preset corresponding relationship between the traveling mode and the distance;
and taking the determined distance as a first preset distance.
Optionally, after lighting up the screen of the mobile terminal and displaying the navigation interface through the screen, the processor 810 is further configured to:
after the mobile terminal reaches the preset time of the second target position, turning off the screen; the second target position is the position where a preset navigation road sign exists in the acquired road sign, and the preset time length is less than the automatic screen-off interval time length of the mobile terminal.
Optionally, the processor 810 is further configured to:
acquiring the distance between the current position of the mobile terminal and a navigation target position;
and if the acquired distance is smaller than a second preset distance, determining that the preset bright screen navigation condition is met.
Optionally, after determining the navigation state of the mobile terminal, the processor 810 is further configured to:
after judging whether the preset bright screen navigation condition is met, if the bright screen navigation condition is not met and the mobile terminal is in a screen-off voice navigation state, detecting whether voice navigation information from a navigation server is received;
and if the voice navigation information is received, lightening a screen of the mobile terminal and displaying a navigation interface through the screen.
Optionally, the processor 810 is specifically configured to:
and if the voice navigation information is received and is preset key navigation information, lightening a screen of the mobile terminal and displaying a navigation interface through the screen.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the mobile terminal 200 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The mobile terminal 200 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the mobile terminal 200 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 808 is an interface through which an external device is connected to the mobile terminal 200. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 200 or may be used to transmit data between the mobile terminal 200 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby integrally monitoring the mobile terminal. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The mobile terminal 200 may also include a power supply 811 (e.g., a battery) for powering the various components, and the power supply 811 may be preferably logically coupled to the processor 810 via a power management system that may be used to manage charging, discharging, and power consumption.
In addition, the mobile terminal 200 includes some functional modules that are not shown, and thus, the detailed description thereof is omitted.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 810, a memory 809, and a computer program stored in the memory 809 and capable of running on the processor 810, where the computer program, when executed by the processor 810, implements each process of the above navigation state switching method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the navigation state switching method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should 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.
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 solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (12)
1. A navigation state switching method is characterized by comprising the following steps:
when the mobile terminal is in a screen-off navigation state, acquiring the current position of the mobile terminal;
judging whether a preset bright screen navigation condition is met or not according to the current position of the mobile terminal;
if the bright screen navigation condition is met, lightening the screen of the mobile terminal, and displaying a navigation interface through the screen;
the judging whether the preset bright screen navigation condition is met or not according to the current position of the mobile terminal comprises the following steps:
obtaining a landmark between a current position of the mobile terminal and a first target position along a navigation route; the first target position is located in front of the current position of the mobile terminal and is a first preset distance away from the current position of the mobile terminal;
if the preset navigation road sign exists in the acquired road signs, determining that the preset bright-screen navigation condition is met;
before the obtaining of the landmark between the current location of the mobile terminal and the first target location along the navigation route, the method further comprises:
determining a target travel mode of the mobile terminal;
determining a distance corresponding to the target traveling mode based on a corresponding relation between a preset traveling mode and the distance;
taking the determined distance as a first preset distance;
wherein, the speed and the acceleration of the mobile terminal are different in different traveling modes.
2. The method according to claim 1, wherein after the illuminating the screen of the mobile terminal and displaying the navigation interface through the screen, the method further comprises:
after the mobile terminal reaches a preset time of a second target position, turning off the screen; the second target position is the position where a preset navigation road sign is located in the acquired road sign, and the preset time length is less than the automatic screen-off interval time length of the mobile terminal.
3. The method according to claim 1, wherein the determining whether the preset bright-screen navigation condition is met according to the current position of the mobile terminal comprises:
acquiring the distance between the current position of the mobile terminal and a navigation target position;
and if the acquired distance is smaller than a second preset distance, determining that the preset bright screen navigation condition is met.
4. The method according to any one of claims 1 to 3, wherein after determining whether the preset bright-screen navigation condition is satisfied, the method further comprises:
if the bright screen navigation condition is not met and the mobile terminal is in a screen-off voice navigation state, detecting whether voice navigation information from a navigation server is received;
and if the voice navigation information is received, lightening a screen of the mobile terminal, and displaying a navigation interface through the screen.
5. The method according to claim 4, wherein the lighting up a screen of the mobile terminal and displaying a navigation interface through the screen if the voice navigation message is received comprises:
and if the voice navigation information is received and is preset key navigation information, lightening a screen of the mobile terminal and displaying a navigation interface through the screen.
6. A mobile terminal, comprising:
the acquisition module is used for acquiring the current position of the mobile terminal when the mobile terminal is in a screen-off navigation state;
the judging module is used for judging whether a preset bright screen navigation condition is met or not according to the current position of the mobile terminal; if the bright screen navigation condition is met, triggering a processing module;
the processing module is used for lightening a screen of the mobile terminal and displaying a navigation interface through the screen;
the judging module comprises:
a first obtaining unit for obtaining a landmark between a current position of the mobile terminal and a first target position along a navigation route; the first target position is located in front of the current position of the mobile terminal and is a first preset distance away from the current position of the mobile terminal;
the first determining unit is used for determining that the preset bright-screen navigation condition is met if the preset navigation landmark exists in the acquired landmarks;
the mobile terminal further includes:
a first determining module for determining a target travel pattern of the mobile terminal before obtaining a landmark along a navigation route between a current location of the mobile terminal and a first target location;
the second determination module is used for determining the distance corresponding to the target traveling mode based on the corresponding relation between the preset traveling mode and the distance;
the third determining module is used for taking the determined distance as a first preset distance;
wherein, the speed and the acceleration of the mobile terminal are different in different traveling modes.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
the screen extinguishing module is used for extinguishing the screen after the mobile terminal reaches a preset time of a second target position after the screen of the mobile terminal is lightened and a navigation interface is displayed through the screen; the second target position is the position where a preset navigation road sign is located in the acquired road sign, and the preset time length is less than the automatic screen-off interval time length of the mobile terminal.
8. The mobile terminal of claim 6, wherein the determining module comprises:
the second acquisition unit is used for acquiring the distance between the current position of the mobile terminal and the navigation target position;
and the second determining unit is used for determining that the preset bright screen navigation condition is met if the acquired distance is smaller than a second preset distance.
9. The mobile terminal according to any of claims 6 to 8, characterized in that the mobile terminal further comprises:
the detection module is used for detecting whether voice navigation information from a navigation server is received or not if the bright screen navigation condition is not met and the mobile terminal is in a screen-off voice navigation state after judging whether the preset bright screen navigation condition is met or not; and if the voice navigation information is received, triggering the processing module.
10. The mobile terminal according to claim 9, wherein the detection module is specifically configured to:
and if the voice navigation information is received and is preset key navigation information, triggering the processing module.
11. A mobile terminal, characterized in that it comprises a processor, a memory, a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the navigation state switching method according to any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the navigation state switching method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711129832.3A CN107846518B (en) | 2017-11-15 | 2017-11-15 | Navigation state switching method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711129832.3A CN107846518B (en) | 2017-11-15 | 2017-11-15 | Navigation state switching method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107846518A CN107846518A (en) | 2018-03-27 |
CN107846518B true CN107846518B (en) | 2020-06-12 |
Family
ID=61678950
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711129832.3A Active CN107846518B (en) | 2017-11-15 | 2017-11-15 | Navigation state switching method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107846518B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108627176B (en) * | 2018-04-23 | 2021-04-09 | Oppo广东移动通信有限公司 | Screen brightness adjusting method and related product |
CN108613682A (en) * | 2018-04-28 | 2018-10-02 | 上海与德科技有限公司 | A kind of air navigation aid, device, terminal and storage medium |
CN108595229A (en) * | 2018-05-10 | 2018-09-28 | Oppo广东移动通信有限公司 | navigation application starting method and related device |
CN112181560A (en) * | 2020-09-24 | 2021-01-05 | Oppo(重庆)智能科技有限公司 | Navigation interface display method and device, electronic equipment and readable storage medium |
CN113670321A (en) * | 2021-07-14 | 2021-11-19 | 维沃移动通信(杭州)有限公司 | Navigation mode adjusting method and device and electronic equipment |
CN113654558B (en) * | 2021-07-16 | 2024-12-17 | 北京迈格威科技有限公司 | Navigation method and device, server, equipment, system and storage medium |
CN114783390A (en) * | 2022-04-15 | 2022-07-22 | 武汉光庭信息技术股份有限公司 | Screen brightness control method and device for navigation application |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681579A (en) * | 2016-03-11 | 2016-06-15 | 广东欧珀移动通信有限公司 | Terminal and its screen control method and device when it is in a navigation state |
CN105974360A (en) * | 2016-04-27 | 2016-09-28 | 沈阳云飞科技有限公司 | Monitoring analysis method based on ADL and apparatus thereof |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2372861A1 (en) * | 2001-02-20 | 2002-08-20 | Matsushita Electric Industrial Co., Ltd. | Travel direction device and travel warning direction device |
CN200983004Y (en) * | 2006-10-30 | 2007-11-28 | 深圳Tcl新技术有限公司 | An energy saving device for navigation instrument |
US9052197B2 (en) * | 2012-06-05 | 2015-06-09 | Apple Inc. | Providing navigation instructions while device is in locked mode |
CN106546256A (en) * | 2015-09-23 | 2017-03-29 | 中兴通讯股份有限公司 | The screen control method and device of electronic navigation |
CN105758417A (en) * | 2016-02-25 | 2016-07-13 | 广东欧珀移动通信有限公司 | Method and system for terminal navigation |
CN106643695A (en) * | 2016-11-17 | 2017-05-10 | 珠海市魅族科技有限公司 | Navigation method and navigation device |
-
2017
- 2017-11-15 CN CN201711129832.3A patent/CN107846518B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681579A (en) * | 2016-03-11 | 2016-06-15 | 广东欧珀移动通信有限公司 | Terminal and its screen control method and device when it is in a navigation state |
CN105974360A (en) * | 2016-04-27 | 2016-09-28 | 沈阳云飞科技有限公司 | Monitoring analysis method based on ADL and apparatus thereof |
Also Published As
Publication number | Publication date |
---|---|
CN107846518A (en) | 2018-03-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107846518B (en) | Navigation state switching method, mobile terminal and computer readable storage medium | |
CN109343759B (en) | Screen-turning display control method and terminal | |
CN109041148B (en) | Mobile terminal operation method and mobile terminal | |
CN108279948B (en) | Application program starting method and mobile terminal | |
CN108519080B (en) | Navigation route planning method and terminal | |
CN108182019A (en) | A kind of suspension control display processing method and mobile terminal | |
WO2020063165A1 (en) | Navigation method and terminal device | |
CN111899545B (en) | Driving reminding method and device, storage medium and mobile terminal | |
CN111107219B (en) | Control method and electronic equipment | |
CN108958593B (en) | Method for determining communication object and mobile terminal | |
CN108882142A (en) | Reminder message sending method and mobile terminal | |
CN108762613B (en) | State icon display method and mobile terminal | |
CN108287655A (en) | A kind of interface display method, interface display apparatus and mobile terminal | |
CN111078088B (en) | Interface control method, electronic device, and computer-readable storage medium | |
CN108196753B (en) | Interface switching method and mobile terminal | |
CN109862504A (en) | A display method and terminal device | |
WO2019154360A1 (en) | Interface switching method and mobile terminal | |
CN111126995A (en) | A payment method and electronic device | |
CN108362303B (en) | Navigation method and mobile terminal | |
CN108592939A (en) | A kind of air navigation aid and terminal | |
CN111061446A (en) | Display method and electronic equipment | |
CN108920572B (en) | Bus information processing method and mobile terminal | |
CN109005297B (en) | A display method and mobile terminal of a navigation application | |
CN108322598A (en) | A kind of information cuing method and mobile terminal | |
CN111158556B (en) | Display control method and electronic 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 |