CN105094800A - Alarm method, device and terminal - Google Patents

Alarm method, device and terminal Download PDF

Info

Publication number
CN105094800A
CN105094800A CN201510303556.2A CN201510303556A CN105094800A CN 105094800 A CN105094800 A CN 105094800A CN 201510303556 A CN201510303556 A CN 201510303556A CN 105094800 A CN105094800 A CN 105094800A
Authority
CN
China
Prior art keywords
time
quarter
bell
consecutive days
time attribute
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.)
Granted
Application number
CN201510303556.2A
Other languages
Chinese (zh)
Other versions
CN105094800B (en
Inventor
刘山荣
江忠胜
李国盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510303556.2A priority Critical patent/CN105094800B/en
Publication of CN105094800A publication Critical patent/CN105094800A/en
Application granted granted Critical
Publication of CN105094800B publication Critical patent/CN105094800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The disclosure relates to an alarm method, an alarm device and an alarm terminal and belongs to the technical field of a terminal. The method comprises the steps as follows: obtaining time attribute of a current natural day while detecting that an alarm is not set in a first time period of the current natural day; determining alarm reference data corresponding to the time attribute of the current natural day according to the time attribute of the current natural day and an appointed database; generating an appointed alarm; judging whether a screen in a second time period from the start time of the first time period to the start time of the appointed alarm is lighted or not, and performing alarm reminding according to the appointed alarm if the screen is not lighted. In the embodiment of the disclosure, the appointed alarm in the first time period is generated by obtaining the time attribute of the current natural day while detecting that the alarm is not set in the first time period of the current natural day. The appointed alarm could automatically perform alarm reminding while the screen from the start time of the first time period to the start time of the appointed alarm is not lighted so as to achieve an alarm manner under the condition that the alarm is not preset so that the alarm manner is more flexible.

Description

Alarming method, device and terminal
Technical field
The disclosure relates to field of terminal technology, particularly a kind of alarming method, device and terminal.
Background technology
Along with developing rapidly of terminal technology, various terminal role in daily life, study and work is more and more obvious.Such as, in order to play the effect of real-time reminding user, increasing terminal provides alarm.
In correlation technique, terminal is when quarter-bell, and the method usually adopted is: user pre-sets the moment of terminal quarter-bell, when current time arrives the quarter-bell moment of user's setting, and the automatic quarter-bell of terminal.
Summary of the invention
The disclosure provides a kind of alarming method, device and terminal.
According to the first aspect of disclosure embodiment, provide a kind of alarming method, described method comprises:
When detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of described current consecutive days;
According to time attribute and the specified database of described current consecutive days, determine the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, described specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
The quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell;
Judge in the second time period, whether screen is lighted, described second time period is the time period between the start time from start time of described first time period to described appointment quarter-bell;
If screen is not lighted in described second time period, then carry out clock alarming according to described appointment quarter-bell.
In conjunction with first aspect, in the first possible implementation of first aspect, the time attribute of described acquisition described current consecutive days, comprising:
When arriving the Startup time of the first timer preset, call calendar application, the Startup time of described first timer is the start time of described first time period;
The time attribute of described current consecutive days is inquired about in the database of described calendar application.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, the described time attribute according to described current consecutive days and specified database, before determining the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, also comprise:
The moment lighted by the screen obtained in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data;
According to the type of time attribute, light sample data classify to the screen of all history consecutive days in first time period, sample data lighted by all screens obtaining each time attribute corresponding;
Sample data lighted by all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding;
Set up specified database, described specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, sample data lighted by the described all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding, comprising:
Sample data lighted by all screens corresponding according to each time attribute, calculate that sample corresponding to each time attribute is expected, sample variance and sample variance average, sample corresponding for each time attribute is expected, sample variance and sample variance average is as quarter-bell reference data corresponding to each time attribute.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation of first aspect, the described quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell, comprising:
When the sample variance that the time attribute of described current consecutive days is corresponding is all less than appointment numerical value, generate second timer;
The sample variance corresponding according to the time attribute of described current consecutive days, determines the Startup time of described second timer, using the start time of the Startup time of described second timer as described appointment quarter-bell.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation of first aspect, described to judge in the second time period whether screen is lighted after, also comprise:
If screen is lighted in the second time period, then delete described second timer.
According to the second aspect of disclosure embodiment, provide a kind of alarm clock, described device comprises:
First acquisition module, for when detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of described current consecutive days;
Determination module, for according to the time attribute of described current consecutive days and specified database, determine the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, described specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
Generation module, for the quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell;
Judge module, for judging in the second time period, whether screen is lighted, described second time period is the time period between the start time from start time of described first time period to described appointment quarter-bell;
Quarter-bell module, for when screen is not lighted in described second time period, carries out clock alarming according to described appointment quarter-bell.
In conjunction with second aspect, in the first possible implementation of second aspect, described first acquisition module comprises:
Call unit, for when arriving the Startup time of the first timer preset, call calendar application, the Startup time of described first timer is the start time of described first time period;
Query unit, for inquiring about the time attribute of described current consecutive days in the database of described calendar application.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described device also comprises:
Second acquisition module, lights the moment for the screen obtained in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data;
Sort module, for the type according to time attribute, lights sample data to the screen of all history consecutive days in first time period and classifies, and sample data lighted by all screens obtaining each time attribute corresponding;
Computing module, lights sample data for all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding;
Set up module, for setting up specified database, described specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, described computing module, sample data is lighted for all screens corresponding according to each time attribute, calculate that sample corresponding to each time attribute is expected, sample variance and sample variance average, sample corresponding for each time attribute is expected, sample variance and sample variance average is as quarter-bell reference data corresponding to each time attribute.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation of second aspect, described generation module comprises:
Generation unit, when being less than appointment numerical value for the sample variance average that the time attribute when described current consecutive days is corresponding, generates second timer;
Determining unit, expects for the sample corresponding according to the time attribute of described current consecutive days, determines the Startup time of described second timer, using the start time of the Startup time of described second timer as described appointment quarter-bell.
In conjunction with the 4th kind of possible implementation of second aspect, in the 5th kind of possible implementation of second aspect, described device also comprises:
Removing module, for when screen is lighted in the second time period, deletes described second timer.
According to the third aspect of disclosure embodiment, provide a kind of terminal, described terminal comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of described current consecutive days;
According to time attribute and the specified database of described current consecutive days, determine the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, described specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
The quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell;
Judge in the second time period, whether screen is lighted, described second time period is the time period between the start time from start time of described first time period to described appointment quarter-bell;
If screen is not lighted in described second time period, then carry out clock alarming according to described appointment quarter-bell.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
When detect in the first time period of current consecutive days, quarter-bell is not set time, by obtaining the time attribute of current consecutive days, and according to the time attribute of current consecutive days and specified database, generate the appointment quarter-bell in first time period, this appointment quarter-bell can realize when by first time period start time to specify quarter-bell start time between screen do not light time, automatically clock alarming is carried out, thus realizing a kind of mode not presetting automatic quarter-bell under quarter-bell situation, quarter-bell mode is more flexible.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows embodiment according to the invention, and is used from instructions one and explains principle of the present invention.
Fig. 1 is the process flow diagram of a kind of alarming method according to an exemplary embodiment.
Fig. 2 is the process flow diagram of a kind of alarming method according to an exemplary embodiment.
Fig. 3 is the block diagram of a kind of alarm clock according to an exemplary embodiment.
Fig. 4 is the block diagram of a kind of first acquisition module according to an exemplary embodiment.
Fig. 5 is the block diagram of a kind of alarm clock according to an exemplary embodiment.
Fig. 6 is the block diagram of a kind of generation module according to an exemplary embodiment.
Fig. 7 is the block diagram of a kind of alarm clock according to an exemplary embodiment.
Fig. 8 is the block diagram of a kind of terminal according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present invention are consistent.
Fig. 1 is the process flow diagram of a kind of alarming method according to an exemplary embodiment, and the alarming method that disclosure embodiment provides is in terminal.As shown in Figure 1, the alarming method that disclosure embodiment provides comprises the following steps.
In step S101, when detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of current consecutive days.
In step s 102, according to time attribute and the specified database of current consecutive days, determine the quarter-bell reference data that the time attribute of current consecutive days is corresponding, wherein, specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data.
In step s 103, the quarter-bell reference data corresponding according to the time attribute of current consecutive days, generates and specifies quarter-bell.
In step S104, judge in the second time period, whether screen is lighted, wherein, the second time period be from start time of first time period to the start time of specifying quarter-bell between time period.
In step S105, if screen is not lighted in the second time period, then carry out clock alarming according to appointment quarter-bell.
In disclosure embodiment, when detect in the first time period of current consecutive days, quarter-bell is not set time, by obtaining the time attribute of current consecutive days, and according to the time attribute of current consecutive days and specified database, generate the appointment quarter-bell in first time period, this appointment quarter-bell can realize when by first time period start time to specify quarter-bell start time between screen do not light time, automatically clock alarming is carried out, thus realizing a kind of mode not presetting automatic quarter-bell under quarter-bell situation, quarter-bell mode is more flexible.
In another embodiment, obtain the time attribute of current consecutive days, comprising:
When arriving the Startup time of the first timer preset, call calendar application, wherein, the Startup time of first timer is the start time of first time period;
The time attribute of current consecutive days is inquired about in the database of calendar application.
In another embodiment, according to time attribute and the specified database of current consecutive days, before determining the quarter-bell reference data that the time attribute of current consecutive days is corresponding, also comprise:
The moment lighted by the screen obtained in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data;
According to the type of time attribute, light sample data classify to the screen of all history consecutive days in first time period, sample data lighted by all screens obtaining each time attribute corresponding;
Sample data lighted by all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding;
Set up specified database, wherein, specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
In another embodiment, sample data lighted by all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding, comprising:
Sample data lighted by all screens corresponding according to each time attribute, calculate that sample corresponding to each time attribute is expected, sample variance and sample variance average, sample corresponding for each time attribute is expected, sample variance and sample variance average is as quarter-bell reference data corresponding to each time attribute.
In another embodiment, the quarter-bell reference data corresponding according to the time attribute of current consecutive days, generates and specifies quarter-bell, comprising:
If sample variance average corresponding to the time attribute of current consecutive days is less than appointment numerical value, then generate second timer;
The sample corresponding according to the time attribute of current consecutive days is expected, determines the Startup time of second timer, using the Startup time of second timer as the start time of specifying quarter-bell.
In another embodiment, after judging in the second time period whether screen is lighted, also comprise:
If screen is lighted in the second time period, then delete second timer.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
Fig. 2 is the process flow diagram of a kind of alarming method according to an exemplary embodiment, and the alarming method that disclosure embodiment provides is in terminal.As shown in Figure 2, the alarming method that disclosure embodiment provides comprises the following steps.
In step s 201, the moment lighted by the screen obtained in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data.
Wherein, screen is lighted and is referred to that terminal becomes the moment of bright screen state from black state.When the moment of user operation terminal, terminal screen is lighted.In the disclosed embodiments, the moment lighted by the screen in first time period is the moment that in first time period, screen is lit for the first time.History day is each consecutive days before current consecutive days naturally.First time period is the time period that possible need quarter-bell.About the concrete time range of first time period, disclosure embodiment does not do concrete restriction.Such as, first time period can be that 4:00 AM is the time period of 10 in the morning to.
In the disclosed embodiments, before obtaining the screen in the first time period recorded each history consecutive days and lighting the moment, for each history consecutive days, terminal all can record its screen in first time period and light the moment, therefore, the screen of each history consecutive days in first time period can be obtained and light sample data, when the follow-up method being provided by disclosure embodiment carrying out quarter-bell, light sample data according to the screen recorded history consecutive days and realizing.
Particularly, when terminal each history naturally daily have recorded its screen in first time period light the moment time, terminal can from all natures from recorded data, and the moment lighted by the screen obtained in the first time period that records each history consecutive days.
In step S202, according to the type of time attribute, light sample data classify to the screen of all history consecutive days in first time period, sample data lighted by all screens obtaining each time attribute corresponding.
Wherein, for different consecutive days, it often has cycle regular hour, if a week is a time cycle, or within one month, is a time cycle etc.Arbitrary consecutive days in each time cycle can be different from other consecutive days in this time cycle.Time attribute refers to the temporal characteristics that each consecutive days is intrinsic, has different time attribute different consecutive days included by the time cycle.Such as, when the time cycle is a week, Monday can be different from Tu..If some consecutive days are Monday, then the time attribute of this consecutive days is Monday.Again such as, if a time cycle is one month, then when some consecutive days are March 25, the time attribute of this consecutive days is No. 25.
In the disclosed embodiments, the rule that the screen supposing in first time period is lighted the moment tool is different in the different consecutive days of a time cycle.Such as, for some terminal users, when time attribute is Monday, its screen in first time period lights the moment usually at 6 points; When time attribute is Tu., its screen in first time period lights the moment usually at 7 etc.That is, the consecutive days of different time attribute, its screen is lighted the moment and may be taken on a different character.In order to the feature in moment lighted by the screen obtained corresponding to each time attribute, terminal, according to the type of time attribute, is lighted sample data to the screen of all history consecutive days and is classified, and sample data lighted by all screens obtaining each time attribute corresponding.
About the mode screen of all history consecutive days lighted to sample data and classify, can have a variety of.During concrete enforcement, can the time cycle be pre-set, and determine the time attribute of every day in the time cycle, then the screen belonging to same time attribute be lighted sample data and be summarized in together, thus realize classification.
For the ease of classification, step S201 record each history consecutive days light the moment at the screen of first time period time, can the time cycle be pre-set, and the screen with same time attribute is lighted sample data be recorded in together.Particularly, each different time attribute in the time cycle that terminal can pre-set for this arranges a chained list respectively, and when sample data lighted by the screen of trailer record arbitrary history consecutive days, the screen of this history consecutive days is lighted sample data and is stored in corresponding chained list.
Such as, if pre-setting a time cycle is a week, then can pre-set seven chained lists, each chained list distinguishes corresponding Monday to Sun..When some history consecutive days, sample data lighted by the screen in first time period in storage, if the time attribute of this history consecutive days is Monday, then the screen of this history consecutive days in first time period is lighted sample data and be stored in chained list corresponding to Monday.
In step S203, sample data lighted by all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding.
In disclosure embodiment, quarter-bell reference data for terminal carry out clock alarming based on data.The sample corresponding due to each time attribute is expected, can reflect that the mean value of sample data lighted by all screens corresponding to each time attribute, the sample variance that each time attribute is corresponding and sample variance average can show that screen corresponding to each time attribute is lighted sample attribute and whether had stability, therefore, in the disclosed embodiments, sample corresponding for each time attribute is expected, sample variance and sample variance average be as quarter-bell reference data corresponding to each time attribute.
In conjunction with foregoing, sample data is lighted at all screens corresponding according to each time attribute, when calculating quarter-bell reference data corresponding to each time attribute, sample data can be lighted by all screens corresponding according to each time attribute, calculate sample expectation corresponding to each time attribute, sample variance and sample variance average.
Wherein, calculating that sample corresponding to each time attribute is expected, sample variance and sample variance average time, included but not limited to the following two kinds mode:
First kind of way: sample data lighted by all screens corresponding according to each time attribute, calculates sample expectation corresponding to each time attribute, sample variance and sample variance average.
That is, under this kind of mode, all screens corresponding to each time attribute are lighted sample data and all can be participated in calculating.
The second way: all screens corresponding in each time attribute are lighted in sample data, removes screen and lights moment sample data the earliest and screen and light moment screen the latest and light sample data, obtain the residue sample data that each time attribute is corresponding; The residue sample data corresponding according to each time attribute, calculates sample expectation corresponding to each time attribute, sample variance and sample variance average.
Under this kind of mode, light screen in sample data light moment sample data the earliest and moment sample data the latest lighted by screen by removing all screens corresponding to each time attribute, the screen lighting operation that some cause due to accidentalia can be removed, thus make quarter-bell reference data corresponding to each time attribute of generation can get rid of some accidentalia, thus have more referential.For convenience of explanation, below will for arbitrary time attribute, to calculating that sample corresponding to this time attribute is expected, the mode of sample variance and sample variance average is described.
Particularly, when calculating sample corresponding to arbitrary time attribute and expecting, can be realized by following formula (1):
E = N 1 + N 2 + . . . . . . N n n - - - ( 1 )
In formula (1), E represents the sample expectation that this time attribute is corresponding, N 1, N 2to N nrepresent that the moment lighted by the screen of a consecutive days in first time period respectively, n is the quantity that sample data lighted by all screens corresponding to this time attribute.
When the sample variance that the arbitrary time attribute of calculating is corresponding, can be realized by following formula (2):
D=(N 1-E) 2+(N 2-E) 2+......+(N n-E) 2(2)
In formula (2), E represents the sample expectation that this time attribute is corresponding, and D represents the sample variance that this time attribute is corresponding.
When the sample variance average that the arbitrary time attribute of calculating is corresponding, can be realized by following formula (3):
M = D n - - - ( 3 )
In formula (3), M represents the sample variance average that this time attribute is corresponding.
In step S204, set up specified database, wherein, specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
In conjunction with the particular content of quarter-bell reference data corresponding to above-mentioned each time attribute, table 1 shows a kind of signal table of specified database.
Table 1
Time attribute Sample is expected Sample variance Sample variance average
Monday A1 B1 C1
Tu. A2 B2 C2
…… …… …… ……
Sun. A7 B7 C7
Certainly, the data in table 1 only for citing, do not form the restriction to disclosure embodiment.In addition, be that example is illustrated as a time attribute respectively using Monday to Sun. in table 1, when specifically implementing, in conjunction with the Working Life situation of majority, time attribute can also be Monday to Friday, or one month 1 to No. 30 etc.
It should be noted that, step S201 to step S204 for terminal perform the alarming method that disclosure embodiment provides before need the step that performs, the step performed all is needed when being not and performing alarming method that disclosure embodiment provides at every turn, ensure, when the method provided by disclosure embodiment carries out quarter-bell, to set up specified database.
In step S205, when detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of current consecutive days.
Such as, when the date of today is May 23, May 23 is current consecutive days.
In the disclosed embodiments, when detect quarter-bell is not artificially set in the first time period of current consecutive days time, in order to play the effect of real-time reminding user, disclosure embodiment specifies quarter-bell automatically generating one current consecutive days.In order to determine the start time of the appointment quarter-bell generated, disclosure embodiment first obtains the time attribute of current consecutive days.
About detecting the mode whether arranging quarter-bell in the first time period of current consecutive days, include but not limited to: from quarter-bell application, inquire about the quarter-bell arranged, determine the quarter-bell that whether there is current consecutive days in the quarter-bell arranged.When there is the quarter-bell of current consecutive days in the quarter-bell arranged, in the quarter-bell that further detection has been arranged, whether there is the quarter-bell in first time period; When there is not the quarter-bell in first time period in the quarter-bell arranged, determine not arrange quarter-bell in the first time period of current consecutive days; Otherwise, determine to arrange quarter-bell in the first time period of current consecutive days.
Wherein, when obtaining the time attribute of current consecutive days, include but not limited to that S2051 and step S2052 realizes as follows:
In step S2051, when arriving the Startup time of the first timer preset, call calendar application, wherein, the Startup time of first timer is the start time of first time period.
In the disclosed embodiments, terminal can preset a first timer, and this first timer is used for when reaching the start time of first time period of current consecutive days, the time attribute of automatic acquisition current consecutive days.Usually, often comprise the time attribute of each consecutive days in the database of calendar application, therefore, quarter-bell application can be connected by specified interface with calendar application by terminal in advance.On this basis, when arriving the Startup time of the first timer preset, terminal can call calendar application by this specified interface, to be obtained the time attribute of current consecutive days by the database of calendar application.
In step S2052, in the database of calendar application, inquire about the time attribute of current consecutive days.
Particularly, when inquiring about the time attribute of current consecutive days in the database of calendar application, terminal first can obtain the date of current consecutive days, and in calendar application database, inquire about data corresponding to this date, thus obtains the time attribute of this current consecutive days.
Such as, be directed to a consecutive days, usually can comprise this consecutive days in the database of calendar application for what day; the information such as lunar calendar calendar, solar term that this consecutive days is corresponding; therefore, by inquiring about the database of calendar application, the time attribute of current consecutive days can be obtained.
In step S206, according to time attribute and the specified database of current consecutive days, determine the quarter-bell reference data that the time attribute of current consecutive days is corresponding.
Wherein, according to the time attribute of current consecutive days and specified database, when determining quarter-bell reference data corresponding to the time attribute of current consecutive days, time attribute in the time attribute of current consecutive days and specified database can be compared, using quarter-bell reference data corresponding for the time attribute of current consecutive days as the quarter-bell reference data determined.
In conjunction with the specified database shown in the particular content of quarter-bell reference data and table 1, quarter-bell reference data corresponding to the time attribute of the current consecutive days determined comprises that sample is expected, sample variance and sample variance average.
In step S207, if sample variance average corresponding to the time attribute of current consecutive days is less than appointment numerical value, then generate second timer, and the sample corresponding according to the time attribute of current consecutive days is expected, determine the Startup time of second timer, using the Startup time of second timer as the start time of specifying quarter-bell.
Wherein, this step is the quarter-bell reference data corresponding according to the time attribute of current consecutive days, generates the specific implementation of specifying quarter-bell.Certainly, in the quarter-bell reference data corresponding according to the time attribute of current consecutive days, when generating appointment quarter-bell, can also adopt alternate manner, disclosure embodiment does not do concrete restriction to this.
Numerical value is specified to be judge whether sample variance average corresponding to the time attribute of current consecutive days has informative numerical value, sample variance average is less, then can illustrate that the screen of time attribute in first time period corresponding to current consecutive days is lighted the moment and had stability.Particularly, in the disclosed embodiments, when sample variance average is less than appointment numerical value, show that the screen bright spot moment of the time attribute of current consecutive days in first time period has stability, thus appointment quarter-bell can be generated based on the quarter-bell reference data that the time attribute of this current consecutive days is corresponding.And when sample variance average is not less than appointment numerical value, then illustrate that this terminal user lights the moment of screen relatively arbitrarily, thus the method being unsuitable for using disclosure embodiment to provide carries out quarter-bell.
Certainly, because sample variance average is light the moment based on the screen of history consecutive days in first time period to obtain, therefore, namely itself have certain referential, therefore, also can not judge whether sample variance average corresponding to the time attribute of current consecutive days is less than specify numerical value and directly generate appointment quarter-bell.
In addition, second timer is used for carrying out clock alarming, and the Startup time of second timer is the start time of clock alarming.Therefore, when generating appointment quarter-bell, the Startup time determining second timer is also needed.Particularly, because the sample that the time attribute of current consecutive days is corresponding is expected to show that in each history consecutive days, the mean value in moment lighted by screen in first time period, therefore, can expect by the sample corresponding according to the time attribute of current consecutive days, determine the Startup time of second timer.
Particularly, expect at the sample corresponding according to the time attribute of current consecutive days, when determining the Startup time of second timer, included but not limited to the following two kinds mode:
First kind of way: directly sample corresponding for the time attribute of current consecutive days is expected the Startup time as second timer.
First kind of way: on the basis that the sample that the time attribute of current consecutive days is corresponding is expected, increase and specify duration, sample corresponding for the time attribute increasing the current consecutive days of specifying duration is expected the Startup time as second timer.
About the concrete duration of this appointment duration, disclosure embodiment does not do concrete restriction.During concrete enforcement, can set as required.Such as, this appointment duration can be 5 minutes, 10 minutes, 20 minutes etc.
Such as, if sample corresponding to the time attribute of current consecutive days is expected for 07:00:00, and when specifying duration to be 20 minutes, then the Startup time of second timer is 07:20:00.
In step S208, judge in the second time period, whether screen is lighted, if screen is not lighted in the second time period, then perform step S209; If screen is lighted in the second time period, then perform step S210; Wherein, the second time period be from start time of first time period to the start time of specifying quarter-bell between time period.
Particularly, when any button of terminal is pressed, the screen of terminal all can be lit, and therefore, when judging in the second time period, whether screen is lighted, includes but not limited to whether be pressed realize by detecting arbitrary button.
In step S209, carry out clock alarming according to appointment quarter-bell.
Particularly, when screen is not lighted within the second time period, then can determine that terminal user is in sleep pattern or may ignores the time within this second time period, now, clock alarming can be carried out according to appointment quarter-bell.
Wherein, when carrying out clock alarming according to appointment quarter-bell, when arriving the start time of specifying quarter-bell, jingle bell can be sent or shake, thus playing the effect of reminding user.
Further, disclosure embodiment can also pre-set time of carrying out clock alarming and clock alarming time delay.When the time of clock alarming arrive that this pre-sets carry out the time of clock alarming time, automatically stop quarter-bell.In addition, if stopping alarm time in the process arriving clock alarming time delay, screen is not being lighted, then terminal when arrival clock alarming time delay, can also carry out jingle bell again.Further, after again carrying out jingle bell, if automatically stop quarter-bell again, then can on arriving once clock alarming time delay time, again carry out clock alarming, until after detecting that user closes the operation of quarter-bell, clock alarming process terminates.Wherein, not between homogeneous quarter-bell, can be set different clock alarming time delay.Such as, first time clock alarming and second time clock alarming between clock alarming time delay of arranging be 10 minutes, the clock alarming arranged between second time and third time clock alarming is 5 minutes etc. time delay.
In step S210, delete second timer.
Particularly, when screen is lighted within the second time period, then can determining that user has waken up or do not ignored the time within this period, now, in order to avoid causing unnecessary interference to user, can second timer be deleted.
Further, in order to the quarter-bell reference data making each time attribute corresponding has more referential, the quarter-bell reference data that all right each time attribute of real-time update is corresponding.Particularly, after deletion second timer, the screen in the second time period can be lighted the moment is increased in chained list corresponding to the time attribute of current consecutive days, and the quarter-bell reference data corresponding according to the time attribute of the Data Update of this increase current consecutive days.Wherein, during according to the quarter-bell reference data that the time attribute of the Data Update of this increase current consecutive days is corresponding, sample data can be lighted in conjunction with the data of this increase and the screen recorded, recalculate sample average corresponding to this time attribute, sample variance and sample variance average.On this basis, when quarter-bell is specified in follow-up generation, the quarter-bell reference data corresponding according to the time attribute of the current consecutive days of this renewal realizes.
During disclosure embodiment provides, when detect in the first time period of current consecutive days, quarter-bell is not set time, by obtaining the time attribute of current consecutive days, and according to the time attribute of current consecutive days and specified database, generate the appointment quarter-bell in first time period, this appointment quarter-bell can realize when by first time period start time to specify quarter-bell start time between screen do not light time, automatically clock alarming is carried out, thus realizing a kind of mode not presetting automatic quarter-bell under quarter-bell situation, quarter-bell mode is more flexible.
Fig. 3 is the block diagram of a kind of alarm clock according to an exemplary embodiment, and this alarm clock may be used for performing the alarming method that corresponding to above-mentioned Fig. 1 or Fig. 2, embodiment provides.With reference to Fig. 3, this alarm clock comprises the first acquisition module 301, determination module 302, generation module 303, judge module 304 and quarter-bell module 305.Wherein:
This first acquisition module 301 be configured to when detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of current consecutive days;
This determination module 302 is configured to time attribute according to current consecutive days and specified database, determine the quarter-bell reference data that the time attribute of current consecutive days is corresponding, wherein, specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
This generation module 303 is configured to the quarter-bell reference data corresponding according to the time attribute of current consecutive days, generates and specifies quarter-bell;
This judge module 304 is configured to judge in the second time period, whether screen is lighted, wherein, the second time period be from start time of first time period to the start time of specifying quarter-bell between time period;
This quarter-bell module 305 is configured to when in the second time period, screen is not lighted, and carries out clock alarming according to appointment quarter-bell.
During disclosure embodiment provides, when detect in the first time period of current consecutive days, quarter-bell is not set time, by obtaining the time attribute of current consecutive days, and according to the time attribute of current consecutive days and specified database, generate the appointment quarter-bell in first time period, this appointment quarter-bell can realize when by first time period start time to specify quarter-bell start time between screen do not light time, automatically clock alarming is carried out, thus realizing a kind of mode not presetting automatic quarter-bell under quarter-bell situation, quarter-bell mode is more flexible.
In another embodiment, see Fig. 4, the first acquisition module 301 comprises call unit 3011 and query unit 3012.Wherein:
This call unit 3011 is configured to when arriving the Startup time of the first timer preset, and call calendar application, wherein, the Startup time of first timer is the start time of first time period;
This query unit 3012 is configured to the time attribute of inquiring about current consecutive days in the database of calendar application.
In another embodiment, see Fig. 5, alarm clock also comprises the second acquisition module 306, sort module 307, computing module 308 and sets up module 309.Wherein:
The moment lighted by the screen that this second acquisition module 306 is configured to obtain in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data;
This sort module 307 is configured to the type according to time attribute, lights sample data classify to the screen of all history consecutive days in first time period, and sample data lighted by all screens obtaining each time attribute corresponding;
This computing module 308 is configured to all screens corresponding according to each time attribute and lights sample data, calculates the quarter-bell reference data that each time attribute is corresponding;
This is set up module 309 and is configured to set up specified database, and wherein, specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
In another embodiment, this computing module 308 is configured to all screens corresponding according to each time attribute and lights sample data, calculate that sample corresponding to each time attribute is expected, sample variance and mean variance, sample is expected, sample variance and sample expects that variance is as quarter-bell reference data corresponding to each time attribute.
In another embodiment, see Fig. 6, this generation module 303 comprises generation unit 3031 and determining unit 3032.Wherein:
If sample variance average corresponding to the time attribute that this generation unit 3031 is configured to current consecutive days is less than appointment numerical value, then generate second timer;
This determining unit 3032 is configured to the sample corresponding according to the time attribute of current consecutive days and expects, determines the Startup time of second timer, using the Startup time of second timer as the start time of specifying quarter-bell.
In another embodiment, see Fig. 7, alarm clock also comprises removing module 310.
This removing module 310 is configured to when in the second time period, screen is lighted, and deletes second timer.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation optional embodiment of the present invention, this is no longer going to repeat them.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 8 is the block diagram of a kind of terminal according to an exemplary embodiment, and this terminal may be used for performing the alarming method that corresponding to above-mentioned Fig. 1 or Fig. 2, embodiment provides.Such as, terminal 800 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 8, terminal 800 can comprise following one or more assembly: processing components 802, storer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, I/O (Input/Output, I/O) interface 812, sensor module 814, and communications component 816.
The integrated operation of the usual control terminal 800 of processing components 802, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 802 can comprise one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 802 can comprise one or more module, and what be convenient between processing components 802 and other assembly is mutual.Such as, processing components 802 can comprise multi-media module, mutual with what facilitate between multimedia groupware 808 and processing components 802.
Storer 804 is configured to store various types of data to be supported in the operation of terminal 800.The example of these data comprises for any application program of operation in terminal 800 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 804 can be realized by the volatibility of any type or non-volatile memory device or their combination, as SRAM (StaticRandomAccessMemory, static RAM), EEPROM (Electrically-ErasableProgrammableRead-OnlyMemory, Electrically Erasable Read Only Memory), EPROM (ErasableProgrammableReadOnlyMemory, Erasable Programmable Read Only Memory EPROM), PROM (ProgrammableRead-OnlyMemory, programmable read only memory), ROM (Read-OnlyMemory, ROM (read-only memory)), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 806 is terminal 800 provide electric power.Power supply module 806 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for terminal 800 and be associated.
Multimedia groupware 808 is included in the screen providing an output interface between described terminal 800 and user.In certain embodiments, screen can comprise LCD (LiquidCrystalDisplay, liquid crystal display) and TP (TouchPanel, touch panel).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant with touch or slide and pressure.In certain embodiments, multimedia groupware 808 comprises a front-facing camera and/or post-positioned pick-up head.When terminal 800 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to export and/or input audio signal.Such as, audio-frequency assembly 810 comprises a MIC (Microphone, microphone), and when terminal 800 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 804 further or be sent via communications component 816.In certain embodiments, audio-frequency assembly 810 also comprises a loudspeaker, for output audio signal.
I/O interface 812 is for providing interface between processing components 802 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 814 comprises one or more sensor, for providing the state estimation of various aspects for terminal 800.Such as, sensor module 814 can detect the opening/closing state of terminal 800, the relative positioning of assembly, such as assembly is display and the keypad of terminal 800, the position of all right sense terminals 800 of sensor module 814 or terminal 800 1 assemblies changes, the presence or absence that user contacts with terminal 800, the temperature variation of terminal 800 orientation or acceleration/deceleration and terminal 800.Sensor module 814 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 814 can also comprise optical sensor, as CMOS (ComplementaryMetalOxideSemiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupledDevice, charge coupled cell) imageing sensor, for using in imaging applications.In certain embodiments, this sensor module 814 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to the communication being convenient to wired or wireless mode between terminal 800 and other equipment.Terminal 800 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 816 also comprises NFC (NearFieldCommunication, near-field communication) module, to promote junction service.Such as, can based on RFID (RadioFrequencyIdentification in NFC module, radio-frequency (RF) identification) technology, IrDA (Infra-redDataAssociation, Infrared Data Association) technology, UWB (UltraWideband, ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, terminal 800 can by one or more ASIC (ApplicationSpecificIntegratedCircuit, application specific integrated circuit), DSP (DigitalsignalProcessor, digital signal processor), DSPD (DigitalsignalProcessorDevice, digital signal processing appts), PLD (ProgrammableLogicDevice, programmable logic device (PLD)), FPGA (FieldProgrammableGateArray, field programmable gate array), controller, microcontroller, microprocessor or other electronic components realize, for performing the alarming method that corresponding to above-mentioned Fig. 1 or Fig. 2, embodiment provides.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 804 of instruction, above-mentioned instruction can perform above-mentioned alarming method by the processor 820 of terminal 800.Such as, described non-transitory computer-readable recording medium can be ROM, RAM (RandomAccessMemory, random access memory), CD-ROM (CompactDiscRead-OnlyMemory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of terminal, make mobile terminal can perform a kind of alarming method, described method comprises:
When detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of current consecutive days;
According to time attribute and the specified database of current consecutive days, determine the quarter-bell reference data that the time attribute of current consecutive days is corresponding, wherein, specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
The quarter-bell reference data corresponding according to the time attribute of current consecutive days, generates and specifies quarter-bell;
Judge in the second time period, whether screen is lighted, wherein, the second time period be from start time of first time period to the start time of specifying quarter-bell between time period;
If screen is not lighted in the second time period, then carry out clock alarming according to appointment quarter-bell.
Suppose that above-mentioned is the first possible embodiment, in the embodiment that the second then provided based on the embodiment that the first is possible is possible, in the storer of terminal, also comprise the instruction for performing following operation: the time attribute obtaining current consecutive days, comprising:
When arriving the Startup time of the first timer preset, call calendar application, wherein, the Startup time of first timer is the start time of first time period;
The time attribute of current consecutive days is inquired about in the database of calendar application.
In the third the possible embodiment provided based on the embodiment that the first is possible, in the storer of terminal, also comprise the instruction for performing following operation: according to time attribute and the specified database of current consecutive days, before determining the quarter-bell reference data that the time attribute of current consecutive days is corresponding, also comprise:
The moment lighted by the screen obtained in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data;
According to the type of time attribute, light sample data classify to the screen of all history consecutive days in first time period, sample data lighted by all screens obtaining each time attribute corresponding;
Sample data lighted by all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding;
Set up specified database, wherein, specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
In the 4th kind of possible embodiment provided based on the embodiment that the third is possible, in the storer of terminal, also comprise the instruction for performing following operation: sample data lighted by all screens corresponding according to each time attribute, calculate the quarter-bell reference data that each time attribute is corresponding, comprising:
Sample data lighted by all screens corresponding according to each time attribute, calculate that sample corresponding to each time attribute is expected, sample variance and mean variance, sample is expected, sample variance and sample expects that variance is as quarter-bell reference data corresponding to each time attribute.
In the 5th kind of possible embodiment provided based on the 4th kind of possible embodiment, in the storer of terminal, also comprising the instruction for performing following operation: the quarter-bell reference data corresponding according to the time attribute of current consecutive days, generating and specifying quarter-bell, comprising:
If sample variance average corresponding to the time attribute of current consecutive days is less than appointment numerical value, then become second timer;
The sample average corresponding according to the time attribute of current consecutive days, determines the Startup time of second timer, using the Startup time of second timer as the start time of specifying quarter-bell.
In the 6th kind of possible embodiment provided based on the 5th kind of possible embodiment, in the storer of terminal, also comprise the instruction for performing following operation: after judging in the second time period whether screen is lighted, also comprise:
If screen is lighted in the second time period, then delete second timer.
The non-transitory computer-readable recording medium that disclosure embodiment provides, when detect in the first time period of current consecutive days, quarter-bell is not set time, by obtaining the time attribute of current consecutive days, and according to the time attribute of current consecutive days and specified database, generate the appointment quarter-bell in first time period, this appointment quarter-bell can realize when by first time period start time to specify quarter-bell start time between screen do not light time, automatically clock alarming is carried out, thus realize a kind of mode not presetting automatic quarter-bell under quarter-bell situation, quarter-bell mode is more flexible.
Those skilled in the art, at consideration instructions and after putting into practice invention disclosed herein, will easily expect other embodiment of the present invention.The application is intended to contain any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present invention and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present invention and spirit are pointed out by claim below.
Should be understood that, the present invention is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.Scope of the present invention is only limited by appended claim.

Claims (13)

1. an alarming method, is characterized in that, described method comprises:
When detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of described current consecutive days;
According to time attribute and the specified database of described current consecutive days, determine the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, described specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
The quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell;
Judge in the second time period, whether screen is lighted, described second time period is the time period between the start time from start time of described first time period to described appointment quarter-bell;
If screen is not lighted in described second time period, then carry out clock alarming according to described appointment quarter-bell.
2. method according to claim 1, is characterized in that, the time attribute of described acquisition described current consecutive days, comprising:
When arriving the Startup time of the first timer preset, call calendar application, the Startup time of described first timer is the start time of described first time period;
The time attribute of described current consecutive days is inquired about in the database of described calendar application.
3. method according to claim 1, is characterized in that, the described time attribute according to described current consecutive days and specified database, before determining the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, also comprises:
The moment lighted by the screen obtained in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data;
According to the type of time attribute, light sample data classify to the screen of all history consecutive days in first time period, sample data lighted by all screens obtaining each time attribute corresponding;
Sample data lighted by all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding;
Set up specified database, described specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
4. method according to claim 3, is characterized in that, sample data lighted by the described all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding, comprising:
Sample data lighted by all screens corresponding according to each time attribute, calculate that sample corresponding to each time attribute is expected, sample variance and mean variance, sample corresponding for each time attribute is expected, sample variance and sample variance average is as quarter-bell reference data corresponding to each time attribute.
5. method according to claim 4, is characterized in that, the described quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell, comprising:
When the sample variance average that the time attribute of described current consecutive days is corresponding is less than appointment numerical value, generate second timer;
The sample corresponding according to the time attribute of described current consecutive days is expected, determines the Startup time of described second timer, using the start time of the Startup time of described second timer as described appointment quarter-bell.
6. method according to claim 5, is characterized in that, described to judge in the second time period whether screen is lighted after, also comprise:
If screen is lighted in the second time period, then delete described second timer.
7. an alarm clock, is characterized in that, described device comprises:
First acquisition module, for when detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of described current consecutive days;
Determination module, for according to the time attribute of described current consecutive days and specified database, determine the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, described specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
Generation module, for the quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell;
Judge module, for judging in the second time period, whether screen is lighted, described second time period is the time period between the start time from start time of described first time period to described appointment quarter-bell;
Quarter-bell module, for when screen is not lighted in described second time period, carries out clock alarming according to described appointment quarter-bell.
8. device according to claim 7, is characterized in that, described first acquisition module comprises:
Call unit, for when arriving the Startup time of the first timer preset, call calendar application, the Startup time of described first timer is the start time of described first time period;
Query unit, for inquiring about the time attribute of described current consecutive days in the database of described calendar application.
9. device according to claim 7, is characterized in that, described device also comprises:
Second acquisition module, lights the moment for the screen obtained in the first time period that records each history consecutive days, obtains the screen of each history consecutive days in first time period and lights sample data;
Sort module, for the type according to time attribute, lights sample data to the screen of all history consecutive days in first time period and classifies, and sample data lighted by all screens obtaining each time attribute corresponding;
Computing module, lights sample data for all screens corresponding according to each time attribute, calculates the quarter-bell reference data that each time attribute is corresponding;
Set up module, for setting up specified database, described specified database comprises the corresponding relation between each time attribute and corresponding quarter-bell reference data.
10. device according to claim 9, it is characterized in that, described computing module, sample data is lighted for all screens corresponding according to each time attribute, calculate that sample corresponding to each time attribute is expected, sample variance and sample variance average, sample corresponding for each time attribute is expected, sample variance and sample variance average is as quarter-bell reference data corresponding to each time attribute.
11. devices according to claim 10, is characterized in that, described generation module comprises:
Generation unit, when being less than appointment numerical value for the sample variance average that the time attribute when described current consecutive days is corresponding, generates second timer;
Determining unit, for the sample average corresponding according to the time attribute of described current consecutive days, determines the Startup time of described second timer, using the start time of the Startup time of described second timer as described appointment quarter-bell.
12. devices according to claim 11, is characterized in that, described device also comprises:
Removing module, for when screen is lighted in the second time period, deletes described second timer.
13. 1 kinds of terminals, is characterized in that, described terminal comprises:
Processor;
For the storer of storage of processor executable instruction;
Wherein, described processor is configured to:
When detect in the first time period of current consecutive days, quarter-bell is not set time, obtain the time attribute of described current consecutive days;
According to time attribute and the specified database of described current consecutive days, determine the quarter-bell reference data that the time attribute of described current consecutive days is corresponding, described specified database at least comprises the corresponding relation between time attribute and quarter-bell reference data;
The quarter-bell reference data corresponding according to the time attribute of described current consecutive days, generates and specifies quarter-bell;
Judge in the second time period, whether screen is lighted, described second time period is the time period between the start time from start time of described first time period to described appointment quarter-bell;
If screen is not lighted in described second time period, then carry out clock alarming according to described appointment quarter-bell.
CN201510303556.2A 2015-06-04 2015-06-04 Alarming method, device and terminal Active CN105094800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510303556.2A CN105094800B (en) 2015-06-04 2015-06-04 Alarming method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510303556.2A CN105094800B (en) 2015-06-04 2015-06-04 Alarming method, device and terminal

Publications (2)

Publication Number Publication Date
CN105094800A true CN105094800A (en) 2015-11-25
CN105094800B CN105094800B (en) 2018-11-06

Family

ID=54575328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510303556.2A Active CN105094800B (en) 2015-06-04 2015-06-04 Alarming method, device and terminal

Country Status (1)

Country Link
CN (1) CN105094800B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554282A (en) * 2015-12-18 2016-05-04 努比亚技术有限公司 Alarm control method and device for mobile terminal, and mobile terminal
CN105611074A (en) * 2016-02-26 2016-05-25 惠州Tcl移动通信有限公司 Method and system for optimizing information pushing time according to alarm clock
CN107360323A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 Alarm clock prompting method, device, storage medium and electronic equipment
CN109218533A (en) * 2018-10-09 2019-01-15 王瑞明 The alarm clock prompting method of smart phone
CN111273560A (en) * 2020-03-11 2020-06-12 珠海格力电器股份有限公司 Control method and device of intelligent household equipment and intelligent household system
WO2022199495A1 (en) * 2021-03-26 2022-09-29 展讯半导体(南京)有限公司 Time reminding system and method for intelligent terminal, electronic device, and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005190352A (en) * 2003-12-26 2005-07-14 Pioneer Electronic Corp Addressing device
CN101188719A (en) * 2007-12-20 2008-05-28 康佳集团股份有限公司 A TV smart power off device and method
CN103369082A (en) * 2012-04-05 2013-10-23 富泰华工业(深圳)有限公司 System and method for controlling alarm clock of electronic device
CN103475786A (en) * 2013-09-25 2013-12-25 上海斐讯数据通信技术有限公司 Method and system for setting mobile terminal alarm clock
US20140104993A1 (en) * 2012-10-16 2014-04-17 Google Inc. Systems and methods for providing warning of anomalous alarm clock settings
CN104601810A (en) * 2014-12-31 2015-05-06 深圳市金立通信设备有限公司 Terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005190352A (en) * 2003-12-26 2005-07-14 Pioneer Electronic Corp Addressing device
CN101188719A (en) * 2007-12-20 2008-05-28 康佳集团股份有限公司 A TV smart power off device and method
CN103369082A (en) * 2012-04-05 2013-10-23 富泰华工业(深圳)有限公司 System and method for controlling alarm clock of electronic device
US20140104993A1 (en) * 2012-10-16 2014-04-17 Google Inc. Systems and methods for providing warning of anomalous alarm clock settings
CN103475786A (en) * 2013-09-25 2013-12-25 上海斐讯数据通信技术有限公司 Method and system for setting mobile terminal alarm clock
CN104601810A (en) * 2014-12-31 2015-05-06 深圳市金立通信设备有限公司 Terminal

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554282A (en) * 2015-12-18 2016-05-04 努比亚技术有限公司 Alarm control method and device for mobile terminal, and mobile terminal
CN105611074A (en) * 2016-02-26 2016-05-25 惠州Tcl移动通信有限公司 Method and system for optimizing information pushing time according to alarm clock
CN105611074B (en) * 2016-02-26 2019-07-09 惠州Tcl移动通信有限公司 A kind of method and system optimizing the pushed information time according to alarm time
CN107360323A (en) * 2017-06-30 2017-11-17 广东欧珀移动通信有限公司 Alarm clock prompting method, device, storage medium and electronic equipment
CN109218533A (en) * 2018-10-09 2019-01-15 王瑞明 The alarm clock prompting method of smart phone
CN111273560A (en) * 2020-03-11 2020-06-12 珠海格力电器股份有限公司 Control method and device of intelligent household equipment and intelligent household system
WO2022199495A1 (en) * 2021-03-26 2022-09-29 展讯半导体(南京)有限公司 Time reminding system and method for intelligent terminal, electronic device, and medium

Also Published As

Publication number Publication date
CN105094800B (en) 2018-11-06

Similar Documents

Publication Publication Date Title
CN105094800A (en) Alarm method, device and terminal
CN104219388B (en) Sound control method and device
CN105487650A (en) Intelligent alarm clock turn-off method and apparatus
CN104580738A (en) Method and device for setting information reminding modes
CN104821987A (en) Alarm clock-based reminding method and device
CN105279957A (en) Message prompting method and device
CN104980565A (en) Terminal anti-addiction method and device
CN105096561A (en) Mattress temperature adjusting method, apparatus and terminal
CN104750597A (en) User guide method and device during low power
CN104315663A (en) Method and device for controlling work of air purifier
CN103888601B (en) Information prompting method, device and terminal
CN104348973A (en) Alarm clock management method and device for intelligent wearing equipment and intelligent wearing equipment
CN105162945A (en) Method and device for displaying information
CN105530384A (en) Method and device for power reminding based on alarm clock
CN107666540B (en) Terminal control method, device and storage medium
CN104298547A (en) Terminal setting method and device
CN107438811A (en) One kind breath screen shows method and device
CN105611048A (en) Alarm clock prompt method and device, and mobile terminal
CN104361486A (en) Alarm clock reminding method and device
CN104156848A (en) Schedule management method and schedule management device
CN105120057A (en) Alarm clock control method and device
CN105214197A (en) Based reminding method and device
CN104464238A (en) Method and device for controlling operation between mobile terminals
CN105117897A (en) Shutdown reminding method and device
CN105335062A (en) Information editing operation processing method and apparatus

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