CN107995367B - Arrival reminding method and device, storage medium and mobile terminal - Google Patents

Arrival reminding method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN107995367B
CN107995367B CN201711325841.XA CN201711325841A CN107995367B CN 107995367 B CN107995367 B CN 107995367B CN 201711325841 A CN201711325841 A CN 201711325841A CN 107995367 B CN107995367 B CN 107995367B
Authority
CN
China
Prior art keywords
target
distance
mobile terminal
positioning module
station
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
CN201711325841.XA
Other languages
Chinese (zh)
Other versions
CN107995367A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711325841.XA priority Critical patent/CN107995367B/en
Publication of CN107995367A publication Critical patent/CN107995367A/en
Application granted granted Critical
Publication of CN107995367B publication Critical patent/CN107995367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/026Services making use of location information using location based information parameters using orientation information, e.g. compass
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • H04W4/027Services making use of location information using location based information parameters using movement velocity, acceleration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Navigation (AREA)

Abstract

The embodiment of the application discloses a method and a device for reminding arrival, a storage medium and a mobile terminal. The method comprises the following steps: acquiring a target site; determining a current first position of the mobile terminal according to a positioning result of a positioning module, acquiring a target distance between the first position and the target station, and closing the positioning module; acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor; and when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, performing station arrival reminding. By adopting the technical scheme, the embodiment of the application not only can timely provide the user with the station arrival reminding and reduce the probability that the user misses the target station, but also can enable the positioning module to be in the closed state after the first position is obtained, thereby effectively reducing the power consumption of the mobile terminal, reducing the power consumption of the mobile terminal and prolonging the standby time of the mobile terminal.

Description

Arrival reminding method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a station arrival reminding method, a station arrival reminding device, a storage medium and a mobile terminal.
Background
With the rapid development of electronic technology and the increasing living standard of people, mobile terminals such as smart phones and tablet computers have become an essential part of the life of people. The mobile terminal can provide not only a voice call function but also a series of entertainment functions such as browsing a web page, playing a game, listening to music, and watching a novel.
At present, when a user takes a public transport means such as a bus, a subway and the like, the user is habitually lost time through a series of modes such as watching television, playing games, listening to music, watching novels or making phone calls through a mobile terminal. The user often misses the arrival reminding of the bus or the subway due to too much investment, so that the user misses the destination stop of getting off and delays the time of the user.
Disclosure of Invention
The arrival reminding method, the arrival reminding device, the storage medium and the mobile terminal can provide arrival reminding for the user in time and reduce the probability that the user misses a target site.
In a first aspect, an embodiment of the present application provides a station arrival reminding method, including:
acquiring a target site;
determining a current first position of the mobile terminal according to a positioning result of a positioning module, acquiring a target distance between the first position and the target station, and closing the positioning module;
acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor;
and when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, performing station arrival reminding.
In a second aspect, an embodiment of the present application provides an arrival reminding device, including:
the target site acquisition module is used for acquiring a target site;
the target distance acquisition module is used for determining the current first position of the mobile terminal according to the positioning result of the positioning module, acquiring the target distance between the first position and the target station and closing the positioning module;
the first travel distance acquisition module is used for acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor;
and the arrival reminding module is used for carrying out arrival reminding when the difference value of the first driving distance and the target distance is smaller than a first preset distance threshold value.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the arrival reminding method according to the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the arrival reminding method according to the first aspect of the embodiment of the present application.
According to the arrival reminding scheme provided by the embodiment of the application, the target station is firstly obtained, the current first position of the mobile terminal is determined according to the positioning result of the positioning module, the target distance between the first position and the target station is obtained, the positioning module is closed, the first traveling distance of the mobile terminal based on the first position is obtained in real time through the motion sensor, and arrival reminding is carried out when the difference value between the first traveling distance and the target distance is smaller than a first preset distance threshold value. By adopting the technical scheme, the station arrival reminding can be timely provided for the user, the probability that the user misses a target station is reduced, the positioning module can be in the closed state after the first position is obtained, the power consumption of the mobile terminal is effectively reduced, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.
Drawings
Fig. 1 is a schematic flowchart of a method for reminding a user of arriving at a station according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another arrival reminding method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another arrival reminding method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another arrival reminding method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another arrival reminding method according to an embodiment of the present application;
fig. 6 is a schematic flowchart of another arrival reminding method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an arrival reminding device according to an embodiment of the present application;
fig. 8 is a block diagram of a mobile terminal according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a schematic flowchart of a method for reminding a user of arriving at a station according to an embodiment of the present application, where the method can be executed by a device for reminding a user of arriving at a station, where the device can be implemented by software and/or hardware, and can be generally integrated in a mobile terminal. As shown in fig. 1, the method includes:
and 101, acquiring a target site.
In the embodiment of the application, the target station can be understood as a destination to be reached when the user takes a bus or a subway, that is, a station to be got off when the user takes the bus or the subway. The target site can be obtained from information input by a user on the human-computer interaction interface. For example, when an input operation of a user in a target site input box in the human-computer interaction interface is detected, a target site is extracted from information input by the target site input box. When detecting that the text information is input in the target site input box by the user, extracting the target site from the text information; and when the voice information input in the target site input box by the user is detected, extracting the target site from the voice information. Optionally, a site database may be provided for the user, the site database includes a series of site names, and the site name selected by the user from the site database is used as the target site.
It should be noted that, in the embodiment of the present application, a manner of obtaining a target site is not limited.
And 102, determining the current first position of the mobile terminal according to the positioning result of the positioning module, acquiring the target distance between the first position and the target station, and closing the positioning module.
The positioning module may include any one or more of a Global Navigation Satellite System (GNSS) positioning module, a network positioning module, a base station positioning module, and a bluetooth positioning module. And acquiring the current position information of the mobile terminal through a positioning module, and taking the current position information as the current first position. The current first position of the mobile terminal may be a starting position of the user on a bus or a subway, that is, a starting station of the user on the bus or the subway. Of course, the starting site input by the user on the human-computer interaction interface can be used as the first position at this time. The current first position of the mobile terminal can also be the current position information of the mobile terminal acquired by the positioning module after the user takes a bus or a subway for a period of time.
In the embodiment of the application, the target distance between the current first position of the mobile terminal and the target station is obtained, and the positioning module is closed. The target distance may be a linear distance between a current first position of the mobile terminal and the target station, that is, the first position and the target station are regarded as two points respectively, and the target distance may be a linear distance between the two points. The target distance may also be regarded as a link distance between the current first position of the mobile terminal in the target travel link and the target station, that is, a link distance between the first position and the target station along the target travel link. The target driving route can be understood as a driving route of a bus or a subway which the user currently takes, because the driving route is generally fixed for a certain fixed bus or subway. When the target distance can be a linear distance between the current first position of the mobile terminal and the target station, the linear distance between the first position and the target station can be searched and calculated from the map by calling the map. When the target distance may be a link distance between the target station and the current first position of the mobile terminal in the target travel link, the distance between the first position and the target station in the target travel link may be directly searched from the map by calling the map.
The embodiment of the application does not limit the sequence of obtaining the target distance between the first position and the target station and closing the positioning module. The target distance between the first position and the target station can be obtained first, and then the positioning module is closed; or the positioning module can be closed first, and then the target distance between the first position and the target station can be obtained; the two operations can also be performed simultaneously, i.e. the target distance between the first location and the target site is obtained and the positioning module is switched off.
And 103, acquiring a first travel distance of the mobile terminal based on the first position in real time through the motion sensor.
In the embodiment of the application, the first travel distance of the mobile terminal based on the first position is acquired in real time through the motion sensor. It can be understood that, taking the first position as the starting point of the movement of the mobile terminal, the distance from the current position of the mobile terminal to the first position is acquired in real time through the movement sensor, and the distance acquired in real time is taken as the first travel distance. The first travel distance may be a linear distance between a first position of the mobile terminal and a current position of the mobile terminal, that is, the first position and the current position of the mobile terminal are respectively regarded as two points, and the first travel distance may be a linear distance between the two points. The first travel distance may also be considered to be based on a link distance between a current first position of the mobile terminal in the target travel link and a position where the mobile terminal is currently located, that is, a link distance between the first position and the position where the mobile terminal is currently located along the target travel link. When the first travel distance can be a linear distance between the first position of the mobile terminal and the current position of the mobile terminal, the linear travel distance of the mobile terminal based on the first position can be acquired in real time through the motion sensor, and the linear travel distance is used as the first travel distance based on the first position, namely the linear distance between the first position of the mobile terminal and the current position of the mobile terminal. When the first travel distance may be based on a link distance between a current first position of the mobile terminal in the target travel link and a current position of the mobile terminal, the travel distance of the mobile terminal in the target travel link may be acquired in real time through the motion sensor, and the travel distance may be used as the first travel distance based on the first position, that is, based on the link distance between the current first position of the mobile terminal in the target travel link and the current position of the mobile terminal.
Optionally, the motion sensor may include a speed sensor, an acceleration sensor, and a direction sensor; the method for acquiring the first travel distance of the mobile terminal based on the first position in real time through the motion sensor comprises the following steps: starting an acceleration sensor and a direction sensor, and acquiring an initial speed corresponding to a first position; acquiring the displacement variation of the mobile terminal in real time through an acceleration sensor, a direction sensor and an initial speed; a first travel distance based on the first position is determined according to the displacement variation. The advantage of setting up like this is that, can obtain the distance of traveling of mobile terminal in real time according to the displacement variation of mobile terminal.
Illustratively, the movement speed of the mobile terminal at the first position is obtained through a speed sensor, and the acceleration information of the mobile terminal is obtained through an acceleration sensor in real time, wherein the acceleration information comprises the acceleration magnitude and the acceleration direction. The direction sensor may further detect the accuracy of the direction of the acceleration. And then acquiring the displacement variation of the mobile terminal in real time according to the movement speed and the acceleration information corresponding to the first position. When the first travel distance may be a straight-line distance between the first position of the mobile terminal and the current position of the mobile terminal, the displacement variation may be directly used as the first travel distance based on the first position. When the first travel distance may be a link distance between a current first position of the mobile terminal in the target travel link and a current position of the mobile terminal, a fourth position of the mobile terminal (i.e., the current position of the mobile terminal) is determined in real time according to the first position and the displacement variation, and a distance between the first position and the fourth position (i.e., the current position of the mobile terminal) in the target travel link may be found in real time from a map by calling the map and is used as the first travel distance.
And 104, when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value, reminding the user of arriving at the station.
In this embodiment of the present application, a target distance between the first location of the mobile terminal determined in step 102 and the target station and a first travel distance of the mobile terminal determined in step 103 based on the first location are obtained as differences, and a difference between the two is compared with a first preset distance threshold. And when the difference value of the two is smaller than a first preset distance threshold value, the station arrival reminding is carried out. The first preset distance threshold is set to be smaller, for example, the first preset distance threshold is set to be 20m, and when the difference value between the first driving distance and the target distance is smaller than 20m, it indicates that a bus or a subway taken by the user is about to arrive at the target station, and the user is reminded to prepare to get off the vehicle so as to avoid missing the target station.
It should be noted that, when the target distance is a linear distance between the current first position of the mobile terminal and the target station, correspondingly, the first travel distance is a linear distance between the first position of the mobile terminal and the current position of the mobile terminal. When the target distance is based on the link distance between the current first position of the mobile terminal in the target driving link and the target station, correspondingly, the first driving distance is based on the link distance between the current first position of the mobile terminal in the target driving link and the current position of the mobile terminal.
The arrival reminding mode can comprise any one or more of voice reminding, vibration reminding, ringing reminding and character reminding.
Optionally, when the difference between the first travel distance and the target distance is greater than a first preset distance threshold, further determining whether the difference is greater than a third preset distance threshold, where the third preset distance threshold is greater than the first preset distance threshold. When the difference between the first travel distance and the target distance is greater than the third preset distance threshold, the current position of the mobile terminal (i.e. the fourth position mentioned in step 103) may be taken as the first position in step 102, and step 102 and step 104 may be executed again.
The arrival reminding method provided by the embodiment of the application comprises the steps of firstly obtaining a target station, then determining the current first position of a mobile terminal according to the positioning result of a positioning module, obtaining the target distance between the first position and the target station, closing the positioning module, obtaining the first driving distance of the mobile terminal based on the first position in real time through a motion sensor, and carrying out arrival reminding when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value. By adopting the technical scheme, the station arrival reminding can be timely provided for the user, the probability that the user misses a target station is reduced, the positioning module can be in the closed state after the first position is obtained, the power consumption of the mobile terminal is effectively reduced, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.
In some embodiments, obtaining the target distance between the first location and the target site may include: acquiring a target driving route; and taking the distance between the first position and the target station based on the target driving route as the target distance between the first position and the target station. The method for acquiring a first travel distance of the mobile terminal based on a first position in real time through a motion sensor may include: acquiring the running distance of the mobile terminal in a target running line in real time through a motion sensor; the travel distance is taken as a first travel distance based on the first position. The advantage of setting up like this is that can accurately acquire the distance between first position and the target website in the route of traveling based on the target, and the distance of traveling of mobile terminal in the route of traveling of the target to make first distance of traveling and the distance of traveling of target not differ a lot, promptly the position that the mobile terminal traveled is close to the target website relatively, carries out the warning of arriving at the station, improves the accuracy that the station was reminded.
Since the travel route is generally fixed for a fixed public transport or subway, the target travel route from the initial station to the target station can be determined by acquiring the target station and the initial station. The user can be reminded to input the name of the number of the vehicles or the identification information of the vehicles, and the corresponding target driving route is called accordingly. The distance between the first position and the target station in the target driving route can be searched from the map by calling the map, and the distance is used as the target distance between the first position and the target station. The driving distance of the mobile terminal in the target driving route is acquired in real time through a motion sensor (such as a distance sensor), and the driving distance is used as a first driving distance based on the first position. Optionally, the displacement variation of the mobile terminal may be obtained in real time through the motion sensor, the current position of the mobile terminal is determined in real time according to the first position and the displacement variation, then a map is called, the distance between the first position and the current position of the mobile terminal in the target driving route is searched in the map, and the distance is used as the first driving distance based on the first position.
In some embodiments, obtaining the target distance between the first location and the target site may include: acquiring a linear distance between the first position and a target station; and taking the linear distance as the target distance between the first position and the target station. The method for acquiring a first travel distance of the mobile terminal based on a first position in real time through a motion sensor may include: acquiring a linear driving distance of the mobile terminal based on a first position in real time through a motion sensor; the straight-line travel distance is taken as a first travel distance based on the first position. The advantage of setting up like this lies in, can simply, acquire the straight-line distance between first position and the target site fast, and the straight-line distance of traveling based on first position of mobile terminal to make first distance of traveling and target distance of traveling differ little, when the position that the mobile terminal went to is relatively close to the target site promptly, carry out the warning of arriving at the station, improve the accuracy of reminding of arriving at the station.
Illustratively, the straight-line distance between the first position and the target site can be calculated by calling a map and searching the map. The method comprises the steps of acquiring a linear driving distance of the mobile terminal based on a first position in real time through a motion sensor, such as a displacement sensor, namely the linear distance between the current position of the mobile terminal and the first position, and taking the linear driving distance as the first driving distance based on the first position.
In some embodiments, when the difference between the first travel distance and the target distance is less than a first preset distance threshold, performing the arrival reminding may include: when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value, starting a positioning module; determining a second position of the mobile terminal in real time according to a positioning result of the positioning module; and when the distance between the second position and the target station is smaller than a second preset distance threshold value, reminding the station arrival, wherein the second preset distance threshold value is smaller than the first preset distance threshold value. The advantage that sets up like this lies in, when the difference of first driving distance and target distance is less than certain threshold, opens the orientation module, fixes a position through the orientation module in real time, according to the distance of location result and target website, the reasonable opportunity of controlling the warning of arriving at the station can further improve the accuracy that the station was reminded.
Illustratively, when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold, the positioning module is started, the position information of the mobile terminal is acquired in real time through the positioning module, and the position information of the mobile terminal acquired in real time is used as the second position of the mobile terminal. A distance between the second location and the target site is determined. The distance between the second position and the target station can be searched from the map by calling the map, wherein the distance between the second position and the target station can be a straight-line distance between the second position and the target station as well as a route distance between the second position and the target station in the target driving route. And when the distance between the second position and the target station is smaller than a second preset distance threshold value, reminding the user of arriving at the station. Wherein the second predetermined distance threshold is smaller than the second predetermined distance threshold, for example, the first predetermined distance threshold is set to 20m, and the second predetermined distance threshold is set to 10 m. Therefore, the user can be timely reminded of getting off the vehicle to avoid missing the target station, and the accuracy of the arrival reminding can be improved.
In some embodiments, when the difference between the first travel distance and the target distance is less than a first preset distance threshold, turning on the positioning module may include: when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value, acquiring a current third position of the mobile terminal; acquiring target historical driving time from a third position to a target station in a target driving route; after the target historical travel time period has elapsed, the positioning module is turned on. The positioning module can be further started after the historical running time of the bus or subway running target is long when the difference value of the first running distance and the target distance is smaller than the first preset distance threshold value, the starting time of the positioning module can be reasonably controlled, the situation that the positioning module is started when the difference value of the current first running distance and the target distance of the mobile terminal is smaller than the first preset distance threshold value but the vehicle is further away from the target station is effectively avoided, the electric quantity consumption of the mobile terminal can be further reduced, and the endurance time of the mobile terminal is provided.
Illustratively, when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold, the current third position of the mobile terminal is obtained. The displacement variation of the mobile terminal can be acquired in real time through the motion sensor, and the third position of the mobile terminal is determined in real time according to the first position and the displacement variation. The third position may be understood as a position where the mobile terminal is located when the difference between the first travel distance and the target distance is smaller than the first preset distance threshold. And acquiring a target historical driving time length from a third position to a target station in the target driving route. The mobile terminal or the server may count the historical driving time of the bus or the subway from the third position to the target station, use an average value of the historical driving time as the target historical driving time of the third position to the target station, and use the shortest historical driving time of the historical driving time as the target historical driving time.
In the embodiment of the application, after the target historical driving time length, the positioning module is started, that is, when the difference value between the first driving distance and the target distance is smaller than the first preset distance threshold value, the positioning module is started again after the bus or the subway which the user currently takes drives travels the target historical driving time length again. It can be understood that, although the difference between the first travel distance and the target distance is smaller than the first preset distance threshold, the vehicle may have a longer distance from the target station, and because the target historical travel time length is the historical travel time length from the third location to the target station, after the travel time length passes through the target history, that is, after the current travel time length of the bus or the subway taken by the user passes through the target historical travel time length, the vehicle will get closer to the target station, and at this time, the positioning module is turned on. Therefore, the power consumption of the mobile terminal can be further reduced, and the endurance time of the mobile terminal is prolonged.
In some embodiments, the method may further comprise: and acquiring road congestion information between a third position and a target station in the target driving route, wherein the road congestion information comprises congestion, smoothness and slow driving. After the target historical travel time period has elapsed, turning on the positioning module may include: and when the road congestion information and the target historical driving time meet the preset starting condition, starting the positioning module. The advantage that sets up like this lies in, can be according to road information of blocking up, the reasonable opening opportunity of control orientation module can further reduce mobile terminal's electric quantity consumption, provides mobile terminal's time of endurance.
Further, when the road congestion information and the target historical driving time length meet the preset starting condition, the positioning module is started, which may include: when the road congestion information is smooth, after a first preset time length passes, starting a positioning module, wherein the first preset time length is less than the target historical driving time length; when the road congestion information is slow in running, after the target historical running time passes, starting a positioning module; and when the road congestion information is congestion, after a second preset time length passes, starting the positioning module, wherein the second preset time length is longer than the target historical driving time length. The method has the advantages that when the road from the third position to the target station is smooth, the positioning module is started after the first preset time which is less than the target historical driving time, so that the situation that the vehicle arrives at the target station in advance due to smooth road can be avoided, and the arrival reminding is missed; when the road from the third position to the target station is slow to run, after the target historical running time, the positioning module is started, and positioning information can be provided for the user in time; when the road from the third position to the target station is congested, the positioning module is started after a second preset time length longer than the target historical driving time length, so that the situation that the electric quantity of the mobile terminal is greatly wasted by starting the positioning module when the vehicle is far away from the target station due to the road congestion can be avoided.
In the embodiment of the present invention, the present invention is mainly applied to a case where a vehicle taken by a user is a bus, and the following description mainly takes the case where the vehicle taken by the user is a bus as an example. And acquiring road congestion information from a third position to a target station of the bus taken by the user in the target driving route, wherein the road congestion information can be understood as road condition information from the third position to the target station in the target driving route. The time taken for the bus to travel from the third position to the target station in the target travel route is different because of different road condition information. For example, at the morning and evening peak of a working day, a road from the third position to the target station in the target travel route is very congested, and at this time, it takes a long time for the bus to travel from the third position to the target station. And during daytime hours other than the morning and evening peaks in the workday, such as 9 a.m.: 00-11: in the period 00, the road congestion information from the third position to the target station in the target driving route is slow to drive, and at the moment, the time taken for the bus to drive from the third position to the target station is short. Such as at night 22: 00-23: and in the period of 00, the road congestion information from the third position to the target station in the target driving route is smooth, and at the moment, the time taken by the bus to drive from the third position to the target station is shortest.
The target historical driving time is roughly estimated when a bus or other vehicles taken by a user drives from a third position to a target stop in a target driving route, and in the actual driving process, the driving time is closely related to road congestion information between the third position and the target stop in the target driving route, so that the time for starting the positioning module can be reasonably determined according to the target historical driving time and the road congestion information between the third position and the target stop in the target driving route.
For example, the road congestion information between the third position in the target driving route and the target station can be searched from the map by calling the map. For example, when the third position in the target driving route to the target station appears red in the map or at least one red road segment exists, it indicates that the road congestion information is congestion; when the color from the third position to the target station in the target driving route is orange in the map and no red road section exists, the road congestion information is that the driving is slow; and when the road congestion information is smooth, the road congestion information is represented by green color from the third position to the target station in the target driving route and no red road section or orange road section exists. Optionally, when the road congestion information is smooth, after a first preset time period elapses, the positioning module is started, where the first preset time period is shorter than the target historical driving time period. It can be understood that when the road congestion information from the third position to the target stop in the target driving route is smooth, the bus driving speed is high. Therefore, when the running time of the bus is shorter than the historical running time of the target, the positioning module is started in advance, and the situation that the bus arrives at the target station in advance due to smooth roads and the reminding of arriving at the station is missed can be avoided. And when the road congestion information is slow in running, starting the positioning module after the target historical running time. It can be understood that when the road congestion information between the third position and the target stop in the target driving route is slow to drive, the bus drives at a speed almost equal to the normal speed, so that after the historical driving time of the bus driving target, the difference between the reached position and the target stop is not much, and at the moment, the positioning module is started, and the positioning information can be provided for the user in time. And when the road congestion information is congestion, after a second preset time length, starting the positioning module, wherein the second preset time length is longer than the target historical driving time length. It can be understood that when the road congestion information from the third position to the target stop in the target driving route is congestion, the bus driving speed is slow. Therefore, after the historical driving time of the driving target of the bus is long, the distance between the bus and the target station is possibly longer, if the positioning module is started at the moment, the electricity consumption of the mobile terminal is larger, and the endurance time of the mobile terminal can be reduced. Therefore, the positioning module can be started after the driving time of the bus is longer than the target historical driving time, namely the bus drives for the second preset time, so that the endurance time of the mobile terminal can be increased.
The first preset time and the second preset time can be set according to road congestion information from a third position to a target station in a target driving line. The first preset time corresponds to the condition that the road congestion information between a third position in the target driving line and the target station is smooth; the second preset time corresponds to the situation that the road congestion information from the third position to the target station in the target driving line is congested. When the road congestion information from the third position to the target stop in the target driving route is congestion, the length of the congested road section (which can be understood as the length of the red road section from the third position to the target stop in the map) is different, and the set second preset time length is different. The longer the congested road section is, the larger the set second preset time length is, the shorter the congested road section is, and the set second preset time length is smaller. For example, three different values may be set for the second preset time period, and each value corresponds to three congestion road segments with different length intervals. And the mobile terminal correspondingly calls different second preset durations according to the length of the congested road section between the third position in the current target driving line and the target station.
In some embodiments, obtaining the target historical travel time based on the third position in the target travel route to the target station may include: counting or learning historical driving data between a third position and a target station according to a preset period; determining the historical driving time between the third position and the target station according to the statistical result or the learning result; and taking the shortest historical time length in the historical driving time lengths as a target historical driving time length. The method has the advantages that historical driving data capable of truly reflecting the driving condition of the vehicle can be fully utilized, each historical driving time between the third position and the target station is determined, the shortest historical driving time is used as the target historical driving time, and therefore the positioning module can be started before the vehicle reaches the target station, and the condition that the vehicle misses the station arrival reminding is further avoided.
For example, the historical travel data between the third location and the destination site may be understood as sample data. The sample data may be selected from historical traveling data of a vehicle taken by the user from a third position to a target station in a target traveling route within a set time interval, or historical traveling data of a set number of vehicles meeting a preset condition from the third position to the target station within the set time interval. For example, historical driving data from a third position to a target station in a target driving route within one month of a vehicle taken by the user is acquired and used as sample data, and a machine learning model is adopted to learn the sample data to generate a historical driving time length set, wherein the historical driving time length set comprises a plurality of different historical driving time lengths. As another example, the vehicle taken by the local user is acquired 6: 00-12: 00, taking historical driving data from a third position to a target station in a target driving route as sample data, counting each historical driving time length of the vehicle, and taking the shortest historical driving time length in all the historical driving time lengths as the target historical driving time length.
Fig. 2 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 2, the method includes:
step 201, acquiring a target site.
Step 202, determining the current first position of the mobile terminal according to the positioning result of the positioning module, obtaining the target distance between the first position and the target station, and closing the positioning module.
And step 203, starting the acceleration sensor and the direction sensor, and acquiring an initial speed corresponding to the first position.
And step 204, acquiring the displacement variation of the mobile terminal in real time through the acceleration sensor, the direction sensor and the initial speed.
And step 205, determining a first travel distance based on the first position according to the displacement variation.
And step 206, when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, performing arrival reminding.
The arrival reminding method provided by the embodiment of the application determines the current first position of the mobile terminal according to the positioning result of the positioning module, obtains the target distance between the first position and the target station, closes the positioning module, obtains the displacement variation of the mobile terminal in real time through the motion sensor, and obtains the first travel distance of the mobile terminal in real time according to the displacement variation, when the difference value between the first travel distance and the target distance is smaller than the first preset distance threshold value, the arrival reminding is carried out, the arrival reminding can be timely provided for a user, the probability that the user misses the target station is reduced, the positioning module can be in a closed state after the first position is obtained, the power consumption of the mobile terminal is effectively reduced, the electric quantity consumption of the mobile terminal is reduced, and the standby time length of the mobile terminal is prolonged.
Fig. 3 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 3, the method includes:
and 301, acquiring a target site.
Step 302, determining the current first position of the mobile terminal according to the positioning result of the positioning module, and closing the positioning module.
And step 303, acquiring a target driving route.
And step 304, taking the distance between the first position and the target station in the target driving route as the target distance between the first position and the target station.
And 305, acquiring the driving distance of the mobile terminal in the target driving route in real time through the motion sensor, and taking the driving distance as a first driving distance based on the first position.
And step 306, acquiring a linear distance between the first position and the target station.
And 307, taking the linear distance as a target distance between the first position and the target station.
And 308, acquiring the straight-line driving distance of the mobile terminal based on the first position in real time through the motion sensor, and taking the straight-line driving distance as the first driving distance based on the first position.
And 309, when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, reminding the user of arriving at the station.
The steps 303 to 305 and 306 to 308 can be regarded as two parallel execution schemes, and only one of the two parallel execution schemes can be executed, i.e. only the steps 303 to 305 are executed without executing the steps 306 to 308, or only the steps 306 to 308 are executed without executing the steps 303 to 305.
According to the arrival reminding method provided by the embodiment of the application, the distance between the first position and the target station in the target driving route and the driving distance of the mobile terminal in the target driving route are acquired, or the linear distance between the first position and the target station and the linear driving distance of the mobile terminal based on the first position are simply and quickly acquired, so that the difference between the first driving distance and the target driving distance is small, namely when the position where the mobile terminal drives is closer to the target station, arrival reminding is carried out, and the accuracy of the arrival reminding is effectively improved.
Fig. 4 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 4, the method includes:
step 401, a target site is obtained.
Step 402, determining the current first position of the mobile terminal according to the positioning result of the positioning module, obtaining the target distance between the first position and the target station, and closing the positioning module.
And 403, acquiring a first travel distance of the mobile terminal based on the first position in real time through the motion sensor.
And step 404, when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, starting a positioning module.
And 405, determining a second position of the mobile terminal in real time according to the positioning result of the positioning module.
And 406, when the distance between the second position and the target station is smaller than a second preset distance threshold, performing arrival reminding.
And the second preset distance threshold is smaller than the first preset distance threshold.
According to the arrival reminding method provided by the embodiment of the application, when the difference value between the first driving distance and the target distance is smaller than a certain threshold value, the positioning module is started, the positioning module is used for positioning in real time, the arrival reminding time is reasonably controlled according to the distance between the positioning result and the target station, and the accuracy of arrival reminding can be further improved.
Fig. 5 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 5, the method includes:
and step 501, acquiring a target site.
Step 502, determining the current first position of the mobile terminal according to the positioning result of the positioning module, obtaining the target distance between the first position and the target station, and closing the positioning module.
And 503, acquiring a first travel distance of the mobile terminal based on the first position in real time through the motion sensor.
And step 504, when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, acquiring a current third position of the mobile terminal.
And 505, acquiring a target historical driving time length from a third position to the target station in the target driving route.
And step 506, obtaining road congestion information between a third position in the target driving route and the target station.
The road congestion information comprises congestion, smoothness and slow running.
And 507, when the road congestion information is smooth, starting a positioning module after a first preset time period.
And the first preset time length is less than the target historical driving time length.
And step 508, when the road congestion information is slow in running, starting a positioning module after the target historical running time.
And 509, when the road congestion information is congestion, after a second preset time period, starting a positioning module.
And the second preset time length is greater than the target historical driving time length.
And step 510, determining a second position of the mobile terminal in real time according to the positioning result of the positioning module.
And 511, when the distance between the second position and the target station is smaller than a second preset distance threshold value, reminding the arrival.
And the second preset distance threshold is smaller than the first preset distance threshold.
According to the arrival reminding method provided by the embodiment of the application, the current first position of the mobile terminal is determined according to the positioning result of the positioning module, the target distance between the first position and the target station is obtained, the positioning module is closed, and when the difference value between the first driving distance and the target distance is smaller than the first preset distance threshold value, the starting time of the positioning module is reasonably controlled according to the road congestion information and the historical driving time of the target, so that the electric quantity consumption of the mobile terminal can be further reduced, and the endurance time of the mobile terminal is prolonged.
Fig. 6 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 5, the method includes:
step 601, acquiring a target site.
Step 602, determining the current first position of the mobile terminal according to the positioning result of the positioning module, obtaining the target distance between the first position and the target station, and closing the positioning module.
And 603, acquiring a first travel distance of the mobile terminal based on the first position in real time through the motion sensor.
And step 604, acquiring a current third position of the mobile terminal when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold.
And step 605, counting or learning historical driving data between the third position and the target station according to a preset period.
And step 606, determining the historical driving time between the third position and the target station according to the statistical result or the learning result.
And step 607, taking the shortest historical time length in the historical running time lengths as the target historical running time length.
And step 608, after the target historical driving time length passes, starting a positioning module.
And step 609, determining the second position of the mobile terminal in real time according to the positioning result of the positioning module.
And step 610, when the distance between the second position and the target station is smaller than a second preset distance threshold value, reminding the user of arriving at the station.
And the second preset distance threshold is smaller than the first preset distance threshold.
It should be noted that steps 605 to 607 may be executed before the technical solution provided by the embodiment of the present application is executed. It can be understood that, before the technical solution provided by the embodiment of the present application is executed, historical driving data between each position and each station in the target driving route is counted or learned, and according to the result of the counting and learning, the historical driving time length between each position and each station is determined. And when the target historical driving time length from the third position to the target station needs to be acquired, calling the corresponding historical driving time length from the predetermined historical driving time length to be used as the target historical driving time length.
According to the arrival reminding method provided by the embodiment of the application, historical driving data capable of truly reflecting the driving condition of the vehicle can be fully utilized, each historical driving time between the third position and the target station is determined, and the shortest historical driving time is taken as the target historical driving time, so that the positioning module can be started before the vehicle arrives at the target station, and the situation that the arrival reminding is missed is further avoided.
Fig. 7 is a schematic structural diagram of a station arrival reminding device according to an embodiment of the present application, where the device may be implemented by software and/or hardware, and is generally integrated on a mobile terminal, and may provide a station arrival reminder for a user in time by executing a station arrival reminding method. As shown in fig. 7, the apparatus includes:
a target site obtaining module 701, configured to obtain a target site;
a target distance obtaining module 702, configured to determine a current first location of the mobile terminal according to a positioning result of the positioning module, obtain a target distance between the first location and the target site, and close the positioning module;
a first travel distance obtaining module 703, configured to obtain, in real time, a first travel distance of the mobile terminal based on the first location through a motion sensor;
and the arrival reminding module 704 is configured to perform arrival reminding when the difference between the first travel distance and the target distance is smaller than a first preset distance threshold.
The arrival reminding device provided by the embodiment of the application acquires the target station, then determines the current first position of the mobile terminal according to the positioning result of the positioning module, acquires the target distance between the first position and the target station, closes the positioning module, acquires the first travel distance of the mobile terminal based on the first position in real time through the motion sensor, and carries out arrival reminding when the difference value between the first travel distance and the target distance is smaller than the first preset distance threshold. By adopting the technical scheme, the station arrival reminding can be timely provided for the user, the probability that the user misses a target station is reduced, the positioning module can be in the closed state after the first position is obtained, the power consumption of the mobile terminal is effectively reduced, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.
Optionally, the motion sensor includes an acceleration sensor and a direction sensor;
the first travel distance acquisition module is configured to:
starting the acceleration sensor and the direction sensor, and acquiring an initial speed corresponding to the first position;
acquiring the displacement variation of the mobile terminal in real time through the acceleration sensor, the direction sensor and the initial speed;
and determining a first travel distance based on the first position according to the displacement variation.
Optionally, the target distance obtaining module is configured to:
acquiring a target driving route;
taking the distance between the first position and the target station based on the target driving route as the target distance between the first position and the target station;
the first travel distance acquisition module is configured to:
acquiring the driving distance of the mobile terminal in the target driving route in real time through a motion sensor;
the travel distance is taken as a first travel distance based on the first position.
Optionally, the target distance obtaining module is configured to:
acquiring a linear distance between the first position and the target station;
taking the linear distance as a target distance between the first position and the target station;
the first travel distance acquisition module is configured to:
acquiring a linear driving distance of the mobile terminal based on the first position in real time through a motion sensor;
the straight-line travel distance is taken as a first travel distance based on the first position.
Optionally, the arrival reminding module includes:
the positioning module starting sub-module is used for starting the positioning module when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value;
the second position determining submodule is used for determining a second position of the mobile terminal in real time according to a positioning result of the positioning module;
and the arrival reminding sub-module is used for carrying out arrival reminding when the distance between the second position and the target station is smaller than a second preset distance threshold value, wherein the second preset distance threshold value is smaller than the first preset distance threshold value.
Optionally, the positioning module opening sub-module includes:
a third position obtaining unit, configured to obtain a current third position of the mobile terminal when a difference between the first travel distance and the target distance is smaller than a first preset distance threshold;
a target historical travel time length obtaining unit configured to obtain a target historical travel time length from the third position to the target station on the basis of the target travel route;
and the positioning module starting unit is used for starting the positioning module after the target historical driving time length passes.
Optionally, the apparatus further comprises:
the road congestion information acquisition module is used for acquiring road congestion information from the third position to the target station in the target driving route, wherein the road congestion information comprises congestion, smoothness and slow driving;
the positioning module opening unit includes:
and the positioning module starting subunit is used for starting the positioning module when the road congestion information and the target historical driving time meet preset starting conditions.
Optionally, the positioning module opens the subunit, is configured to:
when the road congestion information is smooth, after a first preset time length passes, starting the positioning module, wherein the first preset time length is less than the target historical driving time length;
when the road congestion information is slow in running, after the target historical running time passes, starting the positioning module;
and when the road congestion information is congestion, after a second preset time period, starting the positioning module, wherein the second preset time period is longer than the target historical driving time period.
Optionally, the target historical travel time obtaining unit is configured to:
counting or learning historical driving data between the third position and the target station according to a preset period;
determining the historical driving time between the third position and the target station according to a statistical result or a learning result;
and taking the shortest historical time length in the historical driving time lengths as a target historical driving time length.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for an arrival reminding method, including:
acquiring a target site;
determining a current first position of the mobile terminal according to a positioning result of a positioning module, acquiring a target distance between the first position and the target station, and closing the positioning module;
acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor;
and when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, performing station arrival reminding.
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, DDRRAM, SRAM, EDORAM, 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 arrival reminding operation described above, and may also perform related operations in the arrival reminding method provided in any embodiments of the present application.
The embodiment of the application provides a mobile terminal, and the arrival reminding device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application. As shown in fig. 8, the mobile terminal 800 may include: the system comprises a memory 801, a processor 802 and a computer program stored on the memory and executable by the processor, wherein the processor 802 implements the arrival reminding method according to the embodiment of the application when executing the computer program.
The mobile terminal provided by the embodiment of the application firstly acquires a target station, then determines the current first position of the mobile terminal according to the positioning result of the positioning module, acquires the target distance between the first position and the target station, closes the positioning module, acquires the first driving distance of the mobile terminal based on the first position in real time through the motion sensor, and performs station arrival reminding when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value. By adopting the technical scheme, the station arrival reminding can be timely provided for the user, the probability that the user misses a target station is reduced, the positioning module can be in the closed state after the first position is obtained, the power consumption of the mobile terminal is effectively reduced, the power consumption of the mobile terminal is reduced, and the standby time of the mobile terminal is prolonged.
Fig. 9 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application, and as shown in fig. 9, the mobile terminal may include: a casing (not shown), a memory 901, a Central Processing Unit (CPU) 902 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU902 and the memory 901 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 901 is used for storing executable program codes; the CPU902 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 901, so as to implement the following steps:
acquiring a target site;
determining a current first position of the mobile terminal according to a positioning result of a positioning module, acquiring a target distance between the first position and the target station, and closing the positioning module;
acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor;
and when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, performing station arrival reminding.
The mobile terminal further includes: peripheral interface 903, RF (Radio Frequency) circuitry 905, audio circuitry 906, speakers 911, power management chip 908, input/output (I/O) subsystems 909, other input/control devices 910, touch screen 912, other input/control devices 910, and external port 904, which communicate through one or more communication buses or signal lines 907.
It should be understood that the illustrated mobile terminal 900 is merely one example of a mobile terminal and that the mobile terminal 900 may have more or fewer components than shown, 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 the mobile terminal for station arrival alert provided in this embodiment, where the mobile terminal is a mobile phone as an example.
Memory 901, the memory 901 being accessible by the CPU902, the peripheral interface 903, etc., the memory 901 may comprise high speed random access memory, and may also comprise 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 903, the peripheral interface 903 may connect input and output peripherals of the device to the CPU902 and the memory 901.
An I/O subsystem 909, which I/O subsystem 909 may connect input and output peripherals on the device, such as a touch screen 912 and other input/control devices 910, to the peripheral interface 903. The I/O subsystem 909 may include a display controller 9091 and one or more input controllers 9092 for controlling other input/control devices 910. Where one or more input controllers 9092 receive electrical signals from or send electrical signals to other input/control devices 910, the other input/control devices 910 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 9092 may be connected with any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 912, which is an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 9091 in the I/O subsystem 909 receives electrical signals from the touch screen 912 or transmits electrical signals to the touch screen 912. The touch screen 912 detects a contact on the touch screen, and the display controller 9091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 912, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 912 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 905 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, RF circuitry 905 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 905 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. The RF circuitry 905 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 906 is mainly used to receive audio data from the peripheral interface 903, convert the audio data into an electric signal, and transmit the electric signal to the speaker 911.
The speaker 911 is used to convert the voice signal received by the mobile phone from the wireless network through the RF circuit 905 into sound and play the sound to the user.
And the power management chip 908 is used for supplying power and managing power to the hardware connected with the CPU902, the I/O subsystem and the peripheral interfaces.
The arrival reminding device, the storage medium and the mobile terminal provided in the above embodiments can execute the corresponding arrival reminding method provided in the embodiments of the present application, and have corresponding functional modules and beneficial effects for executing the method. Technical details that are not described in detail in the above embodiments may be referred to a station arrival reminding method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application 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 application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. An arrival reminding method is characterized by comprising the following steps:
acquiring a target site;
determining a current first position of the mobile terminal according to a positioning result of a positioning module, acquiring a target distance between the first position and the target station, and closing the positioning module;
acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor;
when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, performing station arrival reminding;
when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold, performing station arrival reminding, including:
when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, starting the positioning module;
determining a second position of the mobile terminal in real time according to a positioning result of the positioning module;
when the distance between the second position and the target station is smaller than a second preset distance threshold, performing station arrival reminding, wherein the second preset distance threshold is smaller than the first preset distance threshold;
when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold, starting the positioning module, including:
when the difference value between the first travel distance and the target distance is smaller than a first preset distance threshold value, acquiring a current third position of the mobile terminal;
acquiring a target historical driving time from the third position to the target station in the target driving route;
and after the target historical driving time period passes, starting the positioning module.
2. The method of claim 1, wherein the motion sensor comprises an acceleration sensor and a direction sensor;
the acquiring, in real time, a first travel distance of the mobile terminal based on the first position by a motion sensor includes:
starting the acceleration sensor and the direction sensor, and acquiring an initial speed corresponding to the first position;
acquiring the displacement variation of the mobile terminal in real time through the acceleration sensor, the direction sensor and the initial speed;
and determining a first travel distance based on the first position according to the displacement variation.
3. The method of claim 1, wherein said obtaining a target distance between said first location and said target site comprises:
acquiring a target driving route;
taking the distance between the first position and the target station based on the target driving route as the target distance between the first position and the target station;
acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor, wherein the method comprises the following steps:
acquiring the driving distance of the mobile terminal in the target driving route in real time through a motion sensor;
the travel distance is taken as a first travel distance based on the first position.
4. The method of claim 1, wherein said obtaining a target distance between said first location and said target site comprises:
acquiring a linear distance between the first position and the target station;
taking the linear distance as a target distance between the first position and the target station;
acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor, wherein the method comprises the following steps:
acquiring a linear driving distance of the mobile terminal based on the first position in real time through a motion sensor;
the straight-line travel distance is taken as a first travel distance based on the first position.
5. The method of claim 1, further comprising:
acquiring road congestion information between the third position and the target station in the target driving route, wherein the road congestion information comprises congestion, smoothness and slow driving;
after the target historical travel time period has elapsed, turning on the positioning module, including:
and when the road congestion information and the target historical driving time meet preset starting conditions, starting the positioning module.
6. The method according to claim 5, wherein the turning on the positioning module when the road congestion information and the target historical driving time meet preset turning-on conditions comprises:
when the road congestion information is smooth, after a first preset time length passes, starting the positioning module, wherein the first preset time length is less than the target historical driving time length;
when the road congestion information is slow in running, after the target historical running time passes, starting the positioning module;
and when the road congestion information is congestion, after a second preset time period, starting the positioning module, wherein the second preset time period is longer than the target historical driving time period.
7. The method of claim 6, wherein obtaining a target historical travel time based on the third location in the target travel route to the target station comprises:
counting or learning historical driving data between the third position and the target station according to a preset period;
determining the historical driving time between the third position and the target station according to a statistical result or a learning result;
and taking the shortest historical time length in the historical driving time lengths as a target historical driving time length.
8. An arrival reminding device, comprising:
the target site acquisition module is used for acquiring a target site;
the target distance acquisition module is used for determining the current first position of the mobile terminal according to the positioning result of the positioning module, acquiring the target distance between the first position and the target station and closing the positioning module;
the first travel distance acquisition module is used for acquiring a first travel distance of the mobile terminal based on the first position in real time through a motion sensor;
the arrival reminding module is used for reminding the arrival when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value;
wherein, the arrival reminding module includes:
the positioning module starting sub-module is used for starting the positioning module when the difference value between the first driving distance and the target distance is smaller than a first preset distance threshold value;
the second position determining submodule is used for determining a second position of the mobile terminal in real time according to a positioning result of the positioning module;
the arrival reminding sub-module is used for carrying out arrival reminding when the distance between the second position and the target station is smaller than a second preset distance threshold value, wherein the second preset distance threshold value is smaller than the first preset distance threshold value;
wherein the positioning module opens the sub-module, including:
a third position obtaining unit, configured to obtain a current third position of the mobile terminal when a difference between the first travel distance and the target distance is smaller than a first preset distance threshold;
a target historical travel time length obtaining unit, configured to obtain a target historical travel time length from the third position to the target station in the target travel route;
and the positioning module starting unit is used for starting the positioning module after the target historical driving time length passes.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the arrival reminding method according to any one of claims 1 to 7.
10. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the arrival alert method according to any one of claims 1 to 7 when executing the computer program.
CN201711325841.XA 2017-12-13 2017-12-13 Arrival reminding method and device, storage medium and mobile terminal Active CN107995367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711325841.XA CN107995367B (en) 2017-12-13 2017-12-13 Arrival reminding method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711325841.XA CN107995367B (en) 2017-12-13 2017-12-13 Arrival reminding method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN107995367A CN107995367A (en) 2018-05-04
CN107995367B true CN107995367B (en) 2020-09-15

Family

ID=62037691

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711325841.XA Active CN107995367B (en) 2017-12-13 2017-12-13 Arrival reminding method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN107995367B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110763249A (en) * 2019-10-25 2020-02-07 北京百度网讯科技有限公司 Method, device and equipment for determining arrival station of automatic driving vehicle and storage medium
CN111405478A (en) * 2020-03-02 2020-07-10 Oppo广东移动通信有限公司 Service providing method, device, terminal and storage medium
CN111429746A (en) * 2020-04-09 2020-07-17 Oppo广东移动通信有限公司 Public transport arrival reminding method and device, storage medium and mobile terminal
CN111882823B (en) * 2020-08-07 2022-04-22 歌尔科技有限公司 Anti-falling control method and device, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012050948A1 (en) * 2010-09-29 2012-04-19 Hewlett-Packard Development Company, L.P. Location tracking for mobile computing device
CN103134508A (en) * 2012-12-25 2013-06-05 上海博泰悦臻电子设备制造有限公司 Navigation method, navigation device and navigation system
CN107197103A (en) * 2017-07-06 2017-09-22 三星电子(中国)研发中心 The power saving progress control method and device of intelligent terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140089975A (en) * 2013-01-08 2014-07-16 삼성전자주식회사 Apparatus and method for saving power battery of mobile telecommunication terminal
CN104111466A (en) * 2013-04-18 2014-10-22 三星电子(中国)研发中心 Location remind method and device
US9934669B2 (en) * 2013-07-17 2018-04-03 Vivint, Inc. Geo-location services
CN104618855A (en) * 2014-12-19 2015-05-13 惠州Tcl移动通信有限公司 Mobile terminal with arrival reminding function and arrival reminding method of mobile terminal
CN105828283B (en) * 2015-11-30 2019-07-26 维沃移动通信有限公司 A kind of destination arriving reminding method and mobile terminal
CN105891858A (en) * 2016-03-30 2016-08-24 乐视控股(北京)有限公司 System and method for decreasing power consumption of equipment provided with GPS software
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012050948A1 (en) * 2010-09-29 2012-04-19 Hewlett-Packard Development Company, L.P. Location tracking for mobile computing device
CN103134508A (en) * 2012-12-25 2013-06-05 上海博泰悦臻电子设备制造有限公司 Navigation method, navigation device and navigation system
CN107197103A (en) * 2017-07-06 2017-09-22 三星电子(中国)研发中心 The power saving progress control method and device of intelligent terminal

Also Published As

Publication number Publication date
CN107995367A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
CN108171965B (en) Arrival reminding method and device, storage medium and mobile terminal
CN107995367B (en) Arrival reminding method and device, storage medium and mobile terminal
US9769634B2 (en) Providing personalized content based on historical interaction with a mobile device
CN107508883B (en) Information pushing method and device, storage medium and mobile terminal
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
CN107688638B (en) Recommendation method and device for application list, storage medium and mobile terminal
EP3392617A1 (en) Navigation device, and navigation method
CN108076507B (en) Positioning mode control method and device, storage medium and mobile terminal
CN103546866A (en) Method and terminal for reminding user of arriving at station
CN106488037A (en) Calendar prompting method and device
CN103282957A (en) Automatically monitoring for voice input based on context
CN108093131A (en) Arrival reminding method, apparatus, storage medium and mobile terminal
CN103604437A (en) Method and apparatus used for displaying road condition information
CN107941234A (en) Recommendation method, apparatus, storage medium and the mobile terminal of traffic path
CN108168569A (en) Air navigation aid, device, storage medium, mobile terminal and onboard system
CN109219953B (en) Alarm clock reminding method, electronic equipment and computer readable storage medium
CN109348467B (en) Emergency call implementation method, electronic device and computer-readable storage medium
CN104318803A (en) Parking information prediction method and apparatus
JP2021106032A (en) Information recommendation method and device
CN108627176B (en) Screen brightness adjusting method and related product
CN108168570A (en) Control method, device, storage medium and the mobile terminal of locating module
CN110692034A (en) Icon display method, equipment and system
CN106157602A (en) The method and apparatus of calling vehicle
CN108076429A (en) Localization method, device, storage medium and mobile terminal
CN103916473A (en) Travel information processing method and relative device

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant