WO2015131676A1 - Method and device for controlling alarm clock of mobile terminal, and storage medium - Google Patents

Method and device for controlling alarm clock of mobile terminal, and storage medium Download PDF

Info

Publication number
WO2015131676A1
WO2015131676A1 PCT/CN2015/070931 CN2015070931W WO2015131676A1 WO 2015131676 A1 WO2015131676 A1 WO 2015131676A1 CN 2015070931 W CN2015070931 W CN 2015070931W WO 2015131676 A1 WO2015131676 A1 WO 2015131676A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
state
alarm
preset
acquires
Prior art date
Application number
PCT/CN2015/070931
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 中兴通讯股份有限公司
Publication of WO2015131676A1 publication Critical patent/WO2015131676A1/en

Links

Images

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04GELECTRONIC TIME-PIECES
    • G04G13/00Producing acoustic time signals
    • G04G13/02Producing acoustic time signals at preselected times, e.g. alarm clocks
    • 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

Abstract

A method for controlling the alarm clock of a mobile terminal, a mobile terminal, and a storage medium are disclosed in embodiments of the present invention. The method may comprise: when the alarm clock of a mobile terminal rings, the mobile terminal obtains a first state and a second state of the mobile terminal; when the first state satisfies a pre-set first operation condition, the mobile terminal generates, according to the second state, an alarm control command corresponding to the second state; and, the mobile terminal controls the alarm clock according to the alarm control command.

Description

一种移动终端闹钟的控制方法和装置、存储介质Control method and device for mobile terminal alarm clock, storage medium 技术领域Technical field
本发明涉及移动终端领域,尤其涉及一种移动终端闹钟的控制方法和装置、存储介质。The present invention relates to the field of mobile terminals, and in particular, to a method and device for controlling an alarm clock of a mobile terminal, and a storage medium.
背景技术Background technique
智能手机或平板电脑等移动终端已成为人们生活的必需品之一。闹钟提醒是移动终端的一项基本功能,一般闹钟关闭或延时的方法要求用户睁开眼睛在特定的区域做特定动作。比如点击特定区域、使用特定手势滑屏或者适当晃动移动终端来实现。但是在现实中,当闹钟响起时,用户往往未完全清醒,还不想睁开眼睛,也不想在对闹钟进行关闭或延时进行复杂操作或花费太长时间,这时,通过点击特定区域、特定手势滑屏或者适当晃动移动终端的方式对闹钟进行控制对于用户来说就很麻烦。Mobile terminals such as smartphones or tablets have become one of the necessities of people's lives. Alarm reminder is a basic function of the mobile terminal. Generally, the method of turning off or delaying the alarm requires the user to open his eyes to perform specific actions in a specific area. For example, clicking on a specific area, using a specific gesture to slide the screen or shaking the mobile terminal appropriately. However, in reality, when the alarm goes off, the user is often not fully awake, does not want to open his eyes, and does not want to close or delay the alarm to perform complicated operations or take too long. At this time, by clicking on a specific area, specific It is very troublesome for the user to control the alarm by gesture sliding or shaking the mobile terminal appropriately.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例期望提供一种移动终端闹钟的控制方法和装置、存储介质,使得用户无需睁开双眼,无需点击特定区域、使用特定手势滑屏或者适当晃动移动终端便可以轻松地关闭闹钟或使闹钟延迟再响,使得对移动终端闹钟关闭和延时的操作更简单、方便、快捷。In order to solve the above technical problem, an embodiment of the present invention is to provide a method and device for controlling an alarm clock of a mobile terminal, and a storage medium, so that the user does not need to open a double eye, and does not need to click on a specific area, use a specific gesture to slide the screen, or appropriately shake the mobile terminal. Easily turn off the alarm or delay the alarm, making it easier, faster, and faster to turn off and delay the alarm on the mobile terminal.
本发明的技术方案是这样实现的:The technical solution of the present invention is implemented as follows:
本发明实施例提供了一种移动终端闹钟控制的方法,包括:移动终端的闹钟响铃时,所述移动终端获取所述移动终端的第一状态和第二状态;An embodiment of the present invention provides a method for controlling an alarm of a mobile terminal, including: when the alarm of the mobile terminal rings, the mobile terminal acquires the first state and the second state of the mobile terminal;
当所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令; When the first state meets a preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state;
所述移动终端根据所述闹钟控制指令对所述闹钟进行控制。The mobile terminal controls the alarm clock according to the alarm control command.
上述方案中,所述移动终端获取所述终端的第一状态和第二状态,包括:In the above solution, the acquiring, by the mobile terminal, the first state and the second state of the terminal includes:
所述移动终端每隔第一时间段T1获取一次第一传感器上传的第一传感电信号,并根据所述第一传感电信号获取所述移动终端的第一状态;The mobile terminal acquires the first sensing electrical signal uploaded by the first sensor once every first time period T1, and acquires the first state of the mobile terminal according to the first sensing electrical signal;
所述移动终端每隔第二时间段T2获取一次第二传感器上传的第二传感电信号,并根据所述第二传感电信号获取所述移动终端的第二状态。The mobile terminal acquires the second sensing electrical signal uploaded by the second sensor once every second time period T2, and acquires the second state of the mobile terminal according to the second sensing electrical signal.
上述方案中,所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令,包括:In the above solution, when the first state meets the preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state, including:
当所述第一状态满足预设的所述第一操作条件时,所述移动终端判断所述第二状态是否满足第二操作条件;When the first state meets the preset first operating condition, the mobile terminal determines whether the second state satisfies a second operating condition;
当所述第二状态满足所述第二操作条件时,所述移动终端生成闹钟延时指令,所述延时指令用于指示所述闹钟暂停响铃并在预设的延时时间之后再次响铃;When the second state satisfies the second operating condition, the mobile terminal generates an alarm delay command, the delay instruction is used to indicate that the alarm pauses ringing and rings again after a preset delay time bell;
当所述第二状态不满足所述第二操作条件时,所述移动终端生成闹钟关闭指令,所述关闭指令用于指示所述闹钟关闭响铃。When the second state does not satisfy the second operating condition, the mobile terminal generates an alarm shutdown command, the shutdown command is used to instruct the alarm to turn off the ringing.
上述方案中,所述移动终端获取所述移动终端的第一状态和第二状态,具体包括:In the foregoing solution, the acquiring, by the mobile terminal, the first state and the second state of the mobile terminal includes:
所述移动终端的闹钟响铃时,所述移动终端每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;When the alarm of the mobile terminal is ringing, the mobile terminal acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal according to the touch signal;
所述移动终端每隔第二时间段T2获取一次加速度传感器上传的加速度,并根据所述加速度获取所述移动终端的晃动状态。The mobile terminal acquires the acceleration uploaded by the acceleration sensor once every second time period T2, and acquires the shaking state of the mobile terminal according to the acceleration.
上述方案中,所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令,包括: In the above solution, when the first state meets the preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state, including:
当所述移动终端获取所述移动终端的屏幕触摸状态为屏幕被触摸状态时,所述移动终端判断所述移动终端的加速度是否大于预设的加速度阈值;When the mobile terminal acquires a screen touch state of the mobile terminal as a screen touched state, the mobile terminal determines whether the acceleration of the mobile terminal is greater than a preset acceleration threshold;
当所述加速度大于所述预设的加速度阈值时,所述移动终端判断所述移动终端的晃动状态为被晃动状态,所述移动终端生成闹钟延时指令;When the acceleration is greater than the preset acceleration threshold, the mobile terminal determines that the sway state of the mobile terminal is a sway state, and the mobile terminal generates an alarm delay instruction;
当所述加速度不大于所述预设的加速度阈值时,所述移动终端判断所述移动终端的晃动状态为无晃动状态,所述移动终端生成闹钟关闭指令。When the acceleration is not greater than the preset acceleration threshold, the mobile terminal determines that the shaking state of the mobile terminal is a non-sloshing state, and the mobile terminal generates an alarm closing command.
上述方案中,所述移动终端获取所述移动终端的第一状态和第二状态,具体包括:In the foregoing solution, the acquiring, by the mobile terminal, the first state and the second state of the mobile terminal includes:
所述移动终端的闹钟响铃时,所述移动终端每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;When the alarm of the mobile terminal is ringing, the mobile terminal acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal according to the touch signal;
所述移动终端每隔第二时间段T2获取一次压力传感器上传的压力,并根据所述压力获取所述移动终端的握持状态。The mobile terminal acquires the pressure uploaded by the pressure sensor every second time period T2, and acquires the holding state of the mobile terminal according to the pressure.
上述方案中,所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令,包括:In the above solution, when the first state meets the preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state, including:
当所述移动终端根据所述触摸信号确定所述移动终端的屏幕触摸状态为屏幕被触摸状态时,所述移动终端判断所述压力传感器上传的压力是否大于预设的压力阈值;When the mobile terminal determines that the screen touch state of the mobile terminal is the screen touched state according to the touch signal, the mobile terminal determines whether the pressure uploaded by the pressure sensor is greater than a preset pressure threshold;
当所述压力大于所述预设的压力阈值时,所述移动终端判断所述移动终端的握持状态为手握状态,所述移动终端生成闹钟延时指令;When the pressure is greater than the preset pressure threshold, the mobile terminal determines that the holding state of the mobile terminal is a hand holding state, and the mobile terminal generates an alarm clock delay instruction;
当所述压力不大于所述预设加速度阈值时,所述移动终端判断所述移动终端的握持状态为非手握状态,所述移动终端生成闹钟关闭指令。When the pressure is not greater than the preset acceleration threshold, the mobile terminal determines that the holding state of the mobile terminal is a non-hand grip state, and the mobile terminal generates an alarm shutdown command.
上述方案中,在所述移动终端的闹钟响铃前,所述方法还包括:In the above solution, before the alarm of the mobile terminal rings, the method further includes:
所述移动终端接收包括所述闹钟的响铃时刻和所述闹钟的延时时间的设置指令,并按照所述设置指令对所述闹钟进行设置。 The mobile terminal receives a setting instruction including a ringing time of the alarm clock and a delay time of the alarm clock, and setting the alarm clock according to the setting instruction.
本发明实施例还提供了一种移动终端,所述移动终端包括:获取单元、生成单元和控制单元,其中,The embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes: an acquiring unit, a generating unit, and a control unit, where
所述获取单元,配置为当移动终端的闹钟响铃时,获取所述移动终端的第一状态和第二状态;The acquiring unit is configured to acquire a first state and a second state of the mobile terminal when an alarm of the mobile terminal rings;
所述生成单元,配置为当所述获取单元获取的所述第一状态满足预设的第一操作条件时,根据所述第二状态生成与第二状态对应的闹铃控制指令;The generating unit is configured to generate an alarm control instruction corresponding to the second state according to the second state when the first state acquired by the acquiring unit meets a preset first operating condition;
所述控制单元,配置为根据所述生成单元生成的所述闹钟控制指令对所述闹钟进行控制。The control unit is configured to control the alarm clock according to the alarm control command generated by the generating unit.
上述方案中,所述获取单元还配置为,In the above solution, the acquiring unit is further configured to:
每隔第一时间段T1获取一次第一传感器上传的第一传感电信号,并根据所述第一传感电信号获取所述移动终端的第一状态;以及,Acquiring the first sensing electrical signal uploaded by the first sensor once every first time period T1, and acquiring the first state of the mobile terminal according to the first sensing electrical signal; and
每隔第二时间段T2获取一次第二传感器上传的第二传感电信号,并根据所述第二传感电信号获取所述移动终端的第二状态。And acquiring, by the second time period T2, the second sensing electrical signal uploaded by the second sensor, and acquiring the second state of the mobile terminal according to the second sensing electrical signal.
上述方案中,所述生成单元包括判断子单元和生成子单元,In the above solution, the generating unit includes a determining subunit and a generating subunit,
所述判断子单元,配置为当所述第一状态满足预设的所述第一操作条件时,判断所述第二状态是否满足第二操作条件;The determining subunit is configured to determine whether the second state satisfies the second operating condition when the first state satisfies the preset first operating condition;
所述生成子单元,配置为当所述判断子单元判断所述第二状态满足所述第二操作条件时,生成闹钟延时指令,所述延时指令用于指示所述闹钟暂停响铃并在预设的延时时间之后再次响铃;The generating subunit is configured to generate an alarm delay instruction when the determining subunit determines that the second state satisfies the second operating condition, where the delay instruction is used to indicate that the alarm is paused and Ring again after the preset delay time;
所述生成子单元,还配置为当所述判断子单元判断所述第二状态不满足所述第二操作条件时,生成闹钟关闭指令,所述关闭指令用于指示所述闹钟关闭响铃。The generating subunit is further configured to generate an alarm closing command when the determining subunit determines that the second state does not satisfy the second operating condition, and the closing instruction is used to instruct the alarm to turn off the ringing.
上述方案中,所述获取单元还配置为:In the above solution, the obtaining unit is further configured to:
当所述移动终端的闹钟响铃时,所述获取单元每隔第一时间段T1获取 一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;When the alarm of the mobile terminal rings, the acquiring unit acquires every first time period T1 a touch signal of the screen, and acquiring a screen touch state of the mobile terminal according to the touch signal;
所述获取单元,还配置为每隔第二时间段T2获取一次加速度传感器上传的加速度,并根据所述加速度获取所述移动终端的晃动状态。The acquiring unit is further configured to acquire the acceleration uploaded by the acceleration sensor once every second time period T2, and acquire the shaking state of the mobile terminal according to the acceleration.
上述方案中,所述生成单元还包括判断子单元和生成子单元,In the above solution, the generating unit further includes a determining subunit and a generating subunit,
所述判断子单元,配置为当所述获取单元获取所述移动终端的屏幕触摸状态为屏幕被触摸状态时,所述判断子单元判断所述移动终端的加速度是否大于预设的加速度阈值;当所述加速度大于所述预设的加速度阈值时,所述判断子单元判断所述移动终端的晃动状态为被晃动状态;当所述加速度不大于所述预设的加速度阈值时,所述判断子单元判断所述移动终端的晃动状态为无晃动状态;The determining subunit is configured to determine, when the acquiring unit acquires a screen touch state of the mobile terminal, that the screen is touched, the determining subunit determining whether the acceleration of the mobile terminal is greater than a preset acceleration threshold; When the acceleration is greater than the preset acceleration threshold, the determining subunit determines that the shaking state of the mobile terminal is a swayed state; when the acceleration is not greater than the preset acceleration threshold, the determining sub The unit determines that the shaking state of the mobile terminal is a non-sloshing state;
所述生成子单元,配置为当所述判断子单元判断所述移动终端的晃动状态为被晃动状态时,生成闹钟延时指令;当所述判断子单元判断所述移动终端的晃动状态为无晃动状态时,生成闹钟关闭指令。The generating subunit is configured to generate an alarm time delay instruction when the determining subunit determines that the shaking state of the mobile terminal is a swaying state; and when the determining subunit determines that the shaking state of the mobile terminal is none When the state is shaken, an alarm off command is generated.
上述方案中,所述获取单元还配置为:In the above solution, the obtaining unit is further configured to:
当所述移动终端的闹钟响铃时,所述获取单元每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;以及,When the alarm of the mobile terminal is ringing, the acquiring unit acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal according to the touch signal; and
每隔第二时间段T2获取一次压力传感器上传的压力,并根据所述压力获取所述移动终端的晃动状态。The pressure uploaded by the pressure sensor is acquired every second time period T2, and the shaking state of the mobile terminal is acquired according to the pressure.
上述方案中,所述生成单元还包括判断子单元和生成子单元,In the above solution, the generating unit further includes a determining subunit and a generating subunit,
所述判断子单元,配置为当所述获取单元获取所述移动终端的屏幕触摸状态为屏幕被触摸时,所述判断子单元判断所述压力传感器上传的压力是否大于预设的压力阈值;当所述压力大于所述预设的压力阈值时,所述判断子单元判断所述移动终端的握持状态为手握状态;当所述压力不大于 所述预设的压力阈值时,所述判断子单元判断所述移动终端的握持状态为非手握状态;The determining subunit is configured to determine, when the acquiring unit acquires a screen touch state of the mobile terminal that the screen is touched, the determining subunit determines whether the pressure uploaded by the pressure sensor is greater than a preset pressure threshold; When the pressure is greater than the preset pressure threshold, the determining subunit determines that the holding state of the mobile terminal is a hand holding state; when the pressure is not greater than When the preset pressure threshold is used, the determining subunit determines that the holding state of the mobile terminal is a non-hand grip state;
所述生成子单元,配置为当所述判断子单元判断所述移动终端的握持状态为手握状态时,生成闹钟延时指令;当所述判断子单元判断所述移动终端的握持状态为非手握状态时,生成闹钟关闭指令。The generating subunit is configured to generate an alarm time delay instruction when the determining subunit determines that the holding state of the mobile terminal is a hand holding state; and when the determining subunit determines the holding state of the mobile terminal When the state is not held, an alarm off command is generated.
上述方案中,所述移动终端还包括:接收单元和设置单元,其中,In the above solution, the mobile terminal further includes: a receiving unit and a setting unit, where
所述接收单元,配置为接收包括所述闹钟的响铃时刻和所述闹钟的延时时间的设置指令;The receiving unit is configured to receive a setting instruction including a ringing moment of the alarm clock and a delay time of the alarm clock;
所述设置单元,配置为按照所述接收单元接收的所述设置指令对所述闹钟进行设置。The setting unit is configured to set the alarm clock according to the setting instruction received by the receiving unit.
一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行前述的移动终端闹钟控制的方法。A storage medium storing a computer program configured to perform the aforementioned method of alarm control of a mobile terminal.
本发明实施例提供了一种移动终端闹钟控制的方法,通过获取移动终端的第一状态和第二状态,并在第一状态满足预设的第一操作条件时,根据第二状态生成与第二状态对应的闹铃控制指令,并根据所述闹钟控制指令对所述闹钟进行控制,使得对移动终端闹钟关闭和延时的操作更简单、方便、快捷。An embodiment of the present invention provides a method for controlling an alarm of a mobile terminal. When the first state and the second state of the mobile terminal are acquired, and the first state meets the preset first operating condition, the second state is generated according to the second state. The two states correspond to the alarm control command, and control the alarm clock according to the alarm control command, so that the operation of turning off and delaying the alarm of the mobile terminal is simpler, more convenient, and faster.
附图说明DRAWINGS
图1为本发明实施例提供的一种移动终端控制闹钟的方法流程示意图;FIG. 1 is a schematic flowchart of a method for controlling an alarm clock by a mobile terminal according to an embodiment of the present invention;
图2为本发明实施例提供的另一种移动终端控制闹钟的方法流程示意图;2 is a schematic flowchart of another method for controlling an alarm clock by a mobile terminal according to an embodiment of the present invention;
图3为本发明实施例提供的又一种移动终端控制闹钟的方法流程示意图;FIG. 3 is a schematic flowchart of still another method for controlling an alarm clock by a mobile terminal according to an embodiment of the present disclosure;
图4为本发明实施例提供的一种移动终端的结构示意图;FIG. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure;
图5为本发明实施例提供的另一种移动终端的结构示意图。 FIG. 5 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。本发明实施例中的“移动终端”包括但不限于手机、平板电脑、个人电脑、数码相机、数码相框、游戏娱乐产品或手持式影音播放器等移动终端。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings. The "mobile terminal" in the embodiment of the present invention includes, but is not limited to, a mobile terminal such as a mobile phone, a tablet computer, a personal computer, a digital camera, a digital photo frame, a game entertainment product, or a handheld video player.
在本发明实施例中,当闹钟响铃时,移动终端获取移动终端的第一状态和第二状态,并在第一状态满足预设的第一操作条件时,根据第二状态生成与第二状态对应的闹铃控制指令,并根据所述闹钟控制指令对所述闹钟进行控制。其中,所述第一状态用于判断用户是否对移动终端进行了操作,所述第二状态用于判断对所述闹钟进行何种操作。本发明实施例所述的移动终端闹铃的控制方法,既可以是结合第一状态和第二状态来对闹钟进行控制,也可以是分别根据第一状态和第二状态来对闹钟进行控制。In the embodiment of the present invention, when the alarm clocks, the mobile terminal acquires the first state and the second state of the mobile terminal, and generates and the second state according to the second state when the first state satisfies the preset first operating condition. The alarm control command corresponding to the state, and controlling the alarm clock according to the alarm control command. The first state is used to determine whether the user has performed operations on the mobile terminal, and the second state is used to determine what operation is performed on the alarm clock. The method for controlling the alarm of the mobile terminal according to the embodiment of the present invention may be that the alarm is controlled by combining the first state and the second state, or the alarm may be controlled according to the first state and the second state, respectively.
本发明实施例所述第一状态和第二状态可以是通过光敏感应、热敏感应、压敏感应、电容感应、电阻感应、电磁感应、各个频段的电磁波探测或反射探测等方式获取到的可以表征移动终端和用户交互状态的任何状态,本发明实施例在此不做限制。The first state and the second state in the embodiment of the present invention may be obtained by means of photosensitive sensing, thermal sensing, pressure sensitive response, capacitive sensing, resistance sensing, electromagnetic induction, electromagnetic wave detection or reflection detection in various frequency bands, etc. Any state that characterizes the state of the mobile terminal and the user interaction is not limited herein.
参见图1,其示出了本发明实施例提供的一种移动终端控制闹钟的方法流程,该方法可以包括:FIG. 1 is a flowchart of a method for controlling an alarm clock of a mobile terminal according to an embodiment of the present invention. The method may include:
S101:移动终端的闹钟在响铃时刻响铃时,所述移动终端获取所述移动终端的第一状态和第二状态;S101: The mobile terminal acquires the first state and the second state of the mobile terminal when the alarm of the mobile terminal rings at the ringing time;
示例性地,所述移动终端获取所述移动终端的第一状态和第二状态,具体可以包括:Illustratively, the acquiring, by the mobile terminal, the first state and the second state of the mobile terminal may include:
所述移动终端每隔第一时间段T1获取一次第一传感器上传的第一传感电信号,并根据所述第一传感电信号获取所述移动终端的第一状态;以及,The mobile terminal acquires the first sensing electrical signal uploaded by the first sensor once every first time period T1, and acquires the first state of the mobile terminal according to the first sensing electrical signal;
所述移动终端每隔第二时间段T2获取一次第二传感器上传的第二传感 电信号,并根据所述第二传感电信号获取所述移动终端的第二状态。The mobile terminal acquires the second sensor uploaded by the second sensor every second time period T2 And generating an electrical signal, and acquiring a second state of the mobile terminal according to the second sensing electrical signal.
需要说明的是,移动终端获取所述第一状态和所述第二状态并无先后顺序。所述移动终端从响铃时刻起开始获取第一状态和第二状态并记录获取到的第一状态和第二状态,直至响铃结束或者用户对移动终端进行了操作。It should be noted that the mobile terminal acquires the first state and the second state in no order. The mobile terminal acquires the first state and the second state from the ringing time and records the acquired first state and the second state until the ringing ends or the user operates the mobile terminal.
S102:当所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令;S102: When the first state meets a preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state;
示例性地,所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态指示生成闹铃控制指令,具体可以包括:For example, when the first state meets the preset first operating condition, the mobile terminal generates an alarm control command according to the second state indication, which may specifically include:
当所述第一状态满足预设的所述第一操作条件时,所述移动终端判断所述第二状态是否满足第二操作条件;When the first state meets the preset first operating condition, the mobile terminal determines whether the second state satisfies a second operating condition;
当所述第二状态满足所述第二操作条件时,所述移动终端生成闹钟延时指令,所述延时指令用于指示所述闹钟暂停响铃并在预设的延时时间之后再次响铃;When the second state satisfies the second operating condition, the mobile terminal generates an alarm delay command, the delay instruction is used to indicate that the alarm pauses ringing and rings again after a preset delay time bell;
当所述第二状态不满足所述第二操作条件时,所述移动终端生成闹钟关闭指令,所述关闭指令用于指示所述闹钟关闭响铃。When the second state does not satisfy the second operating condition, the mobile terminal generates an alarm shutdown command, the shutdown command is used to instruct the alarm to turn off the ringing.
可以理解地,当闹钟在一定时间内仍然不满足预设的第一操作条件时,所述移动终端可以暂停响铃并延时响铃。It can be understood that when the alarm still does not satisfy the preset first operating condition for a certain period of time, the mobile terminal can pause the ringing and delay the ringing.
需要说明的是,所述闹铃控制指令的生成,也可以根据第一状态和第二状态独立生成,例如所述第一操作条件可以是无条件,即对闹钟进行控制的过程中,可以仅根据第二状态进行控制;同样地,所述根据所述第二状态生成与第二状态对应的闹铃控制指令也可以是与第一状态对应的闹铃控制指令,即对闹铃的控制仅根据第一状态进行控制。It should be noted that the generation of the alarm control command may be independently generated according to the first state and the second state. For example, the first operating condition may be unconditional, that is, the process of controlling the alarm may be based only on The second state is controlled. Similarly, the alarm control command corresponding to the second state generated according to the second state may also be an alarm control command corresponding to the first state, that is, the control of the alarm is based only on The first state is controlled.
例如,第一状态为触摸状态,第二状态为晃动状态时,所述移动终端可以根据所述触摸状态和所述晃动状态生成对应的闹铃控制指令。当移动 终端获取的第一状态表明自身屏幕被触摸时,生成闹铃关闭指令,当移动终端获取的第二状态表明自身被晃动时,生成闹钟延时指令。即用户只需触摸屏幕便可关闭闹铃,只需晃动移动终端便可对闹钟进行延时操作。对于第一状态和第二状态的操作条件,可以根据具体需要进行设置,在此不再赘述。For example, when the first state is a touch state and the second state is a sway state, the mobile terminal may generate a corresponding alarm control command according to the touch state and the sway state. When moving When the first state acquired by the terminal indicates that the screen is touched, an alarm off command is generated, and when the second state acquired by the mobile terminal indicates that it is shaken, an alarm delay instruction is generated. That is, the user can turn off the alarm by simply touching the screen, and the alarm can be delayed by shaking the mobile terminal. The operating conditions of the first state and the second state may be set according to specific needs, and details are not described herein again.
S103:移动终端根据所述闹钟控制指令对所述闹钟进行控制。S103: The mobile terminal controls the alarm clock according to the alarm clock control instruction.
可以理解地,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令后,所述移动终端根据所述闹钟关闭指令或者延时指令对所述闹钟进行相应地关闭或者延时操作。It can be understood that, after the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state, the mobile terminal performs correspondingly closing the alarm according to the alarm off command or the delay instruction. Delayed operation.
S104:在所述移动终端的闹钟响铃前,所述移动终端接收包括所述闹钟的响铃时刻和所述闹钟的延时时间的设置指令,并按照所述设置指令对所述闹钟进行设置。S104: Before the alarm of the mobile terminal rings, the mobile terminal receives a setting instruction including a ringing time of the alarm clock and a delay time of the alarm clock, and setting the alarm clock according to the setting instruction. .
可以理解地,用户可以根据需要预先对所述移动终端闹钟的响铃时刻和延时时间进行设置。It can be understood that the user can preset the ringing time and the delay time of the alarm of the mobile terminal as needed.
本发明实施例提供了一种移动终端闹钟控制的方法,通过获取移动终端的第一状态和第二状态,并在第一状态满足预设的第一操作条件时,根据第二状态生成与第二状态对应的闹铃控制指令并根据所述闹钟控制指令对所述闹钟进行控制,从而实现了对移动终端闹钟关闭和延时的简单、方便、快捷操作。An embodiment of the present invention provides a method for controlling an alarm of a mobile terminal. When the first state and the second state of the mobile terminal are acquired, and the first state meets the preset first operating condition, the second state is generated according to the second state. The alarm control command corresponding to the two states controls the alarm clock according to the alarm control command, thereby realizing simple, convenient and fast operation of closing and delaying the alarm of the mobile terminal.
基于图1所述的实施例,所述第一状态优选为移动终端的屏幕触摸状态,所述第二状态优选为移动终端的晃动状态,参见图2,其示出了本发明实施例提供的另一种移动终端控制闹钟的方法流程,在本实施例中,所述方法可以包括:The first state is preferably a screen touch state of the mobile terminal, and the second state is preferably a sway state of the mobile terminal. Referring to FIG. 2, it is shown in the embodiment of the present invention. In another embodiment, the method may include:
S201:所述移动终端的闹钟响铃时,所述移动终端每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕 触摸状态;以及,S201: When the alarm of the mobile terminal rings, the mobile terminal acquires a touch signal of the screen once every first time period T1, and acquires a screen of the mobile terminal according to the touch signal. Touch state; and,
所述移动终端每隔第二时间段T2获取一次加速度传感器上传的加速度,并根据所述加速度获取所述移动终端的晃动状态。The mobile terminal acquires the acceleration uploaded by the acceleration sensor once every second time period T2, and acquires the shaking state of the mobile terminal according to the acceleration.
需要说明的是,在本实施例中,所述移动终端设置有能获取加速度的加速度传感器。所述加速度为三个正交坐标轴上至少一轴的加速度分量的矢量和,也就是说所述加速度可以是三个正交坐标轴上任意一轴的加速度分量,也可以是三个正交坐标轴上任意两轴或三轴的加速度分量的矢量和。此外,一般来说所获取的加速度都会掺杂重力干扰,因此优选地,在本实施例中,移动终端接收所述加速度传感器上传的正交坐标轴三轴上的加速度分量,可以对三轴上的加速度分量进行去噪处理,以剔除重力干扰。It should be noted that, in this embodiment, the mobile terminal is provided with an acceleration sensor capable of acquiring acceleration. The acceleration is a vector sum of acceleration components of at least one axis on three orthogonal coordinate axes, that is, the acceleration may be an acceleration component of any one of three orthogonal coordinate axes, or may be three orthogonal The vector sum of the acceleration components of any two or three axes on the coordinate axis. In addition, in general, the acquired acceleration is doped with gravity interference. Therefore, in the embodiment, the mobile terminal receives the acceleration component on the three axes of the orthogonal coordinate axis uploaded by the acceleration sensor, and can be on the three axes. The acceleration component is denoised to remove gravity interference.
S202:当所述移动终端获取所述移动终端的屏幕触摸状态为屏幕被触摸时,所述移动终端判断所述移动终端的加速度是否大于预设的加速度阈值;S202: When the mobile terminal acquires the screen touch state of the mobile terminal as the screen is touched, the mobile terminal determines whether the acceleration of the mobile terminal is greater than a preset acceleration threshold;
所述移动终端获取所述移动终端的屏幕触摸状态为屏幕被触摸,即表示所述屏幕有触摸信号输入,当有信号输入时表明用户对移动终端进行了操作。这时,移动终端需要通过判断用户是否对移动终端进行了晃动来决定进行何种操作,即对加速度的大小和预设的加速度阈值进行比较。The mobile terminal acquires the screen touch state of the mobile terminal as the screen is touched, that is, the screen has a touch signal input, and when there is a signal input, the user operates the mobile terminal. At this time, the mobile terminal needs to determine what kind of operation is performed by judging whether the user shakes the mobile terminal, that is, comparing the magnitude of the acceleration with the preset acceleration threshold.
S203:当所述加速度大于所述预设的加速度阈值时,所述移动终端判断所述移动终端的晃动状态为被晃动状态,所述移动终端生成闹钟延时指令,结束本处理流程;S203: When the acceleration is greater than the preset acceleration threshold, the mobile terminal determines that the shaking state of the mobile terminal is a sway state, and the mobile terminal generates an alarm delay instruction, and ends the processing flow;
所述加速度大于所述预设加速度阈值时,说明用户醒来并想对闹钟进行延时操作,用户晃动移动终端,移动终端获取到大于预设的加速度阈值的加速度,生成闹钟延时指令。When the acceleration is greater than the preset acceleration threshold, the user wakes up and wants to delay the alarm. The user shakes the mobile terminal, and the mobile terminal acquires an acceleration greater than a preset acceleration threshold to generate an alarm delay command.
S204:当所述加速度不大于所述预设的加速度阈值时,所述移动终端判断所述移动终端的晃动状态为无晃动状态,所述移动终端生成闹钟关闭 指令。S204: When the acceleration is not greater than the preset acceleration threshold, the mobile terminal determines that the shaking state of the mobile terminal is a non-sloshing state, and the mobile terminal generates an alarm to be turned off. instruction.
所述加速度不大于所述预设加速度阈值时,说明用户醒来并想对闹钟进行关闭操作,用户不晃动移动终端,移动终端获取到不大于预设的加速度阈值的加速度,生成闹钟关闭指令。When the acceleration is not greater than the preset acceleration threshold, the user wakes up and wants to close the alarm. The user does not shake the mobile terminal, and the mobile terminal acquires an acceleration that is not greater than a preset acceleration threshold, and generates an alarm shutdown command.
基于步骤S203和S204,对于用户来说,其具体操作动作为:当用户想对闹钟进行延时操作时,用户用手指触摸移动终端的屏幕并在手指抬起前摇晃所述移动终端,或者用户在手指触摸屏幕之前摇晃手机然后再用手指触摸屏幕,用户手指抬起,闹铃暂停并在延时时间之后再次响铃;当用户想对闹钟进行关闭操作时,用户仅仅用手指触摸移动终端的屏幕而不对移动终端进行晃动,用户手指抬起,闹铃关闭。Based on steps S203 and S204, for the user, the specific operation action is: when the user wants to delay the operation of the alarm, the user touches the screen of the mobile terminal with a finger and shakes the mobile terminal before the finger is raised, or the user Shake the phone before the finger touches the screen and then touch the screen with the finger, the user's finger is raised, the alarm is paused and rings again after the delay time; when the user wants to turn off the alarm, the user only touches the mobile terminal with the finger The screen does not shake the mobile terminal, the user's finger is raised, and the alarm is turned off.
上述步骤202至204是移动终端根据所述晃动状态生成与晃动状态对应的闹铃控制指令的具体实施过程。The above steps 202 to 204 are specific implementation processes in which the mobile terminal generates an alarm control command corresponding to the sway state according to the sway state.
可选地,所述闹钟延时指令和关闭指令可以进行调换,即用户可以通过触摸并摇晃移动终端来关闭闹钟,通过触摸不摇晃移动终端来对闹钟进行延时操作。Optionally, the alarm delay command and the shutdown command may be exchanged, that is, the user can turn off the alarm by touching and shaking the mobile terminal, and delay the alarm by touching the mobile terminal without shaking.
本发明实施例提供了另一种移动终端闹钟控制的方法,通过获取移动终端的屏幕触摸状态和晃动状态,并在屏幕触摸状态为屏幕被触摸时,根据移动终端的晃动状态生成与晃动状态对应的闹铃控制指令并根据所述闹钟控制指令对所述闹钟进行控制,从而实现了对移动终端闹钟关闭和延时的简单、方便、快捷操作。An embodiment of the present invention provides another method for controlling an alarm of a mobile terminal, which obtains a screen touch state and a sway state of the mobile terminal, and generates a corresponding sway state according to the sway state of the mobile terminal when the screen touch state is that the screen is touched. The alarm control command controls the alarm clock according to the alarm control command, thereby realizing simple, convenient and fast operation of closing and delaying the alarm of the mobile terminal.
基于图1所述的实施例,所述第一状态优选为移动终端的屏幕触摸状态,所述第二状态优选为移动终端的握持状态,参见图3,其示出了本发明实施例提供的又一种移动终端控制闹钟的方法流程,所述方法可以包括:Based on the embodiment described in FIG. 1, the first state is preferably a screen touch state of the mobile terminal, and the second state is preferably a grip state of the mobile terminal. Referring to FIG. 3, it is provided by the embodiment of the present invention. Yet another method flow for controlling an alarm clock by a mobile terminal, the method may include:
S301:所述移动终端的闹钟响铃时,所述移动终端每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕 触摸状态;以及,S301: When the alarm of the mobile terminal rings, the mobile terminal acquires a touch signal of the screen once every first time period T1, and acquires a screen of the mobile terminal according to the touch signal. Touch state; and,
所述移动终端每隔第二时间段T2获取一次压力传感器上传的压力,并根据所述压力获取所述移动终端的握持状态。The mobile terminal acquires the pressure uploaded by the pressure sensor every second time period T2, and acquires the holding state of the mobile terminal according to the pressure.
需要说明的是,在本实施例中,所述移动终端设置有能获取压力的压力传感器,所述压力传感器可以是设置于移动终端的压力传感点、条或阵列,所述压力传感器可以设置于移动终端中任何可感知用户握持压力的部位,例如移动终端的两侧、背面等。It should be noted that, in this embodiment, the mobile terminal is provided with a pressure sensor capable of acquiring pressure, and the pressure sensor may be a pressure sensing point, a strip or an array disposed on the mobile terminal, and the pressure sensor may be set. Any part of the mobile terminal that can sense the user's holding pressure, such as the sides, the back of the mobile terminal, and the like.
S302:当所述移动终端获取所述移动终端的屏幕触摸状态为屏幕被触摸状态时,所述移动终端判断所述压力传感器上传的压力是否大于预设的压力阈值;S302: When the mobile terminal acquires a screen touch state of the mobile terminal as a screen touched state, the mobile terminal determines whether the pressure uploaded by the pressure sensor is greater than a preset pressure threshold;
所述移动终端获取所述移动终端的屏幕触摸状态为屏幕被触摸,即表示所述屏幕有触摸信号输入,当有触摸信号输入时表明用户对移动终端进行了操作。这时,移动终端需要通过判断用户是否对移动终端施加了压力来决定多闹钟进行何种操作,即对所述压力的大小和预设的压力阈值进行比较。The mobile terminal acquires a screen touch state of the mobile terminal as the screen is touched, that is, the screen has a touch signal input, and when a touch signal is input, the user operates the mobile terminal. At this time, the mobile terminal needs to determine what operation is performed by the multi-alarm by determining whether the user applies pressure to the mobile terminal, that is, comparing the magnitude of the pressure with a preset pressure threshold.
S303:当所述压力大于所述预设的压力阈值时,所述移动终端判断所述移动终端的握持状态为手握状态,所述移动终端生成闹钟延时指令,结束本处理流程;S303: When the pressure is greater than the preset pressure threshold, the mobile terminal determines that the holding state of the mobile terminal is a hand holding state, and the mobile terminal generates an alarm clock delay instruction, and ends the processing flow;
所述压力大于所述预设压力阈值时,说明用户醒来并想对闹钟进行延时操作,用户握持移动终端并对压力感应部分施加一定压力,移动终端获取到大于预设的压力阈值的压力,生成闹钟延时指令。When the pressure is greater than the preset pressure threshold, the user wakes up and wants to perform a delay operation on the alarm clock. The user holds the mobile terminal and applies a certain pressure to the pressure sensing portion, and the mobile terminal acquires a pressure threshold greater than a preset. Pressure, generate an alarm delay command.
S304:当所述压力不大于所述预设的压力阈值时,所述移动终端判断所述移动终端的握持状态为非手握状态,所述移动终端生成闹钟关闭指令。S304: When the pressure is not greater than the preset pressure threshold, the mobile terminal determines that the holding state of the mobile terminal is a non-handheld state, and the mobile terminal generates an alarm closing command.
所述压力不大于所述预设的压力阈值时,说明用户醒来并想对闹钟进行关闭操作,用户不握持移动终端,移动终端获取到不大于预设的压力阈 值的压力,生成闹钟关闭指令。When the pressure is not greater than the preset pressure threshold, the user wakes up and wants to close the alarm. The user does not hold the mobile terminal, and the mobile terminal acquires no more than a preset pressure threshold. The pressure of the value generates an alarm off command.
基于步骤S303和S304,对于用户来说,其具体操作动作为:当用户想对闹钟进行延时操作时,用户用手指触摸移动终端的屏幕并在手指抬起前握持移动终端并对压力感应部分施加压力,或者用户在手指触摸屏幕之前握持移动终端并对压力感应部分施加压力然后再用手指触摸屏幕,用户手指抬起,闹铃暂停并在延时时间之后再次响铃;当用户想对闹钟进行关闭操作时,用户仅仅用手指触摸移动终端的屏幕而不握持移动终端,用户手指抬起,闹铃关闭。Based on steps S303 and S304, for the user, the specific operation action is: when the user wants to delay the operation of the alarm, the user touches the screen of the mobile terminal with a finger and holds the mobile terminal and pressure sensing before the finger is raised Partially applying pressure, or the user holds the mobile terminal before the finger touches the screen and applies pressure to the pressure sensing portion and then touches the screen with the finger, the user's finger is raised, the alarm is paused and rings again after the delay time; when the user wants When the alarm is turned off, the user only touches the screen of the mobile terminal with a finger without holding the mobile terminal, the user's finger is raised, and the alarm is turned off.
上述步骤302至304是移动终端根据所述握持状态生成与握持状态对应的闹铃控制指令的具体实施过程。The above steps 302 to 304 are specific implementation processes in which the mobile terminal generates an alarm control command corresponding to the grip state according to the grip state.
可选地,所述闹钟延时指令和关闭指令可以进行调换,即用户可以通过触摸并握持移动终端来关闭闹钟,通过触摸不握持移动终端来对闹钟进行延时操作。Optionally, the alarm delay command and the shutdown command may be exchanged, that is, the user may turn off the alarm by touching and holding the mobile terminal, and delay operation of the alarm by touching the mobile terminal without touching.
本发明实施例提供了又一种移动终端闹钟控制的方法,通过获取移动终端的屏幕触摸状态和握持状态,并在屏幕触摸状态为屏幕被触摸时,根据移动终端的握持状态生成与握持状态对应的闹铃控制指令并根据所述闹钟控制指令对所述闹钟进行控制,从而实现了对移动终端闹钟关闭和延时的简单、方便、快捷操作。The embodiment of the invention provides a method for controlling the alarm of the mobile terminal. The method for generating the touch state of the mobile terminal is obtained by acquiring the screen touch state and the grip state of the mobile terminal, and when the screen touch state is that the screen is touched. The alarm control command corresponding to the state is controlled, and the alarm clock is controlled according to the alarm control command, thereby realizing simple, convenient and fast operation of closing and delaying the alarm of the mobile terminal.
基于上述实施例相同的技术构思,参见图4,其示出了本发明实施例提供的一种移动终端40,所述移动终端40可以包括:获取单元401、生成单元402和控制单元403,其中,Based on the same technical concept of the above embodiment, referring to FIG. 4, a mobile terminal 40 according to an embodiment of the present invention is shown. The mobile terminal 40 may include: an obtaining unit 401, a generating unit 402, and a control unit 403, where ,
所述获取单元401,配置为当移动终端40的闹钟响铃时,获取所述移动终端的第一状态和第二状态;The acquiring unit 401 is configured to acquire a first state and a second state of the mobile terminal when an alarm of the mobile terminal 40 rings;
所述生成单元402,配置为当所述获取单元401获取的所述第一状态满足预设的第一操作条件时,根据所述第二状态生成与第二状态对应的闹铃 控制指令;The generating unit 402 is configured to generate an alarm corresponding to the second state according to the second state when the first state acquired by the acquiring unit 401 satisfies a preset first operating condition Control instruction;
所述控制单元403,配置为根据所述生成单元402生成的所述闹钟控制指令对所述闹钟进行控制。The control unit 403 is configured to control the alarm according to the alarm control command generated by the generating unit 402.
示例性地,所述获取单元401,还配置为:Exemplarily, the obtaining unit 401 is further configured to:
每隔第一时间段T1获取一次第一传感器上传的第一传感电信号,并根据所述第一传感电信号获取所述移动终端40的第一状态;以及,Acquiring the first sensing electrical signal uploaded by the first sensor once every first time period T1, and acquiring the first state of the mobile terminal 40 according to the first sensing electrical signal;
每隔第二时间段T2获取一次第二传感器上传的第二传感电信号,并根据所述第二传感电信号获取所述移动终端40的第二状态。The second sensing electrical signal uploaded by the second sensor is acquired every second time period T2, and the second state of the mobile terminal 40 is acquired according to the second sensing electrical signal.
示例性地,参见图5,其示出了本发明实施例提供的一种生成单元402,所述生成单元402可以包括:判断子单元4021和生成子单元4022,Illustratively, referring to FIG. 5, a generating unit 402 is provided according to an embodiment of the present invention. The generating unit 402 may include: a determining subunit 4021 and a generating subunit 4022.
所述判断子单元4021,配置为当所述第一状态满足预设的所述第一操作条件时,判断所述第二状态是否满足第二操作条件;The determining sub-unit 4021 is configured to determine whether the second state satisfies the second operating condition when the first state meets the preset first operating condition;
所述生成子单元4022,配置为当所述判断子单元4021判断所述第二状态满足所述第二操作条件时,生成闹钟延时指令,所述延时指令用于指示所述闹钟暂停响铃并在预设的延时时间之后再次响铃;以及,The generating sub-unit 4022 is configured to generate an alarm delay command when the determining sub-unit 4021 determines that the second state meets the second operating condition, where the delay instruction is used to indicate that the alarm is paused Ring and ring again after a preset delay time; and,
当所述判断子单元4021判断所述第二状态不满足所述第二操作条件时,生成闹钟关闭指令,所述关闭指令用于指示所述闹钟关闭响铃。When the determining subunit 4021 determines that the second state does not satisfy the second operating condition, an alarm closing command is generated, and the closing instruction is used to instruct the alarm to turn off the ringing.
可选地,在本发明实施例中,所述第一状态可以是移动终端40的屏幕触摸状态,所述第二状态可以是移动终端40的晃动状态,所述获取单元401还配置为:Optionally, in the embodiment of the present invention, the first state may be a screen touch state of the mobile terminal 40, the second state may be a sway state of the mobile terminal 40, and the acquiring unit 401 is further configured to:
当所述移动终端40的闹钟响铃时,所述获取单元401每隔第一时间段T1获取一次所述移动终端40屏幕的触摸信号,并根据所述触摸信号获取所述移动终端40的屏幕触摸状态;以及,When the alarm of the mobile terminal 40 is ringing, the acquiring unit 401 acquires the touch signal of the screen of the mobile terminal 40 once every first time period T1, and acquires the screen of the mobile terminal 40 according to the touch signal. Touch state; and,
每隔第二时间段T2获取一次加速度传感器上传的加速度,并根据所述加速度获取所述移动终端40的晃动状态。 The acceleration uploaded by the acceleration sensor is acquired every second time period T2, and the shaking state of the mobile terminal 40 is acquired according to the acceleration.
相应地,所述生成单元402包括的所述判断子单元4021还配置为:Correspondingly, the determining subunit 4021 included in the generating unit 402 is further configured to:
当所述获取单元401获取所述移动终端40的屏幕触摸状态为屏幕被触摸时,所述判断子单元4021判断所述移动终端40的加速度是否大于预设的加速度阈值;When the acquiring unit 401 acquires the screen touch state of the mobile terminal 40 that the screen is touched, the determining subunit 4021 determines whether the acceleration of the mobile terminal 40 is greater than a preset acceleration threshold;
当所述加速度大于所述预设的加速度阈值时,所述判断子单元4021判断所述移动终端40的晃动状态为被晃动状态;When the acceleration is greater than the preset acceleration threshold, the determining subunit 4021 determines that the shaking state of the mobile terminal 40 is a swayed state;
当所述加速度不大于所述预设的加速度阈值时,所述判断子单元4021判断所述移动终端40的晃动状态为无晃动状态;When the acceleration is not greater than the preset acceleration threshold, the determining subunit 4021 determines that the shaking state of the mobile terminal 40 is a non-sloshing state;
相应地,所述生成子单元4022还配置为:Correspondingly, the generating subunit 4022 is further configured to:
当所述判断子单元4021判断所述移动终端40的晃动状态为被晃动状态时,所述生成子单元4022生成闹钟延时指令;When the determining subunit 4021 determines that the shaking state of the mobile terminal 40 is a swaying state, the generating subunit 4022 generates an alarm delay instruction;
当所述判断子单元4021判断所述移动终端40的晃动状态为无晃动状态时,所述生成子单元4022生成闹钟关闭指令。When the determining sub-unit 4021 determines that the shaking state of the mobile terminal 40 is a no-sloshing state, the generating sub-unit 4022 generates an alarm-off command.
可选地,在本发明实施例中,所述第一状态还可以是所述移动终端40的屏幕触摸状态,第二状态还可以是所述移动终端40的握持状态,所述获取单元401还配置为:Optionally, in the embodiment of the present invention, the first state may also be a screen touch state of the mobile terminal 40, and the second state may also be a holding state of the mobile terminal 40, and the acquiring unit 401 Also configured as:
当所述移动终端40的闹钟响铃时,所述获取单元401每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端40的屏幕触摸状态;以及,When the alarm of the mobile terminal 40 is ringing, the acquiring unit 401 acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal 40 according to the touch signal;
每隔第二时间段T2获取一次压力传感器上传的压力,并根据所述压力获取所述移动终端40的晃动状态。The pressure uploaded by the pressure sensor is acquired every second time period T2, and the shaking state of the mobile terminal 40 is acquired according to the pressure.
所述生成单元402包括的所述判断子单元4021还配置为:The determining subunit 4021 included in the generating unit 402 is further configured to:
当所述获取单元401获取所述移动终端40的屏幕触摸状态为屏幕被触摸时,所述判断子单元4021判断所述压力传感器上传的压力是否大于预设的压力阈值; When the acquiring unit 401 acquires the screen touch state of the mobile terminal 40 that the screen is touched, the determining subunit 4021 determines whether the pressure uploaded by the pressure sensor is greater than a preset pressure threshold;
当所述压力大于所述预设的压力阈值时,所述判断子单元4021判断所述移动终端40的握持状态为手握状态;When the pressure is greater than the preset pressure threshold, the determining subunit 4021 determines that the holding state of the mobile terminal 40 is a hand holding state;
当所述压力不大于所述预设的压力阈值时,所述判断子单元4021判断所述移动终端40的握持状态为非手握状态;When the pressure is not greater than the preset pressure threshold, the determining subunit 4021 determines that the holding state of the mobile terminal 40 is a non-hand grip state;
相应地,所述生成单元402包括的所述生成子单元4022还配置为:Correspondingly, the generating subunit 4022 included in the generating unit 402 is further configured to:
当所述判断子单元4021判断所述移动终端40的握持状态为手握状态时,所述生成子单元4022生成闹钟延时指令;When the determining subunit 4021 determines that the holding state of the mobile terminal 40 is the hand holding state, the generating subunit 4022 generates an alarm delay instruction;
当所述判断子单元4021判断所述移动终端40的晃握持状态为非手握状态时,所述生成子单元4022生成闹钟关闭指令。When the judging subunit 4021 determines that the wob holding state of the mobile terminal 40 is a non-hand grip state, the generating subunit 4022 generates an alarm closing command.
可选地,参见图5,其示出了本发明实施例提供的一种移动终端40,所述移动终端40还可以包括:接收单元404和设置单元405,其中,Optionally, referring to FIG. 5, a mobile terminal 40 according to an embodiment of the present invention is shown, where the mobile terminal 40 further includes: a receiving unit 404 and a setting unit 405, where
所述接收单元404,配置为接收包括所述闹钟的响铃时刻和所述闹钟的延时时间的设置指令;The receiving unit 404 is configured to receive a setting instruction including a ringing moment of the alarm clock and a delay time of the alarm clock;
所述设置单元405,配置为按照所述接收单元404接收的所述设置指令对所述闹钟进行设置。The setting unit 405 is configured to set the alarm according to the setting instruction received by the receiving unit 404.
本发明实施例提供了一种移动终端40,通过获取移动终端的第一状态和第二状态,并在第一状态满足预设的第一操作条件时,根据第二状态生成与第二状态对应的闹铃控制指令并根据所述闹钟控制指令对所述闹钟进行控制,从而实现了对移动终端闹钟关闭和延时的简单、方便、快捷操作。The embodiment of the present invention provides a mobile terminal 40, which acquires a first state and a second state of the mobile terminal, and generates a second state according to the second state when the first state meets the preset first operating condition. The alarm control command controls the alarm clock according to the alarm control command, thereby realizing simple, convenient and fast operation of closing and delaying the alarm of the mobile terminal.
本发明实施例还记载了一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行前述各实施例的移动终端闹钟控制的方法。The embodiment of the invention further describes a storage medium in which a computer program is stored, the computer program being configured to perform the method of controlling the alarm of the mobile terminal of the foregoing embodiments.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其 中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention may be employed in one or more of its A computer program product embodied on a computer usable storage medium (including but not limited to disk storage and optical storage, etc.) containing computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明通过获取移动终端的第一状态和第二状态,并在第一状态满足预设的第一操作条件时,根据第二状态生成与第二状态对应的闹铃控制指令,并根据所述闹钟控制指令对所述闹钟进行控制,使得对移动终端闹钟 关闭和延时的操作更简单、方便、快捷。 The invention obtains the first state and the second state of the mobile terminal, and when the first state meets the preset first operating condition, generates an alarm control instruction corresponding to the second state according to the second state, and according to the The alarm control command controls the alarm clock to make an alarm to the mobile terminal The operation of closing and delaying is simpler, more convenient and faster.

Claims (17)

  1. 一种移动终端闹钟控制的方法,包括:A method for controlling an alarm of a mobile terminal, comprising:
    移动终端的闹钟响铃时,所述移动终端获取所述移动终端的第一状态和第二状态;When the alarm of the mobile terminal rings, the mobile terminal acquires the first state and the second state of the mobile terminal;
    当所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令;When the first state meets a preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state;
    所述移动终端根据所述闹钟控制指令对所述闹钟进行控制。The mobile terminal controls the alarm clock according to the alarm control command.
  2. 根据权利要求1所述的方法,其中,所述移动终端获取所述终端的第一状态和第二状态,包括:The method of claim 1, wherein the acquiring, by the mobile terminal, the first state and the second state of the terminal comprises:
    所述移动终端每隔第一时间段T1获取一次第一传感器上传的第一传感电信号,并根据所述第一传感电信号获取所述移动终端的第一状态;The mobile terminal acquires the first sensing electrical signal uploaded by the first sensor once every first time period T1, and acquires the first state of the mobile terminal according to the first sensing electrical signal;
    所述移动终端每隔第二时间段T2获取一次第二传感器上传的第二传感电信号,并根据所述第二传感电信号获取所述移动终端的第二状态。The mobile terminal acquires the second sensing electrical signal uploaded by the second sensor once every second time period T2, and acquires the second state of the mobile terminal according to the second sensing electrical signal.
  3. 根据权利要求1所述的方法,其中,所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令,包括:The method of claim 1, wherein when the first state meets a preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state, including:
    当所述第一状态满足预设的所述第一操作条件时,所述移动终端判断所述第二状态是否满足第二操作条件;When the first state meets the preset first operating condition, the mobile terminal determines whether the second state satisfies a second operating condition;
    当所述第二状态满足所述第二操作条件时,所述移动终端生成闹钟延时指令,所述延时指令用于指示所述闹钟暂停响铃并在预设的延时时间之后再次响铃;When the second state satisfies the second operating condition, the mobile terminal generates an alarm delay command, the delay instruction is used to indicate that the alarm pauses ringing and rings again after a preset delay time bell;
    当所述第二状态不满足所述第二操作条件时,所述移动终端生成闹钟关闭指令,所述关闭指令用于指示所述闹钟关闭响铃。When the second state does not satisfy the second operating condition, the mobile terminal generates an alarm shutdown command, the shutdown command is used to instruct the alarm to turn off the ringing.
  4. 根据权利要求1所述的方法,其中,所述移动终端获取所述移动终端的第一状态和第二状态,具体包括: The method of claim 1, wherein the acquiring, by the mobile terminal, the first state and the second state of the mobile terminal comprises:
    所述移动终端的闹钟响铃时,所述移动终端每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;When the alarm of the mobile terminal is ringing, the mobile terminal acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal according to the touch signal;
    所述移动终端每隔第二时间段T2获取一次加速度传感器上传的加速度,并根据所述加速度获取所述移动终端的晃动状态。The mobile terminal acquires the acceleration uploaded by the acceleration sensor once every second time period T2, and acquires the shaking state of the mobile terminal according to the acceleration.
  5. 根据权利要求4所述的方法,其中,所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令,包括:The method of claim 4, wherein when the first state meets a preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state, including:
    当所述移动终端获取所述移动终端的屏幕触摸状态为屏幕被触摸状态时,所述移动终端判断所述移动终端的加速度是否大于预设的加速度阈值;When the mobile terminal acquires a screen touch state of the mobile terminal as a screen touched state, the mobile terminal determines whether the acceleration of the mobile terminal is greater than a preset acceleration threshold;
    当所述加速度大于所述预设的加速度阈值时,所述移动终端判断所述移动终端的晃动状态为被晃动状态,所述移动终端生成闹钟延时指令;When the acceleration is greater than the preset acceleration threshold, the mobile terminal determines that the sway state of the mobile terminal is a sway state, and the mobile terminal generates an alarm delay instruction;
    当所述加速度不大于所述预设的加速度阈值时,所述移动终端判断所述移动终端的晃动状态为无晃动状态,所述移动终端生成闹钟关闭指令。When the acceleration is not greater than the preset acceleration threshold, the mobile terminal determines that the shaking state of the mobile terminal is a non-sloshing state, and the mobile terminal generates an alarm closing command.
  6. 根据权利要求1所述的方法,其中,所述移动终端获取所述移动终端的第一状态和第二状态,具体包括:The method of claim 1, wherein the acquiring, by the mobile terminal, the first state and the second state of the mobile terminal comprises:
    所述移动终端的闹钟响铃时,所述移动终端每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;When the alarm of the mobile terminal is ringing, the mobile terminal acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal according to the touch signal;
    所述移动终端每隔第二时间段T2获取一次压力传感器上传的压力,并根据所述压力获取所述移动终端的握持状态。The mobile terminal acquires the pressure uploaded by the pressure sensor every second time period T2, and acquires the holding state of the mobile terminal according to the pressure.
  7. 根据权利要求6所述的方法,其中,所述第一状态满足预设的第一操作条件时,所述移动终端根据所述第二状态生成与第二状态对应的闹铃控制指令,包括:The method of claim 6, wherein when the first state meets the preset first operating condition, the mobile terminal generates an alarm control instruction corresponding to the second state according to the second state, including:
    当所述移动终端根据所述触摸信号确定所述移动终端的屏幕触摸状态 为屏幕被触摸状态时,所述移动终端判断所述压力传感器上传的压力是否大于预设的压力阈值;Determining, when the mobile terminal, the screen touch status of the mobile terminal according to the touch signal When the screen is touched, the mobile terminal determines whether the pressure uploaded by the pressure sensor is greater than a preset pressure threshold;
    当所述压力大于所述预设的压力阈值时,所述移动终端判断所述移动终端的握持状态为手握状态,所述移动终端生成闹钟延时指令;When the pressure is greater than the preset pressure threshold, the mobile terminal determines that the holding state of the mobile terminal is a hand holding state, and the mobile terminal generates an alarm clock delay instruction;
    当所述压力不大于所述预设加速度阈值时,所述移动终端判断所述移动终端的握持状态为非手握状态,所述移动终端生成闹钟关闭指令。When the pressure is not greater than the preset acceleration threshold, the mobile terminal determines that the holding state of the mobile terminal is a non-hand grip state, and the mobile terminal generates an alarm shutdown command.
  8. 根据权利要求1所述的方法,其中,在所述移动终端的闹钟响铃前,所述方法还包括:The method of claim 1, wherein before the alarm of the mobile terminal rings, the method further comprises:
    所述移动终端接收包括所述闹钟的响铃时刻和所述闹钟的延时时间的设置指令,并按照所述设置指令对所述闹钟进行设置。The mobile terminal receives a setting instruction including a ringing time of the alarm clock and a delay time of the alarm clock, and setting the alarm clock according to the setting instruction.
  9. 一种移动终端,包括:获取单元、生成单元和控制单元,其中,A mobile terminal includes: an obtaining unit, a generating unit, and a control unit, where
    所述获取单元,配置为当移动终端的闹钟响铃时,获取所述移动终端的第一状态和第二状态;The acquiring unit is configured to acquire a first state and a second state of the mobile terminal when an alarm of the mobile terminal rings;
    所述生成单元,配置为当所述获取单元获取的所述第一状态满足预设的第一操作条件时,根据所述第二状态生成与第二状态对应的闹铃控制指令;The generating unit is configured to generate an alarm control instruction corresponding to the second state according to the second state when the first state acquired by the acquiring unit meets a preset first operating condition;
    所述控制单元,配置为根据所述生成单元生成的所述闹钟控制指令对所述闹钟进行控制。The control unit is configured to control the alarm clock according to the alarm control command generated by the generating unit.
  10. 根据权利要求9所述的移动终端,其中,所述获取单元还配置为,The mobile terminal of claim 9, wherein the obtaining unit is further configured to:
    每隔第一时间段T1获取一次第一传感器上传的第一传感电信号,并根据所述第一传感电信号获取所述移动终端的第一状态;以及,Acquiring the first sensing electrical signal uploaded by the first sensor once every first time period T1, and acquiring the first state of the mobile terminal according to the first sensing electrical signal; and
    每隔第二时间段T2获取一次第二传感器上传的第二传感电信号,并根据所述第二传感电信号获取所述移动终端的第二状态。And acquiring, by the second time period T2, the second sensing electrical signal uploaded by the second sensor, and acquiring the second state of the mobile terminal according to the second sensing electrical signal.
  11. 根据权利要求9所述的移动终端,其中,所述生成单元包括判断子单元和生成子单元, The mobile terminal of claim 9, wherein the generating unit comprises a determining subunit and a generating subunit,
    所述判断子单元,配置为当所述第一状态满足预设的所述第一操作条件时,判断所述第二状态是否满足第二操作条件;The determining subunit is configured to determine whether the second state satisfies the second operating condition when the first state satisfies the preset first operating condition;
    所述生成子单元,配置为当所述判断子单元判断所述第二状态满足所述第二操作条件时,生成闹钟延时指令,所述延时指令用于指示所述闹钟暂停响铃并在预设的延时时间之后再次响铃;The generating subunit is configured to generate an alarm delay instruction when the determining subunit determines that the second state satisfies the second operating condition, where the delay instruction is used to indicate that the alarm is paused and Ring again after the preset delay time;
    所述生成子单元,还配置为当所述判断子单元判断所述第二状态不满足所述第二操作条件时,生成闹钟关闭指令,所述关闭指令用于指示所述闹钟关闭响铃。The generating subunit is further configured to generate an alarm closing command when the determining subunit determines that the second state does not satisfy the second operating condition, and the closing instruction is used to instruct the alarm to turn off the ringing.
  12. 根据权利要求9所述的移动终端,其中,所述获取单元还配置为:The mobile terminal of claim 9, wherein the obtaining unit is further configured to:
    当所述移动终端的闹钟响铃时,所述获取单元每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;When the alarm of the mobile terminal is ringing, the acquiring unit acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal according to the touch signal;
    所述获取单元,还配置为每隔第二时间段T2获取一次加速度传感器上传的加速度,并根据所述加速度获取所述移动终端的晃动状态。The acquiring unit is further configured to acquire the acceleration uploaded by the acceleration sensor once every second time period T2, and acquire the shaking state of the mobile terminal according to the acceleration.
  13. 根据权利要求12所述的移动终端,其中,所述生成单元还包括判断子单元和生成子单元,The mobile terminal of claim 12, wherein the generating unit further comprises a determining subunit and a generating subunit,
    所述判断子单元,配置为当所述获取单元获取所述移动终端的屏幕触摸状态为屏幕被触摸状态时,所述判断子单元判断所述移动终端的加速度是否大于预设的加速度阈值;当所述加速度大于所述预设的加速度阈值时,所述判断子单元判断所述移动终端的晃动状态为被晃动状态;当所述加速度不大于所述预设的加速度阈值时,所述判断子单元判断所述移动终端的晃动状态为无晃动状态;The determining subunit is configured to determine, when the acquiring unit acquires a screen touch state of the mobile terminal, that the screen is touched, the determining subunit determining whether the acceleration of the mobile terminal is greater than a preset acceleration threshold; When the acceleration is greater than the preset acceleration threshold, the determining subunit determines that the shaking state of the mobile terminal is a swayed state; when the acceleration is not greater than the preset acceleration threshold, the determining sub The unit determines that the shaking state of the mobile terminal is a non-sloshing state;
    所述生成子单元,配置为当所述判断子单元判断所述移动终端的晃动状态为被晃动状态时,生成闹钟延时指令;当所述判断子单元判断所述移动终端的晃动状态为无晃动状态时,生成闹钟关闭指令。 The generating subunit is configured to generate an alarm time delay instruction when the determining subunit determines that the shaking state of the mobile terminal is a swaying state; and when the determining subunit determines that the shaking state of the mobile terminal is none When the state is shaken, an alarm off command is generated.
  14. 根据权利要求9所述的移动终端,其中,所述获取单元还配置为:The mobile terminal of claim 9, wherein the obtaining unit is further configured to:
    当所述移动终端的闹钟响铃时,所述获取单元每隔第一时间段T1获取一次屏幕的触摸信号,并根据所述触摸信号获取所述移动终端的屏幕触摸状态;以及,When the alarm of the mobile terminal is ringing, the acquiring unit acquires a touch signal of the screen once every first time period T1, and acquires a screen touch state of the mobile terminal according to the touch signal; and
    每隔第二时间段T2获取一次压力传感器上传的压力,并根据所述压力获取所述移动终端的晃动状态。The pressure uploaded by the pressure sensor is acquired every second time period T2, and the shaking state of the mobile terminal is acquired according to the pressure.
  15. 根据权利要求14所述的移动终端,其中,所述生成单元还包括判断子单元和生成子单元,The mobile terminal of claim 14, wherein the generating unit further comprises a determining subunit and a generating subunit,
    所述判断子单元,配置为当所述获取单元获取所述移动终端的屏幕触摸状态为屏幕被触摸时,所述判断子单元判断所述压力传感器上传的压力是否大于预设的压力阈值;当所述压力大于所述预设的压力阈值时,所述判断子单元判断所述移动终端的握持状态为手握状态;当所述压力不大于所述预设的压力阈值时,所述判断子单元判断所述移动终端的握持状态为非手握状态;The determining subunit is configured to determine, when the acquiring unit acquires a screen touch state of the mobile terminal that the screen is touched, the determining subunit determines whether the pressure uploaded by the pressure sensor is greater than a preset pressure threshold; When the pressure is greater than the preset pressure threshold, the determining subunit determines that the holding state of the mobile terminal is a hand holding state; when the pressure is not greater than the preset pressure threshold, the determining The subunit determines that the holding state of the mobile terminal is a non-hand grip state;
    所述生成子单元,配置为当所述判断子单元判断所述移动终端的握持状态为手握状态时,生成闹钟延时指令;当所述判断子单元判断所述移动终端的握持状态为非手握状态时,生成闹钟关闭指令。The generating subunit is configured to generate an alarm time delay instruction when the determining subunit determines that the holding state of the mobile terminal is a hand holding state; and when the determining subunit determines the holding state of the mobile terminal When the state is not held, an alarm off command is generated.
  16. 根据权利要求9所述移动终端,其中,所述移动终端还包括:接收单元和设置单元,其中,The mobile terminal according to claim 9, wherein the mobile terminal further comprises: a receiving unit and a setting unit, wherein
    所述接收单元,配置为接收包括所述闹钟的响铃时刻和所述闹钟的延时时间的设置指令;The receiving unit is configured to receive a setting instruction including a ringing moment of the alarm clock and a delay time of the alarm clock;
    所述设置单元,配置为按照所述接收单元接收的所述设置指令对所述闹钟进行设置。The setting unit is configured to set the alarm clock according to the setting instruction received by the receiving unit.
  17. 一种存储介质,所述存储介质中存储有计算机程序,所述计算机程序配置为执行权利要求1至8任一项所述的移动终端闹钟控制的方法。 A storage medium storing a computer program configured to perform the method of controlling alarm of a mobile terminal according to any one of claims 1 to 8.
PCT/CN2015/070931 2014-09-28 2015-01-16 Method and device for controlling alarm clock of mobile terminal, and storage medium WO2015131676A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410510683.5 2014-09-28
CN201410510683.5A CN105450844A (en) 2014-09-28 2014-09-28 Method and device for controlling mobile terminal alarm clock

Publications (1)

Publication Number Publication Date
WO2015131676A1 true WO2015131676A1 (en) 2015-09-11

Family

ID=54054528

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/070931 WO2015131676A1 (en) 2014-09-28 2015-01-16 Method and device for controlling alarm clock of mobile terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN105450844A (en)
WO (1) WO2015131676A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019071501A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Alarm processing method and device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107306310A (en) * 2016-04-25 2017-10-31 中兴通讯股份有限公司 A kind of information processing method and terminal device
CN106453958A (en) * 2016-11-30 2017-02-22 努比亚技术有限公司 Alarm clock control terminal and method
CN107135311B (en) * 2017-05-24 2020-05-26 广东小天才科技有限公司 Alarm clock starting method and device of mobile terminal
WO2019071479A1 (en) * 2017-10-11 2019-04-18 深圳传音通讯有限公司 Alarm clock reminding method and alarm clock reminding system for intelligent terminal
CN113014726B (en) * 2021-02-20 2022-08-12 Oppo广东移动通信有限公司 Alarm clock prompting method, mobile terminal, control device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295165A (en) * 2007-04-23 2008-10-29 联发科技股份有限公司 Methods and systems for controlling alarm clocks
JP2009210439A (en) * 2008-03-04 2009-09-17 Sharp Corp Alarm clock system, portable communication apparatus, method of controlling alarm clock system, control program of alarm click system, and recoding medium with control program of alarm clock system recorded thereon
CN102231774A (en) * 2011-06-20 2011-11-02 惠州Tcl移动通信有限公司 Mobile phone alarm clock control method and mobile phone
CN102385308A (en) * 2010-09-06 2012-03-21 英业达股份有限公司 Portable electronic device and operating method thereof
CN103501389A (en) * 2013-09-28 2014-01-08 深圳市金立通信设备有限公司 Method and terminal for turning off alarm

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404455A (en) * 2011-11-18 2012-04-04 广东步步高电子工业有限公司 Alarm clock control method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101295165A (en) * 2007-04-23 2008-10-29 联发科技股份有限公司 Methods and systems for controlling alarm clocks
JP2009210439A (en) * 2008-03-04 2009-09-17 Sharp Corp Alarm clock system, portable communication apparatus, method of controlling alarm clock system, control program of alarm click system, and recoding medium with control program of alarm clock system recorded thereon
CN102385308A (en) * 2010-09-06 2012-03-21 英业达股份有限公司 Portable electronic device and operating method thereof
CN102231774A (en) * 2011-06-20 2011-11-02 惠州Tcl移动通信有限公司 Mobile phone alarm clock control method and mobile phone
CN103501389A (en) * 2013-09-28 2014-01-08 深圳市金立通信设备有限公司 Method and terminal for turning off alarm

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019071501A1 (en) * 2017-10-12 2019-04-18 深圳传音通讯有限公司 Alarm processing method and device

Also Published As

Publication number Publication date
CN105450844A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
WO2015131676A1 (en) Method and device for controlling alarm clock of mobile terminal, and storage medium
EP3695300B1 (en) Managing and mapping multi-sided touch
KR102189612B1 (en) Memory management for application loading
US20220035402A1 (en) Enhanced application preview mode
US10423235B2 (en) Primary device that interfaces with a secondary device based on gesture commands
US10459887B1 (en) Predictive application pre-launch
TWI573074B (en) Method and apparatus for providing access to functions from a locked screen, and related computer program product
US9781252B2 (en) Information processing method, system and mobile terminal
US10191603B2 (en) Information processing device and information processing method
TW201331825A (en) Apparatus and method for providing a visual transition between screens
US9338340B2 (en) Launching a camera of a wireless device from a wearable device
WO2017020477A1 (en) Application uninstallation method and apparatus
WO2015131550A1 (en) Method and apparatus for controlling player to enter sleep mode and terminal device
WO2017201891A1 (en) Method and apparatus for controlling state of touch control screen, and electronic device
WO2016179912A1 (en) Application program control method and apparatus, and mobile terminal
WO2017166604A1 (en) Music control method, terminal, electronic device, and storage medium
EP2765482A1 (en) Handheld electronic apparatus and operation method thereof
WO2016173300A1 (en) Electronic device alarm clock reminder method and system, electronic device and terminal
US9106820B1 (en) Multi-stage trigger for capturing video images
US9417667B2 (en) Methods and devices for touchscreen eavesdropping prevention
US20190260864A1 (en) Screen Locking Method, Terminal, and Screen Locking Apparatus
CN111240571A (en) Method and device for controlling screen to automatically rotate and terminal
WO2017012205A1 (en) Method and device for controlling screen, terminal, and storage medium
WO2016037410A1 (en) Interface control method and apparatus, and terminal
US20150160777A1 (en) Information processing method and electronic device

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

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

Country of ref document: EP

Kind code of ref document: A1