CN104918309A - Energy-saving method and device for mobile terminal - Google Patents

Energy-saving method and device for mobile terminal Download PDF

Info

Publication number
CN104918309A
CN104918309A CN201510308199.9A CN201510308199A CN104918309A CN 104918309 A CN104918309 A CN 104918309A CN 201510308199 A CN201510308199 A CN 201510308199A CN 104918309 A CN104918309 A CN 104918309A
Authority
CN
China
Prior art keywords
camera function
mobile terminal
distance value
value
conditioned
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.)
Pending
Application number
CN201510308199.9A
Other languages
Chinese (zh)
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510308199.9A priority Critical patent/CN104918309A/en
Publication of CN104918309A publication Critical patent/CN104918309A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0254Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity detecting a user operation or a tactile contact or a motion of the device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • H04W52/028Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof switching on or off only a part of the equipment circuit blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the invention discloses an energy-saving method and an energy-saving device for a mobile terminal. The energy-saving method comprises the steps that: a distance value detected by a distance sensor is obtained circularly when a camera function of the mobile terminal is in an enabling state, and the camera function is disabled until the time duration of the distance value meeting a first preset condition meets a second preset condition; the distance value is the distance from a shielding object to the distance sensor; the first preset condition is that the distance value is less than or equal to a preset distance value; and the second preset condition is that the the time duration is greater than or equal to preset time duration. Compared with the mobile terminal which is always in an operating state after enabling the camera function in the prior art, the electric quantity of the mobile terminal can be saved since the electric quantity consumption caused by the factor that the camera function is in a meaningless operating state and additional functions is reduced, thereby the stand-by time of the mobile terminal is prolonged.

Description

A kind of power-saving method of mobile terminal and device
Technical field
The present invention relates to technical field of mobile terminals, particularly relate to a kind of power-saving method and device of mobile terminal.
Background technology
On mobile terminal, camera more and more becomes standard configuration, but the power consumption of general camera is very large, and more particularly with the camera of additional function, as having the camera of stabilization function, if be in dither state when camera works, power consumption quickly.
Existing mobile terminal, can be always in running order after unlatching camera function, until user closes camera function.If do not need to take pictures or make a video recording, put it in bag, pocket etc., camera still in running order (being called meaningless operating state), will cause power consumption fast.In the process of mobile terminal along with movements such as bag, pockets, shake is comparatively large, more makes the quick power consumption of mobile terminal, causes unnecessary waste.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of power-saving method and device of mobile terminal, for solving the problem of quick power consumption when mobile terminal camera is in meaningless operating state.
The object of the embodiment of the present invention is achieved through the following technical solutions:
A power-saving method for mobile terminal, comprising:
Under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, and meets described second pre-conditioned, close described camera function until described distance value met for first pre-conditioned duration;
Described distance value is block the distance between object and described range sensor;
Described first pre-conditionedly refers to described distance value≤described predeterminable range value;
Described second pre-conditioned refer to described duration >=described preset durations.
Optionally, also comprise:
After closing described camera function, described in cycle criterion, camera function is the need of unlatching, until judged result is needs unlatching;
When judged result is opened for needs, open described camera function.
Optionally, close described camera function, comprising:
Control described mobile terminal and enter resting state; Or,
Terminate the process of described camera function; Or,
Hang up the process of described camera function.
A battery saving arrangement for mobile terminal, comprising:
First judge module, for: under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, and meets described second pre-conditioned until described distance value met for first pre-conditioned duration; Described distance value is block the distance between object and described range sensor; Described first pre-conditionedly refers to described distance value≤described predeterminable range value; Described second pre-conditioned refer to described duration >=described preset durations;
First function closing module, for: when described first judge module judge the described duration meet described second pre-conditioned time, close described camera function.
Optionally, also comprise:
Second judge module, for: after closing described camera function, described in cycle criterion, camera function is the need of unlatching, until judged result is needs unlatching;
Function opening module, for: when the judged result of described second judge module is opened for needs, open described camera function.
Optionally, described first function closing module specifically for:
Control described mobile terminal and enter resting state; Or,
Terminate the process of described camera function; Or,
Hang up the process of described camera function.
The beneficial effect of the embodiment of the present invention is as follows: in the embodiment of the present invention, under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until distance value meet first pre-conditioned duration meet second pre-conditioned time, just close camera function.With prior art, mobile terminal is after unlatching camera function, can always in running orderly compare, the electric quantity consumption that meaningless operating state and additional function (as stabilization function) cause is in owing to decreasing camera function, the electricity of mobile terminal can be saved, thus the stand-by time of mobile terminal is extended.And, due to be distance value meet first pre-conditioned duration meet continue second pre-conditioned time close camera function, first pre-conditionedly just camera function can not be closed because of meeting of distance value short time, the frequent closedown that the situation avoiding closedown by mistake causes is opened, and improves stability.
A power-saving method for mobile terminal, comprising:
Under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until described distance value meets first pre-conditioned, closes described camera function;
Described distance value is block the distance between object and described range sensor;
Described first pre-conditionedly refers to described distance value≤described predeterminable range value.
A battery saving arrangement for mobile terminal, comprising:
3rd judge module, for: under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until described distance value meets first pre-conditioned; Described distance value is block the distance between object and described range sensor; Described first pre-conditionedly refers to described distance value≤described predeterminable range value;
Second function closing module, for: when described 3rd judge module judge described distance value meet first pre-conditioned time, close described camera function.
The beneficial effect of the embodiment of the present invention is as follows: in the embodiment of the present invention, under the camera function opening of mobile terminal, circulation obtain range sensor detect distance value, until distance value meet first pre-conditioned time, just close camera function.Not only achieve and automatically close camera function, and react rapid sensitive.With prior art, mobile terminal is after unlatching camera function, can always in running orderly compare, the electric quantity consumption that meaningless operating state and additional function (as stabilization function) cause is in owing to decreasing camera function, the electricity of mobile terminal can be saved, thus the stand-by time of mobile terminal is extended.
A power-saving method for mobile terminal, comprising:
Under the camera function opening of mobile terminal, circulation obtains the brightness value of light sensors, until described brightness value meets the 3rd pre-conditioned, closes described camera function;
Described 3rd pre-conditioned refer to described brightness value≤with the default brightness value of current light environments match.
A battery saving arrangement for mobile terminal, comprising:
4th judge module, for: under the camera function opening of mobile terminal, circulation obtains the brightness value of light sensors, until described brightness value meets the 3rd pre-conditioned; Described 3rd pre-conditioned refer to described brightness value≤with the default brightness value of current light environments match;
3rd function closing module, for: when described 4th judge module judge described brightness value meet the 3rd pre-conditioned time, close described camera function.
The beneficial effect of the embodiment of the present invention is as follows: in the embodiment of the present invention, and under the camera function opening of mobile terminal, circulation obtains the brightness value of optical sensor, until brightness value meet the 3rd pre-conditioned time, just achieve and automatically close camera function.Wherein, the 3rd is pre-conditionedly less than or equal to the default brightness value with current light environments match for brightness value, thus can adapt to different photoenvironments, and application scenarios is more extensive.And, with prior art, mobile terminal is after unlatching camera function, can always in running orderly compare, the electric quantity consumption that meaningless operating state and additional function (as stabilization function) cause is in owing to decreasing camera function, the electricity of mobile terminal can be saved, thus the stand-by time of mobile terminal is extended.
Accompanying drawing explanation
The power-saving method flow chart of the first mobile terminal that Fig. 1 provides for the embodiment of the present invention;
The power-saving method flow chart of the second mobile terminal that Fig. 2 provides for the embodiment of the present invention;
The power-saving method flow chart of the third mobile terminal that Fig. 3 provides for the embodiment of the present invention;
The power-saving method flow chart of the 4th kind of mobile terminal that Fig. 4 provides for the embodiment of the present invention;
The power-saving method flow chart of the 5th kind of mobile terminal that Fig. 5 provides for the embodiment of the present invention;
The power-saving method flow chart of the 6th kind of mobile terminal that Fig. 6 provides for the embodiment of the present invention;
The power-saving method flow chart of the 7th kind of mobile terminal that Fig. 7 provides for the embodiment of the present invention;
The power-saving method flow chart of the 8th kind of mobile terminal that Fig. 8 provides for the embodiment of the present invention;
The battery saving arrangement schematic diagram of the first mobile terminal that Fig. 9 provides for the embodiment of the present invention;
The battery saving arrangement schematic diagram of the second mobile terminal that Figure 10 provides for the embodiment of the present invention;
The battery saving arrangement schematic diagram of the third mobile terminal that Figure 11 provides for the embodiment of the present invention;
The battery saving arrangement schematic diagram of the 4th kind of mobile terminal that Figure 12 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the power-saving method of a kind of mobile terminal provided by the invention and device are illustrated in greater detail.
As shown in Figure 1, the embodiment of the present invention provides a kind of power-saving method of mobile terminal, and its specific implementation is as follows:
Step 110: under the camera function opening of mobile terminal, circulation obtains the distance value of range sensor, meets second pre-conditioned, perform step 120 until distance value met for first pre-conditioned duration; Distance value is block the distance between object and described range sensor; First pre-conditionedly refers to that distance value is less than or equal to predeterminable range value; Second pre-conditionedly refers to that the duration is more than or equal to preset durations.
Wherein, circulation time can be regularly (fixed cycle) circulation, also can be irregularly (on-fixed cycle) circulation.
It should be pointed out that distance value is less than or equal to predeterminable range value first pre-conditioned to meet, and distance value to be strictly less than predeterminable range value pre-conditioned to meet first, all in protection scope of the present invention.It is second pre-conditioned to meet that the above-mentioned duration is more than or equal to preset durations, and to be strictly greater than Preset Time pre-conditioned to meet second, also all in protection scope of the present invention the above-mentioned duration.
Step 120: close camera function.
In the embodiment of the present invention, under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until distance value meet first pre-conditioned duration meet second pre-conditioned time, just close camera function.With prior art, mobile terminal is after unlatching camera function, can always in running orderly compare, the electric quantity consumption that meaningless operating state and additional function (as stabilization function) cause is in owing to decreasing camera function, the electricity of mobile terminal can be saved, thus the stand-by time of mobile terminal is extended.And, due to be distance value meet first pre-conditioned duration meet continue second pre-conditioned time close camera function, first pre-conditionedly just camera function can not be closed because of meeting of distance value short time, the frequent closedown that the situation avoiding closedown by mistake causes is opened, and improves stability and practicality.
In above-mentioned steps 110, if regularly obtain the distance value of range sensor detection, its cycle can set according to practical service environment, or sets based on experience value.Optionally, the cycle that arranges is for [500 milliseconds, 15 seconds].User can select according to the periodic regime provided.
In order to determine that distance value met for first pre-conditioned duration and meets second pre-conditioned, recording distance value is needed to be less than or equal to the duration of (or being less than) predeterminable range value, the method of record has multiple, enumerates below but does not limit two kinds of implementations:
One is that mode by arranging counter realizes: if distance value is less than or equal to (or being less than) predeterminable range value, counter adds 1, until compare distance value to be greater than (or being more than or equal to) predeterminable range value, stops counting, record numerical value, and by counter O reset.
Wherein, the numerical value of the counter of record is more than or equal to (or being greater than) default value, the preset durations that illustrates that the duration is more than or equal to (or being greater than), and now the duration meets second pre-conditioned.
Two is that mode by arranging timer realizes: if distance value is less than or equal to (or being less than) predeterminable range value, and timer is not opened, open timer, until compare distance value when being greater than (or being more than or equal to) predeterminable range value, stop timing, record timing time, and timer is reset.
Wherein, judge timer whether open can but do not limit following two kinds of modes: directly judge whether to open according to the opening of timer; Or obtain the comparative result of a circulation, if distance value is less than or equal to (or being less than) predeterminable range value, timer is opened, if distance value is greater than (or being more than or equal to) predeterminable range value, timer is not opened.
Wherein, if the timing time of record is greater than (or being more than or equal to) preset durations, now the duration meets second pre-conditioned.
Circulation obtains in the process of the distance value that range sensor detects, and after each acquisition distance value, if this distance value obtained is greater than (or being more than or equal to) predeterminable range value, directly can enters and circulate next time; Or, if the duration of existing record, can carry out judging whether according to the duration of having recorded satisfied first pre-conditioned, and enter and circulate next time.
Optionally, the duration can be arranged according to actual needs, such as, for preventing of short duration the blocking because of user's body (as hand) be detected and close camera function, can arrange preset durations and being greater than or equal to 2 seconds.
Optionally, the scope of predeterminable range value be (0 millimeter, 20 millimeters].
Optionally, range sensor is infrared distance sensor, also can be other suitable range sensor, etc.
In above-described embodiment, after closing camera function, the operating state of the camera function before can also recovering to close, that is, open camera function, as shown in Figure 2, specific implementation is as follows:
Step 210: after closing camera function, cycle criterion camera function is the need of unlatching, until judged result is needs unlatching.
Wherein, circulation time can be periodic cyclic, also can be irregular circulation.
Step 220: when judged result is opened for needs, opens camera function.
In the embodiment of the present invention, if periodic cyclic judges, its cycle can set according to practical service environment, or sets based on experience value.The cycle of certain setting is shorter, more can open camera function as early as possible.
Operating state before recovering as early as possible to make camera function to close, in step 210, cycle criterion camera function has multiple the need of the implementation of opening, and enumerates below but does not limit two kinds of implementations:
A kind of implementation is:
Circulation obtains the distance value that range sensor detects, until distance value is greater than (or being more than or equal to) predeterminable range value, judges to need to open; Wherein, distance value is the distance of blocking between object and range sensor.
In this process, take the photograph camera function the need of the predeterminable range value of opening for judging, with above-mentioned for judging that camera function is the need of the predeterminable range value of closing, can be identical, also can be different.
The embodiment of the present invention, when circulation obtains the distance value of range sensor detection, can be periodic cyclic, also can be irregular circulation.
In the embodiment of the present invention, by obtaining the distance value that range sensor detects, itself and predeterminable range value are compared, when distance value is greater than (or being more than or equal to) predeterminable range value, judge to need to open, can operating state automatically before fast quick-recovery camera.
Optionally, the scope of predeterminable range value be (0 millimeter, 20 millimeters].
Optionally, range sensor is infrared distance sensor, also can be other suitable range sensor, etc.
Another kind of implementation is:
Circulation obtains the distance value of range sensor, until the duration that distance value is greater than predeterminable range value is more than or equal to (or being greater than) preset durations, judges to need to open; Distance value is block the distance between object and described range sensor.
In this process, take the photograph camera function the need of the predeterminable range value of opening for judging, with above-mentioned for judging that camera function is the need of the predeterminable range value of closing, can be identical, also can be different.
Same, in this process, take the photograph camera function the need of the preset durations opened for judging, with above-mentioned for judging that camera function is the need of the preset durations of closing, can be identical, also can be different.
In this process, need recording distance value to be greater than the duration of predeterminable range value, the mode of record duration can be implemented the need of the mode arranging counter or arrange timer enumerated in the embodiment of closing with reference to above-mentioned judgement camera function.
In the embodiment of the present invention, when circulation obtains the distance value of range sensor detection, can be periodic cyclic, also can be irregular circulation.
In the embodiment of the present invention, the duration that distance value is greater than predeterminable range value is when being more than or equal to (or being greater than) preset durations, just judge to need to open camera function, automatically the operating state before can not only recovering camera, and avoid because distance value is only greater than predeterminable range value in the very short time and open by mistake and open, saving electricity further.
Optionally, the scope of predeterminable range value be (0 millimeter, 20 millimeters].
Optionally, range sensor is infrared distance sensor, also can be other suitable range sensor, etc.
Another implementation is:
Circulation obtains the brightness value of light sensors, until the brightness value obtained is greater than the default brightness value that (or being more than or equal to) mate with photoenvironment, judgement needs unlatching; Wherein, the brightness value of brightness value environment residing for mobile terminal.
Wherein, the default brightness value that different photoenvironments is corresponding different.Such as, daytime fine day photoenvironment correspondence to preset brightness value be 100 luxs, the default brightness value corresponding for the cloudy day on daytime is 10 luxs, is 50 luxs for dim indoor on daytime for default brightness value.It should be pointed out that and can also think that dim indoor on daytime, the inferior similar scene of light at night belong to same photoenvironment, for they arrange identical default brightness value.
Wherein, the determination mode of current light environment has multiple, such as, can under mobile terminal operating state or under the state of camera function unlatching, according to the brightness value determination current light environment that optical sensor detects in real time, concrete: the sampled point choosing predetermined quantity from the brightness value of light sensors according to pre-defined rule, to the brightness value averaged of these sampled points, according to this mean value determination current light environment; Or according to choosing the continuous print brightness value of predetermined quantity, the brightness value determination current light environment maximum according to wherein number of repetition, etc.
The embodiment of the present invention, when circulation obtains the brightness value of light sensors, can be periodic cyclic, also can be irregular circulation.
Optionally, optical sensor is ambient light sensor, also can select other suitable optical sensor.
The implementation of above-mentioned steps 120 has multiple, and optionally, the implementation that step 120 is concrete can be: control mobile terminal and enter resting state, or,
Terminate the process of camera function; Or,
Hang up the process of camera function.
Optionally, the specific implementation of above-mentioned steps 220 can be: wake mobile terminal up; Or,
Start the program of camera function.
It should be noted that, if the mode adopting control mobile terminal to enter resting state closes camera, adopt and open camera by the mode waking mobile terminal up, not only can in the environment not needing camera in running order, automatic closedown camera function, after leaving this environment, automatically can also recover the operating state before camera, and automatically recover the operating state before other function.
It should be pointed out that in each embodiment above-mentioned, mobile terminal can be mobile phone etc.
Below for this mobile terminal of mobile phone, the power-saving method of a kind of mobile terminal that the embodiment of the present invention provides is illustrated in further detail.As shown in Figure 3, under the camera function opening of mobile phone, corresponding handling process is as follows:
Step 310: range sensor detecting distance value, performs step 320.
In the present embodiment, range sensor is infrared distance sensor.
Step 320: obtain the distance value that range sensor detects, performs step 330.
Step 330: judge whether this distance value≤predeterminable range value, if so, performs step 340, otherwise, perform step 360.
In the present embodiment, this predeterminable range value is 20 millimeters.
Step 340: the counter for the duration of recording distance value≤predeterminable range value adds 1, judges whether the numerical value >=default value of counter, if so, represent duration >=preset durations, perform step 350; Otherwise, represent duration < preset durations, return and perform step 320.
In this step, can return immediately and perform step 320, when also can wait until that next distance value obtains the cycle, return and perform step 320.
In the embodiment of the present invention, preset durations is 2 seconds.
Step 350: counter O reset, controls mobile phone and enters resting state, camera function is closed.
Step 360: counter O reset, returns and performs step 320.
In this step, after counter O reset, can return immediately and perform step 320, when also can wait until that next distance value obtains the cycle, return and perform step 320.
In the embodiment of the present invention, the cycle obtaining distance value is 500 milliseconds.
After automatic closedown camera function, automatically can also open camera function, preferably, after closing camera function, after a while, judge whether to need to open.Accordingly, the handling process of camera function is opened as shown in Figure 4:
Step 410: obtain the distance value that range sensor detects, performs step 420.
Step 420: judge whether this distance value > predeterminable range value, if so, performs step 440, otherwise, perform step 430.
In the present embodiment, this predeterminable range value is 20 millimeters.
Step 430: timer resets, returns and performs step 410.
Step 440: judge to judge whether to open according to the time status of the timer of the duration being used for recording distance value > preset value, if so, perform step 450, otherwise, perform step 460.
Step 450: judge whether timing time >=preset durations, if so, represent duration >=preset durations, perform step 470, otherwise, represent duration < preset durations, return and perform step 410.
In the embodiment of the present invention, preset durations is 2 seconds.
In this step, can return immediately and perform step 410, when also can wait until that next distance value obtains the cycle, return and perform step 410.
In the embodiment of the present invention, the cycle obtaining distance value is 500 milliseconds.
Step 460: open timer, returns and performs step 410.
In this step, after opening timer, can return immediately and perform step 410, when also can wait until that next distance value obtains the cycle, return and perform step 410.
Step 470: timer resets, and wakes mobile phone up, camera is resumed work state, and other function also recovers original state.
It should be pointed out that in above-described embodiment, be only described for the power-saving method of the first implementation to mobile terminal of step 210, with reference to above-described embodiment, the other implementation of step 210 can also be adopted, realize the economize on electricity of mobile terminal.
In the embodiment of the present invention, as shown in Figure 5, provide the power-saving method of another kind of mobile terminal, implementation step is as follows:
Step 510: under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until distance value meets first pre-conditioned, performs step 520; Distance value is the distance of blocking between object and range sensor; First pre-conditionedly refers to that distance value is less than or equal to predeterminable range value.
It should be pointed out that distance value is less than or equal to predeterminable range value first pre-conditioned to meet, and distance value to be strictly less than predeterminable range value pre-conditioned to meet first, all in protection scope of the present invention.
Step 520: close camera function.
In the embodiment of the present invention, under the camera function opening of mobile terminal, circulation obtains the distance value of transducer, until distance value meet first pre-conditioned time, just close camera function.Not only achieve and automatically close camera function, and react rapid sensitive, with prior art, mobile terminal is after unlatching camera function, can always in running orderly compare, be in owing to decreasing camera function the electric quantity consumption that meaningless operating state and additional function (as stabilization function) cause, the electricity of mobile terminal can be saved, thus the stand-by time of mobile terminal is extended.
In above-mentioned steps 510, if regularly obtain the distance value of range sensor, its cycle can set according to practical service environment, or sets based on experience value.Optionally, the cycle that arranges is for [500 milliseconds, 15 seconds].User can select according to the periodic regime provided.
Optionally, the scope of predeterminable range value be (0 millimeter, 20 millimeters].
Optionally, range sensor is infrared distance sensor, also can be other suitable range sensor, etc.
In each embodiment above-mentioned, close the specific implementation of camera with reference to the above embodiment, after closing camera function, the operating state of the camera function before can also recovering to close, namely, open camera function, its specific implementation can refer to the above embodiment, repeats no more herein.
It should be pointed out that in each embodiment above-mentioned, mobile terminal can be mobile phone etc.
Below for this mobile terminal of mobile phone, the power-saving method of a kind of mobile terminal that the embodiment of the present invention provides is illustrated in further detail.As shown in Figure 6, under the camera function opening of mobile phone, corresponding processing procedure is as follows:
Step 610: range sensor detecting distance value, performs step 620.
In the present embodiment, distance is detected as infrared distance sensor.
In this step, range sensor is adjusted the distance value Real-Time Monitoring.
Step 620: obtain the distance value that range sensor detects, performs step 630.
Step 630: judge whether this distance value≤predeterminable range value, if so, performs step 640, otherwise, return and perform step 620.
In the present embodiment, this predeterminable range value is 20 millimeters.
In this step, can return immediately and perform step 620, when also can wait until that next distance value obtains the cycle, return and perform step 620.
In the embodiment of the present invention, the cycle obtaining distance value is 500 milliseconds.
Step 640: control mobile phone and enter resting state, camera function is closed.
After automatic closedown camera function, automatically can also open camera function, preferably, after closing camera function, after a while, judge whether to need to open.In the embodiment of the present invention, judge whether to need to open for optical sensor, accordingly, open the handling process of camera function as shown in Figure 7:
Step 710: the brightness value obtaining light sensors, performs step 720.
Step 720: judge whether the default brightness value that this brightness value > mates with photoenvironment, if so, performs step 730, otherwise, return and perform step 710.
In the embodiment of the present invention, such as, after the brightness value detected in real time from optical sensor chooses the continuous print brightness value of predetermined quantity, the current light environment that the brightness value maximum according to wherein number of repetition is determined is fine day on daytime, and accordingly, the default brightness value mated with photoenvironment is 50 luxs.
Step 730: wake mobile phone up, camera is resumed work state, and other function also recovers original state.
In the embodiment of the present invention, as shown in Figure 8, provide the power-saving method of another mobile terminal, implementation step is as follows:
Step 810: under the camera function opening of mobile terminal, circulation obtains the brightness value of light sensors, until brightness value meets the 3rd pre-conditioned, performs step 820; 3rd pre-conditionedly refers to that brightness value is less than or equal to the default brightness value with current light environments match.
Wherein, the brightness value of brightness value environment residing for mobile terminal.
It should be noted that; brightness value is less than or equal to the default brightness value of current light environments match pre-conditioned to meet the 3rd; and brightness value is strictly less than with the default brightness value of current light environments match pre-conditioned to meet the 3rd, all in protection scope of the present invention.
Step 820: close camera function.
In the embodiment of the present invention, under the camera function opening of mobile terminal, circulation obtains the brightness value of optical sensor, until brightness value meet the 3rd pre-conditioned time, just achieve and automatically close camera function.Wherein, the 3rd is pre-conditionedly less than or equal to the default brightness value with current light environments match for brightness value, thus can adapt to different photoenvironments, and application scenarios is more extensive.And, with prior art, mobile terminal is after unlatching camera function, can always in running orderly compare, the electric quantity consumption that meaningless operating state and additional function (as stabilization function) cause is in owing to decreasing camera function, the electricity of mobile terminal can be saved, thus the stand-by time of mobile terminal is extended.
Wherein, the default brightness value that different photoenvironments is corresponding different.Such as, daytime fine day photoenvironment correspondence to preset brightness value be 100 luxs, the default brightness value corresponding for the cloudy day on daytime is 10 luxs, is 50 luxs for dim indoor on daytime for default brightness value.It should be pointed out that and can also think that dim indoor on daytime, the inferior similar scene of light at night belong to same photoenvironment, for they arrange identical default brightness value.
Wherein, the determination mode of current light environment has multiple, such as, can under mobile terminal operating state or under the state of camera function unlatching, according to the brightness value determination current light environment that optical sensor detects in real time, concrete: the sampled point choosing predetermined quantity from the brightness value of light sensors according to pre-defined rule, to the brightness value averaged of these sampled points, according to this mean value determination current light environment; Or according to choosing the continuous print brightness value of predetermined quantity, the brightness value determination current light environment maximum according to wherein number of repetition, etc.
Above-described embodiment, when circulation obtains the brightness value of light sensors, can be periodic cyclic, also can be irregular circulation.
Optionally, optical sensor is ambient light sensor, also can select other suitable optical sensor.
In each embodiment above-mentioned, close the specific implementation of camera with reference to the above embodiment, after closing camera function, the operating state of the camera function before can also recovering to close, namely, open camera function, its specific implementation can refer to the above embodiment, repeats no more herein.
It should be pointed out that in each embodiment above-mentioned, mobile terminal can be mobile phone etc.
Based on same inventive concept, in the embodiment of the present invention, as shown in Figure 9, a kind of battery saving arrangement of mobile terminal is provided, comprises: the first judge module 901 and the first function closing module 902.
First judge module 901, for: under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, and meets second pre-conditioned until distance value met for first pre-conditioned duration; Distance value is block the distance between object and described range sensor; First pre-conditionedly refers to that distance value is less than or equal to predeterminable range value; Second pre-conditionedly refers to that the duration is more than or equal to preset durations;
First function closing module 902, for: when the first judge module judge the duration meet second pre-conditioned time, close camera function.
Optionally, as shown in Figure 10, this device also comprises: the second judge module 903 and open function module 904.
Second judge module 903, specifically for: after closing camera function, cycle criterion camera function is the need of unlatching, until judged result is needs unlatching.
Open function module 904, specifically for: when the judged result of the second judge module 903 is opened for needs, open camera function.
Optionally, the first function closing module 902 specifically for:
Control mobile terminal and enter resting state; Or,
Terminate the process of camera function; Or,
Hang up the process of camera function.
In the embodiment of the present invention, as shown in figure 11, provide the battery saving arrangement of another kind of mobile terminal, comprise the 3rd judge module 1101 and the second function closing module 1102.
3rd judge module 1101, for: under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until distance value meets first pre-conditioned; Distance value is the distance of blocking between object and range sensor; First pre-conditioned be state distance value to be less than or equal to predeterminable range value;
Second function closing module 1102, for: when the 3rd judge module judge distance value meet first pre-conditioned time, close camera function.
In the embodiment of the present invention, as shown in figure 12, provide the battery saving arrangement of another mobile terminal, comprise the 4th judge module 1201 and the 3rd function closing module 1202.
4th judge module 1201, for: under the camera function opening of mobile terminal, circulation obtains the brightness value of light sensors, until brightness value meets the 3rd pre-conditioned; 3rd pre-conditionedly refers to that brightness value is less than or equal to the default brightness value with current light environments match;
3rd function closing module 1202, for: when the 4th judge module judge brightness value meet the 3rd pre-conditioned time, close camera function.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. a power-saving method for mobile terminal, is characterized in that, comprising:
Under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, and meets described second pre-conditioned, close described camera function until described distance value met for first pre-conditioned duration;
Described distance value is block the distance between object and described range sensor;
Described first pre-conditionedly refers to described distance value≤described predeterminable range value;
Described second pre-conditioned refer to described duration >=described preset durations.
2. method according to claim 1, is characterized in that, also comprises:
After closing described camera function, described in cycle criterion, camera function is the need of unlatching, until judged result is needs unlatching;
When judged result is opened for needs, open described camera function.
3. method according to claim 1 and 2, is characterized in that, closes described camera function, comprising:
Control described mobile terminal and enter resting state; Or,
Terminate the process of described camera function; Or,
Hang up the process of described camera function.
4. a power-saving method for mobile terminal, is characterized in that, comprising:
Under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until described distance value meets first pre-conditioned, closes described camera function;
Described distance value is block the distance between object and described range sensor;
Described first pre-conditionedly refers to described distance value≤described predeterminable range value.
5. a power-saving method for mobile terminal, is characterized in that, comprising:
Under the camera function opening of mobile terminal, circulation obtains the brightness value of light sensors, until described brightness value meets the 3rd pre-conditioned, closes described camera function;
Described 3rd pre-conditioned refer to described brightness value≤with the default brightness value of current light environments match.
6. a battery saving arrangement for mobile terminal, is characterized in that, comprising:
First judge module, for: under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, and meets described second pre-conditioned until described distance value met for first pre-conditioned duration; Described distance value is block the distance between object and described range sensor; Described first pre-conditionedly refers to described distance value≤described predeterminable range value; Described second pre-conditioned refer to described duration >=described preset durations;
First function closing module, for: when described first judge module judge the described duration meet described second pre-conditioned time, close described camera function.
7. device according to claim 6, is characterized in that, also comprises:
Second judge module, for: after closing described camera function, described in cycle criterion, camera function is the need of unlatching, until judged result is needs unlatching;
Function opening module, for: when the judged result of described second judge module is opened for needs, open described camera function.
8. the device according to claim 6 or 7, is characterized in that, described first function closing module specifically for:
Control described mobile terminal and enter resting state; Or,
Terminate the process of described camera function; Or,
Hang up the process of described camera function.
9. a battery saving arrangement for mobile terminal, is characterized in that, comprising:
3rd judge module, for: under the camera function opening of mobile terminal, circulation obtains the distance value that range sensor detects, until described distance value meets first pre-conditioned; Described distance value is block the distance between object and described range sensor; Described first pre-conditionedly refers to described distance value≤described predeterminable range value;
Second function closing module, for: when described 3rd judge module judge described distance value meet first pre-conditioned time, close described camera function.
10. a battery saving arrangement for mobile terminal, is characterized in that, comprising:
4th judge module, for: under the camera function opening of mobile terminal, circulation obtains the brightness value of light sensors, until described brightness value meets the 3rd pre-conditioned; Described 3rd pre-conditioned refer to described brightness value≤with the default brightness value of current light environments match;
3rd function closing module, for: when described 4th judge module judge described brightness value meet the 3rd pre-conditioned time, close described camera function.
CN201510308199.9A 2015-06-08 2015-06-08 Energy-saving method and device for mobile terminal Pending CN104918309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510308199.9A CN104918309A (en) 2015-06-08 2015-06-08 Energy-saving method and device for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510308199.9A CN104918309A (en) 2015-06-08 2015-06-08 Energy-saving method and device for mobile terminal

Publications (1)

Publication Number Publication Date
CN104918309A true CN104918309A (en) 2015-09-16

Family

ID=54086908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510308199.9A Pending CN104918309A (en) 2015-06-08 2015-06-08 Energy-saving method and device for mobile terminal

Country Status (1)

Country Link
CN (1) CN104918309A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204638A (en) * 2015-09-18 2015-12-30 联想(北京)有限公司 Electronic device and information processing method
CN106793041A (en) * 2017-01-04 2017-05-31 珠海市魅族科技有限公司 The method of intelligent energy-saving, the device of intelligent energy-saving and mobile terminal
CN106802708A (en) * 2016-11-28 2017-06-06 国网北京市电力公司 The control method and device of wearable device
WO2017092410A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Method and device for controlling virtual reality (vr) device
CN106990844A (en) * 2017-04-01 2017-07-28 深圳市恒科电子科技有限公司 The control method and device of VR equipment
CN107329577A (en) * 2017-07-19 2017-11-07 深圳市连山易科技有限公司 A kind of Intelligent lamp control method and device based on gesture identification
CN108062197A (en) * 2017-12-21 2018-05-22 西安钛克韦尔信息科技有限公司 A kind of screen adjustment method and mobile terminal
CN108924360A (en) * 2018-07-10 2018-11-30 Oppo广东移动通信有限公司 Display methods, storage medium and electronic equipment
CN108932062A (en) * 2017-05-28 2018-12-04 姚震 The control method of electronic equipment, input unit
CN111031594A (en) * 2019-12-03 2020-04-17 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium
WO2020108007A1 (en) * 2018-11-30 2020-06-04 Oppo广东移动通信有限公司 Camera module control method and device
WO2020108008A1 (en) * 2018-11-30 2020-06-04 Oppo广东移动通信有限公司 Camera module control method and apparatus

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480593A (en) * 2010-11-25 2012-05-30 杭州华三通信技术有限公司 Double-lens video camera switching method and device
CN103685902A (en) * 2012-09-03 2014-03-26 联想(北京)有限公司 Mobile phone using camera photosensitive chip to control flashlight
CN104102330A (en) * 2013-04-03 2014-10-15 腾讯科技(深圳)有限公司 Display screen control method, device and electronic equipment
CN104618649A (en) * 2015-01-29 2015-05-13 深圳市金立通信设备有限公司 Terminal
CN104639833A (en) * 2015-01-29 2015-05-20 深圳市金立通信设备有限公司 Method for controlling camera device
US20150138122A1 (en) * 2013-11-20 2015-05-21 Samsung Electronics Co., Ltd. Portable device and method for controlling screen brightness thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102480593A (en) * 2010-11-25 2012-05-30 杭州华三通信技术有限公司 Double-lens video camera switching method and device
CN103685902A (en) * 2012-09-03 2014-03-26 联想(北京)有限公司 Mobile phone using camera photosensitive chip to control flashlight
CN104102330A (en) * 2013-04-03 2014-10-15 腾讯科技(深圳)有限公司 Display screen control method, device and electronic equipment
US20150138122A1 (en) * 2013-11-20 2015-05-21 Samsung Electronics Co., Ltd. Portable device and method for controlling screen brightness thereof
CN104618649A (en) * 2015-01-29 2015-05-13 深圳市金立通信设备有限公司 Terminal
CN104639833A (en) * 2015-01-29 2015-05-20 深圳市金立通信设备有限公司 Method for controlling camera device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105204638A (en) * 2015-09-18 2015-12-30 联想(北京)有限公司 Electronic device and information processing method
WO2017092410A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Method and device for controlling virtual reality (vr) device
CN106802708A (en) * 2016-11-28 2017-06-06 国网北京市电力公司 The control method and device of wearable device
CN106793041A (en) * 2017-01-04 2017-05-31 珠海市魅族科技有限公司 The method of intelligent energy-saving, the device of intelligent energy-saving and mobile terminal
CN106990844A (en) * 2017-04-01 2017-07-28 深圳市恒科电子科技有限公司 The control method and device of VR equipment
CN108932062A (en) * 2017-05-28 2018-12-04 姚震 The control method of electronic equipment, input unit
CN108932062B (en) * 2017-05-28 2021-09-21 姚震 Electronic device, input device control method
CN107329577A (en) * 2017-07-19 2017-11-07 深圳市连山易科技有限公司 A kind of Intelligent lamp control method and device based on gesture identification
CN107329577B (en) * 2017-07-19 2020-12-22 深圳市连山易科技有限公司 Intelligent lamp control method and device based on gesture recognition
CN108062197A (en) * 2017-12-21 2018-05-22 西安钛克韦尔信息科技有限公司 A kind of screen adjustment method and mobile terminal
CN108924360A (en) * 2018-07-10 2018-11-30 Oppo广东移动通信有限公司 Display methods, storage medium and electronic equipment
WO2020108007A1 (en) * 2018-11-30 2020-06-04 Oppo广东移动通信有限公司 Camera module control method and device
WO2020108008A1 (en) * 2018-11-30 2020-06-04 Oppo广东移动通信有限公司 Camera module control method and apparatus
US11228703B2 (en) 2018-11-30 2022-01-18 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling camera module, electronic device, and computer-readable storage medium
US11438500B2 (en) 2018-11-30 2022-09-06 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for controlling camera module, electronic device, and storage medium
CN111031594A (en) * 2019-12-03 2020-04-17 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium

Similar Documents

Publication Publication Date Title
CN104918309A (en) Energy-saving method and device for mobile terminal
CN103219769B (en) Method for charging batteries, batter-charghing system and mobile terminal
CN103956792B (en) A kind of method and device controlling mobile terminal charging temperature rise
CN105635467B (en) Mobile terminal and reminding method thereof
CN104113642B (en) Power saving method and device in shooting process
CN105049737B (en) A kind of light supplement control method, device and mobile terminal
CN101442589A (en) Method and apparatus for managing mobile terminal status
CN105245718A (en) Control method and device of breathing lamp and mobile terminal
CN102938851B (en) A kind of automatic stand-by processing method and set-top box based on set-top box
CN103945201A (en) IR-Cut optical filter switching method, device and camera
CN104460935A (en) Information processing method and electronic equipment
CN113411504B (en) Intelligent shooting method and system for field infrared camera
CN104199670A (en) Mobile terminal and closing method and device of applications
CN105847527B (en) A kind of method preventing mobile terminal automatic shutdown and mobile terminal
WO2016045525A1 (en) Method and apparatus for processing state of terminal
CN104102326A (en) Power-saving control method and system of mobile terminal
CN104243683A (en) Data processing method, terminal, user identification card and data processing system
CN108762176B (en) Energy-saving regulation and control method and system for intelligent home inspection robot
CN104836912A (en) Information processing method and mobile terminal
CN107864269B (en) Method, terminal and computer readable storage medium for automatic activation and standby
CN105049810A (en) Intelligent video monitoring method and video device
CN112332499A (en) Charging control method, system, charging box and storage medium
CN104702833A (en) Information processing method and electronic equipment
CN107404616A (en) A kind of photographic method, mobile terminal and storage device for adjusting camera sensitivity
CN109088456B (en) Mobile terminal charging protection system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150916

RJ01 Rejection of invention patent application after publication