A kind of method and device that switches scene modes of mobile terminal
Technical field
The present invention relates to mobile terminal technology, refer to especially a kind of method and device that switches scene modes of mobile terminal.
Background technology
Mobile terminal as mobile phone in, the combination of a group of bell sound song, ringtone volume, bell sound type, information bell sound and mode of vibration etc. is called as contextual model.Arranging in contextual model process, the setting of bell sound song refers to chooses some song or melody as the tinkle of bells, ringtone volume setting refers to the volume that regulates bell sound, the setting of bell sound type refers to that it is mode common or that strengthen gradually that bell sound is set, the setting of information bell sound refers to that the bell sound of choosing is set to be play when receipt message, and mode of vibration setting refers to be arranged to friction or first to vibrate rear jingle bell or first jingle bell after vibration or jingle bell and vibrate etc. simultaneously.
User is when using mobile terminal as mobile phone, often need, according to different occasions, different the tinkle of bells is set, volume, and mode of vibration, therefore, need to carry out the switching of different contextual models, conventionally, described contextual model can comprise: mode standard, conference model, silent mode, outdoor pattern, self-defined pattern etc., the manufacturer of mobile terminal generally can arrange these several conventional contextual models and select for user, user can edit and preserve the various contextual models of mobile phone according to the hobby of oneself, during use, according to residing environment, select.But, current mobile phone only provides editor and the hold function of contextual model, for the switching of different contextual models, also need cellphone subscriber to carry out manual operation, give an example, generally, cellphone subscriber is afraid of to be subject to the interference of extraneous factor at night in bed, therefore wish contextual model to be adjusted to silent mode, every morning again manual adjustments be mode standard, so, to cellphone subscriber, bring inconvenience, reducing user experiences, and, user's manual operation easily causes to be forgotten to be adjusted to silent mode or to forget morning be adjusted to mode standard evening, and then user's live and work is produced to bad impact.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method and device that switches scene modes of mobile terminal, can realize the contextual model of automatic switchover mobile terminal, and then promotes user's experience.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of method of switching scene modes of mobile terminal, comprising: handoff parameter is set on mobile terminal; The method also comprises:
According to handoff parameter, judge whether to carry out the switching of contextual model, determine and need, carry out the switching of corresponding contextual model.
In such scheme, described handoff parameter comprises: duration, silent mode time period, mode standard time period and the noise threshold of timer;
Describedly according to handoff parameter, judge whether to carry out the switching of contextual model, determine and need, carry out the switching of corresponding contextual model, for:
Opening timing device, and after timer expiry, obtain current time, judge whether current time was in the time period of contextual model of current activation, after determining not within the time period of the contextual model of current activation, motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, and according to analysis result, carry out the switching of corresponding contextual model.
In such scheme, the contextual model of described current activation is mode standard, and described motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, according to analysis result, carry out the switching of corresponding contextual model, for:
Judge whether the residing environment of mobile terminal is dark surrounds, be defined as dark surrounds, whether the motion state that further judges mobile terminal is static, be defined as static, further judge that whether the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, determine lower than default noise threshold, mode standard is switched to silent mode.
In such scheme, the contextual model of described current activation is silent mode, and described motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, according to analysis result, carry out the switching of corresponding contextual model, for:
Judge whether the residing environment of mobile terminal is light environment, if be defined as light environment, silent mode is switched to mode standard, if be defined as dark surrounds, further judge whether the motion state of mobile terminal is motion, if be defined as motion, silent mode is switched to mode standard, if be defined as static, whether the sound decibel value that further judges mobile terminal environment of living in is higher than default noise threshold, if determine higher than default noise threshold, silent mode switched to mode standard.
In such scheme, the method further comprises:
After determining that the residing environment of mobile terminal is light environment, do not carry out any operation; Or,
The motion state of determining mobile terminal is, after moving, not carry out any operation; Or,
After determining that the sound decibel value of mobile terminal environment of living in is higher than default noise threshold, do not carry out any operation.
In such scheme, the method further comprises:
The sound decibel value of determining mobile terminal environment of living in lower than default noise threshold after, do not carry out any operation.
In such scheme, described handoff parameter further comprises: automatic transfer switch.
In such scheme, the method further comprises:
After determining that current time is within the time period of the contextual model of current activation, do not carry out any operation.
The present invention also provides a kind of device that switches scene modes of mobile terminal, and this device comprises: setting unit, judging unit and control unit; Wherein,
Setting unit, for arranging handoff parameter on mobile terminal;
Judging unit, need to carry out the switching of contextual model for judging whether according to handoff parameter, determines and needs, and will determine that result sends to control unit;
Control unit, for receiving after definite result that judging unit sends, carries out the switching of corresponding contextual model.
In such scheme, described handoff parameter comprises: duration, silent mode time period, mode standard time period and the noise threshold of timer;
Described judging unit further comprises: timer, judge module, analysis module; Wherein,
Timer, for after overtime, triggers judge module;
Judge module, for receiving after the trigger message of timer, obtain current time, judge whether current time was in the time period of contextual model of current activation, and after determining in the current not time period at the contextual model of current activation, trigger analysis module;
Analysis module, for receiving after the trigger message of judge module, the motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, and analysis result is sent to control unit;
Control unit specifically for: receive after the analysis result of analysis module, according to analysis result, carry out the switching of corresponding contextual model.
In such scheme, described analysis module further comprises: light sensing module, acceleration induction module and noise sensitive module; Wherein,
If when the contextual model of current activation is mode standard, light sensing module, for receiving after the trigger message of judge module, judges whether the residing environment of mobile terminal is dark surrounds, after determining that the residing environment of mobile terminal is dark surrounds, trigger acceleration induction module;
Acceleration induction module, for receiving after the trigger message of light sensing module, judges whether the motion state of mobile terminal is static, the motion state of determining mobile terminal be static after, trigger noise sensitive module;
Noise sensitive module, for receiving after the trigger message of acceleration induction module, judge that whether the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, the sound decibel value of determining mobile terminal environment of living in lower than default noise threshold after, will determine that result sends to control unit;
Described control unit specifically for: receive noise sensitive module send definite result after, mode standard is switched to silent mode.
In such scheme, if when the contextual model of current activation is silent mode, light sensing module, for receiving after the trigger message of judge module, judge whether the residing environment of mobile terminal is light environment, after judging that the residing environment of mobile terminal is light environment if determine, will determine that result sends to control unit, after judging that the residing environment of mobile terminal is dark surrounds if determine, trigger acceleration induction module;
Acceleration induction module, for receiving after the trigger message of light sensing module, whether the motion state that judges mobile terminal is motion, if determine, the motion state of mobile terminal is for after moving, to determine that result sends to control unit, if determine the motion state of mobile terminal be static after, trigger noise sensitive module;
Noise sensitive module, for receiving after the trigger message of acceleration induction module, judge that whether the sound decibel value of mobile terminal environment of living in is higher than default noise threshold, if after determining that the sound decibel value that judges mobile terminal environment of living in is higher than default noise threshold, will determine that result sends to control unit;
Described control unit specifically for: receiving after definite result of light sensing module or acceleration induction module or noise sensitive module, silent mode is switched to mode standard.
In such scheme, described handoff parameter further comprises automatic transfer switch;
This device further comprises automatic transfer switch, for opening after automatic transfer switch, triggers timer and starts.
The scheme of switching scene modes of mobile terminal provided by the invention, handoff parameter is set on mobile terminal, according to handoff parameter, judge whether to carry out the switching of contextual model, determine and need, carry out the switching of corresponding contextual model, that is: after timer expiry, obtain current time, judge whether current time was in the time period of contextual model of current activation, after determining not within the time period of the contextual model of current activation, to the residing environment of mobile terminal, and/or the motion state of mobile terminal, and/or the sound decibel value of mobile terminal environment of living in is analyzed, according to analysis result, carry out the switching of corresponding contextual model, so, can automatically realize the switching of scene modes of mobile terminal, and then lifting user experiences.
In addition, if when the contextual model of current activation is mode standard, first judge whether the residing environment of mobile terminal is dark surrounds, determine and be, whether the motion state that further judges mobile terminal is static, determines it is further to judge that whether the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, determine it is mode standard to be switched to silent mode, if when the contextual model of current activation is silent mode, judge whether the residing environment of mobile terminal is light environment, determine and be, silent mode is switched to mode standard, determine and be not, further judge whether the motion state of mobile terminal is motion, determine and be, silent mode is switched to mode standard, determine and be not, whether the sound decibel value that further judges mobile terminal environment of living in is higher than default noise threshold, determine and be, silent mode is switched to mode standard, so, can switch according to the service condition of the residing actual environment of mobile terminal and mobile terminal reality, and then further promote user experience.
In addition, automatic transfer switch can also be set simultaneously, so, can, according to user's request, open after automatic transfer switch, mobile terminal just carries out the automatic switchover of contextual model, further promotes user and experiences.
Accompanying drawing explanation
Fig. 1 is the method flow schematic diagram that scene modes of mobile terminal is switched in the present invention;
Fig. 2 is the apparatus structure schematic diagram that scene modes of mobile terminal is switched in the present invention.
Embodiment
Basic thought of the present invention is: handoff parameter is set on mobile terminal, according to handoff parameter, judges whether to carry out the switching of contextual model, determine and need, carry out the switching of corresponding contextual model.
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
The method of switching scene modes of mobile terminal of the present invention, as shown in Figure 1, comprises the following steps:
Step 101: handoff parameter is set on mobile terminal, performs step afterwards 102;
Here, described mobile terminal can be mobile phone etc.;
Wherein, described handoff parameter at least comprises duration, silent mode time period, mode standard time period and the noise threshold of timer.
The duration of timer arranges according to user's request, such as: can arrange 1 minute, 10 minutes, 30 minutes etc.;
According to user's request, silent mode time period and mode standard time period are set, such as: the silent mode time period can be set is: 22:01~next day 07:00, the mode standard time period be set be: 07:01~22:00;
According to user's request, noise threshold is set, such as: the decibel of the residential standard regulation night outdoor of China must not exceed 40 decibels, and therefore, it is 40 decibels that user can arrange noise threshold;
In order to further facilitate user's use, the duration of timer is being set, the silent mode time period, the mode standard time period, and during noise threshold, automatic transfer switch can be further set simultaneously, that is: described handoff parameter can further include automatic transfer switch, when user opens after automatic transfer switch, on the mobile terminal that can use user, realize the automatic switchover of contextual model, if when user does not want to use the contextual model automatic switching function of mobile terminal, can close the switch of automatic switchover, mobile terminal can not carry out the automatic switchover of contextual model.
Step 102: judge whether to carry out the switching of contextual model according to handoff parameter, determine and need, carry out the switching of corresponding contextual model.
Particularly, opening timing device, and after timer expiry, obtain current time, judge whether current time was in the time period of contextual model of current activation, after determining not within the time period of the contextual model of current activation, the motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, according to analysis result, carry out the switching of corresponding contextual model;
Here, in actual use, in order to realize judgement and the switching that can carry out in real time contextual model, set timer can be become overtime after opening timing device again;
Generally, mobile terminal all can carry clock, therefore, in actual use, can obtain current time by clock;
The contextual model of described current activation refers to the contextual model of the current use of user;
If when the contextual model of current activation is mode standard, described motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, according to analysis result, carry out the switching of corresponding contextual model, be specially:
Judge whether the residing environment of mobile terminal is dark surrounds, if, whether the motion state that further judges mobile terminal is static, if, further judge that whether the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, if so, mode standard is switched to silent mode;
Wherein, in actual use, mobile terminal can be with light sensor, acceleration induction device and noise sensitive device, by the induction result of light sensor, can know that the residing environment of mobile terminal is dark surrounds or light environment, by the induction result of acceleration induction device, can know that the current motion state of mobile terminal is static or motion, can obtain the sound decibel value of mobile terminal environment of living in by noise sensitive device;
After the residing environment of definite mobile terminal is light environment, do not carry out any operation; After determining that the motion state of mobile terminal is motion, do not carry out any operation; After determining that the sound decibel value of mobile terminal environment of living in is higher than default noise threshold, do not carry out any operation;
If when the contextual model of current activation is silent mode, described motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, according to analysis result, carry out the switching of corresponding contextual model, be specially:
Judge whether the residing environment of mobile terminal is light environment, if, silent mode is switched to mode standard, if not, further judge whether the motion state of mobile terminal is motion, if, silent mode is switched to mode standard, if not, further judge that whether the sound decibel value of mobile terminal environment of living in is higher than default noise threshold, if so, silent mode is switched to mode standard;
After determining that the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, do not carry out any operation;
After definite current time is within the time period of the contextual model of current activation, do not carry out any operation.
Below in conjunction with embodiment, the present invention is further described in more detail.
In the present embodiment, set each one minute and just go to obtain current time one time, that is: the duration of timer is made as 1 minute, and again starts timer after timer expiry, so circulation; It is 07:00 22:01~next day that the silent mode time period is set, and it is 07:01~22:00 that the mode standard time period is set, and it is 40 decibels that noise threshold is set, and the contextual model of current activation is mode standard.
After timer expiry, suppose that the current time of obtaining is 22:00,22:00 was in the mode standard time period, did not carry out any operation;
After timer is again overtime, the current time of obtaining is 22:01,22:01 was not in the mode standard time period, therefore, judged whether the residing environment of mobile terminal is dark surrounds, if, whether the motion state that further judges mobile terminal is static, if so, further judges that whether the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, if so, mode standard is switched to silent mode;
After the residing environment of definite mobile terminal is light environment, do not carry out any operation; After determining that the motion state of mobile terminal is motion, do not carry out any operation; After determining that the sound decibel value of mobile terminal environment of living in is higher than default noise threshold, do not carry out any operation;
If successfully contextual model is switched to silent mode in the time of 22:01, so, after timer is again overtime, current time is 22:02, because 22:02 is within the silent mode time period, does not carry out any operation;
When current time is that morning is during 07:01,07:01 was not in the silent mode time period, therefore, judge whether the residing environment of mobile terminal is light environment, if, silent mode is switched to mode standard, if not, further judge whether the motion state of mobile terminal is motion, if so, silent mode is switched to mode standard, if not, the sound decibel value that further judges mobile terminal environment of living in, whether higher than default noise threshold, if so, switches to mode standard by silent mode;
After determining that the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, do not carry out any operation.
For realizing said method, the present invention also provides a kind of device that switches scene modes of mobile terminal, and as shown in Figure 2, this device comprises: setting unit 21, judging unit 22 and control unit 23; Wherein,
Setting unit 21, for arranging handoff parameter on mobile terminal;
Judging unit 22, need to carry out the switching of contextual model for judging whether according to handoff parameter, determines and needs, and will determine that result sends to control unit 23;
Control unit 23, for receiving after definite result that judging unit 22 sends, carries out the switching of corresponding contextual model.
Wherein, described handoff parameter comprises duration, silent mode time period, mode standard time period and the noise threshold of timer;
Described judging unit 22 can further include: timer, judge module, analysis module; Wherein,
Timer, for after overtime, triggers judge module;
Judge module, for receiving after the trigger message of timer, obtain current time, judge whether current time was in the time period of contextual model of current activation, and after determining in the current not time period at the contextual model of current activation, trigger analysis module;
Analysis module, for receiving after the trigger message of judge module, the motion state to the residing environment of mobile terminal and/or mobile terminal and/or the sound decibel value of mobile terminal environment of living in are analyzed, and analysis result is sent to control unit 23;
Control unit 23 specifically for: receive after the analysis result of analysis module, according to analysis result, carry out the switching of corresponding contextual model.
Wherein, described handoff parameter can further include automatic transfer switch; This device can further include automatic transfer switch, for opening after automatic transfer switch, triggers timer and starts.
Described analysis module can further include: light sensing module, acceleration induction module and noise sensitive module; Wherein,
If when the contextual model of current activation is mode standard, light sensing module, for receiving after the trigger message of judge module, judges whether the residing environment of mobile terminal is dark surrounds, after determining that the residing environment of mobile terminal is dark surrounds, trigger acceleration induction module;
Acceleration induction module, for receiving after the trigger message of light sensing module, judges whether the motion state of mobile terminal is static, the motion state of determining mobile terminal be static after, trigger noise sensitive module;
Noise sensitive module, for receiving after the trigger message of acceleration induction module, judge that whether the sound decibel value of mobile terminal environment of living in is lower than default noise threshold, the sound decibel value of determining mobile terminal environment of living in lower than default noise threshold after, will determine that result sends to control unit 23;
Described control unit 23 specifically for: receive noise sensitive module send definite result after, mode standard is switched to silent mode.
If when the contextual model of current activation is silent mode, light sensing module, for receiving after the trigger message of judge module, judge whether the residing environment of mobile terminal is light environment, after judging that the residing environment of mobile terminal is light environment if determine, to determine that result sends to control unit 23, after judging that the residing environment of mobile terminal is dark surrounds if determine, trigger acceleration induction module;
Acceleration induction module, for receiving after the trigger message of light sensing module, whether the motion state that judges mobile terminal is motion, if determine, the motion state of mobile terminal is for after moving, to determine that result sends to control unit 23, if determine the motion state of mobile terminal be static after, trigger noise sensitive module;
Noise sensitive module, for receiving after the trigger message of acceleration induction module, judge that whether the sound decibel value of mobile terminal environment of living in is higher than default noise threshold, if after determining that the sound decibel value that judges mobile terminal environment of living in is higher than default noise threshold, will determine that result sends to control unit 23;
Described control unit 23 specifically for: receiving after definite result of light sensing module or acceleration induction module or noise sensitive module, silent mode is switched to mode standard.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.