WO2015003593A1 - 闹钟管理方法及移动终端 - Google Patents

闹钟管理方法及移动终端 Download PDF

Info

Publication number
WO2015003593A1
WO2015003593A1 PCT/CN2014/081738 CN2014081738W WO2015003593A1 WO 2015003593 A1 WO2015003593 A1 WO 2015003593A1 CN 2014081738 W CN2014081738 W CN 2014081738W WO 2015003593 A1 WO2015003593 A1 WO 2015003593A1
Authority
WO
WIPO (PCT)
Prior art keywords
acceleration data
mobile terminal
difference
current
alarm clock
Prior art date
Application number
PCT/CN2014/081738
Other languages
English (en)
French (fr)
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 腾讯科技(深圳)有限公司
Publication of WO2015003593A1 publication Critical patent/WO2015003593A1/zh

Links

Classifications

    • 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 present invention relates to the field of information processing technologies, and in particular, to an alarm clock management method and a mobile terminal. Background of the invention
  • the mobile terminal can provide various functions to the user, such as an alarm clock function or a positioning function.
  • various functions provided by intelligent mobile terminals have gradually become more abundant and user-friendly. For example, when the user sets the alarm function on the mobile terminal, when the alarm is ringing, the mobile terminal can provide the user with various alarm management operations, such as delaying the alarm, and not just turning off the alarm. Summary of the invention
  • the embodiment of the invention provides an alarm clock management method and a mobile terminal.
  • An embodiment of the present invention provides an alarm clock management method, including:
  • the mobile terminal If the mobile terminal is currently in a shaking state, detecting current acceleration data of the mobile terminal, and determining a current shaking value of the mobile terminal according to the current acceleration data;
  • the current acceleration data includes: horizontal axis current acceleration data, vertical axis current acceleration data, and vertical axis current acceleration data.
  • the embodiment of the invention provides a mobile terminal, including:
  • a first detecting module configured to detect whether the mobile terminal is currently in a shaking state
  • a second detecting module configured to detect current acceleration data of the mobile terminal when the first detecting module detects that the mobile terminal is currently in a shaking state
  • a determining module configured to determine a current shaking value of the mobile terminal according to current acceleration data detected by the second detecting module
  • a first determining module configured to determine whether the current shaking value of the mobile terminal is greater than a preset threshold
  • an executing module configured to: when the first determining module determines that the current shaking value of the mobile terminal is greater than Performing an alarm management operation when the threshold is preset;
  • the current acceleration data includes: horizontal axis current acceleration data, vertical axis current acceleration data, and vertical axis current acceleration data.
  • the alarm clock management mode operation is more simple, more humanized and intelligent, and provides greater convenience for the user.
  • FIG. 1 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for managing an alarm clock according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for managing an alarm clock according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of an interface for setting an alarm clock in a mobile terminal according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for managing an alarm clock according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of an interface of an alarm clock ringing of a mobile terminal according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an interface of an alarm clock ringing of a mobile terminal according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a determining module according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a determining unit according to an embodiment of the present invention. Mode for carrying out the invention
  • the embodiment provides a terminal, and the terminal can be used to execute an alarm clock management method according to an embodiment of the present invention.
  • the terminal 100 can include the following modules.
  • RF (Radio Frequency) circuit 110 memory 120 including one or more computer readable storage media, input unit 130, display unit 140, sensor 150, audio circuit 160, WiFi (Wireless Fidelity) module 170.
  • a processor 180 having one or more processing cores, and a power supply 190 and the like. It will be understood by those skilled in the art that the terminal structure shown in Fig. 10 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements. among them:
  • the RF circuit 110 can be used for receiving and transmitting signals during and after the transmission or reception of information, in particular, after receiving the downlink information of the base station, and processing it by one or more processors 180; in addition, transmitting the data related to the uplink to the base station.
  • the RF circuit 110 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier). , duplexer, etc.
  • SIM Subscriber Identity Module
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division). Multiple Access, Code Division Multiple Access, WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and so on.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • CDMA Code Division
  • Multiple Access Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • e-mail Short Messaging Service
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as an alarm management program, a sound playing program, an image playing program, etc.).
  • the storage data area can store data (such as audio data, phone book, etc.) created according to the use of the terminal 100, and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 120 may further include a memory controller to provide the processor 180 and the input unit 130 to the memory 120. Access.
  • Input unit 130 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
  • input unit 130 can include touch-sensitive surface 131 as well as other input devices 132.
  • Touch-sensitive surface 131 also referred to as a touch display or trackpad, can collect touch operations on or near the user (such as a user using a finger, stylus, etc., on any suitable object or accessory on touch-sensitive surface 131 or The operation near the touch-sensitive surface 131) and driving the corresponding connecting device according to a preset program.
  • the touch-sensitive surface 131 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 the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information
  • the processor 180 is provided and can receive commands from the processor 180 and execute them.
  • the touch sensitive surface 131 can be realized by various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 130 can also include other input devices 132.
  • other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal 100, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and output functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal 100 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • the light sensor can include an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 141 according to the brightness of the ambient light.
  • the proximity sensor can turn off the display panel 141 and/or the backlight when the terminal 100 moves to the ear.
  • the gravity acceleration sensor can detect the acceleration of each direction (usually three axes), and the magnitude and direction of gravity can be detected at rest.
  • Applications that recognize the gesture of the phone such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap).
  • Other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like which are also configurable by the terminal 100 are not described herein.
  • the audio circuit 160, the speaker 161, and the microphone 162 provide an audio interface between the user and the terminal 100.
  • the audio circuit 160 can transmit the converted electric signal of the audio data to the speaker 161 and convert it into a sound signal output by the speaker 161.
  • the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then processed by the audio data output processor 180, sent to the other terminal via the RF circuit 110, or the audio data is transmitted. Output to memory 120 for further processing.
  • the audio circuit 160 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 100.
  • WiFi is a short-range wireless transmission technology
  • the terminal 100 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 170, which provides users with wireless broadband Internet access.
  • the processor 180 is the control center of the terminal 100, connecting various portions of the entire handset with various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120, The various functions and processing data of the terminal 100 are performed to perform overall monitoring of the mobile phone.
  • Processor 180 can include one or more processing cores.
  • the processor 180 can integrate an application processor and a modem processor.
  • the application processor primarily handles operating systems, user interfaces, applications, etc.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 180.
  • the terminal 100 also includes a power source 190 (such as a battery) for powering various components.
  • a power source 190 such as a battery
  • the power source can be logically coupled to the processor 180 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • Power supply 190 may also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 100 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the terminal includes a built-in alarm, a built-in sensor, a processor, and a memory.
  • the memory stores a series of machine readable instructions that cause the processor to perform the steps as shown in FIG.
  • Step S21 when the built-in alarm of the terminal rings, acquiring acceleration data measured by the built-in sensor of the terminal; Step S22, determining a shaking value according to the current acceleration data;
  • Step S23 determining whether the shaking value is greater than a preset threshold
  • Step S24 If the shaking value is greater than the threshold, performing an alarm management operation.
  • the acceleration data measured by the gravity acceleration sensor may include horizontal axis acceleration data, vertical axis acceleration data, and vertical axis acceleration data.
  • the shaking value can be calculated from the acceleration data obtained by multiple measurements. For example, you can set the time interval for acquiring acceleration data, and the acceleration data is acquired every time interval during the alarm ring.
  • the current shaking value can be calculated using the currently obtained acceleration data and previously obtained acceleration data (also referred to as historical acceleration data). Various calculation methods can be used, and which algorithm can be used according to the needs, which is not limited here.
  • the shaking value can indicate the magnitude or frequency of the current terminal shaking.
  • a threshold value In order to avoid judging the vibration of the terminal itself or the shaking of the environment as the operation of the user's shaking terminal, it is necessary to set a threshold value, and only when the shaking value is greater than the threshold value, it is determined that the user is shaking the terminal.
  • at least two thresholds may be set according to the operation of the user, and different thresholds correspond to different user-set alarm management operations, for example, one or more of the following: stop ringing, and after the preset time again Alarm, cancel alarm, display alarm setting interface, etc.
  • the method flow provided by an example may include the following steps.
  • Step S31 It is detected whether the mobile terminal is currently in a shaking state; if the mobile terminal is currently in a shaking state, step S32 is performed.
  • the mobile terminal can be detected in real time according to the built-in monitor of the mobile terminal.
  • the listening interface of the monitor detects that the mobile terminal is in a shaking state, it is determined that the mobile terminal is currently in a rocking state.
  • Step S32 Detect current acceleration data of the mobile terminal, and determine a current shaking value of the mobile terminal according to the current acceleration data.
  • the current acceleration data may include horizontal axis current acceleration data, vertical axis current acceleration data, and vertical axis current acceleration data.
  • the acceleration data of the horizontal axis (X axis), the vertical axis (y axis), and the vertical axis (z axis) are changed. Therefore, when detecting the acceleration data of the mobile terminal, it is possible to simultaneously detect Acceleration data for the horizontal axis (X axis), the vertical axis (y axis), and the vertical axis (z axis).
  • Step S33 determining whether the current shaking value of the mobile terminal is greater than a preset threshold; if the current shaking value of the mobile terminal is greater than a preset threshold, step S34 is performed.
  • Step S34 Perform an alarm management operation.
  • an alarm management operation is performed, including but not limited to:
  • the method further includes:
  • the step of detecting the current acceleration data of the mobile terminal is performed.
  • the current shaking value of the mobile terminal is determined based on the current acceleration data, including but not limited to:
  • the current shaking value of the mobile terminal is determined according to the current acceleration data and the historical acceleration data; wherein the historical acceleration data includes: horizontal axis historical acceleration data, vertical axis historical acceleration data, and vertical axis historical acceleration data.
  • the current shaking value of the mobile terminal is determined according to the current acceleration data and the historical acceleration data, including but not limited to:
  • Calculating a square of the first difference, a square of the second difference, and a square of the third difference, and calculating the first difference The square root, the square root of the sum of the square of the second difference and the square of the third difference, and the obtained calculation result is used as the current shaking value of the mobile terminal.
  • the method further includes:
  • the mobile terminal After the alarm tone is turned off, the mobile terminal is controlled to enter the power saving mode.
  • the method provided in this embodiment detects the current mobile state of the mobile terminal, and after determining that the mobile terminal is currently in a rocking state, acquires current acceleration data of the mobile terminal, and further determines a current shaking value of the mobile terminal according to the current acceleration data, and After determining the current shaking value, the alarm management operation is performed according to the current shaking value. Therefore, the operation mode of the alarm clock is more simple, more user-friendly and intelligent, and provides greater convenience for the user.
  • An example of an alarm clock management method is shown in FIG. In this example, the user sets the alarm clock at 8:30:00 am on the working day through the alarm setting function of the mobile terminal, as shown in Figure 4. Then, when the alarm clock rings at 8:30:00 in the morning, the alarm clock can be managed by the alarm management method provided in this embodiment. Referring to Figure 5, the method of this example can include the following steps.
  • Step S51 Detect whether the mobile terminal is currently in a shaking state; if the mobile terminal is currently in a shaking state, step S52 is performed.
  • Step S52 Obtain the current detection time and the last detection time; determine whether the difference between the current detection time and the last detection time is greater than a preset interval. If the difference between the current detection time and the last detection time is greater than the preset interval, step S53 is performed.
  • the specific implementation manner of obtaining the current detection time and the last detection time includes but is not limited to the following manners:
  • the built-in timer is built in the mobile terminal, and the built-in timer is used to record each detection time, and each detection time is stored in the storage medium, and the current detection time and the last detection time are acquired from the storage medium.
  • the storage medium may be a memory.
  • the type of the storage medium may be other types of storage media, such as a flash memory or a cache. The type of the storage medium is not specifically limited in this embodiment.
  • the size of the preset interval may be 1 second or 2 seconds, etc., of course, the size of the preset interval may be other values than the above values.
  • the size of the preset interval is not specifically limited in this embodiment.
  • Step S53 Detect current acceleration data of the mobile terminal, and determine a current shaking value of the mobile terminal according to the current acceleration data.
  • the current acceleration data includes: horizontal axis current acceleration data, vertical axis current acceleration data, and vertical axis current acceleration data.
  • determining, according to the current acceleration data, a current shaking value of the mobile terminal including but not limited to: acquiring acceleration data of the last detected mobile terminal, and using acceleration data of the last detected mobile terminal as historical acceleration data;
  • the current shaking value of the mobile terminal is determined according to the current acceleration data and the historical acceleration data.
  • the historical acceleration data may include: horizontal axis historical acceleration data, vertical axis historical acceleration data, and vertical axis historical acceleration data.
  • the current shaking value of the mobile terminal is determined according to the current acceleration data and the historical acceleration data, including but not limited to:
  • the current acceleration data on the horizontal axis is al
  • the current acceleration data on the vertical axis is bl
  • the current acceleration data on the vertical axis is cl
  • the historical acceleration data on the horizontal axis is a2
  • the historical acceleration data on the vertical axis is b2
  • the historical acceleration data on the vertical axis is c2.
  • the square of the first difference is ( ⁇ 1 - ⁇ 2) 2
  • the square of the second difference is ( ⁇ - ) 2
  • the square of the third difference is (cl - c2) 2 , which is identified by the symbol Y
  • Step S54 determining whether the current shaking value of the mobile terminal is greater than a preset threshold; if the current shaking value of the mobile terminal is greater than a preset threshold, step S55 is performed.
  • the size of the preset threshold may be 3000.
  • the size of the preset threshold may be other than 3000, and may be other values, for example, 2000 or 4000, etc., and the size of the preset threshold is not specifically limited in this embodiment.
  • Step S55 Perform an alarm management operation.
  • the performing an alarm management operation includes but is not limited to:
  • the method further includes:
  • the mobile terminal After the alarm tone is turned off, the mobile terminal is controlled to enter the power saving mode.
  • the preset time may be specifically 10 minutes.
  • the preset time may be other values, for example, 15 minutes or 20 minutes, etc., and the preset time is The size is not specifically limited.
  • an alarm such as "drag out this area to stop ringing" as shown in FIG. 6 is displayed on the interface of the mobile terminal.
  • the alarm is turned off by dragging the alarm icon out of the circular area. Since the alarm management mode requires the user to view the interface of the mobile terminal and manually perform the alarm management operation, the user cannot provide an emotional alarm clock experience.
  • the alarm clock management method For the alarm clock management method provided by the present invention, when the alarm clock is ringed at 8:30:00 in the morning, the user can directly shake the mobile terminal in the sleep state, and when the shaking value is greater than the preset threshold, the alarm will be automatically turned off, the user The operation can be continued, and the operation is not required to enter the interface of the mobile terminal.
  • the method for preventing the user from performing alarm clock management on the mobile terminal is unknown.
  • the method provided in this embodiment further includes: when the alarm is ringing, A prompt such as "shake the mobile terminal 10 minutes later" as shown in FIG. 7 is automatically given on the interface of the mobile terminal, instructing the user to perform an alarm management operation. It can be seen that the alarm clock management method provided in the above steps S51 to S55 is not only simple but also more intelligent and user-friendly, thereby improving the user's physical insurance.
  • the alarm management provided in steps S51 to S55 can be implemented by software programming.
  • Method. The program code can be as follows.
  • Double speed Math.sqrt(deltaX * deltaX + deltaY * deltaY + deltaZ
  • the method provided in this embodiment by detecting the current mobile state of the mobile terminal, and after determining that the mobile terminal is currently in a shaking state, acquiring current acceleration data of the mobile terminal, and determining a current shaking value of the mobile terminal according to the current acceleration data, and After determining the current shaking value, the alarm management operation is performed according to the current shaking value. Therefore, the operation mode of the alarm clock is more simple, more user-friendly and intelligent, and provides greater convenience for the user.
  • the mobile terminal can include a built-in alarm clock, built-in sensors, and the following modules.
  • the detecting module 61 is configured to: obtain the acceleration data measured by the built-in sensor when the built-in alarm is ringing; the determining module 63 is configured to determine the shaking value according to the acceleration data obtained by the detecting module 61; the determining module 64 is configured to determine the shaking Whether the value is greater than a preset threshold;
  • the executing module 65 is configured to perform a clock management operation when the determining module 64 determines that the shaking value is greater than the threshold.
  • the mobile terminal can include the following modules.
  • the first detecting module 91 is configured to detect whether the mobile terminal is currently in a shaking state
  • the second detecting module 92 is configured to detect current acceleration data of the mobile terminal when the first detecting module 91 detects that the mobile terminal is currently in a shaking state;
  • a determining module 93 configured to determine a current shaking value of the mobile terminal according to the current acceleration data detected by the second detecting module 92;
  • the first determining module 94 is configured to determine whether the current shaking value of the mobile terminal is greater than a preset threshold.
  • the executing module 95 is configured to: when the first determining module 94 determines that the current shaking value of the mobile terminal is greater than a preset When the threshold is set, the alarm management operation is performed;
  • the current acceleration data includes: horizontal axis current acceleration data, vertical axis current acceleration data, and vertical axis current acceleration data.
  • the mobile terminal further includes:
  • the obtaining module 96 is configured to acquire a current detection time and a last detection time
  • the second judging module 97 is configured to determine whether the difference between the current detection time and the last detection time acquired by the obtaining module 96 is greater than a preset interval;
  • the second detecting module 92 is configured to perform a step of detecting current acceleration data of the mobile terminal when the second determining module 97 determines that the difference between the current detection time and the last detection time is greater than a preset interval.
  • determining module 93 including:
  • the obtaining unit 931 is configured to acquire acceleration data of the last detected mobile terminal, and use the acceleration data of the last detected mobile terminal as historical acceleration data;
  • a determining unit 932 configured to determine a current shaking value of the mobile terminal according to the current acceleration data detected by the second detecting module 92 and the historical acceleration data acquired by the acquiring unit 931;
  • the historical acceleration data includes: horizontal axis historical acceleration data, vertical axis historical acceleration data, and vertical axis historical acceleration data.
  • determining unit 932 comprising:
  • the obtaining subunit 9321 is configured to obtain a first difference between the horizontal axis current acceleration data and the horizontal axis historical acceleration data, a second difference between the vertical axis current acceleration data and the vertical axis historical acceleration data, and a vertical axis current acceleration data and a vertical axis The third difference in historical acceleration data;
  • a first calculating subunit 9322 configured to calculate a square of the first difference obtained by the obtaining subunit 9321, a square of the second difference, and a square of the third difference;
  • a second calculating sub-unit 9323 configured to calculate a square root of a first difference, a square of the second difference, and a square of the third difference calculated by the first calculating sub-unit 9322, and obtain a calculated result As the current shaking value of the mobile terminal.
  • the execution module 95 is configured to turn off the alarm ringtone and set to continue to ring after a preset time. In one example, the execution module 95 is further configured to control the mobile terminal to enter a power saving mode after the alarm is turned off.
  • the mobile terminal provided by the embodiment of the present invention detects the current mobile state of the mobile terminal by using the mobile terminal provided by the embodiment of the present invention. After determining that the mobile terminal is currently in a shaking state, acquiring current acceleration data of the mobile terminal, and determining a current shaking value of the mobile terminal according to the current acceleration data, and performing an alarm management operation according to the current shaking value after determining the current shaking value,
  • the alarm management mode is more simple, more user-friendly and intelligent, providing users with greater convenience.
  • the terminal provided by the embodiment of the present invention, by detecting the current mobile state of the mobile terminal, and obtaining the current acceleration data of the mobile terminal after determining that the mobile terminal is currently in a shaking state, and determining the current shaking value of the mobile terminal according to the current acceleration data, and After determining the current shaking value, the alarm management operation is performed according to the current shaking value. Therefore, the alarm management mode operation is more simple, more user-friendly and intelligent, and provides greater convenience for the user.
  • the embodiment of the present invention provides a computer readable storage medium, which may be a computer readable storage medium included in the memory in the above embodiment, or may exist separately and not assembled into the terminal.
  • Computer readable storage medium stores one or more programs, and the one or more programs are used by one or more processors to perform the methods of the various embodiments of the present invention, and are not described herein.
  • An embodiment of the present invention provides a graphical user interface, where the graphical user interface is used on a terminal, the terminal includes a touch rhino display, a memory, and one or more processors for executing one or more programs;
  • the graphical user interface includes:
  • the mobile terminal If the mobile terminal is currently in a shaking state, detecting current acceleration data of the mobile terminal, and determining a current shaking value of the mobile terminal according to the current acceleration data;
  • the current acceleration data includes: horizontal axis current acceleration data, vertical axis current acceleration data, and vertical axis current acceleration data.
  • the graphic user interface provided by the embodiment of the present invention detects the current mobile state of the mobile terminal, and after determining that the mobile terminal is currently in a shaking state, acquires current acceleration data of the mobile terminal, and then determines the current current state of the mobile terminal according to the current acceleration data. After shaking the value, and after determining the current shaking value, the alarm management operation is performed according to the current shaking value. Therefore, the alarm management mode operation is more simple, more user-friendly and intelligent, and provides greater convenience for the user.
  • the hardware modules in the embodiments may be implemented in a hardware manner or a hardware platform plus software.
  • the above software includes machine readable instructions stored in a non-volatile storage medium.
  • embodiments can also be embodied as software products.
  • the hardware may be implemented by specialized hardware or hardware that executes machine readable instructions.
  • hardware can be specially designed for permanent circuits or logic devices (such as dedicated processors such as FPGAs or ASICs) to perform specific operations.
  • the hardware may also include programmable logic devices or circuits (e.g., including general purpose processors or other programmable processors) that are temporarily configured by software for performing particular operations.
  • the machine readable instructions corresponding to the modules in Figures 8-12 may cause an operating system or the like operating on a computer to perform some or all of the operations described herein.
  • the non-transitory computer readable storage medium may be a memory provided in an expansion board inserted into an expansion board in the computer or written to an expansion unit connected to the computer.
  • the CPU or the like installed on the expansion board or expansion unit can perform some and all actual operations according to the instructions.
  • Non-volatile computer readable storage media include floppy disks, hard disks, magneto-optical disks, optical disks (eg, CD-ROM, CD-R, CD-RW ⁇ DVD-ROM ⁇ DVD-RAM ⁇ DVD-RW, DVD+RW), magnetic tape , non-volatile memory card and ROM.
  • the program code can be downloaded from the server computer by the communication network.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种闹钟管理方法及移动终端。当终端的内置闹钟响铃时,获取终端的内置传感器测量到的加速度数据;根据所述加速度数据确定摇动数值;判断所述摇动数值是否大于预设阈值;如果所述摇动数值大于所述阈值,则执行闹钟管理操作。

Description

闹钟管理方法及移动终端
相关文件
本申请要求于 2013年 07月 8 日提交中国专利局、 申请号为 201310284430.6、 发明名称为"闹钟管理方法及移动终端"的中国专利申请的优先权, 其全部内容通过 引用结合在本申请中。 技术领域
本发明涉及信息处理技术领域, 特别涉及一种闹钟管理方法及移动终端。 发明背景
移动终端能够为用户提供各种功能, 诸如, 闹钟功能或定位功能等等。 随着移 动终端的智能化发展 ,智能移动终端提供的各种功能也逐渐变得更加丰富和人性化。 例如, 当用户在移动终端上设置了闹钟功能后, 闹钟响铃时, 移动终端可以为用户 提供多种闹钟管理操作, 例如延时再闹等, 而不仅仅是关闭闹钟。 发明内容
本发明实施例提供了一种闹钟管理方法及移动终端。
本发明实施例提供了一种闹钟管理方法, 包括:
检测移动终端当前是否处于摇动状态;
如果所述移动终端当前处于摇动状态, 则检测所述移动终端的当前加速度数 据, 并根据所述当前加速度数据确定所述移动终端的当前摇动数值;
判断所述移动终端的当前摇动数值是否大于预设阈值;
如果所述移动终端的当前摇动数值大于所述预设阈值, 则执行闹钟管理操作; 其中, 所述当前加速度数据包括: 横轴当前加速度数据、 纵轴当前加速度数据 及竖轴当前加速度数据。
本发明实施例提供了一种移动终端, 包括:
第一检测模块, 用于检测移动终端当前是否处于摇动状态;
第二检测模块, 用于当所述第一检测模块检测到所述移动终端当前处于摇动状 态时, 检测所述移动终端的当前加速度数据;
确定模块, 用于根据所述第二检测模块检测到的当前加速度数据确定所述移动 终端的当前摇动数值;
第一判断模块, 用于判断所述移动终端的当前摇动数值是否大于预设阈值; 执行模块, 用于当所述第一判断模块判断出所述移动终端的当前摇动数值大于 所述预设阈值时, 执行闹钟管理操作;
其中, 所述当前加速度数据包括: 横轴当前加速度数据、 纵轴当前加速度数据 及竖轴当前加速度数据。
本发明实施例提供的技术方案带来的有益效果是:
通过检测移动终端的当前移动状态, 并在确定移动终端当前处于摇动状态后, 获取移动终端的当前加速度数据, 进而根据当前加速度数据确定移动终端的当前摇 动数值, 且在确定当前摇动数值后, 根据当前摇动数值执行闹钟管理操作, 因此, 该种闹钟管理方式操作更加筒单, 更具人性化与智能化, 为用户提供了更大的便利。 附图简要说明
以下附图仅为本发明技术方案的一些例子, 本发明并不局限于图中示出的特 征。 以下附图中, 相似的标号表示相似的元素:
图 1是本发明实施例的一种终端的结构示意图;
图 2是本发明实施例的一种闹钟管理的方法流程图;
图 3是本发明实施例的一种闹钟管理的方法流程图;
图 4是本发明实施例的一种移动终端设置闹钟的界面示意图;
图 5是本发明实施例的一种闹钟管理的方法流程图;
图 6是本发明实施例的一种移动终端闹钟响铃的界面示意图;
图 7是本发明实施例的一种移动终端闹钟响铃的界面示意图;
图 8是本发明实施例的一种移动终端的结构示意图;
图 9是本发明实施例的一种移动终端的结构示意图;
图 10是本发明实施例的一种移动终端的结构示意图;
图 11是本发明实施例的一种确定模块的结构示意图;
图 12是本发明实施例的一种确定单元的结构示意图。 实施本发明的方式
为了描述上的筒洁和直观, 下文通过描述若千代表性的实施例来对本发明的方 案进行阐述。 实施例中大量的细节仅用于帮助理解本发明的方案。 但是很明显, 本 发明的技术方案实现时可以不局限于这些细节。 为了避免不必要地模糊了本发明的 方案,一些实施方式没有进行细致地描述, 而是仅给出了框架。 下文中, "包括 "是 指 "包括但不限于", "根据…… " 是指 "至少根据……, 但不限于仅根据…… "。 下 文中没有特别指出一个成分的数量时, 意味着该成分可以是一个也可以是多个, 或 可理解为至少一个。
本实施例提供了一种终端, 该终端可以用于执行本发明实施例的闹钟管理方 法。 参见图 10, 该终端 100可以包括以下模块。
RF ( Radio Frequency, 射频) 电路 110、 包括有一个或一个以上计算机可读存 储介质的存储器 120、 输入单元 130、 显示单元 140、 传感器 150、 音频电路 160、 WiFi(Wireless Fidelity, 无线保真)模块 170、 包括有一个或者一个以上处理核心的处 理器 180、 以及电源 190等部件。 本领域技术人员可以理解, 图 10中示出的终端结 构并不构成对终端的限定, 可以包括比图示更多或更少的部件, 或者组合某些部件, 或者不同的部件布置。 其中:
RF 电路 110可用于收发信息或通话过程中, 信号的接收和发送, 特别地, 将 基站的下行信息接收后, 交由一个或者一个以上处理器 180处理; 另外, 将涉及上 行的数据发送给基站。 通常, RF电路 110包括但不限于天线、 至少一个放大器、 调 谐器、一个或多个振荡器、用户身份模块(SIM )卡、收发信机、耦合器、 LNA ( Low Noise Amplifier, 低噪声放大器)、 双工器等。 此外, RF电路 110还可以通过无线通 信与网络和其他设备通信。 所述无线通信可以使用任一通信标准或协议, 包括但不 限于 GSM(Global System of Mobile communication , 全球移动通讯系统)、 GPRS(General Packet Radio Service , 通用分组无线月艮务)、 CDMA(Code Division Multiple Access , 码分多址)、 WCDMA(Wideband Code Division Multiple Access, 宽 带码分多址)、 LTE(Long Term Evolution,长期演进)、 电子邮件、 SMS(Short Messaging Service, 短消息服务)等。
存储器 120可用于存储软件程序以及模块, 处理器 180通过运行存储在存储器 120的软件程序以及模块, 从而执行各种功能应用以及数据处理。 存储器 120可主 要包括存储程序区和存储数据区, 其中, 存储程序区可存储操作系统、 至少一个功 能所需的应用程序 (比如闹钟管理程序、 声音播放程序、 图像播放程序等)等。 存 储数据区可存储根据终端 100的使用所创建的数据(比如音频数据、 电话本等)等。 此外, 存储器 120可以包括高速随机存取存储器, 还可以包括非易失性存储器, 例 如至少一个磁盘存储器件、 闪存器件、 或其他易失性固态存储器件。 相应地, 存储 器 120还可以包括存储器控制器, 以提供处理器 180和输入单元 130对存储器 120 的访问。
输入单元 130可用于接收输入的数字或字符信息, 以及产生与用户设置以及功 能控制有关的键盘、 鼠标、 操作杆、 光学或者轨迹球信号输入。 具体地, 输入单元 130可包括触敏表面 131以及其他输入设备 132。 触敏表面 131 , 也称为触摸显示屏 或者触控板, 可收集用户在其上或附近的触摸操作 (比如用户使用手指、 触笔等任 何适合的物体或附件在触敏表面 131上或在触敏表面 131附近的操作 ),并根据预先 设定的程式驱动相应的连接装置。 可选的, 触敏表面 131可包括触摸检测装置和触 摸控制器两个部分。 其中, 触摸检测装置检测用户的触摸方位, 并检测触摸操作带 来的信号, 将信号传送给触摸控制器; 触摸控制器从触摸检测装置上接收触摸信息, 并将它转换成触点坐标, 再送给处理器 180, 并能接收处理器 180发来的命令并加 以执行。 此外, 可以釆用电阻式、 电容式、 红外线以及表面声波等多种类型实现触 敏表面 131。 除了触敏表面 131 , 输入单元 130还可以包括其他输入设备 132。 具体 地, 其他输入设备 132可以包括但不限于物理键盘、 功能键(比如音量控制按键、 开关按键等)、 轨迹球、 鼠标、 操作杆等中的一种或多种。
显示单元 140可用于显示由用户输入的信息或提供给用户的信息以及终端 100 的各种图形用户接口, 这些图形用户接口可以由图形、 文本、 图标、 视频和其任意 组合来构成。 显示单元 140可包括显示面板 141 , 可选的, 可以釆用 LCD(Liquid Crystal Display , 液晶显示器)、 OLED(Organic Light-Emitting Diode,有机发光二极管) 等形式来配置显示面板 141。 进一步的, 触敏表面 131可覆盖显示面板 141 , 当触敏 表面 131检测到在其上或附近的触摸操作后, 传送给处理器 180以确定触摸事件的 类型,随后处理器 180根据触摸事件的类型在显示面板 141上提供相应的视觉输出。 虽然在图 10中,触敏表面 131与显示面板 141是作为两个独立的部件来实现输入和 输出功能, 但是在某些实施例中, 可以将触敏表面 131与显示面板 141集成而实现 输入和输出功能。
终端 100还可包括至少一种传感器 150, 比如光传感器、 运动传感器以及其他 传感器。 光传感器可包括环境光传感器及接近传感器。 环境光传感器可根据环境光 线的明暗来调节显示面板 141的亮度。 接近传感器可在终端 100移动到耳边时, 关 闭显示面板 141和 /或背光。 作为运动传感器的一种, 重力加速度传感器可检测各个 方向上(一般为三轴)加速度的大小, 静止时可检测出重力的大小及方向, 可用于 识别手机姿态的应用 (比如横竖屏切换、 相关游戏、 磁力计姿态校准)、 振动识别相 关功能(比如计步器、 敲击)等。 至于终端 100还可配置的陀螺仪、 气压计、 湿度 计、 温度计、 红外线传感器等其他传感器, 在此不再赘述。
音频电路 160、 扬声器 161 , 传声器 162可提供用户与终端 100之间的音频接 口。 音频电路 160可将接收到的音频数据转换后的电信号, 传输到扬声器 161 , 由 扬声器 161转换为声音信号输出。 传声器 162将收集的声音信号转换为电信号, 由 音频电路 160接收后转换为音频数据,再将音频数据输出处理器 180处理后, 经 RF 电路 110以发送给比如另一终端, 或者将音频数据输出至存储器 120以便进一步处 理。 音频电路 160还可能包括耳塞插孔, 以提供外设耳机与终端 100的通信。
WiFi属于短距离无线传输技术, 终端 100通过 WiFi模块 170可以帮助用户收 发电子邮件、浏览网页和访问流式媒体等, 它为用户提供了无线的宽带互联网访问。
处理器 180是终端 100的控制中心, 利用各种接口和线路连接整个手机的各个 部分, 通过运行或执行存储在存储器 120内的软件程序和 /或模块, 以及调用存储在 存储器 120内的数据, 执行终端 100的各种功能和处理数据, 从而对手机进行整体 监控。 处理器 180可包括一个或多个处理核心。 处理器 180可集成应用处理器和调 制解调处理器。 应用处理器主要处理操作系统、 用户界面和应用程序等, 调制解调 处理器主要处理无线通信。 可以理解的是, 上述调制解调处理器也可以不集成到处 理器 180中。
终端 100还包括给各个部件供电的电源 190 (比如电池), 优选的, 电源可以通 过电源管理系统与处理器 180逻辑相连, 从而通过电源管理系统实现管理充电、 放 电、 以及功耗管理等功能。 电源 190还可以包括一个或一个以上的直流或交流电源、 再充电系统、 电源故障检测电路、 电源转换器或者逆变器、 电源状态指示器等任意 组件。
尽管未示出, 终端 100还可以包括摄像头、 蓝牙模块等, 在此不再赘述。
一个例子中, 终端包括内置闹钟( built-in alarm )、 内置传感器( built-in sensor )、 处理器和存储器。 存储器存储有一系列机器可读指令, 该指令可使处理器执行如图 2所示的步骤。
步骤 S21,当终端的内置闹钟响铃时, 获取终端的内置传感器测量到的加速度数 据; 步骤 S22, 根据所述当前加速度数据确定摇动数值;
步骤 S23 , 判断所述摇动数值是否大于预设阈值;
步骤 S24, 如果所述摇动数值大于所述阈值, 则执行闹钟管理操作。
重力加速度传感器测量到的加速度数据可以包括横轴加速度数据、 纵轴加速度 数据、 竖轴加速度数据。
所述摇动数值可以根据多次测量得到的加速度数据计算得到。 例如, 可以设置 获取加速度数据的时间间隔, 在闹铃响铃期间, 每隔该时间间隔获取一次加速度数 据。 当前的摇动数值可以利用当前获得的加速度数据和先前获得的加速度数据(也 称为历史加速度数据)计算得到。 可以釆用各种计算方法, 釆用何种算法可以才艮据 需要设计, 这里不做限定。
根据不同的摇动数值的计算方法, 摇动数值可以表示当前终端摇动的幅度或频 率的大小。 为了避免将终端本身的震动或者环境的晃动判断为用户的摇动终端的操 作, 需要设置阈值, 只有当摇动数值大于该阈值时, 才确定是用户在摇动终端。 一 些例子中, 还可以根据用户的操作设置至少两个阈值, 不同的阈值对应不同的用户 设置的闹钟管理操作, 例如可以是以下中的一个或多个: 停止响铃、 在预设时间后 再次闹铃、 取消闹钟、 显示闹钟设置界面, 等。 当摇动数值达到多个阈值中的第一 阈值时, 或者摇动数值介于其中两个阈值之间(即, 大于第一阈值且小于第二阈值) 时, 则执行预设的、 与第一阈值对应的闹钟管理操作。
参见图 3 , —个例子提供的方法流程可以包括以下步骤。
步骤 S31: 检测移动终端当前是否处于摇动状态; 如果移动终端当前处于摇动 状态, 则执行步骤 S32。
一个例子中, 可以才艮据移动终端内置的监听器实时对移动终端进行检测, 当监 听器的监听接口检测到移动终端处于摇动状态时, 判断检测到移动终端当前处于摇 动状态。
如果检测到移动终端当前处于静止状态,则无需执行后续步骤,流程至此结束。 步骤 S32: 检测移动终端的当前加速度数据 , 并根据当前加速度数据确定移动 终端的当前摇动数值。
当前加速度数据可以包括横轴当前加速度数据、 纵轴当前加速度数据及竖轴当 前加速度数据。 当移动终端处于摇动状态时, 其横轴( X轴)、 纵轴( y轴)及竖轴( z轴) 的 加速度数据都会发生变化, 因此, 在检测移动终端的加速度数据时, 可以同时检测 其横轴(X轴)、 纵轴(y轴)及竖轴(z轴) 的加速度数据。 在检测移动终端在横 轴(X轴)、 纵轴(y轴)及竖轴(z轴) 的加速度数据时, 可通过移动终端内置的 重力感应器进行检测。 步骤 S33 : 判断移动终端的当前摇动数值是否大于预设阈值; 如果移动终端的当前摇动数值大于预设阈值, 则执行步骤 S34。
步骤 S34: 执行闹钟管理操作。
一个例子中, 执行闹钟管理操作, 包括但不限于:
关闭闹钟铃声, 并设置在预设时间后继续响铃;
取消闹钟;
启动闹钟设置功能, 并显示闹钟设置界面。
一个例子中, 该方法还包括:
获取当前检测时间及上一次检测时间;
判断当前检测时间与上一次检测时间之差是否大于预设间隔;
如果当前检测时间与上一次检测时间之差大于预设间隔, 则执行检测移动终端 的当前加速度数据的步骤。
一个例子中, 根据当前加速度数据确定移动终端的当前摇动数值 , 包括但不限 于:
获取上一次检测到的移动终端的加速度数据, 并将上一次检测到的移动终端的 加速度数据作为历史加速度数据;
根据当前加速度数据及历史加速度数据确定移动终端的当前摇动数值; 其中, 历史加速度数据包括: 横轴历史加速度数据、 纵轴历史加速度数据及竖 轴历史加速度数据。
一个例子中, 根据当前加速度数据及历史加速度数据确定移动终端的当前摇动 数值, 包括但不限于:
获取横轴当前加速度数据与横轴历史加速度数据的第一差值、 纵轴当前加速度 数据与纵轴历史加速度数据的第二差值及竖轴当前加速度数据与竖轴历史加速度数 据的第三差值;
计算第一差值的平方、 第二差值的平方及第三差值的平方, 并计算第一差值的 平方、 第二差值的平方与第三差值的平方之和的平方根, 并将得到的计算结果作为 移动终端的当前摇动数值。
一个例子中, 该方法还包括:
关闭闹钟铃声之后 , 控制移动终端进入节电模式。
本实施例提供的方法, 通过检测移动终端的当前移动状态, 并在确定移动终端 当前处于摇动状态后, 获取移动终端的当前加速度数据 , 进而根据当前加速度数据 确定移动终端的当前摇动数值, 且在确定当前摇动数值后, 根据当前摇动数值执行 闹钟管理操作, 因此, 该种闹钟管理方式操作更加筒单, 更具人性化与智能化, 为 用户提供了更大的便利。 一个例子的闹钟管理方法如图 5所示。 本例中以用户通过移动终端的闹钟设置 功能设置了工作日上午 8:30:00的闹钟为例, 如图 4所示。 则当早上 8:30:00闹钟响 铃时, 可通过本实施例提供的闹钟管理方式对闹钟进行管理。 参见图 5 , 本例方法 可以包括以下步骤。
步骤 S51 : 检测移动终端当前是否处于摇动状态; 如果移动终端当前处于摇动 状态, 则执行步骤 S52。 步骤 S52: 获取当前检测时间及上一次检测时间; 判断当前检测时间与上一次 检测时间之差是否大于预设间隔。 如果当前检测时间与上一次检测时间之差大于预 设间隔, 则执行步骤 S53。
其中, 获取当前检测时间及上一次检测时间的具体实现方式包括但不限于如下 方式:
在移动终端内置计时器, 利用内置的计时器记录每次的检测时间, 并将每次的 检测时间存储在存储介质中, 从存储介质中获取当前检测时间及上一次检测时间。 其中, 存储介质具体可为内存, 当然, 存储介质的类型出上述内存外, 还可为其他 类型的存储介质, 例如, 闪存或緩存等等, 本实施例对存储介质的类型不进行具体 限定。
需要说明的是, 除上述获取当前检测时间及上一次检测时间的方式外, 还可以 釆取其他检测方式, 本实施例对此不进行具体限定。 此外, 预设间隔的大小具体可为 1秒或 2秒等等, 当然, 预设间隔的大小除上 述数值外, 还可以为其他数值 , 本实施例对预设间隔的大小不进行具体限定。
对于当前检测时间与上一次检测时间之差小于预设间隔的情况, 则无需执行后 续步骤, 流程至此结束。
步骤 S53: 检测移动终端的当前加速度数据 , 并根据当前加速度数据确定移动 终端的当前摇动数值.当前加速度数据包括: 横轴当前加速度数据、 纵轴当前加速度 数据及竖轴当前加速度数据。
其中, 根据当前加速度数据确定移动终端的当前摇动数值 , 包括但不限于: 获取上一次检测到的移动终端的加速度数据, 并将上一次检测到的移动终端的 加速度数据作为历史加速度数据;
根据当前加速度数据及历史加速度数据确定移动终端的当前摇动数值。
其中, 历史加速度数据可以包括: 横轴历史加速度数据、 纵轴历史加速度数据 及竖轴历史加速度数据。
一个例子中, 根据当前加速度数据及历史加速度数据确定移动终端的当前摇动 数值, 包括但不限于:
获取横轴当前加速度数据与横轴历史加速度数据的第一差值、 纵轴当前加速度 数据与纵轴历史加速度数据的第二差值及竖轴当前加速度数据与竖轴历史加速度数 据的第三差值;
计算第一差值的平方、 第二差值的平方及第三差值的平方, 并计算第一差值的 平方、 第二差值的平方与第三差值的平方之和的平方根, 并将得到的计算结果作为 移动终端的当前摇动数值。
例如, 以横轴当前加速度数据为 al、 纵轴当前加速度数据为 bl、 竖轴当前加 速度数据为 cl , 横轴历史加速度数据为 a2、 纵轴历史加速度数据为 b2、 竖轴历史 加速度数据为 c2为例,则第一差值的平方为(Ω1 - Ω2)2、第二差值的平方为(Μ - )2、 第三差值的平方为(cl - c2)2 , 以符号 Y标识当前摇动数值, 由此可以得到, 移动终 端的当前摇动数值 Y= X + (W— b2)2 + (cl— c2)2
步骤 S54: 判断移动终端的当前摇动数值是否大于预设阈值; 如果移动终端的 当前摇动数值大于预设阈值, 则执行步骤 S55。 其中, 预设阈值的大小可以为 3000, 当然, 预设阈值的大小除 3000外, 还可 以为其他数值, 例如, 2000或 4000等等, 本实施例对预设阈值的大小不进行具体 限定。
对于移动终端的当前摇动数值小于预设阈值的情况, 则无需执行后续步骤, 流 程至此结束。
步骤 S55: 执行闹钟管理操作。
针对该步骤, 所述执行闹钟管理操作, 包括但不限于:
关闭闹钟铃声, 并设置在预设时间后继续响铃;
取消闹钟;
启动闹钟设置功能, 并显示闹钟设置界面。
一个实施例中, 该方法还包括:
关闭闹钟铃声之后 , 控制移动终端进入节电模式。
其中, 预设时间的大小具体可为 10分钟, 当然, 预设时间的大小除 10分钟之 夕卜, 还可以为其他数值, 例如, 15分钟或 20分钟等等, 本实施例对预设时间的大 小不进行具体限定。
此外, 当早上 8:30:00 闹钟响铃时, 针对现有技术提供的闹钟管理方式, 移动 终端的界面上会显示如图 6所示的诸如 "拖出此区域停止响铃" 的闹钟关闭提示, 当用户查看移动终端的界面时, 通过将闹铃图标拖出圆形区域外, 实现闹钟的关闭 处理。 由于该种闹钟管理方式需用户查看移动终端的界面, 并手动执行闹钟管理操 作, 因此不能为用户提供富有情感的闹钟体验;
针对本发明提供的闹钟管理方式, 当早上 8:30:00 闹钟响铃时, 用户可在睡眠 的状态下直接用手摇动移动终端, 当摇动数值大于预设阈值时, 闹钟将自动关闭, 用户可继续休息, 而无需进入移动终端的界面执行任何操作; 一个实施例中, 为防 止用户对摇动移动终端进行闹钟管理的操作方式未知, 本实施例提供的方法, 还包 括在闹钟响铃时, 自动在移动终端的界面上给出如图 7所示的诸如 "摇一摇移动终 端 10分钟后再响" 的提示, 指示用户执行闹钟管理操作。 由此可见, 上述步骤 S51 至步骤 S55所提供的闹钟管理方式, 不但筒便而且更加智能化与人性化, 提高了用 户的体险。
一个例子中, 可以通过软件编程可实现步骤 S51至步骤 S55所提供的闹钟管理 方法。 程序代码可以如下。
/* * * 一个检测移动终端摇动状态的监听器 * /
public class ShakeListener implements SensorEventListener {
II设置预设阈值, 当摇动数值达到预设阈值值后执行闹钟管理操作
private static final int SPEED_SHRESHOLD = 3000;
II设置预设间隔
private static final int UPTATE—INTERVAL—TIME = 70;
//传感器管理器
private SensorManager sensorManager;
II传感器
private Sensor sensor;
//重力感应监听器
private OnShakeListener onShakeListener;
//上下文
private Context mContext;
II移动终端的历史加速度数据
private float lastX;
private float lastY;
private float lastZ;
II上一次检测时间
private long lastUpdateTime;
//构造器
public ShakeListener(Context c) {
mContext = c;
start();
//开始
public void start() {
II获得传感器管理器
sensorManager = (SensorManager) mContext
.getSystemService(Context.SENSOR_SERVICE);
if (sensorManager != null) {
II获得重力传感器
sensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); //注册
if (sensor != null) {
sensorManager.registerListener(this, sensor,
SensorManager.SENSOR_DELAY_GAME);
} }
II停止检测
public void stop() {
sensorManager.unregisterListener(this);
//设置重力感应监听器
public void setOnShakeListener(OnShakeListener listener) { onShakeListener = listener; public void onSensorChanged(SensorEvent event) { II 当前检测时间
long currentUpdateTime = System.currentTimeMillis();
II 两次检测时间的差值
long timelnterval = currentUpdateTime - lastUpdateTime; //判断两次检测时间的差值是否大于预设间隔
if (timelnterval < UPTATE_INTERVAL_TIME) return;
II将上一次检测时间赋值为当前检测时间
lastUpdateTime = currentUpdateTime;
//检测当前加速度数据
float X = event.values[0];
float y = event.values[l];
float z = event.values[2];
II计算当前加速度数据与历史加速度数据的差值 float deltaX = x - lastX;
float deltaY = y - lastY;
float deltaZ = z - lastZ;
//将当前加速度数据赋值为历史加速度数据
lastX = x;
lastY = y;
lastZ = z;
//得到摇动数值 double speed = Math.sqrt(deltaX * deltaX + deltaY * deltaY + deltaZ
* deltaZ)/ timelnterval * 10000;
Log.v("thelog", "===========log===================");
II摇动数值大于预设阀值, 执行闹钟管理操作
if (speed >= SPEED—SHRESHOLD) {
onShakeListener.onShake();
} }
public void on Accuracy Changed( Sensor sensor, int accuracy) { public interface OnShakeListener
{ public void onShake();
} }
本实施例提供的方法, 通过检测移动终端的当前移动状态, 并在确定移动端当 前处于摇动状态后, 获取移动终端的当前加速度数据, 进而根据当前加速度数据确 定移动终端的当前摇动数值, 且在确定当前摇动数值后, 根据当前摇动数值执行闹 钟管理操作, 因此, 该种闹钟管理方式操作更加筒单, 更具人性化与智能化, 为用 户提供了更大的便利。
一个例子的移动终端如图 8所示。该移动终端可以包括内置闹钟、 内置传感器, 以及以下模块。
检测模块 61 , 用于当内置闹钟响铃时, 获取内置传感器测量到的加速度数据; 确定模块 63 , 用于根据检测模块 61获得的加速度数据确定摇动数值; 判断模块 64, 用于判断所述摇动数值是否大于预设阈值;
执行模块 65 , 用于当判断模块 64确定所述摇动数值大于所述阈值时, 执行闹 钟管理操作。
一个例子的移动终端如图 9所示。 该移动终端可以包括以下模块。
第一检测模块 91 , 用于检测移动终端当前是否处于摇动状态;
第二检测模块 92, 用于当第一检测模块 91检测到移动终端当前处于摇动状态 时, 检测移动终端的当前加速度数据;
确定模块 93 , 用于根据第二检测模块 92检测到的当前加速度数据确定移动终 端的当前摇动数值;
第一判断模块 94, 用于判断移动终端的当前摇动数值是否大于预设阈值; 执行模块 95 , 用于当第一判断模块 94判断出移动终端的当前摇动数值大于预 设阈值时, 执行闹钟管理操作;
其中, 当前加速度数据包括: 横轴当前加速度数据、 纵轴当前加速度数据及竖 轴当前加速度数据。
一个例子如图 10所示, 该移动终端还包括:
获取模块 96 , 用于获取当前检测时间及上一次检测时间;
第二判断模块 97 , 用于判断获取模块 96获取到的当前检测时间与上一次检测 时间之差是否大于预设间隔;
第二检测模块 92 , 用于当第二判断模块 97判断出当前检测时间与上一次检测 时间之差大于预设间隔时, 执行检测移动终端的当前加速度数据的步骤。
一个例子如图 11所示, 确定模块 93 , 包括:
获取单元 931 , 用于获取上一次检测到的移动终端的加速度数据, 并将上一次 检测到的移动终端的加速度数据作为历史加速度数据;
确定单元 932,用于根据第二检测模块 92检测到的当前加速度数据及获取单元 931获取到的历史加速度数据确定移动终端的当前摇动数值;
其中, 历史加速度数据包括: 横轴历史加速度数据、 纵轴历史加速度数据及竖 轴历史加速度数据。
一个例子如图 12所示, 确定单元 932, 包括:
获取子单元 9321 ,用于获取横轴当前加速度数据与横轴历史加速度数据的第一 差值、 纵轴当前加速度数据与纵轴历史加速度数据的第二差值及竖轴当前加速度数 据与竖轴历史加速度数据的第三差值;
第一计算子单元 9322, 用于计算获取子单元 9321获取到的第一差值的平方、 第二差值的平方及第三差值的平方;
第二计算子单元 9323 , 用于计算第一计算子单元 9322计算得到的第一差值的 平方、 第二差值的平方与第三差值的平方之和的平方根, 并将得到的计算结果作为 移动终端的当前摇动数值。
一个例子中,执行模块 95 ,用于关闭闹钟铃声,并设置在预设时间后继续响铃。 一个例子中, 执行模块 95 , 还用于关闭闹钟铃声之后, 控制移动终端进入节电 模式。
综上所述,本发明实施例提供的移动终端,通过检测移动终端的当前移动状态, 并在确定移动终端当前处于摇动状态后, 获取移动终端的当前加速度数据, 进而根 据当前加速度数据确定移动终端的当前摇动数值 , 且在确定当前摇动数值后, 根据 当前摇动数值执行闹钟管理操作, 因此, 该种闹钟管理方式操作更加筒单, 更具人 性化与智能化, 为用户提供了更大的便利。
本发明实施例提供的终端, 通过检测移动终端的当前移动状态, 并在确定移动 终端当前处于摇动状态后, 获取移动终端的当前加速度数据, 进而根据当前加速度 数据确定移动终端的当前摇动数值 , 且在确定当前摇动数值后, 根据当前摇动数值 执行闹钟管理操作, 因此, 该种闹钟管理方式操作更加筒单, 更具人性化与智能化, 为用户提供了更大的便利。
本发明实施例提供了一种计算机可读存储介质 , 该计算机可读存储介质可以是 上述实施例中的存储器中所包含的计算机可读存储介质; 也可以是单独存在, 未装 配入终端中的计算机可读存储介质。 所述计算机可读存储介质存储有一个或者一个 以上程序, 所述一个或者一个以上程序被一个或者一个以上的处理器用来执行本发 明各实施例的方法, 这里不再赘述。 本发明实施例提供了一种图形用户接口, 所述 图形用户接口用在终端上, 所述终端包括触摸犀显示器、 存储器和用于执行一个或 者一个以上的程序的一个或者一个以上的处理器; 所述图形用户接口包括:
在所述触摸犀显示器上检测移动终端当前是否处于摇动状态;
如果所述移动终端当前处于摇动状态, 则检测所述移动终端的当前加速度数 据, 并根据所述当前加速度数据确定所述移动终端的当前摇动数值;
判断所述移动终端的当前摇动数值是否大于预设阈值;
如果所述移动终端的当前摇动数值大于所述预设阈值, 则执行闹钟管理操作; 其中, 所述当前加速度数据包括: 横轴当前加速度数据、 纵轴当前加速度数据 及竖轴当前加速度数据。
本发明实施例提供的图形用户接口, 通过检测移动终端的当前移动状态, 并在 确定移动终端当前处于摇动状态后, 获取移动终端的当前加速度数据, 进而才艮据当 前加速度数据确定移动终端的当前摇动数值 , 且在确定当前摇动数值后, 根据当前 摇动数值执行闹钟管理操作, 因此, 该种闹钟管理方式操作更加筒单, 更具人性化 与智能化, 为用户提供了更大的便利。
需要说明的是, 上述各流程和各结构图中不是所有的步骤和模块都是必须的, 可以根据实际的需要忽略某些步骤或模块。 各步骤的执行顺序不是固定的, 可以根 据需要进行调整。 各模块的划分仅仅是为了便于描述釆用的功能上的划分, 实际实 现时, 一个模块可以分由多个模块实现, 多个模块的功能也可以由同一个模块实现, 这些模块可以位于同一个设备中, 也可以位于不同的设备中。 另外, 上面描述中釆 用 "第一"、 "第二" 仅仅为了方便区分具有同一含义的两个对象, 并不表示其有实 质的区别。
各实施例中的硬件模块可以以硬件方式或硬件平台加软件的方式实现。 上述软 件包括机器可读指令, 存储在非易失性存储介质中。 因此, 各实施例也可以体现为 软件产品。
各例中, 硬件可以由专门的硬件或执行机器可读指令的硬件实现。 例如, 硬件 可以为专门设计的永久性电路或逻辑器件(如专用处理器, 如 FPGA或 ASIC )用于 完成特定的操作。 硬件也可以包括由软件临时配置的可编程逻辑器件或电路(如包 括通用处理器或其它可编程处理器)用于执行特定操作。
图 8-12 中的模块对应的机器可读指令可以使计算机上操作的操作系统等来完 成这里描述的部分或者全部操作。 非易失性计算机可读存储介质可以是插入计算机 内的扩展板中所设置的存储器中或者写到与计算机相连接的扩展单元中设置的存储 器。 安装在扩展板或者扩展单元上的 CPU 等可以根据指令执行部分和全部实际操 作。
非易失性计算机可读存储介质包括软盘、 硬盘、 磁光盘、 光盘(如 CD-ROM、 CD-R、 CD-RW ^ DVD-ROM ^ DVD-RAM ^ DVD-RW、 DVD+RW )、 磁带、 非易失 性存储卡和 ROM。 可选择地, 可以由通信网络从服务器计算机上下载程序代码。
综上所述, 权利要求的范围不应局限于以上描述的例子中的实施方式, 而应当 将说明书作为一个整体并给予最宽泛的解释。

Claims

权利要求书
1、 一种闹钟管理方法, 其特征在于, 所述方法包括:
当终端的内置闹钟响铃时, 获取所述终端的内置传感器测量到的加速度数据; 根据所述加速度数据确定摇动数值;
判断所述摇动数值是否大于预设阈值;
如果所述摇动数值大于所述阈值, 则执行闹钟管理操作。
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括:
获取当前检测时间及上一次检测时间;
判断所述当前检测时间与所述上一次检测时间之差是否大于预设间隔; 如果所述当前检测时间与所述上一次检测时间之差大于所述预设间隔, 则执行 获取所述移动终端的加速度数据的步骤。
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述加速度数据确定摇 动数值包括:
获取上一次检测到的第二加速度数据;
根据所述加速度数据及所述第二加速度数据确定所述移动终端的当前摇动数 值。
4、 根据权利要求 3所述的方法, 其特征在于, 所述根据所述加速度数据及所述 第二加速度数据确定所述移动终端的当前摇动数值包括:
获取所述加速度数据中的横轴数据与所述第二加速度数据中的横轴数据的第一 差值、 所述加速度数据中的纵轴数据与所述第二加速度数据中的纵轴数据的第二差 值及所述加速度数据中的竖轴数据与所述第二加速度数据中的竖轴数据的第三差 值;
计算所述第一差值的平方、 所述第二差值的平方及所述第三差值的平方, 并计 算所述第一差值的平方、 第二差值的平方与第三差值的平方之和的平方根, 并将得 到的计算结果作为所述摇动数值。
5、 根据权利要求 1所述的方法, 其特征在于, 所述执行闹钟管理操作包括以下 中的至少一个: 关闭闹钟铃声, 设置在预设时间后再次响铃, 取消闹钟, 显示闹钟 设置界面。
6、 根据权利要求 5所述的方法, 其特征在于, 所述方法还包括: 关闭闹钟铃声之后 , 控制所述移动终端进入节电模式。
7、 一种移动终端, 其特征在于, 包括:
检测模块, 用于当所述移动终端的内置闹钟响铃时, 获取所述移动终端的内置 传感器测量到的加速度数据;
确定模块, 用于根据检测模块获得的加速度数据确定摇动数值;
判断模块, 用于判断所述摇动数值是否大于预设阈值;
执行模块, 用于当判断模块确定所述摇动数值大于所述阈值时, 执行闹钟管理 操作。
8、 根据权利要求 7所述的移动终端, 其特征在于, 进一步包括:
第二检测模块, 用于当所述移动终端的内置闹钟响铃时, 检测所述移动终端当 前是否处于摇动状态;
所述检测模块用于当所述第二检测模块检测到所述移动终端当前处于摇动状态 时, 获取所述加速度数据。
9、 根据权利要求 7所述的移动终端, 其特征在于, 所述移动终端还包括: 获取模块, 用于获取当前检测时间及上一次检测时间;
第二判断模块, 用于判断所述获取模块获取到的当前检测时间与所述上一次检 测时间之差是否大于预设间隔;
所述第二检测模块, 用于当所述第二判断模块判断出当前检测时间与所述上一 次检测时间之差大于所述预设间隔时, 获取所述加速度数据。
10、 根据权利要求 7所述的移动终端, 其特征在于, 所述确定模块, 包括: 获取单元, 用于获取上一次检测到的所述移动终端的第二加速度数据; 确定单元, 用于根据所述第二检测模块检测到的加速度数据及所述获取单元获 取到的第二加速度数据确定所述摇动数值。
11、 根据权利要求 10所述的移动终端, 其特征在于, 所述确定单元, 包括: 获取子单元, 用于获取所述加速度数据中的横轴数据与所述第二加速度数据中 的横轴数据的第一差值、 所述加速度数据中的纵轴数据与所述第二加速度数据中的 纵轴数据的第二差值及所述加速度数据中的竖轴数据与所述第二加速度数据中的竖 轴数据的第三差值;
第一计算子单元, 用于计算所述获取子单元获取到的第一差值的平方、 所述第 二差值的平方及所述第三差值的平方;
第二计算子单元, 用于计算所述第一计算子单元计算得到的第一差值的平方、 第二差值的平方与第三差值的平方之和的平方根, 并将得到的计算结果作为所述移 动终端的当前摇动数值。
12、 根据权利要求 7所述的移动终端, 其特征在于, 所述执行模块, 用于关闭 闹钟铃声, 并设置在预设时间后继续响铃。
13、 根据权利要求 12所述的移动终端, 其特征在于, 所述执行模块, 还用于 关闭闹钟铃声之后 , 控制所述移动终端进入节电模式。
PCT/CN2014/081738 2013-07-08 2014-07-07 闹钟管理方法及移动终端 WO2015003593A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310284430.6 2013-07-08
CN201310284430.6A CN104284007B (zh) 2013-07-08 2013-07-08 闹钟管理方法及移动终端

Publications (1)

Publication Number Publication Date
WO2015003593A1 true WO2015003593A1 (zh) 2015-01-15

Family

ID=52258474

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/081738 WO2015003593A1 (zh) 2013-07-08 2014-07-07 闹钟管理方法及移动终端

Country Status (2)

Country Link
CN (1) CN104284007B (zh)
WO (1) WO2015003593A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111694A (zh) * 2017-12-28 2018-06-01 上海传英信息技术有限公司 一种基于智能终端的闹钟控制方法及闹钟控制系统

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120090B (zh) 2015-08-25 2018-05-25 腾讯科技(深圳)有限公司 操作识别方法及装置
CN106998387A (zh) * 2016-01-22 2017-08-01 中兴通讯股份有限公司 一种闹钟提前取消的方法及装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552816A (zh) * 2009-05-08 2009-10-07 上海华勤通讯技术有限公司 带强制闹钟的手机及其提醒方法
CN102404455A (zh) * 2011-11-18 2012-04-04 广东步步高电子工业有限公司 一种闹钟控制方法及系统
CN102664993A (zh) * 2012-04-05 2012-09-12 南京米田科技有限公司 一种手机广告摇晃切换图片的方法
CN102984376A (zh) * 2012-11-23 2013-03-20 广东欧珀移动通信有限公司 一种基于加速度感应的手机闹钟控制方法和装置
CN103078990A (zh) * 2012-11-29 2013-05-01 上海斐讯数据通信技术有限公司 具有闹钟晃动控制系统的移动终端及闹钟晃动控制方法
CN103092351A (zh) * 2013-01-31 2013-05-08 广东欧珀移动通信有限公司 一种停止闹钟响铃方法、装置以及移动终端
CN103167104A (zh) * 2011-12-17 2013-06-19 深圳富泰宏精密工业有限公司 闹钟控制系统及方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377871B (zh) * 2010-08-24 2013-12-04 联想(北京)有限公司 一种信息处理设备及其控制方法
CN102546917B (zh) * 2010-12-31 2014-10-22 联想移动通信科技有限公司 带摄像头的移动终端及其视频处理方法
EP2574017B1 (en) * 2011-06-22 2016-08-17 Huawei Device Co., Ltd. Alarm method and device
CN102299995B (zh) * 2011-08-09 2015-10-07 惠州Tcl移动通信有限公司 移动通讯终端及其模式切换方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552816A (zh) * 2009-05-08 2009-10-07 上海华勤通讯技术有限公司 带强制闹钟的手机及其提醒方法
CN102404455A (zh) * 2011-11-18 2012-04-04 广东步步高电子工业有限公司 一种闹钟控制方法及系统
CN103167104A (zh) * 2011-12-17 2013-06-19 深圳富泰宏精密工业有限公司 闹钟控制系统及方法
CN102664993A (zh) * 2012-04-05 2012-09-12 南京米田科技有限公司 一种手机广告摇晃切换图片的方法
CN102984376A (zh) * 2012-11-23 2013-03-20 广东欧珀移动通信有限公司 一种基于加速度感应的手机闹钟控制方法和装置
CN103078990A (zh) * 2012-11-29 2013-05-01 上海斐讯数据通信技术有限公司 具有闹钟晃动控制系统的移动终端及闹钟晃动控制方法
CN103092351A (zh) * 2013-01-31 2013-05-08 广东欧珀移动通信有限公司 一种停止闹钟响铃方法、装置以及移动终端

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111694A (zh) * 2017-12-28 2018-06-01 上海传英信息技术有限公司 一种基于智能终端的闹钟控制方法及闹钟控制系统

Also Published As

Publication number Publication date
CN104284007B (zh) 2019-11-26
CN104284007A (zh) 2015-01-14

Similar Documents

Publication Publication Date Title
JP6467526B2 (ja) 通信メッセージ送信方法及びウェアラブル・デバイス
US10649720B2 (en) Sound effect configuration method and system and related device
RU2632153C2 (ru) Способ, устройство и терминал для отображения виртуальной клавиатуры
WO2018032581A1 (zh) 一种应用程序控制方法及装置
WO2016119580A1 (zh) 一种开启终端的语音输入功能的方法、装置和终端
WO2015035796A1 (zh) 桌面显示方法、装置及终端
WO2015003601A1 (zh) 流量提醒方法、装置及终端
WO2016082109A1 (zh) 用户设备的电源管理方法和电源管理装置
WO2013155918A1 (zh) 计划任务执行方法、装置、计算机可读存储介质、图形用户接口及移动终端
WO2014187189A1 (en) Method and system for prompting application update
WO2018095130A1 (zh) 一种确定直播时长的方法和系统
CN106940997B (zh) 一种向语音识别系统发送语音信号的方法和装置
CN109937583A (zh) 数据共享的方法与终端
WO2017215635A1 (zh) 一种音效处理方法及移动终端
WO2014154119A1 (zh) 移动终端的振动调节方法及移动终端
WO2018161540A1 (zh) 指纹注册方法及相关产品
TW201541337A (zh) 移動終端中訊息的顯示方法、裝置和系統
CN107438999A (zh) 进入省电模式的方法、退出省电模式的方法、装置及移动终端
WO2017113372A1 (zh) 一种音频业务的干扰控制方法以及终端
TWI575458B (zh) 基於應用的服務提供方法、裝置及系統
WO2015003593A1 (zh) 闹钟管理方法及移动终端
CN105159655B (zh) 行为事件的播放方法和装置
CN106210325B (zh) 一种设置社交应用来电铃声的方法、装置及终端
CN107391732B (zh) 应用程序的功能引导方法、装置及终端设备
CN108234275B (zh) 一种发布通讯信息的方法和装置

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: 14823444

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31.05.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14823444

Country of ref document: EP

Kind code of ref document: A1