WO2018171105A1 - Alarm notification method and terminal device - Google Patents

Alarm notification method and terminal device Download PDF

Info

Publication number
WO2018171105A1
WO2018171105A1 PCT/CN2017/096467 CN2017096467W WO2018171105A1 WO 2018171105 A1 WO2018171105 A1 WO 2018171105A1 CN 2017096467 W CN2017096467 W CN 2017096467W WO 2018171105 A1 WO2018171105 A1 WO 2018171105A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
alarm
application
notification message
adjustment amount
Prior art date
Application number
PCT/CN2017/096467
Other languages
French (fr)
Chinese (zh)
Inventor
季振方
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201780033776.5A priority Critical patent/CN109219953B/en
Priority to US16/495,266 priority patent/US20200089381A1/en
Publication of WO2018171105A1 publication Critical patent/WO2018171105A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • GPHYSICS
    • G04HOROLOGY
    • G04BMECHANICALLY-DRIVEN CLOCKS OR WATCHES; MECHANICAL PARTS OF CLOCKS OR WATCHES IN GENERAL; TIME PIECES USING THE POSITION OF THE SUN, MOON OR STARS
    • G04B23/00Arrangements producing acoustic signals at preselected times
    • G04B23/02Alarm clocks
    • G04B23/021Controls (winding up the alarm; adjusting and indicating the waking time)
    • 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/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations

Definitions

  • the embodiments of the present invention relate to the field of terminal technologies, and in particular, to an alarm clock reminding method and an electronic device.
  • the travel is basically concentrated on self-driving, public transportation, cycling, etc.
  • self-driving work as urban traffic becomes more and more congested, it is often Congestion of the road, weather and other external factors, resulting in late work.
  • the alarm time set by the App of the alarm clock is static, and cannot be automatically adjusted according to the real-time scene of the user.
  • the factors include but are not limited to: the user's meeting mail, the user's work calendar, and the traffic road congestion on the way to work. Situation, geographical weather factors, etc.
  • many basic service providers have opened their own services for use by other third-party apps. For example, Google, Gaode, etc. have opened the service of map traffic conditions, AccuWeather has opened the weather service, and These services provide a related message push mechanism that can push scene information to the mobile terminal. But this service still can not meet the needs of users.
  • the embodiment of the present application provides a method and an electronic device for alerting various alarms, which greatly improves the flexibility and intelligence of the alarm of the electronic device, simplifies the operation steps of the user, and improves the user experience.
  • an embodiment of the present application provides a method for alarming an alarm, the method being implemented on an electronic device, the method comprising: the electronic device receiving an input of an alarm setting, where the alarm setting includes a first time and an application
  • the message subscription information sets the first time as an alarm time according to the alarm setting
  • the application message subscription information includes a subscription application.
  • the electronic device monitors a notification message of the subscription application according to the subscription application.
  • the electronic device acquires an alarm adjustment amount according to the notification message, corrects the first time according to the alarm adjustment amount to obtain a second time, and sets the second time as an alarm time.
  • the notification message includes a notification bar notification message of the electronic device.
  • the subscription application includes at least two applications.
  • the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event characterized by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, if the occurrence time of the event is earlier than the start time, and the difference between the occurrence time minus the event occurrence time is less than the first threshold, according to the The event information gets the amount of alarm adjustment.
  • the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event characterized by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, and if the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm adjustment amount is obtained according to the event information. .
  • the alarm clock setting includes a target route
  • the notification message includes a travel time required for the target route in the first weather condition
  • the electronic device acquires an alarm clock adjustment amount according to the notification message. Specifically, the electronic device determines an alarm adjustment amount according to the travel time required in the case of the first weather information.
  • the subscription application includes a calendar application
  • the obtaining the alarm adjustment amount according to the notification message specifically includes: determining an alarm adjustment amount according to the event information in the calendar application notification information.
  • the electronic device analyzes the notification message by using a lexical analyzer.
  • the electronic device receives an operation of querying the alarm clock, and displays the alarm clock subscription application information.
  • the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message further includes: the electronic device acquiring, according to the event information query mapping table in the notification message, the event information The amount of alarm adjustment.
  • an embodiment of the present application provides an electronic device, including a display screen, a memory, one or more processors, at least one application, and one or more computer programs; wherein the one or more computer programs are stored In the above memory; characterized in that the above electronic device can be used to perform the above method.
  • an embodiment of the present application provides an electronic device, including: a touch screen, wherein the touch screen includes a touch-sensitive surface and a display; one or more processors; a memory; a plurality of applications; and one or more computer programs And wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the method.
  • an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a touch screen, wherein the touch screen is configured to receive an input of an alarm setting, where the alarm setting includes a first time and application message subscription information. And setting the first time as an alarm time according to the alarm clock setting, where the application message subscription information includes a subscription application.
  • the processor is configured to monitor a notification message of the subscription application according to the subscription application.
  • the processor is further configured to acquire an alarm adjustment amount according to the notification message, correct the first time according to the alarm adjustment amount to obtain a second time, and set the second time as an alarm time.
  • the processor is further configured to acquire event information of the notification message, and determine whether an event occurrence time of the event information represented by the notification message is in a time associated with an alarm time of an alarm clock. In the range, if the occurrence time of the event is earlier than the start time, and the difference between the start time minus the event occurrence time is less than the first threshold, the alarm adjustment amount is obtained according to the event information.
  • the processor is further configured to acquire event information of the notification message, and determine whether an event occurrence time of the event information represented by the notification message is in a time associated with an alarm time of an alarm clock. In the range, if the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm adjustment amount is obtained according to the event information.
  • the electronic device further includes a display screen, where the display screen is used to display the notification message.
  • the touch screen is further configured to receive an operation for querying the alarm clock
  • the display screen is further configured to display the alarm clock subscription application information.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores instructions that, when run on a computer, cause the computer to perform the methods described in the above aspects.
  • the embodiment of the present application further provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform the method described in the above aspects.
  • FIG. 1 is a schematic diagram showing the hardware structure of a mobile phone 100 in some embodiments
  • FIGS. 2A-2B are schematic diagrams showing a graphical user interface displayed on a terminal device according to some embodiments of the present disclosure
  • FIG. 3 is a schematic diagram of a graphical user interface displayed on a terminal device according to some embodiments of the present disclosure
  • FIG. 4 is a graphical user interface diagram of a weather application notification message according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a first mapping table according to an embodiment of the present application.
  • 6-7 are schematic diagrams of data of a weather application server according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a preset mapping table according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of adjusting an alarm time of an alarm clock according to an embodiment of the present application.
  • FIG. 10 is a graphical user interface diagram of another weather application notification message according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of another alarm clock setting time adjustment according to an embodiment of the present application.
  • FIG. 12 is a graphical user interface diagram of still another weather application notification message according to an embodiment of the present application.
  • FIG. 13 is a schematic diagram of another adjustment of an alarm clock setting time according to an embodiment of the present application.
  • FIG. 14 is a schematic diagram of a target route setting according to an embodiment of the present application.
  • 15-16 are schematic diagrams of another target route setting provided by an embodiment of the present application.
  • FIG. 17 is a graphical user interface diagram of a Google Maps application notification message according to an embodiment of the present application.
  • FIG. 18 is a schematic diagram of a second mapping table according to an embodiment of the present application.
  • 19-22 are schematic diagrams of data of a traffic application server according to an embodiment of the present application.
  • FIG. 23 is a schematic diagram of adjustment of another alarm clock setting time according to an embodiment of the present application.
  • FIG. 24 is a graphical user interface diagram of another Google Maps application notification message according to an embodiment of the present application.
  • FIG. 25 is a schematic diagram of another adjustment of an alarm clock setting time according to an embodiment of the present application.
  • 26 is a graphical user interface diagram of a weather and Google Maps application notification message according to an embodiment of the present application
  • FIG. 27 is a schematic diagram of a third mapping table according to an embodiment of the present application.
  • 28-31 are schematic diagrams of data of a weather and traffic application server according to an embodiment of the present application.
  • FIG. 32 is a schematic diagram of an alarm clock adjustment method according to an embodiment of the present application.
  • 33 is a schematic structural diagram of an electronic device in some embodiments of the present application.
  • FIG. 34 is a schematic diagram of another method for adjusting an alarm clock according to an embodiment of the present application.
  • the relationship between the weather and the time adjustment amount, and the relationship between the traffic condition and the time adjustment amount are preset in advance.
  • the user will come according to the situation of the day. Adjust the time of the alarm clock.
  • Table 1 for the setting of the time adjustment amount for adjusting the alarm clock.
  • the correspondence between the weather information and the time adjustment amount is shown in Table 1, and the corresponding time adjustment amount can be found according to the weather keyword in Table 1.
  • the original alarm clock of the mobile phone is 7:00 in the morning. If the weather of the mobile phone is sunny/cloudy in the morning, the time adjustment amount according to Table 1 is 0, indicating that the alarm time does not need to be adjusted. If the weather in the morning is light rain, the time adjustment amount is 10 minutes in advance according to Table 1, the mobile phone automatically adjusts the alarm clock to 6:50.
  • Table 1 for analogy.
  • the time adjustment amount is 20 minutes ahead of time, then the mobile phone automatically adjusts the alarm clock to 6:40.
  • Table 2 for analogy.
  • the adjustment of the alarm clock can also increase other factors that affect the adjustment of the alarm clock, such as temperature, and the length of time the user prepares.
  • Traffic keyword good Mild traffic jam Serious traffic jam Hence Time adjustment 0 20 minutes in advance 30 minutes in advance .
  • the electronic device in the embodiment of the present application may be the mobile phone 100 .
  • the embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated mobile phone 100 is only one example of an electronic device, and the mobile phone 100 may have more or fewer components than those shown in the figures, two or more components may be combined, or Has a different component configuration.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the mobile phone 100 may specifically include: a processor 101, a radio frequency (RF) circuit 102, a memory 103, a touch screen 104, a Bluetooth device 105, one or more sensors 106, a WI-FI device 107, and positioning.
  • Components such as device 108, audio circuit 109, peripheral interface 110, and power system 111. These components can communicate over one or more communication buses or signal lines (not shown in Figure 1). It will be understood by those skilled in the art that the hardware structure shown in FIG. 1 does not constitute a limitation on the mobile phone 100, and the mobile phone 100 may include more or less components than those illustrated, or combine some components, or different component arrangements. .
  • the processor 101 is a control center of the mobile phone 100, and connects various parts of the mobile phone 100 by using various interfaces and lines, by running or executing an application (Application, referred to as App) stored in the memory 103, and calling the storage in the memory 103.
  • the data and instructions perform various functions and processing data of the handset 100.
  • processor 101 may include one or more processing units; processor 101 may also integrate an application processor and a modem processor; wherein the application processor primarily processes operating systems, user interfaces, applications, etc.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 101.
  • the processor 101 may further include a fingerprint verification chip for verifying the collected fingerprint.
  • the radio frequency circuit 102 can be used to receive and transmit wireless signals during transmission or reception of information or calls. Specifically, the radio frequency circuit 102 can process the downlink data of the base station and then process it to the processor 101. In addition, the data related to the uplink is sent to the base station.
  • radio frequency circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency circuit 102 can also communicate with other devices through wireless communication.
  • the wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
  • the memory 103 is used to store applications and data, and the processor 101 executes various functions and data processing of the mobile phone 100 by running applications and data stored in the memory 103.
  • the memory 103 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at 100 o'clock (such as audio data, phone book, etc.).
  • the memory 103 may include a high speed random access memory, and may also include a nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device.
  • the memory 103 can store various operating systems, such as those developed by Apple. Operating system, developed by Google Inc. Operating system, etc.
  • Touch screen 104 can include touch sensitive surface 104-1 and display 104-2.
  • the touch-sensitive surface 104-1 eg, a touch panel
  • the touch-sensitive surface 104-1 can collect touch events on or near the user of the mobile phone 100 (eg, the user uses a finger, a stylus, or the like on the touch-sensitive surface 104-1. Or operation in the vicinity of the touch-sensitive surface 104-1), and the collected touch information is transmitted to other devices such as the processor 101.
  • the touch event of the user in the vicinity of the touch-sensitive surface 104-1 may be referred to as a hovering touch; the hovering touch may mean that the user does not need to directly touch the touch pad in order to select, move or drag a target (eg, an icon, etc.) And only the user is located near the electronic device in order to perform the desired function.
  • a target eg, an icon, etc.
  • the touch-sensitive surface 104-1 capable of floating touch can be realized by capacitive, infrared light, ultrasonic, or the like.
  • the touch sensitive surface 104-1 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the touch information into contact coordinates, and then Sended to the processor 101, the touch controller can also receive instructions from the processor 101 and execute them.
  • the touch sensitive surface 104-1 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • a display (also referred to as display) 104-2 can be used to display information entered by the user or information provided to the user as well as various menus of the mobile phone 100.
  • the display 104-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the touch-sensitive surface 104-1 can be overlaid on the display 104-2, and when the touch-sensitive surface 104-1 detects a touch event on or near it, is transmitted to the processor 101 to determine the type of touch event, followed by the processor 101 may provide a corresponding visual output on display 104-2 depending on the type of touch event.
  • touch-sensitive surface 104-1 and display 104-2 are implemented as two separate components to implement the input and output functions of handset 100, in some embodiments, touch-sensitive surface 104- 1 is integrated with the display screen 104-2 to implement the input and output functions of the mobile phone 100.
  • the touch screen 104 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch-sensitive surface (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application.
  • the touch-sensitive surface 104-1 can be overlaid on the display 104-2, and the size of the touch-sensitive surface 104-1 is greater than the size of the display 104-2 such that the display 104- 2 is completely covered under the touch-sensitive surface 104-1, or the touch-sensitive surface 104-1 may be disposed on the front side of the mobile phone 100 in a full-board form, that is, the user's touch on the front of the mobile phone 100 can be perceived by the mobile phone. You can achieve a full touch experience on the front of your phone.
  • the touch-sensitive surface 104-1 is disposed on the front side of the mobile phone 100 in a full-board form
  • the display screen 104-2 may also be disposed on the front side of the mobile phone 100 in the form of a full-board, such that the front side of the mobile phone is Can achieve a borderless structure.
  • the mobile phone 100 may also have a fingerprint recognition function.
  • the fingerprint reader 112 can be configured on the back of the handset 100 (eg, below the rear camera) or on the front side of the handset 100 (eg, below the touch screen 104).
  • the fingerprint recognition function can also be implemented by configuring the fingerprint recognizer 112 in the touch screen 104, that is, the fingerprint recognizer 112 can be integrated with the touch screen 104 to implement the fingerprint recognition function of the mobile phone 100.
  • the fingerprint identifier 112 can be disposed in the touch screen 104, can be part of the touch screen 104, or can be otherwise configured in the touch screen 104.
  • the fingerprint identifier 112 can also be implemented as a full-board fingerprint reader, and thus the touch screen 104 can be viewed as a panel that can be fingerprinted at any location.
  • the fingerprint identifier 112 can send the collected fingerprint to the processor 101 for the processor 101 to process the fingerprint (eg, fingerprint verification, etc.).
  • the main component of the fingerprint identifier 112 in the embodiment of the present application is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
  • the mobile phone 100 can also include a Bluetooth device 105 for enabling data exchange between the handset 100 and other short-range electronic devices (eg, mobile phones, smart watches, etc.).
  • the Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
  • the handset 100 can also include at least one type of sensor 106, such as a light sensor, motion sensor, and other sensors.
  • 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 of the touch screen 104 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone 100 moves to the ear.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
  • the WI-FI device 107 is configured to provide the mobile phone 100 with network access complying with the WI-FI related standard protocol, and the mobile phone 100 can access the WI-FI access point through the WI-FI device 107, thereby helping the user to send and receive emails. Browsing web pages and accessing streaming media, etc., it provides users with wireless broadband Internet access.
  • the WI-FI device 107 can also function as a WI-FI wireless access point, and can provide WI-FI network access for other electronic devices.
  • the positioning device 108 is configured to provide a geographic location for the mobile phone 100. It can be understood that the positioning device 108 can be specifically a receiver of a positioning system such as a global positioning system (GPS) or a Beidou satellite navigation system. After receiving the geographical location transmitted by the positioning system, the positioning device 108 sends the information to the processor 101 for processing, or sends it to the memory 103 for storage. In some other embodiments, the positioning device 108 can be an assisted global positioning system (AGPS) receiver, and the AGPS is an operation mode for performing GPS positioning with certain assistance, which can be utilized.
  • AGPS assisted global positioning system
  • the signal of the base station, in conjunction with the GPS satellite signal, can make the mobile phone 100 locate faster; in the AGPS system, the positioning device 108 can obtain positioning assistance by communicating with an auxiliary positioning server (such as a mobile phone positioning server).
  • the AGPS system assists the positioning device 108 in performing the ranging and positioning services by acting as a secondary server, in which case the secondary positioning server is provided over the wireless communication network in communication with the positioning device 108 (i.e., GPS receiver) of the electronic device, such as the handset 100.
  • Positioning assistance can also be a WI-FI access point based positioning technology.
  • each WI-FI access point has a globally unique MAC address
  • the electronic device can scan and collect the broadcast signals of the surrounding WI-FI access points when WI-FI is turned on, so that the WI can be obtained.
  • the electronic device sends the data (such as the MAC address) capable of indicating the WI-FI access point to the location server through the wireless communication network, and each WI-FI interface is retrieved by the location server.
  • the geographic location of the inbound point combined with the strength of the WI-FI broadcast signal, calculates the geographic location of the electronic device and sends it to the positioning device 108 of the electronic device.
  • the audio circuit 109, the speaker 113, and the microphone 114 can provide an audio interface between the user and the handset 100.
  • the audio circuit 109 can transmit the converted electrical data of the received audio data to the speaker 113 for conversion to the sound signal output by the speaker 113; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal by the audio circuit 109. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 102 for transmission to, for example, another mobile phone, or the audio data is output to the memory 103 for further processing.
  • the peripheral interface 110 is used to provide various interfaces for external input/output devices (such as a keyboard, a mouse, an external display, an external memory, a subscriber identity module card, etc.). For example, it is connected to the mouse through a universal serial bus interface, and is connected to a subscriber identity module (SIM) card provided by a telecommunications carrier through a metal contact on the card slot of the subscriber identity module.
  • SIM subscriber identity module
  • Peripheral interface 110 can be used to couple the external input/output peripherals described above to processor 101 and memory 103.
  • the mobile phone 100 may further include a power supply device 111 (such as a battery and a power management chip) that supplies power to the various components.
  • the battery may be logically connected to the processor 101 through the power management chip to manage charging, discharging, and power management through the power supply device 111. And other functions.
  • the mobile phone 100 may further include a camera (front camera and/or rear camera), a flash, a micro projection device, a near field communication (NFC) device, and the like, and details are not described herein.
  • a camera front camera and/or rear camera
  • a flash a flash
  • micro projection device a micro projection device
  • NFC near field communication
  • FIG. 2A a schematic diagram of a graphical user interface displayed on a terminal device in some embodiments of the present application, the alarm clock app is newly enabled on the mobile phone 100, and the graphical user interface shown in FIG. 2A can be displayed.
  • a new alarm preset is shown. Time, as well as the new app subscription model.
  • FIG. 2A exemplarily shows a schematic diagram of a new alarm clock.
  • the alarm clock new interface 20 may include a plurality of attribute setting controls, such as a time setting control 201, a ringtone setting control 202, a vibration mode setting control 203, and an alarm name setting control 204.
  • the alarm clock new interface 10 may also include an application subscription control 205.
  • the application subscription control 105 can be configured to receive an open operation of an application subscription interface input by a user. When the system detects the open operation (such as a click operation) through the application subscription 205, the application subscription interface 2050 shown in FIG. 2B is displayed.
  • the mobile phone 100 receives the user clicking the application subscription control 205 to select an application subscription mode, and then enters the schematic diagram of the graphical user interface shown in FIG. 2B.
  • FIG. 2B exemplarily shows a schematic diagram of an application subscription interface.
  • the application subscription interface 2050 can include a mode switch control 2051 and an application list 2052.
  • the mode switch control 2051 is configured to receive an operation of turning the subscription mode on or off by the user. Specifically, when the subscription mode is enabled, the user is valid for the operation input by the application list 2052. When the subscription mode is turned off, the user input operation for the application list 2052 is invalid.
  • the mode switch control 2051 can be implemented as the slide switch control shown in FIG. 2B.
  • the button on the slide switch control when the button on the slide switch control is slid to the right, it indicates that the subscription mode is turned on, and when the button on the slide switch control is slid to the left, it indicates that the subscription mode is turned off.
  • the mode switch control 2051 is not limited to being implemented as the slide switch control shown in FIG. 2B, and other controls may be employed in practical applications.
  • the application list 2052 is for presenting a plurality of applications. The user can select an application to be subscribed from among a plurality of applications presented by the application list 2052 according to requirements. FIG.
  • the subscription may be a notification message that the user sets which applications affect the alarm time. For example, suppose a user subscribes to the Weather app, which means that the Weather app’s notification message may have an impact on the alarm’s time.
  • the user-entered subscription operation can be received through the switch control 2021 shown in FIG. 2B.
  • the switch control is not limited to being implemented as the switch control shown in FIG. 2B, and other controls may be used in practical applications. There is no restriction on the way in which the user operates the switch control to enter a subscription operation.
  • the user enters the interface of the application subscription, and the user can choose to enable the function.
  • the application subscription function is enabled.
  • the alarm application dynamically adjusts the preset alarm according to the notification message displayed by the mobile phone 100 and pushed to the status bar of the mobile phone.
  • the application subscription interface displays a list of subscriptionable applications, and the user can select a corresponding application according to requirements.
  • the list of subscriptionable applications may include, but is not limited to, applications such as SMS, Calendar, WeChat, Gold Map, Weather, Memo, Email, and the like. Taking FIG.
  • the user can input a selection operation to select an application notification message for a subscription calendar, a high-order map, weather, and an email.
  • the user can select the subscription application by opening the selection button or by checking the check box.
  • the embodiment of the present application does not specifically limit the application.
  • the alarm clock application on the mobile phone 100 dynamically adjusts the preset alarm clock according to the calendar application on the mobile phone 100, the high-tech map application, the weather application, and the notification message of the email application. After the setting is completed, the mobile phone 100 can store the alarm time set in the alarm clock application and the subscribed application information into the memory 103 of the mobile phone 100.
  • the handset 100 receives an operation by the user to turn on the alarm application through the touch-sensitive surface 104-1, the processor 101 running the alarm application, and displaying the graphical user interface of FIG. 2A through the display 104-2.
  • the mobile phone 100 receives, via the touch-sensitive surface 104-1, an operation of the user clicking to enter an application subscription mode of the alarm application, the alarm application loading a list of applications that can be subscribed, and displaying the graphical user of FIG. 2B through the display 104-2
  • An interface displays a list of applications that can be subscribed to.
  • the handset 100 receives the user's operation of the list of applications that can be subscribed through the touch-sensitive surface 104-1, and the operation of turning on the application subscription mode.
  • the alarm clock application automatically monitors the notification bar message of the email, weather, map, and calendar application. Once the notification message is sent to the mobile phone 100, the alarm application performs semantic analysis on the notification bar message to obtain If there is a factor affecting the adjustment of the alarm clock, the alarm time of the alarm clock is automatically adjusted according to the alarm adjustment amount.
  • the alarm clock application specifically adjusts the original preset alarm time. For example, for setting the corresponding relationship of different alarm adjustment amounts for different trigger events in different applications, reference may be made to the setting manners of Tables 1 and 2 above.
  • the alarm time set by the alarm clock application, the list of subscription applications that subscribe to the notification bar message, and the like can all be stored in the memory 103 for subsequent processing calculations.
  • a user may select a subscription application that subscribes to a notification bar message by an alarm time set by the touch-sensitive surface 104-1, the memory 103 storing the above information for the processor 101 to perform logic. The operation is used.
  • FIG. 3 exemplarily shows an application of an alarm clock association.
  • the alarm time set by alarm 1 is 7:30
  • the associated applications include mail, calendar, weather, and Google Maps.
  • the user can set these applications associated with the alarm 1 through the graphical user interface diagrams shown in FIGS. 2A and 2B, that is, the application set to the alarm 1 association.
  • the user can click or long press to view the application associated with the alarm 1.
  • the user clicks or long presses the control interface 301 corresponding to the alarm 1 in the interface 30 the user can be in the floating window 302. View the application in which the user sets the alarm 1 association.
  • the application associated with the alarm 1 is not limited to the operation of clicking or long pressing, and is not limited to displaying the application associated with the alarm 1 in the floating window. Similarly, you can set up apps that are associated with other alarms, as well as those that are associated with other alarms.
  • the notification message of the subscribed application may be referred to as a first message
  • the application list 2052 shown in FIG. 2A may be referred to as a first application list.
  • the influencing factors of the alarm time of the alarm clock may include at least one of the following: weather, traffic, or an event.
  • weather included in notification messages for weather, SMS, WeChat, etc.
  • traffic contained in the notification message of the traffic application.
  • the event may include an event included in a notification message of an application such as a short message, a mail, a WeChat, a calendar, or a memo, such as a to-do event included in a notification message of an application such as a calendar, a memo, or the like, and is, for example, a notification message of the mail application. Contained meetings.
  • the influencing factors that satisfy the preset conditions may affect the alarm time of the alarm clock. Specifically, whether the influencing factors included in the first message meet the preset condition may be determined by the following manner.
  • the application providing the first message can be a weather application.
  • the notification message about the weather information may also be weather information provided by an application (such as a short message) that other users have subscribed to.
  • the first weather mentioned above may be bad weather, such as light rain, moderate rain, heavy rain, heavy rain, thunderstorms, sleet, light snow, or heavy snow, which may cause people to travel inconveniently.
  • the application providing the first message can be a traffic application.
  • the application providing the first message can be an application such as a short message, a mail, a calendar, a memo or the like.
  • the fourth implementation manner when the first message includes at least two factors of weather, traffic, and events, determining whether the combination of the at least two factors included in the first message belongs to the first set, and if yes, satisfying the pre-
  • the first set includes a plurality of combinations of at least two of the above factors, wherein the weather in each combination is consistent with the first weather, and the traffic congestion degree in each combination is greater than the traffic congestion threshold, in each combination
  • the time of occurrence of the event is within the time range associated with the alarm time of the alarm.
  • the terminal may adjust the alarm time of the alarm clock.
  • the notification message provided by the weather application is taken as an example to explain how to adjust the alarm time of the alarm according to the notification message of the application.
  • the notification message is the first message described above.
  • FIG. 4 exemplarily shows a notification message of a weather application.
  • keywords can be extracted by a lexical analyzer, for example, "06 o'clock on the 12th", “Nanshan District”, “light rain”, assuming that the first weather is non-sunny, the extracted information represented by FIG. 4 is characterized.
  • the influencing factor satisfies the preset condition, that is, the alarm time of the alarm clock needs to be adjusted according to the first message.
  • FIG. 5 exemplarily shows a first mapping table.
  • the time adjustment amount corresponding to the weather represented by the weather information included in the first message may be determined by the first mapping table.
  • the amount of time adjustment symbolizes the degree of influence of the weather represented by the weather information on the alarm time of the alarm clock, and the alarm application can adjust the alarm time of the alarm according to the time adjustment amount.
  • the weather characterized by the weather information is determined, and the time adjustment amount corresponding to the weather is searched according to the first mapping table. For example, if the weather indicated by the notification message in FIG. 4 is light rain, then according to the first mapping table in FIG. 5, the time adjustment corresponding to the light rain can be found to be 10 mins.
  • the time adjustment amount of the noisy time may be specifically related to the travel time of the user's travel route in different weathers.
  • the travel route can be referred to as a target route.
  • FIG. 6 exemplarily shows weather application server data.
  • the weather application server data may include travel times for different users traveling different routes in different weathers.
  • the weather application server data may be used to match the travel time of a particular user traveling the target route in different weather conditions.
  • the travel time of a specific user traveling the target route in different weathers may also be matched by the map application server data.
  • the embodiments of the present application are not limited.
  • the alarm clock is the alarm clock 1 shown in FIG. 1 (starting time 7:30)
  • the notification message of the weather application push is the notification message shown in FIG. 4, and the target route is route 1.
  • the following methods may be used to determine the time adjustment amount of the noisy time according to the server data of the weather application.
  • the starting time of 7:30 is set by the user based on the driving time of the driving route 1 in the case of the weather, and the time adjustment amount of the starting time in different weathers may be the driving route 1 of each weather.
  • the travel time of the user traveling the target route in each weather may be an average of a plurality of travel times.
  • the time adjustment amount of the noisy time may be determined according to the user's own historical data, and the determining of the time adjustment amount includes the following steps.
  • the average value of the travel time required for the user A to select the route 1 at the time of the weather is calculated.
  • the travel time at sunny time was 32 mins and 27 mins, respectively, and the average value was 30 mins. Therefore, when the weather is fine, the travel time required for the user A to select the route 1 is 30 minutes.
  • the average value of the travel time required for the user A to select the route 1 during the light rain is calculated. As shown by the gray part data in Fig. 6, the travel time in light rain is 41 mins, 35 mins, 34 mins and 43 mins, respectively, and the average value is 38 mins. Therefore, the travel time required for user A to select route 1 during light rain is 38 minutes.
  • the time adjustment amount of the noisy time may be determined according to historical data of all users, and then the determination of the time adjustment amount includes the following steps.
  • FIG. 8 exemplarily shows a preset mapping table including time adjustment amounts corresponding to intervals of different travel times.
  • the following intervals of four travel times t can be set: t ⁇ 40 mins, 40 mins ⁇ t ⁇ 50 mins, 50 mins ⁇ t ⁇ 60 mins, and t > 60 mins.
  • These four intervals correspond to the following time adjustments: 0, 10mins, 20mins, 30mins.
  • the travel time of the user traveling the target route in each weather may be an average of a plurality of travel times.
  • the travel time of the travel target route in different weathers can be determined according to the user's own historical data or historical data of all users. Taking the travel time of the travel target route in different weathers as an example according to the user's own historical data, the determination of the time adjustment amount includes the following steps.
  • the average value of the travel time required for the user A to select the route 1 during the light rain is calculated.
  • the travel time in light rain is 41 mins, 35 mins, 34 mins and 43 mins, respectively, and the average value is 38 mins. Therefore, the travel time required for user A to select route 1 during light rain is 38 minutes.
  • the travel time interval to which the travel time belongs in the preset map is determined. It can be known from the preset map shown in FIG. 8 that the travel time required for the user A to select the route 1 during the light rain belongs to 40 mins ⁇ t ⁇ 50 mins.
  • the time adjustment amount corresponding to the travel time interval is found according to the preset mapping table.
  • the preset mapping table shown in FIG. 8 it can be determined that the time adjustment amount corresponding to the driving time interval is 10 mins, that is, the time adjustment amount required for the user A to select the route 1 when the rain is light is 10 mins.
  • Fig. 9 exemplarily shows the adjustment of the alarm time. As shown in FIG. 9 , if the time adjustment amount is determined to be 10 mins according to any of the above methods, the alarm time of the alarm clock is adjusted according to the time adjustment amount, and the alarm time of the alarm 1 is adjusted to 7:30. :20.
  • the notification message pushed by the weather application may change, ie the weather may become worse or better.
  • the time adjustment amount obtained according to the scene shown in FIG. 10 adjusts the alarm time of the alarm clock not earlier than the current time (as shown in FIG. 11), that is, the alarm time of the alarm clock is adjusted. Adjusting the alarm time of the alarm clock according to the time adjustment amount obtained in the scene shown in FIG. 12 is earlier than the current time (as shown in FIG. 13). It is too late to adjust the alarm time.
  • the weather application pushes the notification message shown in FIG. 10 again (push time 6:05).
  • the lexical analyzer is used to extract the keywords into "12th 07th”, “Nanshan District”, and “rainy”, and the time adjustment amount is obtained according to these keywords, and the obtained time adjustment amount is obtained.
  • the original alarm time (7:30) of Alarm 1 can be adjusted to 7:10, as shown in Figure 11.
  • the weather application pushes the notification message shown in FIG. 12 again (push time 7:05).
  • the lexical analyzer is used to extract the keywords into "08:00 on the 12th”, “Nanshan District”, and “rainstorm”, and the time adjustment amount is obtained according to these keywords, and the obtained time adjustment amount is 30min, then the original alarm time (7:30) of alarm 1 can be adjusted to 7:00, and the current time is already 7:05. Obviously the adjusted starting time is earlier than the current time, as shown in Figure 13. The alarm should be triggered immediately.
  • the time adjustment amount is determined by any one of the above-mentioned methods for determining the time adjustment amount, for the alarm clock The adjustment time is adjusted.
  • the target route can be input in the new alarm clock interface 10.
  • a new target route 106 column can be added to the new alarm clock interface 10. As shown in FIG. 14, when the user newly creates an alarm, the user directly inputs the target route to route 1.
  • Fig. 15 exemplarily shows a schematic diagram of setting a route.
  • the set route interface 40 may include a departure place setting control 401, a destination setting control 402, a route generation interface 403, a save route control 404, and a start navigation control 405.
  • the departure place setting control 401 and the destination setting control 402 are respectively configured to receive a departure place and a destination operation input by the user.
  • the route generation interface 403 is configured to generate and display at least one route according to the departure place and the destination input by the user.
  • the save route control 404 is configured to receive a user input save route operation.
  • the start navigation control 405 is configured to receive a start navigation command input by the user. Specifically, when the system detects the save route operation (such as a click operation) input by the user through the save route control 404, the associated alarm alarm interface 50 is displayed.
  • Fig. 16 exemplarily shows a schematic diagram of an associated alarm clock.
  • the associated alarm clock interface 50 can include a route selection interface 501 and an alarm selection interface 502.
  • the route selection interface 501 is configured to receive a target route selection operation input by the user, and the target route is one of the at least one route generated according to the departure place and the destination. After the user selects one of the routes as the target route, the user cannot enter a selection operation for the other route.
  • the alarm selection interface 502 is configured to receive a selection operation entered by the user to associate the target route with one or more alarms after the target route is selected.
  • the target route selection operation input by the user can be received through the route selection control 5011 shown in FIG. 16.
  • the button in the route selection control 5011 corresponding to each route is slid to the right, it indicates that the route is selected as the target route.
  • the route selection control 5011 is not limited to being implemented as the route selection control shown in FIG. 16, and other controls may be employed in the actual application.
  • the alarm related operation input by the user can be received through the alarm selection control 5021 shown in FIG. 16.
  • the button in the alarm selection control 5021 corresponding to each alarm is slid to the right, it indicates that the alarm is selected as the alarm associated with the target route.
  • the alarm clock selection control 5021 is not limited to the implementation of the alarm selection control shown in FIG. 16, and other controls may be employed in the actual application.
  • the control for receiving the selection operation input by the user is not limited to the alarm selection control shown in FIG. 16, but may be other controls that can receive the user input selection operation, and the selection operation input to the alarm selection control 5021 is not limited to the movement of the moving button.
  • the route with the shortest distance may be automatically selected as the target route, or the user may be selected according to the historical data of the user.
  • the route with the highest frequency is the target route.
  • the third implementation method acquires the target route according to the historical data of the user.
  • the number of alarms set by the user is usually more than one, so it is necessary to first determine the alarm to be adjusted, and then according to the alarm time of the alarm to be adjusted, combined with the historical data of the user. Target route.
  • the terminal can record the user's daily driving information. Assume that the user usually starts from A to B at around 8:00 in the morning (for example, from home to company). Therefore, the alarm to be adjusted can be an alarm clock for a period of time before 8:00 in the morning, for example, half an hour. Or wait an hour. It can be seen that in the hypothetical application scenario, the alarm to be adjusted in FIG. 2A is the alarm clock 1 (starting time 7:30). Therefore, the target route associated with the alarm 1 can be a route from A to B. In addition, there may be several routes from A to B, and the route with the most frequent travel can be selected according to the record.
  • the notification message provided by the traffic application is taken as an example to explain how to adjust the alarm time of the alarm clock according to the notification message of the traffic application.
  • the notification message is the first message described above.
  • Fig. 17 exemplarily shows a notification message of the Google Maps application (referred to as a traffic application in the subsequent embodiments and the drawings).
  • keywords can be extracted by a lexical analyzer, such as "traffic congestion”, “M to N”, and “428 meters”, assuming that the traffic congestion threshold is 100 meters, that is, the congestion length S is greater than 100 meters.
  • the influencing factors of the extracted information representation shown in FIG. 17 satisfy the preset condition, that is, the alarm time of the alarm clock needs to be adjusted according to the first message.
  • the amount of time adjustment for the noisy time can be specifically related to the travel time of the user's travel route at different traffic congestion levels.
  • the route here can be called the target route.
  • different traffic congestion levels can be represented by different congestion lengths, and the longer the congestion length, the more serious the traffic congestion.
  • different degrees of traffic congestion may be represented by different congestion length intervals. Different degrees of traffic congestion are not limited to being represented by the length of traffic congestion, but may also be represented by other means, such as the speed of the vehicle. In the embodiment of the present application, different traffic congestion levels are represented by different congestion length intervals.
  • FIG. 18 exemplarily shows a second mapping table.
  • the time adjustment amount corresponding to the traffic congestion length represented by the traffic information included in the first message may be determined by the second mapping table.
  • the amount of time adjustment symbolizes the influence of the traffic congestion length of the traffic information on the alarm time of the alarm clock, and the alarm application can adjust the alarm time of the alarm according to the time adjustment amount.
  • the traffic congestion length represented by the traffic information is determined, and the time adjustment amount corresponding to the traffic congestion length is searched according to the second mapping table. For example, if the notification message in FIG. 17 represents a traffic congestion length of 428 meters, then according to the second mapping table in FIG. 18, the time adjustment corresponding to the length interval 400 ⁇ S ⁇ 450 to which the traffic congestion length belongs to 428 meters can be found.
  • the amount is 35mins.
  • the time adjustment amount of the noisy time may be specifically related to the travel time of the travel route of the user in different traffic congestion length intervals.
  • the travel route can be referred to as a target route.
  • FIG. 19 exemplarily shows server data of a traffic application.
  • the server data of the traffic application may include travel times of different users traveling the target route under different congestion length intervals.
  • the travel time of the target travel route of the specific user in different congestion length intervals can be matched by the server data of the traffic application.
  • the alarm clock is the alarm clock 1 shown in FIG. 1 (starting time 7:30), and the notification of the traffic application push is cancelled.
  • the message is the notification message shown in FIG. Specifically, the following methods may be used to determine the time adjustment amount of the noisy time according to the server data of the traffic application.
  • the starting time of 7:30 is set by the user based on the traffic time of the traffic, and in the case of different congestion lengths, the time adjustment amount may be the driving time of the driving target route in each congestion length interval.
  • the travel time of the user traveling the target route in each congestion length interval may be an average of a plurality of travel times.
  • the time adjustment amount of the noisy time may be determined according to the user's own historical data, and the determining of the time adjustment amount includes the following steps.
  • the average value of the travel time required for the user A to travel the target route when the traffic is good is calculated. Assume that the traffic is good and the congestion length is less than 100 meters. In the data shown in Figure 19, the driving time when traffic is good is 32mins, 27mins and 28mins respectively, and the average value is 29mins. Therefore, when the traffic is good, the travel time of the user A traveling target route is 29 minutes.
  • the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average value of the travel time of the user A traveling the target route in the congestion length interval is calculated.
  • the congestion length 428 meters represented by the notification message in FIG. 17 belongs to the congestion length interval of 400 ⁇ S ⁇ 450.
  • the gray part data in Fig. 20 shows that the travel time of the user A traveling the target route in the congestion length interval is 65 mins and 54 mins, and the average value is 60 mins. Therefore, when the congestion length interval is 400 ⁇ S ⁇ 450, the travel time of the travel target route is 60 mins.
  • the travel time of the driving target route is determined to be the time when the congestion length interval is 400 ⁇ S ⁇ 450. Adjustment amount.
  • the time adjustment amount of the noisy time may be determined according to historical data of all users, and then the determination of the time adjustment amount includes the following steps.
  • the congestion length interval to which the congestion length represented by the notification message belongs is determined, and the average of the travel times of all the users traveling the target route under the congestion length interval is calculated.
  • the congestion length 428 meters represented by the notification message in FIG. 17 belongs to the congestion length interval of 400 ⁇ S ⁇ 450.
  • the gray part data in Fig. 22 shows that the travel time of all the users traveling the target route in the congestion length interval is 65 mins, 61 mins, 54 mins, and the average value is 60 mins. Therefore, when the congestion length interval is 400 ⁇ S ⁇ 450, the travel time of the travel target route is 60 mins.
  • the travel time required to travel the target route determines the congestion length interval is 400 ⁇ S ⁇ 450 when the alarm clock rises
  • the interval of different driving time of the driving target route and the time adjustment amount corresponding to different sections are preset.
  • the following intervals of four travel times t can be set: t ⁇ 40 mins, 40 mins ⁇ t ⁇ 50 mins, 50 mins ⁇ t ⁇ 60 mins, and t > 60 mins.
  • These four intervals correspond to the following time adjustments: 0, 10mins, 20mins, 30mins.
  • the travel time of the travel route under the section may be an average of a plurality of travel times.
  • the travel time of the travel target route under different congestion length intervals can be determined according to the user's own historical data or historical data of all users. Taking the travel time of the travel target route under different congestion length intervals as an example according to the user's own historical data, the determination of the time adjustment amount includes the following steps.
  • the congestion length interval to which the congestion length represented by the notification message belongs is determined, and the average value of the travel time of the travel route of the user A under the congestion length interval is calculated.
  • the congestion length 428 meters represented by the notification message in FIG. 17 belongs to the congestion length interval of 400 ⁇ S ⁇ 450.
  • the gray part data in Fig. 20 shows that the travel time of the user A traveling the target route in the congestion length interval is 65 mins and 54 mins, and the average value is 60 mins. Therefore, when the congestion length interval is 400 ⁇ S ⁇ 450, the travel time of the travel target route is 60 mins.
  • the travel time interval to which the travel time belongs in the preset map is determined according to the travel time of the user A travel target route in the congestion length interval. It can be known from the preset mapping table shown in FIG. 8 that the travel time of the user A travel target route belongs to the interval of 50 mins ⁇ t ⁇ 60 mins when the congestion length interval is 400 ⁇ S ⁇ 450.
  • the time adjustment amount corresponding to the travel time interval is found according to the preset mapping table.
  • the preset mapping table shown in FIG. 8 it can be determined that the time adjustment amount corresponding to the driving time interval is 30 mins, that is, the time adjustment amount required for the user A to travel the target route when the congestion length is 428 meters is 30 mins.
  • Fig. 23 exemplarily shows an adjustment of the alarm time of the alarm. As shown in FIG. 23, if the time adjustment amount is determined to be 30 mins according to any of the above manners, the alarm time of the alarm clock is adjusted according to the time adjustment amount, and the alarm time of the alarm 1 is adjusted to 7:30. :00.
  • the notification message pushed by the traffic application may change, that is, the degree of traffic congestion becomes more serious or mitigated.
  • the following is an example of the relief of traffic congestion.
  • Fig. 24 exemplarily shows a scenario in which the degree of traffic congestion is somewhat relieved.
  • the traffic application pushes the notification message shown in FIG. 24 again (push time 7:05).
  • the lexical analyzer is used to extract the keywords into "traffic congestion", “M to N”, and “228 meters”, and the time adjustment amount is obtained according to these keywords, and the obtained time adjustment amount is 20mins, then you can adjust the original alarm time (7:30) of alarm 1 to 7:10, as shown in Figure 25.
  • the adjusted alarm time is earlier than the current time, and should be triggered immediately.
  • Alarm clock
  • the manner of obtaining the target route is the same as that of the target route described in the weather embodiment, and details are not described herein again.
  • the traffic represented by the notification message can only affect the alarm clock after a period of time, that is, the notification message can only be associated with the alarm clock after a period of time.
  • the period of time may be, for example, 2 hours, 1 hour, or the like. Taking a period of time of 2 hours as an example, the notification message of the traffic application received at 6:00, according to the notification message, the time adjustment amount can only be after the 6:00 time and before 8:00 and before The alarm time of the alarm clock is adjusted. For example, as can be seen from FIG.
  • the current time of receiving the notification message of the traffic application is 6:05, and it can be known that the notification message can only be associated with the alarm clock 1, that is, the traffic represented by the notification message may affect the alarm clock 1.
  • noisy time Therefore, after the time adjustment amount is 30 mins, the alarm time of the alarm 1 can be adjusted from 7:30 to 7:00, as shown in FIG.
  • the alarm time of the alarm clock in addition to weather, traffic and other factors may affect the alarm time of the alarm clock, there are some events that may affect the alarm time of the alarm clock. For example, SMS, email, and other application notifications (such as meetings, etc.), calendars, memos, etc. Application pending events, etc. Next, taking the notification message provided by the mail application (that is, the first message mentioned above) as an example, how to adjust the alarm time of the alarm according to the notification message of the mail application.
  • the alarm clock within the first threshold before the occurrence time and the second threshold after the occurrence time is determined to be an alarm associated with the event.
  • the first threshold may be, for example, 30 mins
  • the second threshold may be 40 mins
  • the time range within the first threshold before the occurrence time of the event (13:30 today) and the second threshold after the occurrence time is 13:00.
  • -14:10 can be associated with alarm 2 (starting time 13:45) in Figure 3.
  • the relationship between the occurrence time of the event and the alarm time of the associated alarm clock is determined, that is, the occurrence time of the event is determined to be earlier or later than the alarm time of the alarm clock.
  • the amount of time adjustment is determined based on the relationship between the occurrence time of the event and the alarm time of the associated alarm clock.
  • the time adjustment is at least the difference between the start time and the time of occurrence.
  • the terminal can obtain the current location information of the user according to GPS or other methods, and calculate the distance between the current location of the user and the occurrence location of the event. If the distance is less than a certain threshold, the time adjustment amount may be the difference between the start time and the occurrence time. If the distance is not less than a certain threshold, the time adjustment amount may be the sum of the difference and the preparation time.
  • the certain threshold may be, for example, 300 meters, 500 meters, or the like.
  • the preparation time can be the time required from the user's current location to the location where the event occurred. The determination of the preparation time at this time can be determined by referring to the determination of the time adjustment amount in the aforementioned weather embodiment, the traffic embodiment, or the weather and traffic embodiment.
  • the time adjustment amount may be determined by the relationship between the preparation time and the difference between the start time and the event occurrence time, and the time and event will be raised in the subsequent description.
  • the difference in the time of occurrence is called the first time interval.
  • the time adjustment amount is zero. For example, if the event occurs at 14:00 and the alarm time associated with the event is 13:45, the first interval is 15 minutes. If the preparation time is 10 minutes, the preparation time is not greater than the first interval. Then, the time adjustment amount is 0, that is, the alarm time of the alarm is not adjusted.
  • the influencing factors may include both weather and traffic factors.
  • the notification message of the weather application and the notification message of the traffic application are pushed to the notification bar of the terminal sequentially or simultaneously. It is assumed that the notification message of the weather application and the notification message of the traffic application have an influence on the alarm time of the alarm. Next, the notification message of the weather application is received first, and then the notification message of the traffic application is received as an example for explanation.
  • FIG. 26 exemplarily shows a notification message of weather and traffic applications.
  • keywords can be extracted by the lexical analyzer, "07 o'clock on the 12th”, “Nanshan District”, “moderate rain”, “traffic congestion”, “M to N”, “428 meters”.
  • the influencing factors of the extracted information representation shown in FIG. 26 satisfy the preset condition, that is, the alarm time of the alarm clock needs to be adjusted according to the first message.
  • the time adjustment amount of the noisy time can specifically be compared with the travel route of the user in different weathers and different traffic congestion levels.
  • the route here can be called the target route.
  • different traffic congestion levels can be represented by different congestion lengths, and the longer the congestion length, the more serious the traffic congestion.
  • different degrees of traffic congestion may be represented by different congestion length intervals. Different degrees of traffic congestion are not limited to being represented by the length of traffic congestion, but may also be represented by other means, such as the speed of the vehicle. In the embodiment of the present application, different traffic congestion levels are represented by different congestion length intervals.
  • FIG. 27 exemplarily shows a third mapping table.
  • the time adjustment amount corresponding to the weather and the traffic congestion length represented by the first message may be determined by the third mapping table.
  • the amount of time adjustment symbolizes the degree of influence of the weather and traffic congestion length of the first message on the alarm time of the alarm clock, and the alarm application can adjust the alarm time of the alarm according to the time adjustment amount.
  • the weather and the traffic congestion length represented by the first message are determined, and the time adjustment amount corresponding to the weather and the traffic congestion length is searched according to the third mapping table.
  • the weather message in the notification message in FIG. 26 is moderately rainy, and the traffic congestion length is 428 meters.
  • the rain can be found and the traffic congestion length is 428 meters (the congestion length interval is 400).
  • the time adjustment corresponding to ⁇ S ⁇ 450) is 41 mins.
  • the time adjustment amount of the noisy time may be specifically related to the travel time of the user's travel route in different weathers and different traffic congestion lengths.
  • the travel route can be referred to as a target route.
  • Figure 28 exemplarily shows server data for weather and traffic applications.
  • the server data of the weather and traffic application may include travel times of different users traveling the target route in different weather and different congestion length intervals.
  • the alarm is the alarm 1 shown in FIG. 1 (starting time 7:30)
  • the notification message of the weather and traffic application push is the notification message shown in FIG.
  • the following methods may be used to determine the time adjustment amount of the noisy time according to the server data of the traffic application.
  • the first implementation method assumes that the 7:30 start-up time is set by the user based on the weather and good traffic time.
  • the time adjustment can be all bad weather and each The difference between the travel time of the travel target route in the congestion length interval and the travel time of the travel target route when the traffic is fine and the traffic is good.
  • the travel time of the user traveling the target route in each bad weather and each congestion length interval may be an average of a plurality of travel times.
  • the time adjustment amount of the noisy time may be determined according to the user's own historical data, and the determining of the time adjustment amount includes the following steps.
  • the average value of the travel time required for the user A to travel the target route when the weather is fine and the traffic is good is calculated. Assume that the traffic is good and the congestion length is less than 100 meters. In the data shown in Fig. 28, when the traffic is fine and the traffic is good, the travel time of the user A travel target route is 32 mins, 27 mins, and 28 mins, respectively, and the average value is 29 mins. Therefore, when the weather is fine and the traffic is good, the travel time required for the user A to travel the target route is 29 minutes.
  • the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average value of the travel time of the user A traveling the target route under the weather and in the congestion length interval is calculated.
  • the weather message represented by the notification message in Fig. 26 is moderate rain
  • the congestion length interval of the characterized traffic congestion length of 428 meters is 400 ⁇ S ⁇ 450.
  • the gray part data in Fig. 29 shows that the travel time of the user A in the weather and the traffic length section is 54 mins and 65 mins, and the average value is 60 mins. Therefore, when the medium rain and the congestion length interval is 400 ⁇ S ⁇ 450, the travel time of the travel target route is 60 mins.
  • the travel time of the target route and the medium rain and the congestion length interval are 400 ⁇ S ⁇ 450
  • the travel time required to travel the target route is determined to be moderately rained and the congestion length interval is 400 ⁇
  • the amount of adjustment of the alarm time during S ⁇ 450 is that the user A is in the middle rain and the congestion length interval is 400 ⁇ S. ⁇ 450
  • the time adjustment amount of the noisy time may be determined according to historical data of all users, and then the determination of the time adjustment amount includes the following steps.
  • the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average of the travel times of all the users in the weather and traveling the target route under the congestion length interval is calculated.
  • the weather message represented by the notification message in Fig. 26 is moderate rain
  • the congestion length interval of the characterized traffic congestion length of 428 meters is 400 ⁇ S ⁇ 450.
  • the gray part data in Fig. 31 shows that the driving time of all the users in the weather and the target length of the traffic is 54 mins, 61 mins, 65 mins, and the average value is 60 mins. Therefore, when the medium rain and the congestion length interval is 400 ⁇ S ⁇ 450, the travel time of the travel target route is 60 mins.
  • the congestion length interval is determined as 400 ⁇ S according to the travel time required for all users to travel on the target route when the traffic is good and the traffic is good, and the rainy and congestion length interval is 400 ⁇ S ⁇ 450. ⁇ 450 hours when the alarm clock is adjusted.
  • the time adjustment amount corresponding to the medium rain and the congestion length interval of 400 ⁇ S ⁇ 450 is the travel time required for the user A in the middle rain and the congestion length interval is 400 ⁇ S ⁇ 450, and the travel time is good when the traffic is good and the traffic is good.
  • the interval of different driving time of the driving target route and the time adjustment amount corresponding to different sections are preset.
  • the following intervals of four travel times t can be set: t ⁇ 40 mins, 40 mins ⁇ t ⁇ 50 mins, 50 mins ⁇ t ⁇ 60 mins, and t > 60 mins.
  • These four intervals correspond to the following time adjustments: 0, 10mins, 20mins, 30mins.
  • the travel time of the user traveling the target route in each congestion length interval may be an average of a plurality of travel times.
  • the travel time of the travel target route under different weather and different congestion lengths can be determined according to the user's own historical data or historical data of all users. Taking the travel time of the travel target route in different weathers and different congestion lengths according to the user's own historical data as an example, the determination of the time adjustment amount includes the following steps.
  • the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average value of the travel time of the user A traveling the target route under the weather and in the congestion length interval is calculated.
  • the weather message represented by the notification message in Fig. 26 is moderate rain
  • the congestion length interval of the characterized traffic congestion length of 428 meters is 400 ⁇ S ⁇ 450.
  • the gray part data in Fig. 29 shows that the travel time of the user A in the weather and the traffic length section is 54 mins and 65 mins, and the average value is 60 mins. Therefore, when the medium rain and the congestion length interval is 400 ⁇ S ⁇ 450, the travel time of the travel target route is 60 mins.
  • the travel time interval to which the travel time belongs in the preset map is determined according to the travel time of the user A travel target route in the weather and congestion length interval. It can be known from the preset map shown in FIG. 8 that the rainy time and the congestion length interval is 400 ⁇ S ⁇ 450. The travel time to which the user A travels the target route belongs is 50 mins ⁇ t ⁇ 60 mins.
  • the time adjustment amount corresponding to the travel time interval is found according to the preset mapping table.
  • the preset mapping table shown in FIG. 8 it can be determined that the time adjustment amount corresponding to the travel time interval is 30 mins, that is, the time adjustment amount required for the user A to travel the target route when the rain is 428 meters and the congestion length is 428 meters is 30 mins.
  • the adjustment of the alarm time is consistent with the adjustment of the alarm time shown in FIG. 23, and details are not described herein again.
  • the notification message of the weather application or the traffic application push may change, and the process of determining the time adjustment amount after the change may refer to the relevant parts in the foregoing weather embodiment and the traffic embodiment.
  • the adjusted starting time is earlier than the current time.
  • the alarm should be triggered immediately.
  • the manner of obtaining the target route is the same as that of the target route described in the previous embodiment, and details are not described herein again.
  • the traffic represented by the notification message can only affect the alarm clock after a period of time, that is, the notification message can only be associated with the alarm clock after a period of time.
  • the period of time may be, for example, 2 hours, 1 hour, or the like. Taking a period of time of 2 hours as an example, the notification message of the traffic application received at 6:00, according to the notification message and the notification message of the weather application, the time adjustment amount can only be used after the 6:00 time.
  • the alarm time of the alarm clock at 8:00 and before is adjusted. For example, as can be seen from FIG.
  • the current time of receiving the notification message of the traffic application is 6:05, and it can be known that the notification message can only be associated with the alarm clock 1, that is, the traffic represented by the notification message may affect the alarm clock 1.
  • noisy time Therefore, after the time adjustment amount is 30 mins, the alarm time of the alarm 1 can be adjusted from 7:30 to 7:00, as shown in FIG.
  • the influencing factors may further include events in addition to weather and traffic.
  • the time of occurrence of the event is within a time range associated with the alarm time of the alarm clock.
  • the keyword may first be extracted according to the lexical analyzer, and the weather information represented by the first message, the traffic congestion characterized by the traffic information, and the event occurrence time represented by the event information are analyzed; then the time is determined. Adjust the amount; finally adjust the alarm time based on the time adjustment amount.
  • the determination of the amount of time adjustment may include the following implementation manners.
  • the weather information included in the first message is provided by the weather application; the traffic information included in the first message is provided by the Google Maps application; the event information included in the first message is provided by the mail application.
  • the time adjustment amount corresponding to the weather, the traffic, and the event may be determined according to the fourth mapping table.
  • the fourth mapping table may include different weather, different traffic congestion levels, and a time adjustment amount corresponding to the relationship between the event occurrence time and the alarm time.
  • the specific determining process may refer to the process of determining the time adjustment amount according to the first mapping table in the weather embodiment, the process of determining the time adjustment amount according to the second mapping table in the traffic embodiment, or determining according to the third mapping table in the weather and traffic embodiment. The process of adjusting the amount of time. I will not repeat them here.
  • the amount of time adjustment can be determined based on the weather, the Google map, and the integrated server data of the mail application.
  • the integrated server data may include historical data of different users in different weather, different traffic congestion levels, and different event occurrence times and alarm time.
  • the specific determination process may refer to the process of determining the time adjustment amount according to the server data of the weather application in the weather embodiment, the process of determining the time adjustment amount according to the server data of the traffic application in the traffic embodiment, or the weather and traffic according to the weather and traffic example The process of determining the amount of time adjustments by the server data of the application. I will not repeat them here.
  • FIG. 32 is a flowchart of an alarm clock adjustment method according to an embodiment of the present invention. As shown in FIG. 32, the alarm adjustment method may include at least the following steps.
  • S101 Acquire a first message of an application in the first application list.
  • the first application list is a list of applications subscribed by the user, and the first application list includes one or more applications that the user subscribes to and can provide the first message.
  • the alarm application can obtain the first message provided by the application.
  • the first message can be obtained in the following manners.
  • the first message pushed by the application to the notification bar can be obtained through the NotificationListenerService mechanism.
  • all notification messages pushed to the notification bar can be obtained through the NotificationListenerService mechanism, and each time the notification message is obtained, the source application identifier of the notification message and all source application identifiers in the first application list can be identified. For comparison, if the source application identifier of the notification message is consistent with a source application identifier in the first application list, the notification message is subsequently processed. If not, the notification message is not processed.
  • the alarm application can also obtain the content of the message pushed to the notification bar by all the applications in the first application list by other means.
  • the first message can be requested from the server of the application in the first application list.
  • the alarm application may be authorized on the server end of the application in the first application list, and the application in the first application list is requested when the alarm application requests the first message from the server of the application in the first application list.
  • the server may detect whether the source identifier of the alarm application is consistent with the source identifier of the authorized application, and if consistent, allow the alarm application to obtain the first message from the server of the application in the first application list.
  • S103 Analyze, according to the first message, whether an influencing factor of the start time represented by the first message satisfies a preset condition.
  • the influencing factors may include at least one of weather, traffic, and events.
  • the influencing factor is weather
  • the first weather can be bad weather, such as light rain, moderate rain, heavy rain, heavy rain, thunderstorms, sleet, light snow, heavy snow, etc., which may cause people to travel inconveniently.
  • the influencing factor is traffic
  • the degree of traffic congestion can be represented by the length of the traffic congestion.
  • the influencing factor is an event
  • the first set includes a combination of at least two of the above factors, wherein the weather in each combination is consistent with the first weather, the degree of traffic congestion in each combination is greater than the traffic congestion threshold, and the occurrence time of the events in each combination is The alarm time is related to the time range associated with the alarm.
  • the time adjustment amount corresponding to the weather represented by the weather information included in the first message may be determined according to the first mapping table, where
  • the first mapping table includes time adjustment amounts corresponding to different weathers.
  • the amount of time adjustment can be determined based on the server data of the weather application.
  • the server data of the weather application includes the travel time of different users traveling different routes in different weathers.
  • the second implementation manner may be specifically referred to the embodiment of FIG. 6-8, and details are not described herein again.
  • the time adjustment amount corresponding to the traffic represented by the traffic information included in the first message may be determined according to the second mapping table, where the second mapping table includes a time adjustment amount corresponding to each of the different traffic congestion length intervals.
  • the first implementation manner may be specifically referred to the embodiment of FIG. 18, and details are not described herein again.
  • the amount of time adjustment can be determined based on the server data of the traffic application.
  • the server data of the traffic application includes the travel time of the target route of different users in different congestion length intervals.
  • the second implementation manner may be specifically referred to the embodiment of FIG. 19-22, and details are not described herein again.
  • the amount of time adjustment is determined according to the relationship between the occurrence time of the event and the alarm time of the alarm clock.
  • the time adjustment amount is at least the difference between the start time and the occurrence time.
  • the amount of time adjustment is at least the sum of the difference between the occurrence time and the preparation time minus the occurrence time.
  • the preparation time is related to at least one of traffic or weather.
  • the time adjustment amount and the preparation time are related to the size of the first time interval.
  • the first time interval is a time interval between the start time and the time of occurrence.
  • the time adjustment amount is at least a difference between the preparation time and the first time interval.
  • the time adjustment amount is zero.
  • the time adjustment amount corresponding to at least two external environmental factors represented by the weather and the traffic information represented by the weather information included in the first message may be determined according to the third mapping table, wherein the third mapping table includes different weather and traffic A combination of at least two external environmental factors each corresponding to a time adjustment amount.
  • the first implementation manner may be specifically referred to the embodiment of FIG. 27, and details are not described herein again.
  • the amount of time adjustment can be determined based on the weather application and server data of the traffic application.
  • the server data of the weather and traffic application may include travel times of different users traveling the target route in different weather and different congestion length intervals.
  • the second implementation manner may be specifically referred to the embodiment of FIG. 28-31, and details are not described herein again.
  • the influencing factors are weather, traffic, and events, there are two ways to determine the amount of time adjustment according to the first message:
  • the weather represented by the weather information included in the first message, the traffic characterized by the traffic information, and the time adjustment amount corresponding to the event characterized by the event information may be determined.
  • the fourth mapping table may include different weather, different traffic congestion levels, and a time adjustment amount corresponding to the relationship between the event occurrence time and the alarm time.
  • the first implementation manner may refer to relevant parts in the weather, traffic, and event embodiments, and details are not described herein again.
  • the amount of time adjustment can be determined based on comprehensive server data for weather, traffic, and event applications.
  • the integrated server data may include historical data of different users in different weather, different traffic congestion levels, and different event occurrence times and alarm time.
  • the event application includes an application that can provide a notification message including event information, such as a text message, a mail, a calendar, a memo, and the like.
  • the second implementation manner may refer to relevant parts in the weather, traffic, and event embodiments, and details are not described herein again.
  • the alarm time of the alarm is adjusted forward by the alarm time. For example, when the amount of time adjustment is 20 minutes, and when the alarm clock starts at 8:00, the alarm time should be adjusted to 7:40. After the time adjustment amount is obtained, it is determined that the alarm time of the adjusted alarm clock is earlier than the current time, and the alarm clock should ring immediately. For example, the current time is 7:35, the time adjustment is 30 minutes, and the alarm time is 8:00, then the alarm time should be adjusted to 7:30, already before the current time 7:35, So the alarm should be ringed immediately.
  • the traffic represented by the currently analyzed traffic information can only affect the alarm clock within a certain period of time.
  • the event characterized by the event information can only affect the alarm clock for a period of time before and after the event occurs.
  • the notification message of the traffic application obtained at 8:00 after the time adjustment amount is obtained according to the notification message, can only be used for the alarm clock that has not yet occurred at 10:00 and before.
  • the adjustment time is adjusted.
  • the most original time of the alarm clock should be adjusted according to the time adjustment amount obtained last time.
  • the alarm time of the alarm clock is 8:00, which is the original start time, but according to the notification message received at 7:00, the time adjustment amount is 30 minutes, then based on the time adjustment amount, the alarm time of the alarm is adjusted.
  • the time adjustment amount based on the notification message received at 7:20 is 20 minutes, then based on the time adjustment amount at this time, the original alarm time of the alarm clock should be adjusted to 7:00: 40.
  • the embodiment of the present invention can adjust the alarm time of the alarm clock in real time according to different influence factors of the first message representation provided by the application in the first application list subscribed by the user, and ensure the punctuality of the user travel.
  • the operating system of the mobile phone 100 is connected to the operator's network through the RF circuit 102, and is connected to the server of the cloud map manufacturer or the server of the weather provider, and receives the notification message pushed by the cloud server in real time.
  • the Android system is taken as an example, and the alarm clock application is used to parse the content of the notification bar message of the subscription application, and the preset alarm time is adjusted in real time for illustration.
  • the alarm clock application can pass the Notification Listener Service capability provided by the Android system.
  • the logical processing of the notification listener service (NotificationListenerService) implemented in the alarm clock application is registered in the Android system to obtain the content of the notification bar message of the subscription application.
  • the alarm clock application on the mobile phone 100 can perform lexical analysis on the content of the notification bar message through the lexical analyzer, and identify real-time scene information of the notification bar message of the high-definition map application or the weather application push according to the keyword.
  • the lexical analyzer can be, for example, an open source THULAC or the like.
  • the alarm clock applies a time adjustment amount A calculated according to the road condition information pushed by the high-tech map application, and estimates an adjustment amount C of the travel time according to the weather application information, assuming that the current time is M, and the ringing time is N. If N is less than or equal to M+A+C, the alarm application can immediately trigger a ringing event. If N does not satisfy the above conditions, the mobile phone 100 can be made to sleep until the alarm ringing time or the arrival of the next push message.
  • the processor 101 can automatically calculate the ringing time of the alarm clock, connect to the Internet through the WiFi device 107 or the RF circuit 102 according to the subscription application list stored in the memory 103, and receive the map server and The notification message of the real-time data pushed by the weather server performs semantic analysis on the content of the notification message, and evaluates the alarm adjustment amount according to the obtained result.
  • the ringing time is adjusted, signaling is sent to the audio circuit 109, and the speaker 113 initiates the ringing operation in advance.
  • the processor 101 calculates that it is necessary to trigger the alarm to ring, the alarm is output through the audio circuit 109 and the speaker 113.
  • the alarm clock application can also receive the notification message pushed by the server in real time through the WiFi device 107 and connected to the cloud map server or the weather server.
  • the mobile phone 100 pushes a message to a mobile phone application in the form of text according to a scene of interest to the user.
  • a mobile phone application in the form of text according to a scene of interest to the user.
  • the high-tech map application if the user pays attention to the real-time road conditions of the two locations, two locations can be set in the high-tech map application, and the high-order map server monitors the change of the traffic condition information to the mobile phone.
  • 100 sends a notification message.
  • the processor 101 in the mobile phone 100 receives a notification message through the WiFi device 107 or the radio frequency circuit 102, and notifies the corresponding application to submit the content of the notification message to the notification service of the operating system, and displays it through the display 104-2.
  • the notification bar information of the mobile phone 100 is notifies the corresponding application to submit the content of the notification message to the notification service of the operating system.
  • the notification service of the Android system applies the content of the notification message to the alarm application by the processor 101.
  • the alarm clock application registers the message processing logic into the operating system.
  • the Android operating system submits the text content of the message and the associated application identifier (packageName) to the alarm clock.
  • the text function of the notification bar can be obtained through the Android system function StatusBarNotification.getCharSequence(Notification.EXTRA_TEXT), and the application of the message source can be obtained through the Android system function StatusBarNotification.getPackageName().
  • the alarm clock application then reads the application identifier list subscribed by the user through sqlite.
  • the processor 101 in the mobile phone 100 receives the content of the notification message, and compares the identifier of the source application corresponding to the notification message with the list of subscription applications previously stored in the memory 103, if it is in the subscription list. Processing, otherwise it will not be processed.
  • the processor 101 analyzes the text content according to the lexical analyzer, extracts keywords, and recognizes the amount of time adjustment. The analysis of the lexical analyzer is described by taking the text of the notification message pushed by the high-order map server as an example.
  • the high-tech map server pushes the notification message as: "A center bookstore to B stadium traffic jam for 30 minutes.”
  • the result of the processor 101 after analysis by the lexical analyzer is: A_ns center_a bookstore_n to _v B_nz stadium _ni traffic jam_v 30_m minutes _q.
  • ns is represented as a place name
  • a is an adjective
  • n is a noun
  • v is a verb
  • nz is a special name
  • ni is an institution name
  • v is a verb
  • m is a number
  • q is a quantifier.
  • the processor 101 can parse the place name, the institution name, the verb, the number, and the quantifier by extracting the place-time adjustment amount for 30 minutes.
  • the processor 101 performs calculation according to the preset alarm time, the current time, and the time adjustment amount stored in the memory 103, and triggers a ringing operation if the condition is met.
  • the application subscription mode is added to the alarm clock application, and the user can be provided with a subscription application list, so that the user can subscribe to the notification bar notification message of the calendar, the short message, the mail, the weather, or the map, and the terminal can monitor the subscription application in real time.
  • the notification message realizes the adjustment of the preset alarm time, realizes the real-time adjustment of the alarm clock, and improves the accuracy and flexibility of the alarm adjustment.
  • the terminal can manage the ringing time of the alarm clock more accurately and intelligently, and avoid the late arrival of the user due to weather or road conditions. Users can subscribe to various application notification bar messages when they set the alarm clock, collect real-time information such as road conditions and weather, and automatically adjust the ringing time, which greatly improves the convenience of users.
  • Some embodiments of the present application may also obtain the content of the notification bar notification message by using a notification listener service (NotificationListenerService), and obtain a time adjustment amount according to the external scene factor according to the lexical analyzer, and then adjust the pre-adjustment according to the time adjustment amount. Setting the alarm time improves the accuracy of the alarm and improves the efficiency and intelligence of the terminal automatic adjustment.
  • NotificationListenerService a notification listener service
  • the embodiment of the present application provides a method for alerting an alarm clock, and the method is implemented on an electronic device.
  • the method includes:
  • the electronic device receives an input of an alarm setting, where the alarm setting includes a first time and application message subscription information, and the first time is set as an alarm time according to the alarm setting, and the application message subscription information includes Subscribe to the app.
  • the electronic device monitors a notification message of the subscription application according to the subscription application.
  • S3403 The electronic device acquires an alarm adjustment amount according to the notification message, corrects the first time according to the alarm adjustment amount to obtain a second time, and sets the second time as an alarm time.
  • the embodiment is to make the electronic device more flexible to set the alarm clock and adjust the alarm clock, and prompt the alarm in time, thereby improving the intelligence of the electronic device and improving the user experience.
  • the notification message includes a notification bar notification message of the electronic device.
  • the subscription application includes at least two applications.
  • the subscription application may include a weather application and a map application due to the greater impact of weather and traffic on the user's travel.
  • Temporary meeting notifications can also affect the user's travel
  • the subscription application can also include a calendar application or an email application.
  • the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event represented by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, if the event occurs earlier than the start time, and the difference between the occurrence time minus the event occurrence time is less than the first threshold, according to the event Information gets the amount of alarm adjustment.
  • the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event represented by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, if the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm adjustment amount is obtained according to the event information.
  • the alarm clock setting includes a target route
  • the notification message includes a travel time required for the target route in the first weather condition
  • the electronic device acquires an alarm clock adjustment amount according to the notification message.
  • the method includes: the electronic device determining an alarm adjustment amount according to the travel time required in the case of the first weather information.
  • the travel time required for the target route in the first weather situation may be acquired by the weather application, or may be obtained by using a map application, or may be obtained by working together by two applications, which is not specifically limited in this embodiment.
  • the subscription application includes a calendar application
  • the obtaining the alarm clock adjustment amount according to the notification message specifically includes: determining an alarm clock adjustment amount according to the event information in the calendar application notification information.
  • the electronic device analyzes the notification message by a lexer.
  • the electronic device receives an operation of querying the alarm clock, and displays the alarm clock subscription application information.
  • the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message further includes: the electronic device acquiring an alarm clock corresponding to the event information according to the event information query mapping table in the notification message Adjustment amount.
  • the embodiment of the present application discloses a terminal device 3310.
  • the terminal device 3310 may include a touch screen 3311, a processor 3312, and a memory 3313, and further includes one or more communication buses 3314 connecting the devices.
  • the terminal device 3310 in the embodiment of the present application may be used to implement the technical solutions in the respective methods and the drawings in the foregoing embodiments.
  • the embodiment of the present application further provides a terminal device, which has the function of realizing the behavior of the terminal device in the actual method.
  • the functions may be implemented by hardware or by corresponding software implemented by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center via wired (eg, coaxial cable, fiber optic, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, an optical medium such as a DVD, or a semiconductor medium such as a solid state hard disk or the like.

Abstract

Provided in an embodiment of the present invention is a method for detecting a communication signal. The method is realized in a terminal device. A terminal device detects a trigger event, and conducts self-detection according to the trigger event. The self-detection involves detecting a state of a wireless signal of the terminal device. Notification information is provided when the wireless signal is determined to be abnormal according to the self-detection. The technical solution provided in the embodiment of the present invention improves self-detection capability and efficiency of a terminal device while reducing operations to be performed by a user, thereby improving user experience.

Description

一种闹钟提醒方法及终端设备Alarm clock reminding method and terminal device 技术领域Technical field
本申请实施例涉及终端技术领域,尤其涉及一种闹钟提醒方法及电子设备。The embodiments of the present invention relate to the field of terminal technologies, and in particular, to an alarm clock reminding method and an electronic device.
背景技术Background technique
手机已渗透到人们的生活的各个角度。随着智能手机的越来越普及,智能手机对人民的生活的影响越来越广,而在智能手机的应用App中,闹钟App也是最常用的应用之一,一日之计在于晨,用户每天几乎都是以闹钟App开始的。Mobile phones have penetrated into every aspect of people's lives. With the increasing popularity of smartphones, smartphones have a greater impact on people's lives. In the app app of smartphones, the alarm app is one of the most commonly used applications. The day is in the morning, the user Almost every day starts with the alarm clock app.
对于普通的上班族来说,每天都需要定时定点的去公司打卡,而出行基本集中在自驾、公共交通、骑行等,对于自驾的上班来说,随着城市交通越来越拥堵,常常受道路的拥塞情况,天气等外界因素的影响,导致上班迟到。目前闹钟的App设定的闹钟时间都是静态的,而无法根据用户实时的场景自动的动态调整,这里的因素包括但不限于:用户的会议邮件,用户的工作日历,上班途中交通道路的拥堵情况,地域的天气因素等。目前随着互联网技术的发展,很多基础服务厂商都开放出来自己的服务供其他第三方的App直接使用,比如Google,高德等就开放了地图路况的服务,AccuWeather就开放了天气的服务,并且这些服务都提供了相关的消息推送机制,可以将场景信息推送到手机端。但这个服务依然不能满足用户的需求。For ordinary office workers, it is necessary to go to the company to check the cards regularly, and the travel is basically concentrated on self-driving, public transportation, cycling, etc. For self-driving work, as urban traffic becomes more and more congested, it is often Congestion of the road, weather and other external factors, resulting in late work. At present, the alarm time set by the App of the alarm clock is static, and cannot be automatically adjusted according to the real-time scene of the user. The factors here include but are not limited to: the user's meeting mail, the user's work calendar, and the traffic road congestion on the way to work. Situation, geographical weather factors, etc. At present, with the development of Internet technology, many basic service providers have opened their own services for use by other third-party apps. For example, Google, Gaode, etc. have opened the service of map traffic conditions, AccuWeather has opened the weather service, and These services provide a related message push mechanism that can push scene information to the mobile terminal. But this service still can not meet the needs of users.
发明内容Summary of the invention
为解决上述技术问题,本申请实施例提供多种闹钟提醒的方法及电子设备,极大提高了电子设备的闹铃的灵活性和智能化,简化用户的操作步骤,同时还提高了用户体验。To solve the above technical problem, the embodiment of the present application provides a method and an electronic device for alerting various alarms, which greatly improves the flexibility and intelligence of the alarm of the electronic device, simplifies the operation steps of the user, and improves the user experience.
第一方面,本申请实施例提供一种闹钟提醒的方法,所述方法在电子设备上实现,所述方法包括:所述电子设备接收闹钟设置的输入,所述闹钟设置包括第一时间和应用消息订阅信息,根据所述闹钟设置将所述第一时间设置为闹铃时间,所述应用消息订阅信息包括订阅应用。所述电子设备根据所述订阅应用监控到所述订阅应用的通知消息。所述电子设备根据所述通知消息获取闹钟调整量,根据所述闹钟调整量校正所述第一时间得到第二时间,将所述第二时间设置为闹铃时间。上述技术方案是使得电子设备更加灵活的设置闹钟和调整闹钟,并且及时提示闹铃,提高了电子设备的智能化,也提高了用户的体验。In a first aspect, an embodiment of the present application provides a method for alarming an alarm, the method being implemented on an electronic device, the method comprising: the electronic device receiving an input of an alarm setting, where the alarm setting includes a first time and an application The message subscription information sets the first time as an alarm time according to the alarm setting, and the application message subscription information includes a subscription application. The electronic device monitors a notification message of the subscription application according to the subscription application. The electronic device acquires an alarm adjustment amount according to the notification message, corrects the first time according to the alarm adjustment amount to obtain a second time, and sets the second time as an alarm time. The above technical solution is to make the electronic device more flexible to set an alarm clock and adjust the alarm clock, and prompt the alarm in time, thereby improving the intelligence of the electronic device and improving the user experience.
在一种可能的实现方式中,所述通知消息包括所述电子设备的通知栏通知消息。In a possible implementation manner, the notification message includes a notification bar notification message of the electronic device.
在一种可能的实现方式中,所述订阅应用包括至少两个应用。In a possible implementation manner, the subscription application includes at least two applications.
在另外一种可能的实现方式中,所述电子设备根据所述通知消息获取闹钟调整量具体包括:所述电子设备获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若所述事件的发生时间早于起闹时间,且起闹时间减去事件发生时间的差值小于第一阈值,根据所述事件信息获取闹钟调整量。 In another possible implementation manner, the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event characterized by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, if the occurrence time of the event is earlier than the start time, and the difference between the occurrence time minus the event occurrence time is less than the first threshold, according to the The event information gets the amount of alarm adjustment.
在另外一种可能的实现方式中,所述电子设备根据所述通知消息获取闹钟调整量具体包括:所述电子设备获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若起闹时间早于事件发生时间,且事件发生时间减去起闹时间小于第二阈值,根据所述事件信息获取闹钟调整量。In another possible implementation manner, the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event characterized by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, and if the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm adjustment amount is obtained according to the event information. .
在另外一种可能的实现方式中,所述闹钟设置包括目标路线,所述通知消息包括在第一天气情况下目标路线所需的路途时间,所述电子设备根据所述通知消息获取闹钟调整量具体包括:所述电子设备根据在所述第一天气信息情况下所需的所述路途时间确定闹钟调整量。In another possible implementation manner, the alarm clock setting includes a target route, the notification message includes a travel time required for the target route in the first weather condition, and the electronic device acquires an alarm clock adjustment amount according to the notification message. Specifically, the electronic device determines an alarm adjustment amount according to the travel time required in the case of the first weather information.
在另外一种可能的实现方式中,所述订阅应用包括日历应用,所述根据所述通知消息获取闹钟调整量具体还包括:根据所述日历应用通知信息中的事件信息确定闹钟调整量。In another possible implementation, the subscription application includes a calendar application, and the obtaining the alarm adjustment amount according to the notification message specifically includes: determining an alarm adjustment amount according to the event information in the calendar application notification information.
在另外一种可能的实现方式中,所述电子设备通过词法分析器分析所述通知消息。In another possible implementation manner, the electronic device analyzes the notification message by using a lexical analyzer.
在另外一种可能的实现方式中,所述电子设备接收查询所述闹钟的操作,显示所述闹钟订阅应用信息。In another possible implementation manner, the electronic device receives an operation of querying the alarm clock, and displays the alarm clock subscription application information.
在另外一种可能的实现方式中,所述电子设备根据所述通知消息获取闹钟调整量具体还包括:所述电子设备根据所述通知消息中的事件信息查询映射表获取所述事件信息对应的闹钟调整量。In another possible implementation manner, the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message further includes: the electronic device acquiring, according to the event information query mapping table in the notification message, the event information The amount of alarm adjustment.
第二方面,本申请实施例提供一种电子设备,包括显示屏,存储器,一个或多个处理器,至少一个应用程序,以及一个或多个计算机程序;其中上述一个或多个计算机程序被存储在上述存储器中;其特征在于,上述电子设备可以用于执行上述的方法。In a second aspect, an embodiment of the present application provides an electronic device, including a display screen, a memory, one or more processors, at least one application, and one or more computer programs; wherein the one or more computer programs are stored In the above memory; characterized in that the above electronic device can be used to perform the above method.
第三方面,本申请实施例提供一种电子设备,包括:触摸屏,其中,上述触摸屏包括触敏表面和显示器;一个或多个处理器;存储器;多个应用程序;以及一个或多个计算机程序,其中上述一个或多个计算机程序被存储在上述存储器中,上述一个或多个计算机程序包括指令,当上述指令被上述电子设备执行时,使得上述电子设备执行上述的方法。In a third aspect, an embodiment of the present application provides an electronic device, including: a touch screen, wherein the touch screen includes a touch-sensitive surface and a display; one or more processors; a memory; a plurality of applications; and one or more computer programs And wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform the method.
第四方面,本申请实施例提供一种电子设备,所述电子设备包括处理器和触摸屏,其中,所述触摸屏用于接收闹钟设置的输入,所述闹钟设置包括第一时间和应用消息订阅信息,根据所述闹钟设置将所述第一时间设置为闹铃时间,所述应用消息订阅信息包括订阅应用。所述处理器用于根据所述订阅应用监控到所述订阅应用的通知消息。所述处理器还用于根据所述通知消息获取闹钟调整量,根据所述闹钟调整量校正所述第一时间得到第二时间,将所述第二时间设置为闹铃时间。In a fourth aspect, an embodiment of the present application provides an electronic device, where the electronic device includes a processor and a touch screen, wherein the touch screen is configured to receive an input of an alarm setting, where the alarm setting includes a first time and application message subscription information. And setting the first time as an alarm time according to the alarm clock setting, where the application message subscription information includes a subscription application. The processor is configured to monitor a notification message of the subscription application according to the subscription application. The processor is further configured to acquire an alarm adjustment amount according to the notification message, correct the first time according to the alarm adjustment amount to obtain a second time, and set the second time as an alarm time.
在一种可能的实现方式中,所述处理器还用于获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若所述事件的发生时间早于起闹时间,且起闹时间减去事件发生时间的差值小于第一阈值,根据所述事件信息获取闹钟调整量。In a possible implementation manner, the processor is further configured to acquire event information of the notification message, and determine whether an event occurrence time of the event information represented by the notification message is in a time associated with an alarm time of an alarm clock. In the range, if the occurrence time of the event is earlier than the start time, and the difference between the start time minus the event occurrence time is less than the first threshold, the alarm adjustment amount is obtained according to the event information.
在一种可能的实现方式中,所述处理器还用于获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若起闹时间早于事件发生时间,且事件发生时间减去起闹时间小于第二阈值,根据所述事件信息获取闹钟调整量。In a possible implementation manner, the processor is further configured to acquire event information of the notification message, and determine whether an event occurrence time of the event information represented by the notification message is in a time associated with an alarm time of an alarm clock. In the range, if the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm adjustment amount is obtained according to the event information.
在另外一种可能的实现方式中,所述电子设备还包括显示屏,所述显示屏用于显示所述通知消息In another possible implementation manner, the electronic device further includes a display screen, where the display screen is used to display the notification message.
在另外一种可能的实现方式中,所述触摸屏还用于接收查询所述闹钟的操作,所述显示屏还用于显示所述闹钟订阅应用信息。 In another possible implementation manner, the touch screen is further configured to receive an operation for querying the alarm clock, and the display screen is further configured to display the alarm clock subscription application information.
第五方面,本申请实施例又提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a fifth aspect, the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores instructions that, when run on a computer, cause the computer to perform the methods described in the above aspects.
第六方面,本申请实施例又提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。In a sixth aspect, the embodiment of the present application further provides a computer program product comprising instructions, which when executed on a computer, cause the computer to perform the method described in the above aspects.
应当理解的是,本申请中对技术特征、技术方案、有益效果或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或有益效果的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或有益效果。因此,本说明书中对于技术特征、技术方案或有益效果的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合本实施例中所描述的技术特征、技术方案和有益效果。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或有益效果即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和有益效果。The description of the technical features, technical solutions, advantages, or similar language in this application is not intended to suggest that all features and advantages may be realized in any single embodiment. Rather, it is to be understood that a description of a feature or benefit is meant to include a particular technical feature, technical solution, or benefit in at least one embodiment. Therefore, descriptions of technical features, technical solutions, or advantageous effects in the present specification are not necessarily referring to the same embodiments. Further, the technical features, technical solutions, and advantageous effects described in the embodiment can also be combined in any suitable manner. Those skilled in the art will appreciate that embodiments may be implemented without one or more specific technical features, technical solutions, or advantages of the specific embodiments. In other embodiments, additional technical features and benefits may also be identified in a particular embodiment that does not embody all embodiments.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below.
图1是一些实施例中手机100的硬件结构示意图;1 is a schematic diagram showing the hardware structure of a mobile phone 100 in some embodiments;
图2A-2B为本申请一些实施例提供的终端设备上显示的图形用户界面的示意图;2A-2B are schematic diagrams showing a graphical user interface displayed on a terminal device according to some embodiments of the present disclosure;
图3为本申请一些实施例提供的终端设备上显示的图形用户界面的示意图;3 is a schematic diagram of a graphical user interface displayed on a terminal device according to some embodiments of the present disclosure;
图4为本申请实施例提供的一种天气应用通知消息的图形用户界面图;4 is a graphical user interface diagram of a weather application notification message according to an embodiment of the present application;
图5为本申请实施例提供的一种第一映射表示意图;FIG. 5 is a schematic diagram of a first mapping table according to an embodiment of the present application;
图6-7为本申请实施例提供的一种天气应用服务器数据示意图;6-7 are schematic diagrams of data of a weather application server according to an embodiment of the present application;
图8为本申请实施例提供的一种预置映射表示意图;FIG. 8 is a schematic diagram of a preset mapping table according to an embodiment of the present application;
图9为本申请实施例提供的一种闹钟起闹时间的调整示意图;FIG. 9 is a schematic diagram of adjusting an alarm time of an alarm clock according to an embodiment of the present application;
图10为本申请实施例提供的另一种天气应用通知消息的图形用户界面图;FIG. 10 is a graphical user interface diagram of another weather application notification message according to an embodiment of the present application;
图11为本申请实施例提供的另一种闹钟起闹时间的调整示意图;FIG. 11 is a schematic diagram of another alarm clock setting time adjustment according to an embodiment of the present application;
图12为本申请实施例提供的又一种天气应用通知消息的图形用户界面图;FIG. 12 is a graphical user interface diagram of still another weather application notification message according to an embodiment of the present application;
图13为本申请实施例提供的又一种闹钟起闹时间的调整示意图;FIG. 13 is a schematic diagram of another adjustment of an alarm clock setting time according to an embodiment of the present application; FIG.
图14为本申请实施例提供的一种目标路线设置示意图;FIG. 14 is a schematic diagram of a target route setting according to an embodiment of the present application;
图15-16为本申请实施例提供的另一种目标路线设置示意图;15-16 are schematic diagrams of another target route setting provided by an embodiment of the present application;
图17为本申请实施例提供的一种谷歌地图应用通知消息的图形用户界面图;FIG. 17 is a graphical user interface diagram of a Google Maps application notification message according to an embodiment of the present application;
图18为本申请实施例提供的一种第二映射表示意图;FIG. 18 is a schematic diagram of a second mapping table according to an embodiment of the present application;
图19-22为本申请实施例提供的一种交通应用服务器数据示意图;19-22 are schematic diagrams of data of a traffic application server according to an embodiment of the present application;
图23为本申请实施例提供的另一种闹钟起闹时间的调整示意图;FIG. 23 is a schematic diagram of adjustment of another alarm clock setting time according to an embodiment of the present application; FIG.
图24为本申请实施例提供的另一种谷歌地图应用通知消息的图形用户界面图;24 is a graphical user interface diagram of another Google Maps application notification message according to an embodiment of the present application;
图25为本申请实施例提供的又一种闹钟起闹时间的调整示意图;FIG. 25 is a schematic diagram of another adjustment of an alarm clock setting time according to an embodiment of the present application; FIG.
图26为本申请实施例提供的一种天气和谷歌地图应用通知消息的图形用户界面图; 26 is a graphical user interface diagram of a weather and Google Maps application notification message according to an embodiment of the present application;
图27为本申请实施例提供的一种第三映射表示意图;FIG. 27 is a schematic diagram of a third mapping table according to an embodiment of the present application;
图28-31为本申请实施例提供的一种天气及交通应用服务器数据示意图;28-31 are schematic diagrams of data of a weather and traffic application server according to an embodiment of the present application;
图32为本申请实施例提供的一种闹钟调整方法示意图;FIG. 32 is a schematic diagram of an alarm clock adjustment method according to an embodiment of the present application;
图33为本申请一些实施例中的电子设备的结构示意图;33 is a schematic structural diagram of an electronic device in some embodiments of the present application;
图34为本申请实施例提供的另一种闹钟调整方法示意图。FIG. 34 is a schematic diagram of another method for adjusting an alarm clock according to an embodiment of the present application.
具体实施方式detailed description
本申请实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个相绑定的列出项目的任何或所有可能组合。The terms used in the embodiments of the present application are for the purpose of describing the specific embodiments, and are not intended to limit the invention. As used in the specification and the claims of the present application, the singular forms "a", ""," The plural expressions are included unless they are expressly indicated to the contrary. It will also be understood that the term "and/or" as used in this application is meant to include and encompass any and all possible combinations of one or more of the associated listed items.
在现有技术中,用户设定闹钟的时候,会提前预置好天气与时间调整量的关系,以及交通状况与时间调整量的关系,当用户设定完闹钟之后,根据当天的情况会来调整闹钟的时间。调整闹钟的时间调整量的设置可以参考如表1所示。表1中示出了天气信息与时间调整量的对应关系,根据表1中的天气关键字可以查找对应的时间调整量。举例说明,手机原设定闹钟为早上7:00,如果手机获取到当天早上的天气为晴/多云,则根据表1中获取时间调整量为0,说明闹钟时间不需要调整。若当天早上的天气为小雨,根据表1获取时间调整量为提前10分钟,则手机自动将闹钟调整为6:50。其他情形可参考表1类推。In the prior art, when the user sets the alarm clock, the relationship between the weather and the time adjustment amount, and the relationship between the traffic condition and the time adjustment amount are preset in advance. When the user sets the alarm clock, the user will come according to the situation of the day. Adjust the time of the alarm clock. Refer to Table 1 for the setting of the time adjustment amount for adjusting the alarm clock. The correspondence between the weather information and the time adjustment amount is shown in Table 1, and the corresponding time adjustment amount can be found according to the weather keyword in Table 1. For example, the original alarm clock of the mobile phone is 7:00 in the morning. If the weather of the mobile phone is sunny/cloudy in the morning, the time adjustment amount according to Table 1 is 0, indicating that the alarm time does not need to be adjusted. If the weather in the morning is light rain, the time adjustment amount is 10 minutes in advance according to Table 1, the mobile phone automatically adjusts the alarm clock to 6:50. For other situations, please refer to Table 1 for analogy.
表1Table 1
在现有技术中,用户设定闹钟的时候,还可以设置根据交通状况来调整闹钟。如表2所示的交通状况与时间调整量的对应关系表中。举例说明,手机原设定闹钟为早上7:00,如果手机获取到当天早上交通情况良好,则根据表2中获取时间调整量为0,说明闹钟时间不需要调整。若当天早上的交通情况为轻In the prior art, when the user sets an alarm, it is also possible to set an alarm to be adjusted according to traffic conditions. As shown in Table 2, the correspondence between traffic conditions and time adjustments is shown in the table. For example, the original alarm clock of the mobile phone is 7:00 in the morning. If the mobile phone gets good traffic in the morning, the time adjustment amount according to Table 2 is 0, indicating that the alarm time does not need to be adjusted. If the traffic situation in the morning is light
天气关键字Weather keyword 晴/多云Sunny/cloudy 小雨Light rain 中雨Rain 大雨/暴雨Heavy rain / heavy rain
时间调整量Time adjustment 00 提前10分钟10 minutes in advance 提前20分钟20 minutes in advance 提前30分钟30 minutes in advance
天气关键字Weather keyword 小雪Light snow 中雪/暴雪Snow/blizzard 台风typhoon ……......
时间调整量 Time adjustment 提前20分钟20 minutes in advance 提前30分钟30 minutes in advance 提前30分钟30 minutes in advance ……......
度塞车,根据表2获取时间调整量为提前20分钟,则手机自动将闹钟调整为6:40。其他情形可参考表2类推。For the traffic jam, according to Table 2, the time adjustment amount is 20 minutes ahead of time, then the mobile phone automatically adjusts the alarm clock to 6:40. For other situations, please refer to Table 2 for analogy.
表2Table 2
现有技术中,闹钟的调整还可以增加影响闹钟调整的其他因素,例如温度,以及用户准备的时长In the prior art, the adjustment of the alarm clock can also increase other factors that affect the adjustment of the alarm clock, such as temperature, and the length of time the user prepares.
等,还可以为每个因素设置不同的权重,还可以自动存储最近一段时间的数据,用来评估新的延误时间,最终计算出来当天的闹钟时间。由于闹钟调整量的精度会受到各个因素的影响,例如,天气状况Etc., you can also set different weights for each factor, and also automatically store the data for the most recent period of time, to evaluate the new delay time, and finally calculate the alarm time of the day. Because the accuracy of the alarm adjustment amount will be affected by various factors, such as weather conditions.
交通关键字Traffic keyword 良好good 轻度塞车Mild traffic jam 严重塞车Serious traffic jam ……......
时间调整量 Time adjustment 00 提前20分钟20 minutes in advance 提前30分钟30 minutes in advance ……......
只是单纯定了小雨,中雨,大雨等,交通方面定义轻度阻塞,中度阻塞等,每个等级对应的时间调整量还需要用户自己设置。这样就导致用户可能设置的调整量不准确,导致精度有影响。例如,在6:30的时候道路有车辆碰擦导致拥堵,但在7:00路障已经清理。则交通状况则不应当影响闹钟的调整,但是手机却不能灵活的处理该类情况。It is only a matter of light rain, moderate rain, heavy rain, etc., traffic definition defines light blockage, moderate blockage, etc. The time adjustment amount corresponding to each level also needs to be set by the user. This results in inaccurate adjustments that the user may set, resulting in an impact on accuracy. For example, at 6:30, there are vehicles rubbing on the road causing congestion, but the 7:00 roadblock has been cleared. Traffic conditions should not affect the adjustment of the alarm clock, but the mobile phone cannot handle this kind of situation flexibly.
如图1所示,本申请实施例中的电子设备可以为手机100。下面以手机100为例对实施例进行具体说明。应该理解的是,图示手机100仅是电子设备的一个范例,并且手机100可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。As shown in FIG. 1 , the electronic device in the embodiment of the present application may be the mobile phone 100 . The embodiment will be specifically described below by taking the mobile phone 100 as an example. It should be understood that the illustrated mobile phone 100 is only one example of an electronic device, and the mobile phone 100 may have more or fewer components than those shown in the figures, two or more components may be combined, or Has a different component configuration. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
如图1所示,手机100具体可以包括:处理器101、射频(radio frequency,RF)电路102、存储器103、触摸屏104、蓝牙装置105、一个或多个传感器106、WI-FI装置107、定位装置108、音频电路109、外设接口110以及电源系统111等部件。这些部件可通过一根或多根通信总线或信号线(图1中未示出)进行通信。本领域技术人员可以理解,图1中示出的硬件结构并不构成对手机100的限定,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 1 , the mobile phone 100 may specifically include: a processor 101, a radio frequency (RF) circuit 102, a memory 103, a touch screen 104, a Bluetooth device 105, one or more sensors 106, a WI-FI device 107, and positioning. Components such as device 108, audio circuit 109, peripheral interface 110, and power system 111. These components can communicate over one or more communication buses or signal lines (not shown in Figure 1). It will be understood by those skilled in the art that the hardware structure shown in FIG. 1 does not constitute a limitation on the mobile phone 100, and the mobile phone 100 may include more or less components than those illustrated, or combine some components, or different component arrangements. .
下面结合图1对手机100的各个部件进行具体的介绍:The various components of the mobile phone 100 will be specifically described below with reference to FIG. 1 :
处理器101是手机100的控制中心,利用各种接口和线路连接手机100的各个部分,通过运行或执行存储在存储器103内的应用程序(Application,简称App),以及调用存储在存储器103内的数据和指令,执行手机100的各种功能和处理数据。在一些实施例中,处理器101可包括一个或多个处理单元;处理器101还可以集成应用处理器和调制解调处理器;其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器101中。在本申请一些实施例中,上述处理器101还可以包括指纹验证芯片,用于对采集到的指纹进行验证。The processor 101 is a control center of the mobile phone 100, and connects various parts of the mobile phone 100 by using various interfaces and lines, by running or executing an application (Application, referred to as App) stored in the memory 103, and calling the storage in the memory 103. The data and instructions perform various functions and processing data of the handset 100. In some embodiments, processor 101 may include one or more processing units; processor 101 may also integrate an application processor and a modem processor; wherein the application processor primarily processes operating systems, user interfaces, applications, etc. The modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 101. In some embodiments of the present application, the processor 101 may further include a fingerprint verification chip for verifying the collected fingerprint.
射频电路102可用于在收发信息或通话过程中,无线信号的接收和发送。具体地,射频电路102可以将基站的下行数据接收后,给处理器101处理;另外,将涉及上行的数据发送给基站。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路102还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。The radio frequency circuit 102 can be used to receive and transmit wireless signals during transmission or reception of information or calls. Specifically, the radio frequency circuit 102 can process the downlink data of the base station and then process it to the processor 101. In addition, the data related to the uplink is sent to the base station. Generally, radio frequency circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency circuit 102 can also communicate with other devices through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to global mobile communication systems, general packet radio services, code division multiple access, wideband code division multiple access, long term evolution, email, short message service, and the like.
存储器103用于存储应用程序以及数据,处理器101通过运行存储在存储器103的应用程序以及数据,执行手机100的各种功能以及数据处理。存储器103主要包括存储程序区以及存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等);存储数据区可以存储根据使用手机100时所创建的数据(比如音频数据、电话本等)。此外,存储器103可以包括高速随机存取存储器,还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。存储器103可以存储各种操作系统,例如苹果公司所开发的
Figure PCTCN2017096467-appb-000001
操作系统,谷歌公司所开发的
Figure PCTCN2017096467-appb-000002
操作系统等。
The memory 103 is used to store applications and data, and the processor 101 executes various functions and data processing of the mobile phone 100 by running applications and data stored in the memory 103. The memory 103 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.); the storage data area can be stored according to the use of the mobile phone. Data created at 100 o'clock (such as audio data, phone book, etc.). Further, the memory 103 may include a high speed random access memory, and may also include a nonvolatile memory such as a magnetic disk storage device, a flash memory device, or other volatile solid state storage device. The memory 103 can store various operating systems, such as those developed by Apple.
Figure PCTCN2017096467-appb-000001
Operating system, developed by Google Inc.
Figure PCTCN2017096467-appb-000002
Operating system, etc.
触摸屏104可以包括触敏表面104-1和显示器104-2。其中,触敏表面104-1(例如触控面板)可采集手机100的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触敏表面104-1上或在触敏表面104-1附近的操作),并将采集到的触摸信息发送给其他器件例如处理器101。 其中,用户在触敏表面104-1附近的触摸事件可以称之为悬浮触控;悬浮触控可以是指,用户无需为了选择、移动或拖动目标(例如图标等)而直接接触触控板,而只需用户位于电子设备附近以便执行所想要的功能。在悬浮触控的应用场景下,术语“触摸”、“接触”等不会暗示用于直接接触触摸屏,而是在其附近或接近的接触。能够进行悬浮触控的触敏表面104-1可以采用电容式、红外光感以及超声波等实现。触敏表面104-1可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再发送给处理器101,触摸控制器还可以接收处理器101发送的指令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现触敏表面104-1。显示器(也称为显示屏)104-2可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单。可以采用液晶显示器、有机发光二极管等形式来配置显示器104-2。触敏表面104-1可以覆盖在显示器104-2之上,当触敏表面104-1检测到在其上或附近的触摸事件后,传送给处理器101以确定触摸事件的类型,随后处理器101可以根据触摸事件的类型在显示器104-2上提供相应的视觉输出。虽然在图1中,触敏表面104-1与显示屏104-2是作为两个独立的部件来实现手机100的输入和输出功能,但是在某些实施例中,可以将触敏表面104-1与显示屏104-2集成而实现手机100的输入和输出功能。可以理解的是,触摸屏104是由多层材料堆叠而成,本申请实施例中只展示出了触敏表面(层)和显示屏(层),其他层在本申请实施例中不予记载。另外,在本申请其他一些实施例中,触敏表面104-1可以覆盖在显示器104-2之上,并且触敏表面104-1的尺寸大于显示屏104-2的尺寸,使得显示屏104-2全部覆盖在触敏表面104-1下面,或者,上述触敏表面104-1可以以全面板的形式配置在手机100的正面,也即用户在手机100正面的触摸均能被手机感知,这样就可以实现手机正面的全触控体验。在其他一些实施例中,触敏表面104-1以全面板的形式配置在手机100的正面,显示屏104-2也可以以全面板的形式配置在手机100的正面,这样在手机的正面就能够实现无边框的结构。 Touch screen 104 can include touch sensitive surface 104-1 and display 104-2. The touch-sensitive surface 104-1 (eg, a touch panel) can collect touch events on or near the user of the mobile phone 100 (eg, the user uses a finger, a stylus, or the like on the touch-sensitive surface 104-1. Or operation in the vicinity of the touch-sensitive surface 104-1), and the collected touch information is transmitted to other devices such as the processor 101. The touch event of the user in the vicinity of the touch-sensitive surface 104-1 may be referred to as a hovering touch; the hovering touch may mean that the user does not need to directly touch the touch pad in order to select, move or drag a target (eg, an icon, etc.) And only the user is located near the electronic device in order to perform the desired function. In the context of a floating touch application, the terms "touch", "contact", and the like do not imply a direct contact with the touch screen, but rather a proximity or proximity contact. The touch-sensitive surface 104-1 capable of floating touch can be realized by capacitive, infrared light, ultrasonic, or the like. The touch sensitive surface 104-1 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits a signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the touch information into contact coordinates, and then Sended to the processor 101, the touch controller can also receive instructions from the processor 101 and execute them. In addition, the touch sensitive surface 104-1 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. A display (also referred to as display) 104-2 can be used to display information entered by the user or information provided to the user as well as various menus of the mobile phone 100. The display 104-2 can be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The touch-sensitive surface 104-1 can be overlaid on the display 104-2, and when the touch-sensitive surface 104-1 detects a touch event on or near it, is transmitted to the processor 101 to determine the type of touch event, followed by the processor 101 may provide a corresponding visual output on display 104-2 depending on the type of touch event. Although in FIG. 1, touch-sensitive surface 104-1 and display 104-2 are implemented as two separate components to implement the input and output functions of handset 100, in some embodiments, touch-sensitive surface 104- 1 is integrated with the display screen 104-2 to implement the input and output functions of the mobile phone 100. It can be understood that the touch screen 104 is formed by stacking a plurality of layers of materials. In the embodiment of the present application, only the touch-sensitive surface (layer) and the display screen (layer) are shown, and other layers are not described in the embodiment of the present application. Additionally, in some other embodiments of the present application, the touch-sensitive surface 104-1 can be overlaid on the display 104-2, and the size of the touch-sensitive surface 104-1 is greater than the size of the display 104-2 such that the display 104- 2 is completely covered under the touch-sensitive surface 104-1, or the touch-sensitive surface 104-1 may be disposed on the front side of the mobile phone 100 in a full-board form, that is, the user's touch on the front of the mobile phone 100 can be perceived by the mobile phone. You can achieve a full touch experience on the front of your phone. In some other embodiments, the touch-sensitive surface 104-1 is disposed on the front side of the mobile phone 100 in a full-board form, and the display screen 104-2 may also be disposed on the front side of the mobile phone 100 in the form of a full-board, such that the front side of the mobile phone is Can achieve a borderless structure.
在本申请各个实施例中,手机100还可以具有指纹识别功能。例如,可以在手机100的背面(例如后置摄像头的下方)配置指纹识别器112,或者在手机100的正面(例如触摸屏104的下方)配置指纹识别器112。另外,也可以通过在触摸屏104中配置指纹识别器112来实现指纹识别功能,即指纹识别器112可以与触摸屏104集成在一起来实现手机100的指纹识别功能。在这种情况下,该指纹识别器112可以配置在触摸屏104中,可以是触摸屏104的一部分,也可以以其他方式配置在触摸屏104中。另外,该指纹识别器112还可以被实现为全面板指纹识别器,因此,可以把触摸屏104看成是任何位置都可以进行指纹采集的一个面板。该指纹识别器112可以将采集到的指纹发送给处理器101,以便处理器101对该指纹进行处理(例如指纹验证等)。本申请实施例中的指纹识别器112的主要部件是指纹传感器,该指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。In various embodiments of the present application, the mobile phone 100 may also have a fingerprint recognition function. For example, the fingerprint reader 112 can be configured on the back of the handset 100 (eg, below the rear camera) or on the front side of the handset 100 (eg, below the touch screen 104). In addition, the fingerprint recognition function can also be implemented by configuring the fingerprint recognizer 112 in the touch screen 104, that is, the fingerprint recognizer 112 can be integrated with the touch screen 104 to implement the fingerprint recognition function of the mobile phone 100. In this case, the fingerprint identifier 112 can be disposed in the touch screen 104, can be part of the touch screen 104, or can be otherwise configured in the touch screen 104. Additionally, the fingerprint identifier 112 can also be implemented as a full-board fingerprint reader, and thus the touch screen 104 can be viewed as a panel that can be fingerprinted at any location. The fingerprint identifier 112 can send the collected fingerprint to the processor 101 for the processor 101 to process the fingerprint (eg, fingerprint verification, etc.). The main component of the fingerprint identifier 112 in the embodiment of the present application is a fingerprint sensor, which can employ any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technologies.
手机100还可以包括蓝牙装置105,用于实现手机100与其他短距离的电子设备(例如手机、智能手表等)之间的数据交换。本申请实施例中的蓝牙装置可以是集成电路或者蓝牙芯片等。The mobile phone 100 can also include a Bluetooth device 105 for enabling data exchange between the handset 100 and other short-range electronic devices (eg, mobile phones, smart watches, etc.). The Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.
手机100还可以包括至少一种传感器106,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏104的显示器的亮度,接近传感器可在手机100移动到耳边时,关闭显示器的电源。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能 (比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset 100 can also include at least one type of sensor 106, 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 of the touch screen 104 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone 100 moves to the ear. . As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which can be configured in the mobile phone 100, are not described here.
WI-FI装置107,用于为手机100提供遵循WI-FI相关标准协议的网络接入,手机100可以通过WI-FI装置107接入到WI-FI接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该WI-FI装置107也可以作为WI-FI无线接入点,可以为其他电子设备提供WI-FI网络接入。The WI-FI device 107 is configured to provide the mobile phone 100 with network access complying with the WI-FI related standard protocol, and the mobile phone 100 can access the WI-FI access point through the WI-FI device 107, thereby helping the user to send and receive emails. Browsing web pages and accessing streaming media, etc., it provides users with wireless broadband Internet access. In some other embodiments, the WI-FI device 107 can also function as a WI-FI wireless access point, and can provide WI-FI network access for other electronic devices.
定位装置108,用于为手机100提供地理位置。可以理解的是,该定位装置108具体可以是全球定位系统(global positioning system,GPS)、北斗卫星导航系统等定位系统的接收器。定位装置108在接收到上述定位系统发送的地理位置后,将该信息发送给处理器101处理,或者发送给存储器103保存。在另外的一些实施例中,该定位装置108可以是辅助全球卫星定位系统(assisted global positioning system,AGPS)的接收器,AGPS是一种在一定辅助配合下进行GPS定位的运行方式,它可以利用基站的信号,配合GPS卫星信号,可以让手机100定位的速度更快;在AGPS系统中,该定位装置108可通过与辅助定位服务器(例如手机定位服务器)的通信而获得定位辅助。AGPS系统通过作为辅助服务器来协助定位装置108完成测距和定位服务,在这种情况下,辅助定位服务器通过无线通信网络与电子设备例如手机100的定位装置108(即GPS接收器)通信而提供定位协助。在另外的一些实施例中,该定位装置108也可以是基于WI-FI接入点的定位技术。由于每一个WI-FI接入点都有一个全球唯一的MAC地址,电子设备在开启WI-FI的情况下即可扫描并收集周围的WI-FI接入点的广播信号,因此可以获取到WI-FI接入点广播出来的MAC地址;电子设备将这些能够标示WI-FI接入点的数据(例如MAC地址)通过无线通信网络发送给位置服务器,由位置服务器检索出每一个WI-FI接入点的地理位置,并结合WI-FI广播信号的强弱程度,计算出该电子设备的地理位置并发送到该电子设备的定位装置108中。The positioning device 108 is configured to provide a geographic location for the mobile phone 100. It can be understood that the positioning device 108 can be specifically a receiver of a positioning system such as a global positioning system (GPS) or a Beidou satellite navigation system. After receiving the geographical location transmitted by the positioning system, the positioning device 108 sends the information to the processor 101 for processing, or sends it to the memory 103 for storage. In some other embodiments, the positioning device 108 can be an assisted global positioning system (AGPS) receiver, and the AGPS is an operation mode for performing GPS positioning with certain assistance, which can be utilized. The signal of the base station, in conjunction with the GPS satellite signal, can make the mobile phone 100 locate faster; in the AGPS system, the positioning device 108 can obtain positioning assistance by communicating with an auxiliary positioning server (such as a mobile phone positioning server). The AGPS system assists the positioning device 108 in performing the ranging and positioning services by acting as a secondary server, in which case the secondary positioning server is provided over the wireless communication network in communication with the positioning device 108 (i.e., GPS receiver) of the electronic device, such as the handset 100. Positioning assistance. In still other embodiments, the positioning device 108 can also be a WI-FI access point based positioning technology. Since each WI-FI access point has a globally unique MAC address, the electronic device can scan and collect the broadcast signals of the surrounding WI-FI access points when WI-FI is turned on, so that the WI can be obtained. - the MAC address broadcasted by the FI access point; the electronic device sends the data (such as the MAC address) capable of indicating the WI-FI access point to the location server through the wireless communication network, and each WI-FI interface is retrieved by the location server. The geographic location of the inbound point, combined with the strength of the WI-FI broadcast signal, calculates the geographic location of the electronic device and sends it to the positioning device 108 of the electronic device.
音频电路109、扬声器113、麦克风114可提供用户与手机100之间的音频接口。音频电路109可将接收到的音频数据转换后的电信号,传输到扬声器113,由扬声器113转换为声音信号输出;另一方面,麦克风114将收集的声音信号转换为电信号,由音频电路109接收后转换为音频数据,再将音频数据输出至RF电路102以发送给比如另一手机,或者将音频数据输出至存储器103以便进一步处理。The audio circuit 109, the speaker 113, and the microphone 114 can provide an audio interface between the user and the handset 100. The audio circuit 109 can transmit the converted electrical data of the received audio data to the speaker 113 for conversion to the sound signal output by the speaker 113; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal by the audio circuit 109. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 102 for transmission to, for example, another mobile phone, or the audio data is output to the memory 103 for further processing.
外设接口110,用于为外部的输入/输出设备(例如键盘、鼠标、外接显示器、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与电信运营商提供的用户识别模块(subscriber identity module,SIM)卡连接。外设接口110可以被用来将上述外部的输入/输出外围设备耦接到处理器101和存储器103。The peripheral interface 110 is used to provide various interfaces for external input/output devices (such as a keyboard, a mouse, an external display, an external memory, a subscriber identity module card, etc.). For example, it is connected to the mouse through a universal serial bus interface, and is connected to a subscriber identity module (SIM) card provided by a telecommunications carrier through a metal contact on the card slot of the subscriber identity module. Peripheral interface 110 can be used to couple the external input/output peripherals described above to processor 101 and memory 103.
手机100还可以包括给各个部件供电的电源装置111(比如电池和电源管理芯片),电池可以通过电源管理芯片与处理器101逻辑相连,从而通过电源装置111实现管理充电、放电、以及功耗管理等功能。The mobile phone 100 may further include a power supply device 111 (such as a battery and a power management chip) that supplies power to the various components. The battery may be logically connected to the processor 101 through the power management chip to manage charging, discharging, and power management through the power supply device 111. And other functions.
尽管图1未示出,手机100还可以包括摄像头(前置摄像头和/或后置摄像头)、闪光灯、微型投影装置、近场通信(near field communication,NFC)装置等,在此不再赘述。Although not shown in FIG. 1, the mobile phone 100 may further include a camera (front camera and/or rear camera), a flash, a micro projection device, a near field communication (NFC) device, and the like, and details are not described herein.
以下实施例均可以在具有上述硬件的电子设备(例如手机100)中实现。下面结合图1对本申请的实施例进行说明。The following embodiments can all be implemented in an electronic device (e.g., mobile phone 100) having the above hardware. Embodiments of the present application will be described below with reference to FIG. 1.
如图2A所示的本申请一些实施例中一种终端设备上显示的图形用户界面的示意图,手机100上启用闹钟app新建闹钟功能,可以显示图2A所示图形用户界面示意图。在图2A中,示出了新建闹钟预设 的时间,以及新增的应用订阅模式。图2A示例性的示出了新建闹钟的示意图。如图2A所示,闹钟新建界面20可包括多个属性设置控件,例如时间设置控件201、铃声设置控件202、振动模式设置控件203、闹钟名设置控件204。这多个属性设置控件可用于用户对闹钟的一个或多个属性,如起闹时间、铃声、振动模式、闹钟名称等进行选择。本申请的一些实施例中,闹钟新建界面10还可以包括应用订阅控件205。所述应用订阅控件105可用于接收用户输入的应用订阅界面的打开操作。当系统通过应用订阅205这一控件检测到该打开操作(如单击操作)时,显示出图2B所示的应用订阅界面2050。As shown in FIG. 2A, a schematic diagram of a graphical user interface displayed on a terminal device in some embodiments of the present application, the alarm clock app is newly enabled on the mobile phone 100, and the graphical user interface shown in FIG. 2A can be displayed. In Figure 2A, a new alarm preset is shown. Time, as well as the new app subscription model. FIG. 2A exemplarily shows a schematic diagram of a new alarm clock. As shown in FIG. 2A, the alarm clock new interface 20 may include a plurality of attribute setting controls, such as a time setting control 201, a ringtone setting control 202, a vibration mode setting control 203, and an alarm name setting control 204. These multiple property setting controls can be used by the user to select one or more attributes of the alarm, such as the time of day, ringtone, vibration mode, alarm name, and the like. In some embodiments of the present application, the alarm clock new interface 10 may also include an application subscription control 205. The application subscription control 105 can be configured to receive an open operation of an application subscription interface input by a user. When the system detects the open operation (such as a click operation) through the application subscription 205, the application subscription interface 2050 shown in FIG. 2B is displayed.
所述手机100接收用户点击所述应用订阅控件205选择应用订阅模式,则进入图2B示出的图形用户界面示意图。图2B示例性的示出了应用订阅界面的示意图。如图2B所示,应用订阅界面2050可包括模式开关控件2051和应用列表2052。模式开关控件2051用于接收用户输入的开启或关闭订阅模式的操作。具体的,当订阅模式被开启时,用户对应用列表2052输入的操作有效。当订阅模式被关闭时,用户针对应用列表2052输入的操作无效。可选的,模式开关控件2051可以实施成图2B所示的滑动开关控件。具体的,当该滑动开关控件上的按钮被滑到右边时,表示订阅模式被开启,当该滑动开关控件上的按钮被滑到左边时,表示订阅模式被关闭。这里,对用户操作该滑动开关控件来开启或关闭订阅模式的方式不作限制。另外,模式开关控件2051不限于实施成图2B所示的滑动开关控件,实际应用中可以采用其他控件。应用列表2052用于呈现多个应用。用户可以根据需求从应用列表2052呈现的多个应用中选择需要订阅的应用。图2B示例性的示出了用户针对闹钟1订阅了邮件、日历、天气以及谷歌地图等应用。这里,订阅可以是用户设置哪一些应用的通知消息会影响闹钟的起闹时间。例如,假设用户订阅了“天气”应用,即表明“天气”应用的通知消息可能会对闹钟的起闹时间产生影响。The mobile phone 100 receives the user clicking the application subscription control 205 to select an application subscription mode, and then enters the schematic diagram of the graphical user interface shown in FIG. 2B. FIG. 2B exemplarily shows a schematic diagram of an application subscription interface. As shown in FIG. 2B, the application subscription interface 2050 can include a mode switch control 2051 and an application list 2052. The mode switch control 2051 is configured to receive an operation of turning the subscription mode on or off by the user. Specifically, when the subscription mode is enabled, the user is valid for the operation input by the application list 2052. When the subscription mode is turned off, the user input operation for the application list 2052 is invalid. Alternatively, the mode switch control 2051 can be implemented as the slide switch control shown in FIG. 2B. Specifically, when the button on the slide switch control is slid to the right, it indicates that the subscription mode is turned on, and when the button on the slide switch control is slid to the left, it indicates that the subscription mode is turned off. Here, there is no limitation on the manner in which the user operates the slide switch control to turn the subscription mode on or off. In addition, the mode switch control 2051 is not limited to being implemented as the slide switch control shown in FIG. 2B, and other controls may be employed in practical applications. The application list 2052 is for presenting a plurality of applications. The user can select an application to be subscribed from among a plurality of applications presented by the application list 2052 according to requirements. FIG. 2B exemplarily shows that the user subscribes to an application such as mail, calendar, weather, and Google map for the alarm clock 1. Here, the subscription may be a notification message that the user sets which applications affect the alarm time. For example, suppose a user subscribes to the Weather app, which means that the Weather app’s notification message may have an impact on the alarm’s time.
具体的,可以通过图2B所示的开关控件2021来接收用户输入的订阅操作。具体的,当各个应用对应的开关控件2021中的按钮被滑动到右边时表示该应用被订阅,接收用户输入的订阅操作的控件。另外,开关控件不限于实施成图2B所示的开关控件,实际应用中可以采用其他控件。对用户操作该开关控件来输入订阅操作的方式不作限制。Specifically, the user-entered subscription operation can be received through the switch control 2021 shown in FIG. 2B. Specifically, when the button in the switch control 2021 corresponding to each application is slid to the right, the application is subscribed to receive the control of the subscription operation input by the user. In addition, the switch control is not limited to being implemented as the switch control shown in FIG. 2B, and other controls may be used in practical applications. There is no restriction on the way in which the user operates the switch control to enter a subscription operation.
如图2B所示,进入应用订阅的界面,用户可以选择开启该功能。应用订阅功能开启,在应用订阅模式中,闹钟应用会根据手机100接收到的推送到手机状态栏显示的通知消息,结合实际场景对预设的闹钟进行动态调整。如图2B所示,所述应用订阅界面显示了可订阅应用列表,用户可以根据需求选择相应的应用。所述可订阅应用列表可以包括但不限于以下应用:短信、日历、微信、高德地图、天气、备忘录、电子邮件等应用。以图2B为例,用户可以输入选择操作选择订阅日历、高德地图、天气、以及电子邮件的应用通知消息。用户可以通过开启选择按钮或者勾选复选框的方式选择订阅应用,本申请实施例不做具体限定。手机100上的闹钟应用会根据手机100上的日历应用、高德地图应用、天气应用、以及电子邮件应用的通知消息对预设闹钟进行动态调整。完成设置后,手机100可以将所述闹钟应用中设置的闹钟时间,以及订阅的应用信息存储到手机100的存储器103中。As shown in FIG. 2B, the user enters the interface of the application subscription, and the user can choose to enable the function. The application subscription function is enabled. In the application subscription mode, the alarm application dynamically adjusts the preset alarm according to the notification message displayed by the mobile phone 100 and pushed to the status bar of the mobile phone. As shown in FIG. 2B, the application subscription interface displays a list of subscriptionable applications, and the user can select a corresponding application according to requirements. The list of subscriptionable applications may include, but is not limited to, applications such as SMS, Calendar, WeChat, Gold Map, Weather, Memo, Email, and the like. Taking FIG. 2B as an example, the user can input a selection operation to select an application notification message for a subscription calendar, a high-order map, weather, and an email. The user can select the subscription application by opening the selection button or by checking the check box. The embodiment of the present application does not specifically limit the application. The alarm clock application on the mobile phone 100 dynamically adjusts the preset alarm clock according to the calendar application on the mobile phone 100, the high-tech map application, the weather application, and the notification message of the email application. After the setting is completed, the mobile phone 100 can store the alarm time set in the alarm clock application and the subscribed application information into the memory 103 of the mobile phone 100.
在本申请的一些实施例中,手机100通过触敏表面104-1接收用户开启闹钟应用的操作,所述处理器101运行所述闹钟应用,通过显示器104-2显示如图2A的图形用户界面。手机100通过所述触敏表面104-1接收用户点击选择进入闹钟应用的应用订阅模式的操作,所述闹钟应用加载可订阅的应用列表,通过所述显示器104-2显示如图2B的图形用户界面,显示所述可订阅的应用列表。所述手机100通过所述触敏表面104-1接收所述用户对可订阅的应用列表的操作,以及对开启所述应用订阅模式的操作。 设置完成后,所述闹钟应用自动的监控电子邮件、天气、地图、日历应用的通知栏消息,一旦监听到有通知消息推送到所述手机100,闹钟应用对通知栏消息进行语义分析,获取到有影响闹钟调整量的因素,则自动根据所述闹钟调整量调整闹钟的闹铃时间。闹钟应用具体调整原预设闹钟时间的方式,例如针对不同应用中不同触发事件设置不同的闹钟调整量的对应关系等可以参考上述表1和表2的设置方式。闹钟应用设置的闹铃时间、订阅通知栏消息的订阅应用的列表等都可以存储在存储器103上,用于后续的处理计算。在本申请的一些实施例中,用户可以通过通过所述触敏表面104-1设定的闹钟时间,选择订阅通知栏消息的订阅应用,所述存储器103存储上述信息,供处理器101进行逻辑运算使用。In some embodiments of the present application, the handset 100 receives an operation by the user to turn on the alarm application through the touch-sensitive surface 104-1, the processor 101 running the alarm application, and displaying the graphical user interface of FIG. 2A through the display 104-2. . The mobile phone 100 receives, via the touch-sensitive surface 104-1, an operation of the user clicking to enter an application subscription mode of the alarm application, the alarm application loading a list of applications that can be subscribed, and displaying the graphical user of FIG. 2B through the display 104-2 An interface displays a list of applications that can be subscribed to. The handset 100 receives the user's operation of the list of applications that can be subscribed through the touch-sensitive surface 104-1, and the operation of turning on the application subscription mode. After the setting is completed, the alarm clock application automatically monitors the notification bar message of the email, weather, map, and calendar application. Once the notification message is sent to the mobile phone 100, the alarm application performs semantic analysis on the notification bar message to obtain If there is a factor affecting the adjustment of the alarm clock, the alarm time of the alarm clock is automatically adjusted according to the alarm adjustment amount. The alarm clock application specifically adjusts the original preset alarm time. For example, for setting the corresponding relationship of different alarm adjustment amounts for different trigger events in different applications, reference may be made to the setting manners of Tables 1 and 2 above. The alarm time set by the alarm clock application, the list of subscription applications that subscribe to the notification bar message, and the like can all be stored in the memory 103 for subsequent processing calculations. In some embodiments of the present application, a user may select a subscription application that subscribes to a notification bar message by an alarm time set by the touch-sensitive surface 104-1, the memory 103 storing the above information for the processor 101 to perform logic. The operation is used.
图3示例性的示出了闹钟关联的应用。如图3所示,闹钟1设置的起闹时间7:30,关联的应用包括邮件、日历、天气及谷歌地图。用户可以通过图2A和2B所示的图形用户界面图设置闹钟1关联的这些应用,即设置为闹钟1关联的应用。可选的,如图3所示,用户可以点击或长按等操作来查看闹钟1关联的应用,当用户点击或长按界面30中闹钟1对应的控制界面301时,用户可以在悬浮窗302中查看用户设置闹钟1关联的应用。不限于点击或长按等的操作来查看闹钟1关联的应用,不限于在悬浮窗中显示闹钟1关联的应用。同样的,可以设置其他闹钟关联的应用,以及查看其他闹钟关联的应用。FIG. 3 exemplarily shows an application of an alarm clock association. As shown in Figure 3, the alarm time set by alarm 1 is 7:30, and the associated applications include mail, calendar, weather, and Google Maps. The user can set these applications associated with the alarm 1 through the graphical user interface diagrams shown in FIGS. 2A and 2B, that is, the application set to the alarm 1 association. Optionally, as shown in FIG. 3, the user can click or long press to view the application associated with the alarm 1. When the user clicks or long presses the control interface 301 corresponding to the alarm 1 in the interface 30, the user can be in the floating window 302. View the application in which the user sets the alarm 1 association. The application associated with the alarm 1 is not limited to the operation of clicking or long pressing, and is not limited to displaying the application associated with the alarm 1 in the floating window. Similarly, you can set up apps that are associated with other alarms, as well as those that are associated with other alarms.
本申请的一些实施例中,可以将已订阅的应用的通知消息称为第一消息,可以将图2A所示的应用列表2052称为第一应用列表。In some embodiments of the present application, the notification message of the subscribed application may be referred to as a first message, and the application list 2052 shown in FIG. 2A may be referred to as a first application list.
本申请的一些实施例中,闹钟的起闹时间的影响因素可包括以下至少一项:天气、交通,或事件。例如,天气、短信、微信等应用的通知消息中包含的天气。又例如,交通应用的通知消息中包含的交通。In some embodiments of the present application, the influencing factors of the alarm time of the alarm clock may include at least one of the following: weather, traffic, or an event. For example, weather included in notification messages for weather, SMS, WeChat, etc. As another example, the traffic contained in the notification message of the traffic application.
这里,事件可以包括:短信、邮件、微信、日历、或备忘录等应用的通知消息中包含的事件,例如日历、备忘录等应用的通知消息中包含的待办事件,又例如邮件应用的通知消息中包含的会议。Here, the event may include an event included in a notification message of an application such as a short message, a mail, a WeChat, a calendar, or a memo, such as a to-do event included in a notification message of an application such as a calendar, a memo, or the like, and is, for example, a notification message of the mail application. Contained meetings.
本申请的一些实施例中,满足预设条件的影响因素会对闹钟的起闹时间产生影响。具体可以通过下述方式来确定上述第一消息包含的影响因素是否满足预设条件。In some embodiments of the present application, the influencing factors that satisfy the preset conditions may affect the alarm time of the alarm clock. Specifically, whether the influencing factors included in the first message meet the preset condition may be determined by the following manner.
第一种实现方式,可以判断第一消息包括的天气信息表征的天气是否与第一天气一致,如果一致,则天气信息表征的天气满足预设条件。可以理解的,提供第一消息的应用可以是天气应用。不限于天气应用提供的天气信息,关于天气信息的通知消息还可以是其他用户已订阅的应用(如短信)提供的天气信息。In the first implementation manner, it may be determined whether the weather represented by the weather information included in the first message is consistent with the first weather, and if consistent, the weather characterized by the weather information satisfies a preset condition. As can be appreciated, the application providing the first message can be a weather application. Not limited to the weather information provided by the weather application, the notification message about the weather information may also be weather information provided by an application (such as a short message) that other users have subscribed to.
上述第一天气可以是恶劣天气,例如小雨、中雨、大雨、暴雨、雷阵雨、雨夹雪、小雪、或大雪等可能会引起人们出行不便的天气。The first weather mentioned above may be bad weather, such as light rain, moderate rain, heavy rain, heavy rain, thunderstorms, sleet, light snow, or heavy snow, which may cause people to travel inconveniently.
第二种实现方式,可以判断第一消息包括的交通信息表征的交通拥堵程度是否大于交通拥堵阈值,若是,则交通信息表征的交通满足预设条件。可以理解的,提供第一消息的应用可以是交通应用。In the second implementation manner, it may be determined whether the traffic congestion characterized by the traffic information included in the first message is greater than a traffic congestion threshold, and if yes, the traffic characterized by the traffic information satisfies a preset condition. As can be appreciated, the application providing the first message can be a traffic application.
第三种实现方式,可以判断第一消息包括的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内。若事件的发生时间早于起闹时间,且起闹时间减去事件发生时间的差值小于第一阈值,即若事件的发生时间早于闹钟的起闹时间,且离闹钟的起闹时间不遥远,则需要调整起闹时间,使用户提前为该事件做准备,则第一消息表征的事件信息满足预设条件。若起闹时间早于事件发生时间,且事件发生时间减去起闹时间小于第二阈值,即若事件的发生时间晚于闹钟的起闹时间,且离闹钟的起闹时间不遥远,则可能需要调整起闹时间,使用户提前为该事件做准备,则满足预设条件。可以理解的,提供第一消息的应用可以是短信、邮件、日历、备忘录等应用。 In a third implementation manner, it may be determined whether the event time represented by the event information included in the first message is within a time range associated with the alarm time of the alarm clock. If the event occurs earlier than the start time, and the difference between the start time minus the event occurrence time is less than the first threshold, that is, if the event occurs earlier than the alarm time, and the alarm time is not In the faraway, it is necessary to adjust the start time to prepare the user for the event in advance, and the event information represented by the first message satisfies the preset condition. If the start time is earlier than the event occurrence time, and the event occurrence time minus the start time is less than the second threshold, that is, if the event occurs later than the alarm time, and the alarm time is not far away, it may be If you need to adjust the start time and prepare the user for the event in advance, the preset conditions are met. It can be understood that the application providing the first message can be an application such as a short message, a mail, a calendar, a memo or the like.
第四种实现方式,当第一消息包括天气、交通和事件中的至少两项因素时,可以判断第一消息包括的上述至少两项因素的组合是否属于第一集合,如果属于,则满足预设条件;第一集合包括多个上述至少两项因素的组合,其中,每一个组合中的天气与第一天气一致,每一个组合中的交通的拥堵程度大于交通拥堵阈值,每一个组合中的事件的发生时间处于与闹钟的起闹时间关联的时间范围内。The fourth implementation manner, when the first message includes at least two factors of weather, traffic, and events, determining whether the combination of the at least two factors included in the first message belongs to the first set, and if yes, satisfying the pre- The first set includes a plurality of combinations of at least two of the above factors, wherein the weather in each combination is consistent with the first weather, and the traffic congestion degree in each combination is greater than the traffic congestion threshold, in each combination The time of occurrence of the event is within the time range associated with the alarm time of the alarm.
在确定上述第一消息包含的影响因素满足预设条件的前提下,终端可以对闹钟的起闹时间进行调整。Under the premise that it is determined that the influencing factors included in the first message satisfy the preset condition, the terminal may adjust the alarm time of the alarm clock.
下面分别从多个实施例来描述如何根据上述第一消息包含的影响因素调整闹钟的起闹时间。In the following, from various embodiments, how to adjust the alarm time of the alarm clock according to the influencing factors included in the first message is described.
在本申请的一些实施例中,以天气应用提供的通知消息为例,说明如何根据应用的通知消息调整闹钟的起闹时间。所述通知消息即上述第一消息。In some embodiments of the present application, the notification message provided by the weather application is taken as an example to explain how to adjust the alarm time of the alarm according to the notification message of the application. The notification message is the first message described above.
图4示例性示出了天气应用的通知消息。如图4所示,可以通过词法分析器提取关键词,例如“12日06时”、“南山区”、“小雨”,假设第一天气是非晴天,图4所示的提取出的信息表征的影响因素满足预设条件,即需要根据第一消息调整闹钟的起闹时间。FIG. 4 exemplarily shows a notification message of a weather application. As shown in FIG. 4, keywords can be extracted by a lexical analyzer, for example, "06 o'clock on the 12th", "Nanshan District", "light rain", assuming that the first weather is non-sunny, the extracted information represented by FIG. 4 is characterized. The influencing factor satisfies the preset condition, that is, the alarm time of the alarm clock needs to be adjusted according to the first message.
图5示例性示出了第一映射表。如图5所示,可以通过第一映射表确定第一消息包括的天气信息表征的天气对应的时间调整量。时间调整量象征了该天气信息表征的天气对闹钟的起闹时间的影响程度,闹钟应用可以根据时间调整量对闹钟的起闹时间进行调整。具体地,在提取出关键词之后,确定该天气信息表征的天气,根据第一映射表查找与该天气对应的时间调整量。例如,图4中的通知消息表征的天气为小雨,那么根据图5中的第一映射表可以查找出小雨对应的时间调整量为10mins。FIG. 5 exemplarily shows a first mapping table. As shown in FIG. 5, the time adjustment amount corresponding to the weather represented by the weather information included in the first message may be determined by the first mapping table. The amount of time adjustment symbolizes the degree of influence of the weather represented by the weather information on the alarm time of the alarm clock, and the alarm application can adjust the alarm time of the alarm according to the time adjustment amount. Specifically, after the keyword is extracted, the weather characterized by the weather information is determined, and the time adjustment amount corresponding to the weather is searched according to the first mapping table. For example, if the weather indicated by the notification message in FIG. 4 is light rain, then according to the first mapping table in FIG. 5, the time adjustment corresponding to the light rain can be found to be 10 mins.
进一步的,起闹时间的时间调整量具体可以和用户的出行路线在不同天气下的行驶时间相关。这里,出行路线可称为目标路线。Further, the time adjustment amount of the noisy time may be specifically related to the travel time of the user's travel route in different weathers. Here, the travel route can be referred to as a target route.
图6示例性示出了天气应用服务器数据。如图6所示,天气应用服务器数据可包括不同用户在不同天气下行驶不同路线的行驶时间。本申请的一些实施例中,可以通过天气应用服务器数据来匹配出特定用户在不同天气下行驶目标路线的行驶时间。本申请的一些实施例中,也可以通过地图应用服务器数据来匹配出特定用户在不同天气下行驶目标路线的行驶时间。本申请实施例不进行限定。FIG. 6 exemplarily shows weather application server data. As shown in FIG. 6, the weather application server data may include travel times for different users traveling different routes in different weathers. In some embodiments of the present application, the weather application server data may be used to match the travel time of a particular user traveling the target route in different weather conditions. In some embodiments of the present application, the travel time of a specific user traveling the target route in different weathers may also be matched by the map application server data. The embodiments of the present application are not limited.
假设,用户为图6中的用户A,闹钟为图1所示闹钟1(起闹时间7:30),天气应用推送的通知消息是图4所示的通知消息,目标路线为路线1。具体的,可以采用以下几种方式,根据天气应用的服务器数据来确定起闹时间的时间调整量。Assume that the user is the user A in FIG. 6, the alarm clock is the alarm clock 1 shown in FIG. 1 (starting time 7:30), the notification message of the weather application push is the notification message shown in FIG. 4, and the target route is route 1. Specifically, the following methods may be used to determine the time adjustment amount of the noisy time according to the server data of the weather application.
第一种实现方式,假设起闹时间7:30是用户基于天晴时行驶路线1的行驶时间设定的,那么不同天气下,起闹时间的时间调整量可以为各天气时行驶路线1的行驶时间与天晴时行驶路线1的行驶时间的差值。用户在各天气下行驶目标路线的行驶时间可以是多个行驶时间的平均值。In the first implementation manner, it is assumed that the starting time of 7:30 is set by the user based on the driving time of the driving route 1 in the case of the weather, and the time adjustment amount of the starting time in different weathers may be the driving route 1 of each weather. The difference between the travel time and the travel time of the travel route 1 at the time of the weather. The travel time of the user traveling the target route in each weather may be an average of a plurality of travel times.
可选的,可以根据该用户自己的历史数据确定起闹时间的时间调整量,那么时间调整量的确定包括以下几个步骤。Optionally, the time adjustment amount of the noisy time may be determined according to the user's own historical data, and the determining of the time adjustment amount includes the following steps.
首先,计算天晴时用户A选择路线1所需的行驶时间的平均值。如图6所示的数据中,天晴时的行驶时间分别为32mins和27mins,求得平均值为30mins。因此,天晴时用户A选择路线1所需的行驶时间为30mins。First, the average value of the travel time required for the user A to select the route 1 at the time of the weather is calculated. In the data shown in Fig. 6, the travel time at sunny time was 32 mins and 27 mins, respectively, and the average value was 30 mins. Therefore, when the weather is fine, the travel time required for the user A to select the route 1 is 30 minutes.
其次,计算小雨时用户A选择路线1所需的行驶时间的平均值。如图6中灰色部分数据所示,小雨时的行驶时间分别为41mins、35mins、34mins及43mins,求得平均值为38mins。因此,小雨时用户A选择路线1所需的行驶时间为38mins。 Secondly, the average value of the travel time required for the user A to select the route 1 during the light rain is calculated. As shown by the gray part data in Fig. 6, the travel time in light rain is 41 mins, 35 mins, 34 mins and 43 mins, respectively, and the average value is 38 mins. Therefore, the travel time required for user A to select route 1 during light rain is 38 minutes.
最后,根据用户A在天晴和小雨时选择路线1所需的行驶时间确定小雨时闹钟起闹时间的时间调整量。小雨对应的时间调整量为用户A选择路线1晴天时所需的行驶时间与小雨时所需的行驶时间的差值,即为38-30=8mins。Finally, based on the travel time required by User A to select Route 1 during the sunny and light rain, the amount of time adjustment for the alarm time during the rain is determined. The time adjustment corresponding to the light rain is the difference between the travel time required by the user A to select the sunny day of the route 1 and the travel time required for the light rain, that is, 38-30=8 mins.
可选的,可以根据所有用户的历史数据确定起闹时间的时间调整量,那么时间调整量的确定包括以下几个步骤。Optionally, the time adjustment amount of the noisy time may be determined according to historical data of all users, and then the determination of the time adjustment amount includes the following steps.
首先,计算天晴时所有用户选择路线1所需的行驶时间的平均值。如图6所示的数据中,天晴时的行驶时间分别为32mins和27mins,求得平均值为30mins。因此,天晴时所有用户选择路线1所需的行驶时间为30mins。First, calculate the average of the travel time required for all users to select Route 1 at the time of the weather. In the data shown in Fig. 6, the travel time at sunny time was 32 mins and 27 mins, respectively, and the average value was 30 mins. Therefore, the travel time required for all users to select route 1 is 30 mins.
其次,计算小雨时所有用户选择路线1所需的行驶时间的平均值。如图7中灰色部分数据所示,小雨时的行驶时间分别为41mins、41mins、45mins、35mins、34mins及43mins,求得平均值为40mins。因此,小雨时所有用户选择路线1所需的行驶时间为40mins。Secondly, calculate the average of the travel time required for all users to select route 1 during light rain. As shown by the gray part data in Fig. 7, the travel time in light rain is 41 mins, 41 mins, 45 mins, 35 mins, 34 mins and 43 mins, respectively, and the average value is 40 mins. Therefore, the travel time required for all users to select Route 1 during light rain is 40 mins.
最后,根据所有用户在天晴和小雨时选择路线1所需的行驶时间确定小雨时闹钟起闹时间的时间调整量。小雨对应的时间调整量为所有用户选择路线1晴天时所需的行驶时间与小雨时所需的行驶时间的差值,即为40-30=10mins。Finally, based on the travel time required by all users to select route 1 during fine weather and light rain, the amount of time to adjust the alarm time during light rain is determined. The time adjustment corresponding to the light rain is the difference between the travel time required for all users to select route 1 and the travel time required for the light rain, that is, 40-30=10 mins.
第二种实现方式,预先设置行驶目标路线的不同行驶时间的区间,以及不同区间对应的时间调整量。图8示例性示出了预置映射表,预置映射表包括不同行驶时间的区间对应的时间调整量。如图8所示,可以设置以下4个行驶时间t的区间:t≤40mins、40mins<t≤50mins、50mins<t≤60mins及t>60mins。这4个区间分别对应以下时间调整量:0、10mins、20mins、30mins。用户在各天气下行驶目标路线的行驶时间可以是多个行驶时间的平均值。In the second implementation manner, the interval of different driving time of the driving target route and the time adjustment amount corresponding to different sections are preset. FIG. 8 exemplarily shows a preset mapping table including time adjustment amounts corresponding to intervals of different travel times. As shown in Fig. 8, the following intervals of four travel times t can be set: t ≤ 40 mins, 40 mins < t ≤ 50 mins, 50 mins < t ≤ 60 mins, and t > 60 mins. These four intervals correspond to the following time adjustments: 0, 10mins, 20mins, 30mins. The travel time of the user traveling the target route in each weather may be an average of a plurality of travel times.
同样的,可以根据用户自己的历史数据或者所有用户的历史数据确定不同天气下行驶目标路线的行驶时间。以根据用户自己的历史数据确定不同天气下行驶目标路线的行驶时间为例,那么时间调整量的确定包括以下几个步骤。Similarly, the travel time of the travel target route in different weathers can be determined according to the user's own historical data or historical data of all users. Taking the travel time of the travel target route in different weathers as an example according to the user's own historical data, the determination of the time adjustment amount includes the following steps.
首先,计算小雨时用户A选择路线1所需的行驶时间的平均值。如图6中灰色部分数据所示,小雨时的行驶时间分别为41mins、35mins、34mins及43mins,求得平均值为38mins。因此,小雨时用户A选择路线1所需的行驶时间为38mins。First, the average value of the travel time required for the user A to select the route 1 during the light rain is calculated. As shown by the gray part data in Fig. 6, the travel time in light rain is 41 mins, 35 mins, 34 mins and 43 mins, respectively, and the average value is 38 mins. Therefore, the travel time required for user A to select route 1 during light rain is 38 minutes.
其次,根据该天气下用户A选择路线1所需的行驶时间确定该行驶时间在预置映射表中所属的行驶时间区间。从图8所示的预置映射表中可以知道小雨时用户A选择路线1所需的行驶时间所属的区间为40mins<t≤50mins。Next, based on the travel time required for the user A to select the route 1 in the weather, the travel time interval to which the travel time belongs in the preset map is determined. It can be known from the preset map shown in FIG. 8 that the travel time required for the user A to select the route 1 during the light rain belongs to 40 mins < t ≤ 50 mins.
最后,根据预置映射表查找该行驶时间区间对应的时间调整量。根据图8所示的预置映射表可以确定该行驶时间区间对应的时间调整量为10mins,即小雨时用户A选择路线1所需的时间调整量为10mins。Finally, the time adjustment amount corresponding to the travel time interval is found according to the preset mapping table. According to the preset mapping table shown in FIG. 8 , it can be determined that the time adjustment amount corresponding to the driving time interval is 10 mins, that is, the time adjustment amount required for the user A to select the route 1 when the rain is light is 10 mins.
图9示例性示出了对闹钟起闹时间的调整。如图9所示,若根据以上任意一种方式确定时间调整量为10mins后,根据该时间调整量对闹钟的起闹时间进行调整,即可将闹钟1的起闹时间7:30调整为7:20。Fig. 9 exemplarily shows the adjustment of the alarm time. As shown in FIG. 9 , if the time adjustment amount is determined to be 10 mins according to any of the above methods, the alarm time of the alarm clock is adjusted according to the time adjustment amount, and the alarm time of the alarm 1 is adjusted to 7:30. :20.
在一些可能的场景中,天气应用推送的通知消息可能发生变化,即天气有可能变得更加恶劣或良好。In some possible scenarios, the notification message pushed by the weather application may change, ie the weather may become worse or better.
图10和图12示例性示出了天气变得更加恶劣的场景。其中,根据图10中示出的场景得出的时间调整量对闹钟的起闹时间进行调整后不早于当前时间(如图11所示),即来得及调整闹钟的起闹时间。根据图12中示出的场景得出的时间调整量对闹钟的起闹时间进行调整后早于当前时间(如图13所示), 即来不及调整闹钟的起闹时间。下面分别举例说明。10 and 12 exemplarily show a scene in which the weather becomes worse. Wherein, the time adjustment amount obtained according to the scene shown in FIG. 10 adjusts the alarm time of the alarm clock not earlier than the current time (as shown in FIG. 11), that is, the alarm time of the alarm clock is adjusted. Adjusting the alarm time of the alarm clock according to the time adjustment amount obtained in the scene shown in FIG. 12 is earlier than the current time (as shown in FIG. 13). It is too late to adjust the alarm time. The following are examples.
如图10所示,在图4所示的通知消息(推送时间5:05)之后,天气应用又推送了图10所示的通知消息(推送时间6:05)。此时,对该通知消息采用词法分析器提取出关键词为“12日07时”、“南山区”、“中雨”,根据这些关键词得出时间调整量,若得出的时间调整量为20min,那么可以将闹钟1的原始起闹时间(7:30)调整为7:10,如图11所示。As shown in FIG. 10, after the notification message (push time 5:05) shown in FIG. 4, the weather application pushes the notification message shown in FIG. 10 again (push time 6:05). At this time, the lexical analyzer is used to extract the keywords into "12th 07th", "Nanshan District", and "rainy", and the time adjustment amount is obtained according to these keywords, and the obtained time adjustment amount is obtained. For 20min, the original alarm time (7:30) of Alarm 1 can be adjusted to 7:10, as shown in Figure 11.
如图12所示,在图10所示的通知消息(推送时间6:05)之后,天气应用又推送了图12所示的通知消息(推送时间7:05)。此时,对该通知消息采用词法分析器提取出关键词为“12日08时”、“南山区”、“暴雨”,根据这些关键词得出时间调整量,若得出的时间调整量为30min,那么可以将闹钟1的原始起闹时间(7:30)调整为7:00,而当前时间已为7:05,显然调整后的起闹时间早于当前时间,如图13所示,此时应该立即触发闹钟。As shown in FIG. 12, after the notification message (push time 6:05) shown in FIG. 10, the weather application pushes the notification message shown in FIG. 12 again (push time 7:05). At this time, the lexical analyzer is used to extract the keywords into "08:00 on the 12th", "Nanshan District", and "rainstorm", and the time adjustment amount is obtained according to these keywords, and the obtained time adjustment amount is 30min, then the original alarm time (7:30) of alarm 1 can be adjusted to 7:00, and the current time is already 7:05. Obviously the adjusted starting time is earlier than the current time, as shown in Figure 13. The alarm should be triggered immediately.
当再次收到天气应用推送的通知消息,且根据词法分析器分析出该通知消息表征的天气变得良好时,通过上述任意一种确定时间调整量的实现方式确定出时间调整量,对闹钟的起闹时间进行调整。When the notification message of the weather application push is received again, and the weather characterized by the notification message becomes good according to the lexical analyzer, the time adjustment amount is determined by any one of the above-mentioned methods for determining the time adjustment amount, for the alarm clock The adjustment time is adjusted.
本申请中,目标路线的获取方式可以举例说明如下:In this application, the way to obtain the target route can be illustrated as follows:
第一种实现方式,如图14所示,可以在新建闹钟界面10中输入目标路线。In the first implementation, as shown in FIG. 14, the target route can be input in the new alarm clock interface 10.
具体地,可以在新建闹钟界面10新增加目标路线106一栏。如图14所示,用户在新建闹钟时,直接输入目标路线为路线1。Specifically, a new target route 106 column can be added to the new alarm clock interface 10. As shown in FIG. 14, when the user newly creates an alarm, the user directly inputs the target route to route 1.
第二种实现方式,可以在地图应用中输入目标路线,并指定目标路线关联的闹钟。In the second implementation, you can enter the target route in the map app and specify the alarm clock associated with the target route.
图15示例性示出了设置路线的示意图。如图15所示,设置路线界面40可包括出发地设置控件401、目的地设置控件402、路线生成界面403、保存路线控件404及开始导航控件405。出发地设置控件401及目的地设置控件402分别用于接收用户输入的出发地及目的地操作。路线生成界面403用于根据用户输入的出发地及目的地生成至少一条路线并显示。保存路线控件404用于接收用户输入保存路线操作。开始导航控件405用于接收用户输入的开始导航指令。具体的,当系统通过保存路线控件404检测到用户输入的保存路线操作(如单击操作)时,显示出关联闹钟界面50。Fig. 15 exemplarily shows a schematic diagram of setting a route. As shown in FIG. 15, the set route interface 40 may include a departure place setting control 401, a destination setting control 402, a route generation interface 403, a save route control 404, and a start navigation control 405. The departure place setting control 401 and the destination setting control 402 are respectively configured to receive a departure place and a destination operation input by the user. The route generation interface 403 is configured to generate and display at least one route according to the departure place and the destination input by the user. The save route control 404 is configured to receive a user input save route operation. The start navigation control 405 is configured to receive a start navigation command input by the user. Specifically, when the system detects the save route operation (such as a click operation) input by the user through the save route control 404, the associated alarm alarm interface 50 is displayed.
图16示例性示出了关联闹钟的示意图。如图16所示,关联闹钟界面50可包括:路线选择界面501及闹钟选择界面502。路线选择界面501用于接收用户输入的目标路线选择操作,目标路线为以上根据出发地及目的地生成的至少一条路线中的一条。当用户选定其中一条路线作为目标路线之后,用户无法输入对其他路线的选择操作。闹钟选择界面502用于在目标路线选定之后,接收用户输入的将目标路线与一个或多个闹钟关联的选择操作。Fig. 16 exemplarily shows a schematic diagram of an associated alarm clock. As shown in FIG. 16, the associated alarm clock interface 50 can include a route selection interface 501 and an alarm selection interface 502. The route selection interface 501 is configured to receive a target route selection operation input by the user, and the target route is one of the at least one route generated according to the departure place and the destination. After the user selects one of the routes as the target route, the user cannot enter a selection operation for the other route. The alarm selection interface 502 is configured to receive a selection operation entered by the user to associate the target route with one or more alarms after the target route is selected.
具体的,可以通过图16所示的路线选择控件5011来接收用户输入的目标路线选择操作。具体的,当各路线对应的路线选择控件5011中的按钮被滑动到右边时表示该路线被选为目标路线。这里,对用户操作该路线选择控件来选择路线的方式不作限制。另外,路线选择控件5011不限于实施成图16所示的路线选择控件,实际应用中可以采用其他控件。Specifically, the target route selection operation input by the user can be received through the route selection control 5011 shown in FIG. 16. Specifically, when the button in the route selection control 5011 corresponding to each route is slid to the right, it indicates that the route is selected as the target route. Here, there is no limitation on the manner in which the user operates the route selection control to select a route. In addition, the route selection control 5011 is not limited to being implemented as the route selection control shown in FIG. 16, and other controls may be employed in the actual application.
具体的,可以通过图16所示的闹钟选择控件5021来接收用户输入的闹钟关联操作。具体的,当各闹钟对应的闹钟选择控件5021中的按钮被滑动到右边时表示该闹钟被选为与目标路线关联的闹钟。这里,对用户操作该闹钟选择控件来选择闹钟的方式不作限制。另外,闹钟选择控件5021不限于实施成图16所示的闹钟选择控件,实际应用中可以采用其他控件。 Specifically, the alarm related operation input by the user can be received through the alarm selection control 5021 shown in FIG. 16. Specifically, when the button in the alarm selection control 5021 corresponding to each alarm is slid to the right, it indicates that the alarm is selected as the alarm associated with the target route. Here, there is no limitation on the manner in which the user operates the alarm selection control to select an alarm. In addition, the alarm clock selection control 5021 is not limited to the implementation of the alarm selection control shown in FIG. 16, and other controls may be employed in the actual application.
接收用户输入的选择操作的控件不限于图16所示的闹钟选择控件,还可以是其他可以接收用户输入选择操作的控件,对于闹钟选择控件5021输入的选择操作不限于对移动按钮的移动。The control for receiving the selection operation input by the user is not limited to the alarm selection control shown in FIG. 16, but may be other controls that can receive the user input selection operation, and the selection operation input to the alarm selection control 5021 is not limited to the movement of the moving button.
可选地,在图15示出的设置路线界面40中输入出发地A和目的地B生成多条路线后,还可以自动选择距离最短的路线为目标路线,或者结合用户的历史数据选择用户过去行驶频率最高的路线为目标路线。Optionally, after the departure route A and the destination B are input into the route setting interface 40 shown in FIG. 15 to generate a plurality of routes, the route with the shortest distance may be automatically selected as the target route, or the user may be selected according to the historical data of the user. The route with the highest frequency is the target route.
第三种实现方式,根据用户的历史数据获取目标路线。The third implementation method acquires the target route according to the historical data of the user.
具体地,从图2A中可以看出,用户设置的闹钟的个数通常不止为一个,所以需要先确定待调整的闹钟,再根据待调整的闹钟的起闹时间,结合用户的历史数据来获取目标路线。Specifically, it can be seen from FIG. 2A that the number of alarms set by the user is usually more than one, so it is necessary to first determine the alarm to be adjusted, and then according to the alarm time of the alarm to be adjusted, combined with the historical data of the user. Target route.
例如,终端可以记录用户每天的行驶信息。假设用户通常会在早上8:00左右从A出发到B(例如从家到公司),因此,待调整的闹钟可以是早上8:00之前一段时间内的闹钟,一段时间例如可以是半个小时或者一个小时等。可以看出,在该假设的应用场景下,图2A中的待调整闹钟即为闹钟1(起闹时间7:30)。因此,与闹钟1关联的目标路线即可为从A到B的路线。此外,从A到B的路线可能会有好几种,可以根据记录选择行驶最频繁的路线为目标路线。For example, the terminal can record the user's daily driving information. Assume that the user usually starts from A to B at around 8:00 in the morning (for example, from home to company). Therefore, the alarm to be adjusted can be an alarm clock for a period of time before 8:00 in the morning, for example, half an hour. Or wait an hour. It can be seen that in the hypothetical application scenario, the alarm to be adjusted in FIG. 2A is the alarm clock 1 (starting time 7:30). Therefore, the target route associated with the alarm 1 can be a route from A to B. In addition, there may be several routes from A to B, and the route with the most frequent travel can be selected according to the record.
在本申请的一些实施例中,以交通应用提供的通知消息为例,说明如何根据交通应用的通知消息调整闹钟的起闹时间。所述通知消息即上述第一消息。In some embodiments of the present application, the notification message provided by the traffic application is taken as an example to explain how to adjust the alarm time of the alarm clock according to the notification message of the traffic application. The notification message is the first message described above.
图17示例性示出了谷歌地图应用(在后续实施例及附图中称为交通应用)的通知消息。如图17所示,可以通过词法分析器提取关键词,例如“交通拥堵”、“M到N”、“428米”,假设交通拥堵阈值为拥堵100米,即拥堵长度S大于100米即为满足预设条件。那么图17所示的提取出的信息表征的影响因素满足预设条件,即需要根据第一消息调整闹钟的起闹时间。Fig. 17 exemplarily shows a notification message of the Google Maps application (referred to as a traffic application in the subsequent embodiments and the drawings). As shown in FIG. 17, keywords can be extracted by a lexical analyzer, such as "traffic congestion", "M to N", and "428 meters", assuming that the traffic congestion threshold is 100 meters, that is, the congestion length S is greater than 100 meters. Meet the preset conditions. Then, the influencing factors of the extracted information representation shown in FIG. 17 satisfy the preset condition, that is, the alarm time of the alarm clock needs to be adjusted according to the first message.
起闹时间的时间调整量具体可以和用户的出行路线在不同交通拥堵程度下的行驶时间有关。这里出行路线可称为目标路线。具体的,不同的交通拥堵程度可以由不同的拥堵长度表示,拥堵长度越长,交通拥堵程度越严重。进一步地,不同的交通拥堵程度可以由不同的拥堵长度区间表示。不同的交通拥堵程度不限于由交通拥堵长度表示,还可以由其他的方式表示,例如车行速度。本申请实施例中以不同的拥堵长度区间表示不同的交通拥堵程度。The amount of time adjustment for the noisy time can be specifically related to the travel time of the user's travel route at different traffic congestion levels. The route here can be called the target route. Specifically, different traffic congestion levels can be represented by different congestion lengths, and the longer the congestion length, the more serious the traffic congestion. Further, different degrees of traffic congestion may be represented by different congestion length intervals. Different degrees of traffic congestion are not limited to being represented by the length of traffic congestion, but may also be represented by other means, such as the speed of the vehicle. In the embodiment of the present application, different traffic congestion levels are represented by different congestion length intervals.
图18示例性示出了第二映射表。如图18所示,可以通过第二映射表确定第一消息包括的交通信息表征的交通拥堵长度对应的时间调整量。时间调整量象征了该交通信息表征的交通拥堵长度对闹钟的起闹时间的影响程度,闹钟应用可以根据时间调整量对闹钟的起闹时间进行调整。具体地,在提取出关键词之后,确定该交通信息表征的交通拥堵长度,根据第二映射表查找与该交通拥长度对应的时间调整量。例如,图17中的通知消息表征的交通拥堵长度为428米,那么根据图18中的第二映射表可以查找出交通拥堵长度为428米所属的长度区间400≤S<450时对应的时间调整量为35mins。FIG. 18 exemplarily shows a second mapping table. As shown in FIG. 18, the time adjustment amount corresponding to the traffic congestion length represented by the traffic information included in the first message may be determined by the second mapping table. The amount of time adjustment symbolizes the influence of the traffic congestion length of the traffic information on the alarm time of the alarm clock, and the alarm application can adjust the alarm time of the alarm according to the time adjustment amount. Specifically, after the keyword is extracted, the traffic congestion length represented by the traffic information is determined, and the time adjustment amount corresponding to the traffic congestion length is searched according to the second mapping table. For example, if the notification message in FIG. 17 represents a traffic congestion length of 428 meters, then according to the second mapping table in FIG. 18, the time adjustment corresponding to the length interval 400≤S<450 to which the traffic congestion length belongs to 428 meters can be found. The amount is 35mins.
进一步的,起闹时间的时间调整量具体可以和用户的出行路线在不同交通拥堵长度区间下的行驶时间相关。这里,出行路线可称为目标路线。Further, the time adjustment amount of the noisy time may be specifically related to the travel time of the travel route of the user in different traffic congestion length intervals. Here, the travel route can be referred to as a target route.
图19示例性示出了交通应用的服务器数据。如图19所示,交通应用的服务器数据可包括不同用户在不同拥堵长度区间下行驶目标路线的行驶时间。本申请中,可以通过交通应用的服务器数据来匹配出特定用户在不同拥堵长度区间下行驶目标路线的行驶时间。FIG. 19 exemplarily shows server data of a traffic application. As shown in FIG. 19, the server data of the traffic application may include travel times of different users traveling the target route under different congestion length intervals. In the present application, the travel time of the target travel route of the specific user in different congestion length intervals can be matched by the server data of the traffic application.
假设,用户为图19中的用户A,闹钟为图1所示闹钟1(起闹时间7:30),交通应用推送的通知消 息是图17所示的通知消息。具体的,可以采用以下几种方式,根据交通应用的服务器数据来确定起闹时间的时间调整量。Assume that the user is the user A in FIG. 19, and the alarm clock is the alarm clock 1 shown in FIG. 1 (starting time 7:30), and the notification of the traffic application push is cancelled. The message is the notification message shown in FIG. Specifically, the following methods may be used to determine the time adjustment amount of the noisy time according to the server data of the traffic application.
第一种实现方式,假设起闹时间7:30是用户基于交通良好的行驶时间设定的,那么在不同拥堵长度情况下,时间调整量可以是各拥堵长度区间下行驶目标路线的行驶时间与交通良好时行驶目标路线的行驶时间的差值。用户在各拥堵长度区间下行驶目标路线的行驶时间可以是多个行驶时间的平均值。In the first implementation manner, it is assumed that the starting time of 7:30 is set by the user based on the traffic time of the traffic, and in the case of different congestion lengths, the time adjustment amount may be the driving time of the driving target route in each congestion length interval. The difference in travel time of the target route when traffic is good. The travel time of the user traveling the target route in each congestion length interval may be an average of a plurality of travel times.
可选的,可以根据该用户自己的历史数据确定起闹时间的时间调整量,那么时间调整量的确定包括以下几个步骤。Optionally, the time adjustment amount of the noisy time may be determined according to the user's own historical data, and the determining of the time adjustment amount includes the following steps.
首先,计算交通良好时用户A行驶目标路线所需的行驶时间的平均值。假设交通良好为拥堵长度小于100米,如图19所示的数据中,交通良好时的行驶时间分别为32mins、27mins和28mins,求得平均值为29mins。因此,交通良好时用户A行驶目标路线的行驶时间为29mins。First, the average value of the travel time required for the user A to travel the target route when the traffic is good is calculated. Assume that the traffic is good and the congestion length is less than 100 meters. In the data shown in Figure 19, the driving time when traffic is good is 32mins, 27mins and 28mins respectively, and the average value is 29mins. Therefore, when the traffic is good, the travel time of the user A traveling target route is 29 minutes.
其次,确定通知消息表征的交通拥堵长度所属的拥堵长度区间,并计算用户A在该拥堵长度区间下行驶目标路线的行驶时间的平均值。图17中的通知消息表征的拥堵长度428米所属的拥堵长度区间为400≤S<450。图20中灰色部分数据显示了用户A在该拥堵长度区间下行驶目标路线的行驶时间为65mins、54mins,求得平均值为60mins。因此,拥堵长度区间为400≤S<450时行驶目标路线的行驶时间为60mins。Next, the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average value of the travel time of the user A traveling the target route in the congestion length interval is calculated. The congestion length 428 meters represented by the notification message in FIG. 17 belongs to the congestion length interval of 400 ≤ S < 450. The gray part data in Fig. 20 shows that the travel time of the user A traveling the target route in the congestion length interval is 65 mins and 54 mins, and the average value is 60 mins. Therefore, when the congestion length interval is 400 ≤ S < 450, the travel time of the travel target route is 60 mins.
最后,根据用户A在交通良好时行驶目标路线的行驶时间及拥堵长度区间为400≤S<450时行驶目标路线所需的行驶时间确定拥堵长度区间为400≤S<450时闹钟起闹时间的调整量。拥堵长度区间为400≤S<450对应的时间调整量为用户A在交通良好时及拥堵长度区间为400≤S<450时行驶目标路线所需的行驶时间的差值,即为60-29=31mins。Finally, according to the travel time required by the user A when the driving time of the driving target route and the congestion length interval are 400≤S<450, the travel time of the driving target route is determined to be the time when the congestion length interval is 400≤S<450. Adjustment amount. The time adjustment amount corresponding to the congestion length interval of 400 ≤ S < 450 is the difference of the travel time required for the user A to travel the target route when the traffic is good and the congestion length interval is 400 ≤ S < 450, that is, 60-29= 31mins.
可选的,可以根据所有用户的历史数据确定起闹时间的时间调整量,那么时间调整量的确定包括以下几个步骤。Optionally, the time adjustment amount of the noisy time may be determined according to historical data of all users, and then the determination of the time adjustment amount includes the following steps.
首先,计算交通良好时所有用户行驶目标路线所需的行驶时间的平均值。假设交通良好为拥堵长度小于100米,如图21所示的数据中,交通良好时的行驶时间分别为32mins、27mins、28mins和28mins,求得平均值为29mins。因此,交通良好时所有用户行驶目标路线的行驶时间为29mins。First, calculate the average of the travel time required for all users to travel the target route when traffic is good. Assume that the traffic is good and the congestion length is less than 100 meters. In the data shown in Figure 21, the driving time when traffic is good is 32mins, 27mins, 28mins and 28mins, respectively, and the average value is 29mins. Therefore, when the traffic is good, the travel time of all the users' target routes is 29 minutes.
其次,确定通知消息表征的拥堵长度所属的拥堵长度区间,并计算所有用户在该拥堵长度区间下行驶目标路线的行驶时间的平均值。图17中的通知消息表征的拥堵长度428米所属的拥堵长度区间为400≤S<450。图22中灰色部分数据显示了所有用户在该拥堵长度区间下行驶目标路线的行驶时间为65mins、61mins、54mins,求得平均值为60mins。因此,拥堵长度区间为400≤S<450时行驶目标路线的行驶时间为60mins。Next, the congestion length interval to which the congestion length represented by the notification message belongs is determined, and the average of the travel times of all the users traveling the target route under the congestion length interval is calculated. The congestion length 428 meters represented by the notification message in FIG. 17 belongs to the congestion length interval of 400 ≤ S < 450. The gray part data in Fig. 22 shows that the travel time of all the users traveling the target route in the congestion length interval is 65 mins, 61 mins, 54 mins, and the average value is 60 mins. Therefore, when the congestion length interval is 400 ≤ S < 450, the travel time of the travel target route is 60 mins.
最后,根据所有用户在交通良好时行驶目标路线所需的行驶时间及拥堵长度区间为400≤S<450时行驶目标路线所需的行驶时间确定拥堵长度区间为400≤S<450时闹钟起闹时间的调整量。拥堵长度区间为400≤S<450对应的时间调整量为所有用户在交通良好时及拥堵长度区间为400≤S<450时行驶目标路线所需的行驶时间的差值,即为60-29=31mins。Finally, according to the driving time required for all the users to travel the target route in good traffic and the length of the congestion period is 400 ≤ S < 450, the travel time required to travel the target route determines the congestion length interval is 400 ≤ S < 450 when the alarm clock rises The amount of time adjustment. The time adjustment amount corresponding to the congestion length interval of 400 ≤ S < 450 is the difference of the travel time required for all the users to travel the target route when the traffic is good and the congestion length interval is 400 ≤ S < 450, that is, 60-29= 31mins.
第二种实现方式,预先设置行驶目标路线的不同行驶时间的区间,以及不同区间对应的时间调整量。如图8所示,可以设置以下4个行驶时间t的区间:t≤40mins、40mins<t≤50mins、50mins<t≤60mins及t>60mins。这4个区间分别对应以下时间调整量:0、10mins、20mins、30mins。用户在各拥堵长度 区间下行驶目标路线的行驶时间可以是多个行驶时间的平均值。In the second implementation manner, the interval of different driving time of the driving target route and the time adjustment amount corresponding to different sections are preset. As shown in Fig. 8, the following intervals of four travel times t can be set: t ≤ 40 mins, 40 mins < t ≤ 50 mins, 50 mins < t ≤ 60 mins, and t > 60 mins. These four intervals correspond to the following time adjustments: 0, 10mins, 20mins, 30mins. User at each congestion length The travel time of the travel route under the section may be an average of a plurality of travel times.
同样的,可以根据用户自己的历史数据或者所有用户的历史数据确定不同拥堵长度区间下行驶目标路线的行驶时间。以根据用户自己的历史数据确定不同拥堵长度区间下行驶目标路线的行驶时间为例,那么时间调整量的确定包括以下几个步骤。Similarly, the travel time of the travel target route under different congestion length intervals can be determined according to the user's own historical data or historical data of all users. Taking the travel time of the travel target route under different congestion length intervals as an example according to the user's own historical data, the determination of the time adjustment amount includes the following steps.
首先,确定通知消息表征的拥堵长度所属的拥堵长度区间,并计算用户A在该拥堵长度区间下行驶目标路线的行驶时间的平均值。图17中的通知消息表征的拥堵长度428米所属的拥堵长度区间为400≤S<450。图20中灰色部分数据显示了用户A在该拥堵长度区间下行驶目标路线的行驶时间为65mins、54mins,求得平均值为60mins。因此,拥堵长度区间为400≤S<450时行驶目标路线的行驶时间为60mins。First, the congestion length interval to which the congestion length represented by the notification message belongs is determined, and the average value of the travel time of the travel route of the user A under the congestion length interval is calculated. The congestion length 428 meters represented by the notification message in FIG. 17 belongs to the congestion length interval of 400 ≤ S < 450. The gray part data in Fig. 20 shows that the travel time of the user A traveling the target route in the congestion length interval is 65 mins and 54 mins, and the average value is 60 mins. Therefore, when the congestion length interval is 400 ≤ S < 450, the travel time of the travel target route is 60 mins.
其次,根据该拥堵长度区间下用户A行驶目标路线的行驶时间确定该行驶时间在预置映射表中所属的行驶时间区间。从图8所示的预置映射表中可以知道拥堵长度区间为400≤S<450时用户A行驶目标路线的行驶时间所属的区间为50mins<t≤60mins。Next, the travel time interval to which the travel time belongs in the preset map is determined according to the travel time of the user A travel target route in the congestion length interval. It can be known from the preset mapping table shown in FIG. 8 that the travel time of the user A travel target route belongs to the interval of 50 mins < t ≤ 60 mins when the congestion length interval is 400 ≤ S < 450.
最后,根据预置映射表查找该行驶时间区间对应的时间调整量。根据图8所示的预置映射表可以确定该行驶时间区间对应的时间调整量为30mins,即拥堵长度为428米时用户A行驶目标路线所需的时间调整量为30mins。Finally, the time adjustment amount corresponding to the travel time interval is found according to the preset mapping table. According to the preset mapping table shown in FIG. 8, it can be determined that the time adjustment amount corresponding to the driving time interval is 30 mins, that is, the time adjustment amount required for the user A to travel the target route when the congestion length is 428 meters is 30 mins.
图23示例性示出了对闹钟起闹时间的调整。如图23所示,若根据以上任意一种方式确定时间调整量为30mins后,根据该时间调整量对闹钟的起闹时间进行调整,即可将闹钟1的起闹时间7:30调整为7:00。Fig. 23 exemplarily shows an adjustment of the alarm time of the alarm. As shown in FIG. 23, if the time adjustment amount is determined to be 30 mins according to any of the above manners, the alarm time of the alarm clock is adjusted according to the time adjustment amount, and the alarm time of the alarm 1 is adjusted to 7:30. :00.
在一些可能的场景中,交通应用推送的通知消息可能发生变化,即交通拥堵程度变得更加严重或者有所缓解。接下来以交通拥堵程度有所缓解为例进行说明。In some possible scenarios, the notification message pushed by the traffic application may change, that is, the degree of traffic congestion becomes more serious or mitigated. The following is an example of the relief of traffic congestion.
图24示例性示出了交通拥堵程度有所缓解的场景。如图24所示,在图17所示的通知消息(推送时间6:05)之后,交通应用又推送了图24所示的通知消息(推送时间7:05)。此时,对该通知消息采用词法分析器提取出关键词为“交通拥堵”、“M到N”、“228米”,根据这些关键词得出时间调整量,若得出的时间调整量为20mins,那么可以将闹钟1的原始起闹时间(7:30)调整为7:10,如图25所示。Fig. 24 exemplarily shows a scenario in which the degree of traffic congestion is somewhat relieved. As shown in FIG. 24, after the notification message (push time 6:05) shown in FIG. 17, the traffic application pushes the notification message shown in FIG. 24 again (push time 7:05). At this time, the lexical analyzer is used to extract the keywords into "traffic congestion", "M to N", and "228 meters", and the time adjustment amount is obtained according to these keywords, and the obtained time adjustment amount is 20mins, then you can adjust the original alarm time (7:30) of alarm 1 to 7:10, as shown in Figure 25.
在一种可能的场景中,根据交通应用推送的通知消息得出的时间调整量对闹钟的起闹时间进行调整后,得出的调整后的起闹时间早于当前时间,此时应该立刻触发闹钟。In a possible scenario, after adjusting the alarm time of the alarm according to the time adjustment amount obtained by the notification message pushed by the traffic application, the adjusted alarm time is earlier than the current time, and should be triggered immediately. Alarm clock.
本申请中,目标路线的获取方式与天气实施例中描述的目标路线获取方式一致,在此不再赘述。In this application, the manner of obtaining the target route is the same as that of the target route described in the weather embodiment, and details are not described herein again.
本申请中,当收到交通应用的通知消息后,该通知消息表征的交通只能对一段时间之后的闹钟产生影响,即该通知消息只能与一段时间之后的闹钟关联。其中,一段时间例如可以是2小时、1小时等。以一段时间为2小时为例,在6:00收到的交通应用的通知消息,根据该通知消息得出时间调整量后只能对起闹时间在6:00之后且8:00及其之前的闹钟的起闹时间进行调整。例如,从图17中可以看出,接收到交通应用的通知消息的当前时间为6:05,可以知道该通知消息只可与闹钟1关联,即该通知消息表征的交通可能会影响闹钟1的起闹时间。因此,在得出时间调整量为30mins后,可以将闹钟1的起闹时间从7:30调整为7:00,如图23所示。In the present application, after receiving the notification message of the traffic application, the traffic represented by the notification message can only affect the alarm clock after a period of time, that is, the notification message can only be associated with the alarm clock after a period of time. The period of time may be, for example, 2 hours, 1 hour, or the like. Taking a period of time of 2 hours as an example, the notification message of the traffic application received at 6:00, according to the notification message, the time adjustment amount can only be after the 6:00 time and before 8:00 and before The alarm time of the alarm clock is adjusted. For example, as can be seen from FIG. 17, the current time of receiving the notification message of the traffic application is 6:05, and it can be known that the notification message can only be associated with the alarm clock 1, that is, the traffic represented by the notification message may affect the alarm clock 1. Noisy time. Therefore, after the time adjustment amount is 30 mins, the alarm time of the alarm 1 can be adjusted from 7:30 to 7:00, as shown in FIG.
在本申请的一些实施例中,除了天气、交通等因素可能会影响闹钟的起闹时间以外,还存在一些事件可能会影响闹钟的起闹时间。例如短信、邮件等应用通知的突发事件(如会议等),日历、备忘录等 应用通知的待办事件等。接下来以邮件应用提供的通知消息(即上述第一消息)为例,说明如何根据邮件应用的通知消息调整闹钟的起闹时间。In some embodiments of the present application, in addition to weather, traffic and other factors may affect the alarm time of the alarm clock, there are some events that may affect the alarm time of the alarm clock. For example, SMS, email, and other application notifications (such as meetings, etc.), calendars, memos, etc. Application pending events, etc. Next, taking the notification message provided by the mail application (that is, the first message mentioned above) as an example, how to adjust the alarm time of the alarm according to the notification message of the mail application.
若终端收到邮件应用推送的通知消息,通过词法分析器从通知消息中提取出的关键词为“今天13:30”“在公司会议室”“开会”,可以分析出此时的事件为“开会”,事件的发生时间为“今天13:30”,事件的发生位置为“公司会议室”。根据词法分析器提取出的关键词确定时间调整量可以包括以下几个步骤。If the terminal receives the notification message pushed by the mail application, the keyword extracted from the notification message by the lexical analyzer is "13:30 today" "in the company meeting room" "meeting", and the event at this time can be analyzed as " "The meeting", the event occurred at "13:30 today", and the event occurred in the "company meeting room." Determining the amount of time adjustment based on the keywords extracted by the lexical analyzer may include the following steps.
首先,确定与该事件关联的闹钟。根据该事件的发生时间,确定该发生时间前第一阈值内及该发生时间后第二阈值内的闹钟为与该事件关联的闹钟。其中,第一阈值例如可以是30mins,第二阈值可以是40mins,那么事件的发生时间(今天13:30)前第一阈值内及该发生时间后第二阈值内的时间范围即为13:00-14:10,可以与图3中的闹钟2(起闹时间13:45)关联。First, determine the alarm clock associated with the event. According to the occurrence time of the event, the alarm clock within the first threshold before the occurrence time and the second threshold after the occurrence time is determined to be an alarm associated with the event. The first threshold may be, for example, 30 mins, and the second threshold may be 40 mins, and the time range within the first threshold before the occurrence time of the event (13:30 today) and the second threshold after the occurrence time is 13:00. -14:10, can be associated with alarm 2 (starting time 13:45) in Figure 3.
其次,确定该事件的发生时间与关联的闹钟的起闹时间的关系,即确定该事件的发生时间早于或者晚于闹钟的起闹时间。Secondly, the relationship between the occurrence time of the event and the alarm time of the associated alarm clock is determined, that is, the occurrence time of the event is determined to be earlier or later than the alarm time of the alarm clock.
最后,根据该事件的发生时间与关联的闹钟的起闹时间的关系确定时间调整量。Finally, the amount of time adjustment is determined based on the relationship between the occurrence time of the event and the alarm time of the associated alarm clock.
若该事件的发生时间早于闹钟的起闹时间,那么时间调整量至少为起闹时间与发生时间的差值。终端可根据GPS或者其他方式获取用户当前的位置信息,计算用户的当前位置与事件的发生位置之间的距离。若距离小于一定的阈值,则时间调整量可以为起闹时间与发生时间的差值。若距离不小于一定的阈值,则时间调整量可以为该差值与准备时间之和。其中,一定的阈值例如可以是300米、500米等。准备时间可以是从用户当前位置到事件的发生位置所需的时间。此时准备时间的确定可以参考前述天气实施例、交通实施例或者天气及交通实施例中时间调整量的确定。If the event occurs earlier than the alarm time, then the time adjustment is at least the difference between the start time and the time of occurrence. The terminal can obtain the current location information of the user according to GPS or other methods, and calculate the distance between the current location of the user and the occurrence location of the event. If the distance is less than a certain threshold, the time adjustment amount may be the difference between the start time and the occurrence time. If the distance is not less than a certain threshold, the time adjustment amount may be the sum of the difference and the preparation time. The certain threshold may be, for example, 300 meters, 500 meters, or the like. The preparation time can be the time required from the user's current location to the location where the event occurred. The determination of the preparation time at this time can be determined by referring to the determination of the time adjustment amount in the aforementioned weather embodiment, the traffic embodiment, or the weather and traffic embodiment.
若该事件的发生时间不早于闹钟的起闹时间,那么时间调整量可以由准备时间与起闹时间和事件发生时间的差值之间的关系决定,在后续描述中将起闹时间和事件发生时间的差值称为第一时间间隔。If the event occurs no earlier than the alarm time, the time adjustment amount may be determined by the relationship between the preparation time and the difference between the start time and the event occurrence time, and the time and event will be raised in the subsequent description. The difference in the time of occurrence is called the first time interval.
当准备时间大于第一时间间隔时,时间调整量至少为准备时间与第一时间间隔的差值。例如,若事件发生时间为14:00,与该事件关联的闹钟的起闹时间为13:45,那么第一时间间隔为15mins,若准备时间为30mins,此时准备时间大于第一时间间隔,那么时间调整量则为30-15=15mins,即将闹钟的起闹时间13:45调整为13:30。When the preparation time is greater than the first time interval, the time adjustment amount is at least the difference between the preparation time and the first time interval. For example, if the event occurs at 14:00, the alarm time associated with the event is 13:45, then the first interval is 15mins, and if the preparation time is 30mins, the preparation time is greater than the first interval. Then the time adjustment is 30-15=15mins, and the alarm time is adjusted to 13:45 at 13:45.
当准备时间不大于第一时间间隔时,时间调整量为零。例如,若事件发生时间为14:00,与该事件关联的闹钟的起闹时间为13:45,那么第一时间间隔为15mins,若准备时间为10mins,此时准备时间不大于第一时间间隔,那么时间调整量则为0,即闹钟的起闹时间不做调整。When the preparation time is not greater than the first time interval, the time adjustment amount is zero. For example, if the event occurs at 14:00 and the alarm time associated with the event is 13:45, the first interval is 15 minutes. If the preparation time is 10 minutes, the preparation time is not greater than the first interval. Then, the time adjustment amount is 0, that is, the alarm time of the alarm is not adjusted.
在本申请的一些实施例中,影响因素可以包括天气和交通两项因素。例如,天气应用的通知消息和交通应用的通知消息会先后或者同时推送到终端的通知栏。假设天气应用的通知消息和交通应用的通知消息都会对闹钟的起闹时间产生影响。接下来以先收到天气应用的通知消息,后收到交通应用的通知消息为例进行说明。In some embodiments of the present application, the influencing factors may include both weather and traffic factors. For example, the notification message of the weather application and the notification message of the traffic application are pushed to the notification bar of the terminal sequentially or simultaneously. It is assumed that the notification message of the weather application and the notification message of the traffic application have an influence on the alarm time of the alarm. Next, the notification message of the weather application is received first, and then the notification message of the traffic application is received as an example for explanation.
图26示例性示出了天气和交通应用的通知消息。如图26所示,可以通过词法分析器提取关键词,“12日07时”、“南山区”、“中雨”、“交通拥堵”、“M到N”、“428米”。假设第一天气为非晴天,交通拥堵阈值为100米,图26所示的提取出的信息表征的影响因素满足预设条件,即需要根据第一消息调整闹钟的起闹时间。FIG. 26 exemplarily shows a notification message of weather and traffic applications. As shown in Fig. 26, keywords can be extracted by the lexical analyzer, "07 o'clock on the 12th", "Nanshan District", "moderate rain", "traffic congestion", "M to N", "428 meters". Assuming that the first weather is non-clear and the traffic congestion threshold is 100 meters, the influencing factors of the extracted information representation shown in FIG. 26 satisfy the preset condition, that is, the alarm time of the alarm clock needs to be adjusted according to the first message.
起闹时间的时间调整量具体可以和用户的出行路线在不同天气下及不同交通拥堵程度下的行驶时 间有关。这里出行路线可称为目标路线。具体的,不同的交通拥堵程度可以由不同的拥堵长度表示,拥堵长度越长,交通拥堵程度越严重。进一步地,不同的交通拥堵程度可以由不同的拥堵长度区间表示。不同的交通拥堵程度不限于由交通拥堵长度表示,还可以由其他的方式表示,例如车行速度。本申请实施例中以不同的拥堵长度区间表示不同的交通拥堵程度。The time adjustment amount of the noisy time can specifically be compared with the travel route of the user in different weathers and different traffic congestion levels. Related. The route here can be called the target route. Specifically, different traffic congestion levels can be represented by different congestion lengths, and the longer the congestion length, the more serious the traffic congestion. Further, different degrees of traffic congestion may be represented by different congestion length intervals. Different degrees of traffic congestion are not limited to being represented by the length of traffic congestion, but may also be represented by other means, such as the speed of the vehicle. In the embodiment of the present application, different traffic congestion levels are represented by different congestion length intervals.
图27示例性示出了第三映射表。如图27所示,可以通过第三映射表确定第一消息表征的天气及交通拥堵长度对应的时间调整量。时间调整量象征了该第一消息表征的天气及交通拥堵长度对闹钟的起闹时间的影响程度,闹钟应用可以根据时间调整量对闹钟的起闹时间进行调整。具体地,在提取出关键词之后,确定第一消息表征的天气及交通拥堵长度,根据第三映射表查找与该天气及交通拥堵长度对应的时间调整量。例如,图26中的通知消息表征的天气为中雨,交通拥堵长度为428米,那么根据图27中的第三映射表可以查找出中雨且交通拥堵长度为428米(拥堵长度区间为400≤S<450)对应的时间调整量为41mins。FIG. 27 exemplarily shows a third mapping table. As shown in FIG. 27, the time adjustment amount corresponding to the weather and the traffic congestion length represented by the first message may be determined by the third mapping table. The amount of time adjustment symbolizes the degree of influence of the weather and traffic congestion length of the first message on the alarm time of the alarm clock, and the alarm application can adjust the alarm time of the alarm according to the time adjustment amount. Specifically, after the keyword is extracted, the weather and the traffic congestion length represented by the first message are determined, and the time adjustment amount corresponding to the weather and the traffic congestion length is searched according to the third mapping table. For example, the weather message in the notification message in FIG. 26 is moderately rainy, and the traffic congestion length is 428 meters. Then, according to the third mapping table in FIG. 27, the rain can be found and the traffic congestion length is 428 meters (the congestion length interval is 400). The time adjustment corresponding to ≤ S < 450) is 41 mins.
进一步的,起闹时间的时间调整量具体可以和用户的出行路线在不同天气及不同交通拥堵长度下的行驶时间相关。这里,出行路线可称为目标路线。Further, the time adjustment amount of the noisy time may be specifically related to the travel time of the user's travel route in different weathers and different traffic congestion lengths. Here, the travel route can be referred to as a target route.
图28示例性示出了天气及交通应用的服务器数据。如图28所示,天气及交通应用的服务器数据可包括不同用户在不同天气及不同拥堵长度区间下行驶目标路线的行驶时间。Figure 28 exemplarily shows server data for weather and traffic applications. As shown in FIG. 28, the server data of the weather and traffic application may include travel times of different users traveling the target route in different weather and different congestion length intervals.
假设用户为图28中的用户A,闹钟为图1所示的闹钟1(起闹时间7:30),天气和交通应用推送的通知消息是图26所示的通知消息。具体的,可以采用以下几种方式,根据交通应用的服务器数据来确定起闹时间的时间调整量。Assuming that the user is the user A in FIG. 28, the alarm is the alarm 1 shown in FIG. 1 (starting time 7:30), and the notification message of the weather and traffic application push is the notification message shown in FIG. Specifically, the following methods may be used to determine the time adjustment amount of the noisy time according to the server data of the traffic application.
第一种实现方式,假设起闹时间7:30是用户基于天晴及交通良好的行驶时间设定的,那么在不同恶劣天气及不同拥堵长度情况下,时间调整量可以是各恶劣天气及各拥堵长度区间下行驶目标路线的行驶时间与天晴且交通良好时行驶目标路线的行驶时间的差值。用户在各恶劣天气及各拥堵长度区间下行驶目标路线的行驶时间可以是多个行驶时间的平均值。The first implementation method assumes that the 7:30 start-up time is set by the user based on the weather and good traffic time. Under different weather conditions and different congestion lengths, the time adjustment can be all bad weather and each The difference between the travel time of the travel target route in the congestion length interval and the travel time of the travel target route when the traffic is fine and the traffic is good. The travel time of the user traveling the target route in each bad weather and each congestion length interval may be an average of a plurality of travel times.
可选的,可以根据该用户自己的历史数据确定起闹时间的时间调整量,那么时间调整量的确定包括以下几个步骤。Optionally, the time adjustment amount of the noisy time may be determined according to the user's own historical data, and the determining of the time adjustment amount includes the following steps.
首先,计算天晴且交通良好时用户A行驶目标路线所需的行驶时间的平均值。假设交通良好为拥堵长度小于100米,如图28所示的数据中,天晴且交通良好时用户A行驶目标路线的行驶时间分别为32mins、27mins、28mins,求得平均值为29mins。因此,天晴且交通良好时用户A行驶目标路线所需的行驶时间为29mins。First, the average value of the travel time required for the user A to travel the target route when the weather is fine and the traffic is good is calculated. Assume that the traffic is good and the congestion length is less than 100 meters. In the data shown in Fig. 28, when the traffic is fine and the traffic is good, the travel time of the user A travel target route is 32 mins, 27 mins, and 28 mins, respectively, and the average value is 29 mins. Therefore, when the weather is fine and the traffic is good, the travel time required for the user A to travel the target route is 29 minutes.
其次,确定通知消息表征的交通拥堵长度所属的拥堵长度区间,并计算用户A在该天气下且在该拥堵长度区间下行驶目标路线的行驶时间的平均值。图26中的通知消息表征的天气为中雨,表征的交通拥堵长度428米所属的拥堵长度区间为400≤S<450。图29中灰色部分数据显示了用户A在该天气且该拥堵长度区间下行驶目标路线的行驶时间为54mins、65mins,求得平均值为60mins。因此,中雨且拥堵长度区间为400≤S<450时行驶目标路线的行驶时间为60mins。Next, the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average value of the travel time of the user A traveling the target route under the weather and in the congestion length interval is calculated. The weather message represented by the notification message in Fig. 26 is moderate rain, and the congestion length interval of the characterized traffic congestion length of 428 meters is 400 ≤ S < 450. The gray part data in Fig. 29 shows that the travel time of the user A in the weather and the traffic length section is 54 mins and 65 mins, and the average value is 60 mins. Therefore, when the medium rain and the congestion length interval is 400 ≤ S < 450, the travel time of the travel target route is 60 mins.
最后,根据用户A在天晴且交通良好时行驶目标路线的行驶时间和中雨且拥堵长度区间为400≤S<450时行驶目标路线所需的行驶时间确定中雨且拥堵长度区间为400≤S<450时闹钟起闹时间的调整量。中雨且拥堵长度区间为400≤S<450对应的时间调整量为用户A在中雨且拥堵长度区间为400≤S <450时行驶目标路线所需的行驶时间与天晴且交通良好时行驶目标路线的行驶时间的差值,即为60-29=31mins。Finally, according to the travel time of the user A when the weather is good and the traffic is good, the travel time of the target route and the medium rain and the congestion length interval are 400 ≤ S < 450, the travel time required to travel the target route is determined to be moderately rained and the congestion length interval is 400 ≤ The amount of adjustment of the alarm time during S<450. The time adjustment amount corresponding to the medium rain and the congestion length interval of 400 ≤ S < 450 is that the user A is in the middle rain and the congestion length interval is 400 ≤ S. <450 The difference between the travel time required to travel the target route and the travel time of the travel destination route when the weather is fine and the traffic is good is 60-29=31mins.
可选的,可以根据所有用户的历史数据确定起闹时间的时间调整量,那么时间调整量的确定包括以下几个步骤。Optionally, the time adjustment amount of the noisy time may be determined according to historical data of all users, and then the determination of the time adjustment amount includes the following steps.
首先,计算天晴且交通良好时所有用户行驶目标路线所需的行驶时间的平均值。假设交通良好为拥堵长度小于100米,如图30所示的数据中,天晴且交通良好时所有用户行驶目标路线所需的行驶时间分别为32mins、27mins、28mins和28mins,求得平均值为29mins。因此,天晴且交通良好时所有用户行驶目标路线的行驶时间为29mins。First, calculate the average of the travel time required for all users to travel on the target route when the weather is fine and the traffic is good. Assume that the traffic is good and the congestion length is less than 100 meters. In the data shown in Figure 30, the travel time required for all users to travel the target route is 32mins, 27mins, 28mins and 28mins, respectively, and the average is 29mins. Therefore, when the weather is fine and the traffic is good, the travel time of all the users' target routes is 29 minutes.
其次,确定通知消息表征的交通拥堵长度所属的拥堵长度区间,并计算所有用户在该天气下且在该拥堵长度区间下行驶目标路线的行驶时间的平均值。图26中的通知消息表征的天气为中雨,表征的交通拥堵长度428米所属的拥堵长度区间为400≤S<450。图31中灰色部分数据显示了所有用户在该天气且该拥堵长度区间下行驶目标路线的行驶时间为54mins、61mins、65mins,求得平均值为60mins。因此,中雨且拥堵长度区间为400≤S<450时行驶目标路线的行驶时间为60mins。Next, the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average of the travel times of all the users in the weather and traveling the target route under the congestion length interval is calculated. The weather message represented by the notification message in Fig. 26 is moderate rain, and the congestion length interval of the characterized traffic congestion length of 428 meters is 400 ≤ S < 450. The gray part data in Fig. 31 shows that the driving time of all the users in the weather and the target length of the traffic is 54 mins, 61 mins, 65 mins, and the average value is 60 mins. Therefore, when the medium rain and the congestion length interval is 400 ≤ S < 450, the travel time of the travel target route is 60 mins.
最后,根据所有用户在天晴且交通良好时行驶目标路线所需的行驶时间及中雨且拥堵长度区间为400≤S<450时行驶目标路线所需的行驶时间确定拥堵长度区间为400≤S<450时闹钟起闹时间的调整量。中雨且拥堵长度区间为400≤S<450对应的时间调整量为用户A在中雨且拥堵长度区间为400≤S<450时行驶目标路线所需的行驶时间与天晴且交通良好时行驶目标路线的行驶时间的差值,即为60-29=31mins。Finally, the congestion length interval is determined as 400 ≤ S according to the travel time required for all users to travel on the target route when the traffic is good and the traffic is good, and the rainy and congestion length interval is 400 ≤ S < 450. <450 hours when the alarm clock is adjusted. The time adjustment amount corresponding to the medium rain and the congestion length interval of 400 ≤ S < 450 is the travel time required for the user A in the middle rain and the congestion length interval is 400 ≤ S < 450, and the travel time is good when the traffic is good and the traffic is good. The difference in travel time of the target route is 60-29=31mins.
第二种实现方式,预先设置行驶目标路线的不同行驶时间的区间,以及不同区间对应的时间调整量。如图8所示,可以设置以下4个行驶时间t的区间:t≤40mins、40mins<t≤50mins、50mins<t≤60mins及t>60mins。这4个区间分别对应以下时间调整量:0、10mins、20mins、30mins。用户在各拥堵长度区间下行驶目标路线的行驶时间可以是多个行驶时间的平均值。In the second implementation manner, the interval of different driving time of the driving target route and the time adjustment amount corresponding to different sections are preset. As shown in Fig. 8, the following intervals of four travel times t can be set: t ≤ 40 mins, 40 mins < t ≤ 50 mins, 50 mins < t ≤ 60 mins, and t > 60 mins. These four intervals correspond to the following time adjustments: 0, 10mins, 20mins, 30mins. The travel time of the user traveling the target route in each congestion length interval may be an average of a plurality of travel times.
同样的,可以根据用户自己的历史数据或者所有用户的历史数据确定不同天气且不同拥堵长度下行驶目标路线的行驶时间。以根据用户自己的历史数据确定不同天气且不同拥堵长度下行驶目标路线的行驶时间为例,那么时间调整量的确定包括以下几个步骤。Similarly, the travel time of the travel target route under different weather and different congestion lengths can be determined according to the user's own historical data or historical data of all users. Taking the travel time of the travel target route in different weathers and different congestion lengths according to the user's own historical data as an example, the determination of the time adjustment amount includes the following steps.
首先,确定通知消息表征的交通拥堵长度所属的拥堵长度区间,并计算用户A在该天气下且在该拥堵长度区间下行驶目标路线的行驶时间的平均值。图26中的通知消息表征的天气为中雨,表征的交通拥堵长度428米所属的拥堵长度区间为400≤S<450。图29中灰色部分数据显示了用户A在该天气且该拥堵长度区间下行驶目标路线的行驶时间为54mins、65mins,求得平均值为60mins。因此,中雨且拥堵长度区间为400≤S<450时行驶目标路线的行驶时间为60mins。First, the congestion length interval to which the traffic congestion length represented by the notification message belongs is determined, and the average value of the travel time of the user A traveling the target route under the weather and in the congestion length interval is calculated. The weather message represented by the notification message in Fig. 26 is moderate rain, and the congestion length interval of the characterized traffic congestion length of 428 meters is 400 ≤ S < 450. The gray part data in Fig. 29 shows that the travel time of the user A in the weather and the traffic length section is 54 mins and 65 mins, and the average value is 60 mins. Therefore, when the medium rain and the congestion length interval is 400 ≤ S < 450, the travel time of the travel target route is 60 mins.
其次,根据该天气且拥堵长度区间下用户A行驶目标路线的行驶时间确定该行驶时间在预置映射表中所属的行驶时间区间。从图8所示的预置映射表中可以知道中雨且拥堵长度区间为400≤S<450时用户A行驶目标路线的行驶时间所属的区间为50mins<t≤60mins。Next, the travel time interval to which the travel time belongs in the preset map is determined according to the travel time of the user A travel target route in the weather and congestion length interval. It can be known from the preset map shown in FIG. 8 that the rainy time and the congestion length interval is 400 ≤ S < 450. The travel time to which the user A travels the target route belongs is 50 mins < t ≤ 60 mins.
最后,根据预置映射表查找该行驶时间区间对应的时间调整量。根据图8所示的预置映射表可以确定该行驶时间区间对应的时间调整量为30mins,即中雨且拥堵长度为428米时用户A行驶目标路线所需的时间调整量为30mins。 Finally, the time adjustment amount corresponding to the travel time interval is found according to the preset mapping table. According to the preset mapping table shown in FIG. 8, it can be determined that the time adjustment amount corresponding to the travel time interval is 30 mins, that is, the time adjustment amount required for the user A to travel the target route when the rain is 428 meters and the congestion length is 428 meters is 30 mins.
对闹钟起闹时间的调整与图23示出的对闹钟起闹时间的调整一致,在此不再赘述。The adjustment of the alarm time is consistent with the adjustment of the alarm time shown in FIG. 23, and details are not described herein again.
在一些可能的场景中,天气应用或者交通应用推送的通知消息可能发生变化,变化后时间调整量的确定过程可参考前述天气实施例和交通实施例中的相关部分。In some possible scenarios, the notification message of the weather application or the traffic application push may change, and the process of determining the time adjustment amount after the change may refer to the relevant parts in the foregoing weather embodiment and the traffic embodiment.
在一种可能的场景中,根据天气应用及交通应用推送的通知消息得出的时间调整量对闹钟的起闹时间进行调整后,得出的调整后的起闹时间早于当前时间,此时应该立刻触发闹钟。In a possible scenario, after adjusting the alarm time of the alarm according to the time adjustment amount obtained by the weather application and the notification message pushed by the traffic application, the adjusted starting time is earlier than the current time. The alarm should be triggered immediately.
本申请中,目标路线的获取方式与上一实施例中描述的目标路线获取方式一致,在此不再赘述。In this application, the manner of obtaining the target route is the same as that of the target route described in the previous embodiment, and details are not described herein again.
本申请中,当收到交通应用的通知消息后,该通知消息表征的交通只能对一段时间之后的闹钟产生影响,即该通知消息只能与一段时间之后的闹钟关联。其中,一段时间例如可以是2小时、1小时等。以一段时间为2小时为例,在6:00收到的交通应用的通知消息,根据该通知消息并结合天气应用的通知消息得出时间调整量后只能对起闹时间在6:00之后且8:00及其之前的闹钟的起闹时间进行调整。例如,从图27中可以看出,接收到交通应用的通知消息的当前时间为6:05,可以知道该通知消息只可与闹钟1关联,即该通知消息表征的交通可能会影响闹钟1的起闹时间。因此,在得出时间调整量为30mins后,可以将闹钟1的起闹时间从7:30调整为7:00,如图23所示。In the present application, after receiving the notification message of the traffic application, the traffic represented by the notification message can only affect the alarm clock after a period of time, that is, the notification message can only be associated with the alarm clock after a period of time. The period of time may be, for example, 2 hours, 1 hour, or the like. Taking a period of time of 2 hours as an example, the notification message of the traffic application received at 6:00, according to the notification message and the notification message of the weather application, the time adjustment amount can only be used after the 6:00 time. The alarm time of the alarm clock at 8:00 and before is adjusted. For example, as can be seen from FIG. 27, the current time of receiving the notification message of the traffic application is 6:05, and it can be known that the notification message can only be associated with the alarm clock 1, that is, the traffic represented by the notification message may affect the alarm clock 1. Noisy time. Therefore, after the time adjustment amount is 30 mins, the alarm time of the alarm 1 can be adjusted from 7:30 to 7:00, as shown in FIG.
在本申请的一些实施例中,影响因素除了包括天气和交通两项因素外,还可以进一步包括事件。其中,事件的发生时间处于与闹钟的起闹时间关联的时间范围内。In some embodiments of the present application, the influencing factors may further include events in addition to weather and traffic. The time of occurrence of the event is within a time range associated with the alarm time of the alarm clock.
在接收到第一消息之后,首先可以根据词法分析器提取关键词,分析出第一消息包括的天气信息表征的天气、交通信息表征的交通拥堵程度以及事件信息表征的事件发生时间;然后确定时间调整量;最后根据时间调整量对闹钟的起闹时间进行调整。其中,对于时间调整量的确定,可以包括以下几种实现方式。After receiving the first message, the keyword may first be extracted according to the lexical analyzer, and the weather information represented by the first message, the traffic congestion characterized by the traffic information, and the event occurrence time represented by the event information are analyzed; then the time is determined. Adjust the amount; finally adjust the alarm time based on the time adjustment amount. The determination of the amount of time adjustment may include the following implementation manners.
假设,第一消息包括的天气信息由天气应用提供;第一消息包括的交通信息由谷歌地图应用提供;第一消息包括的事件信息由邮件应用提供。It is assumed that the weather information included in the first message is provided by the weather application; the traffic information included in the first message is provided by the Google Maps application; the event information included in the first message is provided by the mail application.
第一种实现方式,可以根据第四映射表确定该天气、交通以及事件对应的时间调整量。第四映射表中可包括不同的天气、不同的交通拥堵程度及不同的事件发生时间与闹钟起闹时间之间的关系对应的时间调整量。具体确定过程可参考天气实施例中根据第一映射表确定时间调整量的过程,交通实施例中根据第二映射表确定时间调整量的过程,或者天气及交通实施例中根据第三映射表确定时间调整量的过程。在此不再赘述。In the first implementation manner, the time adjustment amount corresponding to the weather, the traffic, and the event may be determined according to the fourth mapping table. The fourth mapping table may include different weather, different traffic congestion levels, and a time adjustment amount corresponding to the relationship between the event occurrence time and the alarm time. The specific determining process may refer to the process of determining the time adjustment amount according to the first mapping table in the weather embodiment, the process of determining the time adjustment amount according to the second mapping table in the traffic embodiment, or determining according to the third mapping table in the weather and traffic embodiment. The process of adjusting the amount of time. I will not repeat them here.
第二种实现方式,可以根据天气、谷歌地图及邮件应用的综合服务器数据确定时间调整量。该综合服务器数据可包括不同用户在不同天气、不同交通拥堵程度及不同的事件发生时间与闹钟起闹时间之间的关系下的历史数据。具体确定过程可参考天气实施例中根据天气应用的服务器数据确定时间调整量的过程,交通实施例中根据交通应用的服务器数据确定时间调整量的过程,或者天气及交通实施例中根据天气及交通应用的服务器数据确定时间调整量的过程。在此不再赘述。In the second implementation, the amount of time adjustment can be determined based on the weather, the Google map, and the integrated server data of the mail application. The integrated server data may include historical data of different users in different weather, different traffic congestion levels, and different event occurrence times and alarm time. The specific determination process may refer to the process of determining the time adjustment amount according to the server data of the weather application in the weather embodiment, the process of determining the time adjustment amount according to the server data of the traffic application in the traffic embodiment, or the weather and traffic according to the weather and traffic example The process of determining the amount of time adjustments by the server data of the application. I will not repeat them here.
方法实施例:接下来将基于上述所有实施例对本申请中涉及的闹钟调整方法进行介绍。Method Embodiment: Next, an alarm clock adjustment method involved in the present application will be described based on all the above embodiments.
图32为本发明实施例提供的一种闹钟调整方法流程图。如图32所示,闹钟调整方法至少可以包括以下几个步骤。 FIG. 32 is a flowchart of an alarm clock adjustment method according to an embodiment of the present invention. As shown in FIG. 32, the alarm adjustment method may include at least the following steps.
S101:获取第一应用列表中应用程序的第一消息。S101: Acquire a first message of an application in the first application list.
具体地,第一应用列表为用户订阅的应用列表,第一应用列表包括用户订阅的一个或多个能够提供第一消息的应用程序。当用户订阅了某应用后,闹钟应用可以获取该应用提供的第一消息。Specifically, the first application list is a list of applications subscribed by the user, and the first application list includes one or more applications that the user subscribes to and can provide the first message. When the user subscribes to an application, the alarm application can obtain the first message provided by the application.
具体的,可以通过下述几种方式来获取第一消息。Specifically, the first message can be obtained in the following manners.
第一种,可以通过监听系统的通知栏来获取第一消息。First, you can get the first message by listening to the notification bar of the system.
例如,在Android系统中,可以通过NotificationListenerService机制,获取应用推送到通知栏的第一消息。For example, in the Android system, the first message pushed by the application to the notification bar can be obtained through the NotificationListenerService mechanism.
具体地,在Android系统中,可以通过NotificationListenerService机制获取到所有推送到通知栏的通知消息,每一次获取到通知消息以后,可以对该通知消息的源应用标识与第一应用列表里所有源应用标识进行比较,若该通知消息的源应用标识与第一应用列表里的一个源应用标识一致,则对该通知消息进行后续处理,若不一致,则不对该通知消息做任何处理。Specifically, in the Android system, all notification messages pushed to the notification bar can be obtained through the NotificationListenerService mechanism, and each time the notification message is obtained, the source application identifier of the notification message and all source application identifiers in the first application list can be identified. For comparison, if the source application identifier of the notification message is consistent with a source application identifier in the first application list, the notification message is subsequently processed. If not, the notification message is not processed.
示例仅仅是本申请提供的一种实现方式。当有通知消息推送到终端时,闹钟应用还可以通过其他的方式获取第一应用列表中的所有应用推送到通知栏的消息的内容。The examples are merely one implementation provided by the present application. When a notification message is pushed to the terminal, the alarm application can also obtain the content of the message pushed to the notification bar by all the applications in the first application list by other means.
第二种,可以向第一应用列表中的应用程序的服务器请求获取第一消息。Second, the first message can be requested from the server of the application in the first application list.
具体的,可以在第一应用列表中的应用程序的服务器端授权给闹钟应用,当闹钟应用向第一应用列表中的应用程序的服务器请求获取第一消息时,第一应用列表中的应用程序的服务器可以检测该闹钟应用的源标识是否与已授权的应用的源标识一致,若一致,则允许该闹钟应用从第一应用列表中的应用程序的服务器获取第一消息。Specifically, the alarm application may be authorized on the server end of the application in the first application list, and the application in the first application list is requested when the alarm application requests the first message from the server of the application in the first application list. The server may detect whether the source identifier of the alarm application is consistent with the source identifier of the authorized application, and if consistent, allow the alarm application to obtain the first message from the server of the application in the first application list.
S103:根据第一消息分析第一消息表征的起闹时间的影响因素是否满足预设条件。S103: Analyze, according to the first message, whether an influencing factor of the start time represented by the first message satisfies a preset condition.
具体的,影响因素可以包括天气、交通以及事件中的至少一项。Specifically, the influencing factors may include at least one of weather, traffic, and events.
当影响因素为天气时,判断第一消息包括的天气信息表征的天气是否与第一天气一致。如果一致,则第一消息表征的天气满足预设条件。第一天气可以是恶劣天气,例如小雨、中雨、大雨、暴雨、雷阵雨、雨夹雪、小雪、大雪等可能会引起人们出行不便的天气。When the influencing factor is weather, it is determined whether the weather information included in the weather information included in the first message is consistent with the first weather. If they are consistent, the weather characterized by the first message satisfies the preset condition. The first weather can be bad weather, such as light rain, moderate rain, heavy rain, heavy rain, thunderstorms, sleet, light snow, heavy snow, etc., which may cause people to travel inconveniently.
当影响因素为交通时,判断第一消息包括的交通信息表征的交通拥堵程度是否大于交通拥堵阈值,若是,则第一消息表征的交通满足预设条件。其中,交通拥堵程度可以由交通拥堵长度区间表示。When the influencing factor is traffic, it is determined whether the traffic congestion characterized by the traffic information included in the first message is greater than a traffic congestion threshold, and if so, the traffic characterized by the first message satisfies a preset condition. Among them, the degree of traffic congestion can be represented by the length of the traffic congestion.
当影响因素为事件时,判断第一消息包括的事件信息表征的事件发生时间是否处于与闹钟的起闹时间关联的时间范围内。若事件发生时间早于起闹时间,且起闹时间减去事件发生时间的差值小于第一阈值,则满足预设条件。若起闹时间早于事件发生时间,且事件发生时间减去起闹时间小于第二阈值,则满足预设条件。When the influencing factor is an event, it is determined whether the event occurrence time represented by the event information included in the first message is within a time range associated with the alarm time of the alarm clock. If the event occurs earlier than the start time, and the difference between the start time minus the event occurrence time is less than the first threshold, the preset condition is satisfied. If the start time is earlier than the event occurrence time, and the event occurrence time minus the start time is less than the second threshold, the preset condition is satisfied.
当影响因素为天气、交通和事件中至少两项因素时,可以判断第一消息包括的上述至少两项因素的组合是否属于第一集合,如果属于,则满足预设条件。第一集合包括上述至少两项因素的组合,其中,每一个组合中的天气与第一天气一致,每一个组合中的交通拥堵程度大于交通拥堵阈值,每一个组合中的事件的发生时间处于与闹钟的起闹时间关联的时间范围内。When the influencing factor is at least two factors in the weather, the traffic, and the event, it may be determined whether the combination of the at least two factors included in the first message belongs to the first set, and if yes, the preset condition is met. The first set includes a combination of at least two of the above factors, wherein the weather in each combination is consistent with the first weather, the degree of traffic congestion in each combination is greater than the traffic congestion threshold, and the occurrence time of the events in each combination is The alarm time is related to the time range associated with the alarm.
S105:若满足,则根据第一消息确定时间调整量。S105: If yes, determine the time adjustment amount according to the first message.
当影响因素为天气时,根据第一消息确定时间调整量的方式有以下两种:When the influencing factor is weather, there are two ways to determine the amount of time adjustment according to the first message:
第一种,可以根据第一映射表确定第一消息包括的天气信息表征的天气对应的时间调整量,其中, 第一映射表包括不同天气各自对应的时间调整量。第一种实现方式可具体参考图5实施例,在此不再赘述。First, the time adjustment amount corresponding to the weather represented by the weather information included in the first message may be determined according to the first mapping table, where The first mapping table includes time adjustment amounts corresponding to different weathers. For the first implementation manner, reference may be made to the embodiment of FIG. 5, and details are not described herein again.
第二种,可以根据天气应用的服务器数据确定时间调整量。其中,天气应用的服务器数据包括不同用户在不同天气下行驶不同路线的行驶时间。第二种实现方式可具体参考图6-8实施例,在此不再赘述。Second, the amount of time adjustment can be determined based on the server data of the weather application. Among them, the server data of the weather application includes the travel time of different users traveling different routes in different weathers. The second implementation manner may be specifically referred to the embodiment of FIG. 6-8, and details are not described herein again.
当影响因素为交通时,根据第一消息确定时间调整量的方式有以下两种:When the influencing factor is traffic, there are two ways to determine the amount of time adjustment based on the first message:
第一种,可以根据第二映射表确定第一消息包括的交通信息表征的交通对应的时间调整量,其中,第二映射表包括不同交通拥堵长度区间各自对应的时间调整量。第一种实现方式可具体参考图18实施例,在此不再赘述。First, the time adjustment amount corresponding to the traffic represented by the traffic information included in the first message may be determined according to the second mapping table, where the second mapping table includes a time adjustment amount corresponding to each of the different traffic congestion length intervals. The first implementation manner may be specifically referred to the embodiment of FIG. 18, and details are not described herein again.
第二种,可以根据交通应用的服务器数据确定时间调整量。其中,交通应用的服务器数据包括不同用户在不同拥堵长度区间下行驶目标路线的行驶时间。第二种实现方式可具体参考图19-22实施例,在此不再赘述。Second, the amount of time adjustment can be determined based on the server data of the traffic application. The server data of the traffic application includes the travel time of the target route of different users in different congestion length intervals. The second implementation manner may be specifically referred to the embodiment of FIG. 19-22, and details are not described herein again.
当影响因素为事件时,根据事件的发生时间与闹钟的起闹时间之间的关系确定时间调整量。当发生时间早于起闹时间时,时间调整量至少为起闹时间减去发生时间的差值。进一步的,时间调整量至少为起闹时间减去发生时间的差值与准备时间之和。其中,准备时间与交通或者天气中至少一项相关。当起闹时间早于发生时间时,时间调整量与准备时间与第一时间间隔的大小有关。其中,第一时间间隔为起闹时间与发生时间之间的时间间隔。当准备时间大于第一时间间隔时,时间调整量至少为准备时间与第一时间间隔之间的差值。当准备时间不大于第一时间间隔时,时间调整量为零。具体可参考事件实施例中的相关部分,在此不再赘述。When the influencing factor is an event, the amount of time adjustment is determined according to the relationship between the occurrence time of the event and the alarm time of the alarm clock. When the occurrence time is earlier than the start time, the time adjustment amount is at least the difference between the start time and the occurrence time. Further, the amount of time adjustment is at least the sum of the difference between the occurrence time and the preparation time minus the occurrence time. Among them, the preparation time is related to at least one of traffic or weather. When the start time is earlier than the time of occurrence, the time adjustment amount and the preparation time are related to the size of the first time interval. The first time interval is a time interval between the start time and the time of occurrence. When the preparation time is greater than the first time interval, the time adjustment amount is at least a difference between the preparation time and the first time interval. When the preparation time is not greater than the first time interval, the time adjustment amount is zero. For details, refer to related parts in the event embodiment, and details are not described herein again.
当影响因素为天气和交通两项因素时,根据第一消息确定时间调整量的方式有以下两种:When the influencing factors are weather and traffic, there are two ways to determine the amount of time adjustment based on the first message:
第一种,可以根据第三映射表确定第一消息包括的天气信息表征的天气和交通信息表征的交通至少两项外部环境因素对应的时间调整量,其中,第三映射表包括不同天气和交通至少两项外部环境因素的组合各自对应的时间调整量。第一种实现方式可具体参考图27实施例,在此不再赘述。First, the time adjustment amount corresponding to at least two external environmental factors represented by the weather and the traffic information represented by the weather information included in the first message may be determined according to the third mapping table, wherein the third mapping table includes different weather and traffic A combination of at least two external environmental factors each corresponding to a time adjustment amount. The first implementation manner may be specifically referred to the embodiment of FIG. 27, and details are not described herein again.
第二种,可以根据天气应用及交通应用的服务器数据确定时间调整量。其中,天气及交通应用的服务器数据可包括不同用户在不同天气及不同拥堵长度区间下行驶目标路线的行驶时间。第二种实现方式可具体参考图28-31实施例,在此不再赘述。Second, the amount of time adjustment can be determined based on the weather application and server data of the traffic application. The server data of the weather and traffic application may include travel times of different users traveling the target route in different weather and different congestion length intervals. The second implementation manner may be specifically referred to the embodiment of FIG. 28-31, and details are not described herein again.
进一步地,当影响因素为天气、交通和事件时,根据第一消息确定时间调整量的方式有以下两种:Further, when the influencing factors are weather, traffic, and events, there are two ways to determine the amount of time adjustment according to the first message:
第一种,可以根据第四映射表确定第一消息包括的天气信息表征的天气、交通信息表征的交通以及事件信息表征的事件对应的时间调整量。第四映射表中可包括不同的天气、不同的交通拥堵程度及不同的事件发生时间与闹钟起闹时间之间的关系对应的时间调整量。第一种实现方式可具体参考天气、交通及事件实施例中相关部分,在此不再赘述。First, according to the fourth mapping table, the weather represented by the weather information included in the first message, the traffic characterized by the traffic information, and the time adjustment amount corresponding to the event characterized by the event information may be determined. The fourth mapping table may include different weather, different traffic congestion levels, and a time adjustment amount corresponding to the relationship between the event occurrence time and the alarm time. The first implementation manner may refer to relevant parts in the weather, traffic, and event embodiments, and details are not described herein again.
第二种,可以根据天气、交通及事件应用的综合服务器数据确定时间调整量。该综合服务器数据可包括不同用户在不同天气、不同交通拥堵程度及不同的事件发生时间与闹钟起闹时间之间的关系下的历史数据。其中,事件应用包括可以提供包含事件信息的通知消息的应用,例如短信、邮件、日历、备忘录等应用。第二种实现方式可具体参考天气、交通及事件实施例中相关部分,在此不再赘述。Second, the amount of time adjustment can be determined based on comprehensive server data for weather, traffic, and event applications. The integrated server data may include historical data of different users in different weather, different traffic congestion levels, and different event occurrence times and alarm time. The event application includes an application that can provide a notification message including event information, such as a text message, a mail, a calendar, a memo, and the like. The second implementation manner may refer to relevant parts in the weather, traffic, and event embodiments, and details are not described herein again.
S107:基于时间调整量调整起闹时间。S107: Adjust the start time based on the time adjustment amount.
具体地,得出时间调整量之后,将闹钟的起闹时间往前调整该时间调整量。例如,当时间调整量为 20分钟,而闹钟的起闹时间为8:00时,应该将闹钟的起闹时间调整为7:40。当得出时间调整量之后,得出调整后的闹钟的起闹时间早于当前时间时,闹钟应该立刻响铃。例如,当前时间为7:35,时间调整量为30分钟,而闹钟的起闹时间为8:00,那么闹钟的起闹时间原本应该调整为7:30,已经早于当前时间7:35,所以应该使闹钟立刻响铃。Specifically, after the time adjustment amount is obtained, the alarm time of the alarm is adjusted forward by the alarm time. For example, when the amount of time adjustment is 20 minutes, and when the alarm clock starts at 8:00, the alarm time should be adjusted to 7:40. After the time adjustment amount is obtained, it is determined that the alarm time of the adjusted alarm clock is earlier than the current time, and the alarm clock should ring immediately. For example, the current time is 7:35, the time adjustment is 30 minutes, and the alarm time is 8:00, then the alarm time should be adjusted to 7:30, already before the current time 7:35, So the alarm should be ringed immediately.
具体地,当用户设置了多个闹钟时,当前分析到的交通信息表征的交通只能对一段时间之内的闹钟产生影响。或者,事件信息表征的事件只能对该事件发生时间前后一段时间内的闹钟产生影响。Specifically, when the user sets a plurality of alarm clocks, the traffic represented by the currently analyzed traffic information can only affect the alarm clock within a certain period of time. Alternatively, the event characterized by the event information can only affect the alarm clock for a period of time before and after the event occurs.
例如,假设上述一段时间为2小时,那么在8:00得到的交通应用的通知消息,根据该通知消息得出时间调整量后,只能对10:00及其之前的还未起闹的闹钟的起闹时间进行调整。For example, if the above period of time is 2 hours, then the notification message of the traffic application obtained at 8:00, after the time adjustment amount is obtained according to the notification message, can only be used for the alarm clock that has not yet occurred at 10:00 and before. The adjustment time is adjusted.
具体地,当根据同一个应用多次提供的第一消息得出的时间调整量不一致时,应该以最近一次得出的时间调整量为准来调整闹钟最原始的起闹时间。例如,闹钟的起闹时间为8:00,即原始起闹时间,但是根据7:00收到通知消息得出时间调整量为30分钟,那么基于该时间调整量,将闹钟的起闹时间调整为7:30,当根据7:20收到通知消息得出的时间调整量为20分钟时,那么基于此时的时间调整量,应该将闹钟的原始起闹时间8:00,调整为7:40。Specifically, when the time adjustment amount obtained according to the first message provided by the same application multiple times is inconsistent, the most original time of the alarm clock should be adjusted according to the time adjustment amount obtained last time. For example, the alarm time of the alarm clock is 8:00, which is the original start time, but according to the notification message received at 7:00, the time adjustment amount is 30 minutes, then based on the time adjustment amount, the alarm time of the alarm is adjusted. At 7:30, when the time adjustment amount based on the notification message received at 7:20 is 20 minutes, then based on the time adjustment amount at this time, the original alarm time of the alarm clock should be adjusted to 7:00: 40.
实施本发明实施例可以根据用户订阅的第一应用列表里的应用程序提供的第一消息表征的不同影响因素对闹钟的起闹时间进行实时调整,保证用户出行的准时性。The embodiment of the present invention can adjust the alarm time of the alarm clock in real time according to different influence factors of the first message representation provided by the application in the first application list subscribed by the user, and ensure the punctuality of the user travel.
在本申请的一些实施例中,手机100的操作系统便通过RF电路102连接到运营商的网络,并连接云端的地图厂商的服务器或者天气提供商的服务器,实时接收云端服务器推送的通知消息。In some embodiments of the present application, the operating system of the mobile phone 100 is connected to the operator's network through the RF circuit 102, and is connected to the server of the cloud map manufacturer or the server of the weather provider, and receives the notification message pushed by the cloud server in real time.
在本申请的一些实施例中,以安卓系统为例,对所述闹钟应用解析订阅应用的通知栏消息内容,实时调整预设闹钟时间进行举例说明。所述闹钟应用可以通过安卓系统提供的通知监听服务(NotificationListenerService)能力。将闹钟应用中实现的通知监听服务(NotificationListenerService)的逻辑处理注册到安卓系统中即可获取到订阅应用的通知栏消息的内容。In some embodiments of the present application, the Android system is taken as an example, and the alarm clock application is used to parse the content of the notification bar message of the subscription application, and the preset alarm time is adjusted in real time for illustration. The alarm clock application can pass the Notification Listener Service capability provided by the Android system. The logical processing of the notification listener service (NotificationListenerService) implemented in the alarm clock application is registered in the Android system to obtain the content of the notification bar message of the subscription application.
手机100上的所述闹钟应用可通过词法分析器对通知栏消息内容进行词法分析,根据关键字识别出高德地图应用或天气应用推送的通知栏消息的实时场景信息。所述词法分析器可以为例如,开源的THULAC等。所述闹钟应用根据所述高德地图应用推送的路况信息计算出来的时间调整量A,根据天气应用的信息估算出出行时间的调整量C,假设当前时间为M,响铃的时间为N,如果满足N小于或等于M+A+C,所述闹钟应用可以立即触发响铃事件。若N不满足上述条件,则可以使得手机100休眠直到闹钟响铃时间或者下次推送消息的到达。The alarm clock application on the mobile phone 100 can perform lexical analysis on the content of the notification bar message through the lexical analyzer, and identify real-time scene information of the notification bar message of the high-definition map application or the weather application push according to the keyword. The lexical analyzer can be, for example, an open source THULAC or the like. The alarm clock applies a time adjustment amount A calculated according to the road condition information pushed by the high-tech map application, and estimates an adjustment amount C of the travel time according to the weather application information, assuming that the current time is M, and the ringing time is N. If N is less than or equal to M+A+C, the alarm application can immediately trigger a ringing event. If N does not satisfy the above conditions, the mobile phone 100 can be made to sleep until the alarm ringing time or the arrival of the next push message.
在本申请的一些实施例中,所述处理器101可以自动的计算闹钟的响铃时间,根据存储器103中存储的订阅应用列表,通过WiFi装置107或者RF电路102连接到互联网,接收地图服务器与天气服务器推送的实时数据的通知消息,对所述通知消息的内容进行语义分析,根据得到的结果评估出闹钟调整量。当响铃时间有调整时,则发送信令到音频电路109、扬声器113提前启动响铃操作。当处理器101计算需要触发闹钟响铃时,则通过音频电路109、扬声器113输出闹铃。闹钟应用也可以通过WiFi装置107并连接云端地图服务器或者天气服务器,实时接收服务器推送的通知消息。 In some embodiments of the present application, the processor 101 can automatically calculate the ringing time of the alarm clock, connect to the Internet through the WiFi device 107 or the RF circuit 102 according to the subscription application list stored in the memory 103, and receive the map server and The notification message of the real-time data pushed by the weather server performs semantic analysis on the content of the notification message, and evaluates the alarm adjustment amount according to the obtained result. When the ringing time is adjusted, signaling is sent to the audio circuit 109, and the speaker 113 initiates the ringing operation in advance. When the processor 101 calculates that it is necessary to trigger the alarm to ring, the alarm is output through the audio circuit 109 and the speaker 113. The alarm clock application can also receive the notification message pushed by the server in real time through the WiFi device 107 and connected to the cloud map server or the weather server.
在本申请的一些实施例中,所述手机100根据用户关注的场景以文本的形式将消息推送到手机应用中。以高德地图应用为例,如果用户关注两个地点的实时路况,则可在高德地图应用中设置两个地点,所述高德地图服务器监测到交通路况信息发生变化,会向所述手机100发送通知消息。具体的,所述手机100中的所述处理器101通过WiFi装置107或者射频电路102接收到通知消息,通知对应的应用将通知消息的内容提交操作系统的通知服务,并通过显示器104-2显示在所述手机100的通知栏信息。所述安卓系统的通知服务将所述通知消息的内容通过所述处理器101将所述通知消息的内容应用在所述闹钟应用中。以安卓系统为例,闹钟应用通过将消息订阅逻辑处理注册到操作系统中,当有应用消息推送到手机时,安卓操作系统会将该消息的文本内容以及关联的应用标识(packageName)提交到闹钟应用之前注册的通知监听服务逻辑处理中,通过安卓的系统函数StatusBarNotification.getCharSequence(Notification.EXTRA_TEXT)可以获取通知栏推送的文本信息,通过安卓系统函数StatusBarNotification.getPackageName()可以获取到该消息来源的应用标识,闹钟应用再通过sqlite去读取用户订阅的应用标识列表,如果本次消息的应用标识在订阅的应用标识列表中则处理,否则不对该通知栏消息进行处理。所述手机100中的所述处理器101收到通知消息的内容,根据所述通知消息对应的源应用的标识以及之前存储在存储器103中订阅应用的列表进行比较,如果是在订阅列表中则处理,否则不处理。所述处理器101根据词法分析器对文本内容进行分析,提取出关键词,并识别出时间的调整量。以高德地图服务器推送的通知消息文本为例对词法分析器的分析进行说明。例如,高德地图服务器推送到通知消息为:“A中心书城到B体育馆堵车30分钟”。所述处理器101经过词法分析器分析之后的结果为:A_ns中心_a书城_n到_v B_nz体育馆_ni堵车_v 30_m分钟_q。其中,ns表示为地名,a表示为形容词,n表示为名词,v表示为动词,nz表示为其它专名,ni表示为机构名,v表示为动词,m表示为数词,q表示为量词。所述处理器101通过抽取地名,机构名,动词,数词,量词即可解析出来因为堵车时间调整量为30分钟。所述处理器101根据所述存储器103存储的预设闹钟时间、当前的时间,以及时间调整量进行计算,如果满足条件则触发响铃操作。In some embodiments of the present application, the mobile phone 100 pushes a message to a mobile phone application in the form of text according to a scene of interest to the user. Taking the high-tech map application as an example, if the user pays attention to the real-time road conditions of the two locations, two locations can be set in the high-tech map application, and the high-order map server monitors the change of the traffic condition information to the mobile phone. 100 sends a notification message. Specifically, the processor 101 in the mobile phone 100 receives a notification message through the WiFi device 107 or the radio frequency circuit 102, and notifies the corresponding application to submit the content of the notification message to the notification service of the operating system, and displays it through the display 104-2. The notification bar information of the mobile phone 100. The notification service of the Android system applies the content of the notification message to the alarm application by the processor 101. Taking the Android system as an example, the alarm clock application registers the message processing logic into the operating system. When an application message is pushed to the mobile phone, the Android operating system submits the text content of the message and the associated application identifier (packageName) to the alarm clock. In the notification processing service logic registered before the application, the text function of the notification bar can be obtained through the Android system function StatusBarNotification.getCharSequence(Notification.EXTRA_TEXT), and the application of the message source can be obtained through the Android system function StatusBarNotification.getPackageName(). The alarm clock application then reads the application identifier list subscribed by the user through sqlite. If the application identifier of the current message is processed in the subscribed application identifier list, the notification column message is not processed. The processor 101 in the mobile phone 100 receives the content of the notification message, and compares the identifier of the source application corresponding to the notification message with the list of subscription applications previously stored in the memory 103, if it is in the subscription list. Processing, otherwise it will not be processed. The processor 101 analyzes the text content according to the lexical analyzer, extracts keywords, and recognizes the amount of time adjustment. The analysis of the lexical analyzer is described by taking the text of the notification message pushed by the high-order map server as an example. For example, the high-tech map server pushes the notification message as: "A center bookstore to B stadium traffic jam for 30 minutes." The result of the processor 101 after analysis by the lexical analyzer is: A_ns center_a bookstore_n to _v B_nz stadium _ni traffic jam_v 30_m minutes _q. Where ns is represented as a place name, a is an adjective, n is a noun, v is a verb, nz is a special name, ni is an institution name, v is a verb, m is a number, and q is a quantifier. The processor 101 can parse the place name, the institution name, the verb, the number, and the quantifier by extracting the place-time adjustment amount for 30 minutes. The processor 101 performs calculation according to the preset alarm time, the current time, and the time adjustment amount stored in the memory 103, and triggers a ringing operation if the condition is met.
本申请实施例通过在闹钟应用中增加应用订阅模式,向用户提供可订阅应用列表,使得用户可以订阅日历、短信、邮件、天气、或地图等应用的通知栏通知消息,终端可以实时监听订阅应用的通知消息实现预设闹钟时间的调整,实现闹钟调节的实时性,提高了闹钟调节的准确性和灵活性。通过监听订阅应用的通知消息,终端可以更精确更智能化的管理闹钟的响铃时间,避免因为天气或者路况突发情况而导致的用户出行的迟到现象。用户在设置闹钟时可通过订阅各种应用通知栏消息,实时收集路况以及天气等外部场景的信息,并自动的对响铃的时间做出调整,也大大提高了用户出行的便利性。In the embodiment of the present application, the application subscription mode is added to the alarm clock application, and the user can be provided with a subscription application list, so that the user can subscribe to the notification bar notification message of the calendar, the short message, the mail, the weather, or the map, and the terminal can monitor the subscription application in real time. The notification message realizes the adjustment of the preset alarm time, realizes the real-time adjustment of the alarm clock, and improves the accuracy and flexibility of the alarm adjustment. By monitoring the notification message of the subscription application, the terminal can manage the ringing time of the alarm clock more accurately and intelligently, and avoid the late arrival of the user due to weather or road conditions. Users can subscribe to various application notification bar messages when they set the alarm clock, collect real-time information such as road conditions and weather, and automatically adjust the ringing time, which greatly improves the convenience of users.
本申请的一些实施例还可以通过通知监听服务(NotificationListenerService)实现获取通知栏通知消息的内容,并根据词法分析器获取因外部的场景因素,获得时间调整量,进而根据所述时间调整量调整预设闹铃时间,提高了闹铃的准确性,也提高了终端自动调节的效率和智能化。Some embodiments of the present application may also obtain the content of the notification bar notification message by using a notification listener service (NotificationListenerService), and obtain a time adjustment amount according to the external scene factor according to the lexical analyzer, and then adjust the pre-adjustment according to the time adjustment amount. Setting the alarm time improves the accuracy of the alarm and improves the efficiency and intelligence of the terminal automatic adjustment.
如图34所示,本申请实施例提供一种闹钟提醒的方法,所述方法在电子设备上实现。所述方法包括:As shown in FIG. 34, the embodiment of the present application provides a method for alerting an alarm clock, and the method is implemented on an electronic device. The method includes:
S3401,所述电子设备接收闹钟设置的输入,所述闹钟设置包括第一时间和应用消息订阅信息,根据所述闹钟设置将所述第一时间设置为闹铃时间,所述应用消息订阅信息包括订阅应用。S3401: The electronic device receives an input of an alarm setting, where the alarm setting includes a first time and application message subscription information, and the first time is set as an alarm time according to the alarm setting, and the application message subscription information includes Subscribe to the app.
S3402,所述电子设备根据所述订阅应用监控到所述订阅应用的通知消息。 S3402. The electronic device monitors a notification message of the subscription application according to the subscription application.
S3403,所述电子设备根据所述通知消息获取闹钟调整量,根据所述闹钟调整量校正所述第一时间得到第二时间,将所述第二时间设置为闹铃时间。S3403: The electronic device acquires an alarm adjustment amount according to the notification message, corrects the first time according to the alarm adjustment amount to obtain a second time, and sets the second time as an alarm time.
通过该实施例是使得电子设备更加灵活的设置闹钟和调整闹钟,并且及时提示闹铃,提高了电子设备的智能化,也提高了用户的体验。The embodiment is to make the electronic device more flexible to set the alarm clock and adjust the alarm clock, and prompt the alarm in time, thereby improving the intelligence of the electronic device and improving the user experience.
在本申请的一些实施例中,所述通知消息包括所述电子设备的通知栏通知消息。In some embodiments of the present application, the notification message includes a notification bar notification message of the electronic device.
在本申请的一些实施例中,所述订阅应用包括至少两个应用。例如,由于天气和交通对用户的出行影响比较大,所述订阅应用可以包括天气应用和地图应用。临时的会议通知也会影响用户的出行,所述订阅应用还可以包括日历应用或者电子邮件应用。In some embodiments of the present application, the subscription application includes at least two applications. For example, the subscription application may include a weather application and a map application due to the greater impact of weather and traffic on the user's travel. Temporary meeting notifications can also affect the user's travel, and the subscription application can also include a calendar application or an email application.
在本申请的一些实施例中,所述电子设备根据所述通知消息获取闹钟调整量具体包括:所述电子设备获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若所述事件的发生时间早于起闹时间,且起闹时间减去事件发生时间的差值小于第一阈值,根据所述事件信息获取闹钟调整量。In some embodiments of the present application, the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event represented by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, if the event occurs earlier than the start time, and the difference between the occurrence time minus the event occurrence time is less than the first threshold, according to the event Information gets the amount of alarm adjustment.
在本申请的一些实施例中,所述电子设备根据所述通知消息获取闹钟调整量具体包括:所述电子设备获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若起闹时间早于事件发生时间,且事件发生时间减去起闹时间小于第二阈值,根据所述事件信息获取闹钟调整量。In some embodiments of the present application, the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message includes: acquiring, by the electronic device, event information of the notification message, and determining an event represented by the event information of the notification message. Whether the occurrence time is within a time range associated with the alarm time of the alarm clock, if the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm adjustment amount is obtained according to the event information.
在本申请的一些实施例中,所述闹钟设置包括目标路线,所述通知消息包括在第一天气情况下目标路线所需的路途时间,所述电子设备根据所述通知消息获取闹钟调整量具体包括:所述电子设备根据在所述第一天气信息情况下所需的所述路途时间确定闹钟调整量。所述在第一天气情况下目标路线所需的路途时间可以通过天气应用获取,也可以通过地图应用获取,或者通过两个应用共同工作获取,本申请实施例不具体限定。In some embodiments of the present application, the alarm clock setting includes a target route, the notification message includes a travel time required for the target route in the first weather condition, and the electronic device acquires an alarm clock adjustment amount according to the notification message. The method includes: the electronic device determining an alarm adjustment amount according to the travel time required in the case of the first weather information. The travel time required for the target route in the first weather situation may be acquired by the weather application, or may be obtained by using a map application, or may be obtained by working together by two applications, which is not specifically limited in this embodiment.
在本申请的一些实施例中,所述订阅应用包括日历应用,所述根据所述通知消息获取闹钟调整量具体还包括:根据所述日历应用通知信息中的事件信息确定闹钟调整量。In some embodiments of the present application, the subscription application includes a calendar application, and the obtaining the alarm clock adjustment amount according to the notification message specifically includes: determining an alarm clock adjustment amount according to the event information in the calendar application notification information.
在本申请的一些实施例中,所述电子设备通过词法分析器分析所述通知消息。In some embodiments of the present application, the electronic device analyzes the notification message by a lexer.
在本申请的一些实施例中,所述电子设备接收查询所述闹钟的操作,显示所述闹钟订阅应用信息。In some embodiments of the present application, the electronic device receives an operation of querying the alarm clock, and displays the alarm clock subscription application information.
在本申请的一些实施例中,所述电子设备根据所述通知消息获取闹钟调整量具体还包括:所述电子设备根据所述通知消息中的事件信息查询映射表获取所述事件信息对应的闹钟调整量。In some embodiments of the present application, the acquiring, by the electronic device, the alarm clock adjustment amount according to the notification message further includes: the electronic device acquiring an alarm clock corresponding to the event information according to the event information query mapping table in the notification message Adjustment amount.
如图33所示,本申请实施例公开了一种终端设备3310,该终端设备3310可以包括:触摸屏3311、处理器3312、存储器3313,还包括连接上述器件的一条或多条通信总线3314。本申请实施例中的终端设备3310可以用于执行上述实施例中的各个方法及附图中的技术方案。As shown in FIG. 33, the embodiment of the present application discloses a terminal device 3310. The terminal device 3310 may include a touch screen 3311, a processor 3312, and a memory 3313, and further includes one or more communication buses 3314 connecting the devices. The terminal device 3310 in the embodiment of the present application may be used to implement the technical solutions in the respective methods and the drawings in the foregoing embodiments.
本申请实施例还提供了一种终端设备,该终端设备具有实现上述方法实际中终端设备行为的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。The embodiment of the present application further provides a terminal device, which has the function of realizing the behavior of the terminal device in the actual method. The functions may be implemented by hardware or by corresponding software implemented by hardware. The hardware or software includes one or more modules corresponding to the functions described above.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或 功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如DVD)、或者半导体介质(例如固态硬盘)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes described in accordance with embodiments of the present application are generated in whole or in part Features. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center via wired (eg, coaxial cable, fiber optic, digital subscriber line) or wireless (eg, infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, an optical medium such as a DVD, or a semiconductor medium such as a solid state hard disk or the like.
为了解释的目的,前面的描述是通过参考具体实施例来进行描述的。然而,上面的示例性的讨论并非意图是详尽的,也并非意图要将本申请限制到所公开的精确形式。根据以上教导内容,很多修改形式和变型形式都是可能的。选择和描述实施例是为了充分阐明本申请的原理及其实际应用,以由此使得本领域的其他技术人员能够充分利用具有适合于所构想的特定用途的各种修改的本申请以及各种实施例。 For the purposes of explanation, the foregoing description has been described by reference to the specific embodiments. However, the above illustrative discussions are not intended to be exhaustive or to limit the invention to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The embodiments were chosen and described in order to explain the embodiments of the invention and the embodiments of the invention example.

Claims (18)

  1. 一种闹钟提醒的方法,所述方法在电子设备上实现,其特征在于,所述方法包括:A method for alerting an alarm clock, the method being implemented on an electronic device, wherein the method comprises:
    接收闹钟设置的输入,所述闹钟设置包括第一时间和应用消息订阅信息,根据所述闹钟设置将所述第一时间设置为闹铃时间,所述应用消息订阅信息包括订阅应用;Receiving an input of an alarm setting, where the alarm setting includes a first time and application message subscription information, the first time is set as an alarm time according to the alarm setting, and the application message subscription information includes a subscription application;
    根据所述订阅应用监控到所述订阅应用的通知消息;Monitoring a notification message to the subscription application according to the subscription application;
    根据所述通知消息获取闹钟调整量,根据所述闹钟调整量校正所述第一时间得到第二时间,将所述第二时间设置为闹铃时间。Acquiring an alarm adjustment amount according to the notification message, correcting the first time according to the alarm adjustment amount to obtain a second time, and setting the second time as an alarm time.
  2. 如权利要求1所述的方法,其特征在于,所述通知消息包括所述电子设备的通知栏通知消息。The method of claim 1 wherein said notification message comprises a notification bar notification message of said electronic device.
  3. 如权利要求1或2所述的方法,其特征在于,所述订阅应用包括至少两个应用。The method of claim 1 or 2, wherein the subscription application comprises at least two applications.
  4. 如权利要求1-3任一所述的方法,其特征在于,所述根据所述通知消息获取闹钟调整量具体包括:获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若所述事件的发生时间早于起闹时间,且起闹时间减去事件发生时间的差值小于第一阈值,根据所述事件信息获取闹钟调整量。The method according to any one of claims 1-3, wherein the obtaining the alarm adjustment amount according to the notification message comprises: acquiring event information of the notification message, and determining that the event information of the notification message is characterized Whether the occurrence time of the event is within a time range associated with the alarm time of the alarm clock, if the occurrence time of the event is earlier than the start time, and the difference between the occurrence time of the event minus the event occurrence time is less than the first threshold, according to the The event information obtains an alarm adjustment amount.
  5. 如权利要求1-3任一所述的方法,其特征在于,所述根据所述通知消息获取闹钟调整量具体包括:获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若起闹时间早于事件发生时间,且事件发生时间减去起闹时间小于第二阈值,根据所述事件信息获取闹钟调整量。The method according to any one of claims 1-3, wherein the obtaining the alarm adjustment amount according to the notification message comprises: acquiring event information of the notification message, and determining that the event information of the notification message is characterized Whether the occurrence time of the event is within a time range associated with the alarm time of the alarm clock. If the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm clock adjustment is obtained according to the event information. the amount.
  6. 如权利要求1-3任一所述的方法,其特征在于,所述闹钟设置包括目标路线,所述通知消息包括在第一天气情况下目标路线所需的路途时间,所述根据所述通知消息获取闹钟调整量具体包括:根据在所述第一天气信息情况下所需的所述路途时间确定闹钟调整量。A method according to any one of claims 1 to 3, wherein said alarm setting includes a target route, said notification message including a travel time required for the target route in the first weather condition, said notification based on said notification The message acquisition alarm adjustment amount specifically includes: determining an alarm adjustment amount according to the travel time required in the case of the first weather information.
  7. 如权利要求1或2所述的方法,其特征在于,所述订阅应用包括日历应用,所述根据所述通知消息获取闹钟调整量具体还包括:根据所述日历应用通知信息中的事件信息确定闹钟调整量。The method of claim 1 or 2, wherein the subscription application comprises a calendar application, and the obtaining the alarm clock adjustment amount according to the notification message further comprises: determining, according to event information in the calendar application notification information The amount of alarm adjustment.
  8. 如权利要求1-7任一所述的方法,其特征在于,所述方法还包括:所述电子设备通过词法分析器分析所述通知消息。The method of any of claims 1-7, wherein the method further comprises the electronic device analyzing the notification message by a lexer.
  9. 如权利要求1-8任一所述的方法,其特征在于,所述方法还包括:接收查询所述闹钟的操作,显示所述闹钟订阅应用信息。The method according to any one of claims 1-8, wherein the method further comprises: receiving an operation of querying the alarm clock, and displaying the alarm clock subscription application information.
  10. 如权利要求1-9任一所述的方法,其特征在于,所述根据所述通知消息获取闹钟调整量具体还包括:根据所述通知消息中的事件信息查询映射表获取所述事件信息对应的闹钟调整量。The method according to any one of claims 1-9, wherein the obtaining the alarm clock adjustment amount according to the notification message further comprises: obtaining the event information corresponding according to the event information query mapping table in the notification message The amount of alarm clock adjustment.
  11. 一种电子设备,其特征在于,所述电子设备包括显示屏,存储器,一个或多个处理器,以及一个或多个程序;其中所述一个或多个程序被存储在所述存储器中;其特征在于,所述一个或多个处理器在执行所述一个或多个程序时,使得所述终端设备实现如权利要求1至10任一项所述的方法。An electronic device, comprising: a display screen, a memory, one or more processors, and one or more programs; wherein the one or more programs are stored in the memory; The method is characterized in that the one or more processors, when executing the one or more programs, cause the terminal device to implement the method of any one of claims 1 to 10.
  12. 一种计算机可读存储介质,包括指令,其特征在于,当其在计算机上运行时,使得所述计算机执行如权利要求1-10任一所述的方法。A computer readable storage medium comprising instructions characterized by causing the computer to perform the method of any of claims 1-10 when it is run on a computer.
  13. 一种包含指令的计算机程序产品,其特征在于,当其在计算机上运行时,使得计算机执行如权利要求1-10任意一项所述的方法。A computer program product comprising instructions, wherein when executed on a computer, causes the computer to perform the method of any of claims 1-10.
  14. 一种电子设备,其特征在于,所述电子设备包括处理器和触摸屏,其中, An electronic device, comprising: a processor and a touch screen, wherein
    所述触摸屏用于接收闹钟设置的输入,所述闹钟设置包括第一时间和应用消息订阅信息,根据所述闹钟设置将所述第一时间设置为闹铃时间,所述应用消息订阅信息包括订阅应用;The touch screen is configured to receive an input of an alarm setting, where the alarm setting includes a first time and application message subscription information, and the first time is set as an alarm time according to the alarm setting, and the application message subscription information includes a subscription. application;
    所述处理器用于根据所述订阅应用监控到所述订阅应用的通知消息;The processor is configured to monitor, according to the subscription application, a notification message to the subscription application;
    所述处理器还用于根据所述通知消息获取闹钟调整量,根据所述闹钟调整量校正所述第一时间得到第二时间,将所述第二时间设置为闹铃时间。The processor is further configured to acquire an alarm adjustment amount according to the notification message, correct the first time according to the alarm adjustment amount to obtain a second time, and set the second time as an alarm time.
  15. 如权利要求14所述的电子设备,其特征在于,所述处理器还用于获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若所述事件的发生时间早于起闹时间,且起闹时间减去事件发生时间的差值小于第一阈值,根据所述事件信息获取闹钟调整量。The electronic device according to claim 14, wherein the processor is further configured to acquire event information of the notification message, and determine whether an event occurrence time of the event information of the notification message is in an alarm state During the time range associated with the time, if the event occurs earlier than the start time, and the difference between the start time minus the event occurrence time is less than the first threshold, the alarm adjustment amount is obtained according to the event information.
  16. 如权利要求15所述的电子设备,其特征在于,所述处理器还用于获取所述通知消息的事件信息,判断所述通知消息的事件信息表征的事件的发生时间是否处于与闹钟的起闹时间关联的时间范围内,若起闹时间早于事件发生时间,且事件发生时间减去起闹时间小于第二阈值,根据所述事件信息获取闹钟调整量。The electronic device according to claim 15, wherein the processor is further configured to acquire event information of the notification message, and determine whether an event occurrence time of the event information of the notification message is in an alarm state During the time range associated with the time, if the alarm time is earlier than the event occurrence time, and the event occurrence time minus the alarm time is less than the second threshold, the alarm adjustment amount is obtained according to the event information.
  17. 如权利要求14-16任一所述的电子设备,其特征在于,所述电子设备还包括显示屏,所述显示屏用于显示所述通知消息。The electronic device of any of claims 14-16, wherein the electronic device further comprises a display screen for displaying the notification message.
  18. 如权利要求17所述的终端设备,其特征在于,其特征在于,所述触摸屏还用于接收查询所述闹钟的操作,所述显示屏还用于显示所述闹钟订阅应用信息。 The terminal device according to claim 17, wherein the touch screen is further configured to receive an operation for querying the alarm clock, and the display screen is further configured to display the alarm clock subscription application information.
PCT/CN2017/096467 2017-03-21 2017-08-08 Alarm notification method and terminal device WO2018171105A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780033776.5A CN109219953B (en) 2017-03-21 2017-08-08 Alarm clock reminding method, electronic equipment and computer readable storage medium
US16/495,266 US20200089381A1 (en) 2017-03-21 2017-08-08 Alarm clock reminder method and terminal device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710170747 2017-03-21
CN201710170747.5 2017-03-21

Publications (1)

Publication Number Publication Date
WO2018171105A1 true WO2018171105A1 (en) 2018-09-27

Family

ID=63583936

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/096467 WO2018171105A1 (en) 2017-03-21 2017-08-08 Alarm notification method and terminal device

Country Status (3)

Country Link
US (1) US20200089381A1 (en)
CN (1) CN109219953B (en)
WO (1) WO2018171105A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660674A (en) * 2019-01-30 2019-04-19 维沃移动通信有限公司 A kind of method and electronic equipment that alarm clock is set
CN114697441A (en) * 2020-12-28 2022-07-01 深圳Tcl新技术有限公司 Alarm clock control method, storage medium and terminal equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11200282B1 (en) * 2018-03-22 2021-12-14 Atlassian Pty Ltd. Integrated views of multiple different computer program applications with action options
US11340962B2 (en) * 2018-09-11 2022-05-24 Apple Inc. Multiple notification user interface
CN112308530A (en) * 2020-11-09 2021-02-02 珠海格力电器股份有限公司 Method and device for generating prompt information, storage medium and electronic device
CN112462988A (en) * 2020-11-24 2021-03-09 维沃移动通信有限公司 Reminding method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621578A (en) * 2009-07-06 2010-01-06 深圳华为通信技术有限公司 Method and terminal for setting alarm clock
CN102158594A (en) * 2011-02-17 2011-08-17 华为终端有限公司 Method for mobile terminal reminding and mobile terminal
CN104182399A (en) * 2013-05-21 2014-12-03 华为技术有限公司 Memo reminding method and memo reminding device
US20160148100A1 (en) * 2014-01-07 2016-05-26 Sk Planet Co., Ltd. Apparatus and method for changing alarm information in accordance with weather
CN105973249A (en) * 2016-04-21 2016-09-28 深圳天珑无线科技有限公司 Intelligent trip method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8423288B2 (en) * 2009-11-30 2013-04-16 Apple Inc. Dynamic alerts for calendar events

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621578A (en) * 2009-07-06 2010-01-06 深圳华为通信技术有限公司 Method and terminal for setting alarm clock
CN102158594A (en) * 2011-02-17 2011-08-17 华为终端有限公司 Method for mobile terminal reminding and mobile terminal
CN104182399A (en) * 2013-05-21 2014-12-03 华为技术有限公司 Memo reminding method and memo reminding device
US20160148100A1 (en) * 2014-01-07 2016-05-26 Sk Planet Co., Ltd. Apparatus and method for changing alarm information in accordance with weather
CN105973249A (en) * 2016-04-21 2016-09-28 深圳天珑无线科技有限公司 Intelligent trip method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109660674A (en) * 2019-01-30 2019-04-19 维沃移动通信有限公司 A kind of method and electronic equipment that alarm clock is set
CN114697441A (en) * 2020-12-28 2022-07-01 深圳Tcl新技术有限公司 Alarm clock control method, storage medium and terminal equipment

Also Published As

Publication number Publication date
CN109219953A (en) 2019-01-15
US20200089381A1 (en) 2020-03-19
CN109219953B (en) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2018171105A1 (en) Alarm notification method and terminal device
US11711670B2 (en) Method for activating service based on user scenario perception, terminal device, and system
US10278197B2 (en) Prioritizing beacon messages for mobile devices
US9451035B2 (en) Push-based location update
US8611326B2 (en) Location histories for location aware devices
US20160029176A1 (en) Providing personalized content based on historical interaction with a mobile device
JP2019049565A (en) Communication method and communication system of navigation data for mobile equipment, and storage medium
US9081860B2 (en) Integration of device location into search
CN105740291B (en) Map interface display method and device
US20150052534A1 (en) Method and device for executing scheduled tasks, computer-readable storage medium, graphical user interface and mobile terminal
WO2019104677A1 (en) Method for displaying application shortcut menus on different screens
KR20120023777A (en) Space and time based device customization
TW201508312A (en) Method, device and system for forecasting weather
WO2018209635A1 (en) Search method and apparatus
WO2020024294A1 (en) Service pushing method and terminal
CN103473253A (en) Geocoded data detection and user interfaces for same
CN107402777B (en) Resource updating method and electronic equipment
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
CN110622528B (en) Information recommendation method and device
CN110720104B (en) Voice information processing method and device and terminal
CN111052050A (en) Information input method and terminal
CN110377654B (en) Data request processing method and device, electronic equipment and computer-readable storage medium
WO2023065879A1 (en) Destination navigation method and device
WO2019183783A1 (en) Management method for peripheral device in terminal and terminal
AU2013404886B2 (en) Recharge method and device for virtual identity module

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17902377

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17902377

Country of ref document: EP

Kind code of ref document: A1