WO2019000467A1 - Alarm clock prompt method and apparatus, storage medium, and electronic device - Google Patents

Alarm clock prompt method and apparatus, storage medium, and electronic device Download PDF

Info

Publication number
WO2019000467A1
WO2019000467A1 PCT/CN2017/091379 CN2017091379W WO2019000467A1 WO 2019000467 A1 WO2019000467 A1 WO 2019000467A1 CN 2017091379 W CN2017091379 W CN 2017091379W WO 2019000467 A1 WO2019000467 A1 WO 2019000467A1
Authority
WO
WIPO (PCT)
Prior art keywords
alarm
control
time
controlling
threshold
Prior art date
Application number
PCT/CN2017/091379
Other languages
French (fr)
Chinese (zh)
Inventor
梁昆
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to PCT/CN2017/091379 priority Critical patent/WO2019000467A1/en
Publication of WO2019000467A1 publication Critical patent/WO2019000467A1/en

Links

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; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones

Abstract

Disclosed in the present invention are an alarm clock prompt method and apparatus, a storage medium, and an electronic device. The method comprises: obtaining first control information for controlling a first alarm clock at a first prompt time, the first control information comprising turn-off information for controlling the first alarm clock; obtaining feature information of the first alarm clock during the turn-off process; generating a control threshold according to the turn-off information and the feature information; if the control threshold is less than a preset threshold, controlling a second alarm clock to be in a turn-off state; and if the control threshold is greater than or equal to the preset threshold, controlling the second alarm clock to be in a turn-on state.

Description

闹钟提醒方法、装置、存储介质及电子设备 Alarm reminder method, device, storage medium and electronic device 技术领域Technical field

本发明涉及移动设备技术领域,具体涉及一种闹钟提醒方法、装置、存储介质及电子设备。The present invention relates to the field of mobile device technologies, and in particular, to an alarm clock reminding method, device, storage medium, and electronic device.

背景技术Background technique

随着电子设备技术的快速发展,电子设备的功能越来越多。比如,使用闹钟应用程序在电子设备上进行提醒等。With the rapid development of electronic device technology, the functions of electronic devices are increasing. For example, use the alarm clock app to alert on an electronic device.

通常,电子设备端的闹钟根据预设的时刻进行提醒。但是,若用户在闹钟提醒的时刻之前已经起床,此时无需再进行提醒,而闹钟在到达预设的时刻时依然会进行提醒,浪费电子设备电量。Usually, the alarm clock on the electronic device side is reminded according to the preset time. However, if the user has already gotten up before the time of the alarm reminder, there is no need to remind the user at this time, and the alarm will still be reminded when the preset time is reached, which wastes the power of the electronic device.

技术问题technical problem

本发明实施例提供一种闹钟提醒方法、装置、存储介质及电子设备,可以节省电子设备电量。The embodiment of the invention provides an alarm clock reminding method, device, storage medium and electronic device, which can save power of the electronic device.

技术解决方案Technical solution

第一方面,本发明实施例提供一种闹钟提醒方法,其包括:In a first aspect, an embodiment of the present invention provides an alarm clock reminding method, including:

获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;

获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;

根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;

若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;

若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.

第二方面,本发明实施例还提供一种闹钟提醒装置,其包括:In a second aspect, an embodiment of the present invention further provides an alarm reminder device, including:

第二获取模块,用于获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;a second acquiring module, configured to acquire first control information that controls the first alarm clock at the first reminding moment, where the first control information includes: controlling the closing information of the first alarm clock;

第三获取模块,用于获取所述第一闹钟在关闭过程中的特征信息;a third acquiring module, configured to acquire feature information of the first alarm clock during the closing process;

第二生成模块,用于根据所述关闭信息和所述特征信息生成控制阈值;a second generating module, configured to generate a control threshold according to the closing information and the feature information;

第二控制模块,用于若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;a second control module, configured to control the second alarm to be in a closed state if the control threshold is less than a preset threshold;

所述第二控制模块,还用于若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the control threshold is greater than or equal to the preset threshold.

第三方面,本发明实施例还提供一种存储介质,所述存储介质中存储有多条指令,所述指令适于由处理器加载以执行如上所述的闹钟提醒方法。In a third aspect, an embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform an alarm reminder method as described above.

第四方面,本发明实施例还提供一种电子设备,所述电子设备包括处理器和存储器,所述处理器和所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行如上所述的闹钟提醒方法。In a fourth aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, the processor and the memory are electrically connected, and the memory is used to store instructions and data, and the processing The device is used to perform the alarm reminder method as described above.

有益效果 Beneficial effect

本发明实施例提供一种闹钟提醒方法、装置、存储介质及电子设备,可以节省电子设备电量。The embodiment of the invention provides an alarm clock reminding method, device, storage medium and electronic device, which can save power of the electronic device.

附图说明DRAWINGS

图1为本发明实施例提供的闹钟提醒方法的场景示意图。FIG. 1 is a schematic diagram of a scenario of an alarm reminder method according to an embodiment of the present invention.

图2为本发明实施例提供的闹钟提醒方法的另一场景示意图。FIG. 2 is another schematic diagram of an alarm clock reminding method according to an embodiment of the present invention.

图3为本发明实施例提供的闹钟提醒方法的流程示意图。FIG. 3 is a schematic flowchart diagram of an alarm reminding method according to an embodiment of the present invention.

图4为本发明实施例提供的电子设备和用户交互的场景示意图。FIG. 4 is a schematic diagram of a scenario in which an electronic device interacts with a user according to an embodiment of the present invention.

图5为本发明实施例提供的闹钟提醒方法的另一流程示意图。FIG. 5 is another schematic flowchart of an alarm clock reminding method according to an embodiment of the present invention.

图6为本发明实施例提供的闹钟提醒方法的又一场景示意图。FIG. 6 is still another schematic diagram of an alarm clock reminding method according to an embodiment of the present invention.

图7为本发明实施例提供的电子设备中第一闹钟检测电子设备是否被触发的示意图。FIG. 7 is a schematic diagram of whether an first alarm clock detecting electronic device is triggered in an electronic device according to an embodiment of the present invention.

图8为本发明实施例提供的电子设备的界面示意图。FIG. 8 is a schematic diagram of an interface of an electronic device according to an embodiment of the present invention.

图9为本发明实施例提供的闹钟提醒装置的结构示意图。FIG. 9 is a schematic structural diagram of an alarm reminder device according to an embodiment of the present invention.

图10为本发明实施例提供的闹钟提醒装置的另一结构示意图。FIG. 10 is another schematic structural diagram of an alarm reminder device according to an embodiment of the present invention.

图11为本发明实施例提供的闹钟提醒装置的又一结构示意图。FIG. 11 is still another schematic structural diagram of an alarm reminder device according to an embodiment of the present invention.

图12为本发明实施例提供的电子设备的结构示意图。FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

图13为本发明实施例提供的电子设备的另一结构示意图。FIG. 13 is another schematic structural diagram of an electronic device according to an embodiment of the present invention.

本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

本发明中的术语“第一”和“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或模块的过程、方法、系统、产品或设备没有限定于已列出的步骤或模块,而是可选地还包括没有列出的步骤或模块,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或模块。The terms "first" and "second" and the like in the present invention are used to distinguish different objects, and are not intended to describe a specific order. Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or modules is not limited to the listed steps or modules, but optionally includes steps or modules not listed, or alternatively Other steps or modules inherent to these processes, methods, products or equipment.

本发明实施例提供了一种闹钟提醒方法、装置、存储介质和电子设备。具体如下:The embodiment of the invention provides an alarm clock reminding method, device, storage medium and electronic device. details as follows:

一种闹钟提醒方法,其包括:An alarm reminder method includes:

获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;

获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;

根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;

若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;

若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;In some embodiments, the control threshold includes a control time for controlling the first alarm to be turned off, and the preset threshold includes a preset time;

所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;If the control time is less than the preset time, controlling the second alarm to be in an off state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。If the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;In some embodiments, the control threshold includes controlling a number of times the first alarm is turned off, and the preset threshold includes a preset number of times;

所述若所述控制阈值小于预设阈值时,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;If the number of times of control is less than a preset number of times, controlling the second alarm to be in a closed state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。If the number of control times is greater than or equal to the preset number of times, controlling the second alarm clock to be in an open state.

在一些实施例中,所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤之前,所述闹钟提醒方法还包括:In some embodiments, the alarm reminder method further includes: if the control threshold is less than a preset threshold, before the step of controlling the second alarm to be in a closed state, the method further includes:

发出语音询问信息;Send a voice inquiry message;

若未接收到语音答复信息,则控制所述第二闹钟处于打开状态。If the voice reply message is not received, the second alarm is controlled to be in an open state.

在一些实施例中,所述发出语音询问信息的步骤之后,所述闹钟提醒方法还包括:In some embodiments, after the step of issuing the voice query information, the alarm clock reminding method further includes:

若接收到所述语音答复信息,则根据所述语音答复信息确定对应的语音指令;And if the voice reply information is received, determining a corresponding voice instruction according to the voice reply information;

根据所述语音指令控制所述第二闹钟。Controlling the second alarm clock according to the voice command.

在一些实施例中,所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤之前,所述闹钟提醒方法还包括:In some embodiments, the alarm reminder method further includes: if the control threshold is less than a preset threshold, before the step of controlling the second alarm to be in a closed state, the method further includes:

获取用户一段历史时段内,控制所述第二闹钟的第二控制信息;Obtaining, by the user, second control information of the second alarm clock during a historical period;

根据所述第二控制信息控制所述第二闹钟。Controlling the second alarm clock according to the second control information.

在一些实施例中,所述获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息的步骤之前,所述闹钟提醒方法还包括:In some embodiments, the acquiring, by the first reminding moment, the first control information of the first alarm clock, where the first control information includes the step of controlling the closing information of the first alarm clock, the alarming alarm method further include:

获取预设时间内电子设备在目标时间段中首次被触发的所有第一时刻;Obtaining all first moments in which the electronic device is triggered for the first time in the target time period within a preset time period;

根据所述第一时刻生成第二时刻,所述第二时刻早于或等于所述第一时刻中最大的时刻;Generating a second time according to the first time, the second time being earlier than or equal to a maximum time of the first time;

当在所述目标时间段中、且在所述第二时刻之前所述电子设备被触发,则控制所述第一闹钟处于关闭状态;Controlling the first alarm clock to be in an off state when the electronic device is triggered in the target time period and before the second time instant;

当在所述目标时间段中、且在所述第二时刻之前所述电子设备未被触发,则将所述第二时刻设定为第一闹钟提醒时刻,到达所述第一闹钟提醒时刻时控制所述第一闹钟处于打开状态。When the electronic device is not triggered in the target time period and before the second time, the second time is set as a first alarm reminding moment, and when the first alarm reminding moment is reached Controlling the first alarm clock to be in an open state.

一种闹钟提醒装置,其包括:An alarm reminder device includes:

第二获取模块,用于获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;a second acquiring module, configured to acquire first control information that controls the first alarm clock at the first reminding moment, where the first control information includes: controlling the closing information of the first alarm clock;

第三获取模块,用于获取所述第一闹钟在关闭过程中的特征信息;a third acquiring module, configured to acquire feature information of the first alarm clock during the closing process;

第二生成模块,用于根据所述关闭信息和所述特征信息生成控制阈值;a second generating module, configured to generate a control threshold according to the closing information and the feature information;

第二控制模块,用于若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;a second control module, configured to control the second alarm to be in a closed state if the control threshold is less than a preset threshold;

所述第二控制模块,还用于若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the control threshold is greater than or equal to the preset threshold.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;In some embodiments, the control threshold includes a control time for controlling the first alarm to be turned off, and the preset threshold includes a preset time;

所述第二控制模块,具体用于若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;The second control module is specifically configured to control the second alarm to be in a closed state if the control time is less than a preset time;

所述第二控制模块,还具体用于若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the control time is greater than or equal to a preset time.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;In some embodiments, the control threshold includes controlling a number of times the first alarm is turned off, and the preset threshold includes a preset number of times;

所述第二控制模块,具体用于若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;The second control module is specifically configured to control the second alarm to be in a closed state if the number of control times is less than a preset number of times;

所述第二控制模块,还具体用于若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the number of control times is greater than or equal to a preset number of times.

在一些实施例中,所述闹钟提醒装置还包括发送模块和接收模块;In some embodiments, the alarm reminder device further includes a sending module and a receiving module;

所述发送模块,用于在所述第一闹钟处于关闭状态,发出语音询问信息;The sending module is configured to send voice inquiry information when the first alarm clock is in a closed state;

所述接收模块,用于接收语音答复信息;The receiving module is configured to receive voice reply information;

所述第二控制模块,还用于若未接收到所述语音答复信息,则控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the voice reply information is not received.

在一些实施例中,所述闹钟提醒装置还包括确认模块;In some embodiments, the alarm reminder device further includes a confirmation module;

所述确定模块,用于若接收到所述语音答复信息,则根据所述语音答复信息确定对应的语音指令;The determining module is configured to: if the voice reply information is received, determine a corresponding voice command according to the voice reply information;

所述第二控制模块,还用于根据所述语音指令控制所述第二闹钟。The second control module is further configured to control the second alarm clock according to the voice instruction.

在一些实施例中,所述闹钟提醒装置还包括第四获取模块;In some embodiments, the alarm reminder device further includes a fourth acquisition module;

所述第四获取模块,用于获取用户一段历史时段内,控制所述第二闹钟的第二控制信息;The fourth acquiring module is configured to acquire second control information of the second alarm clock during a historical period of time;

所述第二控制模块,还用于根据所述第二控制信息控制所述第二闹钟。The second control module is further configured to control the second alarm clock according to the second control information.

在一些实施例中,所述闹钟提醒装置还包括:In some embodiments, the alarm reminder device further includes:

第一获取模块,用于获取预设时间内电子设备在目标时间段中首次被触发的所有第一时刻;a first acquiring module, configured to acquire all first moments that the electronic device is triggered for the first time in the target time period in the preset time period;

第一生成模块,用于根据所述第一时刻生成第二时刻,所述第二时刻早于或等于所述第一时刻中最大的时刻;a first generating module, configured to generate a second time according to the first time, where the second time is earlier than or equal to a maximum time of the first time;

第一控制模块,用于当在所述目标时间段中、且在所述第二时刻之前所述电子设备被触发,则控制所述第一闹钟处于关闭状态;a first control module, configured to control the first alarm clock to be in a closed state when the electronic device is triggered in the target time period and before the second time;

所述第一控制模块,还用于当在所述目标时间段中、且在所述第二时刻之前所述电子设备未被触发,则将所述第二时刻设定为第一闹钟提醒时刻,到达所述第一闹钟提醒时刻时控制所述第一闹钟处于打开状态。The first control module is further configured to set the second time as the first alarm reminding moment when the electronic device is not triggered in the target time period and before the second time And controlling the first alarm clock to be in an open state when the first alarm clock reminding moment is reached.

一种电子设备,其包括处理器和存储器,所述处理器和所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:An electronic device includes a processor and a memory, the processor and the memory are electrically connected, the memory is used to store instructions and data, and the processor is configured to perform the following steps:

获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;

获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;

根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;

若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;

若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;In some embodiments, the control threshold includes a control time for controlling the first alarm to be turned off, and the preset threshold includes a preset time;

所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;If the control time is less than the preset time, controlling the second alarm to be in an off state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。If the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;In some embodiments, the control threshold includes controlling a number of times the first alarm is turned off, and the preset threshold includes a preset number of times;

所述若所述控制阈值小于预设阈值时,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;If the number of times of control is less than a preset number of times, controlling the second alarm to be in a closed state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。If the number of control times is greater than or equal to the preset number of times, controlling the second alarm clock to be in an open state.

一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载,以执行以下步骤:A storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:

获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;

获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;

根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;

若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;

若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;In some embodiments, the control threshold includes a control time for controlling the first alarm to be turned off, and the preset threshold includes a preset time;

所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;If the control time is less than the preset time, controlling the second alarm to be in an off state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。If the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state.

在一些实施例中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;In some embodiments, the control threshold includes controlling a number of times the first alarm is turned off, and the preset threshold includes a preset number of times;

所述若所述控制阈值小于预设阈值时,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;If the number of times of control is less than a preset number of times, controlling the second alarm to be in a closed state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态Controlling the second alarm clock to be turned on if the number of control times is greater than or equal to a preset number of times

请参阅图1,该图1为本发明实施例提供的闹钟提醒方法的场景示意图,该场景可以包括闹钟提醒装置200,该闹钟提醒装置200具体可以集成在平板、PC(个人计算机,Personal Computer)、手机等具备储存单元并安装有微处理器而具有运算能力的电子设备10中,该电子设备10内可以安装有闹钟11等具有提醒功能的应用程序,可以直接将闹钟提醒装置200集成在闹钟11内,也可以将该闹钟提醒装置200集成在电子设备10内。该闹钟提醒装置200主要用于获取在第一提醒时刻控制第一闹钟11的第一控制信息,第一控制信息包括控制第一闹钟11的关闭信息;获取第一闹钟11在关闭过程中的特征信息;根据关闭信息和特征信息生成控制阈值;若控制阈值小于预设阈值,控制第二闹钟12处于关闭状态;若控制阈值大于或等于预设阈值,控制第二闹钟12处于打开状态。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a scene of an alarm reminder method according to an embodiment of the present invention. The scene may include an alarm reminder device 200 , which may be integrated on a tablet or a PC (personal computer, Personal). In an electronic device 10 having a storage unit and a microprocessor and having a computing capability, the electronic device 10 can be equipped with an application program having an alarm function such as an alarm 11 and can directly integrate the alarm reminder device 200. Within the alarm clock 11, the alarm reminder device 200 can also be integrated into the electronic device 10. The alarm reminder device 200 is mainly configured to acquire first control information for controlling the first alarm clock 11 at the first reminding time. The first control information includes: controlling the closing information of the first alarm clock 11; and acquiring the feature of the first alarm clock 11 during the closing process. And generating a control threshold according to the shutdown information and the feature information; if the control threshold is less than the preset threshold, controlling the second alarm 12 to be in a closed state; and if the control threshold is greater than or equal to the preset threshold, controlling the second alarm 12 to be in an open state.

请参阅图2,图2为本发明实施例提供的闹钟提醒方法的另一场景示意图,该场景可以包括闹钟提醒装置200,该闹钟提醒装置200可以集成于电子设备10中,其中电子设备10和闹钟提醒装置200可以参阅图1。该闹钟提醒装置200主要用于获取在第一提醒时刻控制第一闹钟11的第一控制信息,第一控制信息包括控制第一闹钟11的关闭信息;获取第一闹钟11在关闭过程中的特征信息;根据关闭信息和特征信息生成控制阈值;若控制阈值小于预设阈值,控制第二闹钟12处于关闭状态;若控制阈值大于或等于预设阈值,控制第二闹钟12处于打开状态;以及在第一闹钟11处于关闭状态,发出语音询问信息;若未接收到语音答复信息,则控制第二闹钟12处于打开状态;若接收到语音答复信息,则根据语音答复信息确定对应的语音指令;根据语音指令控制第二闹钟12。Referring to FIG. 2, FIG. 2 is a schematic diagram of another scenario of an alarm clock reminding method according to an embodiment of the present invention. The scenario may include an alarm reminder device 200, which may be integrated into the electronic device 10, wherein the electronic device 10 and The alarm reminder device 200 can be referred to FIG. The alarm reminder device 200 is mainly configured to acquire first control information for controlling the first alarm clock 11 at the first reminding time. The first control information includes: controlling the closing information of the first alarm clock 11; and acquiring the feature of the first alarm clock 11 during the closing process. And generating a control threshold according to the shutdown information and the feature information; if the control threshold is less than the preset threshold, controlling the second alarm 12 to be in a closed state; if the control threshold is greater than or equal to the preset threshold, controlling the second alarm 12 to be in an open state; The first alarm clock 11 is in a closed state, and the voice inquiry information is sent; if the voice reply information is not received, the second alarm clock 12 is controlled to be in an open state; if the voice reply information is received, the corresponding voice command is determined according to the voice reply information; The voice command controls the second alarm clock 12.

以下将分别进行详细说明。The details will be described separately below.

在本发明实施例中,将从闹钟提醒装置的角度进行描述,该闹钟提醒装置具体可以集成在平板、PC、手机等具备储存单元并安装有微处理器而具有运算能力的电子设备中。In the embodiment of the present invention, it will be described from the perspective of an alarm reminder device, which can be integrated into an electronic device having a storage unit and a microprocessor and having computing power, such as a tablet, a PC, or a mobile phone.

可以理解的是,由于晚睡的原因,早晨起床时间用户常常不能正常起床,因此,需要设置一个甚至多个闹钟提醒。比如:用户在一周内的周一至周五均需要在7:30起床,为了确保能够在7:30起床,用户在电子设备上,比如手机上设置第一闹钟和第二闹钟,该第一闹钟的提醒时刻为7:20,该第二闹钟的提醒时刻为7:26。甚至用户设置第三闹钟,第三闹钟的提醒时刻为7:29等。然而,如果用户在第一闹钟提醒过程中已经醒来并起床,而第二闹钟,甚至第三闹钟在到达各自的提醒时刻时仍然会进行提醒,此时若用户在洗漱等正忙于其它事情,而无时间关闭第二闹钟或第三闹钟,此时第二闹钟或第三闹钟则会持续性的进行提醒,不仅浪费电子设备的电量,而且给用户本人以及周围带来噪声干扰,严重影响其他用户。It can be understood that due to the reason of late sleep, the user often cannot get up in the morning when getting up in the morning, so it is necessary to set one or more alarm reminders. For example, the user needs to get up at 7:30 from Monday to Friday in a week. In order to ensure that he can get up at 7:30, the user sets the first alarm clock and the second alarm clock on the electronic device, such as a mobile phone. The time is 7:20, and the reminder time of the second alarm clock is 7:26. Even the user sets a third alarm clock, and the reminder moment of the third alarm clock is 7:29. However, if the user wakes up and wakes up during the first alarm reminder process, and the second alarm clock, even the third alarm clock will still be reminded when reaching the respective reminding moments, if the user is busy with other things, such as washing, etc. There is no time to turn off the second alarm clock or the third alarm clock. At this time, the second alarm clock or the third alarm clock will continue to remind, not only waste the power of the electronic device, but also bring noise interference to the user and the surrounding, seriously affecting other user.

一种闹钟提醒方法,该闹钟提醒方法包括获取在第一提醒时刻控制第一闹钟的第一控制信息,第一控制信息包括控制第一闹钟的关闭信息;获取第一闹钟在关闭过程中的特征信息;根据关闭信息和特征信息生成控制阈值;若控制阈值小于预设阈值,控制第二闹钟处于关闭状态;若控制阈值大于或等于预设阈值,控制第二闹钟处于打开状态。An alarm clock reminding method, comprising: acquiring first control information for controlling a first alarm clock at a first reminding moment, the first control information comprising: controlling a closing information of the first alarm clock; and acquiring a feature of the first alarm clock during the closing process And generating a control threshold according to the closing information and the feature information; if the control threshold is less than the preset threshold, controlling the second alarm to be in a closed state; and if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.

请参阅图3,图3为本发明实施例提供的闹钟提醒方法的流程示意图。该闹钟提醒方法可以包括:Please refer to FIG. 3. FIG. 3 is a schematic flowchart diagram of an alarm reminding method according to an embodiment of the present invention. The alarm reminder method can include:

在步骤S101中,获取在第一提醒时刻控制第一闹钟的第一控制信息,第一控制信息包括控制第一闹钟的关闭信息。In step S101, first control information for controlling the first alarm clock is acquired at the first reminding time, and the first control information includes closing information for controlling the first alarm clock.

可以理解的是,用户设置闹钟主要用于提醒,以提醒用户需要起床或提醒用户需要做某件事情等,而本发明实施例以闹钟提醒用户起床为例进行说明。本发明实施例中闹钟的提醒方式包括但不限于振动、响铃、亮屏等提醒方式,本实施例以闹钟响铃和振动同时提醒的方式为例进行具体地描述。It can be understood that the user sets the alarm clock mainly for reminding to remind the user that the user needs to wake up or remind the user that something needs to be done, and the like, and the embodiment of the present invention uses the alarm clock to remind the user to wake up as an example for description. The reminder mode of the alarm clock in the embodiment of the present invention includes, but is not limited to, a reminder mode such as a vibration, a ringing, a bright screen, and the like. In this embodiment, a manner in which an alarm clock is ringing and a vibration is simultaneously reminded is specifically described as an example.

在一些实施例中,一电子设备至少设置有两个闹钟,包括第一闹钟和第二闹钟。当然,本发明实施例电子设备还可以包括第三闹钟、第四闹钟等。且第一闹钟至第四闹钟的提醒时刻依次增加,比如第一闹钟的提醒时刻为7:20,第二闹钟的提醒时刻为7:26;第三闹钟的提醒时刻为7:29;第四闹钟的提醒时刻为7:33。In some embodiments, an electronic device is provided with at least two alarms, including a first alarm clock and a second alarm clock. Of course, the electronic device of the embodiment of the present invention may further include a third alarm clock, a fourth alarm clock, and the like. And the reminding moments of the first alarm clock to the fourth alarm clock are sequentially increased, for example, the reminding moment of the first alarm clock is 7:20, the reminding moment of the second alarm clock is 7:26, and the reminding moment of the third alarm clock is 7:29; The reminder time for the alarm clock is 7:33.

其中,电子设备获获取在第一提醒时刻控制第一闹钟的第一控制信息,第一控制信息包括控制第一闹钟的关闭信息,该第一控制信息可以包括有控制第一闹钟关闭的关闭信息、控制第一闹钟推迟再提醒的再提醒信息或未对第一闹钟进行关闭处理的未处理信息。The electronic device obtains the first control information for controlling the first alarm clock at the first reminding time, where the first control information includes the closing information for controlling the first alarm clock, and the first control information may include the closing information for controlling the first alarm to be turned off. And the re-alert information for controlling the first alarm clock to be postponed and then the unprocessed information for not closing the first alarm clock.

具体的,当第一闹钟在提醒过程中未接收到处理,也就是用户未对第一闹钟进行处理,则表示用户仍然处于睡眠状态,需要第二闹钟处于打开状态,在到达第二闹钟的提醒时刻提醒用户。而当第一闹钟在提醒过程中接收到处理,也就是用户对第一闹钟进行处理,具体比如:在第一闹钟提醒过程中用户关闭第一闹钟或在第一闹钟提醒过程中用户控制第一闹钟再提醒。当第一闹钟提醒过程中用户控制第一闹钟再提醒,则表示用户还想再继续睡,需要第二闹钟处于打开状态,在到达第二闹钟的提醒时刻提醒用户。当第一闹钟提醒过程中用户关闭第一闹钟,则表示用户已醒来,或处于半醒状态,则需要进一步的判断用户是否醒来,以便控制第二闹钟的状态。Specifically, when the first alarm clock does not receive the processing during the reminding process, that is, the user does not process the first alarm clock, it indicates that the user is still in a sleep state, and the second alarm clock is required to be in an open state, and the second alarm is reached. Always remind the user. When the first alarm clock receives the processing in the reminding process, that is, the user processes the first alarm clock, for example, the user turns off the first alarm clock during the first alarm clock reminding process or the user controls the first time during the first alarm clock reminding process. The alarm is reminded again. When the user controls the first alarm clock and then reminds during the first alarm reminder process, it indicates that the user still wants to continue to sleep, and the second alarm clock needs to be in an open state, and the user is reminded at the reminding moment when the second alarm clock is reached. When the user turns off the first alarm clock during the first alarm reminder, it indicates that the user has woken up, or is in a half-awake state, and further determination is made as to whether the user wakes up in order to control the state of the second alarm clock.

在步骤S102中,获取第一闹钟在关闭过程中的特征信息。In step S102, feature information of the first alarm clock during the closing process is acquired.

在一些实施例中,该特征信息包括但不限于:用户在控制第一闹钟关闭过程中关闭第一闹钟所用的时长、用户在控制第一闹钟关闭过程中关闭第一闹钟所用的次数、第一闹钟在提醒过程中的提醒时长。具体的,现有电子设备中的闹钟在提醒过程中,时长需要用户滑动显示屏上所显示的图案才能够关闭闹钟,比如:从电子设备显示屏的一侧滑动至另一侧实现对第一闹钟的关闭。当用户处于清醒状态,则其可以看到电子设备的显示屏,可以根据显示屏中关闭第一闹钟的图案一次性完成图案的样式,实现对第一闹钟的关闭,在此过程中用户所用时长也较短。而当用户处于半醒状态,或者说用户处于未清醒状态,则用户在关闭第一闹钟过程中可能是闭上眼睛,仅凭平时关闭第一闹钟的习惯关闭第一闹钟,从用户触摸到电子设备至用户尝试关闭第一闹钟的过程中,用户可能需要通过2次、3次等才能够关闭第一闹钟,在此期间用户关闭第一闹钟所用的时间比较长。In some embodiments, the feature information includes, but is not limited to, a duration used by the user to turn off the first alarm during the first alarm off, and a number of times the user turns off the first alarm during the first alarm off period, first The reminder duration of the alarm during the reminder process. Specifically, in the reminding process of the alarm clock in the existing electronic device, the user needs to slide the displayed pattern on the display screen to turn off the alarm clock, for example, sliding from one side of the electronic device display screen to the other side to achieve the first The alarm clock is turned off. When the user is in the awake state, he can see the display screen of the electronic device, and can complete the pattern of the pattern in one time according to the pattern of turning off the first alarm clock in the display screen, thereby realizing the closing of the first alarm clock, and the duration of the user in the process. Also shorter. When the user is in a half-awake state, or the user is in an awake state, the user may close his eyes during the process of turning off the first alarm clock, and turn off the first alarm clock only from the habit of turning off the first alarm clock, and touch the electronic device from the user. During the process from the device to the user attempting to turn off the first alarm clock, the user may need to turn off the first alarm clock 2 times, 3 times, etc., during which the user takes a long time to turn off the first alarm clock.

需要说明是的,第一闹钟在提醒时刻进行提醒,当第一闹钟在提醒过程中被关闭,则第一闹钟必然被触发,其至少被触发一次进行关闭,同时对应的触发时长大于零。因此,本发明实施例特征信息中的时长大于零,以及次数大于或等于1次。It should be noted that the first alarm clock is reminded at the reminding moment. When the first alarm clock is turned off during the reminding process, the first alarm clock must be triggered, and it is triggered to be turned off at least once, and the corresponding triggering duration is greater than zero. Therefore, the duration in the feature information of the embodiment of the present invention is greater than zero, and the number of times is greater than or equal to one.

在步骤S103中,根据关闭信息和特征信息生成控制阈值。In step S103, a control threshold is generated based on the shutdown information and the feature information.

在一些实施例中,该控制阈值可以包括控制第一闹钟关闭的控制时间和控制第一闹钟关闭的控制次数。具体的,该控制时间具体为用户在控制第一闹钟关闭过程中关闭第一闹钟所用的时长,比如该控制时间为5秒。该控制次数具体为用户在控制第一闹钟关闭过程中关闭第一闹钟所用的次数,比如该控制次数为1次。In some embodiments, the control threshold can include a control time that controls the first alarm to turn off and a number of controls that control the first alarm to turn off. Specifically, the control time is specifically a duration used by the user to turn off the first alarm during the process of controlling the first alarm to be turned off, for example, the control time is 5 seconds. The number of times of control is specifically the number of times the user turns off the first alarm during the process of controlling the first alarm to be turned off, for example, the number of times of control is one.

在步骤S104中,若控制阈值小于预设阈值,控制第二闹钟处于关闭状态。In step S104, if the control threshold is less than the preset threshold, the second alarm is controlled to be in the off state.

在一些实施例中,若控制阈值为控制时间,该预设阈值包括预设时间,具体的,若控制时间小于预设时间,控制第二闹钟处于关闭状态。比如,该控制时间为1秒,该预设时间为3秒,则用户在关闭第一闹钟的过程中所用时长为1秒,用户用较短的时长将第一闹钟关闭,则表明用户处于清醒状态,从而无需第二闹钟继续提醒用户,因此控制第二闹钟处于关闭状态,在到达第二闹钟的提醒时刻,第二闹钟也不再进行提醒。需要说明的是,该预设时间可以因不同的用户而设定不同,比如预设时间设定为2秒、4秒等。In some embodiments, if the control threshold is a control time, the preset threshold includes a preset time. Specifically, if the control time is less than the preset time, the second alarm is controlled to be in a closed state. For example, if the control time is 1 second, and the preset time is 3 seconds, the duration used by the user in the process of turning off the first alarm clock is 1 second, and the user turns off the first alarm clock for a short period of time, indicating that the user is awake. The state, so that the second alarm is not required to continue to remind the user, so the second alarm is controlled to be in the off state, and the second alarm is no longer reminded when the second alarm is reached. It should be noted that the preset time may be set differently for different users, for example, the preset time is set to 2 seconds, 4 seconds, and the like.

在一些实施例中,若控制阈值为控制次数,该预设阈值包括预设次数,具体的,若控制次数小于预设次数,控制第二闹钟处于关闭状态。比如,该控制次数为1次,该预设次数为3次,则用户在关闭第一闹钟的过程中所用次数为1次,用户一次性将第一闹钟关闭,则表明用户处于清醒状态,从而无需第二闹钟继续提醒用户,因此控制第二闹钟处于关闭状态,在到达第二闹钟的提醒时刻,第二闹钟也不再进行提醒。需要说明的是,该预设次数可以因不同的用户而设定不同,比如预设次数设定为2次、4次等。In some embodiments, if the control threshold is the number of times of control, the preset threshold includes a preset number of times. Specifically, if the number of times of control is less than the preset number of times, the second alarm is controlled to be in a closed state. For example, the number of times of the control is one, and the preset number of times is three times, the number of times used by the user in the process of turning off the first alarm clock is one time, and the user turns off the first alarm once, indicating that the user is in an awake state, thereby The second alarm clock is not required to continue to remind the user, so the second alarm is controlled to be in the off state, and the second alarm clock is no longer reminded when the second alarm is reached. It should be noted that the preset number of times may be set differently for different users, for example, the preset number of times is set to 2 times, 4 times, and the like.

在一些实施例中,若控制阈值为控制次数和控制时间,该预设阈值包括预设次数和预设次数,具体的,若控制时间小于预设时间以及当控制次数小于预设次数,控制第二闹钟处于关闭状态。比如,该控制次数为1次,该预设次数为3次,则用户在关闭第一闹钟的过程中所用次数为1次,用户一次性将第一闹钟关闭则表明用户处于清醒状态。以及该控制时间为1秒,该预设时间为3秒,则用户在关闭第一闹钟的过程中所用时长为1秒,用户用较短的时长将第一闹钟关闭则表明用户处于清醒状态。从而无需第二闹钟继续提醒用户,因此控制第二闹钟处于关闭状态,在到达第二闹钟的提醒时刻,第二闹钟也不再进行提醒。In some embodiments, if the control threshold is a control number and a control time, the preset threshold includes a preset number of times and a preset number of times. Specifically, if the control time is less than the preset time and when the number of times of control is less than the preset number, the control The second alarm clock is off. For example, the number of times of the control is one, and the preset number of times is three times, the number of times used by the user in the process of turning off the first alarm is one time, and that the user turns off the first alarm once to indicate that the user is in the awake state. The control time is 1 second, and the preset time is 3 seconds. The duration used by the user in the process of turning off the first alarm clock is 1 second. When the user turns off the first alarm clock for a short period of time, the user is in the awake state. Therefore, the second alarm clock is not required to continue to remind the user, so the second alarm is controlled to be in the off state, and the second alarm clock is no longer reminded when the second alarm is reached.

以上为本发明实施例控制阈值小于预设阈值控制第二闹钟处于关闭状态的几种具体举例说明,需要说明的是,本发明实施例控制第二闹钟处于关闭状态的方式并不限于此。The foregoing is a specific example for the control threshold to be less than the preset threshold to control the second alarm to be in the closed state. It should be noted that the manner in which the second alarm is controlled to be in the closed state in the embodiment of the present invention is not limited thereto.

在步骤S105中,若控制阈值大于或等于预设阈值,控制第二闹钟处于打开状态。In step S105, if the control threshold is greater than or equal to the preset threshold, the second alarm is controlled to be in an open state.

在一些实施例中,若控制阈值为控制时间,该预设阈值包括预设时间,具体的,若控制时间大于或等于预设时间,控制第二闹钟处于打开状态。比如,该控制时间为5秒,该预设时间为3秒,则用户在关闭第一闹钟的过程中所用时长为5秒,用户用较长的时长将第一闹钟关闭,则表明用户未处于清醒状态,从而需要第二闹钟继续提醒用户,因此控制第二闹钟处于打开状态,在到达第二闹钟的提醒时刻,第二闹钟进行提醒。需要说明的是,该预设时间可以因不同的用户而设定不同,比如预设时间设定为2秒、4秒等。In some embodiments, if the control threshold is the control time, the preset threshold includes a preset time. Specifically, if the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state. For example, if the control time is 5 seconds and the preset time is 3 seconds, the user uses the duration of the first alarm to be 5 seconds. If the user turns off the first alarm for a longer period of time, the user is not in the user. The awake state requires the second alarm to continue to remind the user, so that the second alarm is controlled to be in an open state, and the second alarm is alerted when the second alarm is reached. It should be noted that the preset time may be set differently for different users, for example, the preset time is set to 2 seconds, 4 seconds, and the like.

在一些实施例中,若控制阈值为控制次数,该预设阈值包括预设次数,具体的,若控制次数大于或等于预设次数,控制第二闹钟处于打开状态。比如,该控制次数为3次,该预设次数为3次,则用户在关闭第一闹钟的过程中所用次数为3次,用户多次控制才将第一闹钟关闭,则表明用户未处于清醒状态,从而需要第二闹钟继续提醒用户,因此控制第二闹钟处于打开状态,在到达第二闹钟的提醒时刻,第二闹钟进行提醒。需要说明的是,该预设次数可以因不同的用户而设定不同,比如预设次数设定为2次、4次等。In some embodiments, if the control threshold is the number of times of control, the preset threshold includes a preset number of times. Specifically, if the number of times of control is greater than or equal to the preset number of times, the second alarm is controlled to be in an open state. For example, the number of times of the control is 3 times, and the preset number of times is 3 times, the number of times used by the user in the process of turning off the first alarm clock is 3 times, and the user turns off the first alarm clock after multiple times of control, indicating that the user is not awake. The state, so that the second alarm is required to continue to remind the user, so that the second alarm is controlled to be in an open state, and the second alarm is alerted when the second alarm is reached. It should be noted that the preset number of times may be set differently for different users, for example, the preset number of times is set to 2 times, 4 times, and the like.

在一些实施例中,若控制阈值为控制次数和控制时间,该预设阈值包括预设次数和预设次数,具体的,若控制时间大于或等于预设时间以及当控制次数大于或等于预设次数,控制第二闹钟处于打开状态。比如,该控制次数为3次,该预设次数为3次,则用户在关闭第一闹钟的过程中所用次数为3次,用户多次才将第一闹钟关闭则表明用户未处于清醒状态。以及该控制时间为5秒,该预设时间为3秒,则用户在关闭第一闹钟的过程中所用时长为5秒,用户用较长的时长将第一闹钟关闭则表明用户未处于清醒状态。从而需要第二闹钟继续提醒用户,因此控制第二闹钟处于打开状态,在到达第二闹钟的提醒时刻,第二闹钟进行提醒。In some embodiments, if the control threshold is the control number and the control time, the preset threshold includes a preset number of times and a preset number of times, specifically, if the control time is greater than or equal to the preset time and when the number of times of control is greater than or equal to the preset The number of times, the second alarm is controlled to be on. For example, the number of times of the control is 3 times, and the preset number of times is 3 times, the number of times used by the user in the process of turning off the first alarm clock is 3 times, and the user turns off the first alarm clock multiple times to indicate that the user is not in the awake state. And the control time is 5 seconds, and the preset time is 3 seconds, the duration used by the user in the process of turning off the first alarm clock is 5 seconds, and the user turns off the first alarm clock for a longer period of time, indicating that the user is not in the awake state. . Therefore, the second alarm clock is required to continue to remind the user, so that the second alarm clock is controlled to be in an open state, and the second alarm clock is alerted when the second alarm clock is reached.

以上为本发明实施例控制阈值大于或等于预设阈值控制第二闹钟处于关闭状态的几种具体举例说明,需要说明的是,本发明实施例控制第二闹钟处于打开状态的方式并不限于此。The foregoing is a specific example for the control threshold to be greater than or equal to the preset threshold to control the second alarm to be in the closed state. The method for controlling the second alarm to be in the open state is not limited to this. .

从而,本发明实施例电子设备获取第一闹钟在提醒过程中用户关闭第一闹钟的关闭信息和特征信息,电子设备根据用户关闭第一闹钟过程中的关闭信息和特征信息实现对第二闹钟的控制,实现智能控制第二闹钟。Therefore, in the embodiment of the present invention, the electronic device acquires the closing information and the feature information of the first alarm clock during the reminding process, and the electronic device implements the second alarm clock according to the closing information and the feature information in the process of turning off the first alarm clock by the user. Control, realize intelligent control of the second alarm clock.

在一些实施例中,电子设备可以记录用户在一段历史时段内,比如连续一个星期的早晨用户关闭第一闹钟的特征信息、习惯等,并可以利用学习算法将记录的特征信息、习惯等进行分析和学习处理,电子设备通过自行分析和学习处理过程生成控制第二闹钟的第二控制信息,并根据该第二控制信息控制第二闹钟处于关闭状态或处于打开状态。在用户手动关闭第一闹钟后,电子设备通过自学习和分析等处理自动判断用户是否起床,进而自动控制第二闹钟是否需要处于打开状态进行提醒。而当用户关闭第一闹钟后,已经起床,无需第二闹钟在提醒时刻继续提醒,则电子设备根据其自学习和自分析得出的第二控制信息控制第二闹钟处于关闭状态,无需用户再手动关闭第二闹钟,在方便用户使用的同时,减少噪声干扰,节省电子设备的电量。In some embodiments, the electronic device may record the feature information, habits, and the like of the user turning off the first alarm clock for a period of a historical period, such as the morning of a week, and may use the learning algorithm to analyze the recorded feature information, habits, and the like. And learning processing, the electronic device generates second control information for controlling the second alarm clock through the self-analysis and learning processing process, and controls the second alarm clock to be in a closed state or an open state according to the second control information. After the user manually turns off the first alarm clock, the electronic device automatically determines whether the user wakes up through self-learning and analysis, and automatically controls whether the second alarm clock needs to be in an open state for reminding. When the user turns off the first alarm clock and has already waking up, the second alarm clock is not required to continue to be reminded at the reminding time, and the electronic device controls the second alarm clock to be in the off state according to the second control information obtained by the self-learning and self-analysis, without the user being required to Manually turn off the second alarm clock to reduce noise interference and save power of electronic devices while being convenient for users.

综上所述,本发明提供的闹钟提醒方法,首先获取在第一提醒时刻控制第一闹钟的第一控制信息,第一控制信息包括控制第一闹钟的关闭信息;同时获取第一闹钟在关闭过程中的特征信息;然后根据关闭信息和特征信息生成控制阈值;若控制阈值小于预设阈值,控制第二闹钟处于关闭状态;若控制阈值大于或等于预设阈值,控制第二闹钟处于打开状态。本发明实施例通过用户关闭第一闹钟时的关闭信息和特征信息共同作用以自动控制第二闹钟,实现智能控制第二闹钟,到达第二闹钟的提醒时刻,从而在自动控制第一闹钟处于关闭状态时无需用户再因第二闹钟处于打开状态而手动关闭闹钟,减少用户已经起床或已经醒来第二闹钟仍然处于打开状态对周围环境的干扰,节省第二闹钟处于打开状态所耗费的电量。In summary, the alarm clock reminding method provided by the present invention firstly acquires first control information for controlling the first alarm clock at the first reminding moment, the first control information includes controlling the closing information of the first alarm clock; and simultaneously acquiring the first alarm clock is closed. The characteristic information in the process; then generating a control threshold according to the closing information and the feature information; if the control threshold is less than the preset threshold, controlling the second alarm to be in a closed state; if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state . In the embodiment of the present invention, the closing information and the feature information when the user turns off the first alarm clock cooperate to automatically control the second alarm clock, and realize the intelligent control of the second alarm clock and the reminding moment of reaching the second alarm clock, thereby automatically controlling the first alarm clock to be closed. In the state, the user does not need to manually turn off the alarm because the second alarm is turned on, which reduces the interference that the user has gotten up or has woken up to the second alarm while still being in the open state, and saves the power consumed by the second alarm.

在一些实施例中,在电子设备控制第二闹钟之前,该闹钟提醒方法包括以下步骤:In some embodiments, the alarm reminder method includes the following steps before the electronic device controls the second alarm clock:

(01) 在第一闹钟处于关闭状态,电子设备发出语音询问信息;(01) when the first alarm clock is off, the electronic device issues a voice inquiry message;

(02) 若未接收到语音答复信息,则控制第二闹钟处于打开状态;(02) If the voice reply message is not received, the second alarm is controlled to be in an open state;

(03) 若接收到语音答复信息,则根据语音答复信息确定对应的语音指令;(03) if the voice reply message is received, determining a corresponding voice command according to the voice reply message;

(04) 根据语音指令控制第二闹钟。(04) Control the second alarm according to the voice command.

具体的,在第一闹钟处于关闭状态,也就是当第一闹钟在提醒过程中,用户将第一闹钟关闭,此时电子设备发出语音询问信息,该语音询问信息比如“主人起床了吗?”、“主人第二闹钟是否继续提醒?”等等。该语音询问信息主要询问用户是否起床或第二闹钟是否需要进行提醒。该语音答复信息比如“哥起床啦”、“第二闹钟不再提醒”等等。若电子设备未接收到语音答复信息,则表示用户仍然在睡觉,不想回答,电子设备控制第二闹钟处于打开状态,在到达第二闹钟的提醒时刻第二闹钟进行提醒。而若电子设备接收到语音答复信息,则电子设备根据语音答复信息确认语音指令,该语音指令比如为“起床”、“没起床”、“提醒”、“不再提醒”等等。从而根据对应的语音指令相应的控制第二闹钟。Specifically, when the first alarm clock is in the off state, that is, when the first alarm clock is in the reminding process, the user turns off the first alarm clock, and the electronic device sends a voice inquiry message, such as “Does the master get up?” , "Does the owner's second alarm continue to remind?" and so on. The voice inquiry message mainly asks the user whether to wake up or whether the second alarm needs to be reminded. The voice reply information such as "Brother gets up", "The second alarm is no longer reminded" and the like. If the electronic device does not receive the voice reply message, it indicates that the user is still sleeping, does not want to answer, the electronic device controls the second alarm clock to be in an open state, and the second alarm clock is reminded when the second alarm clock is reached. If the electronic device receives the voice reply message, the electronic device confirms the voice command according to the voice reply message, such as “getting out”, “not getting out”, “reminding”, “no more reminding”, and the like. Thereby controlling the second alarm clock according to the corresponding voice instruction.

更具体的,请参阅图4,图4为本发明实施例提供的电子设备和用户交互的场景示意图,该电子设备10发出“主人起床没”的语音询问信息,并传送至用户20,用户在听到该询问信息后,发出“哥起床啦”的语音答复信息,并传送至电子设备10,从而电子设备10确定用户该“哥起床啦”中的语音指令“起床”,以此电子设备判断出用户20已经起床,以控制第二闹钟处于关闭状态。For details, refer to FIG. 4. FIG. 4 is a schematic diagram of a scenario in which an electronic device and a user interact with each other according to an embodiment of the present invention. The electronic device 10 issues a voice inquiry message that “the master gets up” and transmits the message to the user 20, where the user is After hearing the inquiry information, the voice reply message of “Brother Gets Up” is sent out and transmitted to the electronic device 10, so that the electronic device 10 determines that the user has “sit up” in the voice command “Getting out of bed”, and the electronic device judges The user 20 has gotten up to control the second alarm to be off.

可以理解的是,用户早晨起床后一般先上厕所,或先洗漱。在此过程中大多数用户不使用电子设备,比如不使用手机。此时若第二闹钟的提醒时刻到达,第二闹钟进行提醒,而用户已经起床,无需第二闹钟再继续提醒,以免形成噪声干扰,浪费电子设备电量。此时,用户可以在厕所或其它位置通过语音控制第二闹钟停止提醒,也就是通过语音关闭第二闹钟。Understandably, the user usually goes to the toilet after getting up in the morning, or washes first. Most users do not use electronic devices during this process, such as not using a mobile phone. At this time, if the reminding time of the second alarm clock arrives, the second alarm clock is reminded, and the user has already got up, and the second alarm clock is not needed to continue the reminding, so as to avoid noise interference and waste the electronic device power. At this time, the user can stop the reminder by voice control of the second alarm clock in the toilet or other location, that is, turn off the second alarm clock by voice.

本发明实施例根据用户关闭第一闹钟的关闭信息和特征信息,以及根据接收到的语音答复信息共同控制第二闹钟,控制效果更佳,防止仅根据第一闹钟的关闭信息和特征信息实现对第二闹钟的错误控制。本发明实施例进一步根据语音答复信息。In the embodiment of the present invention, according to the closing information and the feature information of the first alarm clock being turned off by the user, and the second alarm clock is jointly controlled according to the received voice reply information, the control effect is better, and the closing information and the feature information of the first alarm clock are prevented from being implemented only. Error control of the second alarm clock. Embodiments of the present invention further respond to information based on voice.

需要说明的是,本发明实施例控制第二闹钟的方式并不限于根据用户对第一闹钟的控制时的控制信息以及电子设备接收的语音答复信息。比如:对第二闹钟的控制方式还可以基于用户在一段历史时间中控制第二闹钟的历史信息结合以上第一控制信息、特征信息及语言答复信息等共同控制第二闹钟,更进一步提高准确性。It should be noted that the manner of controlling the second alarm clock in the embodiment of the present invention is not limited to the control information when the user controls the first alarm clock and the voice reply information received by the electronic device. For example, the control method of the second alarm clock may further control the second alarm clock based on the historical information of the second alarm clock controlled by the user in a historical period, and the second alarm clock is jointly controlled by the first control information, the characteristic information and the language reply information, thereby further improving the accuracy. .

具体的,在电子设备控制第二闹钟之前,该闹钟提醒方法还包括以下步骤:Specifically, before the electronic device controls the second alarm clock, the alarm reminder method further includes the following steps:

(001)电子设备获取用户一段历史时段内,控制第二闹钟的第二控制信息;(001) the electronic device acquires the second control information of the second alarm clock during a historical period of time;

(002)根据第二控制信息控制第二闹钟。(002) controlling the second alarm clock according to the second control information.

具体的,若用户连续多次在第一闹钟提醒过程中关闭第一闹钟,且同时到控制第二闹钟处于关闭状态,并在第二闹钟的提醒时刻过后再次控制第二闹钟处于打开状态。则当用户再次控制第一闹钟关闭时,电子设备自动控制第二闹钟处于关闭状态,并在第二闹钟提醒时刻过后再控制第二闹钟处于打开状态。Specifically, if the user turns off the first alarm clock in the first alarm reminder process for a plurality of times, and simultaneously controls the second alarm clock to be in the off state, and controls the second alarm clock to be in the open state again after the reminding time of the second alarm clock expires. Then, when the user controls the first alarm to be turned off again, the electronic device automatically controls the second alarm to be in the off state, and then controls the second alarm to be in the on state after the second alarm reminder has elapsed.

以上为本发明实施例通过用户对第一闹钟的控制、对第二闹钟的使用习惯以及语言指令共同作用控制第二闹钟。下面本发明实施例详细说明第一闹钟的控制方式。The above is the control of the second alarm clock by the user's control of the first alarm clock, the usage habit of the second alarm clock, and the language command. The following describes the control method of the first alarm clock in detail in the embodiment of the present invention.

请一并参阅图5和图6,图5为本发明实施例提供的闹钟提醒方法的另一流程示意图,图6为本发明实施例提供的闹钟提醒方法的又一场景示意图。该闹钟提醒方法包括以下步骤:Referring to FIG. 5 and FIG. 6 , FIG. 5 is another schematic flowchart of an alarm clock reminding method according to an embodiment of the present invention. FIG. 6 is still another schematic diagram of an alarm clock reminding method according to an embodiment of the present invention. The alarm reminder method includes the following steps:

在步骤S1001中,获取预设时间内电子设备在目标时间段中首次被触发的所有第一时刻。In step S1001, all first moments in which the electronic device is triggered for the first time in the target time period are acquired in a preset time period.

其中,目标时间段具体为用户需要被提醒的时间段,比如通过第一闹钟提醒用户起床,该目标时间段设置为早晨6:00-7:00、6:30-7:00、7:00-8:00等,该目标时间段的时间间隔值可以为30分钟、1小时、1个半小时等等。本发明实施例的目标时间段以早晨7:00-8:00为例进行详细说明。The target time period is specifically a time period that the user needs to be reminded, for example, the first alarm clock is used to remind the user to wake up, and the target time period is set to 6:00-7:00, 6:30-7:00, 7:00 in the morning. -8:00, etc., the time interval value of the target time period may be 30 minutes, 1 hour, 1 half hour, and the like. The target time period of the embodiment of the present invention is described in detail by taking 7:00-8:00 in the morning as an example.

其中,目标时间段中电子设备首次被触发具体为目标时间段中电子设备首次被使用。比如:目标时间段电子设备的物理开关按键首次被按压,启动电子设备处于亮屏状态,从而,第一时刻则为在目标时间段中电子设备的物理开关按键首次被按压的时刻。The electronic device is triggered for the first time in the target time period, specifically, the electronic device is used for the first time in the target time period. For example, the physical switch button of the electronic device is pressed for the first time in the target time period, and the electronic device is turned on, so that the first moment is the time when the physical switch button of the electronic device is pressed for the first time in the target time period.

可以理解的是,在早晨醒来时,用户的第一件事情常常是按压电子设备的物理开关按键,比如手机的物理开关按键,使得手机处于亮屏状态,用户通过手机屏幕了解到具体时间,然后用户根据看到的时间选择继续睡觉,还是起床。Understandably, when waking up in the morning, the user's first thing is often to press the physical switch button of the electronic device, such as the physical switch button of the mobile phone, so that the mobile phone is in a bright screen state, and the user knows the specific time through the mobile phone screen. Then the user chooses to continue to sleep according to the time they see, or to get up.

然而,对于一些用户早晨醒来时,不去按压电子设备的物理开关按键而直接通过指纹解锁等解锁方式对电子设备进行解锁,比如对手机进行解锁。为此,目标时间段中电子设备首次被触发具体为目标时间段中电子设备首次被使用还比如:目标时间段中电子设备首次被解锁,解锁后进入到电子设备的主界面,从而,该第一时刻则为在目标时间段中电子设备首次被解锁的时刻。However, for some users to wake up in the morning, the electronic device is unlocked by pressing the physical unlocking button of the electronic device without pressing the physical switch button of the electronic device, such as unlocking the mobile phone. For this reason, the electronic device is triggered for the first time in the target time period, specifically, the electronic device is used for the first time in the target time period. For example, the electronic device is unlocked for the first time in the target time period, and then unlocks and enters the main interface of the electronic device, thereby The moment is the moment when the electronic device is unlocked for the first time in the target time period.

需要说明的是,本发明实施例当在目标时间段中,电子设备的物理开关按键首次被按压,以及电子设备首次被解锁,比如,用户在目标时间段中先按压电子设备的物理开关按键,然后通过密码解锁的方式进入到电子设备的主界面,从而可判断出用户解锁进入主界面并非用于查看时间,而是为了查看电子设备内的内容,进而可以判断出用户已经醒来或已经起床。而用户在按压电子设备的物理开关按键后还有可能继续再睡。从而,本发明实施例在这种情况下,第一时刻为该电子设备首次被解锁的时刻。It should be noted that, in the embodiment of the present invention, when the physical switch button of the electronic device is pressed for the first time and the electronic device is unlocked for the first time in the target time period, for example, the user first presses the physical switch button of the electronic device in the target time period, and then passes The method of unlocking the password enters the main interface of the electronic device, so that it can be determined that the user unlocks the main interface, not for viewing the time, but for viewing the content in the electronic device, and then can determine that the user has woken up or has already gotten out of bed. The user may continue to sleep after pressing the physical switch button of the electronic device. Thus, in this case, the first moment is the moment when the electronic device is unlocked for the first time.

为了将第一时刻设定为用户已经醒来的时刻,进一步的,当用户解锁电子设备进入到电子设备的主界面后,电子设备内的后台程序可能被唤醒而处于交互状态,或电子设备内的其它应用程序可能被启动而处于交互状态。在此,目标时间段中电子设备首次被触发具体为目标时间段中电子设备首次被使用还比如:电子设备内的应用程序被首次启动或被首次处于交互状态,从而,第一时刻为电子设备内的应用程序首次被启动或被首次处于交互状态的时刻。In order to set the first moment as the moment that the user has woken up, further, when the user unlocks the electronic device and enters the main interface of the electronic device, the background program in the electronic device may be awakened to be in an interactive state, or in the electronic device. Other applications may be launched and in an interactive state. Here, the electronic device is triggered for the first time in the target time period, specifically, the electronic device is used for the first time in the target time period. For example, the application in the electronic device is started for the first time or is in the interactive state for the first time, and thus, the first time is the electronic device. The moment the application is launched for the first time or is in the first interaction state.

在该目标时间段中,电子设备可能会被多次触发,在此,为节省工作量,减少资源占用,本发明实施例仅获取该电子设备被首次触发的第一时刻。该第一时刻位于目标时间段,以目标时间段为早晨7:00-8:00为例,则该第一时刻在早晨7:00-8:00之间,比如第一时刻为:7:10、7:15、7:20、7:30等。During the target time period, the electronic device may be triggered multiple times. In this embodiment, in order to save the workload and reduce the resource occupation, the embodiment of the present invention only obtains the first time when the electronic device is triggered for the first time. The first time is located in the target time period, and the target time period is 7:00-8:00 in the morning. The first time is between 7:00 and 8:00 in the morning, for example, the first time is: 7: 10, 7:15, 7:20, 7:30, etc.

在一些实施例中,获取预设时间内相同目标时间段中电子设备首次被触发的至少两个第一时刻,该预设时间可以为几天内,比如获取一个星期内相同目标时间段中电子设备首次被触发的7个第一时刻;该预设时间也可以在十几天或几十天,比如获取一个月内相同目标时间段中电子设备首次被触发的多个第一时刻。进一步的,该预设时间为连续多天,具体的,获取连续多天内相同目标时间段中电子设备每一天被首次触发的多个第一时刻。每一个第一时刻对应于每一天。然后,将获取到每一天的第一时刻进行统计,以进行下一步操作。In some embodiments, at least two first moments in which the electronic device is triggered for the first time in the same target time period within a preset time period are acquired, and the preset time may be within a few days, such as acquiring the electronic in the same target time period within one week. The first time is triggered by the device for the first time; the preset time may also be in ten days or dozens of days, for example, acquiring a plurality of first moments in which the electronic device is triggered for the first time in the same target time period within one month. Further, the preset time is consecutive days, and specifically, acquiring a plurality of first moments in which the electronic device is triggered for the first time in the same target time period in consecutive days. Each first moment corresponds to each day. Then, the first moment of each day is obtained for statistics to perform the next operation.

需要说明的是,每一天的目标时间段中对应一个第一时刻,多天的各个第一时刻可以相同,也可以不同。It should be noted that each of the target time segments of each day corresponds to a first time, and the first moments of the multiple days may be the same or different.

在步骤S1002中,根据第一时刻生成第二时刻,第二时刻早于或等于所有第一时刻中最大的时刻。In step S1002, a second time instant is generated according to the first time, and the second time is earlier than or equal to the largest time of all the first time instants.

在步骤S1002中,还可以对至少两个第一时刻中是否有重复的时刻进行判断,若判断结果中至少两个第一时刻中有重复的时刻,则第二时刻为至少两个第一时刻中重复频率最高的时刻。比如:第一天的第一时刻为早晨7:28,第二天的第一时刻为早晨7:28,第三天的第一时刻为早晨7:31,则第一天和第二天的两个第一时刻重复,从而将早晨7:28设定为第二时刻。而当有多个第一时刻分别重复,且重复频率相同,则将所有第一时刻的平均值设定为第二时刻。比如:第一天的第一时刻为早晨7:28,第二天的第一时刻为早晨7:28,第三天的第一时刻为早晨7:31,第四天的第一时刻为早晨7:31,则有两个第一时刻的重复相同。In step S1002, it is also possible to determine whether there is a repetition time in at least two first moments, and if there are duplicate moments in at least two first moments in the determination result, the second moment is at least two first moments The moment with the highest repetition rate. For example, the first moment on the first day is 7:28 in the morning, the first moment on the second day is 7:28 in the morning, and the first moment on the third day is 7:31 in the morning, the first day and the second day. The two first moments are repeated, thereby setting the morning 7:28 as the second moment. When a plurality of first moments are respectively repeated and the repetition frequency is the same, the average value of all the first moments is set as the second moment. For example, the first moment on the first day is 7:28 in the morning, the first moment on the second day is 7:28 in the morning, the first moment on the third day is 7:31 in the morning, and the first moment in the fourth day is morning. At 7:31, there are two repetitions of the first moment.

在一些实施例中,第二时刻为所有第一时刻的平均时刻,也就是说,第二时刻为所有第一时刻的平均值,第二时刻为在多天内,具体的是连续多天内在目标时间段中所获取电子设备每一天第一时刻的平均值。比如:连续3天内,第一天在目标时间段中获取到电子设备的第一时刻为早晨7:29,第二天在目标时间段中获取到电子设备的第一时刻为早晨7:30,第三天在目标时间段中获取到电子设备的第一时刻为早晨7:31,则该连续三天的第一时刻的平均时刻为早晨7:30,因此,第二时刻等于早晨7:30。In some embodiments, the second time is the average time of all the first moments, that is, the second time is the average of all the first moments, and the second moment is the plurality of days, specifically, the target is continuous for many days. The average of the first time of each day of the electronic device acquired in the time period. For example, for the first 3 days, the first time to acquire the electronic device in the target time period is 7:29 in the morning, and the first time to acquire the electronic device in the target time period is 7:30 in the morning. On the third day, the first time when the electronic device is acquired in the target time period is 7:31 in the morning, and the average time of the first time of the three consecutive days is 7:30 in the morning, so the second time is equal to 7:30 in the morning. .

需要说明的是,本发明实施例可以优先以相同第一时刻频率最高的时刻作为第二时刻,而当第一时刻没有相同的时刻,或者重复频率相同时,则将所有第一时刻的平均值作为第二时刻。It should be noted that, in the embodiment of the present invention, the time with the highest frequency at the same first time is preferentially used as the second time, and when the first time does not have the same time, or the repetition frequency is the same, the average of all the first moments is used. As the second moment.

在步骤S1003中,当在目标时间段中、且在第二时刻之前电子设备被触发,则控制第一闹钟处于关闭状态。In step S1003, when the electronic device is triggered in the target time period and before the second time, the first alarm is controlled to be in the off state.

从而,通过在多天目标时间段中获取用户使用电子设备的习惯自动控制第一闹钟处于关闭状态,实现智能控制第一闹钟处于关闭状态,无需用户手动控制。Therefore, by acquiring the user's habit of using the electronic device in the multi-day target time period, the first alarm clock is automatically controlled to be in the off state, and the intelligent control first alarm is turned off, without manual control by the user.

请一并参阅图7,图7为本发明实施例提供的电子设备中第一闹钟检测电子设备是否被触发的示意图,本发明实施例可以根据第一闹钟11检测电子设备10是否被触发,也可以根据电子设备10内的其它装置检测电子设备是否被触发,而本发明实施例以第一闹钟11对电子设备检测为例进行详细说明。Referring to FIG. 7 , FIG. 7 is a schematic diagram of a first alarm clock detecting electronic device in an electronic device according to an embodiment of the present invention. The embodiment of the present invention can detect whether the electronic device 10 is triggered according to the first alarm clock 11 . The electronic device can be detected by using the first alarm clock 11 as an example for the purpose of detecting whether the electronic device is triggered according to other devices in the electronic device 10.

其中,第一闹钟11在到达目标时间段时,具体的比如早晨7:00-8:00第一闹钟11开始对电子设备10进行检测,同时,还需在第二时刻之前对电子设备10进行检测,该第二时刻比如为早晨7:30,则第一闹钟11具体在早晨7:00-7:30检测出电子设备10是否被触发,其中电子设备10被触发请参阅以上内容在此不再赘述,而电子设备10未被触发,则表明电子设备10的物理开关按键未被按压,以及电子设备10未被解锁。当第一闹钟11在目标时间段中、且在第二时刻之前检测到电子设备10被触发,则第一闹钟11自动判断出用户已经醒来,比如:已经起床或在使用电子设备10,从而自动控制第一闹钟11处于关闭状态,到达第一闹钟的提醒时刻,在自动控制第一闹钟11处于关闭状态时无需用户再因第一闹钟处于打开状态而手动关闭第一闹钟11,减少用户已经起床或已经醒来第一闹钟11仍然处于打开状态对周围环境的干扰,节省第一闹钟11处于打开状态所耗费的电量。When the first alarm clock 11 reaches the target time period, the first alarm clock 11 starts to detect the electronic device 10, for example, at 7:00-8:00 in the morning, and the electronic device 10 needs to be performed before the second time. In the second time, for example, 7:30 in the morning, the first alarm clock 11 detects whether the electronic device 10 is triggered in the morning at 7:00-7:30, wherein the electronic device 10 is triggered. Please refer to the above content. To be described again, while the electronic device 10 is not triggered, it indicates that the physical switch button of the electronic device 10 is not pressed, and the electronic device 10 is not unlocked. When the first alarm clock 11 detects that the electronic device 10 is triggered in the target time period and before the second time, the first alarm clock 11 automatically determines that the user has woken up, such as: has already got up or is using the electronic device 10, thereby Automatically controlling the first alarm clock 11 to be in the off state, and reaching the reminding moment of the first alarm clock, when the first alarm clock 11 is automatically controlled to be in the off state, the user does not need to manually turn off the first alarm clock 11 because the first alarm clock is in the open state, thereby reducing the user has already Getting up or waking up the first alarm clock 11 is still in an open state, disturbing the surrounding environment, saving the power consumed by the first alarm clock 11 being in an open state.

请一并参阅图8,图8为本发明实施例提供的电子设备的界面示意图,在目标时间段中、且在第二时刻之前,具体的比如在早晨7:00-7:30,第一闹钟11检测到电子设备10的物理开关按键被按压,然后检测到电子设备10被解锁,进一步的,电子设备10解锁后检测到电子设备10的微信应用程序被唤醒并处于交互状态。比如用户小花进入其微信应用程序的朋友圈,并在其朋友圈内看到其好友小白发表的状态“新的一天,新的开始,坚持晨跑”,以及看到其好友小强发表的状态“上班路风雨无阻”。Please refer to FIG. 8. FIG. 8 is a schematic diagram of an interface of an electronic device according to an embodiment of the present invention, in a target time period, and before a second time, specifically, for example, at 7:00-7:30 in the morning, first The alarm 11 detects that the physical switch button of the electronic device 10 is pressed, and then detects that the electronic device 10 is unlocked. Further, after the electronic device 10 is unlocked, it is detected that the WeChat application of the electronic device 10 is awakened and in an interactive state. For example, the user enters the circle of friends of the WeChat app, and sees the status of his friend Xiaobai in his circle of friends, “New day, new start, insist on morning run”, and see the status of his friend Xiaoqiang. "The road to work is rain or shine."

在步骤S1004中,当在目标时间段中、且在第二时刻之前电子设备未被触发,则将第二时刻设定为第一闹钟提醒时刻,到达第一闹钟提醒时刻时控制第一闹钟处于打开状态,进行提醒。In step S1004, when the electronic device is not triggered in the target time period and before the second time, the second time is set as the first alarm time, and the first alarm is controlled when the first alarm time is reached. Open the status and remind you.

其中,当第一闹钟11在目标时间段中、且在第二时刻之前,比如早晨7:00-7:30未检测到电子设备10被触发,则第一闹钟11判断出电子设备10的物理开关按键未被按压,电子设备10未被解锁,从而判断出用户没有起床或没有醒来。因此,需要通过第一闹钟11提醒用户。Wherein, when the first alarm clock 11 is in the target time period and before the second time, such as 7:00-7:30 in the morning, the electronic device 10 is not detected to be triggered, the first alarm clock 11 determines the physics of the electronic device 10. The switch button is not pressed, and the electronic device 10 is not unlocked, thereby judging that the user has not got up or is not waking up. Therefore, it is necessary to alert the user through the first alarm clock 11.

具体的,将第二时刻,比如早晨7:30设定为第一闹钟11的提醒时刻,在到达该早晨7:30时第一闹钟11振动且响铃,以提醒用户起床。Specifically, the second moment, such as 7:30 in the morning, is set as the reminding moment of the first alarm clock 11, and the first alarm 11 vibrates and rings when the 7:30 in the morning is reached to remind the user to wake up.

从而,本发明实施例通过在多天目标时间段中获取用户使用电子设备的习惯自动控制第一闹钟处于关闭状态或处于打开状态,实现智能控制第一闹钟。在一些实施例中,电子设备可以记录用户在一段历史时段内,比如连续多天的早晨首次启动或使用电子设备的习惯,并可以利用学习算法将记录的使用电子设备的习惯进行分析和学习处理,电子设备通过自行分析和学习的处理过程生成用户的使用习惯,并根据用户的使用习惯自动控制第一闹钟提醒或关闭。无需用户再手动关闭第一闹钟,减少第一闹钟对周围环境的干扰,节省第一闹钟提醒过程中所耗费的电量。Therefore, the embodiment of the present invention automatically controls the first alarm clock to be in an off state or in an open state by acquiring the habit of the user using the electronic device in the multi-day target time period, thereby implementing intelligent control of the first alarm clock. In some embodiments, the electronic device can record the user's habit of first launching or using the electronic device for a first time in a historical period, such as a continuous multi-day morning, and can use the learning algorithm to analyze and learn the recorded habits of using the electronic device. The electronic device generates the user's usage habit through the process of self-analysis and learning, and automatically controls the first alarm reminder or close according to the user's usage habits. The user does not need to manually turn off the first alarm clock, reduce the interference of the first alarm clock to the surrounding environment, and save the power consumed during the first alarm clock reminding process.

因此,本发明实施例提供的闹钟提醒方法,通过获取用户早晨对电子设备的使用习惯控制第一闹钟,具体的是根据用户每天早晨使用电子设备的时刻自动控制第一闹钟处于打开状态或处于关闭状态,无需额外设置第一闹钟以及关闭第一闹钟等操作,极大的方便使用,节省电子设备电量。Therefore, the alarm clock reminding method provided by the embodiment of the present invention controls the first alarm clock by acquiring the user's usage habits of the electronic device in the morning, and specifically controls the first alarm clock to be turned on or off according to the time when the user uses the electronic device every morning. Status, no need to set the first alarm clock and turn off the first alarm clock, etc., greatly convenient to use, saving the power of electronic equipment.

为便于更好的实施本发明实施例提供的闹钟提醒方法,本发明实施例还提供一种基于上述闹钟提醒方法的装置。其中名词的含义与上述闹钟提醒方法中的相同,具体实现细节可以参考方法实施例中的说明。In order to facilitate the implementation of the alarm clock reminding method provided by the embodiment of the present invention, the embodiment of the present invention further provides an apparatus based on the above alarm clock reminding method. The meaning of the noun is the same as that in the above alarm clock reminding method. For specific implementation details, refer to the description in the method embodiment.

请参阅图9,图9为本发明实施例提供的闹钟提醒装置的结构示意图,本发明实施例闹钟提醒装置200包括有第二获取模块204、第三获取模块205、第二生成模块206和第二控制模块207。Referring to FIG. 9 , FIG. 9 is a schematic structural diagram of an alarm clock reminding device according to an embodiment of the present invention. The alarm clock reminding device 200 includes a second acquiring module 204 , a third acquiring module 205 , a second generating module 206 , and a second Two control modules 207.

其中,第二获取模块204,用于获取在第一提醒时刻控制第一闹钟的第一控制信息,第一控制信息包括控制第一闹钟的关闭信息。The second obtaining module 204 is configured to acquire first control information for controlling the first alarm clock at the first reminding time, where the first control information includes closing information for controlling the first alarm clock.

第二获取模块204获取在第一提醒时刻控制第一闹钟的第一控制信息,该第一控制信息可以包括有控制第一闹钟关闭的关闭信息、控制第一闹钟推迟再提醒的再提醒信息或未对第一闹钟进行关闭处理的未处理信息。具体请参阅以上内容,在此不再赘述。The second obtaining module 204 acquires the first control information for controlling the first alarm clock at the first reminding time, and the first control information may include the closing information for controlling the first alarm to be turned off, the re-alert information for controlling the first alarm to be delayed, and then Unprocessed information that the first alarm has not been closed. Please refer to the above for details, and I will not repeat them here.

其中,第三获取模块205,用于获取第一闹钟在关闭过程中的特征信息。The third obtaining module 205 is configured to acquire feature information of the first alarm clock during the shutdown process.

在一些实施例中,该特征信息包括但不限于:用户在控制第一闹钟关闭过程中关闭第一闹钟所用的时长、用户在控制第一闹钟关闭过程中关闭第一闹钟所用的次数、第一闹钟在提醒过程中的提醒时长。具体请参阅以上内容,在此不再赘述。In some embodiments, the feature information includes, but is not limited to, a duration used by the user to turn off the first alarm during the first alarm off, and a number of times the user turns off the first alarm during the first alarm off period, first The reminder duration of the alarm during the reminder process. Please refer to the above for details, and I will not repeat them here.

其中,第二生成模块206,用于根据关闭信息和特征信息生成控制阈值。The second generation module 206 is configured to generate a control threshold according to the shutdown information and the feature information.

在一些实施例中,该控制阈值可以包括控制第一闹钟关闭的控制时间和控制第一闹钟关闭的控制次数。具体的,该控制时间具体为用户在控制第一闹钟关闭过程中关闭第一闹钟所用的时长,比如该控制时间为5秒。该控制次数具体为用户在控制第一闹钟关闭过程中关闭第一闹钟所用的次数,比如该控制次数为1次。In some embodiments, the control threshold can include a control time that controls the first alarm to turn off and a number of controls that control the first alarm to turn off. Specifically, the control time is specifically a duration used by the user to turn off the first alarm during the process of controlling the first alarm to be turned off, for example, the control time is 5 seconds. The number of times of control is specifically the number of times the user turns off the first alarm during the process of controlling the first alarm to be turned off, for example, the number of times of control is one.

其中,第二控制模块207,用于若控制阈值小于预设阈值,控制第二闹钟处于关闭状态。The second control module 207 is configured to control the second alarm to be in a closed state if the control threshold is less than the preset threshold.

在一些实施例中,若控制阈值为控制时间,该预设阈值包括预设时间,具体的,若控制时间小于预设时间,控制第二闹钟处于关闭状态。具体请参阅以上内容,在此不再赘述。In some embodiments, if the control threshold is a control time, the preset threshold includes a preset time. Specifically, if the control time is less than the preset time, the second alarm is controlled to be in a closed state. Please refer to the above for details, and I will not repeat them here.

在一些实施例中,若控制阈值为控制次数,该预设阈值包括预设次数,具体的,若控制次数小于预设次数,控制第二闹钟处于关闭状态。具体请参阅以上内容,在此不再赘述。In some embodiments, if the control threshold is the number of times of control, the preset threshold includes a preset number of times. Specifically, if the number of times of control is less than the preset number of times, the second alarm is controlled to be in a closed state. Please refer to the above for details, and I will not repeat them here.

在一些实施例中,若控制阈值为控制次数和控制时间,该预设阈值包括预设次数和预设次数,具体的,若控制时间小于预设时间以及若控制次数小于预设次数,控制第二闹钟处于关闭状态。具体请参阅以上内容,在此不再赘述。In some embodiments, if the control threshold is the control number and the control time, the preset threshold includes a preset number of times and a preset number of times. Specifically, if the control time is less than the preset time and if the number of times of control is less than the preset number, the control The second alarm clock is off. Please refer to the above for details, and I will not repeat them here.

以上为本发明实施例控制阈值小于预设阈值控制第二闹钟处于关闭状态的几种具体举例说明,需要说明的是,本发明实施例控制第二闹钟处于关闭状态的方式并不限于此。The foregoing is a specific example for the control threshold to be less than the preset threshold to control the second alarm to be in the closed state. It should be noted that the manner in which the second alarm is controlled to be in the closed state in the embodiment of the present invention is not limited thereto.

其中,第二控制模块207,还用于若控制阈值大于或等于预设阈值,控制第二闹钟处于打开状态。The second control module 207 is further configured to control the second alarm to be in an open state if the control threshold is greater than or equal to the preset threshold.

在一些实施例中,若控制阈值为控制时间,该预设阈值包括预设时间,具体的,若控制时间大于或等于预设时间,控制第二闹钟处于打开状态。具体请参阅以上内容,在此不再赘述。In some embodiments, if the control threshold is the control time, the preset threshold includes a preset time. Specifically, if the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state. Please refer to the above for details, and I will not repeat them here.

在一些实施例中,若控制阈值为控制次数,该预设阈值包括预设次数,具体的,若控制次数大于或等于预设次数,控制第二闹钟处于打开状态。具体请参阅以上内容,在此不再赘述。In some embodiments, if the control threshold is the number of times of control, the preset threshold includes a preset number of times. Specifically, if the number of times of control is greater than or equal to the preset number of times, the second alarm is controlled to be in an open state. Please refer to the above for details, and I will not repeat them here.

在一些实施例中,若控制阈值为控制次数和控制时间,该预设阈值包括预设次数和预设次数,具体的,若控制时间大于或等于预设时间以及若控制次数大于或等于预设次数,控制第二闹钟处于打开状态。具体请参阅以上内容,在此不再赘述。In some embodiments, if the control threshold is the control number and the control time, the preset threshold includes a preset number of times and a preset number of times, specifically, if the control time is greater than or equal to the preset time and if the number of times of control is greater than or equal to the preset The number of times, the second alarm is controlled to be on. Please refer to the above for details, and I will not repeat them here.

从而,本发明实施例第一获取模块204获取第一闹钟在提醒过程中用户关闭第一闹钟的关闭信息和特征信息,第二控制模块207根据用户关闭第一闹钟过程中的关闭信息和特征信息实现对第二闹钟的控制,实现智能控制第二闹钟。Therefore, the first obtaining module 204 of the embodiment of the present invention acquires the closing information and the feature information of the first alarm clock during the reminding process by the user, and the second control module 207 according to the closing information and the feature information in the process of turning off the first alarm clock by the user. The control of the second alarm clock is realized, and the second alarm clock is intelligently controlled.

在一些实施例中,闹钟提醒装置200可以记录用户在一段历史时段内,比如连续一个星期的早晨用户关闭第一闹钟的特征信息、习惯等,并可以利用学习算法将记录的特征信息、习惯等进行分析和学习处理,闹钟提醒装置200通过自行分析和学习处理过程生成控制第二闹钟的第二控制信息,并根据该第二控制信息控制第二闹钟处于关闭状态或处于打开状态。在用户手动关闭第一闹钟后,闹钟提醒装置200通过自学习和分析等处理自动判断用户是否起床,进而自动控制第二闹钟是否需要处于打开状态进行提醒。而当用户关闭第一闹钟后,已经起床,无需第二闹钟在提醒时刻继续提醒,则闹钟提醒装置200根据其自学习和自分析得出的第二控制信息控制第二闹钟处于关闭状态,无需用户再手动关闭第二闹钟,在方便用户使用的同时,减少噪声干扰,节省电子设备的电量。In some embodiments, the alarm reminder device 200 can record the feature information, habits, etc. of the user turning off the first alarm clock for a period of a historical period, such as the morning of a week, and can use the learning algorithm to record the feature information, habits, and the like. Performing analysis and learning processing, the alarm reminder device 200 generates second control information for controlling the second alarm clock through the self-analysis and learning process, and controls the second alarm to be in an off state or in an open state according to the second control information. After the user manually turns off the first alarm clock, the alarm reminder device 200 automatically determines whether the user wakes up through self-learning and analysis, and then automatically controls whether the second alarm needs to be in an open state for reminding. When the user turns off the first alarm clock and has waking up, the second alarm clock does not need to continue to remind at the reminding time, the alarm reminding device 200 controls the second alarm to be in the off state according to the second control information obtained by the self-learning and self-analysis, without The user then manually turns off the second alarm clock to reduce noise interference and save power of the electronic device while being convenient for the user.

综上所述,本发明提供的闹钟提醒装置200,第二获取模块204获取在第一提醒时刻控制第一闹钟的第一控制信息,第一控制信息包括控制第一闹钟的关闭信息;第三获取模块205获取第一闹钟在关闭过程中的特征信息;第二生成模块206根据关闭信息和特征信息生成控制阈值;若控制阈值小于预设阈值,第二控制模块204控制第二闹钟处于关闭状态;若控制阈值大于或等于预设阈值,第二控制模块204控制第二闹钟处于打开状态。本发明实施例通过用户关闭第一闹钟时的关闭信息和特征信息共同作用以自动控制第二闹钟,实现智能控制第二闹钟,到达第一闹钟的提醒时刻,从而在自动控制第一闹钟处于关闭状态时无需用户再因第二闹钟处于打开状态而手动关闭闹钟,减少用户已经起床或已经醒来第二闹钟仍然处于打开状态对周围环境的干扰,节省第二闹钟处于打开状态所耗费的电量。In summary, the alarm obtaining device 200 of the present invention, the second obtaining module 204 acquires first control information for controlling the first alarm clock at the first reminding time, the first control information includes the closing information for controlling the first alarm clock; The obtaining module 205 acquires the feature information of the first alarm clock during the closing process; the second generating module 206 generates the control threshold according to the closing information and the feature information; if the control threshold is less than the preset threshold, the second control module 204 controls the second alarm to be in the closed state. If the control threshold is greater than or equal to the preset threshold, the second control module 204 controls the second alarm to be in an open state. In the embodiment of the present invention, the closing information and the feature information when the user turns off the first alarm clock cooperate to automatically control the second alarm clock, and realize the intelligent control of the second alarm clock to reach the reminding moment of the first alarm clock, thereby automatically controlling the first alarm clock to be turned off. In the state, the user does not need to manually turn off the alarm because the second alarm is turned on, which reduces the interference that the user has gotten up or has woken up to the second alarm while still being in the open state, and saves the power consumed by the second alarm.

在一些实施例中,请参阅图10,图10为本发明实施例提供的闹钟提醒装置的另一结构示意图,该闹钟提醒装置200还可以包括发送模块208、接收模块209和确定模块210。In another embodiment, please refer to FIG. 10. FIG. 10 is another schematic structural diagram of an alarm clock reminding apparatus according to an embodiment of the present invention. The alarm reminding apparatus 200 may further include a sending module 208, a receiving module 209, and a determining module 210.

其中,发送模块208,用于在第一闹钟处于关闭状态,发出语音询问信息。The sending module 208 is configured to send voice inquiry information when the first alarm is in a closed state.

其中,接收模块209,用于接收语音答复信息。The receiving module 209 is configured to receive voice reply information.

其中,确定模块210,用于若接收模块209接收到语音答复信息,则根据语音答复信息确定对应的语音指令。The determining module 210 is configured to determine, according to the voice reply information, a corresponding voice command if the receiving module 209 receives the voice reply information.

第二控制模块207,还用于根据语音指令控制第二闹钟。The second control module 207 is further configured to control the second alarm clock according to the voice instruction.

第二控制模块207,还用于若语音接收模块未接收到语音答复信息,则控制第二闹钟处于打开状态。The second control module 207 is further configured to control the second alarm to be in an open state if the voice receiving module does not receive the voice reply information.

具体的,在第一闹钟处于关闭状态,也就是当第一闹钟在提醒过程中,用户将第一闹钟关闭,此时发送模块208发出语音询问信息,该语音询问信息比如“主人起床了吗?”、“主人第二闹钟是否继续提醒?”等等。该语音询问信息主要询问用户是否起床或第二闹钟是否需要进行提醒。该语音答复信息比如“哥起床啦”、“第二闹钟不再提醒”等等。若接收模块209未接收到语音答复信息,则表示用户仍然在睡觉,不想回答,第二控制模块207控制第二闹钟处于打开状态,在到达第二闹钟的提醒时刻第二闹钟进行提醒。而若接收模块209接收到语音答复信息,则确定模块210根据语音答复信息确认语音指令,该语音指令比如为“起床”、“没起床”、“提醒”、“不再提醒”等等。从而第二控制模块207根据对应的语音指令相应的控制第二闹钟。Specifically, when the first alarm clock is in the off state, that is, when the first alarm clock is in the reminding process, the user turns off the first alarm clock, and then the sending module 208 sends a voice inquiry message, such as “Does the master get up? ", "Does the owner's second alarm continue to remind?" and so on. The voice inquiry message mainly asks the user whether to wake up or whether the second alarm needs to be reminded. The voice reply information such as "Brother gets up", "The second alarm is no longer reminded" and the like. If the receiving module 209 does not receive the voice reply message, it indicates that the user is still sleeping and does not want to answer. The second control module 207 controls the second alarm clock to be in an open state, and the second alarm clock is alerted when the second alarm clock is reached. If the receiving module 209 receives the voice reply information, the determining module 210 confirms the voice command according to the voice reply information, such as "getting out", "not getting up", "remicing", "no more reminding", and the like. Therefore, the second control module 207 controls the second alarm clock correspondingly according to the corresponding voice instruction.

更具体的,请参阅图4及以上内容,在此不再赘述。For more details, please refer to FIG. 4 and the above, and details are not described herein again.

可以理解的是,用户早晨起床后一般先上厕所,或先洗漱。在此过程中大多数用户不使用电子设备,比如不使用手机。此时若第二闹钟的提醒时刻到达,第二闹钟进行提醒,而用户已经起床,无需第二闹钟再继续提醒,以免形成噪声干扰,浪费电子设备电量。此时,用户可以在厕所或其它位置通过语音控制第二闹钟停止提醒,也就是通过语音关闭第二闹钟。Understandably, the user usually goes to the toilet after getting up in the morning, or washes first. Most users do not use electronic devices during this process, such as not using a mobile phone. At this time, if the reminding time of the second alarm clock arrives, the second alarm clock is reminded, and the user has already got up, and the second alarm clock is not needed to continue the reminding, so as to avoid noise interference and waste the electronic device power. At this time, the user can stop the reminder by voice control of the second alarm clock in the toilet or other location, that is, turn off the second alarm clock by voice.

本发明实施例根据用户关闭第一闹钟的关闭信息和特征信息,以及根据接收到的语音答复信息共同控制第二闹钟,控制效果更佳,防止仅根据第一闹钟的关闭信息和特征信息实现对第二闹钟的错误控制。本发明实施例进一步根据语音答复信息。In the embodiment of the present invention, according to the closing information and the feature information of the first alarm clock being turned off by the user, and the second alarm clock is jointly controlled according to the received voice reply information, the control effect is better, and the closing information and the feature information of the first alarm clock are prevented from being implemented only. Error control of the second alarm clock. Embodiments of the present invention further respond to information based on voice.

需要说明的是,本发明实施例控制第二闹钟的方式并不限于根据用户对第一闹钟的控制时的控制信息以及电子设备接收的语音答复信息。比如:对第二闹钟的控制方式还可以基于用户在一段历史时间中控制第二闹钟的历史信息结合以上第一控制信息、特征信息及语言答复信息等共同控制第二闹钟,更进一步提高准确性。It should be noted that the manner of controlling the second alarm clock in the embodiment of the present invention is not limited to the control information when the user controls the first alarm clock and the voice reply information received by the electronic device. For example, the control method of the second alarm clock may further control the second alarm clock based on the historical information of the second alarm clock controlled by the user in a historical period, and the second alarm clock is jointly controlled by the first control information, the characteristic information and the language reply information, thereby further improving the accuracy. .

具体的,请参阅图10,该闹钟提醒装置200还包括第四获取模块211。Specifically, referring to FIG. 10 , the alarm reminder device 200 further includes a fourth obtaining module 211 .

该第四获取模块211,用于获取用户一段历史时段内,控制第二闹钟的第二控制信息。The fourth obtaining module 211 is configured to acquire second control information of the second alarm clock during a historical period of the user.

第二控制模块207,还用于根据第二控制信息控制第二闹钟。The second control module 207 is further configured to control the second alarm clock according to the second control information.

具体的,若用户连续多次在第一闹钟提醒过程中关闭第一闹钟,且同时到控制第二闹钟处于关闭状态,并在第二闹钟的提醒时刻过后再次控制第二闹钟处于打开状态。则当用户再次控制第一闹钟关闭时,第二控制模块207自动控制第二闹钟处于关闭状态,并在第二闹钟提醒时刻过后再控制第二闹钟处于打开状态。Specifically, if the user turns off the first alarm clock in the first alarm reminder process for a plurality of times, and simultaneously controls the second alarm clock to be in the off state, and controls the second alarm clock to be in the open state again after the reminding time of the second alarm clock expires. Then, when the user again controls the first alarm to be turned off, the second control module 207 automatically controls the second alarm to be in the off state, and then controls the second alarm to be in the on state after the second alarm reminder has elapsed.

请参阅图11,图11为本发明实施例提供的闹钟提醒装置的又一结构示意图,本发明实施例闹钟提醒装置200还包括有第一获取模块201、第一生成模块202和第一控制模块203。FIG. 11 is a schematic diagram of another structure of an alarm clock reminding device according to an embodiment of the present invention. The alarm clock reminding device 200 further includes a first acquiring module 201, a first generating module 202, and a first control module. 203.

第一获取模块201,用于在至少两天的相同目标时间段中获取电子设备首次被触发的至少两个第一时刻。The first obtaining module 201 is configured to acquire at least two first moments when the electronic device is triggered for the first time in the same target time period of at least two days.

其中,目标时间段具体为用户需要被提醒的时间段,比如通过第一闹钟提醒用户起床,该目标时间段设置为早晨6:00-7:00、6:30-7:00、7:00-8:00等,该目标时间段的时间间隔值可以为30分钟、1小时、1个半小时等等。本发明实施例的目标时间段以早晨7:00-8:00为例进行详细说明。The target time period is specifically a time period that the user needs to be reminded, for example, the first alarm clock is used to remind the user to wake up, and the target time period is set to 6:00-7:00, 6:30-7:00, 7:00 in the morning. -8:00, etc., the time interval value of the target time period may be 30 minutes, 1 hour, 1 half hour, and the like. The target time period of the embodiment of the present invention is described in detail by taking 7:00-8:00 in the morning as an example.

其中,目标时间段中电子设备首次被触发具体为目标时间段中电子设备首次被使用。比如:目标时间段中电子设备的物理开关按键首次被按压,启动电子设备处于亮屏状态,从而,第一时刻则为在目标时间段中电子设备的物理开关按键首次被按压的时刻。The electronic device is triggered for the first time in the target time period, specifically, the electronic device is used for the first time in the target time period. For example, the physical switch button of the electronic device is pressed for the first time in the target time period, and the electronic device is turned on, so that the first moment is the time when the physical switch button of the electronic device is pressed for the first time in the target time period.

可以理解的是,在早晨醒来时,用户的第一件事情常常是按压电子设备的物理开关按键,比如手机的物理开关按键,使得手机处于亮屏状态,用户通过手机屏幕了解到具体时间,然后用户根据看到的时间选择继续睡觉,还是起床。Understandably, when waking up in the morning, the user's first thing is often to press the physical switch button of the electronic device, such as the physical switch button of the mobile phone, so that the mobile phone is in a bright screen state, and the user knows the specific time through the mobile phone screen. Then the user chooses to continue to sleep according to the time they see, or to get up.

然而,对于一些用户早晨醒来时,不去按压电子设备的物理开关按键而直接通过指纹解锁等解锁方式对电子设备进行解锁,比如对手机进行解锁。为此,目标时间段中电子设备首次被触发具体为目标时间段中电子设备首次被使用还比如:目标时间段中电子设备首次被解锁,解锁后进入到电子设备的主界面,从而,该第一时刻则为在目标时间段中电子设备首次被解锁的时刻。However, for some users to wake up in the morning, the electronic device is unlocked by pressing the physical unlocking button of the electronic device without pressing the physical switch button of the electronic device, such as unlocking the mobile phone. For this reason, the electronic device is triggered for the first time in the target time period, specifically, the electronic device is used for the first time in the target time period. For example, the electronic device is unlocked for the first time in the target time period, and then unlocks and enters the main interface of the electronic device, thereby The moment is the moment when the electronic device is unlocked for the first time in the target time period.

需要说明的是,本发明实施例当在目标时间段中,电子设备的物理开关按键首次被按压,以及电子设备首次被解锁,比如,用户在目标时间段中先按压电子设备的物理开关按键,然后通过密码解锁的方式进入到电子设备的主界面,从而可判断出用户解锁进入主界面并非用于查看时间,而是为了查看电子设备内的内容,进而可以判断出用户已经醒来或已经起床。而用户在按压电子设备的物理开关按键后还有可能继续再睡。从而,本发明实施例在这种情况下,第一时刻为该电子设备首次被解锁的时刻。It should be noted that, in the embodiment of the present invention, when the physical switch button of the electronic device is pressed for the first time and the electronic device is unlocked for the first time in the target time period, for example, the user first presses the physical switch button of the electronic device in the target time period, and then passes The method of unlocking the password enters the main interface of the electronic device, so that it can be determined that the user unlocks the main interface, not for viewing the time, but for viewing the content in the electronic device, and then can determine that the user has woken up or has already gotten out of bed. The user may continue to sleep after pressing the physical switch button of the electronic device. Thus, in this case, the first moment is the moment when the electronic device is unlocked for the first time.

为了将第一时刻设定为用户已经醒来的时刻,进一步的,当用户解锁电子设备进入到电子设备的主界面后,电子设备内的后台程序可能被唤醒而处于交互状态,或电子设备内的其它应用程序可能被启动而处于交互状态。在此,目标时间段中电子设备首次被触发具体为目标时间段中电子设备首次被使用还比如:电子设备内的应用程序被首次启动或被首次处于交互状态,从而,第一时刻为电子设备内的应用程序首次被启动或被首次处于交互状态的时刻。In order to set the first moment as the moment that the user has woken up, further, when the user unlocks the electronic device and enters the main interface of the electronic device, the background program in the electronic device may be awakened to be in an interactive state, or in the electronic device. Other applications may be launched and in an interactive state. Here, the electronic device is triggered for the first time in the target time period, specifically, the electronic device is used for the first time in the target time period. For example, the application in the electronic device is started for the first time or is in the interactive state for the first time, and thus, the first time is the electronic device. The moment the application is launched for the first time or is in the first interaction state.

在该目标时间段中,电子设备可能会被多次触发,在此,为节省工作量,减少资源占用,本发明实施例仅获取该电子设备被首次触发的第一时刻。该第一时刻位于目标时间段,以目标时间段为早晨7:00-8:00为例,则该第一时刻在早晨7:00-8:00之间,比如第一时刻为:7:10、7:15、7:20、7:30等。During the target time period, the electronic device may be triggered multiple times. In this embodiment, in order to save the workload and reduce the resource occupation, the embodiment of the present invention only obtains the first time when the electronic device is triggered for the first time. The first time is located in the target time period, and the target time period is 7:00-8:00 in the morning. The first time is between 7:00 and 8:00 in the morning, for example, the first time is: 7: 10, 7:15, 7:20, 7:30, etc.

在一些实施例中,在至少两天的相同目标时间段中获取电子设备首次被触发的至少两个第一时刻,可以在几天内,比如一个星期内的相同目标时间段中获取电子设备首次被触发的7个第一时刻;也可以在十几天或几十天,比如一个月内的相同目标时间段中获取电子设备首次被触发的多个第一时刻。进一步的,连续多天内的相同目标时间段中获取电子设备每一天在目标时间段中的多个第一时刻。然后,将获取到每一天的第一时刻进行统计,以进行下一步操作。In some embodiments, acquiring at least two first moments when the electronic device is triggered for the first time in the same target time period of at least two days, the electronic device may be acquired for the first time in a few days, such as the same target time period within one week. 7 first moments that are triggered; a plurality of first moments when the electronic device is triggered for the first time may also be acquired in ten or several days, such as the same target time period within one month. Further, the plurality of first moments in the target time period are acquired each day of the electronic device in the same target time period for consecutive days. Then, the first moment of each day is obtained for statistics to perform the next operation.

需要说明的是,每一天的目标时间段中对应一个第一时刻,多天的各个第一时刻可以相同,也可以不同。It should be noted that each of the target time segments of each day corresponds to a first time, and the first moments of the multiple days may be the same or different.

第一生成模块202,用于根据至少两个所述第一时刻生成第二时刻,所述第二时刻早于或等于至少两个所述第一时刻中最大的时刻。The first generating module 202 is configured to generate a second moment according to the at least two first moments, where the second moment is earlier than or equal to a maximum moment of the at least two of the first moments.

该第一生成模块202还可以对至少两个第一时刻中是否有重复的时刻进行判断,若判断结果中至少两个第一时刻中有重复的时刻,则第二时刻为至少两个第一时刻中重复频率最高的时刻。比如:第一天的第一时刻为早晨7:28,第二天的第一时刻为早晨7:28,第三天的第一时刻为早晨7:31,则第一天和第二天的两个第一时刻重复,从而将早晨7:28设定为第二时刻。而当有多个第一时刻分别重复,且重复频率相同,则第一生成模块202将所有第一时刻的平均值设定为第二时刻。比如:第一天的第一时刻为早晨7:28,第二天的第一时刻为早晨7:28,第三天的第一时刻为早晨7:31,第四天的第一时刻为早晨7:31,则有两个第一时刻的重复相同。The first generation module 202 may further determine whether there is a repetition time in at least two first moments, and if there are duplicate moments in at least two first moments in the determination result, the second moment is at least two first The most frequent moment in the moment. For example, the first moment on the first day is 7:28 in the morning, the first moment on the second day is 7:28 in the morning, and the first moment on the third day is 7:31 in the morning, the first day and the second day. The two first moments are repeated, thereby setting the morning 7:28 as the second moment. When a plurality of first moments are repeated and the repetition frequency is the same, the first generation module 202 sets the average value of all the first moments to the second moment. For example, the first moment on the first day is 7:28 in the morning, the first moment on the second day is 7:28 in the morning, the first moment on the third day is 7:31 in the morning, and the first moment in the fourth day is morning. At 7:31, there are two repetitions of the first moment.

在一些实施例中,第二时刻为至少两个第一时刻的平均时刻,也就是说,第二时刻为至少两个第一时刻的平均值,第二时刻为在多天内,具体的是连续多天内在目标时间段中的所获取电子设备每一天第一时刻的平均值。比如:连续3天内,第一天在目标时间段中获取到电子设备的第一时刻为早晨7:29,第二天在目标时间段中获取到电子设备的第一时刻为早晨7:30,第三天在预设时间内获取到电子设备的第一时刻为早晨7:31,则该连续三天的第一时刻的平均时刻为早晨7:30,因此,第二时刻等于早晨7:30。In some embodiments, the second moment is an average moment of at least two first moments, that is, the second moment is an average of at least two first moments, and the second moment is a plurality of days, specifically continuous The average of the first time of each day of the acquired electronic device in the target time period in multiple days. For example, for the first 3 days, the first time to acquire the electronic device in the target time period is 7:29 in the morning, and the first time to acquire the electronic device in the target time period is 7:30 in the morning. On the third day, the first time when the electronic device is acquired within a preset time is 7:31 in the morning, and the average time of the first time of the three consecutive days is 7:30 in the morning, so the second time is equal to 7:30 in the morning. .

需要说明的是,本发明实施例可以优先以相同第一时刻频率最高的时刻作为第二时刻,而当第一时刻没有相同的时刻,或者重复频率相同时,则将所有第一时刻的平均值作为第二时刻。It should be noted that, in the embodiment of the present invention, the time with the highest frequency at the same first time is preferentially used as the second time, and when the first time does not have the same time, or the repetition frequency is the same, the average of all the first moments is used. As the second moment.

第一控制模块203,用于当在目标时间段中、且在第二时刻之前电子设备被触发,则控制第一闹钟处于关闭状态。The first control module 203 is configured to control the first alarm to be in an off state when the electronic device is triggered in the target time period and before the second time.

从而,通过在多天目标时间段中第一获取模块201获取用户使用电子设备的习惯,第一控制模块203自动控制第一闹钟处于关闭状态,实现智能控制第一闹钟。Therefore, by acquiring the habit of the user using the electronic device in the multi-day target time period, the first control module 203 automatically controls the first alarm to be in the off state, so as to implement intelligent control of the first alarm clock.

请一并参阅图7,本发明实施例可以根据第一控制模块203检测电子设备10是否被触发。Referring to FIG. 7 together, the embodiment of the present invention may detect whether the electronic device 10 is triggered according to the first control module 203.

其中,在到达目标时间段时,具体的比如早晨7:00-8:00第一控制模块203开始对电子设备进行检测,同时,还需在第二时刻之前对电子设备进行检测,该第二时刻比如为早晨7:30,则第一控制模块203具体在早晨7:00-7:30检测出电子设备是否被触发,其中电子设备被触发请参阅以上内容在此不再赘述,而电子设备未被触发,则表明电子设备的物理开关按键未被按压,以及电子设备未被解锁。当第一控制模块203在目标时间段中、且在第二时刻之前检测到电子设备被触发,则第一控制模块203自动判断出用户已经醒来,比如:已经起床或在使用电子设备10,从而第一控制模块203进一步自动控制第一闹钟处于关闭状态,到达第一闹钟的提醒时刻,在自动控制第一闹钟处于关闭状态时无需用户再因第一闹钟处于打开状态而手动关闭第一闹钟,减少用户已经起床或已经醒来第一闹钟仍然处于打开状态对周围环境的干扰,节省第一闹钟处于打开状态所耗费的电量。When the target time period is reached, the first control module 203 starts to detect the electronic device, for example, at 7:00-8:00 in the morning, and at the same time, the electronic device needs to be detected before the second time, the second The time is, for example, 7:30 in the morning, the first control module 203 detects whether the electronic device is triggered, in particular, at 7:00-7:30 in the morning, wherein the electronic device is triggered. Please refer to the above content, and the electronic device is not described herein again. If it is not triggered, it indicates that the physical switch button of the electronic device is not pressed, and the electronic device is not unlocked. When the first control module 203 detects that the electronic device is triggered in the target time period and before the second time, the first control module 203 automatically determines that the user has woken up, for example, has already got up or is using the electronic device 10, Therefore, the first control module 203 further automatically controls the first alarm clock to be in the off state, and reaches the reminder moment of the first alarm clock. When the first alarm clock is automatically turned off, the user does not need to manually turn off the first alarm clock because the first alarm clock is in the open state. To reduce the interference that the user has already got up or has woken up to the surrounding environment when the first alarm clock is still on, saving the power consumed by the first alarm clock being turned on.

请一并参阅图8,在目标时间段中、且在第二时刻之前,具体的比如在早晨7:00-7:30,第一控制模块203检测到电子设备10的物理开关按键被按压,然后检测到电子设备10被解锁,进一步的,电子设备10解锁后第一控制模块203检测到电子设备10的微信应用程序被唤醒并处于交互状态。比如用户小花进入其微信应用程序的朋友圈,并在其朋友圈内看到其好友小白发表的状态“新的一天,新的开始,坚持晨跑”,以及看到其好友小强发表的状态“上班路风雨无阻”。Referring to FIG. 8 together, in the target time period and before the second time, specifically, for example, at 7:00-7:30 in the morning, the first control module 203 detects that the physical switch button of the electronic device 10 is pressed. It is then detected that the electronic device 10 is unlocked. Further, after the electronic device 10 is unlocked, the first control module 203 detects that the WeChat application of the electronic device 10 is woken up and is in an interactive state. For example, the user enters the circle of friends of the WeChat app, and sees the status of his friend Xiaobai in his circle of friends, “New day, new start, insist on morning run”, and see the status of his friend Xiaoqiang. "The road to work is rain or shine."

第一控制模块203,还用于当在目标时间段中、且在第二时刻之前电子设备未被触发,则将第二时刻设定为第一闹钟提醒时刻,到达第一闹钟提醒时刻时控制第一闹钟处于打开状态,进行提醒。The first control module 203 is further configured to: when the electronic device is not triggered in the target time period and before the second time, set the second time as the first alarm time, and control when the first alarm time is reached The first alarm is turned on and reminded.

其中,当在目标时间段中、且在第二时刻之前,比如早晨7:00-7:30第一控制模块203未检测到电子设备11被触发,则第一控制模块203判断出电子设备11的物理开关按键未被按压,电子设备11未被解锁,从而第一控制模块203判断出用户没有起床或没有醒来。因此,需要通过第一控制模块203控制第一闹钟11提醒用户。Wherein, when the first control module 203 does not detect that the electronic device 11 is triggered in the target time period and before the second time, for example, 7:00-7:30 in the morning, the first control module 203 determines the electronic device 11 The physical switch button is not pressed, and the electronic device 11 is not unlocked, so that the first control module 203 determines that the user has not got up or is not awake. Therefore, the first alarm clock 11 needs to be controlled by the first control module 203 to alert the user.

具体的,将第二时刻,比如早晨7:30设定为第一闹钟11的提醒时刻,在到达该早晨7:30时第一控制模块203控制第一闹钟11振动且响铃,以提醒用户起床。Specifically, the second moment, such as 7:30 in the morning, is set as the reminding moment of the first alarm clock 11. When the morning 7:30 is reached, the first control module 203 controls the first alarm 11 to vibrate and ring to remind the user. get up.

从而,本发明实施例通过在多天目标时间段中获取用户使用电子设备的习惯自动控制第一闹钟处于关闭状态或处于打开状态,实现智能控制第一闹钟。Therefore, the embodiment of the present invention automatically controls the first alarm clock to be in an off state or in an open state by acquiring the habit of the user using the electronic device in the multi-day target time period, thereby implementing intelligent control of the first alarm clock.

在一些实施例中,电子设备10可以记录用户在一段历史时段内,比如连续多天的早晨首次启动或使用电子设备的习惯,并可以利用学习算法将记录的使用电子设备的习惯进行分析和学习处理,电子设备通过自行分析和学习的处理过程生成用户的使用习惯,并根据用户的使用习惯自动控制第一闹钟提醒或关闭。无需用户再手动关闭第一闹钟,减少第一闹钟对周围环境的干扰,节省第一闹钟提醒过程中所耗费的电量。In some embodiments, the electronic device 10 can record the user's habit of first launching or using the electronic device for a first time in a historical period, such as a morning of consecutive days, and can use the learning algorithm to analyze and learn the recorded habits of using the electronic device. Processing, the electronic device generates the user's usage habit through the process of self-analysis and learning, and automatically controls the first alarm reminder or close according to the user's usage habits. The user does not need to manually turn off the first alarm clock, reduce the interference of the first alarm clock to the surrounding environment, and save the power consumed during the first alarm clock reminding process.

因此,本发明实施例提供的闹钟提醒装置,通过第一获取模块201获取用户早晨对电子设备的使用习惯控制第一闹钟,具体的是根据用户每天早晨使用电子设备的时刻第一控制模块203自动控制第一闹钟处于打开状态或处于关闭状态,无需额外设置第一闹钟以及关闭第一闹钟等操作,极大的方便使用,节省电子设备电量。Therefore, the alarm clock reminding device provided by the embodiment of the present invention acquires the first alarm clock of the user's usage habits of the electronic device in the morning by the first obtaining module 201, and specifically, the first control module 203 automatically according to the time when the user uses the electronic device every morning. Controlling the first alarm clock to be in an open state or in a closed state, without the need to additionally set a first alarm clock and turn off the first alarm clock, etc., is extremely convenient to use, and saves power of the electronic device.

本发明实施例还提供一种电子设备300。该电子设备300可以是智能手机、平板电脑等设备。如图12所示,图12为本发明实施例提供的电子设备的结构示意图,电子设备300包括:处理器301和存储器302。其中,处理器301与存储器302电性连接。An embodiment of the present invention further provides an electronic device 300. The electronic device 300 can be a device such as a smartphone or a tablet. As shown in FIG. 12, FIG. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 300 includes a processor 301 and a memory 302. The processor 301 is electrically connected to the memory 302.

处理器301是电子设备300的控制中心,利用各种接口和线路连接整个电子设备300的各个部分,通过运行或加载存储在存储器302内的应用程序,以及调用存储在存储器302内的数据,执行电子设备300的各种功能和处理数据,从而对电子设备300进行整体监控。The processor 301 is a control center of the electronic device 300, and connects various parts of the entire electronic device 300 using various interfaces and lines, by executing or loading an application stored in the memory 302, and calling data stored in the memory 302, executing The various functions and processing data of the electronic device 300 enable overall monitoring of the electronic device 300.

在本实施例中,电子设备300中的处理器301会按照如下的步骤,将一个或一个以上的应用程序的进程对应的指令加载到存储器302中,并由处理器301来运行存储在存储器302中的应用程序,从而实现各种功能:In this embodiment, the processor 301 in the electronic device 300 loads the instructions corresponding to the process of one or more applications into the memory 302 according to the following steps, and is stored in the memory 302 by the processor 301. In the application, thus implementing various functions:

获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;

获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;

根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;

若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;

若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.

在一些实施例中,该处理器301还用于,In some embodiments, the processor 301 is further configured to:

所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;The control threshold includes a control time for controlling the first alarm to be turned off, and the preset threshold includes a preset time;

所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;If the control time is less than the preset time, controlling the second alarm to be in an off state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。If the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state.

在一些实施例中,该处理器301还用于,In some embodiments, the processor 301 is further configured to:

所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;The control threshold includes a number of times of controlling the first alarm to be turned off, and the preset threshold includes a preset number of times;

所述若所述控制阈值小于预设阈值时,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:

若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;If the number of times of control is less than a preset number of times, controlling the second alarm to be in a closed state;

所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:

若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。If the number of control times is greater than or equal to the preset number of times, controlling the second alarm clock to be in an open state.

在一些实施例中,该处理器301还用于,In some embodiments, the processor 301 is further configured to:

所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤之前,所述闹钟提醒方法还包括:The alarm reminder method further includes: if the control threshold is less than a preset threshold, before the step of controlling the second alarm to be in a closed state, the alarm reminder method further includes:

发出语音询问信息;Send a voice inquiry message;

若未接收到语音答复信息,则控制所述第二闹钟处于打开状态。If the voice reply message is not received, the second alarm is controlled to be in an open state.

在一些实施例中,该处理器301还用于,所述发出语音询问信息的步骤之后,所述闹钟提醒方法还包括:In some embodiments, the processor 301 is further configured to: after the step of issuing the voice query information, the alarm clock reminding method further includes:

若接收到所述语音答复信息,则根据所述语音答复信息确定对应的语音指令;And if the voice reply information is received, determining a corresponding voice instruction according to the voice reply information;

根据所述语音指令控制所述第二闹钟。Controlling the second alarm clock according to the voice command.

在一些实施例中,该处理器301还用于,所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤之前,所述闹钟提醒方法还包括:In some embodiments, the processor 301 is further configured to: before the step of controlling the second alarm to be in a closed state, if the control threshold is less than a preset threshold, the alarm reminder method further includes:

获取用户一段历史时段内,控制所述第二闹钟的第二控制信息;Obtaining, by the user, second control information of the second alarm clock during a historical period;

根据所述第二控制信息控制所述第二闹钟。Controlling the second alarm clock according to the second control information.

在一些实施例中,该处理器301还用于,所述获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息的步骤之前,所述闹钟提醒方法还包括:In some embodiments, the processor 301 is further configured to: acquire the first control information that controls the first alarm clock at the first reminding moment, where the first control information includes the step of controlling the closing information of the first alarm clock. Previously, the alarm reminder method further includes:

获取预设时间内电子设备在目标时间段中首次被触发的所有第一时刻;Obtaining all first moments in which the electronic device is triggered for the first time in the target time period within a preset time period;

根据所述第一时刻生成第二时刻,所述第二时刻早于或等于所述第一时刻中最大的时刻;Generating a second time according to the first time, the second time being earlier than or equal to a maximum time of the first time;

当在所述目标时间段中、且在所述第二时刻之前所述电子设备被触发,则控制所述第一闹钟处于关闭状态;Controlling the first alarm clock to be in an off state when the electronic device is triggered in the target time period and before the second time instant;

当在所述目标时间段中、且在所述第二时刻之前所述电子设备未被触发,则将所述第二时刻设定为第一闹钟提醒时刻,到达所述第一闹钟提醒时刻时控制所述第一闹钟处于打开状态。When the electronic device is not triggered in the target time period and before the second time, the second time is set as a first alarm reminding moment, and when the first alarm reminding moment is reached Controlling the first alarm clock to be in an open state.

存储器302可用于存储应用程序和数据。存储器302存储的应用程序中包含有可在处理器301中执行的指令。应用程序可以组成各种功能模块。处理器301通过运行存储在存储器302的应用程序,从而执行各种功能应用以及数据处理。Memory 302 can be used to store applications and data. The application stored in the memory 302 contains instructions executable in the processor 301. Applications can form various functional modules. The processor 301 executes various functional applications and data processing by running an application stored in the memory 302.

在一些实施例中,请一并参阅图13,图13为电子设备的另一结构示意图,电子设备300还包括:射频电路303、显示屏304、控制电路305、输入单元306、音频电路307、传感器308以及电源309。其中,处理器301分别与射频电路303、显示屏304、控制电路305、输入单元306、音频电路307、传感器308以及电源309电性连接。In some embodiments, please refer to FIG. 13 . FIG. 13 is another schematic structural diagram of an electronic device. The electronic device 300 further includes: a radio frequency circuit 303, a display screen 304, a control circuit 305, an input unit 306, and an audio circuit 307. Sensor 308 and power source 309. The processor 301 is electrically connected to the radio frequency circuit 303, the display screen 304, the control circuit 305, the input unit 306, the audio circuit 307, the sensor 308, and the power source 309, respectively.

射频电路303用于收发射频信号,以通过无线通信网络与服务器或其他电子设备进行通信。The radio frequency circuit 303 is configured to transceive radio frequency signals to communicate with a server or other electronic device through a wireless communication network.

显示屏304可用于显示由用户输入的信息或提供给用户的信息以及终端的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。Display screen 304 can be used to display information entered by the user or information provided to the user as well as various graphical user interfaces of the terminal, which can be composed of images, text, icons, video, and any combination thereof.

控制电路305与显示屏304电性连接,用于控制显示屏304显示信息。The control circuit 305 is electrically connected to the display screen 304 for controlling the display screen 304 to display information.

输入单元306可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The input unit 306 can be configured to receive input digits, character information, or user characteristic information (eg, fingerprints), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function controls.

音频电路307可通过扬声器、传声器提供用户与终端之间的音频接口。The audio circuit 307 can provide an audio interface between the user and the terminal through a speaker and a microphone.

传感器308用于采集外部环境信息。传感器28可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。Sensor 308 is used to collect external environmental information. Sensor 28 may include one or more of ambient brightness sensors, acceleration sensors, gyroscopes, and the like.

电源309用于给电子设备300的各个部件供电。在一些实施例中,电源309可以通过电源管理系统与处理器301逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Power source 309 is used to power various components of electronic device 300. In some embodiments, the power source 309 can be logically coupled to the processor 301 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.

尽管图13中未示出,电子设备300还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 13, the electronic device 300 may further include a camera, a Bluetooth module, and the like, and details are not described herein.

由上可知,本发明实施例提供了一种电子设备300,该电子设备300获取在第一提醒时刻控制第一闹钟的第一控制信息,第一控制信息包括控制第一闹钟的关闭信息;同时获取第一闹钟在关闭过程中的特征信息;然后根据关闭信息和特征信息生成控制阈值;若控制阈值小于预设阈值,控制第二闹钟处于关闭状态;若控制阈值大于或等于预设阈值,控制第二闹钟处于打开状态。本发明实施例通过用户关闭第一闹钟时的关闭信息和特征信息共同作用以自动控制第二闹钟,实现智能控制第二闹钟,到达第二闹钟的提醒时刻,从而在自动控制第一闹钟处于关闭状态时无需用户再因第二闹钟处于打开状态而手动关闭闹钟,减少用户已经起床或已经醒来第二闹钟仍然处于打开状态对周围环境的干扰,节省第二闹钟处于打开状态所耗费的电量。As can be seen from the above, an embodiment of the present invention provides an electronic device 300, which acquires first control information for controlling a first alarm clock at a first reminding time, where the first control information includes a closing information for controlling the first alarm clock; Obtaining feature information of the first alarm clock during the closing process; then generating a control threshold according to the closing information and the feature information; if the control threshold is less than the preset threshold, controlling the second alarm to be in a closed state; if the control threshold is greater than or equal to the preset threshold, the controlling The second alarm is on. In the embodiment of the present invention, the closing information and the feature information when the user turns off the first alarm clock cooperate to automatically control the second alarm clock, and realize the intelligent control of the second alarm clock and the reminding moment of reaching the second alarm clock, thereby automatically controlling the first alarm clock to be closed. In the state, the user does not need to manually turn off the alarm because the second alarm is turned on, which reduces the interference that the user has gotten up or has woken up to the second alarm while still being in the open state, and saves the power consumed by the second alarm.

本发明实施例还提供一种存储介质,该存储介质中存储有多条指令,该指令适于由处理器加载以执行上述任一实施例所述的闹钟提醒方法。The embodiment of the present invention further provides a storage medium, where the storage medium stores a plurality of instructions, and the instruction is adapted to be loaded by a processor to execute the alarm reminding method according to any one of the foregoing embodiments.

本领域普通技术人员可以理解,上述实施例的各种方法中的全部或部分步骤可以通过指令来完成,或通过指令控制相关的硬件来完成,该指令可以存储于一计算机可读存储介质中,如存储在电子设备的存储器中,并由电子设备内的至少一个处理器进行加载和执行。It will be understood by those skilled in the art that all or part of the steps of the various methods in the above embodiments may be completed by instructions or controlled by related hardware, which may be stored in a computer readable storage medium. For example, it is stored in a memory of the electronic device and loaded and executed by at least one processor in the electronic device.

需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读的介质中,该介质可以包括但不限于:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art may understand that all or part of the steps of the foregoing embodiments may be completed by a program to instruct related hardware, and the program may be stored in a computer readable medium. Media can include, but is not limited to, read-only memory (ROM, Read) Only Memory), Random Access Memory (RAM), disk or optical disk.

以上对本发明实施例提供的一种闹钟提醒方法和装置进行了详细介绍,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The alarm clock reminding method and device provided by the embodiments of the present invention are described in detail. The functional modules may be integrated into one processing chip, or each module may exist separately or may be integrated by two or more modules. In one module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. The principles and embodiments of the present invention are described herein with reference to specific examples. The description of the above embodiments is only for the purpose of understanding the method of the present invention and the core idea thereof. Also, those skilled in the art according to the present invention The present invention is not limited by the scope of the present invention.

Claims (20)

  1. 一种闹钟提醒方法,其包括:An alarm reminder method includes:
    获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;
    获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;
    根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;
    若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;
    若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.
  2. 根据权利要求1所述的闹钟提醒方法,其中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;The alarm reminder method according to claim 1, wherein the control threshold comprises a control time for controlling the first alarm to be turned off, and the preset threshold comprises a preset time;
    所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:
    若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;If the control time is less than the preset time, controlling the second alarm to be in an off state;
    所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:
    若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。If the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state.
  3. 根据权利要求1所述的闹钟提醒方法,其中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;The alarm reminder method according to claim 1, wherein the control threshold comprises controlling a number of times the first alarm is turned off, and the preset threshold comprises a preset number of times;
    所述若所述控制阈值小于预设阈值时,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:
    若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;If the number of times of control is less than a preset number of times, controlling the second alarm to be in a closed state;
    所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:
    若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。If the number of control times is greater than or equal to the preset number of times, controlling the second alarm clock to be in an open state.
  4. 根据权利要求1所述的闹钟提醒方法,其中,所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤之前,所述闹钟提醒方法还包括:The alarm clock reminding method according to claim 1, wherein the alarm reminding method further comprises: before the step of controlling the second alarm to be in a closed state, if the control threshold is less than a preset threshold, the method further includes:
    发出语音询问信息;Send a voice inquiry message;
    若未接收到语音答复信息,则控制所述第二闹钟处于打开状态。If the voice reply message is not received, the second alarm is controlled to be in an open state.
  5. 根据权利要求4所述的闹钟提醒方法,其中,所述发出语音询问信息的步骤之后,所述闹钟提醒方法还包括:The alarm clock reminding method according to claim 4, wherein after the step of issuing the voice query information, the alarm clock reminding method further comprises:
    若接收到所述语音答复信息,则根据所述语音答复信息确定对应的语音指令;And if the voice reply information is received, determining a corresponding voice instruction according to the voice reply information;
    根据所述语音指令控制所述第二闹钟。Controlling the second alarm clock according to the voice command.
  6. 根据权利要求1所述的闹钟提醒方法,其中,所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤之前,所述闹钟提醒方法还包括:The alarm clock reminding method according to claim 1, wherein the alarm reminding method further comprises: before the step of controlling the second alarm to be in a closed state, if the control threshold is less than a preset threshold, the method further includes:
    获取用户一段历史时段内,控制所述第二闹钟的第二控制信息;Obtaining, by the user, second control information of the second alarm clock during a historical period;
    根据所述第二控制信息控制所述第二闹钟。Controlling the second alarm clock according to the second control information.
  7. 根据权利要求1所述的闹钟提醒方法,其中,所述获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息的步骤之前,所述闹钟提醒方法还包括:The alarm clock reminding method according to claim 1, wherein the acquiring the first control information for controlling the first alarm clock at the first reminding moment, the first control information comprises the step of controlling the closing information of the first alarm clock The alarm reminder method further includes:
    获取预设时间内电子设备在目标时间段中首次被触发的所有第一时刻;Obtaining all first moments in which the electronic device is triggered for the first time in the target time period within a preset time period;
    根据所述第一时刻生成第二时刻,所述第二时刻早于或等于所述第一时刻中最大的时刻;Generating a second time according to the first time, the second time being earlier than or equal to a maximum time of the first time;
    当在所述目标时间段中、且在所述第二时刻之前所述电子设备被触发,则控制所述第一闹钟处于关闭状态;Controlling the first alarm clock to be in an off state when the electronic device is triggered in the target time period and before the second time instant;
    当在所述目标时间段中、且在所述第二时刻之前所述电子设备未被触发,则将所述第二时刻设定为第一闹钟提醒时刻,到达所述第一闹钟提醒时刻时控制所述第一闹钟处于打开状态。When the electronic device is not triggered in the target time period and before the second time, the second time is set as a first alarm reminding moment, and when the first alarm reminding moment is reached Controlling the first alarm clock to be in an open state.
  8. 一种闹钟提醒装置,其包括:An alarm reminder device includes:
    第二获取模块,用于获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;a second acquiring module, configured to acquire first control information that controls the first alarm clock at the first reminding moment, where the first control information includes: controlling the closing information of the first alarm clock;
    第三获取模块,用于获取所述第一闹钟在关闭过程中的特征信息;a third acquiring module, configured to acquire feature information of the first alarm clock during the closing process;
    第二生成模块,用于根据所述关闭信息和所述特征信息生成控制阈值;a second generating module, configured to generate a control threshold according to the closing information and the feature information;
    第二控制模块,用于若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;a second control module, configured to control the second alarm to be in a closed state if the control threshold is less than a preset threshold;
    所述第二控制模块,还用于若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the control threshold is greater than or equal to the preset threshold.
  9. 根据权利要求8所述的闹钟提醒装置,其中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;The alarm reminder device according to claim 8, wherein the control threshold comprises a control time for controlling the first alarm to be turned off, and the preset threshold comprises a preset time;
    所述第二控制模块,具体用于若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;The second control module is specifically configured to control the second alarm to be in a closed state if the control time is less than a preset time;
    所述第二控制模块,还具体用于若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the control time is greater than or equal to a preset time.
  10. 根据权利要求8所述的闹钟提醒装置,其中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;The alarm reminder device according to claim 8, wherein the control threshold comprises controlling a number of times the first alarm is turned off, the preset threshold comprising a preset number of times;
    所述第二控制模块,具体用于若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;The second control module is specifically configured to control the second alarm to be in a closed state if the number of control times is less than a preset number of times;
    所述第二控制模块,还具体用于若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the number of control times is greater than or equal to a preset number of times.
  11. 根据权利要求8所述的闹钟提醒装置,其中,所述闹钟提醒装置还包括发送模块和接收模块;The alarm reminder device according to claim 8, wherein the alarm reminder device further comprises a transmitting module and a receiving module;
    所述发送模块,用于在所述第一闹钟处于关闭状态,发出语音询问信息;The sending module is configured to send voice inquiry information when the first alarm clock is in a closed state;
    所述接收模块,用于接收语音答复信息;The receiving module is configured to receive voice reply information;
    所述第二控制模块,还用于若未接收到所述语音答复信息,则控制所述第二闹钟处于打开状态。The second control module is further configured to control the second alarm to be in an open state if the voice reply information is not received.
  12. 根据权利要求11所述的闹钟提醒装置,其中,所述闹钟提醒装置还包括确认模块;The alarm reminder device according to claim 11, wherein the alarm reminder device further comprises a confirmation module;
    所述确定模块,用于若接收到所述语音答复信息,则根据所述语音答复信息确定对应的语音指令;The determining module is configured to: if the voice reply information is received, determine a corresponding voice command according to the voice reply information;
    所述第二控制模块,还用于根据所述语音指令控制所述第二闹钟。The second control module is further configured to control the second alarm clock according to the voice instruction.
  13. 根据权利要求8所述的闹钟提醒装置,其中,所述闹钟提醒装置还包括第四获取模块;The alarm reminder device according to claim 8, wherein the alarm reminder device further comprises a fourth acquisition module;
    所述第四获取模块,用于获取用户一段历史时段内,控制所述第二闹钟的第二控制信息;The fourth acquiring module is configured to acquire second control information of the second alarm clock during a historical period of time;
    所述第二控制模块,还用于根据所述第二控制信息控制所述第二闹钟。The second control module is further configured to control the second alarm clock according to the second control information.
  14. 根据权利要求8所述的闹钟提醒装置,其中,所述闹钟提醒装置还包括:The alarm reminder device according to claim 8, wherein the alarm reminder device further comprises:
    第一获取模块,用于获取预设时间内电子设备在目标时间段中首次被触发的所有第一时刻;a first acquiring module, configured to acquire all first moments that the electronic device is triggered for the first time in the target time period in the preset time period;
    第一生成模块,用于根据所述第一时刻生成第二时刻,所述第二时刻早于或等于所述第一时刻中最大的时刻;a first generating module, configured to generate a second time according to the first time, where the second time is earlier than or equal to a maximum time of the first time;
    第一控制模块,用于当在所述目标时间段中、且在所述第二时刻之前所述电子设备被触发,则控制所述第一闹钟处于关闭状态;a first control module, configured to control the first alarm clock to be in a closed state when the electronic device is triggered in the target time period and before the second time;
    所述第一控制模块,还用于当在所述目标时间段中、且在所述第二时刻之前所述电子设备未被触发,则将所述第二时刻设定为第一闹钟提醒时刻,到达所述第一闹钟提醒时刻时控制所述第一闹钟处于打开状态。The first control module is further configured to set the second time as the first alarm reminding moment when the electronic device is not triggered in the target time period and before the second time And controlling the first alarm clock to be in an open state when the first alarm clock reminding moment is reached.
  15. 一种电子设备,其包括处理器和存储器,所述处理器和所述存储器电性连接,所述存储器用于存储指令和数据,所述处理器用于执行以下步骤:An electronic device includes a processor and a memory, the processor and the memory are electrically connected, the memory is used to store instructions and data, and the processor is configured to perform the following steps:
    获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;
    获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;
    根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;
    若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;
    若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.
  16. 根据权利要求15所述的电子设备,其中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;The electronic device of claim 15, wherein the control threshold comprises a control time for controlling the first alarm to be turned off, the preset threshold comprising a preset time;
    所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:
    若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;If the control time is less than the preset time, controlling the second alarm to be in an off state;
    所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:
    若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。If the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state.
  17. 根据权利要求15所述的电子设备,其中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;The electronic device of claim 15, wherein the control threshold comprises controlling a number of times the first alarm is turned off, the preset threshold comprising a preset number of times;
    所述若所述控制阈值小于预设阈值时,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:
    若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;If the number of times of control is less than a preset number of times, controlling the second alarm to be in a closed state;
    所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:
    若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。If the number of control times is greater than or equal to the preset number of times, controlling the second alarm clock to be in an open state.
  18. 一种存储介质,其中,所述存储介质中存储有多条指令,所述指令适于由处理器加载,以执行以下步骤:A storage medium, wherein the storage medium stores a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the following steps:
    获取在第一提醒时刻控制第一闹钟的第一控制信息,所述第一控制信息包括控制所述第一闹钟的关闭信息;Obtaining first control information for controlling the first alarm clock at the first reminding moment, where the first control information includes closing information for controlling the first alarm clock;
    获取所述第一闹钟在关闭过程中的特征信息;Obtaining feature information of the first alarm clock during the closing process;
    根据所述关闭信息和所述特征信息生成控制阈值;Generating a control threshold according to the shutdown information and the feature information;
    若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态;If the control threshold is less than a preset threshold, controlling the second alarm to be in a closed state;
    若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态。And if the control threshold is greater than or equal to the preset threshold, controlling the second alarm to be in an open state.
  19. 根据权利要求18所述的存储介质,其中,所述控制阈值包括控制所述第一闹钟关闭的控制时间,所述预设阈值包括预设时间;The storage medium of claim 18, wherein the control threshold comprises a control time for controlling the first alarm to be turned off, the preset threshold comprising a preset time;
    所述若所述控制阈值小于预设阈值,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:
    若所述控制时间小于预设时间,控制所述第二闹钟处于关闭状态;If the control time is less than the preset time, controlling the second alarm to be in an off state;
    所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:
    若所述控制时间大于或等于预设时间,控制所述第二闹钟处于打开状态。If the control time is greater than or equal to the preset time, the second alarm is controlled to be in an open state.
  20. 根据权利要求18所述的存储介质,其中,所述控制阈值包括控制所述第一闹钟关闭的控制次数,所述预设阈值包括预设次数;The storage medium of claim 18, wherein the control threshold comprises controlling a number of times the first alarm is turned off, the preset threshold comprising a preset number of times;
    所述若所述控制阈值小于预设阈值时,控制所述第二闹钟处于关闭状态的步骤包括:If the control threshold is less than the preset threshold, the step of controlling the second alarm to be in the closed state includes:
    若所述控制次数小于预设次数,控制所述第二闹钟处于关闭状态;If the number of times of control is less than a preset number of times, controlling the second alarm to be in a closed state;
    所述若所述控制阈值大于或等于所述预设阈值,控制所述第二闹钟处于打开状态的步骤包括:If the control threshold is greater than or equal to the preset threshold, the step of controlling the second alarm to be in an open state includes:
    若所述控制次数大于或等于预设次数,控制所述第二闹钟处于打开状态。If the number of control times is greater than or equal to the preset number of times, controlling the second alarm clock to be in an open state.
PCT/CN2017/091379 2017-06-30 2017-06-30 Alarm clock prompt method and apparatus, storage medium, and electronic device WO2019000467A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/091379 WO2019000467A1 (en) 2017-06-30 2017-06-30 Alarm clock prompt method and apparatus, storage medium, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201780090137.2A CN110574355A (en) 2017-06-30 2017-06-30 Alarm clock reminding method and device, storage medium and electronic equipment
PCT/CN2017/091379 WO2019000467A1 (en) 2017-06-30 2017-06-30 Alarm clock prompt method and apparatus, storage medium, and electronic device

Publications (1)

Publication Number Publication Date
WO2019000467A1 true WO2019000467A1 (en) 2019-01-03

Family

ID=64740928

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091379 WO2019000467A1 (en) 2017-06-30 2017-06-30 Alarm clock prompt method and apparatus, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN110574355A (en)
WO (1) WO2019000467A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324385A (en) * 2012-03-20 2013-09-25 三星电子株式会社 Method and apparatus for providing an alarm service in mobile terminal
US20140211597A1 (en) * 2013-01-28 2014-07-31 Chi Mei Communication Systems, Inc. Electronic device and method of controlling alarm clock function
CN105224067A (en) * 2014-06-04 2016-01-06 中兴通讯股份有限公司 A kind of method, device and mobile terminal controlling quarter-bell
CN106210306A (en) * 2016-07-08 2016-12-07 深圳天珑无线科技有限公司 A kind of alarm clock prompting method based on mobile terminal, device and mobile terminal
CN106850996A (en) * 2017-02-16 2017-06-13 广东小天才科技有限公司 A kind of alarm clock of mobile terminal starts method and device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007309809A (en) * 2006-05-19 2007-11-29 Nec Saitama Ltd Cellular phone terminal and its control method
US20080259742A1 (en) * 2007-04-23 2008-10-23 Mediatek Inc. Methods and systems for controlling alarm clocks
CN101901628A (en) * 2010-08-04 2010-12-01 鸿富锦精密工业(深圳)有限公司 Digital photo frame having warning function and clock alarming method
CN202796041U (en) * 2012-08-16 2013-03-13 北京播思软件技术有限公司 Mobile terminal using voice to control alarm clock
CN103152484B (en) * 2013-03-06 2015-06-17 Tcl通讯(宁波)有限公司 Method and system for turning off alarm of mobile terminal
CN103491249A (en) * 2013-09-16 2014-01-01 青岛海信传媒网络技术有限公司 Mobile terminal alarm clock prompt cancelling method and mobile terminal
CN103634468A (en) * 2013-11-26 2014-03-12 小米科技有限责任公司 Method, device and terminal equipment for processing alarm clock
CN103945055B (en) * 2014-03-18 2017-05-17 深圳市艾优尼科技有限公司 Method and device for turning off terminal alarm clock and terminal equipment
CN105303361B (en) * 2014-07-30 2020-06-05 腾讯科技(深圳)有限公司 Alarm clock adjusting method and device and terminal
CN105511745A (en) * 2014-09-22 2016-04-20 联想(北京)有限公司 Information processing method and electronic device
CN104853031A (en) * 2015-03-19 2015-08-19 惠州Tcl移动通信有限公司 Method and terminal for controlling alarm clock
CN105528155A (en) * 2015-12-09 2016-04-27 广东欧珀移动通信有限公司 Alarm clock reminding control method, and device and terminal equipment
CN106357886A (en) * 2016-08-26 2017-01-25 努比亚技术有限公司 Method and device for managing alarm of intelligent watch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324385A (en) * 2012-03-20 2013-09-25 三星电子株式会社 Method and apparatus for providing an alarm service in mobile terminal
US20140211597A1 (en) * 2013-01-28 2014-07-31 Chi Mei Communication Systems, Inc. Electronic device and method of controlling alarm clock function
CN105224067A (en) * 2014-06-04 2016-01-06 中兴通讯股份有限公司 A kind of method, device and mobile terminal controlling quarter-bell
CN106210306A (en) * 2016-07-08 2016-12-07 深圳天珑无线科技有限公司 A kind of alarm clock prompting method based on mobile terminal, device and mobile terminal
CN106850996A (en) * 2017-02-16 2017-06-13 广东小天才科技有限公司 A kind of alarm clock of mobile terminal starts method and device

Also Published As

Publication number Publication date
CN110574355A (en) 2019-12-13

Similar Documents

Publication Publication Date Title
WO2017026800A1 (en) Electronic device and method for controlling fan of electronic device
WO2016064166A1 (en) Method of performing one or more operations based on a gesture
WO2018097478A1 (en) Electronic device for processing multi-modal input, method for processing multi-modal input and sever for processing multi-modal input
WO2015178714A1 (en) Foldable device and method of controlling the same
WO2015163704A1 (en) Devices and methods of providing response message in the devices
WO2015178562A1 (en) Method and apparatus for providing notification
WO2014185712A1 (en) Communication method and device
WO2017099354A1 (en) Electronic device and operating method thereof
WO2014088234A1 (en) Information providing method and mobile terminal therefor
WO2016137295A1 (en) Electronic device and application control method thereof
WO2015178715A1 (en) System and method of providing voice-message call service
WO2015182869A1 (en) Display apparatus and method thereof
WO2014171705A1 (en) Method for adjusting display area and electronic device thereof
WO2016018029A1 (en) Mobile terminal and method of operating the same
WO2016099097A1 (en) Schedule notification method using mobile terminal and mobile terminal therefor
WO2017126737A1 (en) Mobile terminal
WO2016017945A1 (en) Mobile device and method of pairing the same with electronic device
WO2014142608A1 (en) Electronic device and operating method thereof
WO2015167258A1 (en) Proximity communication method and apparatus
WO2016035927A1 (en) Headset
WO2017146402A1 (en) Server and method of controlling user environment by server
WO2015030452A1 (en) Mobile terminal comprising stylus pen and touch panel
WO2014157908A1 (en) Device and method for displaying execution result of application
WO2013022222A2 (en) Method for controlling electronic apparatus based on motion recognition, and electronic apparatus applying the same
WO2014196836A1 (en) Sound event detecting apparatus and operation method thereof

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

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

Country of ref document: EP

Kind code of ref document: A1