Reminding method and system that a kind of alarm clock is arranged
Technical field
The present invention relates to alarm clock field, and in particular to the method and system that a kind of alarm clock prompting is arranged.
Background technology
In the modern society of hectic, people's daily life system is irregular, and alarm clock just becomes the necessary work that work and rest is reminded
Tool.But people can usually run into such situation:Need getting up early within second day, before sleeping, but forget that arranging alarm clock causes second day evening
Rise late;The alarm clock that today is arranged, but plan in second day has change, but forgets to reset alarm clock, is as a result waken in advance again;Week
End need not be got up on time, and alarm clock still regularly wakes you up ..., and many times, alarm clock can not be according to the wish of people
Work.
For the problems referred to above, the solution of prior art is:A prompt system is set in alarm clock, by setting in advance
The fixed alarm clock prompting time, in the set time point for arranging, whether alarm clock prompting user arranges alarm clock or modification alarm time.But
It is to be pointed out at a fixed time not satisfied situation also occurs:One people's sack time might not be fixed, can
Be able to can change, alarm clock is put prompting user at a fixed time and setting reminder time following problem occurs:If sack time ratio
It is setting morning reminder time, fast asleep to be waken up on the contrary.If sack time than setting reminder time it is late, sack time with carry
The interval time of awake time, perhaps the plan of second day changed, and the function of alarm clock calling does not just effectively play a role in section.
How alarm clock arranges alarm clock calling time in appropriate time alarm user, becomes problem demanding prompt solution.
The content 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, and the present invention is by passing
Sensor obtains the illuminance informationization of the environment residing for mobile terminal and mobile terminal locations variable condition information, judges user
Whether in sleeping front state, to just sleep without carrying out automatically pointing out user setting alarm clock calling time before sleeping in user.
The reminding method that a kind of alarm clock is arranged, methods described include:
In preset time period, the illuminance information that light sensor obtains mobile terminal local environment is controlled;
Whether the illuminance information of the mobile terminal local environment is judged less than default threshold value, and generate judgement knot
Fruit information;
Whether detection acceleration transducer generates acceleration information, and generates testing result information;
According to the judged result information and testing result information that receive, it is determined whether generate prompting configuration information.
Further, whether the illuminance information for judging the mobile terminal local environment is less than default thresholding
The step of being worth, and generate judged result information specifically includes:
Whether the illuminance information of the mobile terminal local environment is judged less than default threshold value, if less than default
Threshold value, then generate the first judged result information;If being higher than default threshold value, the second judged result information is generated;
Whether the detection acceleration transducer generates acceleration information, and specifically wraps the step of generate testing result information
Include:
Whether detection acceleration transducer generates acceleration information, if detecting acceleration transducer generates acceleration letter
Breath, then generate the first testing result information;If being not detected by acceleration transducer generates acceleration information, generate second and detect
Object information.
Further, according to the judged result information and testing result information for receiving, it is determined whether generate prompting and arrange letter
The concrete grammar of breath includes:
If receiving the first judged result information and the first testing result information, according to the first judged result information
With the first testing result information, it is determined that not generating prompting configuration information;
If receiving the first judged result information and the second testing result information, according to the first judged result information
With the second testing result information, it is determined that generate prompting configuration information;
If receiving the second judged result information and the first testing result information, according to the second judged result information
With the first testing result information, it is determined that not generating prompting configuration information;
If receiving the second judged result information and the second testing result information, according to the second judged result information
With the second testing result information, it is determined that not generating prompting configuration information.
Further, after the determination generates prompting configuration information, methods described includes:
According to the prompting configuration information, display module display reminding configuration information is controlled;
Control stops the illuminance information for obtaining mobile terminal local environment;
Receive the alarm time information of outside input;
According to the alarm time information for receiving, control clock module starts timing;
When clock module timing time reaches alarm time, control mobile terminal is sent out by jingle bell mode or vibration mode
Go out alarm clock prompting.
Further, described when clock module timing time reaches alarm time, control mobile terminal passes through jingle bell side
After formula or vibration mode send alarm clock prompting, methods described also includes:
The alarm time information of multiple outside input is obtained, and the meansigma methodss of multiple alarm time is taken as preset time period
Intermediate time.
The system that a kind of alarm clock arranges prompting, including:
Illumination obtains control module, in preset time period, control light sensor obtains mobile terminal local environment
Illuminance information;
Illumination value judge module, for judging the illuminance information of the mobile terminal local environment whether less than default
Threshold value, and generate judged result information;
Acceleration detection module, for detecting whether acceleration transducer generates acceleration information, and generates testing result
Information;
Prompting control module, for according to the judged result information and testing result information for receiving, it is determined whether generation is carried
Show configuration information.
Further, the setting prompt system, including:
The illumination value judge module, is less than default door for the illuminance information when the mobile terminal local environment
Limit value, generates the first judged result information;
The illumination value judge module, is higher than default door for the illuminance information when the mobile terminal local environment
Limit value, generates the second judged result information;
The acceleration detection module, for when acceleration transducer generation acceleration information is detected, generating first and examining
Survey object information;
The acceleration detection module, generates acceleration information for being not detected by acceleration transducer, generates second
Testing result information.
Further, described setting prompt system, including:
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 the first testing result information, it is determined that not generating 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 the second testing result information, it is determined that generating 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 the first testing result information, it is determined that not generating 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 the second testing result information, it is determined that not generating prompting configuration information.
Further, described setting prompt system, also includes:
Display control module, for according to the prompting configuration information, controlling 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 the receiver module, control clock module starts
Timing;
Alarm clock processing module, for when the clock module timing time reaches alarm time, control reminding module leads to
Cross jingle bell mode or vibration mode sends alarm clock prompting;
Light obtains control module, is additionally operable to control the light that the light sensor stops acquisition mobile terminal local environment
Illuminance information.
Further, described setting prompt system, also includes:
Receiver module, is additionally operable to receive the multiple alarm time information of outside input;
Time pretreatment module, for the meansigma methodss of multiple alarm time to be defined as the intermediate time of preset time period.
The method that the present invention is provided, by the light radiation situation to mobile terminal local environment and mobile terminal displacement shape
State so as to carry out prompting setting, allows user clever according to schedule temporary variations judging user whether in front state is slept
It is living that alarm clock calling time is set, make alarm clock more intelligent;Reminder time can change according to the change of user's sack time, keep away
Sound that user is alerted is exempted from or information has waken up, made alarm clock more hommization;A kind of alarm clock calling arranges system using movement
The light sensor set in terminal itself and the function of gravity sensor, it is cost-effective.
Description of the drawings
Fig. 1 is the reminding method flow chart of steps that a kind of alarm clock is arranged;
Fig. 2 is the reminding method flow chart of steps that a kind of alarm clock is arranged;
Fig. 3 is the prompt system structural representation that a kind of alarm clock is arranged;
Fig. 4 is the prompt system structural representation that a kind of alarm clock is arranged.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is below in conjunction with drawings and Examples, right
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
Embodiment 1
As illustrated, Fig. 1 is the reminding method flow chart of steps that a kind of alarm clock is arranged.
The method that the alarm clock calling is arranged is applied to mobile terminal, and the mobile terminal includes light sensor, accelerates
Degree sensor, display module and timing module;
The method that a kind of alarm clock calling is arranged, implementation step is:
S1:In preset time period, the illuminance information that light sensor obtains mobile terminal local environment is controlled;It is described pre-
It can be PM10 to put the time period:00~PM11:00, or PM11:00~PM12:00, according to user's substantially sack time
Scope and set.
S2:Whether the illuminance information of the mobile terminal local environment is judged less than default threshold value, and generation is sentenced
Disconnected object information;Under dark surrounds, the scope of the illuminance is 50 Le~125 Le, and the predetermined threshold value can be set to 100
Strangle.
S21:The illuminance information of the mobile terminal local environment is less than default threshold value, then generate first and judge knot
Fruit information;For example:The illuminance of the mobile terminal local environment is less than 100 Le, then generate the first judged result information.
S22:The illuminance information of the mobile terminal local environment is greater than or equal to default threshold value, then generate second
Judged result information;For example:The illuminance of the mobile terminal local environment is greater than or equal to 100 Le, then generate second and judge
Object information.
S3:Whether detection acceleration transducer generates acceleration information, and generates testing result information;
S31:If detecting acceleration transducer generates acceleration information, the first testing result information is generated;It is described to add
Velocity sensor can detect the acceleration produced by all directions movement of the mobile terminal, as long as the mobile terminal
For nonstatic state, then the acceleration transducer generates acceleration information.
S32:If being not detected by acceleration transducer generates acceleration information, the second testing result information is generated;
S4:According to the judged result information and testing result information that receive, it is determined whether generate prompting configuration information;
If S41:If receiving the first judged result information and the first testing result information, knot is judged according to described first
Fruit information and the first testing result information, it is determined that not generating prompting configuration information;
If S42:If receiving the second judged result information and the first testing result information, knot is judged according to described second
Fruit information and the first testing result information, it is determined that not generating prompting configuration information;
If S43:If receiving the second judged result information and the second testing result information, knot is judged according to described second
Fruit information and the second testing result information, it is determined that not generating prompting configuration information;
If S44:If receiving the first judged result information and the second testing result information, knot is judged according to described first
Fruit information and the second testing result information, continue step S5:
S5:It is determined that generating prompting configuration information.
Embodiment 2
As illustrated, Fig. 2 is the reminding method flow chart of steps that a kind of alarm clock is arranged.
The method that the alarm clock calling is arranged is applied to mobile terminal, and the mobile terminal includes light sensor, accelerates
Degree sensor, display module and timing module;
The method that a kind of alarm clock calling is arranged, implementation step is:
S1:The illuminance information that light sensor obtains mobile terminal local environment is controlled in preset time period;
S2:Whether the illuminance information of the mobile terminal local environment is judged less than default threshold value, and generation is sentenced
Disconnected object information;
S21:The illuminance information of the mobile terminal local environment is less than default threshold value, then generate first and judge knot
Fruit information;
S22:The illuminance information of the mobile terminal local environment is greater than or equal to default threshold value, then generate first
Judged result information;
S3:Whether detection acceleration transducer generates acceleration information, and generates testing result information;
S31:If detecting acceleration transducer generates acceleration information, the first testing result information is generated;
S32:If being not detected by acceleration transducer generates acceleration information, the second testing result information is generated;
S4:According to the judged result information and testing result information that receive, it is determined whether generate prompting configuration information;
If S41:If receiving the first judged result information and the first testing result information, knot is judged according to described first
Fruit information and the first testing result information, it is determined that not generating prompting configuration information;
If S42:If receiving the second judged result information and the second testing result information, knot is judged according to described first
Fruit information and the second testing result information, it is determined that not generating prompting configuration information;
If S43:If receiving the second judged result information and the first testing result information, knot is judged according to described second
Fruit information and the first testing result information, it is determined that not generating prompting configuration information;
If S44:If receiving the first judged result information and the second testing result information, knot is judged according to described second
Fruit information and the second testing result information, continue step S5:
S5:It is determined that generating prompting configuration information;
S6:According to the prompting configuration information, display module display reminding configuration information is controlled;
The prompting configuration information is the information that prompting arranges alarm time, and the prompting configuration information can be former to show
The alarm time of setting, points out whether to change the alarm time of former setting, or and whether prompting resets alarm time.
S7:Control stops the illuminance information for obtaining mobile terminal local environment;
After completing to generate the action for pointing out configuration information, stop obtaining the illuminance information of mobile terminal local environment, i.e.,
The same day does not regenerate prompting configuration information, is rested with interruption-free user.
S8:Receive the alarm time information of outside input;
S9:According to the alarm time information for receiving, control clock module starts timing;
S10:When clock module timing time reaches alarm time, control mobile terminal is by jingle bell mode or vibrations side
Formula sends alarm clock prompting;
S11:The alarm time information of multiple outside input is obtained, the moment meansigma methodss conduct that alarm time is repeatedly set is taken
The intermediate time of preset time period.
For example, if the moment of continuous setting alarm time several times is respectively PM10:00, PM10:30, PM11:00, arrange
The moment meansigma methodss of alarm clock are PM10:30, PM10:30 for preset time period intermediate time, then the preset time period can be with
For PM10:00~PM11:00.
Embodiment 3
As illustrated, Fig. 3 is the prompt system structural representation that a kind of alarm clock is arranged.
The system that the alarm clock calling is arranged is applied to mobile terminal, and the mobile terminal includes light sensor, accelerates
Degree sensor, display module and timing module;
A kind of alarm clock prompting arranges system, including:Illumination obtains control module, illumination value judge module, acceleration
Detection module, points out control module;
The illumination obtains control module in preset time period, control light sensor obtains ring residing for mobile terminal
The illuminance information in border, and the illuminance information is sent to the illumination value judge module;
The illumination value judge module is judged residing for the mobile terminal for the illuminance information that basis is received
Whether the illuminance information of environment is less than default threshold value, generates judged result information, and the judged result information is sent out
Deliver to the prompting control module;
The illuminance information of the mobile terminal local environment is less than default threshold value, the illumination value judge module life
Into the first judged result information;The illuminance information of the mobile terminal local environment is higher than default threshold value, the illumination
Value judge module generates the second judged result information;
The acceleration detection module, for detecting whether acceleration transducer generates acceleration information, and generates detection
Object information, and the testing result information is sent to the prompting judge module;
Acceleration information is generated when acceleration transducer is detected, the first testing result information is generated;
It is not detected by acceleration transducer and generates acceleration information, generates the second testing result information.
The prompting control module, for according to the judged result information and testing result information for receiving, it is determined whether raw
Into prompting configuration information;
The prompting control module receives the first judged result information and the first testing result information, and according to described the
One judged result information and the first testing result information, it is determined that not generating prompting configuration information;
The prompting control module receives the second judged result information and the first testing result information, and according to described the
Two judged result information and the first testing result information, it is determined that not generating prompting configuration information;
The prompting control module receives the second judged result information and the second testing result information, and according to described the
Two judged result information and the second testing result information, it is determined that not generating prompting configuration information.
The prompting control module receives the first judged result information and the second testing result information, and according to described the
One judged result information and the second testing result information, it is determined that generating prompting configuration information;
Embodiment 4
As illustrated, Fig. 4 is the prompt system structural representation that a kind of alarm clock is arranged.
The alarm clock arranges the system of prompting and is applied to mobile terminal, and the mobile terminal includes light sensor, accelerates
Degree sensor, display module and timing module;
The system that the alarm clock arranges prompting, including:Illumination obtains control module, illumination value judge module, acceleration inspection
Survey module, prompting control module, display control module, receiver module, timing control module, alarm clock processing module and time to locate in advance
Reason module;
The illumination obtains control module in preset time period, control light sensor obtains ring residing for mobile terminal
The illuminance information in border, and the illuminance information is sent to the illumination value judge module;
The illumination value judge module is judged residing for the mobile terminal for the illuminance information that basis is received
Whether the illuminance information of environment is less than default threshold value, generates judged result information, and the judged result information is sent out
Deliver to the prompting control module;
The illuminance information of the mobile terminal local environment is less than default threshold value, the illumination value judge module life
Into the first judged result information;The illuminance information of the mobile terminal local environment is higher than default threshold value, the illumination
Value judge module generates the second judged result information.
The acceleration detection module, for detecting whether acceleration transducer generates acceleration information, and generates detection
Object information, and the testing result information is sent to the prompting judge module;
Acceleration information is generated when acceleration transducer is detected, the first testing result information is generated;
It is not detected by acceleration transducer and generates acceleration information, generates the second testing result information.
The prompting control module, for according to the judged result information and testing result information for receiving, it is determined whether raw
Into prompting configuration information;
When the prompting control module receives the first judged result information and the first testing result information, and according to described
First judged result information and the first testing result information, it is determined that not generating prompting configuration information;
When the prompting control module receives the second judged result information and the first testing result information, and according to described
Second judged result information and the first testing result information, it is determined that not generating prompting configuration information;
When the prompting control module receives the second judged result information and the second testing result information, and according to described
Second judged result information and the second testing result information, it is determined that not generating prompting configuration information.
When the prompting control module receives the first judged result information and the second testing result information, and according to described
First judged result information and the second testing result information, it is determined that generating prompting configuration information;
The prompting control module sends the prompting configuration information of generation to the display control module, the display control
Molding block controls display module display reminding configuration information for the prompting configuration information generated according to the reminding module;Institute
Receiver module is stated for receiving the alarm time information of outside input;
The timing control module, for the alarm time information received according to the receiver module, controls clock module
Start timing;Time pretreatment module, the moment meansigma methodss of the multiple setting alarm time for the receiver module is received
It is defined as the intermediate time of preset time period.
Alarm clock processing module, for when the clock module timing time reaches alarm time, control reminding module leads to
Cross jingle bell mode or vibration mode sends alarm clock prompting;
Information is set when the reminding module is generated, after control display module display reminding configuration information, light is obtained
Control module is taken, is additionally operable to control the illuminance information that the light sensor stops acquisition mobile terminal local environment, it is described
Reminding module stops generating information.
It should be noted that above example is only unrestricted to illustrate technical scheme, although with reference to preferably
Embodiment has been described in detail to the present invention, it will be understood by those within the art that, can be to the technology of the present invention
Scheme is modified or equivalent, and without deviating from the spirit and scope of technical solution of the present invention, which all should be covered at this
In the middle of bright right.