CN106791174B - Alarm clock adjusting method and device and mobile terminal - Google Patents

Alarm clock adjusting method and device and mobile terminal Download PDF

Info

Publication number
CN106791174B
CN106791174B CN201710031595.0A CN201710031595A CN106791174B CN 106791174 B CN106791174 B CN 106791174B CN 201710031595 A CN201710031595 A CN 201710031595A CN 106791174 B CN106791174 B CN 106791174B
Authority
CN
China
Prior art keywords
information
alarm clock
time
mobile terminal
journey
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
CN201710031595.0A
Other languages
Chinese (zh)
Other versions
CN106791174A (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.)
Beijing Anyun Century Technology Co Ltd
Original Assignee
Beijing Anyun Century Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710031595.0A priority Critical patent/CN106791174B/en
Publication of CN106791174A publication Critical patent/CN106791174A/en
Application granted granted Critical
Publication of CN106791174B publication Critical patent/CN106791174B/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/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • 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

Landscapes

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

Abstract

The embodiment of the invention provides an alarm clock adjusting method, an alarm clock adjusting device and a mobile terminal, wherein the method comprises the following steps: acquiring journey information from data which is specified by a mobile terminal and has a journey planning function; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The problem of forgetting to cancel the alarm clock is solved, and the beneficial effects of automatically adjusting the alarm clock and improving the use convenience of the alarm clock are achieved.

Description

Alarm clock adjusting method and device and mobile terminal
Technical Field
The invention relates to the technical field of mobile terminals, in particular to an alarm clock adjusting method and device and a mobile terminal.
Background
With the rapid development of terminal equipment technology, a user can conveniently use the terminal equipment to complete the processes from work, consumption to entertainment in daily life, and all applications developed corresponding to systems applicable to all terminals exist, wherein the alarm clock application is one of indispensable applications of each terminal equipment and is one of applications used by the user most frequently.
In practical application, when a user uses the alarm clock application, the time needs to be set in advance, and the user can also set a time as a daily ringing mode for convenience.
However, if the alarm time of an alarm clock is set to be in a daily ringing mode, the alarm clock reminding needs to be cancelled at the time because of some special schedules, which often brings inconvenience to users.
Disclosure of Invention
In view of the above problems, the present invention is proposed to provide an alarm clock adjusting method, apparatus and mobile terminal that solve the above problems or at least partially solve the above problems.
According to a first aspect of the invention, an alarm clock adjusting method is provided, which includes:
acquiring journey information from data which is specified by a mobile terminal and has a journey planning function; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The alarm clock has the beneficial effects that the alarm clock can be automatically adjusted, and the use convenience of the alarm clock is improved.
With reference to the first aspect, in a first embodiment of the first aspect, the step of obtaining the trip information from the data having the function of performing trip planning specified by the mobile terminal includes: and acquiring the travel information from the short message received by the mobile terminal. The method has the beneficial effect of acquiring the travel information from the short message.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the step of obtaining the travel information from the short message received by the mobile terminal includes: after the monitoring mobile terminal receives the short message, judging whether a sender of the short message belongs to a journey type application platform; if so, acquiring a preset template corresponding to the journey type application platform; and extracting the journey information from the short message according to the preset template. The method has the advantage that the travel information can be extracted through the preset template.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, before the step of obtaining the preset template corresponding to the journey type application platform, the method further includes: and aiming at various journey type application platforms, constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages. The method has the advantage that the preset template can be automatically constructed.
With reference to the first aspect, in a fourth embodiment of the first aspect, the step of obtaining the trip information from the data having the function of performing trip planning specified by the mobile terminal includes: and calling an interface of the travel application to acquire the travel information. The method has the advantage that the travel information can be acquired through the travel application.
With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the step of obtaining the travel information by invoking the interface of the travel application includes: calling an interface of the travel application to acquire travel description information; and carrying out semantic analysis on the travel description information to acquire the travel information. The method has the advantage that the travel information can be acquired through semantic analysis.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information includes: acquiring type information and time information of the travel information; and executing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information. The alarm clock prompting time adjusting method has the beneficial effect that the alarm clock prompting time can be flexibly adjusted according to the type and time of the travel.
With reference to the sixth implementation manner of the first aspect, in a seventh implementation manner of the first aspect, the step of performing a corresponding adjustment operation on an alarm clock set in the alarm clock application according to the type information and the time information includes: when the type information of the travel information is at least one of a flight type, a conference type and a vacation type, judging whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information; if yes, the alarm clock in the time period corresponding to the time information is closed when the real-time of the mobile terminal enters the time period. The alarm clock has the advantage that the alarm clock can be turned off in inappropriate disturbed time.
With reference to the seventh implementation manner of the first aspect, in an eighth implementation manner of the first aspect, after the step of turning off the alarm clock in the time period corresponding to the time information when the real-time of the mobile terminal enters the time period, the method further includes: and when the real-time of the mobile terminal exceeds the end time of the time information, opening the alarm clock. The alarm clock has the advantage that the alarm clock can be automatically turned on at the end of the inappropriate disturbed time.
With reference to the sixth implementation manner of the first aspect, in a ninth implementation manner of the first aspect, the step of performing a corresponding adjustment operation on an alarm clock set in the alarm clock application according to the type information and the time information includes: when the travel information is flight information, acquiring the takeoff time and the takeoff place of the flight information; acquiring current position information of the mobile terminal; calculating a first time required for the current position information to reach the takeoff location; and after the real-time of the mobile terminal enters a time period threshold value away from the takeoff time, setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time consumption. The method has the advantage that the alarm clock can be automatically set according to the flight information and the current position.
With reference to the sixth implementation manner of the first aspect, in a tenth implementation manner of the first aspect, the step of performing a corresponding adjustment operation on an alarm clock set in the alarm clock application according to the type information and the time information includes: when the travel information is meeting information, meeting starting time and meeting participating positions of the meeting information are obtained; acquiring current position information of the mobile terminal; calculating a first time required for the current position information to reach the meeting place; and after the real-time of the mobile terminal enters a time period threshold value from the starting time of the conference, setting an alarm clock in alarm clock application for reminding according to the first time and preset error time. The method has the advantage that the alarm clock can be automatically set according to the meeting information and the current position.
According to a second aspect of the present invention, there is provided an alarm clock adjusting apparatus comprising: the system comprises a journey information acquisition module, a journey planning module and a journey planning module, wherein the journey information acquisition module is used for acquiring journey information from data which is specified by a mobile terminal and has a journey planning function; and the alarm clock adjusting module is used for adjusting an alarm clock set in the alarm clock application in the mobile terminal according to the travel information. The alarm clock has the beneficial effects that the alarm clock can be automatically adjusted, and the use convenience of the alarm clock is improved.
With reference to the second aspect, in a first implementation manner of the second aspect, the trip information acquiring module includes: and the first journey information acquisition submodule is used for acquiring the journey information from the short message received by the mobile terminal. The method has the beneficial effect of acquiring the travel information from the short message.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the first trip information obtaining sub-module includes: the system comprises a sender judging unit, a first processing unit and a second processing unit, wherein the sender judging unit is used for judging whether a sender of the short message belongs to a one-trip type application platform or not after the monitoring mobile terminal receives the short message; the preset template acquisition unit is used for acquiring a preset template corresponding to the journey type application platform if the preset template acquisition unit is used for acquiring the preset template corresponding to the journey type application platform; and the first travel information acquisition unit is used for extracting the travel information from the short message according to the preset template. The method has the advantage that the travel information can be extracted through the preset template.
With reference to the second embodiment of the second aspect, in a third embodiment of the second aspect, before the preset template obtaining unit, the present invention further includes: and the preset template construction unit is used for constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages aiming at various journey type application platforms. The method has the advantage that the preset template can be automatically constructed.
With reference to the second aspect, in a fourth implementation manner of the second aspect, the trip information acquiring module includes: and the second stroke information acquisition submodule is used for calling an interface of the stroke application to acquire the stroke information. The method has the advantage that the travel information can be acquired through the travel application.
With reference to the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the second trip information obtaining sub-module includes: the system comprises a journey description information acquisition unit, a journey management unit and a journey management unit, wherein the journey description information acquisition unit is used for calling an interface of a journey application and acquiring journey description information; and the second travel information acquisition unit is used for performing semantic analysis on the travel description information to acquire the travel information. The method has the advantage that the travel information can be acquired through semantic analysis.
With reference to the second aspect, in a sixth implementation manner of the second aspect, the alarm clock adjusting module includes: the related information acquisition submodule is used for acquiring the type information and the time information of the travel information; and the alarm clock adjusting submodule is used for executing corresponding adjusting operation on the alarm clock set in the alarm clock application according to the type information and the time information. The alarm clock prompting time adjusting method has the beneficial effect that the alarm clock prompting time can be flexibly adjusted according to the type and time of the travel.
With reference to the sixth implementation manner of the second aspect, in a seventh implementation manner of the second aspect, the alarm clock adjustment sub-module includes: the alarm clock existence judging unit is used for judging whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information when the type information of the travel information is at least one of a flight type, a conference type and a vacation type; and if the time information of the alarm clock in the time period is within the time period, the alarm clock closing unit is used for closing the alarm clock in the time period corresponding to the time information when the real-time of the mobile terminal enters the time period. The alarm clock has the advantage that the alarm clock can be turned off in inappropriate disturbed time.
With reference to the seventh implementation manner of the second aspect, in an eighth implementation manner of the second aspect, after the alarm clock turning-off unit, the method further includes: and the alarm clock opening unit is used for executing opening operation on the alarm clock when the real-time of the mobile terminal exceeds the end time of the time information. The alarm clock has the advantage that the alarm clock can be automatically turned on at the end of the inappropriate disturbed time.
With reference to the sixth implementation manner of the second aspect, in a ninth implementation manner of the second aspect, the alarm clock adjustment sub-module includes: the flight information acquisition unit is used for acquiring the takeoff time and the takeoff place of the flight information when the travel information is the flight information; the first position information acquisition unit is used for acquiring the current position information of the mobile terminal; a first time calculation unit for calculating a first time required for the current position information to reach the takeoff location; and the first alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time after the real-time of the mobile terminal is within a time period threshold from the takeoff time. The method has the advantage that the alarm clock can be automatically set according to the flight information and the current position.
With reference to the sixth implementation manner of the second aspect, in a tenth implementation manner of the second aspect, the alarm clock adjustment sub-module includes: a conference information obtaining unit, configured to obtain conference start time and conference participating locations of the conference information when the travel information is conference information; a second position information obtaining unit, configured to obtain current position information of the mobile terminal; a second time calculation unit for calculating a first time required for the current position information to reach the meeting place; and the second alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and preset error time after the real-time of the mobile terminal enters a time period threshold value away from the starting time of the conference. The method has the advantage that the alarm clock can be automatically set according to the meeting information and the current position.
According to a third aspect of the present invention, there is also disclosed a mobile terminal, comprising a processor and a memory,
the memory is used for storing a program for executing the alarm clock adjusting method;
the processor is configured to execute programs stored in the memory.
According to a fourth aspect of the present invention, there is also disclosed a computer storage medium for storing computer software instructions for the above alarm clock adjusting apparatus, comprising instructions for executing a program designed for the alarm clock adjusting apparatus according to the above aspect.
According to the alarm clock adjusting method, the alarm clock adjusting device and the mobile terminal, the journey information is obtained from the data which is specified by the mobile terminal and has the journey planning function; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The problem of forgetting to cancel the alarm clock is solved, and the beneficial effects of automatically adjusting the alarm clock and improving the use convenience of the alarm clock are achieved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating the steps of one embodiment of an alarm clock adjustment method according to the present invention;
FIG. 2 is a flow chart illustrating steps of another embodiment of a method for alarm clock adjustment according to the present invention;
FIG. 3 is a block diagram of an embodiment of an alarm clock adjustment apparatus according to the present invention;
FIG. 4 is a block diagram of another embodiment of an alarm clock adjusting apparatus according to the present invention;
fig. 5 is a block diagram illustrating a partial structure of a cellular phone related to a mobile terminal provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an alarm clock adjusting method according to the present invention is shown, which may specifically include the following steps:
step 101, obtaining the journey information from the data which is designated by the mobile terminal and has the function of carrying out journey planning.
The data having the travel planning function is user data of a system application and other download applications. Such as short message data, login data for applications, transaction record data, etc. In the embodiment of the present invention, data on a schedule among data having a function of performing a trip planning is mainly focused.
The itinerary information is the user's daily itinerary arrangement. The method mainly comprises the following steps: event, start time, end time, location information, etc. For example, a user may take a meeting, sit on a car or flight at a time of a day of a month of a year, etc.
In practical applications, after a user purchases an air ticket on the network, a short message about the departure time, the place and the like of the flight is received, so that the forming information can be acquired from the short message. For another example, when the user sets the meeting reminder information in the memo, the meeting reminder information includes: meeting start time, location, etc., so that the travel information can be extracted from the memo.
Specifically, the travel information may be acquired from all applications of the mobile terminal, and may also be acquired from a specific application. The embodiments of the present invention do not limit them.
And step 102, adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information.
In practical application, the alarm clock preset by the user often rings when the alarm clock is not suitable, so that the normal life and work of the user are influenced. For example, when a user is in a meeting or is doing something of great importance and cannot be disturbed, if the alarm clock rings at that time, there is often a certain impact or loss on the user's work. For another example, the user sets an alarm clock that gets up to work at seven am every week to friday, and if the user does not need to work in the time period due to holidays or other reasons, the prompting ring of the alarm clock disturbs the normal sleep of the user.
In the embodiment of the invention, the alarm clock can be turned off or the prompting time of the alarm clock can be turned off according to the travel information. For example, the alarm clock can be turned off according to the meeting time, or the prompting time of the alarm clock can be adjusted according to the meeting time, and the like.
In the embodiment of the invention, the journey information is obtained from the data which is specified by the mobile terminal and has the function of carrying out journey planning; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The problem of forgetting to cancel the alarm clock is solved, and the beneficial effects of automatically adjusting the alarm clock and improving the use convenience of the alarm clock are achieved.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of an alarm clock adjusting method according to the present invention is shown, which specifically includes the following steps:
step 201, obtaining the travel information from the short message received by the mobile terminal.
In practical application, the short message often includes flight information of the air ticket, meeting prompt information and the like, so that the travel information can be acquired from the short message content of the mobile terminal.
For example, when the user receives a message of flight prompt information: honored AA, your good, your flight AJ214 takes off 2016.12.0208: 00, projected to reach the destination in 2 hours. Therefore, the travel information of the user on the day can be acquired from the short message content.
Optionally, in another embodiment of the present invention, step 201 includes sub-steps 20101 to 20104:
and a substep 20101, after the monitoring mobile terminal receives the short message, judging whether a sender of the short message belongs to a journey type application platform.
In practical application, each platform for sending the short message adopts a fixed template, so that the stroke data of each single stroke is filled into the template. For example, a short message template for a platform is: honored XX, good you, flight XXXX take off time you take is XXXX.XX.XX XX: XX, XX hour is expected to reach the destination. When the user passes the preset air ticket, the information of user name, flight number, takeoff time, flight time and the like is filled into the template.
In the embodiment of the invention, the travel information can be obtained from the corresponding position in the template according to the template format used by the short message sender.
And step 20102, if yes, constructing a corresponding preset template according to the format of the corresponding journey type application platform to the journey short message aiming at various journey type application platforms.
When a travel short message sending party belongs to a travel type application platform, if a template for sending a short message by the sending party is provided on the platform, acquiring the template from the platform; otherwise, a template is constructed according to the format of the travel short message and is stored in a designated cache of the mobile terminal.
And a substep 20103, if yes, acquiring a preset template corresponding to the journey type application platform.
It is understood that the default template is the template acquired on the platform and then the constructed default template.
When the template is provided on the platform, downloading the template from the platform through a wireless local area network or a mobile data network; otherwise, directly obtaining the template from the specified cache for storing the constructed template.
And a substep 20104 of extracting the travel information from the short message according to the preset template.
Specifically, the corresponding attribute may be obtained according to a starting position of the attribute in the template. For example, the preset templates are: "honored XXX, your good, flight you take XXXX departure time is XXXXX. XX XX: XX, XX hour is expected to reach destination". Flight numbers can be obtained from character positions 17 to 20, takeoff times from character positions 26 to 40, and flight times from character positions 44 to 45.
Of course, the trip information may also be acquired in other manners. The embodiments of the present invention do not limit them.
Step 202, calling an interface of the journey application to acquire the journey information.
In practical applications, the development of networks has facilitated various travel applications. For example: jun journey, journey ox tourism net, city tourism net etc.. In addition, there are other applications such as pay-Bao that have built-in ticketing functionality. These applications often include travel information for users, including: travel time, location, etc.
The embodiment of the invention can call the interfaces of the journey applications so as to acquire the journey information.
Optionally, in another embodiment of the present invention, the sub-step 202 includes sub-steps 20201 to 20202:
substep 20201, call the interface of the journey application, obtain the journey description information.
The trip description information includes useful time and place information, and also includes some other information which is not concerned by the embodiment of the invention.
Substep 20202, performing semantic analysis on the trip description information to obtain trip information.
The semantic analysis judges according to the logical relation of the language context to obtain information conforming to the logic. In the embodiment of the present invention, the extracting, by semantic analysis, the trip information from the trip description information includes: time, location, etc.
The step 201 and the step 202 are two ways of obtaining the travel information, and are independent of each other.
Step 203, obtaining the type information and the time information of the travel information.
Wherein the type information indicates a type of the user itinerary, and may include: flight type, meeting type, vacation type, etc. It is understood that the type information may also be divided according to the actual application scenario.
The time information mainly includes: start time, end time, duration, etc.
And 204, executing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information.
Wherein the adjusting operation comprises: turn off the alarm clock, delay the alarm clock prompting time, etc.
Optionally, in another embodiment of the present invention, step 204 comprises sub-steps 20401 to 20403:
and a substep 20401, when the type information of the travel information is at least one of a flight type, a meeting type and a vacation type, determining whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information.
Specifically, firstly, acquiring a prompt time corresponding to an alarm clock set in an alarm clock application; then, judging whether the prompting time of the alarm clock is within the travel duration time or not; if yes, the alarm clock is turned off; otherwise, no processing is done.
In practical application, the alarm clock prompting time can be modified to be the time after the travel is finished according to the duration of the travel, so that the alarm clock can prompt again when the travel is finished.
And a substep 20402, if yes, closing the alarm clock in the time period corresponding to the time information when the real-time of the mobile terminal enters the time period.
In the embodiment of the invention, the alarm clock with the prompting time within the travel duration time is turned off at the beginning of the travel.
It can be understood that the priority can be set for each alarm clock, and the alarm clock with the first priority is not turned off; and turning off the alarm clock for the common alarm clock. Therefore, the alarm clock for prompting the important events can be always prompted by setting the first priority and not being turned off under any condition.
Substep 20403, when the real-time of the mobile terminal exceeds the end time of the time information, performing an opening operation on the alarm clock.
In practical application, if the alarm clock is the alarm clock which is prompted according to day or week cycle, the alarm clock can be turned on again when the journey is finished, and therefore the alarm clock can be guaranteed to work normally at the subsequent time.
Optionally, in another embodiment of the present invention, step 204 comprises sub-steps 20404 to 20407:
substep 20404, when the travel information is flight information, acquiring the takeoff time and the takeoff place of the flight information.
In the embodiment of the invention, the time required by the departure place can be determined according to the distance between the current position and the departure place, and then the alarm clock is set to prompt the user to go to the departure place according to the time and the departure time.
And a substep 20405 of obtaining the current position information of the mobile terminal.
In practical application, a positioning system on the mobile terminal can be called to acquire the current position information. The location information includes GPS (Global Positioning System), base station location, and location data corresponding to the wlan.
Wherein the location data is typically expressed in terms of latitude and longitude.
Substep 20406, calculating a first time required for the current position information to reach the takeoff location.
Specifically, a navigation tool interface installed in the mobile terminal may be called to estimate the time required for the current position information to reach the takeoff location.
In practical application, a longest time and a shortest time are estimated, an alarm clock is set to start prompting according to the longest time, and then a user is prompted again according to the shortest time. The longest time and the shortest time are obtained by considering the type of the transportation means, the length of the road section, the road condition information and other comprehensive factors.
And a substep 20407 of setting an alarm clock in alarm clock application for reminding according to the first time and preset boarding time after the real-time of the mobile terminal enters a time period threshold value away from the takeoff time.
And the time period threshold value of the takeoff time is the difference value between the set alarm clock time and the takeoff time and is before the estimated alarm clock prompt time. It is to be understood that the threshold may be set according to an actual application scenario, and the embodiment of the present invention does not limit the threshold.
Specifically, the first time is subtracted from the takeoff time, and the boarding time is used as the alarm clock prompting time.
It is understood that the time period threshold value of the takeoff time is equal to or greater than the sum of the first time and the boarding time.
Optionally, in another embodiment of the present invention, step 204 comprises sub-steps 20408 to 20411:
and a substep 20408 of acquiring the meeting start time and the meeting place of the meeting information when the travel information is the meeting information.
In the embodiment of the invention, the time required by going to the meeting place can be determined according to the distance between the current position and the meeting place, and then the alarm clock is set to prompt the user to go to the meeting place according to the time and the meeting starting time.
And a substep 20409 of obtaining the current position information of the mobile terminal.
This step is described in detail with reference to substep 20405, and is not further described herein.
Substep 20410, calculating a first time required for the current position information to reach the meeting location.
This step is described in detail with reference to substep 20406 and will not be repeated here.
And a substep 20411 of setting an alarm clock in alarm clock application for reminding according to the first time and preset error time after the real-time of the mobile terminal enters a time period threshold from the starting time of the conference.
And the time period threshold value from the start time of the conference is the difference value between the time for setting the alarm clock and the start time of the conference before the estimated alarm clock prompt time. It is to be understood that the threshold may be set according to an actual application scenario, and the embodiment of the present invention does not limit the threshold.
Specifically, the meeting start time minus the first time and the preset error time is used as the alarm clock prompt time.
It is understood that the time period threshold from the conference start time is greater than or equal to the sum of the first time and the preset error time.
In the embodiment of the invention, the journey information is obtained from the data which is specified by the mobile terminal and has the function of carrying out journey planning; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The problem of forgetting to cancel the alarm clock is solved, and the beneficial effects of automatically adjusting the alarm clock and improving the use convenience of the alarm clock are achieved. In addition, the travel information can be acquired through short messages or applications, so that the alarm clock can be flexibly closed, started and set.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of an embodiment of an alarm clock adjusting apparatus according to the present invention is shown, which may specifically include the following modules:
a journey information acquisition module 301, configured to acquire journey information from data that is specified by the mobile terminal and has a journey planning function.
An alarm clock adjusting module 302, configured to adjust an alarm clock set in an alarm clock application in the mobile terminal according to the travel information.
In the embodiment of the invention, the journey information is obtained from the data which is specified by the mobile terminal and has the function of carrying out journey planning; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The problem of forgetting to cancel the alarm clock is solved, and the beneficial effects of automatically adjusting the alarm clock and improving the use convenience of the alarm clock are achieved.
Referring to fig. 4, a block diagram of another embodiment of an alarm clock adjusting apparatus according to the present invention is shown, and specifically includes the following modules:
a journey information acquiring module 401, configured to acquire journey information from data having a journey planning function specified by the mobile terminal. The method comprises the following steps:
the first trip information obtaining sub-module 4011 is configured to obtain trip information from a short message received by the mobile terminal.
The second trip information obtaining sub-module 4012 is configured to call an interface of a trip application, and obtain the trip information.
The first travel information obtaining submodule 4011 and the second travel information obtaining submodule 4012 are two ways of obtaining travel information, and are independent of each other.
An alarm clock adjusting module 402, configured to adjust an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The method comprises the following steps:
the related information obtaining sub-module 4021 is configured to obtain type information and time information of the trip information.
The alarm clock adjusting sub-module 4022 is configured to perform a corresponding adjusting operation on an alarm clock set in the alarm clock application according to the type information and the time information.
Optionally, in another embodiment of the present invention, the first trip information obtaining sub-module 4011 includes:
and the sender judging unit is used for judging whether the sender of the short message belongs to a journey type application platform or not after the monitoring mobile terminal receives the short message.
And the preset template construction unit is used for constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages aiming at various journey type application platforms.
And the preset template acquisition unit is used for acquiring a preset template corresponding to the journey type application platform if the preset template is acquired.
And the first travel information acquisition unit is used for extracting the travel information from the short message according to the preset template.
Optionally, in another embodiment of the present invention, the second trip information obtaining sub-module 4012 includes:
and the travel description information acquisition unit is used for calling an interface of the travel application and acquiring the travel description information.
And the second travel information acquisition unit is used for performing semantic analysis on the travel description information to acquire the travel information.
Optionally, in another embodiment of the present invention, the alarm clock adjusting sub-module 4022 includes:
and the alarm clock existence judging unit is used for judging whether the alarm clock set in the alarm clock application has the alarm clock in the time period corresponding to the time information when the type information of the travel information is at least one of a flight type, a conference type and a vacation type.
And if the time information of the alarm clock in the time period is within the time period, the alarm clock closing unit is used for closing the alarm clock in the time period corresponding to the time information when the real-time of the mobile terminal enters the time period.
And the alarm clock opening unit is used for executing opening operation on the alarm clock when the real-time of the mobile terminal exceeds the end time of the time information.
Optionally, in another embodiment of the present invention, the alarm clock adjusting sub-module 4022 includes:
and the flight information acquisition unit is used for acquiring the takeoff time and the takeoff place of the flight information when the travel information is the flight information.
And the first position information acquisition unit is used for acquiring the current position information of the mobile terminal.
A first time calculation unit for calculating a first time required for the current position information to reach the takeoff location.
And the first alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time after the real-time of the mobile terminal is within a time period threshold from the takeoff time.
Optionally, in another embodiment of the present invention, the alarm clock adjusting sub-module 4022 includes:
and the conference information acquisition unit is used for acquiring the conference starting time and the conference participating position of the conference information when the travel information is the conference information.
And the second position information acquisition unit is used for acquiring the current position information of the mobile terminal.
A second time calculation unit for calculating a first time required for the current position information to reach the meeting location.
And the second alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and preset error time after the real-time of the mobile terminal enters a time period threshold value away from the starting time of the conference.
In the embodiment of the invention, the journey information is obtained from the data which is specified by the mobile terminal and has the function of carrying out journey planning; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The problem of forgetting to cancel the alarm clock is solved, and the beneficial effects of automatically adjusting the alarm clock and improving the use convenience of the alarm clock are achieved. In addition, the travel information can be acquired through short messages or applications, so that the alarm clock can be flexibly closed, started and set.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 5 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion in the embodiment of the present invention for details that are not disclosed. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 510, memory 520, input unit 530, display unit 540, sensor 550, audio circuit 560, wireless fidelity (WiFi) module 570, processor 580, and power supply 590. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuit 510 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 510 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user on or near the touch panel 531 (for example, operations of the user on or near the touch panel 531 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 540 may include a display panel 541, and optionally, the display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 5 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The handset also includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 580 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 580 included in the terminal further has the following functions: acquiring journey information from data which is specified by a mobile terminal and has a journey planning function; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information.
Optionally, the processor 580 also has the following functions: and acquiring the travel information from the short message received by the mobile terminal.
Optionally, the processor 580 also has the following functions: after the monitoring mobile terminal receives the short message, judging whether a sender of the short message belongs to a journey type application platform; if so, acquiring a preset template corresponding to the journey type application platform; and extracting the journey information from the short message according to the preset template.
Optionally, the processor 580 also has the following functions: and aiming at various journey type application platforms, constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages.
Optionally, the processor 580 also has the following functions: and calling an interface of the travel application to acquire the travel information.
Optionally, the processor 580 also has the following functions: calling an interface of the travel application to acquire travel description information; and carrying out semantic analysis on the travel description information to acquire the travel information.
Optionally, the processor 580 also has the following functions: acquiring type information and time information of the travel information; and executing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information.
Optionally, the processor 580 also has the following functions: when the type information of the travel information is at least one of a flight type, a conference type and a vacation type, judging whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information; if yes, the alarm clock in the time period corresponding to the time information is closed when the real-time of the mobile terminal enters the time period.
Optionally, the processor 580 also has the following functions: and when the real-time of the mobile terminal exceeds the end time of the time information, opening the alarm clock.
Optionally, the processor 580 also has the following functions: when the travel information is flight information, acquiring the takeoff time and the takeoff place of the flight information; acquiring current position information of the mobile terminal; calculating a first time required for the current position information to reach the takeoff location; and after the real-time of the mobile terminal enters a time period threshold value away from the takeoff time, setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time consumption.
Optionally, the processor 580 also has the following functions: when the travel information is meeting information, meeting starting time and meeting participating positions of the meeting information are obtained; acquiring current position information of the mobile terminal; calculating a first time required for the current position information to reach the meeting place; and after the real-time of the mobile terminal enters a time period threshold value from the starting time of the conference, setting an alarm clock in alarm clock application for reminding according to the first time and preset error time.
The above mode can be realized by obtaining the journey information from the data which is designated by the mobile terminal and has the function of carrying out journey planning; and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. The problem of forgetting to cancel the alarm clock is solved, and the beneficial effects of automatically adjusting the alarm clock and improving the use convenience of the alarm clock are achieved. In addition, the travel information can be acquired through short messages or applications, so that the alarm clock can be flexibly closed, started and set.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, or the like.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
In the above, the alarm clock adjusting method, the alarm clock adjusting device and the mobile terminal provided by the present invention are described in detail, and for a person skilled in the art, according to the idea of the embodiment of the present invention, there may be changes in the specific implementation and the application scope, and in summary, the content of the present description should not be construed as a limitation to the present invention.
The invention discloses an A1 alarm clock adjusting method, which comprises the following steps:
acquiring journey information from data which is specified by a mobile terminal and has a journey planning function;
and adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information. A2, the method according to a1, wherein the step of obtaining the trip information from the data with the function of trip planning specified by the mobile terminal comprises:
and acquiring the travel information from the short message received by the mobile terminal.
A3, the method as in a2, wherein the step of obtaining the travel information from the short message received by the mobile terminal includes:
after the monitoring mobile terminal receives the short message, judging whether a sender of the short message belongs to a journey type application platform;
if so, acquiring a preset template corresponding to the journey type application platform;
and extracting the journey information from the short message according to the preset template.
A4, the method as in A3, further comprising, before the step of obtaining the preset template corresponding to the journey type application platform:
and aiming at various journey type application platforms, constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages.
A5, the method according to a1, wherein the step of obtaining the trip information from the data with the function of trip planning specified by the mobile terminal comprises:
and calling an interface of the travel application to acquire the travel information.
A6, the method as in a5, wherein the step of calling the interface of the travel application and obtaining the travel information comprises:
calling an interface of the travel application to acquire travel description information;
and carrying out semantic analysis on the travel description information to acquire the travel information.
A7, the method according to A1, wherein the step of adjusting the alarm clock set in the alarm clock application in the mobile terminal according to the travel information comprises:
acquiring type information and time information of the travel information;
and executing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information.
A8, the method as in A7, wherein the step of performing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information comprises:
when the type information of the travel information is at least one of a flight type, a conference type and a vacation type, judging whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information;
if yes, the alarm clock in the time period corresponding to the time information is closed when the real-time of the mobile terminal enters the time period.
A9, the method as in A8, further comprising, after the step of turning off the alarm clock in the time period corresponding to the time information when the real-time of the mobile terminal enters the time period:
and when the real-time of the mobile terminal exceeds the end time of the time information, opening the alarm clock.
A10, the method as in A7, wherein the step of performing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information comprises:
when the travel information is flight information, acquiring the takeoff time and the takeoff place of the flight information;
acquiring current position information of the mobile terminal;
calculating a first time required for the current position information to reach the takeoff location;
and after the real-time of the mobile terminal enters a time period threshold value away from the takeoff time, setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time consumption.
A11, the method as in A7, wherein the step of performing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information comprises:
when the travel information is meeting information, meeting starting time and meeting participating positions of the meeting information are obtained;
acquiring current position information of the mobile terminal;
calculating a first time required for the current position information to reach the meeting place;
and after the real-time of the mobile terminal enters a time period threshold value from the starting time of the conference, setting an alarm clock in alarm clock application for reminding according to the first time and preset error time.
The invention also discloses B1, an alarm clock adjusting device, comprising:
the system comprises a journey information acquisition module, a journey planning module and a journey planning module, wherein the journey information acquisition module is used for acquiring journey information from data which is specified by a mobile terminal and has a journey planning function;
and the alarm clock adjusting module is used for adjusting an alarm clock set in the alarm clock application in the mobile terminal according to the travel information.
B2, the device as B1, the trip information acquisition module comprising:
and the first journey information acquisition submodule is used for acquiring the journey information from the short message received by the mobile terminal.
B3, the apparatus according to B2, wherein the first trip information obtaining sub-module comprises:
the system comprises a sender judging unit, a first processing unit and a second processing unit, wherein the sender judging unit is used for judging whether a sender of the short message belongs to a one-trip type application platform or not after the monitoring mobile terminal receives the short message;
the preset template acquisition unit is used for acquiring a preset template corresponding to the journey type application platform if the preset template acquisition unit is used for acquiring the preset template corresponding to the journey type application platform;
and the first travel information acquisition unit is used for extracting the travel information from the short message according to the preset template.
B4, the apparatus according to B3, further comprising, before the preset template obtaining unit:
and the preset template construction unit is used for constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages aiming at various journey type application platforms.
B5, the device as B1, the trip information acquisition module comprising:
and the second stroke information acquisition submodule is used for calling an interface of the stroke application to acquire the stroke information.
B6, the apparatus according to B5, the second trip information obtaining sub-module comprising:
the system comprises a journey description information acquisition unit, a journey management unit and a journey management unit, wherein the journey description information acquisition unit is used for calling an interface of a journey application and acquiring journey description information;
and the second travel information acquisition unit is used for performing semantic analysis on the travel description information to acquire the travel information.
B7, the apparatus as in B1, the alarm clock adjusting module comprising:
the related information acquisition submodule is used for acquiring the type information and the time information of the travel information;
and the alarm clock adjusting submodule is used for executing corresponding adjusting operation on the alarm clock set in the alarm clock application according to the type information and the time information.
B8, the apparatus as in B7, the alarm clock adjusting sub-module comprising:
the alarm clock existence judging unit is used for judging whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information when the type information of the travel information is at least one of a flight type, a conference type and a vacation type;
and if the time information of the alarm clock in the time period is within the time period, the alarm clock closing unit is used for closing the alarm clock in the time period corresponding to the time information when the real-time of the mobile terminal enters the time period.
B9, the device as in B8, after the alarm clock closing unit, further comprising:
and the alarm clock opening unit is used for executing opening operation on the alarm clock when the real-time of the mobile terminal exceeds the end time of the time information.
B10, the apparatus as in B7, the alarm clock adjusting sub-module comprising:
the flight information acquisition unit is used for acquiring the takeoff time and the takeoff place of the flight information when the travel information is the flight information;
the first position information acquisition unit is used for acquiring the current position information of the mobile terminal;
a first time calculation unit for calculating a first time required for the current position information to reach the takeoff location;
and the first alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time after the real-time of the mobile terminal is within a time period threshold from the takeoff time.
B11, the apparatus as in B7, the alarm clock adjusting sub-module comprising:
a conference information obtaining unit, configured to obtain conference start time and conference participating locations of the conference information when the travel information is conference information;
a second position information obtaining unit, configured to obtain current position information of the mobile terminal;
a second time calculation unit for calculating a first time required for the current position information to reach the meeting place;
and the second alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and preset error time after the real-time of the mobile terminal enters a time period threshold value away from the starting time of the conference.
The invention also discloses C1, a mobile terminal, comprising a processor and a memory,
the memory is used for storing a program for executing the alarm clock adjusting method of any one of A1-A11;
the processor is configured to execute programs stored in the memory.

Claims (19)

1. An alarm clock adjusting method is characterized by comprising the following steps:
acquiring journey information from data which is specified by a mobile terminal and has a journey planning function;
adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information;
the step of obtaining the trip information from the data which is specified by the mobile terminal and has the function of performing the trip planning comprises the following steps:
acquiring travel information from a short message received by a mobile terminal;
the step of obtaining the travel information from the short message received by the mobile terminal comprises the following steps:
after the monitoring mobile terminal receives the short message, judging whether a sender of the short message belongs to a journey type application platform;
if so, acquiring a preset template corresponding to the journey type application platform;
extracting the travel information from the short message according to the preset template;
the extracting of the travel information from the short message according to the preset template comprises:
and acquiring the travel information according to the initial position of the travel information in the preset template.
2. The method according to claim 1, wherein before the step of obtaining the preset template corresponding to the journey type application platform, further comprising:
and aiming at various journey type application platforms, constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages.
3. The method according to claim 1, wherein the step of obtaining the trip information from the data with the function of performing trip planning specified by the mobile terminal comprises:
and calling an interface of the travel application to acquire the travel information.
4. The method of claim 3, wherein the step of invoking the interface of the travel application to obtain the travel information comprises:
calling an interface of the travel application to acquire travel description information;
and carrying out semantic analysis on the travel description information to acquire the travel information.
5. The method according to claim 1, wherein the step of adjusting the alarm clock set in the alarm clock application in the mobile terminal according to the travel information comprises:
acquiring type information and time information of the travel information;
and executing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information.
6. The method according to claim 5, wherein the step of performing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information comprises:
when the type information of the travel information is at least one of a flight type, a conference type and a vacation type, judging whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information;
if yes, the alarm clock in the time period corresponding to the time information is closed when the real-time of the mobile terminal enters the time period.
7. The method according to claim 6, wherein after the step of turning off the alarm clock within the time period corresponding to the time information when the real-time of the mobile terminal enters the time period, the method further comprises:
and when the real-time of the mobile terminal exceeds the end time of the time information, opening the alarm clock.
8. The method according to claim 5, wherein the step of performing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information comprises:
when the travel information is flight information, acquiring the takeoff time and the takeoff place of the flight information;
acquiring current position information of the mobile terminal;
calculating a first time required for the current position information to reach the takeoff location;
and after the real-time of the mobile terminal enters a time period threshold value away from the takeoff time, setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time consumption.
9. The method according to claim 5, wherein the step of performing corresponding adjustment operation on the alarm clock set in the alarm clock application according to the type information and the time information comprises:
when the travel information is meeting information, meeting starting time and meeting participating positions of the meeting information are obtained;
acquiring current position information of the mobile terminal;
calculating a first time required for the current position information to reach the meeting place;
and after the real-time of the mobile terminal enters a time period threshold value from the starting time of the conference, setting an alarm clock in alarm clock application for reminding according to the first time and preset error time.
10. An alarm clock adjusting device, comprising:
the system comprises a journey information acquisition module, a journey planning module and a journey planning module, wherein the journey information acquisition module is used for acquiring journey information from data which is specified by a mobile terminal and has a journey planning function;
the alarm clock adjusting module is used for adjusting an alarm clock set in an alarm clock application in the mobile terminal according to the travel information;
the trip information acquisition module includes:
the first journey information acquisition submodule is used for acquiring journey information from a short message received by the mobile terminal;
the first trip information obtaining sub-module includes:
the system comprises a sender judging unit, a first processing unit and a second processing unit, wherein the sender judging unit is used for judging whether a sender of the short message belongs to a one-trip type application platform or not after the monitoring mobile terminal receives the short message;
the preset template acquisition unit is used for acquiring a preset template corresponding to the journey type application platform if the preset template acquisition unit is used for acquiring the preset template corresponding to the journey type application platform;
the first journey information acquisition unit is used for extracting journey information from the short message according to the preset template;
the first travel information obtaining unit is specifically configured to obtain travel information according to an initial position of the travel information in the preset template.
11. The apparatus according to claim 10, wherein before the preset template obtaining unit, further comprising:
and the preset template construction unit is used for constructing corresponding preset templates according to the formats of the corresponding journey type application platforms to the journey short messages aiming at various journey type application platforms.
12. The apparatus of claim 10, wherein the trip information obtaining module comprises:
and the second stroke information acquisition submodule is used for calling an interface of the stroke application to acquire the stroke information.
13. The apparatus of claim 12, wherein the second trip information acquisition sub-module comprises:
the system comprises a journey description information acquisition unit, a journey management unit and a journey management unit, wherein the journey description information acquisition unit is used for calling an interface of a journey application and acquiring journey description information;
and the second travel information acquisition unit is used for performing semantic analysis on the travel description information to acquire the travel information.
14. The apparatus of claim 10, wherein the alarm clock adjustment module comprises:
the related information acquisition submodule is used for acquiring the type information and the time information of the travel information;
and the alarm clock adjusting submodule is used for executing corresponding adjusting operation on the alarm clock set in the alarm clock application according to the type information and the time information.
15. The apparatus of claim 14, wherein the alarm clock adjustment submodule comprises:
the alarm clock existence judging unit is used for judging whether an alarm clock set in the alarm clock application has an alarm clock in a time period corresponding to the time information when the type information of the travel information is at least one of a flight type, a conference type and a vacation type;
and if the time information of the alarm clock in the time period is within the time period, the alarm clock closing unit is used for closing the alarm clock in the time period corresponding to the time information when the real-time of the mobile terminal enters the time period.
16. The apparatus of claim 15, further comprising, after the alarm clock turning off unit:
and the alarm clock opening unit is used for executing opening operation on the alarm clock when the real-time of the mobile terminal exceeds the end time of the time information.
17. The apparatus of claim 14, wherein the alarm clock adjustment submodule comprises:
the flight information acquisition unit is used for acquiring the takeoff time and the takeoff place of the flight information when the travel information is the flight information;
the first position information acquisition unit is used for acquiring the current position information of the mobile terminal;
a first time calculation unit for calculating a first time required for the current position information to reach the takeoff location;
and the first alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and the preset boarding time after the real-time of the mobile terminal is within a time period threshold from the takeoff time.
18. The apparatus of claim 14, wherein the alarm clock adjustment submodule comprises:
a conference information obtaining unit, configured to obtain conference start time and conference participating locations of the conference information when the travel information is conference information;
a second position information obtaining unit, configured to obtain current position information of the mobile terminal;
a second time calculation unit for calculating a first time required for the current position information to reach the meeting place;
and the second alarm clock setting unit is used for setting an alarm clock in alarm clock application for reminding according to the first time and preset error time after the real-time of the mobile terminal enters a time period threshold value away from the starting time of the conference.
19. A mobile terminal comprising a processor and a memory,
the memory is used for storing a program for executing the alarm clock adjusting method of any one of claims 1 to 9;
the processor is configured to execute programs stored in the memory.
CN201710031595.0A 2017-01-17 2017-01-17 Alarm clock adjusting method and device and mobile terminal Active CN106791174B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710031595.0A CN106791174B (en) 2017-01-17 2017-01-17 Alarm clock adjusting method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710031595.0A CN106791174B (en) 2017-01-17 2017-01-17 Alarm clock adjusting method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN106791174A CN106791174A (en) 2017-05-31
CN106791174B true CN106791174B (en) 2020-06-23

Family

ID=58946018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710031595.0A Active CN106791174B (en) 2017-01-17 2017-01-17 Alarm clock adjusting method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN106791174B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391010A (en) * 2018-02-28 2018-08-10 广东欧珀移动通信有限公司 Alarm clock control method and related product
CN108848310B (en) * 2018-07-23 2020-10-02 Oppo广东移动通信有限公司 Mobile terminal, alarm clock control method thereof and storage medium
CN108833719B (en) * 2018-08-31 2020-07-24 阿里巴巴集团控股有限公司 Reminding service realization method and device
CN110581922A (en) * 2019-08-29 2019-12-17 维沃移动通信有限公司 Alarm clock setting method and terminal equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536735A (en) * 2014-12-12 2015-04-22 魅族科技(中国)有限公司 Method and device for controlling preset reminding task
CN105333880A (en) * 2014-07-18 2016-02-17 展讯通信(上海)有限公司 Communication terminal and prompting method and device
CN105574704A (en) * 2015-04-23 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Method and device for canceling reminding event, and terminal
CN106101371A (en) * 2016-05-24 2016-11-09 乐视控股(北京)有限公司 alarm clock control method, device and terminal device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100134279A1 (en) * 2008-11-28 2010-06-03 Roy Schwartz Method and system of automatic generation of travel based action
CN105472580B (en) * 2015-11-17 2019-08-06 小米科技有限责任公司 Processing method, device, terminal and the server of information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105333880A (en) * 2014-07-18 2016-02-17 展讯通信(上海)有限公司 Communication terminal and prompting method and device
CN104536735A (en) * 2014-12-12 2015-04-22 魅族科技(中国)有限公司 Method and device for controlling preset reminding task
CN105574704A (en) * 2015-04-23 2016-05-11 宇龙计算机通信科技(深圳)有限公司 Method and device for canceling reminding event, and terminal
CN106101371A (en) * 2016-05-24 2016-11-09 乐视控股(北京)有限公司 alarm clock control method, device and terminal device

Also Published As

Publication number Publication date
CN106791174A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN107464557B (en) Call recording method and device, mobile terminal and storage medium
CN106791174B (en) Alarm clock adjusting method and device and mobile terminal
CN109246291B (en) Mobile terminal and sleep reminding method and device
CN109983458B (en) Recommendation method and terminal
CN107404572A (en) A kind of charge prompting method and terminal
CN108323237B (en) Terminal behavior triggering method and terminal
US20150052534A1 (en) Method and device for executing scheduled tasks, computer-readable storage medium, graphical user interface and mobile terminal
CN107911812B (en) Method for adjusting preferred public land mobile network PPLMN list and mobile terminal
CN107977248B (en) Display method of desktop pendant and mobile terminal
CN109167879A (en) Based reminding method, mobile terminal and storage medium based on artificial intelligence
CN111611027A (en) Method for starting application program, terminal equipment and readable storage medium
CN107103074B (en) Processing method of shared information and mobile terminal
CN106327342B (en) Processing method of emoticon and terminal
CN108053184B (en) Item prompting method, mobile terminal and computer readable storage medium
CN109005290A (en) A kind of alarm clock setting method, terminal and computer readable storage medium
CN106817482A (en) Mobile terminal and its method and apparatus called
CN104583924A (en) Method and terminal for processing media file
WO2019061276A1 (en) Signal quality alert method, terminal and server
CN104702674A (en) Geographic position interaction method and geographic position interaction device
CN106713627B (en) Method and device for pushing message in notification bar and mobile terminal
CN109151184A (en) A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium
CN109167752A (en) The method, apparatus of mobile terminal and automated log on application platform
CN106909295B (en) Application processing method and terminal
CN107734151A (en) A kind of method, apparatus and computer-readable recording medium for updating alarm clock
CN108366167B (en) Message reminding method and mobile terminal

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170803

Address after: 100102, 18 floor, building 2, Wangjing street, Beijing, Chaoyang District, 1801

Applicant after: BEIJING ANYUN SHIJI SCIENCE AND TECHNOLOGY CO., LTD.

Address before: 100088 Beijing city Xicheng District xinjiekouwai Street 28, block D room 112 (Desheng Park)

Applicant before: Beijing Qihu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant