CN105744699A - Method, apparatus and device for controlling illuminating lamps - Google Patents

Method, apparatus and device for controlling illuminating lamps Download PDF

Info

Publication number
CN105744699A
CN105744699A CN201410756814.8A CN201410756814A CN105744699A CN 105744699 A CN105744699 A CN 105744699A CN 201410756814 A CN201410756814 A CN 201410756814A CN 105744699 A CN105744699 A CN 105744699A
Authority
CN
China
Prior art keywords
brightness
illumination
value
illuminating lamp
terminal
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
CN201410756814.8A
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201410756814.8A priority Critical patent/CN105744699A/en
Publication of CN105744699A publication Critical patent/CN105744699A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The disclosure relates to a method, apparatus and device for controlling illuminating lamps. The method comprises following steps: when illuminating lamps of a terminal are in an on-state, detecting the luminance value in the current environment of the terminal in real time or regularly; obtaining a first illuminating luminance value within an illuminating luminance range matching the luminance value of the current environment according to the corresponding relation between preset environment luminance values and the illuminating luminance range; controlling the illuminating lamps to illuminate at the first illuminating luminance value. By means of the method, no matter how high or how low of the luminance value of the current environment is, the terminal can always control the illuminating lamps to illuminate at an illuminating luminance value which is suitable for the terminal in the current environment. Compared with correlative technologies of illuminating with strong illumination intensity in dark environment, by means of the method, eye irritation due to strong illumination in dark environment can be avoided so that damage to users can be reduced.

Description

The control method of a kind of illuminating lamp, device and equipment
Technical field
It relates to field of computer technology, particularly relate to the control method of a kind of illuminating lamp, device and equipment.
Background technology
Along with the development of science and technology, current most of intelligent terminal are equipped with flashlight function, it is possible to constant brightness is illuminated.So, in dark surrounds, user can start the flashlight function of intelligent terminal so that intelligent terminal is illuminated.But, if brightness of illumination is relatively big, it is illuminated to bring sense of discomfort and the eyes of impaired user to user with relatively intense light irradiation suddenly, if things go on like this, it will bring bigger harm to user in dark surrounds.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides the control method of a kind of illuminating lamp, device and equipment.
First aspect according to disclosure embodiment, it is provided that the control method of a kind of illuminating lamp, is applied to terminal, and described method includes:
When the illuminating lamp in described terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;
According to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with described current environment matches, obtain the first brightness of illumination value;
Control described illuminating lamp to be illuminated with described first brightness of illumination value.
In conjunction with first aspect, in the first possible implementation of first aspect, the corresponding relation that the described brightness value according to environment is interval with brightness of illumination, obtains the first brightness of illumination value in the brightness of illumination interval that the brightness value with described current environment matches, including:
Obtain the first corresponding relation preset between ambient brightness value and brightness of illumination interval;
Searching the brightness of illumination corresponding with the brightness value of described current environment in described first corresponding relation interval, described brightness of illumination interval includes at least one brightness of illumination value;
A brightness of illumination value is selected and as described first brightness of illumination value from described brightness of illumination interval.
In conjunction with the first possible implementation of first aspect, in the implementation that first aspect the second is possible, described method also includes:
Obtain the dump energy that described terminal is current;
Obtain the target unit time power consumption corresponding with described first brightness of illumination value;
Sustainable illumination duration is calculated according to described dump energy and described target unit time power consumption;
Described terminal shows described sustainable illumination duration.
In conjunction with the implementation that first aspect the second is possible, in the third possible implementation of first aspect, the unit interval power consumption that the described first brightness of illumination value of described acquisition is corresponding, including:
Judge that whether described dump energy is less than default power threshold;
When described dump energy is less than described default power threshold, obtain the second corresponding relation preset between brightness of illumination value and unit interval power consumption;
Described second corresponding relation is searched the unit interval power consumption corresponding with described first brightness of illumination value and as described target unit time power consumption.
In conjunction with the implementation that first aspect the second is possible, in the 4th kind of possible implementation of first aspect, described method also includes:
Judge that whether described sustainable illumination duration is lower than preset duration;
When described sustainable illumination duration is lower than described preset duration, from described brightness of illumination interval, select the second brightness of illumination value lower than described first brightness of illumination value;Described brightness of illumination interval includes at least two brightness of illumination value;
Control described illuminating lamp to be illuminated with described second brightness of illumination value.
In conjunction with first aspect, in the 5th kind of possible implementation of first aspect, described method also includes:
Judge whether to receive the trigger action to the programmable button in described terminal;Described programmable button is the button of the volume for regulating described terminal or for regulating the button of the screen intensity of described terminal;
When receiving described trigger action, obtain the marking keys of described programmable button;
Obtain the 3rd corresponding relation between programmable button mark and brightness of illumination value regulated quantity;
The brightness of illumination value regulated quantity corresponding with the marking keys of described programmable button is searched from described 3rd corresponding relation;
According to described brightness of illumination value regulated quantity, the brightness of illumination value of described illuminating lamp is adjusted.
In conjunction with first aspect, in the 6th kind of possible implementation of first aspect, described method also includes:
Obtain the music frequency of described terminal current environment;
Obtain preset musical frequency and the 4th corresponding relation between flicker frequency;
Described 4th corresponding relation is searched the target glint frequency corresponding with the music frequency of described current environment;
Control described illuminating lamp to glimmer according to described target glint frequency.
In conjunction with first aspect, in the 7th kind of possible implementation of first aspect, described method also includes:
Detect the distance between target object and the described terminal that described illuminating lamp irradiates;
Judge that whether described distance is more than predeterminable range threshold value;
When described distance is more than described predeterminable range threshold value, controls described illuminating lamp and be illuminated with the irradiation area of the first preset shape;
When described distance is less than or equal to described predeterminable range threshold value, controls described illuminating lamp and be illuminated with the irradiation area of the second preset shape;
The area of the irradiation area of described first preset shape is less than the area of the irradiation area of described second preset shape.
Second aspect according to disclosure embodiment, it is provided that the control device of a kind of illuminating lamp, described device includes:
Ambient brightness value detection module, for when the illuminating lamp in terminal is in opening, in real time or the brightness value of terminal current environment described in periodic detection;
Brightness of illumination value acquisition module, for according to the corresponding relation preset between ambient brightness value and brightness of illumination interval, obtaining the first brightness of illumination value in the brightness of illumination interval that the brightness value with described current environment matches;
Control module, be used for controlling described illuminating lamp and be illuminated with described first brightness of illumination value.
In conjunction with second aspect, in the first possible implementation of second aspect, described brightness of illumination value acquisition module includes:
First corresponding relation acquiring unit, for obtaining the first corresponding relation between default ambient brightness value and brightness of illumination interval;
Brightness of illumination range lookup unit, interval for searching the brightness of illumination corresponding with the brightness value of described current environment in described first corresponding relation, described brightness of illumination interval includes at least one brightness of illumination value;
Brightness of illumination value selects unit, for selecting a brightness of illumination value from described brightness of illumination interval and as described first brightness of illumination value.
In conjunction with the first possible implementation of second aspect, in the implementation that second aspect the second is possible, described device also includes:
Dump energy acquisition module, for obtaining the dump energy that described terminal is current;
Power consumption acquisition module, for obtaining the target unit time power consumption corresponding with described first brightness of illumination value;
Computing module, for calculating sustainable illumination duration according to described dump energy and described target unit time power consumption;
Display module, for showing described sustainable illumination duration in described terminal.
In conjunction with the implementation that second aspect the second is possible, in the third possible implementation of second aspect, described power consumption acquisition module includes:
Judging unit, is used for judging that whether described dump energy is less than default power threshold;
Second corresponding relation acquiring unit, for when described dump energy is less than described default power threshold, obtaining the second corresponding relation preset between brightness of illumination value and unit interval power consumption;
Power consumption acquiring unit, for searching the unit interval power consumption corresponding with described first brightness of illumination value and as described target unit time power consumption in described second corresponding relation.
In conjunction with the implementation that second aspect the second is possible, in the 4th kind of possible implementation of second aspect, described device also includes:
First judge module, is used for judging that whether described sustainable illumination duration is lower than preset duration;
Brightness of illumination value selects module, for when described sustainable illumination duration is lower than described preset duration, selecting the second brightness of illumination value lower than described first brightness of illumination value from described brightness of illumination interval;Described brightness of illumination interval includes at least two brightness of illumination value;
Described control module is additionally operable to control described illuminating lamp and is illuminated with described second brightness of illumination value.
In conjunction with second aspect, in the 5th kind of possible implementation of second aspect, described device also includes:
Second judge module, receives the trigger action to the programmable button in described terminal for judging whether;Described programmable button is the button of the volume for regulating described terminal or for regulating the button of the screen intensity of described terminal;
Marking keys acquisition module, for when receiving described trigger action, obtaining the marking keys of described programmable button;
3rd corresponding relation acquisition module, for obtaining the 3rd corresponding relation between programmable button mark and brightness of illumination value regulated quantity;
Regulated quantity searches module, for searching the brightness of illumination value regulated quantity corresponding with the marking keys of described programmable button from described 3rd corresponding relation;
Adjustment module, for being adjusted the brightness of illumination value of described illuminating lamp according to described brightness of illumination value regulated quantity.
In conjunction with second aspect, in the 6th kind of possible implementation of second aspect, described device also includes:
Music frequency acquisition module, for obtaining the music frequency of described terminal current environment;
4th corresponding relation acquisition module, for that obtain preset musical frequency and the 4th corresponding relation between flicker frequency;
Target glint frequency search module, for searching the target glint frequency corresponding with the music frequency of described current environment in described 4th corresponding relation;
Described control module is additionally operable to control described illuminating lamp and glimmers according to described target glint frequency.
In conjunction with second aspect, in the 7th kind of possible implementation of second aspect, described device also includes:
Distance detection module, for detecting the distance between target object and the described terminal that described illuminating lamp irradiates;
3rd judge module, is used for judging that whether described distance is more than predeterminable range threshold value;
Described control module is additionally operable to, when described distance is more than described predeterminable range threshold value, control described illuminating lamp and be illuminated with the irradiation area of the first preset shape;And when described distance is less than or equal to described predeterminable range threshold value, controls described illuminating lamp and be illuminated with the irradiation area of the second preset shape;The area of the irradiation area of described first preset shape is less than the area of the irradiation area of described second preset shape.
The third aspect according to disclosure embodiment, it is provided that the control equipment of a kind of illuminating lamp, described equipment includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When the illuminating lamp in described terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;
According to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with described current environment matches, obtain the first brightness of illumination value;
Control described illuminating lamp to be illuminated with described first brightness of illumination value.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: when the illuminating lamp in described terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;According to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with described current environment matches, obtain the first brightness of illumination value;Control described illuminating lamp to be illuminated with described first brightness of illumination value.So, no matter the brightness value of terminal current environment is higher or relatively low, terminal can control illuminating lamp and be illuminated with the brightness of illumination value of the brightness value of suitable terminal current environment, it is illuminated with stronger intensity of illumination in dark surrounds compared to correlation technique, disclosure embodiment can avoid the illumination stronger in the dark surrounds stimulation to the eyes of user, reduces the infringement brought to user.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meets embodiments of the invention, and is used for explaining principles of the invention together with description.
Fig. 1 is the flow chart of the control method of a kind of illuminating lamp according to an exemplary embodiment.
Fig. 2 is the flow chart of the control method of a kind of illuminating lamp according to another exemplary embodiment.
Fig. 3 is the flow chart of the control method of a kind of illuminating lamp according to another exemplary embodiment.
Fig. 4 is the flow chart of the control method of a kind of illuminating lamp according to further example embodiment.
Fig. 5 is the flow chart of the control method of a kind of illuminating lamp according to further example embodiment.
Fig. 6 is the flow chart of the control method of a kind of illuminating lamp according to further example embodiment.
Fig. 7 is a kind of scene schematic diagram according to further example embodiment.
Fig. 8 is a kind of scene schematic diagram according to further example embodiment.
Fig. 9 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 10 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 11 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 12 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 13 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 14 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 15 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 16 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.
Figure 17 is the block diagram controlling equipment of a kind of illuminating lamp according to further example embodiment.
Detailed description of the invention
Here in detail exemplary embodiment being illustrated, its example representation is in the accompanying drawings.When as explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the present invention.On the contrary, they only with in appended claims describe in detail, the present invention some in the example of consistent apparatus and method.
Fig. 1 is the flow chart of the control method of a kind of illuminating lamp according to an exemplary embodiment, as it is shown in figure 1, the method is for, in terminal, comprising the following steps.
In step S101, when the illuminating lamp in terminal is in opening, in real time or the brightness value of periodic detection terminal current environment.
In the disclosed embodiments, it is possible to either directly through the brightness value of light sensor detection terminal current environment built-in in terminal;The light sensor that can also pass through to be arranged in terminal current environment detects the brightness value obtaining terminal current environment.
In a particular application, it is possible to detect the brightness value of terminal current environment at set time intervals, it is also possible at the brightness value of goal-selling time detecting terminal current environment.
Such as: prefixed time interval can be 5s, 15s, 30s, 1min or 3min etc., interval is relevant to the situation of change of terminal place environment, but prefixed time interval is more short, and the required electric energy consumed of brightness value of detection terminal current environment is more many, under normal circumstances, it is possible to be set to 30s.
The goal-selling time can be 19:00~24:00, or is 00:00~06:00, but along with seasonal variations, the night hours of every day is different, and therefore terminal can set the goal-selling time according to seasonal variations.
In step s 102, according to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with current environment matches, the first brightness of illumination value is obtained.
In the disclosed embodiments, the first corresponding relation preset between ambient brightness value and brightness of illumination interval is obtained;Searching the brightness of illumination corresponding with the brightness value of current environment in the first corresponding relation interval, this brightness of illumination interval includes at least one brightness of illumination value;A brightness of illumination value is selected and as described first brightness of illumination value from this brightness of illumination interval.
Wherein, in the brightness of illumination interval matched with the brightness value of current environment it is: be adapted under the brightness value of current environment, one interval of the brightness of illumination value composition that illuminating lamp is illuminated, this interval can include at least one value, for instance includes brightness of illumination value 2,3,4,5,6 and 7.
Namely, under the brightness value of current environment, when illuminating lamp is illuminated with the arbitrary brightness of illumination value in this brightness of illumination interval, user not only will not feel that brightness of illumination value is too low to the demand reaching user to brightness of illumination, makes user feel dazzling without because brightness of illumination value is too high.
In the disclosed embodiments, the first corresponding relation can be the corresponding relation that user is arranged in advance according to self hobby in terminal, it is also possible to for the general corresponding relation that technical staff is arranged in advance according to popular average hobby in terminal.
In the disclosed embodiments, for each record in the first corresponding relation, the brightness of illumination interval in this record is: the brightness of illumination interval matched with the ambient brightness value in this record.
Namely, when under current environment brightness value, illuminating lamp is illuminated with the arbitrary brightness of illumination value in this brightness of illumination interval, user not only will not feel that brightness of illumination value is too low to the demand reaching user to brightness of illumination, makes user feel dazzling without because brightness of illumination value is too high.
Such as, illustrate with the carrying out that the first corresponding relation is arranged for technical staff in advance according to popular hobby in terminal, but not as the restriction to disclosure protection domain.
When ambient brightness value is 2, may determine that being suitable for popular brightness of illumination interval is 2-7 by testing;When ambient brightness value is 3, may determine that being suitable for popular brightness of illumination interval is 7-12 by testing;When ambient brightness value is 4, may determine that being suitable for popular brightness of illumination interval is 12-16 by testing;When ambient brightness value is 5, may determine that being suitable for popular brightness of illumination interval is 16-18 by testing;When ambient brightness value is 6, may determine that being suitable for popular brightness of illumination interval is 18-24 by testing;When ambient brightness value is 7, may determine that being suitable for popular brightness of illumination interval is 24-27 by testing;When ambient brightness value is 8, may determine that being suitable for popular brightness of illumination interval is 27-30 by testing.The unit of aforementioned value is self-defining brill in terminal, but not common normal brightness unit, it addition, these self-defining brills can and common normal brightness unit between there is certain proportionate relationship.
Brightness of illumination interval corresponding for these ambient brightness value can be stored in the corresponding relation that ambient brightness value as shown in table 1 is interval with brightness of illumination by user.
Table 1
Ambient brightness value Brightness of illumination is interval
2 2-7
3 7-12
4 12-16
5 16-18
6 18-24
7 24-27
8 27-30
Wherein, can select to be in the interval middle brightness of illumination value of this brightness of illumination in the brightness of illumination interval obtained.Such as, in the 12-16 of brightness of illumination interval, it is possible to select to be in the interval middle brightness of illumination value 14 of this brightness of illumination.
In step s 103, control illuminating lamp to be illuminated with the first brightness of illumination value.
In this step, it is possible to input to the electric current of illuminating lamp and control illuminating lamp by controlling battery and be illuminated with the first brightness of illumination value.
Wherein it is possible to the corresponding relation obtained between pre-set current value and brightness of illumination value.Searching the current value corresponding with the first brightness of illumination value from above-mentioned corresponding relation, control battery exports, to illuminating lamp, the electric current that this current value is corresponding, is so illuminated with the first brightness of illumination value realizing control illuminating lamp.
In the disclosed embodiments, it is also possible to control illuminating lamp and continue to illuminate with the first brightness of illumination value.
In the embodiment shown in disclosure Fig. 1, when the illuminating lamp in described terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;According to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with described current environment matches, obtain the first brightness of illumination value;Control described illuminating lamp to be illuminated with described first brightness of illumination value.So, no matter the brightness value of terminal current environment is higher or relatively low, terminal can control illuminating lamp and be illuminated with the brightness of illumination value of the brightness value of suitable terminal current environment, it is illuminated with stronger intensity of illumination in dark surrounds compared to correlation technique, disclosure embodiment can avoid the illumination stronger in the dark surrounds stimulation to the eyes of user, reduces the infringement brought to user.
After terminal control illuminating lamp is illuminated with the first brightness of illumination value, can continue, at the display screen display illuminating lamp of terminal, the sustainable lighting hours that illuminates with the first brightness of illumination value, such user from the display screen of terminal just it can directly be seen that this sustainable lighting hours.
Wherein, in another embodiment of the disclosure, referring to Fig. 2, it is possible to show this sustainable lighting hours by following flow process.
In step s 201, the dump energy that terminal is current is obtained.
Wherein it is possible to obtain the battery total capacity of terminal from the operating system of terminal and current residual electricity accounts for the percentage ratio of battery total capacity, calculate, according to battery total capacity and this percentages, the dump energy that terminal is current;Or, it is also possible to from the operating system of terminal, directly obtain the dump energy that terminal is current.
In step S202, obtain the target unit time power consumption corresponding with the first brightness of illumination value.
In the disclosed embodiments, judge that whether this dump energy is less than default power threshold, when dump energy is less than default power threshold, obtain the second corresponding relation between locally stored brightness of illumination value and unit interval power consumption, from the second corresponding relation, obtain the target unit time power consumption corresponding with the first brightness of illumination value.
Wherein, when being illuminated with different brightness of illumination values, illuminating lamp lighting power different, therefore when being illuminated with different brightness of illumination values, illuminating lamp power consumption within the unit interval is different.
In the disclosed embodiments, technical staff calculated in advance can go out the unit interval power consumption that different brightness of illumination values is corresponding, then by each brightness of illumination value, and, the unit interval power consumption corresponding with each brightness of illumination value, is then respectively stored in the corresponding relation between unit interval power consumption and the brightness of illumination value of this locality.
nullSuch as,It is 0.01W that technical staff's calculated in advance goes out the unit interval power consumption of brightness of illumination value 5 correspondence,The unit interval power consumption of brightness of illumination value 6 correspondence is 0.02W,The unit interval power consumption of brightness of illumination value 7 correspondence is 0.03W,The unit interval power consumption of brightness of illumination value 8 correspondence is 0.04W,The unit interval power consumption of brightness of illumination value 9 correspondence is 0.05W,The unit interval power consumption of brightness of illumination value 10 correspondence is 0.06W,The unit interval power consumption of brightness of illumination value 11 correspondence is 0.07W,The unit interval power consumption of brightness of illumination value 12 correspondence is 0.08W,The unit interval power consumption of brightness of illumination value 13 correspondence is 0.09W,The unit interval power consumption of brightness of illumination value 14 correspondence is 0.095W etc.,Numerous to list herein.
Then, store it in respectively in the corresponding relation of unit interval power consumption as shown in table 2 and brightness of illumination value.
Table 2
Unit interval power consumption Brightness of illumination value
0.001 5
0.002 6
0.003 7
0.004 8
0.005 9
…… ……
0.013 25
…… ……
0.15 28
…… ……
In step S203, calculate sustainable illumination duration according to dump energy and target unit time power consumption.
In this step, it is possible to the unit interval power consumption of dump energy current for terminal Yu acquisition is carried out division arithmetic, if such that it is able to obtaining the sustainable illumination duration that illuminating lamp is illuminated on the basis of current dump energy according to the first brightness of illumination value.
In step S204, this sustainable illumination duration displayed on the terminals.
Wherein it is possible in this sustainable lighting hours of display screen display of terminal.
In the disclosed embodiments, terminal can every a fixing duration just to the sustainable lighting hours real-time update of display once.So, user sees the real-time sustainable lighting hours of illuminating lamp at any time.
For example, it is assumed that preset duration is 1 second, and the currently displaying sustainable lighting hours of terminal is 5 minutes.
When terminal starts the sustainable lighting hours showing 5 minutes, start timing, when timing duration reaches preset duration 1 second, currently displaying sustainable lighting hours is carried out subtraction in 1 second with preset duration in 5 minutes, obtain 4 minutes 59 seconds, then the sustainable lighting hours of the display screen display of terminal 4 minutes 59 seconds.
In the disclosed embodiments, after calculating the sustainable lighting hours that illuminating lamp is illuminated with the first brightness of illumination value, if sustainable lighting hours is shorter and the requirement of user cannot be met, referring to Fig. 3, it is possible to extend lighting hours as follows.
In step S301, it is judged that whether this sustainable illumination duration is lower than preset duration.
Wherein, preset duration is that user is arranged in advance in terminal, assume that user will through the section of one section of dark when walking at night, when this section walking, user needs to use illumination to carry out lamp illumination, and user is intended to pass through this section and at least needs 20 minutes, therefore user can arrange preset duration 20 minutes, 22 minutes or 25 minutes in terminal.
In this step, it is assumed that the sustainable lighting hours calculated is 15 minutes and preset duration is 20 minutes, then sustainable lighting hours 15 minutes lower than preset duration 20 minutes.Perform step S302.
When sustainable illumination duration is lower than preset duration, in step s 302, from above-mentioned brightness of illumination interval, the second brightness of illumination value lower than the first brightness of illumination value is selected.Otherwise, process ends.
Wherein, above-mentioned brightness of illumination interval includes at least two brightness of illumination value.
In the disclosed embodiments, it is possible in the brightness of illumination interval matched with the brightness value of current environment, select a minimum brightness of illumination value.
In step S303, control illuminating lamp and be illuminated with the second brightness of illumination value.
In this step, it is possible to input to the electric current of illuminating lamp and control illuminating lamp by controlling battery and be illuminated with the second brightness of illumination value.
Wherein it is possible to the corresponding relation obtained between pre-set current value and brightness of illumination value.The current value corresponding with the second brightness of illumination value is searched from above-mentioned corresponding relation;Control battery export, to illuminating lamp, the electric current that this current value is corresponding, so with realizes control illuminating lamp be illuminated with the second brightness of illumination value.
In the disclosed embodiments, not only match with the brightness value of terminal current environment when illuminating lamp is illuminated with the second brightness of illumination value, it is also possible to extend lighting hours to meet user's requirement to illumination duration.
When terminal is after display screen demonstrates sustainable lighting hours, user can see the sustainable lighting hours that illuminating lamp is illuminated with the first brightness of illumination value from the display screen of terminal, if feeling this sustainable lighting hours too short and user's requirement cannot being met, the brightness of illumination of all right manual adjustments illuminating lamp of user, the brightness of illumination of illuminating lamp is reduced, to improve the sustainable lighting hours of illuminating lamp.
In the another embodiment of the disclosure, referring to Fig. 4, the method also includes:
In step S401, it may be judged whether receive the trigger action to the programmable button in terminal.
Wherein, programmable button can be the button of the volume for regulating terminal, or for regulating the button of the screen intensity of terminal.
After illuminating lamp is illuminated with the first brightness of illumination value, if the user feels that the brightness of illumination of illuminating lamp is too high or too low, or thinking that lighting hours is too short, user can carry out the brightness of illumination of adjusting illuminating lamp by triggering programmable button.
Such as, when user thinks that the brightness of illumination of illuminating lamp is too high, user can in triggering terminal for reducing " V-" key of volume or for reducing " L-" key of screen intensity, reduce illuminating lamp brightness of illumination.Or, when user thinks that the brightness of illumination of illuminating lamp is too low, user can improve volume " V+ " key or for improving " L+ " key of screen intensity by being used in triggering terminal, improves illuminating lamp brightness of illumination.
When receiving this trigger action, in step S402, obtain the marking keys of programmable button.Otherwise, step S401 is returned.
It is being used for regulating in the button of volume of terminal, assume that the marking keys being used for improving the button of the volume of terminal is " V+ ", it is " V-" for reducing the marking keys of the button of the volume of terminal, it is " L+ " for improving the marking keys of the button of the screen intensity of terminal, and is " L-" for reducing the marking keys of the button of the screen intensity of terminal.
In step S403, obtain the 3rd corresponding relation between programmable button mark and brightness of illumination value regulated quantity.
Wherein, the 3rd corresponding relation is that technical staff sets in advance in terminal.
The regulated quantity of button comparison brightness-value different in programmable button is different.Generally, the button being used for improving the volume of terminal and screen intensity can be provided for improving the button of the brightness of illumination value of illuminating lamp by technical staff, and the button being used for reducing the volume of terminal and screen intensity is provided for reducing the button of the brightness of illumination value of illuminating lamp.
Such as, technical staff can carry out arranging as follows: triggers the button being once used for improving the volume of terminal and can improve the brightness of illumination value of 3 units, trigger the button being once used for improving the screen intensity of terminal and can improve the brightness of illumination value of 4 units, trigger the once button of volume for reducing terminal and can reduce the brightness of illumination value of 3 units, and trigger once button for reducing the screen intensity of terminal and can reduce the brightness of illumination value of 4 units.Then the marking keys of above-mentioned button and brightness of illumination value regulated quantity corresponding thereto are stored in corresponding relation as shown in table 3 below.
Table 3
Marking keys Brightness of illumination value regulated quantity
V+ +3
V- -3
L+ -4
L- -4
In step s 404, from the 3rd corresponding relation, the brightness of illumination value regulated quantity corresponding with the marking keys of programmable button is searched.
In step S405, according to this brightness of illumination value regulated quantity, the brightness of illumination value of illuminating lamp is adjusted.
When brightness of illumination value regulated quantity is "+3 ", the brightness of illumination value of illuminating lamp is increased by 3, when brightness of illumination value regulated quantity is "-3 ", the brightness of illumination value of illuminating lamp is reduced by 3.
Wherein it is possible to the brightness of illumination value of illuminating lamp is adjusted by the electric current inputing to illuminating lamp by controlling battery.
In this step, according to brightness of illumination value regulated quantity with when the brightness of illumination value of front lamp calculates the brightness of illumination value after regulating;Then obtain the corresponding relation between pre-set current value and brightness of illumination value, from above-mentioned corresponding relation, search the current value corresponding with the brightness of illumination value after adjustment;Control battery and export, to illuminating lamp, the electric current that this current value is corresponding, so to realize according to brightness of illumination value regulated quantity, the brightness of illumination value of illuminating lamp being adjusted.
In the disclosed embodiments, generally, programmable button is physical button and the surface being positioned at terminal.Such as, when terminal is mobile phone, the button for regulating mobile phone volume is generally placed at the side of terminal.So, when user thinks the brightness of illumination value of adjusting illuminating lamp, it is not necessary to enter into the brightness of illumination value of adjusting illuminating lamp in the APP of illuminating lamp, only need the programmable button on triggering terminal surface just can the brightness of illumination value of adjusting illuminating lamp, facilitate the operation of user.
In the scene that some are concrete, for instance: when gymnasium is watched concert or just dances in dance hall, user is likely to need repeatedly the illuminating lamp on hand switch mobile phone, to form a kind of light flash effect.But this mode, it is necessary to manually repeatedly pressing is for opening and closing the button of illuminating lamp for user, and it is very inconvenient to operate.For this, in the another embodiment of the disclosure, referring to Fig. 5, terminal can control illuminating lamp as follows and carry out blinking illumination.
In step S501, obtain the music frequency of terminal current environment.
Wherein, the terminal music by its built-in microphones terminal current environment, then pass through the speech recognition technology music to receiving and be analyzed obtaining the music frequency of its current environment.
In step S502, obtain preset musical frequency and the 4th corresponding relation between flicker frequency.
4th corresponding relation is user or technical staff's setting in terminal in advance.The flicker frequency of the illuminating lamp that different audio frequencies is corresponding is different, for instance, when music frequency is high time, the flicker frequency of illuminating lamp is high, and time music frequency is low, the flicker frequency of illuminating lamp is low.
In step S503, the 4th corresponding relation is searched the target glint frequency corresponding with the music frequency of current environment.
In step S504, control illuminating lamp and glimmer according to target glint frequency.
In the disclosed embodiments, terminal can control battery interval and repeatedly sends electric current to illuminating lamp and control to send the persistent period of electric current every time, glimmers according to the flicker frequency found realizing control illuminating lamp.
Such as, assume that flicker frequency is 2Hz, then terminal can control battery every 0.5 second to illuminating lamp send a duration be 0.1ms electric current, so, illuminating lamp just received primary current every 0.5 second, that is, carrying out a duration every 0.5 second is the illumination of 0.1ms, so can realize controlling illuminating lamp and glimmer according to the flicker frequency of 2Hz.
When opening when gymnasium that in concert or dance hall, people dance, on-the-spot music frequency can change along with the music moment, therefore, terminal can judge whether the music frequency of current environment changes the moment, once it is determined that the music frequency of current environment changes, then obtain the music frequency after change, from the 4th corresponding relation, search the flicker frequency corresponding with the music frequency after change, then control illuminating lamp and glimmer according to the flicker frequency corresponding with the music frequency after change.So, it is not necessary to user's manual operation illuminating lamp, flicker frequency when illuminating lamp can be made to be illuminated can be at every moment corresponding with the music frequency of terminal current environment, and improves the i.e. visual sense at scene.
At illuminating lamp when being illuminated, the light that illuminating lamp sends drops on and can produce subpoint, the irradiation area that region is illuminating lamp of these subpoints composition on target object on target object surface.Terminal, when controlling illuminating lamp and being illuminated, can detect the distance of terminal and target object, may then pass through following method control illuminating lamp and is illuminated with the irradiation area of this distance of optimum.
In the another embodiment of the disclosure, referring to Fig. 6, the method includes:
In step s 601, the distance between detection illuminating lamp irradiates target object and terminal.
Wherein, target object is the object that the irradiation area of illuminating lamp covers.
In the disclosed embodiments, terminal can pass through the region that the light of built-in photographic head detection illuminating lamp can cover, then pass through image analysis technology and extract target object from this region, detect the distance of target object and terminal again through the diastimeter of terminal built-in.
In step S602, it is judged that whether this distance is more than predeterminable range threshold value.
When this distance is more than predeterminable range threshold value, in step S603, control illuminating lamp and be illuminated with the irradiation area of the first preset shape.
When this distance is less than or equal to predeterminable range threshold value, in step s 604, control illuminating lamp to be illuminated with the irradiation area of the second preset shape.
Wherein, the area of the irradiation area of the first preset shape is less than the area of the irradiation area of the second preset shape.
When the intensity of the light that illuminating lamp sends and number are constant, irradiation area is more big, and the light intensity in unit irradiation area is more little;Irradiation area is more little, and the light intensity in unit irradiation area is more big, so, it is possible to adapt with irradiation distance by controlling the area of irradiation area.
In disclosure embodiment, when the intensity of the light that illuminating lamp sends and number are constant, if the spacing of terminal and target object is less than or equal to predeterminable range threshold value, can confirm that the close together between terminal and target object, in this case, user is acceptable, the brightness range being radiated on target object is bigger, even if the light being radiated on target object is less, namely the brightness that is irradiated on object is relatively low, but due to terminal and target object close together, user is still it will be clear that target object, therefore only need to sub-fraction light be radiated on target object without by the light full illumination of illuminating lamp to target object, otherwise can waste the light resource of illuminating lamp.
So, when the brightness of illumination value of illumination is constant, during close together between terminal and target object, irradiation light can be controlled be illuminated with the irradiation area that face is bigger, to expand range of exposures, so, user is possible not only to be clear that target object, it can also be seen that other objects around target object, improve light utilization and facilitate user and understand surrounding.
During close together between terminal and target object, irradiation light can be controlled relatively big with area and be shaped as the irradiation area of the first preset shape and be illuminated, first preset shape can be circular, so, illuminating lamp can be controlled the center of irradiation area is directed at target object, user is possible not only to be clearly seen that target object, it is also possible to understand surrounding.
Such as, as shown in Figure 7, terminal 1 can control illuminating lamp and be illuminated with circular irradiation area 2, and target object 3 is in circular irradiation area 2, and other parts of circular irradiation area 2 also covers other objects except target object 3 and around target object 3 or background.So, user is possible not only to be clear that target object 3, it is also possible to see other objects around target object 3 and background, so can make full use of the light resource of illuminating lamp.
If the spacing of terminal and target object is more than predeterminable range threshold value, what can confirm that between terminal and target object is distant, in this case, user is acceptable, the brightness range being radiated on target object is less, must work as the light being radiated on target object more time, namely when the brightness that is irradiated on object is higher, user just can be clear that target object, therefore, terminal needs control illuminating lamp to be radiated on target object by most of even all of illuminating ray.
So, terminal can control illuminating lamp and reduce irradiation area, to improve the brightness of unit irradiation area, and then the brightness being radiated on target object is increased, it is ensured that user can be clearly seen that target object.
During distant between terminal and target object, irradiation light can be controlled less with area and be shaped as the irradiation area of the second preset shape and be illuminated, second preset shape can be oval, so, the illuminating ray of illuminating lamp can be concentrated in a less irradiation area, and illuminating ray is radiated on target object, to improve the brightness being irradiated on object, it is ensured that user can be clearly seen that target object.
Such as, as shown in Figure 8, terminal 1 can control illuminating lamp and be illuminated with elliptical irradiated area 4, and target object 3 is in elliptical irradiated area 4, and so, user is just it will be clear that target object 3.
Further, in another embodiment of the disclosure, no matter terminal and the distance of target object are from more closely becoming farther out or relatively near from becoming farther out, all without changing the shape of the irradiation area of illuminating lamp, need to change the irradiation area area of illuminating lamp.
Fig. 9 is the block diagram controlling device of a kind of illuminating lamp according to further example embodiment.With reference to Fig. 9, this device includes ambient brightness value detection module 11, brightness of illumination value acquisition module 12 and control module 13.
When the illuminating lamp that ambient brightness value detection module 11 is configured as in terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;
Brightness of illumination value acquisition module 12 is configured to, according to the corresponding relation preset between ambient brightness value and brightness of illumination interval, obtain the first brightness of illumination value in the brightness of illumination interval that the brightness value with described current environment matches;
Control module 13 is configured to control described illuminating lamp and is illuminated with described first brightness of illumination value.
When the illuminating lamp in described terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;According to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with described current environment matches, obtain the first brightness of illumination value;Control described illuminating lamp to be illuminated with described first brightness of illumination value.So, no matter the brightness value of terminal current environment is higher or relatively low, terminal can control illuminating lamp and be illuminated with the brightness of illumination value of the brightness value of suitable terminal current environment, it is illuminated with stronger intensity of illumination in dark surrounds compared to correlation technique, disclosure embodiment can avoid the illumination stronger in the dark surrounds stimulation to the eyes of user, reduces the infringement brought to user.
Wherein, referring to Figure 10, brightness of illumination value acquisition module 12 includes: the first corresponding relation acquiring unit 121, and brightness of illumination range lookup unit 122 and brightness of illumination value select unit 123.
First corresponding relation acquiring unit 121 is configured to the first corresponding relation obtaining between default ambient brightness value and brightness of illumination interval;
Brightness of illumination range lookup unit 122 is configured in described first corresponding relation to search the brightness of illumination interval corresponding with the brightness value of described current environment, and described brightness of illumination interval includes at least one brightness of illumination value;
Brightness of illumination value selects unit 123 to be configured to from described brightness of illumination interval and selects a brightness of illumination value and as described first brightness of illumination value.
Further, referring to Figure 11, this device also includes: dump energy acquisition module 21, power consumption acquisition module 22, computing module 23 and display module 24.
Dump energy acquisition module 21 is configured to obtain the dump energy that described terminal is current;
Power consumption acquisition module 22 is configured to obtain the target unit time power consumption corresponding with described first brightness of illumination value;
Computing module 23 is configured to calculate sustainable illumination duration according to described dump energy and described target unit time power consumption;
Display module 24 is configured to show described sustainable illumination duration in described terminal.
Wherein, referring to Figure 12, power consumption acquisition module 22 includes: judging unit 221, the second corresponding relation acquiring unit 222 and power consumption acquiring unit 223.
Judging unit 221 is configured to judge that whether described dump energy is less than default power threshold;
When second corresponding relation acquiring unit 222 is configured as described dump energy less than described default power threshold, obtain the second corresponding relation preset between brightness of illumination value and unit interval power consumption;
Power consumption acquiring unit 223 is configured in described second corresponding relation to search the unit interval power consumption corresponding with described first brightness of illumination value and as described target unit time power consumption.
Further, referring to Figure 13, this device also includes: the first judge module 31, and brightness of illumination value selects module 32 and controls module 13.
First judge module 31 is configured to judge that whether described sustainable illumination duration is lower than preset duration;
When brightness of illumination value selects module 32 to be configured as described sustainable illumination duration lower than described preset duration, from described brightness of illumination interval, select the second brightness of illumination value lower than described first brightness of illumination value;Described brightness of illumination interval includes at least two brightness of illumination value;
Control module 13 is additionally configured to control described illuminating lamp and is illuminated with described second brightness of illumination value.
Further, referring to Figure 14, this device also includes: the second judge module 41, marking keys acquisition module 42, the 3rd corresponding relation acquisition module 43, and regulated quantity searches module 44 and adjustment module 45.
Second judge module 41 is configured to judge whether to receive the trigger action to the programmable button in described terminal;Described programmable button is the button of the volume for regulating described terminal or for regulating the button of the screen intensity of described terminal;
When marking keys acquisition module 42 is configured as receiving described trigger action, obtain the marking keys of described programmable button;
3rd corresponding relation acquisition module 43 is configured to obtain the 3rd corresponding relation between programmable button mark and brightness of illumination value regulated quantity;
Regulated quantity is searched module 44 and is configured to from described 3rd corresponding relation to search the brightness of illumination value regulated quantity corresponding with the marking keys of described programmable button;
Adjustment module 45 is configured to according to described brightness of illumination value regulated quantity, the brightness of illumination value of described illuminating lamp is adjusted.
Further, referring to Figure 15, this device also includes: music frequency acquisition module 51, the 4th corresponding relation acquisition module 52, target glint frequency search module 53 and control module 13.
Music frequency acquisition module 51 is configured to obtain the music frequency of described terminal current environment;
That 4th corresponding relation acquisition module 52 is configured to obtain preset musical frequency and the 4th corresponding relation between flicker frequency;
Target glint frequency search module 53 is configured in described 4th corresponding relation to search the target glint frequency corresponding with the music frequency of described current environment;
Control module 13 is additionally configured to control described illuminating lamp and glimmers according to described target glint frequency.
Further, referring to Figure 16, this device also includes: apart from detection module 61, the 3rd judge module 62 and control module 13.
Distance detection module 61 is configured to detect the distance between target object and the described terminal that described illuminating lamp irradiates;
3rd judge module 62 is configured to judge that whether described distance is more than predeterminable range threshold value;
Control module 13 to be additionally configured to, when described distance is more than described predeterminable range threshold value, control described illuminating lamp and be illuminated with the irradiation area of the first preset shape;And when described distance is less than or equal to described predeterminable range threshold value, controls described illuminating lamp and be illuminated with the irradiation area of the second preset shape;The area of the irradiation area of described first preset shape is less than the area of the irradiation area of described second preset shape.
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.
Figure 17 is the block diagram of the control equipment 800 of a kind of illuminating lamp according to further example embodiment.Such as, equipment 800 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, body-building equipment, personal digital assistant etc..
With reference to Figure 17, equipment 800 can include following one or more assembly: processes assembly 802, memorizer 804, power supply module 806, multimedia groupware 808, audio-frequency assembly 810, the interface 812 of input/output (I/O), sensor cluster 814, and communications component 816.
Process assembly 802 and generally control the integrated operation of equipment 800, such as with display, call, data communication, the operation that camera operation and record operation are associated.Process assembly 802 and can include one or more processor 820 to perform instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 802 can include one or more module, it is simple to what process between assembly 802 and other assemblies is mutual.Such as, process assembly 802 and can include multi-media module, with facilitate multimedia groupware 808 and process between assembly 802 mutual.
Memorizer 804 is configured to store various types of data to support the operation at equipment 800.The example of these data includes any application program for operation on equipment 800 or the instruction of method, contact data, telephone book data, message, picture, video etc..Memorizer 804 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 806 is equipment 800 provide electric power.Power supply module 806 can include power-supply management system, one or more power supplys, and other generate, manage and distribute, with for equipment 800, the assembly that electric power is associated.
Multimedia groupware 808 includes the screen providing an output interface between described equipment 800 and user.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen may be implemented as touch screen, to receive the input signal from user.Touch panel includes one or more touch sensor to sense the gesture on touch, slip and touch panel.Described touch sensor can not only sense the border of touch or sliding action, but also detects the persistent period relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 808 includes a front-facing camera and/or post-positioned pick-up head.When equipment 800 is in operator scheme, during such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 810 is configured to output and/or input audio signal.Such as, audio-frequency assembly 810 includes a mike (MIC), and when equipment 800 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is configured to receive external audio signal.The audio signal received can be further stored at memorizer 804 or send via communications component 816.In certain embodiments, audio-frequency assembly 810 also includes a speaker, is used for exporting audio signal.
I/O interface 812 provides interface for processing between assembly 802 and peripheral interface module, above-mentioned peripheral interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: home button, volume button, startup button and locking press button.
Sensor cluster 814 includes one or more sensor, for providing the state estimation of various aspects for equipment 800.Such as, what sensor cluster 814 can detect equipment 800 opens/closed mode, the relative localization of assembly, such as described assembly is display and the keypad of equipment 800, sensor cluster 814 can also detect equipment 800 or the position change of 800 1 assemblies of equipment, the presence or absence that user contacts with equipment 800, the variations in temperature of equipment 800 orientation or acceleration/deceleration and equipment 800.Sensor cluster 814 can include proximity transducer, is configured to when not having any physical contact object near detection.Sensor cluster 814 can also include optical sensor, such as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor cluster 814 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 816 is configured to facilitate between equipment 800 and other equipment the communication of wired or wireless mode.Equipment 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 816 receives the broadcast singal or the broadcast related information that manage system from external broadcasting via broadcast channel.In one exemplary embodiment, described communications component 816 also includes near-field communication (NFC) module, to promote junction service.Such as, can based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, equipment 800 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, is used for performing said method.
In the exemplary embodiment, additionally providing a kind of non-transitory computer-readable recording medium including instruction, for instance include the memorizer 804 of instruction, above-mentioned instruction can have been performed said method by the processor 820 of equipment 800.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of equipment 800 so that equipment 800 is able to carry out the control method of a kind of illuminating lamp, and described method includes:
When the illuminating lamp in terminal is in opening, real-time or regularly real-time or terminal current environment described in periodic detection brightness value;
The corresponding relation that brightness value according to environment is interval with brightness of illumination, obtains the first brightness of illumination value in the brightness of illumination interval that the brightness value with described current environment matches;
Control described illuminating lamp to be illuminated with described first brightness of illumination value.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to other embodiment of the present invention.The application is intended to any modification of the present invention, purposes or adaptations, and these modification, purposes or adaptations are followed the general principle of the present invention and include the undocumented known general knowledge in the art of the disclosure or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the present invention and spirit are pointed out by claim below.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and various amendment and change can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (17)

1. a control method for illuminating lamp, is applied to terminal, it is characterised in that described method includes:
When the illuminating lamp in described terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;
According to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with described current environment matches, obtain the first brightness of illumination value;
Control described illuminating lamp to be illuminated with described first brightness of illumination value.
2. method according to claim 1, it is characterised in that described basis presets the corresponding relation between ambient brightness value and brightness of illumination interval, obtains the first brightness of illumination value in the brightness of illumination interval that the brightness value with described current environment matches, including:
Obtain the first corresponding relation preset between ambient brightness value and brightness of illumination interval;
Searching the brightness of illumination corresponding with the brightness value of described current environment in described first corresponding relation interval, described brightness of illumination interval includes at least one brightness of illumination value;
A brightness of illumination value is selected and as described first brightness of illumination value from described brightness of illumination interval.
3. method according to claim 2, it is characterised in that described method also includes:
Obtain the dump energy that described terminal is current;
Obtain the target unit time power consumption corresponding with described first brightness of illumination value;
Sustainable illumination duration is calculated according to described dump energy and described target unit time power consumption;
Described terminal shows described sustainable illumination duration.
4. method according to claim 3, it is characterised in that the target unit time power consumption that described acquisition is corresponding with described first brightness of illumination value, including:
Judge that whether described dump energy is less than default power threshold;
When described dump energy is less than described default power threshold, obtain the second corresponding relation preset between brightness of illumination value and unit interval power consumption;
Described second corresponding relation is searched the unit interval power consumption corresponding with described first brightness of illumination value and as described target unit time power consumption.
5. method according to claim 3, it is characterised in that described method also includes:
Judge that whether described sustainable illumination duration is lower than preset duration;
When described sustainable illumination duration is lower than described preset duration, from described brightness of illumination interval, select the second brightness of illumination value lower than described first brightness of illumination value;Described brightness of illumination interval includes at least two brightness of illumination value;
Control described illuminating lamp to be illuminated with described second brightness of illumination value.
6. method according to claim 1, it is characterised in that described method also includes:
Judge whether to receive the trigger action to the programmable button in described terminal;Described programmable button is the button of the volume for regulating described terminal or for regulating the button of the screen intensity of described terminal;
When receiving described trigger action, obtain the marking keys of described programmable button;
Obtain the 3rd corresponding relation between programmable button mark and brightness of illumination value regulated quantity;
The brightness of illumination value regulated quantity corresponding with the marking keys of described programmable button is searched from described 3rd corresponding relation;
According to described brightness of illumination value regulated quantity, the brightness of illumination value of described illuminating lamp is adjusted.
7. method according to claim 1, it is characterised in that described method also includes:
Obtain the music frequency of described terminal current environment;
Obtain preset musical frequency and the 4th corresponding relation between flicker frequency;
Described 4th corresponding relation is searched the target glint frequency corresponding with the music frequency of described current environment;
Control described illuminating lamp to glimmer according to described target glint frequency.
8. method according to claim 1, it is characterised in that described method also includes:
Detect the distance between target object and the described terminal that described illuminating lamp irradiates;
Judge that whether described distance is more than predeterminable range threshold value;
When described distance is more than described predeterminable range threshold value, controls described illuminating lamp and be illuminated with the irradiation area of the first preset shape;
When described distance is less than or equal to described predeterminable range threshold value, controls described illuminating lamp and be illuminated with the irradiation area of the second preset shape;
The area of the irradiation area of described first preset shape is less than the area of the irradiation area of described second preset shape.
9. the control device of an illuminating lamp, it is characterised in that described device includes:
Ambient brightness value detection module, for when the illuminating lamp in terminal is in opening, in real time or the brightness value of terminal current environment described in periodic detection;
Brightness of illumination value acquisition module, for according to the corresponding relation preset between ambient brightness value and brightness of illumination interval, obtaining the first brightness of illumination value in the brightness of illumination interval that the brightness value with described current environment matches;
Control module, be used for controlling described illuminating lamp and be illuminated with described first brightness of illumination value.
10. device according to claim 9, it is characterised in that described brightness of illumination value acquisition module includes:
First corresponding relation acquiring unit, for obtaining the first corresponding relation between default ambient brightness value and brightness of illumination interval;
Brightness of illumination range lookup unit, interval for searching the brightness of illumination corresponding with the brightness value of described current environment in described first corresponding relation, described brightness of illumination interval includes at least one brightness of illumination value;
Brightness of illumination value selects unit, for selecting a brightness of illumination value from described brightness of illumination interval and as described first brightness of illumination value.
11. device according to claim 10, it is characterised in that described device also includes:
Dump energy acquisition module, for obtaining the dump energy that described terminal is current;
Power consumption acquisition module, for obtaining the target unit time power consumption corresponding with described first brightness of illumination value;
Computing module, for calculating sustainable illumination duration according to described dump energy and described target unit time power consumption;
Display module, for showing described sustainable illumination duration in described terminal.
12. method according to claim 11, it is characterised in that described power consumption acquisition module includes:
Judging unit, is used for judging that whether described dump energy is less than default power threshold;
Second corresponding relation acquiring unit, for when described dump energy is less than described default power threshold, obtaining the second corresponding relation preset between brightness of illumination value and unit interval power consumption;
Power consumption acquiring unit, for searching the unit interval power consumption corresponding with described first brightness of illumination value and as described target unit time power consumption in described second corresponding relation.
13. device according to claim 11, it is characterised in that described device also includes:
First judge module, is used for judging that whether described sustainable illumination duration is lower than preset duration;
Brightness of illumination value selects module, for when described sustainable illumination duration is lower than described preset duration, selecting the second brightness of illumination value lower than described first brightness of illumination value from described brightness of illumination interval;Described brightness of illumination interval includes at least two brightness of illumination value;
Described control module is additionally operable to control described illuminating lamp and is illuminated with described second brightness of illumination value.
14. device according to claim 9, it is characterised in that described device also includes:
Second judge module, receives the trigger action to the programmable button in described terminal for judging whether;Described programmable button is the button of the volume for regulating described terminal or for regulating the button of the screen intensity of described terminal;
Marking keys acquisition module, for when receiving described trigger action, obtaining the marking keys of described programmable button;
3rd corresponding relation acquisition module, for obtaining the 3rd corresponding relation between programmable button mark and brightness of illumination value regulated quantity;
Regulated quantity searches module, for searching the brightness of illumination value regulated quantity corresponding with the marking keys of described programmable button from described 3rd corresponding relation;
Adjustment module, for being adjusted the brightness of illumination value of described illuminating lamp according to described brightness of illumination value regulated quantity.
15. device according to claim 9, it is characterised in that described device also includes:
Music frequency acquisition module, for obtaining the music frequency of described terminal current environment;
4th corresponding relation acquisition module, for that obtain preset musical frequency and the 4th corresponding relation between flicker frequency;
Target glint frequency search module, for searching the target glint frequency corresponding with the music frequency of described current environment in described 4th corresponding relation;
Described control module is additionally operable to control described illuminating lamp and glimmers according to described target glint frequency.
16. device according to claim 9, it is characterised in that described device also includes:
Distance detection module, for detecting the distance between target object and the described terminal that described illuminating lamp irradiates;
3rd judge module, is used for judging that whether described distance is more than predeterminable range threshold value;
Described control module is additionally operable to, when described distance is more than described predeterminable range threshold value, control described illuminating lamp and be illuminated with the irradiation area of the first preset shape;And when described distance is less than or equal to described predeterminable range threshold value, controls described illuminating lamp and be illuminated with the irradiation area of the second preset shape;The area of the irradiation area of described first preset shape is less than the area of the irradiation area of described second preset shape.
17. the control equipment of an illuminating lamp, it is characterised in that described equipment includes:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
When the illuminating lamp in described terminal is in opening, the real-time or brightness value of terminal current environment described in periodic detection;
According to the corresponding relation between default ambient brightness value and brightness of illumination interval, in the brightness of illumination interval that the brightness value with described current environment matches, obtain the first brightness of illumination value;
Control described illuminating lamp to be illuminated with described first brightness of illumination value.
CN201410756814.8A 2014-12-10 2014-12-10 Method, apparatus and device for controlling illuminating lamps Pending CN105744699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410756814.8A CN105744699A (en) 2014-12-10 2014-12-10 Method, apparatus and device for controlling illuminating lamps

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410756814.8A CN105744699A (en) 2014-12-10 2014-12-10 Method, apparatus and device for controlling illuminating lamps

Publications (1)

Publication Number Publication Date
CN105744699A true CN105744699A (en) 2016-07-06

Family

ID=56238857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410756814.8A Pending CN105744699A (en) 2014-12-10 2014-12-10 Method, apparatus and device for controlling illuminating lamps

Country Status (1)

Country Link
CN (1) CN105744699A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304551A (en) * 2016-08-18 2017-01-04 合肥信诺捷科节能服务有限公司 Intelligent illumination control device and illumination control method
CN106793376A (en) * 2016-11-30 2017-05-31 合肥亿福自动化科技有限公司 One kind automation lighting control system
CN107124792A (en) * 2017-05-20 2017-09-01 晋宝电气(浙江)有限公司 Bus light adjusting controller
CN107889324A (en) * 2017-10-27 2018-04-06 广东小天才科技有限公司 A kind of light adjusting method, device, audio-frequence player device and storage medium
WO2019041129A1 (en) * 2017-08-29 2019-03-07 深圳传音通讯有限公司 Method for controlling lamp on terminal, terminal and computer-readable medium
CN110248444A (en) * 2019-06-19 2019-09-17 上海闻泰电子科技有限公司 Flashlight brightness adjusting method, device, mobile terminal and storage medium
CN110291012A (en) * 2018-07-23 2019-09-27 深圳市大疆创新科技有限公司 Control method, device and control device, aircraft, the flight system of searchlight
CN110998406A (en) * 2017-07-12 2020-04-10 卡尔蔡司显微镜有限责任公司 Flicker in variable angle lighting
CN114096046A (en) * 2021-11-18 2022-02-25 航天信息股份有限公司 Automatic adjusting method, device and system for equipment illumination

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201022236Y (en) * 2007-03-09 2008-02-13 泰兴玩具(深圳)有限公司 Lamp controller used by charge doll
CN101197865A (en) * 2006-12-07 2008-06-11 乐金电子(中国)研究开发中心有限公司 Illumination method for mobile communication terminal and mobile communication terminal thereof
CN101520164A (en) * 2008-02-27 2009-09-02 毫厘精密工业股份有限公司 Variable optical lighting lamp
CN201821398U (en) * 2010-10-15 2011-05-04 深圳市盛讯达科技发展有限公司 Intelligent mobile phone illuminating lamp
CN102148532A (en) * 2010-02-10 2011-08-10 和硕联合科技股份有限公司 Power supply management method and portable electronic device applying same
CN102811289A (en) * 2012-08-15 2012-12-05 东莞宇龙通信科技有限公司 Terminal and power management method of same
CN103019567A (en) * 2012-12-17 2013-04-03 北京百度网讯科技有限公司 Touch screen mobile terminal and quick illumination-starting method and quick illumination-starting system thereof
US20130147855A1 (en) * 2011-12-09 2013-06-13 Hon Hai Precision Industry Co., Ltd. Electronic device having display and method for adjusting brightness of display
CN103313359A (en) * 2012-03-15 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Power saving method and power saving device for mobile terminal and mobile terminal
CN104020976A (en) * 2014-06-20 2014-09-03 深圳市中兴移动通信有限公司 Method and device for adjusting screen brightness

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197865A (en) * 2006-12-07 2008-06-11 乐金电子(中国)研究开发中心有限公司 Illumination method for mobile communication terminal and mobile communication terminal thereof
CN201022236Y (en) * 2007-03-09 2008-02-13 泰兴玩具(深圳)有限公司 Lamp controller used by charge doll
CN101520164A (en) * 2008-02-27 2009-09-02 毫厘精密工业股份有限公司 Variable optical lighting lamp
CN102148532A (en) * 2010-02-10 2011-08-10 和硕联合科技股份有限公司 Power supply management method and portable electronic device applying same
CN201821398U (en) * 2010-10-15 2011-05-04 深圳市盛讯达科技发展有限公司 Intelligent mobile phone illuminating lamp
US20130147855A1 (en) * 2011-12-09 2013-06-13 Hon Hai Precision Industry Co., Ltd. Electronic device having display and method for adjusting brightness of display
CN103313359A (en) * 2012-03-15 2013-09-18 宇龙计算机通信科技(深圳)有限公司 Power saving method and power saving device for mobile terminal and mobile terminal
CN102811289A (en) * 2012-08-15 2012-12-05 东莞宇龙通信科技有限公司 Terminal and power management method of same
CN103019567A (en) * 2012-12-17 2013-04-03 北京百度网讯科技有限公司 Touch screen mobile terminal and quick illumination-starting method and quick illumination-starting system thereof
CN104020976A (en) * 2014-06-20 2014-09-03 深圳市中兴移动通信有限公司 Method and device for adjusting screen brightness

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304551A (en) * 2016-08-18 2017-01-04 合肥信诺捷科节能服务有限公司 Intelligent illumination control device and illumination control method
CN106793376A (en) * 2016-11-30 2017-05-31 合肥亿福自动化科技有限公司 One kind automation lighting control system
CN107124792A (en) * 2017-05-20 2017-09-01 晋宝电气(浙江)有限公司 Bus light adjusting controller
CN110998406A (en) * 2017-07-12 2020-04-10 卡尔蔡司显微镜有限责任公司 Flicker in variable angle lighting
WO2019041129A1 (en) * 2017-08-29 2019-03-07 深圳传音通讯有限公司 Method for controlling lamp on terminal, terminal and computer-readable medium
CN107889324A (en) * 2017-10-27 2018-04-06 广东小天才科技有限公司 A kind of light adjusting method, device, audio-frequence player device and storage medium
CN110291012A (en) * 2018-07-23 2019-09-27 深圳市大疆创新科技有限公司 Control method, device and control device, aircraft, the flight system of searchlight
WO2020019137A1 (en) * 2018-07-23 2020-01-30 深圳市大疆创新科技有限公司 Control method and apparatus for searchlight, and control apparatus, aircraft and flight system
CN110291012B (en) * 2018-07-23 2022-01-07 深圳市大疆创新科技有限公司 Searchlight control method and device, searchlight control device, aircraft and flight system
CN114281106A (en) * 2018-07-23 2022-04-05 深圳市大疆创新科技有限公司 Searchlight control method and device, searchlight control device, aircraft and flight system
CN110248444A (en) * 2019-06-19 2019-09-17 上海闻泰电子科技有限公司 Flashlight brightness adjusting method, device, mobile terminal and storage medium
CN114096046A (en) * 2021-11-18 2022-02-25 航天信息股份有限公司 Automatic adjusting method, device and system for equipment illumination

Similar Documents

Publication Publication Date Title
CN105744699A (en) Method, apparatus and device for controlling illuminating lamps
CN104039040B (en) The control method and device of intelligent lamp
RU2642410C2 (en) Intelligent household appliance control method, device and system, mobile and wearable intelligent household appliances and apparatus
CN105392257B (en) Control the method and device of intelligent lamp
CN106527160B (en) Equipment control method and device
CN105208191B (en) Mode switching method and device
CN105744133B (en) Video light compensation method and device
CN105517277B (en) Lighting apparatus control method and device
CN107872576B (en) Alarm clock reminding method and device and computer readable storage medium
KR20160132967A (en) Method and device for controlling luminescence
CN105261346A (en) Backlight brightness adjusting method and device and terminal device
CN105162945A (en) Method and device for displaying information
CN104506772A (en) Method and device for regulating shooting parameters
CN107333170A (en) The control method and device of intelligent lamp
CN104159360A (en) Illumination control method, device and equipment
CN105528151A (en) Brightness adjusting method and apparatus
CN104735548A (en) Event prompting method and device
CN106302977A (en) The display packing of a kind of brightness regulating button and device
CN111813062A (en) Intelligent household equipment control method and device and storage medium
CN113973163A (en) Image acquisition module, electronic device, image acquisition method and storage medium
CN111128091A (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN106448104B (en) Equipment control method and device
CN105139808A (en) Method and device for adjusting backlight display region
WO2018082013A1 (en) Terminal control method and terminal
CN109711282A (en) Light adjusting method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706