CN106535434B - A kind of flash lamp control method and mobile terminal of mobile terminal - Google Patents
A kind of flash lamp control method and mobile terminal of mobile terminal Download PDFInfo
- Publication number
- CN106535434B CN106535434B CN201611071816.9A CN201611071816A CN106535434B CN 106535434 B CN106535434 B CN 106535434B CN 201611071816 A CN201611071816 A CN 201611071816A CN 106535434 B CN106535434 B CN 106535434B
- Authority
- CN
- China
- Prior art keywords
- flash lamp
- mobile terminal
- flashlight
- damage
- temperature
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/22—Illumination; Arrangements for improving the visibility of characters on dials
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of flash lamp control method of mobile terminal and mobile terminal, it is provided with the first flash lamp on the mobile terminal, this method comprises: judging whether first flash lamp damages when detecting flashlight open command;When first flash lamp does not damage, opened first flash lamp as flashlight;Every prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold;When the temperature of first flash lamp is more than preset threshold, reduce the driving current of first flash lamp according to the first preset step-length.Therefore, the embodiment of the present invention, it can be after flash lamp be opened as flashlight, whether the temperature of real-time monitoring flash lamp is more than preset threshold, to neatly adjust the size of driving current, it solves the problems, such as to cause flash lamp to damage because temperature is excessively high after the flashlight long-time use of mobile terminal, improves the usage experience of user.
Description
Technical field
The present invention relates to the flash lamp control methods and movement of electronic technology field more particularly to a kind of mobile terminal eventually
End.
Background technique
Intelligence mobile phone configuration front camera and rear camera has become standard configuration, and rear camera is equipped at least one flash of light
Flash lamp, and the front camera of more and more mobile phones also configures flash of light flash lamp, may be used as hand when flash lamp is always on
Torch floor light.However, the temperature of flash lamp can increase, especially in driving current ratio for a long time using after flashlight function
When larger, flash lamp is easy to cause to damage, not only affects the normal use of user, but also user must not be changed without
The flash lamp of damage increases the use cost of user.
Summary of the invention
The embodiment provides a kind of flash lamp control method of mobile terminal and mobile terminals, to solve to move
After the flashlight long-time use of terminal because temperature is excessively high to cause flash lamp to damage the problem of.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme:
One aspect according to an embodiment of the present invention provides a kind of flash lamp control method of mobile terminal, the shifting
The first flash lamp is provided in dynamic terminal, which comprises
When detecting flashlight open command, judge whether first flash lamp damages;
When first flash lamp does not damage, opened first flash lamp as flashlight;
Every prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold;
When the temperature of first flash lamp is more than preset threshold, reduce first flash of light according to the first preset step-length
The driving current of lamp.
Other side according to an embodiment of the present invention additionally provides a kind of mobile terminal, is arranged on the mobile terminal
There are the first flash lamp, the mobile terminal further include:
First judgment module, for when detecting flashlight open command, judging whether first flash lamp damages;
First starting module will be described for when the first judgment module judges that first flash lamp does not damage
First flash lamp is opened as flashlight;
Detection module, for every prefixed time interval, whether the temperature for detecting first flash lamp to be more than default threshold
Value;
First execution module, for detecting that the temperature of first flash lamp is more than preset threshold when the detection module
When, reduce the driving current of first flash lamp according to the first preset step-length.
The beneficial effect of the embodiment of the present invention is:
The embodiment of the present invention can judge the first flash of light on mobile terminal when detecting flashlight open command
Whether lamp damages, and then first flash lamp is opened when not damaging, and first after prefixed time interval judgement is opened
Whether the temperature of flash lamp is more than preset threshold, and then when detecting more than preset threshold, reduces the driving of the first flash lamp
Electric current causes temperature excessively high to prevent the first flash lamp because long-time driving current is excessive, to effectively avoid flash lamp
Damage.Therefore, the embodiment of the present invention, can be after flash lamp be opened as flashlight, and the temperature of real-time monitoring flash lamp is
No is more than preset threshold, to neatly adjust the size of driving current, the flashlight for solving mobile terminal uses for a long time
The problem of causing flash lamp to damage because temperature is excessively high afterwards, improve the usage experience of user.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 shows the flow charts of the flash lamp control method of the mobile terminal of first embodiment of the invention;
Fig. 2 indicates the flow chart of the flash lamp control method of the mobile terminal of second embodiment of the invention;
Fig. 3 indicates the flow chart of the flash lamp control method of the mobile terminal of third embodiment of the invention;
One of the structural block diagram of mobile terminal of Fig. 4 expression fourth embodiment of the invention;
Fig. 5 indicates the two of the structural block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 6 indicates the three of the structural block diagram of the mobile terminal of fourth embodiment of the invention;
Fig. 7 indicates the structural block diagram of the mobile terminal of fifth embodiment of the invention;
Fig. 8 shows the structural block diagrams of the mobile terminal of sixth embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
The embodiment provides a kind of flash lamp control methods of mobile terminal, as shown in Figure 1, this method packet
It includes:
Step 101: when detecting flashlight open command, judging whether first flash lamp damages.
Concretely mobile phone, tablet computer, personal digital assistant etc. are whole for mobile terminal applied by the embodiment of the present invention
End equipment.Wherein, the first flash lamp is provided on the mobile terminal, and first flash lamp can be used as flashlight lighting use.
When user is to mobile terminal execution predetermined registration operation, mobile terminal can then generate a flashlight open command.Specifically
Ground, such as user open the flashlight switch on mobile terminal operation interface, and mobile terminal then generates flashlight open command;Or
Person, user draw desired guiding trajectory in the default display interface of mobile terminal, and mobile terminal then generates flashlight open command.
Wherein, could normally start when the first flash lamp does not damage, so, according to the starting sudden strain of a muscle of flashlight open command
Before light lamp, need further to detect whether the first flash lamp damages.When the first flash lamp does not damage, it could normally start
One flash lamp is illuminated;And when the damage of the first flash lamp, then it can not start, so that the first flash lamp can not be used as flashlight
It uses.
Furthermore it is preferred that judging whether the first flash lamp damages by the node voltage of the first flash of light of detection.Specifically,
For example, indicating the short circuit of the first flash lamp when the node voltage of the first flash lamp is less than first threshold;When the section of the first flash lamp
When point voltage is greater than second threshold, the open circuit of the first flash lamp is indicated.
Step 102: when first flash lamp does not damage, being opened first flash lamp as flashlight.
Wherein, if detecting that the first flash lamp does not damage by step 101, then it represents that first flash lamp can be used as flashlight
Cylinder carries out illumination use.
In addition, further use can be reminded by relevant operation if detecting that the first flash lamp damages by step 101
The damage of the family flash lamp.Specifically, such as in the predeterminable area of the display interface of mobile terminal show what flashlight had damaged
Relevant information has perhaps been damaged by voice reminder user's flashlight or has been reminded etc. by mobile phone vibration.
Step 103: every prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold.
After the first flash lamp starts as flashlight, if the first flash lamp is opened for a long time, it is possible that temperature is super
The case where crossing preset threshold is gone down to also result in for a long time flash lamp damage and can not be made to cause to damage to flash lamp itself
With.And the embodiment of the present invention, every prefixed time interval, can periodically detect the temperature of the first flash lamp for such situation
Whether it is more than preset threshold, i.e., prevents the first flash lamp from damaging by way of actively monitoring because temperature is more than preset threshold.
Step 104: when the temperature of first flash lamp is more than preset threshold, according to described in the reduction of the first preset step-length
The driving current of first flash lamp.
When by step 103 detect the first flash lamp in some time interval temperature be more than preset threshold when, press
The driving current of the first flash lamp is gradually reduced according to the first preset step-length, until the temperature of the first flash lamp restores normal.
It can be seen from the above, the embodiment of the present invention, can judge on mobile terminal when detecting flashlight open command
The first flash lamp whether damage, and then first flash lamp is opened when not damaging, and open every prefixed time interval judgement
Whether the temperature of the first flash lamp after opening is more than preset threshold, and then is detecting that reduction first is dodged when being more than preset threshold
The driving current of light lamp causes temperature excessively high to prevent the first flash lamp because long-time driving current is excessive, to effectively keep away
Exempt from the damage of flash lamp.Therefore, the embodiment of the present invention, can be after flash lamp be opened as flashlight, real-time monitoring flash of light
Whether the temperature of lamp is more than preset threshold, to neatly adjust the size of driving current, solves the flashlight of mobile terminal
The problem of causing flash lamp to damage because temperature is excessively high after long-time use, improve the usage experience of user.
Second embodiment
The embodiment provides a kind of flash lamp control method of mobile terminal, only it is provided on the mobile terminal
One flash lamp, i.e. the first flash lamp.
As shown in Fig. 2, this method comprises:
Step 201: when detecting flashlight open command, judging whether first flash lamp damages.
Concretely mobile phone, tablet computer, personal digital assistant etc. are whole for mobile terminal applied by the embodiment of the present invention
End equipment.Wherein, the first flash lamp is only provided on the mobile terminal, and first flash lamp can be used as flashlight lighting and make
With.
When user is to mobile terminal execution predetermined registration operation, mobile terminal can then generate a flashlight open command.Specifically
Ground, such as user open the flashlight switch on mobile terminal operation interface, and mobile terminal then generates flashlight open command;Or
Person, user draw desired guiding trajectory in the default display interface of mobile terminal, and mobile terminal then generates flashlight open command.
Wherein, could normally start when the first flash lamp does not damage, so, according to the starting sudden strain of a muscle of flashlight open command
Before light lamp, need further to detect whether the first flash lamp damages.When the first flash lamp does not damage, it could normally start
One flash lamp is illuminated;And when the damage of the first flash lamp, then it can not start, so that the first flash lamp can not be used as flashlight
It uses.
Furthermore it is preferred that judging whether the first flash lamp damages by the node voltage of the first flash of light of detection.Specifically,
For example, indicating the short circuit of the first flash lamp when the node voltage of the first flash lamp is less than first threshold;When the section of the first flash lamp
When point voltage is greater than second threshold, the open circuit of the first flash lamp is indicated.
In addition, when first flash lamp does not damage, executing step 202 in the embodiment of the present invention;When described first
When flash lamp damages, step 205 is executed.
Step 202: being opened first flash lamp as flashlight.
Wherein, if detecting that the first flash lamp does not damage by step 201, then it represents that first flash lamp can be used as flashlight
Cylinder carries out illumination use.
Step 203: every prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold.
After the first flash lamp starts as flashlight, if the first flash lamp is opened for a long time, it is possible that temperature is super
The case where crossing preset threshold is gone down to also result in for a long time flash lamp damage and can not be made to cause to damage to flash lamp itself
With.And the embodiment of the present invention, every prefixed time interval, can periodically detect the temperature of the first flash lamp for such situation
Whether it is more than preset threshold, i.e., prevents the first flash lamp from damaging by way of actively monitoring because temperature is more than preset threshold.
Preferably, step 203 includes: to obtain the first voltage value for the node voltage that first flash lamp connects moment,
And it records;Every prefixed time interval, the second voltage value of the node voltage of first flash lamp is obtained;By second electricity
Pressure value is compared with the absolute value of the difference of the first voltage value with predetermined voltage threshold;If the second voltage value with it is described
The absolute value of the difference of the first voltage value is greater than the predetermined voltage threshold, it is determined that the temperature of first flash lamp is more than default
Threshold value;If the absolute value of the difference of the second voltage value and the first voltage value is less than or equal to the predetermined voltage threshold,
Then determine that the temperature of first flash lamp is less than preset threshold.
Judge whether its temperature is more than default by detecting the node voltage of the first flash lamp in the open state
Threshold value.For example, getting the first flash lamp is switched on voltage V0 on the basis of the section voltage of moment, in first flash lamp operation
During flashlight, real-time monitoring simultaneously records the current real work section voltage Vw of first flash lamp, judges V0-Vw's
Whether absolute value is greater than Δ VF, if so, determining that the temperature of the first flash lamp is more than preset threshold, if it is not, then determining that first dodges
The temperature of light lamp is less than preset threshold.
In addition, predetermined voltage threshold can be set according to the reasonable temperature conditions of security interval of the first flash lamp operation,
It is not necessarily the section temperature highest point that the first flash lamp is able to bear.
Step 204: reducing the driving current of first flash lamp according to the first preset step-length.
When by step 203 detect the first flash lamp in some time interval temperature be more than preset threshold when, press
The driving current of the first flash lamp is gradually reduced according to the first preset step-length, until the temperature of the first flash lamp restores normal.
Step 205: executing pre-set prompt operation.
It, then can be further by executing pre-set operation when detecting the damage of the first flash lamp by step 201
To remind user's flash lamp to damage.Specifically, such as in the predeterminable area of the display interface of mobile terminal flashlight is shown
The relevant information damaged perhaps has been damaged by voice reminder user's flashlight or has been reminded etc. by mobile phone vibration.
Step 206: when detecting the first predetermined registration operation of user, increasing first flash lamp according to the second preset step-length
Driving current.
Wherein, when the flash lamp of mobile terminal in the prior art is used as flashlight, brightness fixation can not be adjusted, at night
Between it is more dazzling under dark surrounds, especially user get up at midnight twilight state when feel particularly evident, while in sheen environment
Lower opening feels too bright again, brings the more inconvenience in use process for user.And the embodiment of the present invention, can according to
Relevant operation of the family to mobile terminal, to adjust the driving current of the first flash lamp used as flashlight, to reach tune
Save the purpose of the brightness of the first flash lamp.
Step 207: when detecting the second predetermined registration operation of user, reducing first flash lamp according to third preset step-length
Driving current.
Specifically, it is previously stored with the first predetermined registration operation and second predetermined registration operation of user in mobile terminal, then works as inspection
When measuring the first predetermined registration operation of user on mobile terminals, then it represents that user needs to be promoted the brightness of the first flash lamp, mobile
Terminal is then gradually increased the driving current of the first flash lamp according to pre-set second preset step-length, to promote brightness;When
When detecting the second predetermined registration operation of user on mobile terminals, then it represents that user needs to reduce the brightness of the first flash lamp, moves
Dynamic terminal then gradually reduces the driving current of the first flash lamp according to pre-set third preset step-length, to reduce brightness.
Wherein, above-mentioned the first predetermined registration operation concretely pressing operation to the first key on mobile terminal or user
The upward or slide to the left in predeterminable area on mobile terminal touch screen.Accordingly, above-mentioned second predetermined registration operation is specific
Can for the pressing operation of the second key on mobile terminal or user on mobile terminal touch screen in predeterminable area downwards or
Slide to the right.
It can be seen from the above, the embodiment of the present invention, can judge on mobile terminal when detecting flashlight open command
The first flash lamp whether damage, and then first flash lamp is opened when not damaging, and pass through inspection every prefixed time interval
The node voltage of the first flash lamp is surveyed, to judge whether the temperature of the first flash lamp after opening is more than preset threshold, Jin Er
When detecting more than preset threshold, reduce the driving current of the first flash lamp, to prevent the first flash lamp from driving because of long-time
Electric current is excessive, causes temperature excessively high, so that the damage of flash lamp is effectively avoided, when efficiently solving the flashlight tube length of mobile terminal
Between the problem of causing flash lamp to damage because temperature is excessively high after use.In addition, the embodiment of the present invention, additionally it is possible to be dodged first
When light lamp damages, the first flash lamp of user is reminded to damage by executing pre-set prompt operation, and according to the behaviour of user
The brightness of flash lamp is made adjustments, the usage experience of user is further improved.
3rd embodiment
The embodiment provides a kind of flash lamp control method of mobile terminal, is provided on the mobile terminal
One flash lamp and at least one second flash lamp, i.e., be provided with multiple flash lamps on the mobile terminal.
As shown in figure 3, this method comprises:
Step 301: when detecting flashlight open command, judging whether first flash lamp damages.
Concretely mobile phone, tablet computer, personal digital assistant etc. are whole for mobile terminal applied by the embodiment of the present invention
End equipment.Wherein, multiple flash lamps on the mobile terminal can be used as flashlight lighting use.Wherein, the first flash lamp is default
Flashlight flash lamp.
When user is to mobile terminal execution predetermined registration operation, mobile terminal can then generate a flashlight open command.Specifically
Ground, such as user open the flashlight switch on mobile terminal operation interface, and mobile terminal then generates flashlight open command;Or
Person, user draw desired guiding trajectory in the default display interface of mobile terminal, and mobile terminal then generates flashlight open command.
Wherein, could normally start when the first flash lamp does not damage, so, according to the starting sudden strain of a muscle of flashlight open command
Before light lamp, need further to detect whether the first flash lamp damages.When the first flash lamp does not damage, it could normally start
One flash lamp is illuminated;And when the damage of the first flash lamp, then it can not start, so that the first flash lamp can not be used as flashlight
It uses.
Furthermore it is preferred that judging whether the first flash lamp damages by the node voltage of the first flash of light of detection.Specifically,
For example, indicating the short circuit of the first flash lamp when the node voltage of the first flash lamp is less than first threshold;When the section of the first flash lamp
When point voltage is greater than second threshold, the open circuit of the first flash lamp is indicated.
In addition, when first flash lamp does not damage, executing step 302 or step 309 in the embodiment of the present invention;
When first flash lamp damage, step 307 is executed.
Step 302: being opened first flash lamp as flashlight.
Wherein, if detecting that the first flash lamp does not damage by step 301, then it represents that first flash lamp can be used as flashlight
Cylinder carries out illumination use.
Step 303: every prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold.
After the first flash lamp starts as flashlight, if the first flash lamp is opened for a long time, it is possible that temperature is super
The case where crossing preset threshold is gone down to also result in for a long time flash lamp damage and can not be made to cause to damage to flash lamp itself
With.And the embodiment of the present invention, every prefixed time interval, can periodically detect the temperature of the first flash lamp for such situation
Whether it is more than preset threshold, i.e., prevents the first flash lamp from damaging by way of actively monitoring because temperature is more than preset threshold.
Preferably, step 303 includes: to obtain the first voltage value for the node voltage that first flash lamp connects moment,
And it records;Every prefixed time interval, the second voltage value of the node voltage of first flash lamp is obtained;By second electricity
Pressure value is compared with the absolute value of the difference of the first voltage value with predetermined voltage threshold;If the second voltage value with it is described
The absolute value of the difference of the first voltage value is greater than the predetermined voltage threshold, it is determined that the temperature of first flash lamp is more than default
Threshold value;If the absolute value of the difference of the second voltage value and the first voltage value is less than or equal to the predetermined voltage threshold,
Then determine that the temperature of first flash lamp is less than preset threshold.
Judge whether its temperature is more than default by detecting the node voltage of the first flash lamp in the open state
Threshold value.For example, voltage V0 on the basis of the section voltage that the first flash lamp is opened for the first time is got, in first flash lamp operation
During flashlight, real-time monitoring simultaneously records the current real work section voltage Vw of first flash lamp, judges V0-Vw's
Whether absolute value is greater than Δ VF, if so, determining that the temperature of the first flash lamp is more than preset threshold, if it is not, then determining that first dodges
The temperature of light lamp is less than preset threshold.
In addition, predetermined voltage threshold can be set according to the reasonable temperature conditions of security interval of the first flash lamp operation,
It is not necessarily the section temperature highest point that the first flash lamp is able to bear.
Here, when the temperature of first flash lamp is more than preset threshold, step 304 or step 305 are executed.That is, working as
When first flashing light temperature is more than preset threshold, the driving current of the first flash lamp can be reduced or be switched to the second flash lamp
It is illuminated, so that the first flash lamp be effectively prevent to damage because temperature is excessively high, and then extends the service life of the first flash lamp.
Step 304: reducing the driving current of first flash lamp according to the first preset step-length.
When by step 303 detect the first flash lamp in some time interval temperature be more than preset threshold when, press
The driving current of the first flash lamp is gradually reduced according to the first preset step-length, until the temperature of the first flash lamp restores normal.
Step 305: judging whether second flash lamp damages.
It, can be by being switched to the second sudden strain of a muscle when the temperature for detecting the first flash lamp by step 303 is more than preset threshold
Light lamp carries out illumination use, and caused electricity wastes problem when avoiding using screen illumination, to extend the continuous of mobile terminal
ETS estimated time of sailing.And the second flash lamp could normally start when not damaging, so there are also further sentence when switching the second flash lamp
Whether disconnected second flash lamp damages.
Similarly, it is preferable that by the node voltage of the second flash of light of detection, judge whether the second flash lamp damages.Specifically,
For example, indicating the short circuit of the second flash lamp when the node voltage of the second flash lamp is less than first threshold;When the section of the second flash lamp
When point voltage is greater than second threshold, the open circuit of the second flash lamp is indicated.
In addition, when second flash of light non-lamp damage, executing step 306 in the embodiment of the present invention;When described second
When flash lamp damages, step 311 is executed.That is, starting one in second flash lamp when second flash lamp does not damage
It is a to be opened as flashlight;When second flash lamp damage, by executing pre-set prompt operation prompting user the
Two flash lamps have damaged, so that user replaces other lighting methods, for example, by using screen illumination.
Step 306: control first flash lamp is closed, and controls one in second flash lamp as flashlight
It opens.
When judging that second flash lamp does not damage by step 305, then it represents that the second flash lamp can be used as flashlight
Illumination use is carried out, caused electricity wastes problem when avoiding using screen illumination, thus when extending the continuation of the journey of mobile terminal
Between.And at this point, so the first flash lamp can be closed, and opening second since the temperature of the first flash lamp is more than preset threshold
One in flash lamp, so that the first flash of light light temperature be avoided to be more than preset threshold and damage, and then extend making for the first flash of light
Use the service life.
In addition, after the second flash lamp is opened equally the temperature of second flash lamp can be detected according to prefixed time interval
Whether it is more than preset threshold, and when being more than preset threshold, according to first preset step-length, reduces second flash lamp
Driving current, or be changed to other second flash lamps and illuminated.
Step 307: judging whether second flash lamp damages.
When judging first flash lamp damage by step 301, the second flash lamp can be replaced and carry out illumination use.
And the second flash lamp could normally start when not damaging, so there are also further judge second when switching the second flash lamp
Whether flash lamp damages.
Similarly, it is preferable that by the node voltage of the second flash of light of detection, judge whether the second flash lamp damages.Specifically,
For example, indicating the short circuit of the second flash lamp when the node voltage of the second flash lamp is less than first threshold;When the section of the second flash lamp
When point voltage is greater than second threshold, the open circuit of the second flash lamp is indicated.
Here, when second flash of light non-lamp damage, step 308 is executed;When second flash lamp damage, execute
Step 311.That is, one started in second flash lamp opens as flashlight when second flash lamp does not damage;
When second flash lamp damage, the second flash lamp of user is reminded to damage by executing pre-set prompt operation, with
So that user replaces other lighting methods, for example, by using screen illumination.
Step 308: one in control second flash lamp is opened as flashlight.
When judging that second flash lamp does not damage by step 307, then it represents that the second flash lamp can be used as flashlight
Carry out illumination use.And at this point, not being available since the first flash lamp has damaged, so one in the second flash lamp can be opened
It is a to realize illumination functions.
In addition, after the second flash lamp is opened equally the temperature of second flash lamp can be detected according to prefixed time interval
Whether it is more than preset threshold, and when being more than preset threshold, according to first preset step-length, reduces second flash lamp
Driving current, or be changed to other second flash lamps and illuminated.
Step 309: when detecting that the mobile terminal is in photographing mode, judging whether second flash lamp damages.
Wherein, the first flash lamp is also possible to the light compensating lamp of the camera as mobile terminal, then when mobile terminal enters bat
When according to mode, the first flash lamp can not be used as flashlight.And the embodiment of the present invention, it can be movement in the first flash lamp
When the light compensating lamp of the camera of terminal, when entering photographing mode by detecting mobile terminal, it is switched to unspoiled second and dodges
Light lamp is used as flashlight.
In the embodiment of the present invention, when second flash of light non-lamp damage, step 310 is executed;When second flash of light
When lamp damages, step 311 is executed.
Step 310: one in control second flash lamp is opened as flashlight.
When judging that second flash lamp does not damage by step 309, then it represents that the second flash lamp can be used as flashlight
Carry out illumination use.And at this point, when being in photographing mode due to mobile terminal as the first flash lamp of camera fill flash without
Method is used as flashlight, so can be by opening a realization illumination functions in the second flash lamp.
In addition, after the second flash lamp is opened equally the temperature of second flash lamp can be detected according to prefixed time interval
Whether it is more than preset threshold, and when being more than preset threshold, according to first preset step-length, reduces second flash lamp
Driving current, or be changed to other second flash lamps and illuminated.
Step 311: executing pre-set prompt operation.
It, can be further by holding when detecting the damage of the second flash lamp by step 305 or step 307 or step 309
Row is pre-set to be operated to remind user's flash lamp to damage.Specifically, for example, mobile terminal display interface it is default
The relevant information that flashlight has damaged is shown in region, has perhaps damaged or passed through hand by voice reminder user's flashlight
Machine vibration is reminded etc..
It can be seen from the above, the embodiment of the present invention, can judge on mobile terminal when detecting flashlight open command
The first flash lamp whether damage, and then first flash lamp is opened when not damaging, and pass through inspection every prefixed time interval
The node voltage of the first flash lamp is surveyed, to judge whether the temperature of the first flash lamp after opening is more than preset threshold, Jin Er
When detecting more than preset threshold, reduces the driving current of the first flash lamp or be switched to unspoiled second flash lamp as hand
Torch uses, to prevent the first flash lamp because long-time driving current is excessive, causes temperature excessively high, to effectively avoid glistening
The damage of lamp, efficiently solve causes flash lamp to damage after the flashlight long-time use of mobile terminal because temperature is excessively high
Problem.In addition, the embodiment of the present invention, additionally it is possible in the damage of the first flash lamp, be switched to the second flash lamp that can be used
Illumination use is carried out, and when the second flash lamp also damages, reminds user second to dodge by executing pre-set prompt operation
Light lamp has damaged, and further promotes the usage experience of user.
Fourth embodiment
The embodiment provides a kind of mobile terminal, the first flash lamp, such as Fig. 4 are provided on the mobile terminal
Shown, the mobile terminal also 400 includes:
First judgment module 401, for when detecting flashlight open command, judging whether first flash lamp damages
It is bad;
First starting module 402, for when the first judgment module 401 judges that first flash lamp does not damage,
It is opened first flash lamp as flashlight;
Detection module 403, for every prefixed time interval, whether the temperature for detecting first flash lamp to be more than default
Threshold value;
First execution module 404, for detecting that the temperature of first flash lamp is more than pre- when the detection module 403
If when threshold value, reducing the driving current of first flash lamp according to the first preset step-length.
Preferably, as shown in figure 5, the mobile terminal 400 further include:
Second execution module 405, for holding when the first judgment module 401 judges first flash lamp damage
The pre-set prompt operation of row.
Preferably, as shown in figure 5, the mobile terminal 400 further include:
First luminance adjustment module 406, in the first predetermined registration operation for detecting user, according to the second preset step-length
Increase the driving current of first flash lamp;
Second luminance adjustment module 407, in the second predetermined registration operation for detecting user, according to third preset step-length
Reduce the driving current of first flash lamp.
Preferably, at least one second flash lamp is additionally provided on the mobile terminal, as shown in fig. 6, described mobile whole
End 400 further include:
Second judgment module 408, for detecting that the temperature of first flash lamp is more than pre- when the detection module 403
If when threshold value, judging whether second flash lamp damages;
Third execution module 409, for when second judgment module 408 judges that second flash lamp does not damage,
It controls first flash lamp to close, and controls one in second flash lamp and opened as flashlight.
Preferably, at least one second flash lamp is additionally provided on the mobile terminal, as shown in fig. 6, described mobile whole
End 400 further include:
Third judgment module 410, for sentencing when the first judgment module 401 judges first flash lamp damage
Whether second flash lamp that breaks damages;
4th execution module 411, for when the third judgment module 410 judges that second flash lamp does not damage,
One controlled in second flash lamp opens as flashlight.
Preferably, at least one second flash lamp is additionally provided on the mobile terminal;When first flash lamp is institute
When stating the light compensating lamp of the camera of mobile terminal, as shown in fig. 6, the mobile terminal 400 further include:
4th judgment module 412, for when detecting that the mobile terminal is in photographing mode, judging that described second dodges
Whether light lamp damages;
5th execution module 413, for when the 4th judgment module 412 judges that second flash lamp does not damage,
One controlled in second flash lamp opens as flashlight.
Preferably, as shown in fig. 6, the mobile terminal 400 further include:
6th execution module 414, for when second flash lamp damage, executing pre-set prompt operation.
Preferably, as shown in Figure 5 and Figure 6, the detection module 403 includes:
First acquisition unit 4031, the first voltage for connecting the node voltage of moment for obtaining first flash lamp
Value, and record;
Second acquisition unit 4032, for obtaining the node voltage of first flash lamp every prefixed time interval
Second voltage value;
Comparing unit 4033 is used for absolute value of the difference and default electricity by the second voltage value and the first voltage value
Pressure threshold value is compared;
First determination unit 4034, if the absolute value of the difference for the second voltage value and the first voltage value is greater than
The predetermined voltage threshold, it is determined that the temperature of first flash lamp is more than preset threshold;
Second determination unit 4035, if the absolute value of the difference for the second voltage value and the first voltage value is less than
Or it is equal to the predetermined voltage threshold, it is determined that the temperature of first flash lamp is less than preset threshold.
The mobile terminal of the embodiment of the present invention, embodiment through the invention, first judgment module 401 are detecting flashlight
When cylinder open command, judge whether the first flash lamp on mobile terminal damages, and then the first starting of triggering mould when not damaging
Block 402 is opened the first flash lamp as flashlight, and detection trigger module 403 is after prefixed time interval detection is opened
Whether the temperature of the first flash lamp is more than preset threshold, and then when detecting more than preset threshold, passes through the first execution module
The driving current of 404 the first flash lamps of reduction leads to temperature mistake to prevent the first flash lamp because long-time driving current is excessive
Height, to effectively avoid the damage of flash lamp.Therefore, the embodiment of the present invention, can flash lamp as flashlight open after,
Whether the temperature of real-time monitoring flash lamp is more than preset threshold, to neatly adjust the size of driving current, solves movement
After the flashlight long-time use of terminal because temperature is excessively high to cause flash lamp to damage the problem of, improve user uses body
It tests.
5th embodiment
Fig. 7 is the block diagram of the mobile terminal of another embodiment of the present invention.Mobile terminal 700 shown in Fig. 7 includes: at least
One processor 701, memory 702, at least one network interface 704, other users interface 703 and flash lamp module 706, institute
Stating flash lamp module 706 includes the first flash lamp.Various components in mobile terminal 700 are coupled in one by bus system 705
It rises.It is understood that bus system 705 is for realizing the connection communication between these components.It includes data/address bus that bus system 705, which is removed,
Except, it further include power bus, control bus and status signal bus in addition.It, will be various in Fig. 7 but for the sake of clear explanation
Bus is all designated as bus system 705.
Wherein, user interface 703 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 702 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 702 of system and method described herein is intended to include but is not limited to these and arbitrarily its
It is suitble to the memory of type.
In some embodiments, memory 702 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 7021 and application program 7022.
Wherein, operating system 7021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 7022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 7022.
In embodiments of the present invention, by the program or instruction of calling memory 702 to store, specifically, can be application
The program or instruction stored in program 7022, wherein when processor 701 is used to detect flashlight open command, described in judgement
Whether the first flash lamp damages, and when first flash lamp does not damage, opens first flash lamp as flashlight, and
Every prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold;When first flash lamp
When temperature is more than preset threshold, reduce the driving current of first flash lamp according to the first preset step-length.
The method that the embodiments of the present invention disclose can be applied in processor 701, or be realized by processor 701.
Processor 701 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 701 or the instruction of software form.Above-mentioned processing
Device 701 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 702, processor 701 reads the information in memory 702, completes the above method in conjunction with its hardware.
It is understood that embodiments described herein can with hardware, software, firmware, middleware, microcode or its
Combination is to realize.For hardware realization, processing unit be may be implemented in one or more specific integrated circuit (Application
Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,
DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic
Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,
In controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, it can be realized herein by executing the module (such as process, function etc.) of function described herein
The technology.Software code is storable in memory and is executed by processor.Memory can in the processor or
It is realized outside processor.
Optionally, processor 701 is also used to: if first flash lamp damages, executing pre-set prompt operation.
Optionally, processor 701 is used for: when user interface 703 detects the first predetermined registration operation of user, according to second
Preset step-length increases the driving current of first flash lamp;When user interface 703 detects the second predetermined registration operation of user,
Reduce the driving current of first flash lamp according to third preset step-length.
Optionally, when the flash lamp module 706 further includes at least one second flash lamp, processor 701 is also used to:
When the temperature of first flash lamp is more than preset threshold, judge whether second flash lamp damages;If described second dodges
Light lamp does not damage, then controls first flash lamp and close, and controls one in second flash lamp and beat as flashlight
It opens.
Optionally, when the flash lamp module 706 further includes at least one second flash lamp, processor 701 is also used to:
When first flash lamp damage, judge whether second flash lamp damages;If second flash lamp does not damage, control
One made in second flash lamp opens as flashlight.
Optionally, when the flash lamp module 706 further includes at least one second flash lamp, if first flash lamp
For the light compensating lamp of the camera of the mobile terminal, then processor 701 is also used to: detecting that the mobile terminal is in mould of taking pictures
When formula, judge whether second flash lamp damages;If second flash lamp does not damage, control in second flash lamp
One as flashlight open.
Optionally, processor 701 is also used to: if second flash lamp damages, executing pre-set prompt operation.
Optionally, for processor 701 every prefixed time interval, whether the temperature for detecting first flash lamp is more than pre-
If when threshold value, being specifically used for: obtaining the first voltage value that first flash lamp connects the node voltage of moment, and record;Often
Every prefixed time interval, the second voltage value of the node voltage of first flash lamp is obtained;By the second voltage value and institute
The absolute value of the difference for stating the first voltage value is compared with predetermined voltage threshold;If the second voltage value and the first voltage
The absolute value of the difference of value is greater than the predetermined voltage threshold, it is determined that the temperature of first flash lamp is more than preset threshold;If
The absolute value of the difference of the second voltage value and the first voltage value is less than or equal to the predetermined voltage threshold, it is determined that institute
The temperature for stating the first flash lamp is less than preset threshold.
Mobile terminal 700 can be realized each process that mobile terminal is realized in previous embodiment, to avoid repeating, here
It repeats no more.
The mobile terminal 700 of the embodiment of the present invention can judge on mobile terminal when detecting flashlight open command
The first flash lamp whether damage, and then first flash lamp is opened when not damaging, and open every prefixed time interval judgement
Whether the temperature of the first flash lamp after opening is more than preset threshold, and then is detecting that reduction first is dodged when being more than preset threshold
The driving current of light lamp causes temperature excessively high to prevent the first flash lamp because long-time driving current is excessive, to effectively keep away
Exempt from the damage of flash lamp.Therefore, the embodiment of the present invention, can be after flash lamp be opened as flashlight, real-time monitoring flash of light
Whether the temperature of lamp is more than preset threshold, to neatly adjust the size of driving current, solves the flashlight of mobile terminal
After long-time use because temperature is excessively high to cause flash lamp to damage the problem of, the usage experience of user is improved.
Sixth embodiment
Fig. 8 is the structural schematic diagram of the mobile terminal of another embodiment of the present invention.Specifically, the mobile terminal in Fig. 8
800 can be mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) or vehicle mounted electric
Brain etc..
Mobile terminal 800 in Fig. 8 includes radio frequency (Radio Frequency, RF) circuit 810, memory 820, input
Unit 830, display unit 840, flash lamp module 850, processor 860, voicefrequency circuit 870, WiFi (Wireless
Fidelity) module 880 and power supply 890, wherein flash lamp module 850 includes the first flash lamp.
Wherein, input unit 830 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 800 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 831.Touch panel 831, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 831 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 831 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 860 is given again, and can be received order that processor 860 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 831.In addition to touch panel 831, input unit
830 can also include other input equipments 832, other input equipments 832 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 840 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 800.Display unit 840 may include display panel 841, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, O flash of light) configure display panel 841.
It should be noted that touch panel 831 can cover display panel 841, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 860 is sent to determine the type of touch event, is followed by subsequent processing device
860 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein, processor 860 is the control centre of mobile terminal 800, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or execute the software program and/or module that are stored in first memory 821, and call and deposit
The data in second memory 822 are stored up, the various functions and processing data of mobile terminal 800 are executed, thus to mobile terminal
800 carry out integral monitoring.Optionally, processor 860 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 821 in software program and/or module and/
Or the data in the second memory 822, so that processor 860 when detecting flashlight open command, judges described first
Whether flash lamp damages, and when first flash lamp does not damage, opens first flash lamp as flashlight, and every
Prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold;When the temperature of first flash lamp
When more than preset threshold, reduce the driving current of first flash lamp according to the first preset step-length.
Optionally, processor 860 is also used to: if first flash lamp damages, executing pre-set prompt operation.
Optionally, processor 860 is used for: when input unit 830 detects the first predetermined registration operation of user, according to second
Preset step-length increases the driving current of first flash lamp;When input unit 830 detects the second predetermined registration operation of user,
Reduce the driving current of first flash lamp according to third preset step-length.
Optionally, when the flash lamp module 850 further includes at least one second flash lamp, processor 860 is also used to:
When the temperature of first flash lamp is more than preset threshold, judge whether second flash lamp damages;If described second dodges
Light lamp does not damage, then controls first flash lamp and close, and controls one in second flash lamp and beat as flashlight
It opens.
Optionally, when the flash lamp module 850 further includes at least one second flash lamp, processor 860 is also used to:
When first flash lamp damage, judge whether second flash lamp damages;If second flash lamp does not damage, control
One made in second flash lamp opens as flashlight.
Optionally, when the flash lamp module 850 further includes at least one second flash lamp, if first flash lamp
For the light compensating lamp of the camera of the mobile terminal, then processor 860 is also used to: detecting that the mobile terminal is in mould of taking pictures
When formula, judge whether second flash lamp damages;If second flash lamp does not damage, control in second flash lamp
One as flashlight open.
Optionally, processor 860 is also used to: if second flash lamp damages, executing pre-set prompt operation.
Optionally, for processor 860 every prefixed time interval, whether the temperature for detecting first flash lamp is more than pre-
If when threshold value, being specifically used for: obtaining the first voltage value that first flash lamp connects the node voltage of moment, and record;Often
Every prefixed time interval, the second voltage value of the node voltage of first flash lamp is obtained;By the second voltage value and institute
The absolute value of the difference for stating the first voltage value is compared with predetermined voltage threshold;If the second voltage value and the first voltage
The absolute value of the difference of value is greater than the predetermined voltage threshold, it is determined that the temperature of first flash lamp is more than preset threshold;If
The absolute value of the difference of the second voltage value and the first voltage value is less than or equal to the predetermined voltage threshold, it is determined that institute
The temperature for stating the first flash lamp is less than preset threshold.Mobile terminal 800 can be realized mobile terminal in previous embodiment and realize
Each process, to avoid repeating, which is not described herein again.
The mobile terminal 800 of the embodiment of the present invention can judge on mobile terminal when detecting flashlight open command
The first flash lamp whether damage, and then first flash lamp is opened when not damaging, and open every prefixed time interval judgement
Whether the temperature of the first flash lamp after opening is more than preset threshold, and then is detecting that reduction first is dodged when being more than preset threshold
The driving current of light lamp causes temperature excessively high to prevent the first flash lamp because long-time driving current is excessive, to effectively keep away
Exempt from the damage of flash lamp.Therefore, the embodiment of the present invention, can be after flash lamp be opened as flashlight, real-time monitoring flash of light
Whether the temperature of lamp is more than preset threshold, to neatly adjust the size of driving current, solves the flashlight of mobile terminal
After long-time use because temperature is excessively high to cause flash lamp to damage the problem of, the usage experience of user is improved.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (10)
1. a kind of flash lamp control method of mobile terminal, be provided with the first flash lamp on the mobile terminal, it is described it is mobile eventually
At least one second flash lamp is additionally provided on end, which is characterized in that the described method includes:
When detecting flashlight open command, judge whether first flash lamp damages;
When first flash lamp does not damage, opened first flash lamp as flashlight;
Every prefixed time interval, whether the temperature for detecting first flash lamp is more than preset threshold;
When the temperature of first flash lamp is more than preset threshold, reduce first flash lamp according to the first preset step-length
Driving current;
The method also includes:
When the temperature of first flash lamp is more than preset threshold, judge whether second flash lamp damages;
If second flash lamp does not damage, controls first flash lamp and close, and control in second flash lamp
One is opened as flashlight;
Alternatively, judging whether second flash lamp damages when first flash lamp damage;
If second flash lamp does not damage, one controlled in second flash lamp opens as flashlight;
Alternatively, when the light compensating lamp for the camera that first flash lamp is the mobile terminal, and detect the mobile terminal
When in photographing mode, judge whether second flash lamp damages;
If second flash lamp does not damage, one controlled in second flash lamp opens as flashlight.
2. the method according to claim 1, wherein the method also includes:
If the first flash lamp damage executes pre-set prompt operation.
3., will be described the method according to claim 1, wherein described when first flash lamp does not damage
After the step of first flash lamp is opened as flashlight, the method also includes:
When detecting the first predetermined registration operation of user, increase the driving current of first flash lamp according to the second preset step-length;
When detecting the second predetermined registration operation of user, reduce the driving current of first flash lamp according to third preset step-length.
4. the method according to claim 1, wherein the method also includes:
If the second flash lamp damage executes pre-set prompt operation.
5. detection described first is dodged the method according to claim 1, wherein described every prefixed time interval
The step of whether temperature of light lamp is more than preset threshold, comprising:
The first voltage value that first flash lamp connects the node voltage of moment is obtained, and is recorded;
Every prefixed time interval, the second voltage value of the node voltage of first flash lamp is obtained;
The second voltage value is compared with the absolute value of the difference of the first voltage value with predetermined voltage threshold;
If the absolute value of the difference of the second voltage value and the first voltage value is greater than the predetermined voltage threshold, it is determined that institute
The temperature for stating the first flash lamp is more than preset threshold;
If the absolute value of the difference of the second voltage value and the first voltage value is less than or equal to the predetermined voltage threshold,
Determine that the temperature of first flash lamp is less than preset threshold.
6. a kind of mobile terminal, it is provided with the first flash lamp on the mobile terminal, is additionally provided at least on the mobile terminal
One the second flash lamp, which is characterized in that the mobile terminal further include:
First judgment module, for when detecting flashlight open command, judging whether first flash lamp damages;
First starting module, for when the first judgment module judges that first flash lamp does not damage, by described first
Flash lamp is opened as flashlight;
Detection module, for every prefixed time interval, whether the temperature for detecting first flash lamp to be more than preset threshold;
First execution module, when for detecting that the temperature of first flash lamp is more than preset threshold when the detection module,
Reduce the driving current of first flash lamp according to the first preset step-length;
The mobile terminal further include:
Second judgment module, when for detecting that the temperature of first flash lamp is more than preset threshold when the detection module,
Judge whether second flash lamp damages;
Third execution module controls described for when second judgment module judges that second flash lamp does not damage
One flash lamp is closed, and is controlled one in second flash lamp and opened as flashlight;
Alternatively, the mobile terminal further include: third judgment module, for judging that described first dodges when the first judgment module
When light lamp damages, judge whether second flash lamp damages;
4th execution module controls described for when the third judgment module judges that second flash lamp does not damage
One in two flash lamps is opened as flashlight;
Alternatively, the mobile terminal further include:
4th judgment module for the light compensating lamp when the camera that first flash lamp is the mobile terminal, and detects
When the mobile terminal is in photographing mode, judge whether second flash lamp damages;
5th execution module controls described for when the 4th judgment module judges that second flash lamp does not damage
One in two flash lamps is opened as flashlight.
7. mobile terminal according to claim 6, which is characterized in that the mobile terminal further include:
Second execution module, for when the first judgment module judges first flash lamp damage, execution to be preset
Prompt operation.
8. mobile terminal according to claim 6, which is characterized in that the mobile terminal further include:
First luminance adjustment module, for increasing institute according to the second preset step-length in the first predetermined registration operation for detecting user
State the driving current of the first flash lamp;
Second luminance adjustment module, for reducing institute according to third preset step-length in the second predetermined registration operation for detecting user
State the driving current of the first flash lamp.
9. mobile terminal according to claim 6, which is characterized in that the mobile terminal further include:
6th execution module, for when second flash lamp damage, executing pre-set prompt operation.
10. mobile terminal according to claim 6, which is characterized in that the detection module includes:
First acquisition unit, the first voltage value for connecting the node voltage of moment for obtaining first flash lamp, and record;
Second acquisition unit, for obtaining the second voltage of the node voltage of first flash lamp every prefixed time interval
Value;
Comparing unit, for by the absolute value of the difference of the second voltage value and the first voltage value and predetermined voltage threshold into
Row compares;
First determination unit, if being greater than for the absolute value of the difference of the second voltage value and the first voltage value described default
Voltage threshold, it is determined that the temperature of first flash lamp is more than preset threshold;
Second determination unit, if being less than or equal to institute for the absolute value of the difference of the second voltage value and the first voltage value
State predetermined voltage threshold, it is determined that the temperature of first flash lamp is less than preset threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611071816.9A CN106535434B (en) | 2016-11-29 | 2016-11-29 | A kind of flash lamp control method and mobile terminal of mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611071816.9A CN106535434B (en) | 2016-11-29 | 2016-11-29 | A kind of flash lamp control method and mobile terminal of mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106535434A CN106535434A (en) | 2017-03-22 |
CN106535434B true CN106535434B (en) | 2018-12-04 |
Family
ID=58353776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611071816.9A Active CN106535434B (en) | 2016-11-29 | 2016-11-29 | A kind of flash lamp control method and mobile terminal of mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106535434B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277386B (en) * | 2017-06-23 | 2020-01-17 | Oppo广东移动通信有限公司 | Method for reducing temperature rise, computer readable storage medium and mobile terminal |
CN108124063B (en) * | 2017-12-26 | 2020-12-29 | 上海展扬通信技术有限公司 | Prompting method and related equipment |
CN108650411B (en) * | 2018-04-23 | 2020-11-06 | Oppo广东移动通信有限公司 | Flash lamp control method, terminal and computer storage medium |
CN109068456B (en) * | 2018-06-29 | 2019-12-31 | Oppo(重庆)智能科技有限公司 | Flashlight control method, flashlight control device, terminal and storage medium |
CN112714212B (en) * | 2019-10-25 | 2024-03-15 | 环鸿电子(昆山)有限公司 | Flashlight mode control method for flashlight of mobile phone |
CN112234704B (en) * | 2020-10-12 | 2022-08-02 | 维沃移动通信有限公司 | Flash lamp power supply switching circuit, flash lamp control method and electronic equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103595842A (en) * | 2013-11-13 | 2014-02-19 | 广东欧珀移动通信有限公司 | Method for adjusting illuminating brightness of flashlight serving as electric torch and mobile terminal |
CN103607822A (en) * | 2013-11-25 | 2014-02-26 | 广东欧珀移动通信有限公司 | Over-temperature protection method and device of flashlight of terminal |
CN103873684A (en) * | 2014-02-27 | 2014-06-18 | 小米科技有限责任公司 | Application method and device of flashlight |
WO2015154531A1 (en) * | 2014-08-18 | 2015-10-15 | 中兴通讯股份有限公司 | Method and device for adjusting illumination brightness, illumination method and illumination device |
CN105373208A (en) * | 2015-09-30 | 2016-03-02 | 维沃移动通信有限公司 | Mobile terminal |
CN105554991A (en) * | 2016-03-05 | 2016-05-04 | 上海斐讯数据通信技术有限公司 | Method for enhancing brightness of flashlight and intelligent terminal |
CN105824344A (en) * | 2015-08-31 | 2016-08-03 | 维沃移动通信有限公司 | Current adjusting method and terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN204374571U (en) * | 2015-01-15 | 2015-06-03 | 张学钦 | A kind of two flick of lamp lamp control system |
CN105142280B (en) * | 2015-08-28 | 2018-03-02 | 昂赛微电子(上海)有限公司 | Flash lamp dims driving current control circuit and control method |
-
2016
- 2016-11-29 CN CN201611071816.9A patent/CN106535434B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103595842A (en) * | 2013-11-13 | 2014-02-19 | 广东欧珀移动通信有限公司 | Method for adjusting illuminating brightness of flashlight serving as electric torch and mobile terminal |
CN103607822A (en) * | 2013-11-25 | 2014-02-26 | 广东欧珀移动通信有限公司 | Over-temperature protection method and device of flashlight of terminal |
CN103873684A (en) * | 2014-02-27 | 2014-06-18 | 小米科技有限责任公司 | Application method and device of flashlight |
WO2015154531A1 (en) * | 2014-08-18 | 2015-10-15 | 中兴通讯股份有限公司 | Method and device for adjusting illumination brightness, illumination method and illumination device |
CN105824344A (en) * | 2015-08-31 | 2016-08-03 | 维沃移动通信有限公司 | Current adjusting method and terminal |
CN105373208A (en) * | 2015-09-30 | 2016-03-02 | 维沃移动通信有限公司 | Mobile terminal |
CN105554991A (en) * | 2016-03-05 | 2016-05-04 | 上海斐讯数据通信技术有限公司 | Method for enhancing brightness of flashlight and intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106535434A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106535434B (en) | A kind of flash lamp control method and mobile terminal of mobile terminal | |
CN106843739B (en) | A kind of display control method and mobile terminal of mobile terminal | |
CN106131341B (en) | A kind of photographic method and mobile terminal | |
CN106844265B (en) | A kind of control method and mobile terminal of general-purpose serial bus USB interface | |
CN106648416B (en) | A kind of the starting method and mobile terminal of application | |
CN106909289B (en) | A kind of operating method and mobile terminal of application controls | |
CN106547358B (en) | A kind of display methods and terminal of terminal time information | |
CN106126013A (en) | A kind of application management method and mobile terminal | |
CN106354303B (en) | A kind of photographic method and mobile terminal of mobile terminal | |
CN105893130B (en) | A kind of processing method and mobile terminal of application program for mobile terminal | |
CN106959797B (en) | A kind of setting method and mobile terminal notifying footmark | |
CN106293214B (en) | A kind of method and mobile terminal of illumination | |
CN106648382B (en) | A kind of picture browsing method and mobile terminal | |
CN106657806B (en) | A kind of exposure method and mobile terminal | |
CN106791021B (en) | A kind of control method and mobile terminal of flash lamp | |
CN108268388B (en) | A kind of Type-C interface protective circuit and method, mobile terminal | |
CN106231187A (en) | A kind of method shooting image and mobile terminal | |
CN106406741B (en) | A kind of operation processing method and mobile terminal of mobile terminal | |
CN108595074A (en) | Status bar operating method, device and computer readable storage medium | |
CN106775322B (en) | A kind of method preventing virtual key false triggering and mobile terminal | |
CN106250021A (en) | A kind of control method taken pictures and mobile terminal | |
CN107071264A (en) | A kind of image resolution ratio method of adjustment and mobile terminal | |
CN107045295B (en) | A kind of control method and mobile terminal of mobile terminal | |
CN108833625A (en) | sensor control circuit and electronic device | |
CN105930089B (en) | A kind of method and mobile terminal switching mobile terminal display interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |