Summary of the invention
Based on above-mentioned problem, the present invention proposes the method and system that a kind of alarm clock prompting is arranged, the present invention obtains illuminance informationization and the mobile terminal locations variable condition information of the environment residing for mobile terminal by transducer, judge user whether be in sleep before state, user just to sleep and not sleeping before automatically carry out prompting user the alarm clock calling time be set.
The reminding method that alarm clock is arranged, described method comprises:
In preset time period, control the illuminance information that light sensor obtains environment residing for mobile terminal;
Judge that whether the illuminance information of environment residing for described mobile terminal is lower than the threshold value preset, and generate judged result information;
Whether sense acceleration transducer generates acceleration information, and generates testing result information;
According to the judged result information received and testing result information, determine whether to generate prompting configuration information.
Further, whether the described illuminance information judging environment residing for described mobile terminal is lower than the threshold value preset, and the step generating judged result information specifically comprises:
Judge that whether the illuminance information of environment residing for described mobile terminal is lower than the threshold value preset, if lower than the threshold value preset, then generate the first judged result information; If higher than the threshold value preset, then generate the second judged result information;
Whether described sense acceleration transducer generates acceleration information, and the step generating testing result information specifically comprises:
Whether sense acceleration transducer generates acceleration information, if detect, acceleration transducer generates acceleration information, then generate the first testing result information; If do not detect, acceleration transducer generates acceleration information, then generate the second testing result information.
Further, according to the judged result information received and testing result information, determine whether that the concrete grammar generating prompting configuration information comprises:
If receive the first judged result information and the first testing result information, then according to described first judged result information and the first testing result information, determine not generate prompting configuration information;
If receive the first judged result information and the second testing result information, then according to described first judged result information and the second testing result information, determine to generate prompting configuration information;
If receive the second judged result information and the first testing result information, then according to described second judged result information and the first testing result information, determine not generate prompting configuration information;
If receive the second judged result information and the second testing result information, then according to described second judged result information and the second testing result information, determine not generate prompting configuration information.
Further, described determine generate prompting configuration information after, described method comprises:
According to described prompting configuration information, control display module display reminding configuration information;
Control the illuminance information stopping obtaining environment residing for mobile terminal;
Receive the alarm time information of outside input;
According to the alarm time information received, control clock module and start timing;
When clock module timing time reaches alarm time, control mobile terminal and send alarm clock prompting by jingle bell mode or vibration mode.
Further, described when clock module timing time reaches alarm time, after control mobile terminal sends alarm clock prompting by jingle bell mode or vibration mode, described method also comprises:
Obtain repeatedly the alarm time information of outside input, get repeatedly the intermediate time of mean value as preset time period of alarm time.
Alarm clock arranges a system for prompting, comprising:
Illumination obtains control module, in preset time period, controls the illuminance information that light sensor obtains environment residing for mobile terminal;
Illumination value judge module, for judging that whether the illuminance information of environment residing for described mobile terminal is lower than the threshold value preset, and generates judged result information;
Whether acceleration detection module, generate acceleration information for sense acceleration transducer, and generate testing result information;
Prompting control module, for according to the judged result information received and testing result information, determines whether to generate prompting configuration information.
Further, described prompt system is set, comprises:
Described illumination value judge module, for working as the illuminance information of environment residing for described mobile terminal lower than the threshold value preset, generates the first judged result information;
Described illumination value judge module, for working as the illuminance information of environment residing for described mobile terminal higher than the threshold value preset, generates the second judged result information;
Described acceleration detection module, for when detecting that acceleration transducer generates acceleration information, generates the first testing result information;
Described acceleration detection module, for not detecting that acceleration transducer generates acceleration information, generates the second testing result information.
Further, described arranges prompt system, comprising:
Prompting control module, for receiving the first judged result information and the first testing result information, and according to described first judged result information and described first testing result information, determines not generate prompting configuration information;
Prompting control module, for receiving the first judged result information and the second testing result information, and according to described first judged result information and described second testing result information, determines to generate prompting configuration information;
Prompting control module, for receiving the second judged result information and the first testing result information, and according to described second judged result information and described first testing result information, determines not generate prompting configuration information;
Prompting control module, for receiving the second judged result information and the second testing result information, and according to described second judged result information and described second testing result information, determines not generate prompting configuration information.
Further, described arranges prompt system, also comprises:
Display control module, for according to described prompting configuration information, controls display module display reminding configuration information;
Receiver module, for receiving the alarm time information of outside input;
Timing control module, for the alarm time information received according to described receiver module, controls clock module and starts timing;
Alarm clock processing module, for when described clock module timing time reaches alarm time, controls reminding module and sends alarm clock prompting by jingle bell mode or vibration mode;
Light obtains control module, also stops obtaining the illuminance information of environment residing for mobile terminal for controlling described light sensor.
Further, described arranges prompt system, also comprises:
Receiver module, also for receiving the repeatedly alarm time information of outside input;
Time pretreatment module, for being defined as the intermediate time of preset time period by the mean value of repeatedly alarm time.
Method provided by the invention, by the light radiation situation of environment residing for mobile terminal and mobile terminal displacement state judge user whether be in sleep before state, thus carry out prompting setting, make user can be set according to schedule temporary variations the alarm clock calling time flexibly, make alarm clock more intelligent; Reminder time can change according to the change of user's sack time, avoids sound that user is alerted or information wakes up, makes alarm clock hommization more; Alarm clock calling arranges the function that system utilizes light sensor and the gravity sensor established in mobile terminal itself, cost-saving.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not used for limiting the present invention.
Embodiment 1
As shown in the figure, Fig. 1 is the reminding method flow chart of steps that a kind of alarm clock is arranged.
The method that described alarm clock calling is arranged is applied to mobile terminal, and described mobile terminal comprises light sensor, acceleration transducer, display module and timing module;
The method that described a kind of alarm clock calling is arranged, implementation step is:
S1: in preset time period, controls the illuminance information that light sensor obtains environment residing for mobile terminal; Described preset time period can be PM10:00 ~ PM11:00, also can be PM11:00 ~ PM12:00, according to user's roughly sack time scope and setting.
S2: judge that whether the illuminance information of environment residing for described mobile terminal is lower than the threshold value preset, and generate judged result information; Under dark surrounds, the scope of described illuminance is 50 to strangle ~ 125 to strangle, and described predetermined threshold value can be set to 100 and strangle.
S21: the illuminance information of environment residing for described mobile terminal lower than the threshold value preset, then generates the first judged result information; Such as: residing for described mobile terminal, the illuminance of environment is strangled lower than 100, then the first judged result information is generated.
S22: the illuminance information of environment residing for described mobile terminal greater than or equal to the threshold value preset, then generates the second judged result information; Such as: residing for described mobile terminal, the illuminance of environment is strangled greater than or equal to 100, then the second judged result information is generated.
S3: whether sense acceleration transducer generates acceleration information, and generate testing result information;
S31: acceleration transducer generates acceleration information if detect, then generate the first testing result information; Described acceleration transducer can detect that all directions of described mobile terminal move produced acceleration, as long as described mobile terminal is nonstatic state, then described acceleration transducer generates acceleration information.
S32: acceleration transducer generates acceleration information if do not detect, then generate the second testing result information;
S4: according to the judged result information received and testing result information, determines whether to generate prompting configuration information;
If S41: if receive the first judged result information and the first testing result information, then according to described first judged result information and the first testing result information, determine not generate prompting configuration information;
If S42: if receive the second judged result information and the first testing result information, then according to described second judged result information and the first testing result information, determine not generate prompting configuration information;
If S43: if receive the second judged result information and the second testing result information, then according to described second judged result information and the second testing result information, determine not generate prompting configuration information;
If S44: if receive the first judged result information and the second testing result information, then according to described first judged result information and the second testing result information, continue step S5:
S5: determine to generate prompting configuration information.
Embodiment 2
As shown in the figure, Fig. 2 is the reminding method flow chart of steps that a kind of alarm clock is arranged.
The method that described alarm clock calling is arranged is applied to mobile terminal, and described mobile terminal comprises light sensor, acceleration transducer, display module and timing module;
The method that described a kind of alarm clock calling is arranged, implementation step is:
S1: control the illuminance information that light sensor obtains environment residing for mobile terminal in preset time period;
S2: judge that whether the illuminance information of environment residing for described mobile terminal is lower than the threshold value preset, and generate judged result information;
S21: the illuminance information of environment residing for described mobile terminal lower than the threshold value preset, then generates the first judged result information;
S22: the illuminance information of environment residing for described mobile terminal greater than or equal to the threshold value preset, then generates the first judged result information;
S3: whether sense acceleration transducer generates acceleration information, and generate testing result information;
S31: acceleration transducer generates acceleration information if detect, then generate the first testing result information;
S32: acceleration transducer generates acceleration information if do not detect, then generate the second testing result information;
S4: according to the judged result information received and testing result information, determines whether to generate prompting configuration information;
If S41: if receive the first judged result information and the first testing result information, then according to described first judged result information and the first testing result information, determine not generate prompting configuration information;
If S42: if receive the second judged result information and the second testing result information, then according to described first judged result information and the second testing result information, determine not generate prompting configuration information;
If S43: if receive the second judged result information and the first testing result information, then according to described second judged result information and the first testing result information, determine not generate prompting configuration information;
If S44: if receive the first judged result information and the second testing result information, then according to described second judged result information and the second testing result information, continue step S5:
S5: determine to generate prompting configuration information;
S6: according to described prompting configuration information, controls display module display reminding configuration information;
Described prompting configuration information is the information that prompting arranges alarm time, and described prompting configuration information can be the alarm time of the former setting of display, and whether prompting changes the alarm time of former setting, also whether can reset alarm time for prompting.
S7: control the illuminance information stopping obtaining environment residing for mobile terminal;
After completing the action generating prompting configuration information, stop the illuminance information obtaining environment residing for mobile terminal, namely the same day, regeneration did not point out configuration information, in order to avoid annoying users is had a rest.
S8: the alarm time information receiving outside input;
S9: according to the alarm time information received, controls clock module and starts timing;
S10: when clock module timing time reaches alarm time, controls mobile terminal and sends alarm clock prompting by jingle bell mode or vibration mode;
S11: the alarm time information obtaining repeatedly outside input, get alarm time is repeatedly set moment mean value as the intermediate time of preset time period.
Such as, if the moment that alarm time is set continuously be several times respectively PM10:00, PM10:30, PM11:00, the intermediate time of the moment mean value arranging alarm clock to be PM10:30, PM10:30 be preset time period, then described preset time period can be PM10:00 ~ PM11:00.
Embodiment 3
As shown in the figure, Fig. 3 is the prompt system structural representation that a kind of alarm clock is arranged.
The system that described alarm clock calling is arranged is applied to mobile terminal, and described mobile terminal comprises light sensor, acceleration transducer, display module and timing module;
Described a kind of alarm clock prompting arranges system, comprising: illumination obtains control module, illumination value judge module, acceleration detection module, prompting control module;
Described illumination obtains control module and is used in preset time period, controls the illuminance information that light sensor obtains environment residing for mobile terminal, and described illuminance information is sent to described illumination value judge module;
Described illumination value judge module is used for judging that whether the illuminance information of environment residing for described mobile terminal is lower than the threshold value preset according to the described illuminance information received, generate judged result information, and described judged result information is sent to described prompting control module;
The illuminance information of environment residing for described mobile terminal is lower than the threshold value preset, and described illumination value judge module generates the first judged result information; The illuminance information of environment residing for described mobile terminal is higher than the threshold value preset, and described illumination value judge module generates the second judged result information;
Whether described acceleration detection module, generate acceleration information for sense acceleration transducer, and generate testing result information, and described testing result information is sent to described prompting judge module;
When detecting that acceleration transducer generates acceleration information, generate the first testing result information;
Do not detect that acceleration transducer generates acceleration information, generate the second testing result information.
Described prompting control module, for according to the judged result information received and testing result information, determines whether to generate prompting configuration information;
Described prompting control module receives the first judged result information and the first testing result information, and according to described first judged result information and described first testing result information, determines not generate prompting configuration information;
Described prompting control module receives the second judged result information and the first testing result information, and according to described second judged result information and described first testing result information, determines not generate prompting configuration information;
Described prompting control module receives the second judged result information and the second testing result information, and according to described second judged result information and described second testing result information, determines not generate prompting configuration information.
Described prompting control module receives the first judged result information and the second testing result information, and according to described first judged result information and described second testing result information, determines to generate prompting configuration information;
Embodiment 4
As shown in the figure, Fig. 4 is the prompt system structural representation that a kind of alarm clock is arranged.
The system that described alarm clock arranges prompting is applied to mobile terminal, and described mobile terminal comprises light sensor, acceleration transducer, display module and timing module;
Described alarm clock arranges the system of prompting, comprising: illumination obtains control module, illumination value judge module, acceleration detection module, prompting control module, display control module, receiver module, timing control module, alarm clock processing module and time pretreatment module;
Described illumination obtains control module and is used in preset time period, controls the illuminance information that light sensor obtains environment residing for mobile terminal, and described illuminance information is sent to described illumination value judge module;
Described illumination value judge module is used for judging that whether the illuminance information of environment residing for described mobile terminal is lower than the threshold value preset according to the described illuminance information received, generate judged result information, and described judged result information is sent to described prompting control module;
The illuminance information of environment residing for described mobile terminal is lower than the threshold value preset, and described illumination value judge module generates the first judged result information; The illuminance information of environment residing for described mobile terminal is higher than the threshold value preset, and described illumination value judge module generates the second judged result information.
Whether described acceleration detection module, generate acceleration information for sense acceleration transducer, and generate testing result information, and described testing result information is sent to described prompting judge module;
When detecting that acceleration transducer generates acceleration information, generate the first testing result information;
Do not detect that acceleration transducer generates acceleration information, generate the second testing result information.
Described prompting control module, for according to the judged result information received and testing result information, determines whether to generate prompting configuration information;
When described prompting control module receives the first judged result information and the first testing result information, and according to described first judged result information and described first testing result information, determine not generate prompting configuration information;
When described prompting control module receives the second judged result information and the first testing result information, and according to described second judged result information and described first testing result information, determine not generate prompting configuration information;
When described prompting control module receives the second judged result information and the second testing result information, and according to described second judged result information and described second testing result information, determine not generate prompting configuration information.
When described prompting control module receives the first judged result information and the second testing result information, and according to described first judged result information and described second testing result information, determine to generate prompting configuration information;
The prompting configuration information of generation is sent to described display control module by described prompting control module, and described display control module is used for the prompting configuration information generated according to described reminding module, controls display module display reminding configuration information; Described receiver module is for receiving the alarm time information of outside input;
Described timing control module, for the alarm time information received according to described receiver module, controls clock module and starts timing; Time pretreatment module, the moment mean value repeatedly arranging alarm time for being received by described receiver module is defined as the intermediate time of preset time period.
Alarm clock processing module, for when described clock module timing time reaches alarm time, controls reminding module and sends alarm clock prompting by jingle bell mode or vibration mode;
When described reminding module generates, information is set, after controlling display module display reminding configuration information, light obtains control module, also stops obtaining the illuminance information of environment residing for mobile terminal for controlling described light sensor, and described reminding module stops generating information.
It should be noted that, above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not departing from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of right of the present invention.