CN104267948B - The alarm clock control method and device of intelligent mobile terminal - Google Patents
The alarm clock control method and device of intelligent mobile terminal Download PDFInfo
- Publication number
- CN104267948B CN104267948B CN201410491266.0A CN201410491266A CN104267948B CN 104267948 B CN104267948 B CN 104267948B CN 201410491266 A CN201410491266 A CN 201410491266A CN 104267948 B CN104267948 B CN 104267948B
- Authority
- CN
- China
- Prior art keywords
- light intensity
- alarm clock
- data
- mobile terminal
- interference
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
Abstract
本申请公开了一种智能移动终端的闹钟控制方法,包括:调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,存储该至少两个光强值范围;设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令;调用智能移动终端的光传感器监测光强数据,判断光强数据是否发生所存储的所述光强值范围间的变化方式,在发生所述某种变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。本发明可以用光强度控制闹钟,减少人机交互操作,提高闹钟操作的人性化和自动化。
The present application discloses an alarm clock control method for an intelligent mobile terminal, which includes: calling the light sensor of the intelligent mobile terminal to monitor light intensity data, training at least two light intensity value ranges according to the monitored light intensity data, and storing the at least two light intensity value ranges. Intensity value range; set the alarm clock control instruction corresponding to the storage alarm clock state and the change mode of the light intensity data between the light intensity value ranges; call the light sensor of the smart mobile terminal to monitor the light intensity data, and judge whether the light intensity data occurs. The change mode between the light intensity value ranges, in the case of a certain change mode, determine the current alarm clock state, query the alarm clock state and the alarm clock control command corresponding to the change mode, and send the alarm clock to the smart mobile terminal. Alarm clock control command. The present invention can control the alarm clock with light intensity, reduce man-machine interactive operation, and improve humanization and automation of alarm clock operation.
Description
技术领域technical field
本发明涉及智能移动终端的处理技术领域,尤其涉及一种智能移动终端的闹钟控制方法和装置。The present invention relates to the technical field of intelligent mobile terminal processing, in particular to an alarm clock control method and device for an intelligent mobile terminal.
背景技术Background technique
在当今的工作和生活中,具有数据处理能力的智能移动终端如计算机、手机、掌上电脑、平板电脑、智能电视(Smart TV)等,已经被广泛使用。尤其是智能移动终端如手机、个人数字助理器(PDA,Personal Digital Assistant)、手持计算机(Pocket PC)、平板电脑等已经成为人们随身携带的必不可少的工具。In today's work and life, intelligent mobile terminals with data processing capabilities, such as computers, mobile phones, palmtop computers, tablet computers, smart TVs (Smart TVs), etc., have been widely used. In particular, smart mobile terminals such as mobile phones, personal digital assistants (PDA, Personal Digital Assistant), handheld computers (Pocket PC), tablet computers, etc. have become indispensable tools that people carry with them.
随着智能移动终端的处理能力的提高和信息技术的发展,在智能移动终端上运行的应用程序(APP)也越来越多。例如现在的智能手机不但可以拨打接听电话、收发短信,还可以安装基于手机操作系统的其它功能APP,可以用来实现多种功能。With the improvement of the processing capability of the smart mobile terminal and the development of information technology, more and more application programs (APPs) run on the smart mobile terminal. For example, the current smartphones can not only make and receive calls, send and receive text messages, but also install other functional APPs based on the mobile phone operating system, which can be used to achieve multiple functions.
目前有一个几乎每款智能移动终端都会内置的一个APP——闹铃APP。作为手机的一个必备软件,由于它改善了了传统的实物闹钟报时不准确、功能简单、操作不易等特点,因为受到用户们的喜爱,用户使用率非常高。目前各个厂商定制自己的智能移动终端产品时,几乎都会内置闹钟APP,应用市场非常广泛。At present, there is an APP that is built into almost every smart mobile terminal—the alarm APP. As an essential software for mobile phones, because it improves the characteristics of traditional physical alarm clocks such as inaccurate time reporting, simple functions, and difficult operation, it is loved by users and has a very high user utilization rate. At present, when various manufacturers customize their own smart mobile terminal products, almost all of them have built-in alarm clock APP, and the application market is very extensive.
目前,智能移动终端的闹钟软件通常是调用手机的内置接口,同步时钟。用户可以设置多个闹钟,提醒时间不同,同时也可以设置震动提醒、重复周期、提醒铃声等等功能。At present, the alarm clock software of the smart mobile terminal usually calls the built-in interface of the mobile phone to synchronize the clock. Users can set multiple alarm clocks with different reminder times, and can also set vibration reminders, repeat cycles, reminder ringtones and other functions.
但是,现有的手机闹钟存在以下技术问题:But there is following technical problem in existing mobile phone alarm clock:
第一:目前,闹铃的设置和关闭方式并不够智能化、人性化,用户必须要通过亲自操控软件菜单才能设置、打开或者关闭闹铃,完全需要人为的干预。First: At present, the setting and closing methods of the alarm are not intelligent and humanized enough. Users must manually manipulate the software menu to set, open or close the alarm, which requires human intervention.
第二:目前的闹钟使用不方便,不人性化。例如,早晨闹铃响起后,闹钟一直在响铃,必须要用户自己手动关闭闹铃。然而很多人由于担心终端辐射对身体的负面影响(尤其是夜间在充电的时候),常常将智能移动终端放置在远离床铺的地方。而早上闹铃响起后需要手动的关闭正在响铃的闹钟时,不得不亲自起床,尤为难受,特别是用户在寒冷的冬天使用的时候。所以用户需要一种更为人性化和自动化的方式来控制闹铃。Second: the current alarm clock is inconvenient to use and impersonal. For example, after the alarm bell rings in the morning, the alarm clock keeps ringing, and the user must manually turn off the alarm bell. However, many people often place the smart mobile terminal away from the bed because they are worried about the negative impact of terminal radiation on the body (especially when charging at night). And when the alarm clock that is ringing needs to be manually turned off after the alarm clock rings in the morning, it is particularly uncomfortable to have to get up in person, especially when the user uses it in cold winter. So users need a more humane and automatic way to control the alarm.
第三:睡前,闹铃的设置和开启,通常用户会忘记,导致第二天早上延误正常的工作和学习。所以需要一种智能的方式来打开闹钟,不需要用户天天记着“睡前定闹钟”。Third: before going to bed, the setting and opening of the alarm, usually the user will forget, resulting in a delay in normal work and study the next morning. So there is a need for an intelligent way to turn on the alarm clock, without requiring the user to remember to "set the alarm clock before going to bed" every day.
另外,中国专利申请号200920260348.9,名称为《光信号感应闹钟》的专利文献中,记录了一种光信号感应闹钟,包括闹钟控制电路和扬声器,其中闹钟控制电路包括:主控单片机吗,设置在闹钟表面的光传感器,与主控单片机相连接、用于设置闹响光强度的设定模块,与主控单片机输出端相连接、用于接收控制信号并驱动扬声器闹响的闹响电路以及与闹响电路相连接的开关电路。采用光传感器接收外界的光信号,通过主控单片机对光强度进行判断,当光强度大于设定的闹响光强度时主控单片机输出闹响控制信号,控制闹钟闹响。该文献所公开的光信号感应闹钟,主要用于满足一些特定行业工作者的需求,如农业劳动者、气象观测者,他们的一些工作需要根据光强度的变化而进行,这种光信号感应闹钟可更好的满足他们的工作需求。但是,该实用新型并不是用于智能移动终端上的,而且需要特殊的硬件,并不能够给普通的大众使用,并且用途也不同。其还有一个缺陷就是:其没有抗干扰能力,其设定的光强度必须由专业人员根据工业需要计算得到,并人工设置,无法自动识别不同用户光线环境的光强度,因此只能应用在工业专业领域,无法应用到广大群众的工作生活中。In addition, Chinese Patent Application No. 200920260348.9, in the patent document titled "Optical Signal Induction Alarm Clock", records an optical signal induction alarm clock, including an alarm clock control circuit and a speaker, wherein the alarm clock control circuit includes: a master microcontroller, set in The light sensor on the surface of the alarm clock is connected with the main control single-chip microcomputer, the setting module for setting the light intensity of the alarm sound is connected with the output terminal of the main control single-chip microcomputer, the alarm circuit for receiving the control signal and driving the loudspeaker to sound the alarm, and the A switch circuit connected to the alarm circuit. The optical sensor is used to receive the light signal from the outside, and the light intensity is judged by the main control single-chip computer. When the light intensity is greater than the set alarm light intensity, the main control single-chip computer outputs an alarm control signal to control the alarm clock. The optical signal induction alarm clock disclosed in this document is mainly used to meet the needs of workers in some specific industries, such as agricultural laborers and meteorological observers. Some of their work needs to be carried out according to changes in light intensity. This optical signal induction alarm clock Can better meet their work needs. But this utility model is not used on the intelligent mobile terminal, and needs special hardware, can not be used by common people, and purposes are also different. It also has a defect: it has no anti-interference ability, and the set light intensity must be calculated by professionals according to industrial needs and set manually. It cannot automatically identify the light intensity of different user light environments, so it can only be used in industrial applications. In the professional field, it cannot be applied to the work and life of the masses.
发明内容Contents of the invention
有鉴于此,本发明的主要目的是提供一种智能移动终端的闹钟控制方法和装置,用光强度控制闹钟,减少人机交互操作,提高闹钟操作的人性化和自动化。In view of this, the main purpose of the present invention is to provide an alarm clock control method and device for an intelligent mobile terminal, which can control the alarm clock with light intensity, reduce human-computer interaction operations, and improve humanization and automation of alarm clock operation.
本发明的技术方案是这样实现的:Technical scheme of the present invention is realized like this:
一种智能移动终端的闹钟控制方法,包括:An alarm clock control method for an intelligent mobile terminal, comprising:
调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,存储该至少两个光强值范围;Calling the light sensor of the smart mobile terminal to monitor the light intensity data, training at least two light intensity value ranges according to the monitored light intensity data, and storing the at least two light intensity value ranges;
设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令;Setting and storing the alarm clock control instruction corresponding to the state of the alarm clock and the change mode of the light intensity data between the light intensity value ranges;
调用智能移动终端的光传感器监测光强数据,判断光强数据是否发生所存储的所述光强值范围间的变化方式,在发生所述某种变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。Call the light sensor of the smart mobile terminal to monitor the light intensity data, determine whether the light intensity data has changed in the range of the stored light intensity value, and determine the current alarm clock state when the certain change occurs. Query the state of the alarm clock and the alarm clock control command corresponding to the change mode, and send the alarm clock control command to the smart mobile terminal alarm clock.
优选的,该方法进一步包括:Preferably, the method further comprises:
设置存储干扰状态类型及其干扰数据;Set the storage interference status type and its interference data;
在判断光强数据是否发生所存储的所述光强值范围间的变化方式时,进一步获取所存储的干扰状态类型指定的智能移动终端当前的状态数据,判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,若符合,则不向智能移动终端闹钟发出闹钟控制指令;若不符合、且在光强数据发生所存储的所述光强值范围间的变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。When judging whether the light intensity data changes between the stored light intensity value ranges, further obtain the current state data of the intelligent mobile terminal specified by the stored interference state type, and determine whether the current state data of the intelligent mobile terminal is consistent with The stored interference data conforms, and if it conforms, an alarm clock control instruction will not be sent to the alarm clock of the smart mobile terminal; The current state of the alarm clock is inquired about the state of the alarm clock and the alarm clock control instruction corresponding to the change mode, and the alarm clock control instruction is sent to the alarm clock of the smart mobile terminal.
优选的,所述干扰状态类型及其干扰数据、以及判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,包括以下任意种:Preferably, the interference state type and its interference data, and judging whether the current state data of the smart mobile terminal conforms to the stored interference data include any of the following:
所述干扰状态类型为地理位置状态,其干扰数据为用户设定的干扰地理位置;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的地理位置是否为所述用户设定的干扰地理位置,如果是则符合,否则不符合;The interference state type is a geographic location state, and its interference data is the interference geographic location set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging the current geographic location of the smart mobile terminal Whether it is the interfering geographical location set for the user, if yes, it meets, otherwise it does not;
所述干扰状态类型为时间状态,其干扰数据为用户设定的干扰时间段;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的时间是否为所述用户设定的干扰时间段,如果是则符合,否则不符合;The interference state type is a time state, and its interference data is the interference time period set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging whether the current time of the smart mobile terminal is The interference time period set by the user, if it is, it is met, otherwise it is not met;
所述干扰状态类型为账户状态,其干扰数据为用户设定的干扰账户;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的账户是否为所述用户设定的干扰账户,如果是则符合,否则不符合;The interference state type is an account state, and its interference data is an interference account set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging whether the current account of the smart mobile terminal is the Interference account set by the above user, if it is, it is in compliance, otherwise it is not in compliance;
所述干扰状态类型为智能移动终端方向状态,其干扰数据为用户设定的干扰朝向;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的方向状态是否为所述用户设定的干扰朝向,如果是则符合,否则不符合。The interference state type is the direction state of the intelligent mobile terminal, and its interference data is the interference direction set by the user; the determination of whether the current state data of the intelligent mobile terminal is consistent with the stored interference data is as follows: judging the current direction of the intelligent mobile terminal Whether the state is the interference orientation set by the user, if yes, it is met, otherwise it is not.
优选的,所述调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,具体包括:Preferably, the light sensor of the smart mobile terminal is called to monitor the light intensity data, and at least two light intensity value ranges are trained according to the monitored light intensity data, specifically including:
调用智能移动终端的光传感器监测并记录一段时间内的光强数据,计算该段时间内的光强均值,设定以该光强均值为参考点的光强值范围;重复本步骤,得到至少两个光强值范围。Call the light sensor of the smart mobile terminal to monitor and record the light intensity data for a period of time, calculate the average light intensity value during this period, and set the light intensity value range with the average light intensity as the reference point; repeat this step to get at least Two light intensity value ranges.
优选的,所述两个光强值范围包括高光强值范围和低光强值范围;Preferably, the two light intensity value ranges include a high light intensity value range and a low light intensity value range;
所述设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令,具体包括以下任意种:The setting stores the alarm clock state and the alarm clock control instruction corresponding to the change mode of the light intensity data between the light intensity value ranges, specifically including any of the following:
闹钟状态为闹钟正在响铃、光强数据从所述低光强值范围变化到高光强值范围,对应的闹钟控制指令为关闭当前正在响铃的闹钟;The state of the alarm clock is that the alarm clock is ringing, and the light intensity data changes from the low light intensity value range to the high light intensity value range, and the corresponding alarm clock control instruction is to turn off the currently ringing alarm clock;
闹钟状态为闹钟正在响铃、光强数据从所述低光强值范围变化到高光强值范围再在指定时间内变化到所述低光强值范围,对应的闹钟控制指令为推迟指定时间后再次响铃;The state of the alarm clock is that the alarm clock is ringing, and the light intensity data changes from the low light intensity value range to the high light intensity value range and then changes to the low light intensity value range within a specified time. ring the bell
闹钟状态为闹钟未设置、光强数据从所述高光强值范围变化到低光强值范围,对应的闹钟控制指令为打开对应预设的闹钟;The state of the alarm clock is that the alarm clock is not set, and the light intensity data changes from the high light intensity value range to the low light intensity value range, and the corresponding alarm clock control command is to turn on the corresponding preset alarm clock;
闹钟状态为闹钟未响铃但已经设置、光强数据从所述低光强值范围变化到高光强值范围再在指定时间内变化到所述低光强值范围,对应的闹钟控制指令为关闭该已经设置的闹钟。The state of the alarm clock is that the alarm clock has not rang but has been set, and the light intensity data changes from the low light intensity value range to the high light intensity value range and then changes to the low light intensity value range within a specified time, and the corresponding alarm clock control command is to turn off the Already set alarm clock.
优选的,该方法进一步包括,提供应用软件用户设置界面,通过该设置界面接收外界输入的设置存储指令。Preferably, the method further includes providing an application software user setting interface, through which a setting storage instruction input from the outside is received.
一种智能移动终端的闹钟控制装置,包括:An alarm clock control device for an intelligent mobile terminal, comprising:
训练模块,用于调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,存储该至少两个光强值范围;The training module is used to call the light sensor of the smart mobile terminal to monitor light intensity data, train at least two light intensity value ranges according to the monitored light intensity data, and store the at least two light intensity value ranges;
用例模块,用于设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令;The use case module is used to set the alarm clock control instruction corresponding to the storage alarm clock state and the change mode of the light intensity data between the light intensity value ranges;
控制模块,用于调用智能移动终端的光传感器监测光强数据,判断光强数据是否发生所存储的所述光强值范围间的变化方式,在发生所述某种变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。The control module is used to call the light sensor of the smart mobile terminal to monitor the light intensity data, determine whether the light intensity data has a change mode between the stored light intensity value ranges, and determine if a certain change mode occurs. The current state of the alarm clock is inquired about the state of the alarm clock and the alarm clock control instruction corresponding to the change mode, and the alarm clock control instruction is sent to the alarm clock of the smart mobile terminal.
优选的,该装置进一步包括:干扰设置模块,用于设置存储干扰状态类型及其干扰数据;Preferably, the device further includes: an interference setting module, configured to set and store the type of interference state and its interference data;
所述控制模块中进一步包括干扰排除模块,用于在判断光强数据是否发生所存储的所述光强值范围间的变化方式时,进一步获取所存储的干扰状态类型指定的智能移动终端当前的状态数据,判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,若符合,则不向智能移动终端闹钟发出闹钟控制指令;若不符合、且在光强数据发生所存储的所述光强值范围间的变化方式的情况下,触发控制模块确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。The control module further includes an interference elimination module, which is used to further obtain the current status of the intelligent mobile terminal specified by the stored interference state type when judging whether the light intensity data changes in the range of the stored light intensity value. Status data, to judge whether the current status data of the smart mobile terminal is consistent with the stored interference data, if it is consistent, the alarm clock control command will not be sent to the smart mobile terminal alarm clock; In the case of a change mode between light intensity value ranges, the trigger control module determines the current alarm clock state, queries the alarm clock state and the alarm clock control command corresponding to the change mode, and sends the alarm clock control command to the smart mobile terminal alarm clock.
优选的,所述训练模块具体用于:调用智能移动终端的光传感器监测并记录一段时间内的光强数据,计算该段时间内的光强均值,设定以该光强均值为参考点的光强值范围;重复本步骤,得到至少两个光强值范围。Preferably, the training module is specifically used to: call the light sensor of the smart mobile terminal to monitor and record light intensity data within a period of time, calculate the average value of light intensity within this period of time, and set the average value of light intensity as a reference point. Light intensity value range; repeat this step to obtain at least two light intensity value ranges.
优选的,所述两个光强值范围包括高光强值范围和低光强值范围;Preferably, the two light intensity value ranges include a high light intensity value range and a low light intensity value range;
所述用例模块所设置存储的闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令,具体包括以下任意种:The alarm clock control instructions corresponding to the alarm clock state stored in the use case module and the change mode of the light intensity data between the light intensity value ranges specifically include any of the following:
闹钟状态为闹钟正在响铃、光强数据从所述低光强值范围变化到高光强值范围,对应的闹钟控制指令为关闭当前正在响铃的闹钟;The state of the alarm clock is that the alarm clock is ringing, and the light intensity data changes from the low light intensity value range to the high light intensity value range, and the corresponding alarm clock control instruction is to turn off the currently ringing alarm clock;
闹钟状态为闹钟正在响铃、光强数据从所述低光强值范围变化到高光强值范围再在指定时间内变化到所述低光强值范围,对应的闹钟控制指令为推迟指定时间后再次响铃;The state of the alarm clock is that the alarm clock is ringing, and the light intensity data changes from the low light intensity value range to the high light intensity value range and then changes to the low light intensity value range within a specified time. ring the bell
闹钟状态为闹钟未设置、光强数据从所述高光强值范围变化到低光强值范围,对应的闹钟控制指令为打开对应预设的闹钟;The state of the alarm clock is that the alarm clock is not set, and the light intensity data changes from the high light intensity value range to the low light intensity value range, and the corresponding alarm clock control command is to turn on the corresponding preset alarm clock;
闹钟状态为闹钟未响铃但已经设置、光强数据从所述低光强值范围变化到高光强值范围再在指定时间内变化到所述低光强值范围,对应的闹钟控制指令为关闭该已经设置的闹钟。The state of the alarm clock is that the alarm clock has not rang but has been set, and the light intensity data changes from the low light intensity value range to the high light intensity value range and then changes to the low light intensity value range within a specified time, and the corresponding alarm clock control command is to turn off the Already set alarm clock.
优选的,所述智能移动终端包括:智能手机、功能手机、智能手表、或智能家电。Preferably, the smart mobile terminal includes: a smart phone, a feature phone, a smart watch, or a smart home appliance.
与现有技术相比,本发明可以调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,存储该至少两个光强值范围;设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令;调用智能移动终端的光传感器监测光强数据,判断光强数据是否发生所存储的所述光强值范围间的变化方式,在发生所述某种变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。因此,本发明可以通过借助智能移动终端中的光传感器,智能化的自动的监测室内环境中的光线强度的变化,来设置、打开或者关闭闹钟等操作,减少人机交互操作,使得用户可以更方便地、更人性化的使用闹钟程序。Compared with the prior art, the present invention can call the light sensor of the intelligent mobile terminal to monitor the light intensity data, train at least two light intensity value ranges according to the monitored light intensity data, and store the at least two light intensity value ranges; Alarm clock control instructions corresponding to the state of the alarm clock and the change mode of the light intensity data between the light intensity value ranges; call the light sensor of the smart mobile terminal to monitor the light intensity data, and determine whether the light intensity data occurs within the stored light intensity value range In the case of a certain change mode, determine the current state of the alarm clock, query the state of the alarm clock and the alarm clock control command corresponding to the change mode, and send the alarm clock control command to the alarm clock of the smart mobile terminal. Therefore, the present invention can intelligently and automatically monitor the change of light intensity in the indoor environment by means of the light sensor in the smart mobile terminal to set, turn on or turn off the alarm clock and other operations, reducing human-computer interaction operations, so that users can more Use the alarm clock program conveniently and more humanely.
例如,由于目前卧室基本都安装有双联开关,或者放置有床头灯。用户可以在晚间睡前关灯的时候,本发明可以自动监测到灯光由亮到暗的变化而打开闹钟并开启,省去了用户自己去操作,避免用户忘记了定时闹钟的可能性;清晨用户可以在闹铃响起后,在不用起床去关闭放置在远处的智能移动终端上面的闹钟,仅仅通过打开床头的灯来暂时关闭闹铃,或者响应一些预置的闹钟操作。同时闹铃的使用规则是用户可以自行定制的,比如连续开灯并熄灯一次来使闹钟延迟数分钟后再次响起等等,这样灵活的设置使得操作更加简便,可以更加人性化。For example, due to the fact that the bedroom is basically equipped with a double switch, or a bedside lamp is placed. When the user can turn off the light before going to bed at night, the invention can automatically detect the change of the light from bright to dark and turn on the alarm clock, which saves the user from operating by himself and avoids the possibility that the user forgets the timing alarm clock; After the alarm rings, you don't need to get up to turn off the alarm clock placed on the remote smart mobile terminal, just turn on the bedside light to temporarily turn off the alarm clock, or respond to some preset alarm clock operations. At the same time, the use rules of the alarm can be customized by the user, such as turning on and off the light once in a row to make the alarm ring again after a delay of several minutes, etc. Such flexible settings make the operation easier and more humanized.
相对于专利申请号200920260348.9的现有技术,本发明不必由专业人员根据工业需要计算得到光强值,而是根据所监测的光强数据对光强值范围进行训练,所以可以自动识别不同用户光线环境的光强度,因此使用难度大大降低,可以应用到广大群众的工作生活中。Compared with the prior art of patent application number 200920260348.9, the present invention does not need professionals to calculate the light intensity value according to industrial needs, but trains the light intensity value range according to the monitored light intensity data, so it can automatically identify different user light The light intensity of the environment is greatly reduced, so the difficulty of use is greatly reduced, and it can be applied to the work and life of the masses.
附图说明Description of drawings
图1为本发明所述智能移动终端的闹钟控制方法的一种流程图;Fig. 1 is a kind of flowchart of the alarm clock control method of intelligent mobile terminal described in the present invention;
图2为本发明所述智能移动终端的闹钟控制装置在智能移动终端中与光传感器和闹钟APP的交互示意图;2 is a schematic diagram of the interaction between the alarm clock control device of the smart mobile terminal of the present invention, the light sensor and the alarm clock APP in the smart mobile terminal;
图3为在andriod操作系统中所支持的传感器类型和数据描述图;Fig. 3 is a description diagram of sensor types and data supported in the andriod operating system;
图4为获取光强数据的具体的一些示例代码示意图;Figure 4 is a schematic diagram of some specific sample codes for obtaining light intensity data;
图5为本发明进行光强值范围训练的一种示意图;Fig. 5 is a kind of schematic diagram that the present invention carries out light intensity value range training;
图6为本发明所述智能移动终端的闹钟控制装置的一种组成示意图;6 is a schematic diagram of the composition of the alarm clock control device of the intelligent mobile terminal according to the present invention;
图7为本发明所述智能移动终端的闹钟控制装置的又一种组成示意图。FIG. 7 is another schematic diagram of the composition of the alarm clock control device of the smart mobile terminal according to the present invention.
具体实施方式detailed description
下面结合附图及具体实施例对本发明再作进一步详细的说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
本发明中,所述智能移动终端是指具有数据计算处理功能的智能移动终端,包括但不限于智能手机、功能手机、智能手表、或智能家电(包括智能电视、智能微波炉、智能电冰箱等)等。这些智能移动终端上都安装有操作系统,包括但不限于:Android操作系统、Symbian操作系统、Windows mobile操作系统、以及苹果iPhone OS操作系统等等。In the present invention, the smart mobile terminal refers to a smart mobile terminal with data calculation and processing functions, including but not limited to smart phones, feature phones, smart watches, or smart home appliances (including smart TVs, smart microwave ovens, smart refrigerators, etc.) Wait. Operating systems are installed on these smart mobile terminals, including but not limited to: Android operating system, Symbian operating system, Windows mobile operating system, and Apple iPhone OS operating system and so on.
以上详细罗列了一些智能移动终端的具体类型和具体的操作系统类型,但是本领域技术人员可以意识到,本发明实施方式并不局限于上述罗列的类型,而还可以适用于其他任意的智能移动终端类型和操作系统类型之中。Some specific types of smart mobile terminals and specific operating system types have been listed above in detail, but those skilled in the art can realize that the implementation of the present invention is not limited to the types listed above, but can also be applied to any other smart mobile terminals. Among the terminal type and operating system type.
图1为本发明所述智能移动终端的闹钟控制方法的一种流程图。参见图1,该方法主要包括:FIG. 1 is a flow chart of an alarm clock control method for a smart mobile terminal according to the present invention. Referring to Figure 1, the method mainly includes:
步骤101、调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,存储该至少两个光强值范围。Step 101, call the light sensor of the smart mobile terminal to monitor the light intensity data, train at least two light intensity value ranges according to the monitored light intensity data, and store the at least two light intensity value ranges.
本发明所能应用的基础是智能移动终端上必须安装有光传感器,所述光传感器可以感应采集周围光线的强度,获得光强数据。本发明的方案可以直接调用智能移动终端上的光传感器来监测周围环境的光强数据,置于具体的调用方法,在不同的智能移动终端和操作系统平台上会有不同的具体应用程序编程接口(API)供调用。例如举例来说,在Android平台上,可以采用Enviroment Sensor API来获取的光强数据,这些光强数据是光强的原始数据。The basis for the application of the present invention is that a light sensor must be installed on the smart mobile terminal, and the light sensor can sense and collect the intensity of surrounding light to obtain light intensity data. The scheme of the present invention can directly call the light sensor on the smart mobile terminal to monitor the light intensity data of the surrounding environment, and put it in a specific calling method, and there will be different specific application programming interfaces on different smart mobile terminals and operating system platforms (API) for calling. For example, on the Android platform, the light intensity data can be obtained by using the Environment Sensor API, and these light intensity data are original data of the light intensity.
图2为本发明所述智能移动终端的闹钟控制装置在智能移动终端中与光传感器和闹钟APP的交互示意图。参见图2,所述光传感器可以感应到光强数据,本发明所述的闹钟控制装置通过对应的API从光传感器获取原始的光强数据,并进行本发明所述的处理,输出对应的闹钟控制指令发送给闹钟APP,从而控制闹钟的开启和关闭。FIG. 2 is a schematic diagram of the interaction between the alarm clock control device of the smart mobile terminal, the light sensor and the alarm clock APP in the smart mobile terminal according to the present invention. Referring to Fig. 2, the light sensor can sense the light intensity data, the alarm clock control device of the present invention obtains the original light intensity data from the light sensor through the corresponding API, and performs the processing described in the present invention, and outputs the corresponding alarm clock The control command is sent to the alarm clock APP to control the opening and closing of the alarm clock.
图3为在andriod操作系统中所支持的传感器类型和数据描述图。如图3所示,所述TYPE_LIGHT就是光传感器,可以监测光强(illuminance)。这样,应用光传感器API即可以方便的获得光强数据,图4为获取光强数据的具体的一些示例代码示意图。Figure 3 is a description diagram of sensor types and data supported in the andriod operating system. As shown in FIG. 3 , the TYPE_LIGHT is a light sensor that can monitor light intensity (illuminance). In this way, light intensity data can be obtained conveniently by using the light sensor API. Figure 4 is a schematic diagram of some specific example codes for obtaining light intensity data.
本步骤101中,所述调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,其具体方法包括:调用智能移动终端的光传感器监测并记录一段时间内的光强数据,计算该段时间内的光强均值,设定以该光强均值为参考点的光强值范围;在环境中较亮和较暗的状态下重复本步骤,得到至少两个光强值范围。In this step 101, the light sensor of the smart mobile terminal is called to monitor the light intensity data, and at least two ranges of light intensity values are trained according to the monitored light intensity data. The specific method includes: calling the light sensor of the smart mobile terminal to monitor and record For the light intensity data within a period of time, calculate the average value of the light intensity during this period, and set the range of light intensity values with the average light intensity as the reference point; repeat this step in the brighter and darker environments in the environment, and get At least two light intensity value ranges.
例如,在一种优选实施例中,所述两个光强值范围包括高光强值范围和低光强值范围。本发明可以提供光强值训练操作设置界面,提示用户进行光强值训练。图5为本发明进行光强值范围训练的一种示意图。参见图5,一个简单的方式就是,用户打开室内灯光(尽可能的模拟晨起环境下光亮状态,比如可以在某一个早晨进行训练),点击光强值训练操作设置界面中的高光强值训练按钮,就会触发训练过程,即本发明的闹钟控制装置开始调用智能移动终端的光传感器监测光强数据并进行记录,记录10秒,计算该10秒内的光强均值,即平均高值,设定以该光强均值为参考点的光强值范围作为高光强值范围,例如以该光强均值为中心点正负1的范围,或者直接以该光强均值作为高光强值范围;随后用户再关闭室内灯光(尽可能模拟睡眠时候的场景,比如再关上窗帘),再点击光强值训练操作设置界面中的低光强值训练按钮,就会触发低光强值的训练过程,即本发明的闹钟控制装置调用智能移动终端的光传感器监测光强数据并进行记录,记录10秒,计算该10秒内的光强均值,即平均低值,设定以该光强均值为参考点的光强值范围做为低光强值范围,例如以该光强均值为中心点正负1的范围,或者直接以该光强均值作为低光强值范围。这样,即可记录下光强的平均高光强值范围和低光强值范围,并进行存储。For example, in a preferred embodiment, the two light intensity value ranges include a high light intensity value range and a low light intensity value range. The present invention can provide a light intensity value training operation setting interface to prompt the user to perform light intensity value training. Fig. 5 is a schematic diagram of training in the light intensity value range in the present invention. Referring to Figure 5, a simple way is that the user turns on the indoor light (as much as possible to simulate the light state in the morning environment, such as training in a certain morning), and clicks the high light intensity training button in the light intensity training operation setting interface , will trigger the training process, that is, the alarm clock control device of the present invention starts to call the light sensor of the intelligent mobile terminal to monitor the light intensity data and record it for 10 seconds, and calculate the light intensity mean value in the 10 seconds, i.e. the average high value, set Set the light intensity value range with the average light intensity as the reference point as the high light intensity value range, for example, take the light intensity average value as the range of plus or minus 1 of the center point, or directly use the light intensity average value as the high light intensity value range; then the user closes the Indoor lighting (simulate the scene during sleep as much as possible, such as closing the curtains again), and then click the low light intensity value training button in the light intensity value training operation setting interface to trigger the training process of low light intensity value, which is the method of the present invention. The alarm clock control device calls the light sensor of the smart mobile terminal to monitor and record the light intensity data, records for 10 seconds, calculates the average value of the light intensity within the 10 seconds, that is, the average low value, and sets the light intensity with the average light intensity as the reference point The value range is used as the low light intensity value range, for example, the light intensity mean value is the range of plus or minus 1 of the center point, or the light intensity mean value is directly used as the low light intensity value range. In this way, the average high light intensity value range and low light intensity value range of the light intensity can be recorded and stored.
由于每个室内电灯不同(光强自然也不同),甚至同一个电灯因为预热等原因光强也会有变化,而用户可以自行使用本发明,让它学习和适应环境光强的变化,并记忆下来。Because each indoor electric lamp is different (the light intensity is also different naturally), even the same electric lamp also has changes in light intensity due to reasons such as preheating, and users can use the present invention by themselves to let it learn and adapt to changes in ambient light intensity, and Remember it.
步骤102、设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令。Step 102, setting and storing an alarm clock control instruction corresponding to the state of the alarm clock and the change mode of the light intensity data within the light intensity value range.
此处,也需要根据用户的指令进行用户自定义的设置,从而实现针对用户的人性化应用场景。本发明提供的用例模块会展示一个用例设置界面,通过该设置界面接收外界(用户)输入的设置存储指令,用于设置闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令,所述闹钟状态例如包括:闹钟是否响铃、闹钟是否设置等状态;所述光强数据在所述光强值范围间的变化方式例如包括:光强数据从所述低光强值范围变化到高光强值范围(即周围环境从暗到亮,通常是开灯场景)、光强数据从所述高光强值范围变化到低光强值范围(即周围环境从亮到暗,通常是关灯场景)、强数据从所述低光强值范围变化到高光强值范围再在指定时间内变化到所述低光强值范围(即开灯后迅速再关灯),等等。Here, it is also necessary to perform user-defined settings according to user instructions, so as to realize user-friendly application scenarios for users. The use case module provided by the present invention will display a use case setting interface through which the setting storage instruction input by the outside world (user) is received, which is used to set the alarm clock state and the light intensity data corresponding to the change mode between the light intensity value ranges Alarm clock control instructions, the state of the alarm clock includes, for example: whether the alarm clock is ringing, whether the alarm clock is set, etc.; the change mode of the light intensity data between the light intensity value ranges includes, for example: The value range changes to the high light intensity value range (that is, the surrounding environment changes from dark to bright, usually a scene with lights on), and the light intensity data changes from the high light intensity value range to the low light intensity value range (that is, the surrounding environment changes from light to dark, usually Turn off the lights scene), the intensity data changes from the low light intensity value range to the high light intensity value range and then changes to the low light intensity value range within a specified time (that is, turn off the light immediately after turning on the light), and so on.
具体的,在一种优选实施例中,针对用户所设置的某一个(或一个以上)闹钟,例如针对所设置的早上6点的起床闹钟,所述两个光强值范围包括高光强值范围和低光强值范围,所述设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令,具体包括以下任意种:Specifically, in a preferred embodiment, for a certain (or more than one) alarm clock set by the user, for example, for the set wake-up alarm clock at 6 o'clock in the morning, the two light intensity value ranges include the high light intensity value range and the high light intensity value range. In the range of low light intensity values, the setting stores alarm clock control instructions corresponding to the state of the alarm clock and the change mode of light intensity data between the light intensity value ranges, specifically including any of the following:
表1Table 1
如表1,所述每一个闹钟状态和光强数据在所述光强值范围间的变化方式加在一起对应一个闹钟控制指令,这叫做一个用户用例。本发明可以由用户针对所设置的某一个(或一个以上)闹钟,例如所设置的早上6点的起床闹钟,设置该闹钟对应的用户用例,然后进行把该闹钟对应的用户用例存储供后续步骤监测光强变化判断该闹钟指令使用。本发明所述的用户用例都存储在一个用户用例数据库中,该数据库可以存储在闹钟控制装置本地,也可以存储在云端等等,根据所使用的智能移动终端所登陆的账户的不同,该数据库也不尽相同。As shown in Table 1, the addition of each alarm clock state and the change mode of the light intensity data between the light intensity value ranges corresponds to an alarm clock control instruction, which is called a user use case. In the present invention, the user can set a user use case corresponding to a certain (or more than one) alarm clock set by the user, such as the set wake-up alarm clock at 6 o'clock in the morning, and then store the user use case corresponding to the alarm clock for subsequent steps Monitor the change of light intensity to judge the use of the alarm clock instruction. The user use cases described in the present invention are all stored in a user use case database, which can be stored locally in the alarm clock control device, or in the cloud, etc. Not all are the same.
当然,所述设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令,也并不限于上述几种,用户可以根据需要,通过本发明提供的设置界面,输入设置存储指令,用来设置个性化的闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令,例如所述光强值范围可以是三个甚至更多,可以设置光强数据在这几个光强值范围之间的变化方式对应的闹钟控制指令,等等。Of course, the alarm clock control instructions corresponding to the storage alarm state and the change mode of the light intensity data between the light intensity value ranges are not limited to the above-mentioned ones, and the user can use the setting interface provided by the present invention according to needs. Input setting storage instruction, used to set the personalized alarm clock state and the alarm clock control instruction corresponding to the change mode of the light intensity data between the light intensity value ranges, for example, the light intensity value range can be three or more, can Set the alarm clock control instruction corresponding to the change mode of the light intensity data between these several light intensity value ranges, and so on.
之后,本发明的闹钟控制装置就可以根据监测周围环境的光线变化,对所述用户用例对应的闹钟发出闹钟控制指令。如后续步骤:Afterwards, the alarm clock control device of the present invention can send an alarm clock control instruction to the alarm clock corresponding to the user use case according to the light change of the monitored surrounding environment. As next steps:
步骤103、调用智能移动终端的光传感器监测光强数据,判断光强数据是否发生所存储的所述光强值范围间的变化方式(例如是否发生表1中所述的光强数据变化方式),在发生所述某种变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。Step 103, calling the light sensor of the smart mobile terminal to monitor the light intensity data, and judging whether the light intensity data changes in the stored light intensity value ranges (for example, whether the light intensity data changes described in Table 1 occur) , when a certain change mode occurs, determine the current state of the alarm clock, query the state of the alarm clock and the alarm clock control instruction corresponding to the change mode, and send the alarm clock control command to the alarm clock of the smart mobile terminal.
例如,假设用户设定了一个早上6点的起床闹钟,在现有技术中需要每天晚上提前人工打开该起床闹钟,从而在第二天早上6点可以响铃,操作非常不方便,而且还常常忘记设置,造成第二天闹钟不响导致迟到。但是在本发明中,用户可以针对该起床闹钟设置如表1所示的用户用例,当用户晚上睡前关灯的时候,本发明可以自动监测到灯光由亮到暗的变化而打开该起床闹钟并开启,省去了用户自己去操作,避免用户忘记了设定起床闹钟的可能性。通常用户为了避免智能移动终端辐射,智能移动终端会放在离床很远的地方,清晨用户可以在所述起床闹铃响起后,再不用起床去关闭放置在远处的智能移动终端上面的闹钟,仅仅通过打开床头的灯来暂时关闭所述起床闹铃,如果用户想再睡几分钟懒觉,则可以开灯后迅速再关灯从而使起床闹钟延迟数分钟后再次响起等等;或者如果用户临时想取消该起床闹钟,也不必起床到远处拿到智能移动终端关闭该起床闹钟,而是可以在闹钟未响铃的状态下开灯再迅速关灯,即可关闭该已经设置的起床闹钟,即让该起床闹钟在到时间后不响。更多的设置及相应内容用户可以按照自己的需求扩展和修改。这样灵活的设置使得操作更加简便,可以更加人性化,满足用户的个性化需求。For example, assuming that the user sets a wake-up alarm clock at 6 am, in the prior art, the wake-up alarm clock needs to be manually turned on every night in advance, so that the bell can ring at 6 am the next day, which is very inconvenient to operate, and often If you forget to set it, the alarm clock will not ring the next day and you will be late. But in the present invention, the user can set the user use case shown in Table 1 for the wake-up alarm clock. When the user turns off the light before going to bed at night, the present invention can automatically detect the change of the light from bright to dark and turn on the wake-up alarm clock. And turn it on, save the user to operate by himself, and avoid the possibility that the user forgets to set the wake-up alarm clock. Usually, in order to avoid the radiation of the smart mobile terminal, the user puts the smart mobile terminal far away from the bed. In the early morning, the user can wake up and turn off the alarm clock placed on the remote smart mobile terminal after the alarm rings. , only temporarily turn off the wake-up alarm by turning on the light at the bedside, if the user wants to sleep in for a few more minutes, he can turn on the light and then turn off the light quickly so that the wake-up alarm will sound again after a delay of several minutes; or If the user temporarily wants to cancel the wake-up alarm clock, he does not need to get up and go to a distance to get a smart mobile terminal to turn off the wake-up alarm clock. Instead, he can turn on the light and then quickly turn off the light when the alarm clock is not ringing to close the set alarm clock. Wake up alarm clock, that is, make the wake up alarm clock not ring when the time is up. More settings and corresponding content users can expand and modify according to their own needs. Such a flexible setting makes the operation easier and more humanized to meet the individual needs of users.
但是,所述用户用例也有例外的情况,比如在办公室里也会发生类似在家里的开关灯情况,如果办公室里所训练的光强值范围与用户家里所训练的光强值范围相似,有可能会在办公室启动起床闹钟,因此需要将这些例外的情况排除,这些例外情况在本文中称为干扰。However, there are also exceptions to the user use case. For example, in the office, the situation of switching lights similar to that at home will also occur. If the light intensity value range trained in the office is similar to the light intensity value range trained in the user's home, there is A wake-up alarm may be activated at the office, so these exceptions, referred to herein as distractions, need to be ruled out.
因此,在本发明的一种进一步的优选实施例中,本发明的方法还进一步包括:设置存储干扰状态类型及其干扰数据;并且在步骤103判断光强数据是否发生所存储的所述光强值范围间的变化方式时,进一步获取所存储的干扰状态类型指定的智能移动终端当前的状态数据,判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,若符合,则不向智能移动终端闹钟发出闹钟控制指令;若不符合、且在光强数据发生所存储的所述光强值范围间的变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。Therefore, in a further preferred embodiment of the present invention, the method of the present invention further includes: setting and storing the interference state type and its interference data; When the value range changes, further obtain the current state data of the intelligent mobile terminal specified by the stored interference state type, and judge whether the current state data of the intelligent mobile terminal is consistent with the stored interference data. The mobile terminal alarm clock sends out an alarm clock control command; if it does not match, and in the case of a change mode between the stored light intensity value ranges in the light intensity data, determine the current alarm clock state, query the alarm clock state and the change mode corresponding The alarm clock control command is sent to the smart mobile terminal alarm clock to send the alarm clock control command.
例如,所述干扰状态类型及其干扰数据、以及判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,包括以下任意种:For example, the interference state type and its interference data, and judging whether the current state data of the smart mobile terminal conforms to the stored interference data include any of the following:
(1)所述干扰状态类型为地理位置状态,其干扰数据为用户设定的干扰地理位置;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的地理位置是否为所述用户设定的干扰地理位置,如果是则符合,否则不符合。例如目前智能移动终端都用基于位置服务(LBS)功能,智能移动终端可以记录用户家的位置信息以及办公室的位置信息,将除了家的位置信息的其它位置信息(如办公室的位置信息)设置为起床闹钟的干扰数据,那么当在办公室里监测到上述表1中所述光强数据变化,也不会触发对所述起床闹钟的控制指令,这样就可以避免在办公室响铃的尴尬。(1) The interference state type is a geographic location state, and its interference data is the interference geographic location set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging the current state of the smart mobile terminal Whether the geographic location of is the interference geographic location set by the user, if yes, it meets, otherwise it does not. For example, all smart mobile terminals currently use the location-based service (LBS) function. The smart mobile terminal can record the location information of the user's home and the location information of the office, and set other location information (such as the location information of the office) except the location information of the home as If the interference data of the wake-up alarm clock is detected in the office, when the light intensity data change in the above table 1 is detected, the control command to the wake-up alarm clock will not be triggered, so that the embarrassment of ringing the bell in the office can be avoided.
至于如何判定办公场所和用户家的地理位置,可以提供地图界的插件面由用户自定设定;也可以通过一个特定算法确定,具体方法是:在工作日工作时段监测一段时间智能移动终端所处的地理位置,如果位置在某一个小范围内不变的话,可以取中心点并以此画半径一公里的圆的区域为办公场所的区域;反之在夜间监测一段时间内位置在某一个小范围内不变的话,可以取中心点并以此画半径一公里的圆的区域为用户家的位置。As for how to determine the geographical location of the office and the user's home, the plug-in interface of the map can be provided and set by the user; it can also be determined by a specific algorithm. The geographic location of the office, if the location remains unchanged within a certain small range, you can take the center point and draw a circle with a radius of one kilometer as the area of the office; If the range remains unchanged, you can take the center point and draw a circle with a radius of one kilometer as the location of the user's home.
(2)所述干扰状态类型为时间状态,其干扰数据为用户设定的干扰时间段;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的时间是否为所述用户设定的干扰时间段,如果是则符合,否则不符合。设置这种干扰数据是因为,用户睡眠习惯是有规律的,一般闹钟只在早上用户起床前的一段时间内会被触发,或者用户可以自定义的设置闹钟可以被触发或不被触发的时间段。(2) The interference state type is a time state, and its interference data is the interference time period set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging the current state of the smart mobile terminal Whether the time is the interference time period set by the user, if it is, it is met, otherwise it is not. The reason for setting this kind of interference data is that the user’s sleep habits are regular. Generally, the alarm clock will only be triggered for a period of time before the user gets up in the morning, or the user can customize the time period when the alarm clock can be triggered or not be triggered. .
(3)所述干扰状态类型为账户状态,其干扰数据为用户设定的干扰账户;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的账户是否为所述用户设定的干扰账户,如果是则符合,否则不符合。这种情况是因为未来智能终端可能会支持多账户,对于每个账户,都会有不同的闹钟控制方式。(3) The interference state type is an account state, and its interference data is an interference account set by the user; the judging whether the current state data of the smart mobile terminal matches the stored interference data is: judging the current account of the smart mobile terminal Whether it is the interference account set for the user, if it is, it is met, otherwise it is not. This is because the smart terminal may support multiple accounts in the future, and each account will have a different alarm clock control method.
(4)所述干扰状态类型为智能移动终端方向状态,其干扰数据为用户设定的干扰朝向;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的方向状态是否为所述用户设定的干扰朝向,如果是则符合,否则不符合。比如通常触发起床闹钟时,智能移动终端屏幕是水平放置的。但是,智能移动终端从外界放入包里面的过程。这个时候光强度会有从高到黑暗的过程,但是通过三轴陀螺仪所获取的x/y/z值会判定到放入包里面的时候,智能移动终端屏幕朝向一般不是水平的,这是一个干扰朝向,这个时候并不会触发闹钟操作。(4) The interference state type is the direction state of the intelligent mobile terminal, and its interference data is the interference direction set by the user; the determination of whether the current state data of the intelligent mobile terminal is consistent with the stored interference data is as follows: judging the intelligent mobile terminal Whether the current direction state is the interference direction set by the user, if yes, it is met, otherwise it is not. For example, when the wake-up alarm clock is usually triggered, the screen of the smart mobile terminal is placed horizontally. However, the process of putting the smart mobile terminal into the bag from the outside. At this time, the light intensity will go from high to dark, but the x/y/z values obtained by the three-axis gyroscope will determine that when it is put into the bag, the orientation of the screen of the smart mobile terminal is generally not horizontal, which is A disturbing orientation, this time will not trigger the alarm clock operation.
当然,所述干扰状态类型及其干扰数据、以及判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,还可以根据实际场景的需要有多种不同的具体实施方式,并不限于上述几种。例如当室内微弱的灯光变化出现时,或者是用户不期望导致闹钟操作的室内环境光强度变化出现时,都可以设置这种场景参数作为干扰数据。Certainly, the interference state type and its interference data, and judging whether the current state data of the smart mobile terminal conforms to the stored interference data can also have a variety of different specific implementations according to the needs of actual scenarios, and are not limited to the above-mentioned Several kinds. For example, when there is a weak light change in the room, or when the user does not expect the change in the indoor ambient light intensity to cause the alarm clock to operate, such scene parameters can be set as interference data.
与上述方法对应,本发明还公开了一种智能移动终端的闹钟控制装置,用于执行上述方法。图6为本发明所述智能移动终端的闹钟控制装置的一种组成示意图,参见图6,该闹钟控制装置600具体包括:Corresponding to the above method, the present invention also discloses an alarm clock control device for an intelligent mobile terminal, which is used to execute the above method. FIG. 6 is a schematic diagram of the composition of the alarm clock control device of the smart mobile terminal according to the present invention. Referring to FIG. 6, the alarm clock control device 600 specifically includes:
训练模块601,用于调用智能移动终端的光传感器监测光强数据,根据所监测的光强数据训练至少两个光强值范围,存储该至少两个光强值范围;The training module 601 is used to call the light sensor of the smart mobile terminal to monitor light intensity data, train at least two light intensity value ranges according to the monitored light intensity data, and store the at least two light intensity value ranges;
用例模块602,用于设置存储闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令;The use case module 602 is used to set the alarm clock control instruction corresponding to the storage alarm clock state and the change mode of the light intensity data between the light intensity value ranges;
控制模块603,用于调用智能移动终端的光传感器监测光强数据,判断光强数据是否发生所存储的所述光强值范围间的变化方式,在发生所述某种变化方式的情况下,确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。The control module 603 is used to call the light sensor of the smart mobile terminal to monitor the light intensity data, and determine whether the light intensity data has a change mode between the stored light intensity value ranges, and if the certain change mode occurs, Determine the current state of the alarm clock, inquire about the state of the alarm clock and the alarm clock control instruction corresponding to the change mode, and send the alarm clock control instruction to the alarm clock of the smart mobile terminal.
一种具体的实施例中,所述训练模块601具体用于:调用智能移动终端的光传感器监测并记录一段时间内的光强数据,计算该段时间内的光强均值,设定以该光强均值为参考点的光强值范围;重复本步骤,得到至少两个光强值范围。In a specific embodiment, the training module 601 is specifically used to: call the light sensor of the smart mobile terminal to monitor and record light intensity data within a period of time, calculate the average value of light intensity within this period of time, and set the The mean intensity is the light intensity value range of the reference point; repeat this step to obtain at least two light intensity value ranges.
在一种具体的实施例中,所述两个光强值范围包括高光强值范围和低光强值范围;In a specific embodiment, the two light intensity value ranges include a high light intensity value range and a low light intensity value range;
所述用例模块602所设置存储的闹钟状态和光强数据在所述光强值范围间的变化方式对应的闹钟控制指令,具体包括以下任意种:The alarm clock control instructions corresponding to the stored alarm clock state and the change mode of the light intensity data between the light intensity value ranges set by the use case module 602 specifically include any of the following:
闹钟状态为闹钟正在响铃、光强数据从所述低光强值范围变化到高光强值范围,对应的闹钟控制指令为关闭当前正在响铃的闹钟;The state of the alarm clock is that the alarm clock is ringing, and the light intensity data changes from the low light intensity value range to the high light intensity value range, and the corresponding alarm clock control instruction is to turn off the currently ringing alarm clock;
闹钟状态为闹钟正在响铃、光强数据从所述低光强值范围变化到高光强值范围再在指定时间内变化到所述低光强值范围,对应的闹钟控制指令为推迟指定时间后再次响铃;The state of the alarm clock is that the alarm clock is ringing, and the light intensity data changes from the low light intensity value range to the high light intensity value range and then changes to the low light intensity value range within a specified time. ring the bell
闹钟状态为闹钟未设置、光强数据从所述高光强值范围变化到低光强值范围,对应的闹钟控制指令为打开对应预设的闹钟;The state of the alarm clock is that the alarm clock is not set, and the light intensity data changes from the high light intensity value range to the low light intensity value range, and the corresponding alarm clock control command is to turn on the corresponding preset alarm clock;
闹钟状态为闹钟未响铃但已经设置、光强数据从所述低光强值范围变化到高光强值范围再在指定时间内变化到所述低光强值范围,对应的闹钟控制指令为关闭该已经设置的闹钟。The state of the alarm clock is that the alarm clock has not rang but has been set, and the light intensity data changes from the low light intensity value range to the high light intensity value range and then changes to the low light intensity value range within a specified time, and the corresponding alarm clock control command is to turn off the Already set alarm clock.
在一种优选实施例中,如图7所示,该装置600进一步包括:干扰设置模块604,用于设置存储干扰状态类型及其干扰数据;In a preferred embodiment, as shown in FIG. 7, the device 600 further includes: an interference setting module 604, configured to set and store the interference state type and its interference data;
所述控制模块603中进一步包括干扰排除模块631,用于在判断光强数据是否发生所存储的所述光强值范围间的变化方式时,进一步获取所存储的干扰状态类型指定的智能移动终端当前的状态数据,判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,若符合,则通知控制模块603不向智能移动终端闹钟发出闹钟控制指令;若不符合、且在光强数据发生所存储的所述光强值范围间的变化方式的情况下,触发控制模块603确定当前的闹钟状态,查询该闹钟状态和该变化方式对应的闹钟控制指令,向智能移动终端闹钟发出该闹钟控制指令。The control module 603 further includes an interference elimination module 631, which is used to further obtain the stored intelligent mobile terminal specified by the type of interference state when judging whether the light intensity data changes in the range of the stored light intensity value. Current state data, judge whether the current state data of the smart mobile terminal is consistent with the stored interference data, if so, notify the control module 603 not to send an alarm clock control instruction to the smart mobile terminal alarm clock; In the case of a stored change mode between the light intensity value ranges, the trigger control module 603 determines the current alarm clock state, queries the alarm clock state and the alarm clock control instruction corresponding to the change mode, and sends the alarm clock to the smart mobile terminal alarm clock Control instruction.
更为具体的,所述干扰状态类型及其干扰数据、以及判断智能移动终端当前的状态数据是否与所存储的干扰数据符合,包括以下任意种:More specifically, the interference state type and its interference data, and judging whether the current state data of the smart mobile terminal conforms to the stored interference data include any of the following:
所述干扰状态类型为地理位置状态,其干扰数据为用户设定的干扰地理位置;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的地理位置是否为所述用户设定的干扰地理位置,如果是则符合,否则不符合;The interference state type is a geographic location state, and its interference data is the interference geographic location set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging the current geographic location of the smart mobile terminal Whether it is the interfering geographical location set for the user, if yes, it meets, otherwise it does not;
所述干扰状态类型为时间状态,其干扰数据为用户设定的干扰时间段;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的时间是否为所述用户设定的干扰时间段,如果是则符合,否则不符合;The interference state type is a time state, and its interference data is the interference time period set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging whether the current time of the smart mobile terminal is The interference time period set by the user, if it is, it is met, otherwise it is not met;
所述干扰状态类型为账户状态,其干扰数据为用户设定的干扰账户;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的账户是否为所述用户设定的干扰账户,如果是则符合,否则不符合;The interference state type is an account state, and its interference data is an interference account set by the user; the judging whether the current state data of the smart mobile terminal is consistent with the stored interference data is: judging whether the current account of the smart mobile terminal is the Interference account set by the above user, if it is, it is in compliance, otherwise it is not in compliance;
所述干扰状态类型为智能移动终端方向状态,其干扰数据为用户设定的干扰朝向;所述判断智能移动终端当前的状态数据是否与所存储的干扰数据符合为:判断智能移动终端当前的方向状态是否为所述用户设定的干扰朝向,如果是则符合,否则不符合。The interference state type is the direction state of the intelligent mobile terminal, and its interference data is the interference direction set by the user; the determination of whether the current state data of the intelligent mobile terminal is consistent with the stored interference data is as follows: judging the current direction of the intelligent mobile terminal Whether the state is the interference orientation set by the user, if yes, it is met, otherwise it is not.
本发明的光传感器可以利用智能移动终端中自带的,也可以使用额外的传感器,它用来提供原始的光线强度变化数据等等原始数据。The optical sensor of the present invention can be used in the smart mobile terminal itself, or an additional sensor can be used to provide original data such as original light intensity change data.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。所述各实施例的功能模块可以位于一个终端或网络节点,或者也可以分布到多个终端或网络节点上。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may physically exist separately, or two or more modules may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. The functional modules of the various embodiments may be located in one terminal or network node, or may be distributed to multiple terminals or network nodes.
另外,本发明的每一个实施例可以通过由数据处理设备如计算机执行的数据处理程序来实现。显然,数据处理程序构成了本发明。此外,通常存储在一个存储介质中的数据处理程序通过直接将程序读取出存储介质或者通过将程序安装或复制到数据处理设备的存储设备(如硬盘和或内存)中执行。因此,这样的存储介质也构成了本发明。存储介质可以使用任何类型的记录方式,例如纸张存储介质(如纸带等)、磁存储介质(如软盘、硬盘、闪存等)、光存储介质(如CD-ROM等)、磁光存储介质(如MO等)等。In addition, each embodiment of the present invention can be realized by a data processing program executed by a data processing device such as a computer. Obviously, the data processing program constitutes the present invention. In addition, usually a data processing program stored in a storage medium is executed by directly reading the program out of the storage medium or by installing or copying the program into a storage device (such as a hard disk and/or memory) of the data processing device. Therefore, such a storage medium also constitutes the present invention. The storage medium can use any type of recording method, such as paper storage medium (such as paper tape, etc.), magnetic storage medium (such as floppy disk, hard disk, flash memory, etc.), optical storage medium (such as CD-ROM, etc.), magneto-optical storage medium ( Such as MO, etc.) etc.
因此本发明还公开了一种存储介质,其中存储有数据处理程序,该数据处理程序用于执行本发明上述方法的任何一种实施例。Therefore, the present invention also discloses a storage medium, in which a data processing program is stored, and the data processing program is used to execute any embodiment of the above-mentioned method of the present invention.
另外,本发明所述的方法步骤除了可以用数据处理程序来实现,还可以由硬件来实现,例如,可以由逻辑门、开关、专用集成电路(ASIC)、可编程逻辑控制器和嵌入微控制器等来实现。因此这种可以实现本发明所述方法的硬件也可以构成本发明。In addition, the steps of the method described in the present invention can be implemented by hardware besides data processing programs, for example, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded micro-controllers can also be implemented. device etc. to achieve. Therefore, such hardware capable of implementing the method of the present invention may also constitute the present invention.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410491266.0A CN104267948B (en) | 2014-09-23 | 2014-09-23 | The alarm clock control method and device of intelligent mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410491266.0A CN104267948B (en) | 2014-09-23 | 2014-09-23 | The alarm clock control method and device of intelligent mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104267948A CN104267948A (en) | 2015-01-07 |
CN104267948B true CN104267948B (en) | 2017-12-01 |
Family
ID=52159472
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410491266.0A Active CN104267948B (en) | 2014-09-23 | 2014-09-23 | The alarm clock control method and device of intelligent mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104267948B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104656412A (en) * | 2015-01-20 | 2015-05-27 | 深圳市金立通信设备有限公司 | Method for adjusting alarm |
CN104965404A (en) * | 2015-06-30 | 2015-10-07 | 傅明尧 | Mobile terminal alarm clock control system |
CN106371343A (en) * | 2016-11-09 | 2017-02-01 | 北京奇虎科技有限公司 | Household electrical appliance-based control method and electronic device |
CN107193477B (en) * | 2017-05-19 | 2021-01-05 | 努比亚技术有限公司 | Alarm clock misoperation prevention method, mobile terminal and computer readable medium |
CN107390503B (en) * | 2017-07-03 | 2021-01-15 | 北京小米移动软件有限公司 | Method and device for controlling alarm clock signal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5359577A (en) * | 1992-09-03 | 1994-10-25 | Seikosha Co., Ltd. | Alarm clock having an ambient light detector |
CN201607624U (en) * | 2009-11-12 | 2010-10-13 | 康佳集团股份有限公司 | Optical signal sensing alarm clock |
CN201917791U (en) * | 2010-12-31 | 2011-08-03 | 上海市闵行区纪王学校 | light alarm clock |
CN102638760A (en) * | 2012-03-29 | 2012-08-15 | 广东步步高电子工业有限公司 | A method for controlling the ringing of an alarm clock according to geographical location and its handheld device |
CN103501389A (en) * | 2013-09-28 | 2014-01-08 | 深圳市金立通信设备有限公司 | Method and terminal for turning off alarm |
-
2014
- 2014-09-23 CN CN201410491266.0A patent/CN104267948B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5359577A (en) * | 1992-09-03 | 1994-10-25 | Seikosha Co., Ltd. | Alarm clock having an ambient light detector |
CN201607624U (en) * | 2009-11-12 | 2010-10-13 | 康佳集团股份有限公司 | Optical signal sensing alarm clock |
CN201917791U (en) * | 2010-12-31 | 2011-08-03 | 上海市闵行区纪王学校 | light alarm clock |
CN102638760A (en) * | 2012-03-29 | 2012-08-15 | 广东步步高电子工业有限公司 | A method for controlling the ringing of an alarm clock according to geographical location and its handheld device |
CN103501389A (en) * | 2013-09-28 | 2014-01-08 | 深圳市金立通信设备有限公司 | Method and terminal for turning off alarm |
Also Published As
Publication number | Publication date |
---|---|
CN104267948A (en) | 2015-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11205427B2 (en) | Method, apparatus, system, device for controlling intelligent device and storage medium | |
CN104267948B (en) | The alarm clock control method and device of intelligent mobile terminal | |
CN104315663B (en) | Method and device for controlling work of air purifier | |
EP3016084B1 (en) | Methods and devices for mode switch | |
KR101846752B1 (en) | Method and device for turning on air conditioner | |
US9961639B2 (en) | Method and apparatus for notifying missed events | |
US9940828B2 (en) | Home appliance control method and device | |
EP3151526B1 (en) | Reminding method and device thereof | |
US20160324366A1 (en) | Method and device for starting rice cooker | |
WO2016065823A1 (en) | Air purification reminder method, reminder apparatus, user device and system | |
CN107872576B (en) | Alarm clock reminding method and device and computer readable storage medium | |
CN104301534A (en) | A method and device for intelligently adjusting the scene mode of a mobile terminal | |
CN104315664B (en) | Control the method and device of air purifier work | |
CN105517277A (en) | Controlling method and apparatus for lighting equipment | |
CN106371326B (en) | Storage method and device for equipment working scene | |
EP4307056A1 (en) | Event processing method and system, and device | |
CN107864298A (en) | An intelligent reminder method and device | |
CN104052858A (en) | Method for setting situational pattern of mobile terminal and mobile terminal | |
CN105403251A (en) | Method and apparatus for early warning of indoor environment | |
CN106791190A (en) | Information reminding mode switching method and device and user equipment | |
WO2017156767A1 (en) | Mobile terminal, and method and apparatus for implementing smart alarm clock thereof | |
CN104992315A (en) | Intelligent display method and device for detection result and household equipment | |
CN105657946A (en) | Method and device for controlling lamps | |
CN106873988A (en) | A kind of alarm clock automatic adjusting method, device and mobile terminal | |
CN105242775B (en) | The method and device of state adjustment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |