CN107708271A - Illumination functions control method, device, mobile terminal and storage medium - Google Patents

Illumination functions control method, device, mobile terminal and storage medium Download PDF

Info

Publication number
CN107708271A
CN107708271A CN201710898224.2A CN201710898224A CN107708271A CN 107708271 A CN107708271 A CN 107708271A CN 201710898224 A CN201710898224 A CN 201710898224A CN 107708271 A CN107708271 A CN 107708271A
Authority
CN
China
Prior art keywords
screen
state
lighting unit
mobile terminal
environment induction
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.)
Granted
Application number
CN201710898224.2A
Other languages
Chinese (zh)
Other versions
CN107708271B (en
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.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201710898224.2A priority Critical patent/CN107708271B/en
Publication of CN107708271A publication Critical patent/CN107708271A/en
Application granted granted Critical
Publication of CN107708271B publication Critical patent/CN107708271B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • 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

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

Abstract

The invention provides a kind of illumination functions control method, device, mobile terminal and storage medium, applied to a mobile terminal, methods described includes:When the lighting unit for detecting the mobile terminal is in irradiating state, the current state of the screen of the mobile terminal is monitored;When the current state is lock state of screen, the environment induction distance of the mobile terminal is detected, and judges whether the environment induction distance is less than default distance threshold;And when determining environment induction distance and being less than the default distance threshold, close the lighting unit, the present invention passes through the monitoring of the current state and the detection and judgement of the environment induction distance, so that when the current state is the lock state of screen and environment induction distance is less than the default distance threshold, automatically the lighting unit is closed, and then prevents the damage caused by the lighting unit works long hours and the waste of electricity.

Description

Illumination functions control method, device, mobile terminal and storage medium
Technical field
The present invention relates to lighting technical field, more particularly to a kind of illumination functions control method, device, mobile terminal and deposit Storage media.
Background technology
With the development people's living standards continue to improve in epoch, the use of mobile terminal is also more and more frequent, mobile Terminal with its small volume, be convenient for carrying the advantages that liked by users, by setting lighting unit on mobile terminals, To meet the needs of user is to illumination functions, and during the use of lighting unit, illumination functions of the people to lighting unit Control method also increasingly pay attention to.
Existing illumination functions control method is instructed by receiving the Lighting control that user sends, to control lighting unit Working condition.
In existing illumination functions control method when opening due to opening by mistake or forgetting to close lighting unit, illumination can be caused single It is first in running order for a long time, and then easily cause the quick loss of mobile terminal electricity and reduce the use of lighting unit Life-span.
The content of the invention
Based on this, the purpose of the embodiment of the present invention be to provide it is a kind of when open by mistake open or forget to close lighting unit when it is automatic Illumination functions control method, device, mobile terminal and the storage medium closed.
In a first aspect, the invention provides a kind of illumination functions control method, applied to a mobile terminal, methods described bag Include:
When the lighting unit for detecting the mobile terminal is in irradiating state, the screen of the mobile terminal is monitored Current state;
When the current state is lock state of screen, the environment induction distance of the mobile terminal is detected, and judge Whether the environment induction distance is less than default distance threshold;And
When determining environment induction distance and being less than the default distance threshold, the lighting unit is closed.
Above-mentioned illumination functions control method, by monitoring the current state and judging whether the current state is described The design of lock state of screen, to determine whether to carry out the inspection of the environment induction distance, pass through the environment induction distance With the judgement of the default distance threshold, to determine whether to carry out the automatic closing of the lighting unit, in the prior art when When the lighting unit opens due to opening by mistake or forgets to close, the lighting unit can be in irradiating state for a long time, and then pass through Above-mentioned illumination functions control method, the monitoring of the current state and the detection and judgement of the environment induction distance are carried out, with Make when the current state is the lock state of screen and environment induction distance is less than the default distance threshold, Automatically the lighting unit is closed, and then prevents the damage caused by the lighting unit works long hours and electricity The waste of amount.
Further, it is described to judge that the step of whether the environment induction distance is less than default distance threshold includes:
Judge whether the environment induction distance is less than the default distance threshold, and the environment induction distance is less than Whether the duration of the default distance threshold is more than the first preset time.
Further, the step of current state of the monitoring screen includes:
Whether the current state for monitoring the screen from unlocking screen state switches to the lock state of screen.
Further, whether the current state of the monitoring screen from unlocking screen state switches to the screen lock The step of determining state includes:
Detect whether to receive screen state switching broadcast message;
If so, then continue to judge whether the screens switch broadcast message is screen locking broadcast message;
When it is the screen locking broadcast message to determine the screens switch broadcast message, then judge that the current state is The lock state of screen has been switched to from the unlocking screen state.
Further, it is described to judge that the step of whether the screens switch broadcast message is screen locking broadcast message includes:
Obtain the status indication value in screen state switching broadcast message, and judge the status indication value whether be Preset mark value;
If so, then judge that the screens switch broadcast message is the screen locking broadcast message.
Further, the step of closing lighting unit includes:
A prompt message is sent, to ask whether to close the lighting unit;
When receiving the confirmation in response to the prompt message, the lighting unit is closed;And
When receiving the refusal information in response to the prompt message, the lighting unit is not closed.
Further, it is described send a prompt message after, it is described closing the lighting unit the step of also include:
If do not receive any response message for the prompt message in the second preset time, institute is closed automatically State lighting unit.
Second aspect, the invention provides a kind of illumination functions control device, applied to mobile terminal, the mobile terminal On at least provided with a lighting unit, including:
Monitoring modular, it is described mobile whole for when detecting that any one lighting unit is in irradiating state, monitoring The current state of the screen at end;
Judge module, for when the monitoring module monitors to the current state are lock state of screen, detecting institute The environment induction distance of mobile terminal is stated, and judges whether the environment induction distance is less than default distance threshold;And
Closedown module, for determining the environment induction distance less than described default apart from threshold when the judge module During value, the lighting unit is closed.
Above-mentioned illumination functions control device, by the design of the monitoring modular, to determine whether to carry out the environment sense Should distance inspection, it is existing to determine whether to carry out the automatic closing of the lighting unit by the design of the judge module In technology when the lighting unit opens due to opening by mistake or forgets to close, the lighting unit can be in irradiating state for a long time, And then by above-mentioned illumination functions control device, carry out the monitoring of the current state and the detection of the environment induction distance and Judge, so that when the current state is less than the default distance for the lock state of screen and environment induction distance During threshold value, the lighting unit is closed automatically, and then prevented caused by the lighting unit works long hours Damage and the waste of electricity.
The third aspect, the invention provides a kind of mobile terminal, including memory and processor, the memory is used for Computer program is stored, the processor runs the computer program so that the mobile terminal performs above-mentioned illumination functions Control method.
Fourth aspect, the invention provides a kind of storage medium, is stored thereon with processor in above-mentioned mobile terminal and is transported Capable computer program.
Brief description of the drawings
Fig. 1 is the flow chart for the illumination functions control method that first embodiment of the invention provides;
Fig. 2 is the flow chart for the illumination functions control method that second embodiment of the invention provides;
Fig. 3 is step S11 specific steps flow charts in Fig. 2;
Fig. 4 is the structural representation for the illumination functions control device that third embodiment of the invention provides;
Fig. 5 is the structural representation for the illumination functions control device that fourth embodiment of the invention provides;
Essential element symbol description
Illumination functions control device 100,100a Monitoring modular 10
Judge module 20 Distance Judgment module 21
Detection module 22 Broadcast judge module 221
Screen locking judge module 222 Acquisition module 223
Closedown module 30 Sending module 31
First sub- closedown module 32 Second sub- closedown module 33
Stopping modular 40
Embodiment
For the ease of more fully understanding the present invention, the present invention is carried out further below in conjunction with related embodiment accompanying drawing Explain.Embodiments of the invention are given in accompanying drawing, but the present invention is not limited in above-mentioned preferred embodiment.Conversely, there is provided The purpose of these embodiments be in order that disclosure of the invention face more fully.
Referring to Fig. 1, the flow chart of the illumination functions control method provided for first embodiment of the invention, including step S10 to S30.
Step S10, when the lighting unit for detecting the mobile terminal is in irradiating state, monitor described mobile whole The current state of the screen at end;
Wherein, when the lighting unit is in irradiating state, the light higher by sending luminous intensity, so as to be operation The user of the mobile terminal provides illumination functions, detects whether the lighting unit is in the irradiating state by the way of It is to carry out voltage, current detecting or luminous intensity detection, the current state of the screen to include screen lock state and released state, The screen lock state is that system is automatically locked the screen when user does not operate to the mobile terminal for a long time State after fixed, or user send screen locking signal to control the screen to be locked by active so that the screen enters Enter the screen lock state, specifically, user send the screen locking signal mode can be by way of pressing screen locking key with The screen is controlled to be locked, or user carries out the hair of the screen locking signal by modes such as voice signal or touching signals Send, and the released state is in main control interface or the state at software application interface for the screen, is now representing user just Operation is being controlled to the screen.
Step S20, when the current state is lock state of screen, detect the environment induction of the mobile terminal away from From, and judge whether the environment induction distance is less than default distance threshold;
Wherein, by judging whether the environment induction distance is less than the design of the default distance threshold, to prevent When the lighting unit normal use, the mistake of the lighting unit is closed, such as when user opens the lighting unit Irradiation and when having carried out locking to the screen, the distance of the illumination unit and illuminated object be more than it is described it is default away from During from threshold value, stop the inspection of the environment induction distance.When it is the lock state of screen to detect the current state, The inductor on the mobile terminal is opened, to carry out the detection of the environment induction distance, the inductor uses distance perspective Device is answered, the environment induction distance is the distance between irradiation object that the inductor senses to the lighting unit, excellent Choosing, default distance threshold described in the present embodiment is 2cm.
When the step S20, which determines the environment induction distance, is less than the default distance threshold, step is performed S30。
Step S30, close the lighting unit.
Wherein, when the lighting unit is in irradiating state, the current state of the screen is the lock state of screen And the environment induction is closed the lighting unit, such as work as user apart from when being less than the default distance threshold The illumination functions of the lighting unit have been used, and have been forgotten after the lighting unit is closed directly by the mobile terminal When being placed in pocket or knapsack, detect that the screen is now screen lock state, and the lighting unit and illuminated object Distance be less than the default distance threshold, now directly the lighting unit is closed, and then prevents by institute The electricity of damage and the mobile terminal caused by lighting unit is opened for a long time is stated to damage.
The present embodiment is by monitoring the current state and judging whether the current state is the lock state of screen Design, to determine whether to carry out the inspection of the environment induction distance, by the environment induction distance with it is described default The judgement of distance threshold, to determine whether to carry out the automatic closing of the lighting unit, in the prior art when the lighting unit When opening due to opening by mistake or forget to close, the lighting unit can be in irradiating state for a long time, and then pass through above-mentioned illumination functions Control method, the monitoring of the current state and the detection and judgement of the environment induction distance are carried out, so that when described current State is the lock state of screen and the environment induction distance when being less than the default distance threshold, automatically by the photograph Bright unit is closed, and then prevents the damage caused by the lighting unit works long hours and the waste of electricity.
Referring to Fig. 2, the flow chart of the illumination functions control method provided for second embodiment of the invention, methods described bag Include step S11 to S61.
Step S11, when the lighting unit for detecting mobile terminal is in irradiating state, monitor the mobile terminal Whether the current state of screen from unlocking screen state switches to lock state of screen;
Wherein, by monitoring whether the current state from the unlocking screen state switches to the screen locking shape State, to judge whether the screen is locked, such as when the mobile terminal is placed pocket by user, after overlong time The screen can be locked automatically, now then judge that the current state has switched to the lock state of screen.
Referring to Fig. 3, in the step S11, whether the current state of the monitoring screen is from unlocking screen state The step of switching to the lock state of screen includes step S110 to S112.
Step S110, detect whether to receive screen state switching broadcast message;
Wherein, because when the state of the screen changes, the screen can send the screen state switching Broadcast message, and then by detecting whether that receiving the screen state switches broadcast message, to judge whether the screen is sent out State change has been given birth to, such as screen locking broadcast message can be sent when the screen has carried out screen locking, when the screen is understood Unblock broadcast message can be sent during lock.
When the S110, which is detected, have received the screen state switching broadcast message, step S111 is performed.
Step S111, judge whether the screens switch broadcast message is screen locking broadcast message;
Wherein, by judge the screens switch broadcast message whether be the screen locking broadcast message design, to prevent When the screens switch broadcast message is the unblock broadcast message, caused mistake is closed, it is preferred that judges whether it is institute Stating the mode of screen locking broadcast message is:
Obtain the status indication value in screen state switching broadcast message, and judge the status indication value whether be Preset mark value;
Wherein, the status indication value and different broadcast letter are equipped with broadcast message because the screen state switches The status indication value in breath differs, and then can be directly by the judgement of the status indication value, to judge the screen Whether tentiform state switching broadcast message is the screen locking broadcast message.
If so, then judge that the screens switch broadcast message is the screen locking broadcast message.
When it is the screen locking broadcast message that the step S111, which determines the screens switch broadcast message, step is performed S112。
Step S112, it is to have switched to the screen locking shape from the unlocking screen state to judge the current state State;
It should be understood that because the status indication value detected is equal to the preset mark value, therefore it is now described Screen is in released state.
When the step S11 monitors that the current state of the screen is to switch to the screen from the unlocking screen state During curtain lock-out state, step S21 is performed.
Step S21, detect the environment induction distance of the mobile terminal;
Wherein, by opening the inductor on the mobile terminal, to carry out the detection of the environment induction distance, pass through The detection of the environment induction distance, to prevent when the lighting unit normal use, the mistake of the lighting unit is closed Close, the inductor uses distance-sensor, and the environment induction distance is the irradiation object that the inductor senses to institute State the distance between lighting unit.
Step S31, judges whether the environment induction distance is less than the default distance threshold, and the environment induction Whether the duration that distance is less than the default distance threshold is more than the first preset time;
Wherein, the design of first preset time whether is more than by the duration, to prevent from working as the environment induction The mistake closing of the lighting unit caused by distance carries out of short duration be widely varied, such as when user carries out the photograph in corridor During the irradiation of bright unit, when being collided with pedestrian or illuminated object, now the environment induction distance is less than described default Distance threshold, but now user still need on the mobile terminal be in irradiating state under the lighting unit irradiation work( Can, therefore pass through the judgement of first preset time, it is therefore prevented that due to the lighting unit caused by above-mentioned similar scene Mistake closing, improve the accuracy of the illumination functions control method.Preferably, the default distance threshold is 2cm, First preset time is 5s, when the environment induction distance in 5s continuously less than 2cm when, then judge the environment induction Distance is less than the default distance threshold.
When the judged result of the step S31 is is, step S41 is performed.
Whether step S41, the current state for detecting the screen from the lock state of screen switch to the screen solution Lock status;
Wherein, by detecting whether the current state of the screen from the lock state of screen switches to the screen solution The design of lock status, to judge whether the screen has switched to released state from screen locking, when detecting the current of the screen State from the lock state of screen switch to the unlocking screen state when, then judge that now user needs to carry out the illumination The illumination of unit, such as when user is exactly to need to carry out irradiation closely, now the environment induction distance is less than described Default distance threshold, user can be by switching to released state, to prevent the irradiation single by the screen from screen lock state Member mistake closing, specifically, by the screen from screen lock state switch to released state used by method can be:
The switching of state is unlocked by way of sliding the screen by desired guiding trajectory;
The switching of state is unlocked by way of pressing default control button;
The switching of state is unlocked by way of sending default audio controls;
The switching of state is unlocked by sending the modes such as infrared signal or wireless signal.
When the judged result of the step S41 is is, step S51 is performed.
Step S51, stop the detection to the environment induction distance;
Wherein, by stopping the detection of the environment induction distance, to reduce the power consumption of the mobile terminal, and now not The closing of the lighting unit is carried out, and then also prevent and the mistake of the lighting unit is closed.
When the judged result of the step S41 is no, step S61 is performed.
Wherein, then judge that the current state of the screen does not switch to the unlocking screen shape from the lock state of screen State, then assert that user does not operate to the screen.
Step S61, a prompt message is sent, to ask whether to close the lighting unit;
Wherein, by sending the design of the prompt message, to prevent that user is exactly to need to be in screen locking in the screen State and the irradiation use for closely carrying out the lighting unit, the prompt message are used to prompt user that presently described illumination is single Member is in irradiating state, and then prevents due to maloperation or forget working long hours for the lighting unit caused by closing, The prompt message is voice messaging, vibration information or light flash information etc..
In addition, in the present embodiment after the prompt message is sent, the confirmation in response to the prompt message have received During information, the lighting unit is closed, such as after voice message is sent, has obtained the confirmation key response of user, then by institute Lighting unit is stated to be closed.
When receiving the refusal information in response to the prompt message, the lighting unit is not closed, such as when sending After voice message, when having obtained the refusal key response of user, the lighting unit is still controlled to be irradiated.
Further, it is described send a prompt message after, it is described closing the lighting unit the step of also include:
If do not receive any response message for the prompt message in the second preset time, institute is closed automatically State lighting unit.
Wherein, by the design of second preset time, to prevent from user from forgetting feeding back the prompt message or not connect The illumination unit caused by the prompt message is received to open for a long time, such as when the mobile terminal is prevented in knapsack, User can not timely have found when sending the prompt message herein, thus by judge in second preset time whether Any response message for the prompt message is received, when not receiving, closes the lighting unit, Jin Erfang automatically Stopped the long-time irradiation of the lighting unit, it is preferred that as long as it is appreciated that when not connect in second preset time Any response message is received, then carries out the closing of the illumination unit, second preset time is 1 minute, when the illumination Unit is in irradiating state, and the screen is in screen lock state and the environment induction distance is held in first preset time It is continuous when being less than the default distance threshold, send after the prompt message and do not receive to take office in second preset time When what is responded, then the lighting unit is closed automatically.
By the inquiry of the screen locking broadcast message in the present embodiment, to judge whether the screen is in screen lock state, Whether it is less than the default distance threshold by judging environment induction distance and continues setting for first preset time Meter, to judge that the environment induction distance is less than the default distance threshold, by sending the design of the prompt message, with Different responses according to obtaining automatically control the state of the lighting unit, and then improve the illumination functions control method Diversity, when the lighting unit due to maloperation or forget closing cause for a long time be in irradiating state when, the present embodiment meeting Automatically the lighting unit is closed, and then prevents damage and institute caused by the lighting unit works long hours State the waste of mobile terminal electricity.
Referring to Fig. 4, the structural representation of the illumination functions control device 100 provided for third embodiment of the invention, institute State illumination functions control device 100 and be applied to mobile terminal, at least provided with a lighting unit on the mobile terminal, and it is described Illumination functions control module 100 is electrically connected with the mobile terminal, each lighting unit, including:
Monitoring modular 10, detect that any one lighting unit is in irradiating state on the mobile terminal for working as When, the current state of the screen of the mobile terminal is monitored, detects whether the lighting unit uses in the irradiating state Mode be carry out voltage, current detecting or luminous intensity detection, be described when the lighting unit is in the irradiating state Mobile terminal provides illumination functions, and the current state of the screen includes screen lock state and released state, the screen locking shape State be when user for a long time the mobile terminal is not operated when, system the screen is locked automatically after shape State, or user send screen locking signal to control the screen to be locked by active so that the screen enters the lock Screen state, specifically, the mode that user sends the screen locking signal can be described to be controlled by way of pressing screen locking key Screen is locked, or user carries out the transmission of the screen locking signal by modes such as voice signal or touching signals, and described Released state is that the screen is in main control interface or the state at software application interface, now represents user to the screen Curtain is controlled operation.
Judge module 20, for when it is lock state of screen that the monitoring modular 10, which monitors the current state, examining The environment induction distance of the mobile terminal is surveyed, and judges whether the environment induction distance is less than default distance threshold, when When to detect the current state be the lock state of screen, the inductor on the mobile terminal is opened, with described in progress The detection of environment induction distance, the inductor use distance-sensor, and the environment induction distance senses for the inductor For the irradiation object arrived the distance between to the lighting unit, default distance threshold described in the present embodiment is 2cm.
Closedown module 30, for when the judge module 20 determine environment induction distance be less than it is described it is default away from During from threshold value, the lighting unit is closed.
The judge module 20 includes:
Distance Judgment module 21, for detecting and judging it is described default apart from threshold whether the environment induction distance is less than Value, and whether environment induction distance is more than the first preset time less than the duration of the default distance threshold, by opening The inductor on the mobile terminal is opened, to carry out the detection of the environment induction distance, the inductor should using distance perspective Device, the environment induction distance is the distance between irradiation object that the inductor senses to the lighting unit, described Default distance threshold is 2cm, and first preset time is 5s, when the environment induction distance in 5s continuously less than 2cm When, then it is described default apart from threshold to judge that the environment induction distance is less than.
Whether detection module 22, the current state for monitoring the screen from a unlocking screen state switch to the screen Curtain lock-out state.
The detection module 22 includes:
Judge module 221 is broadcasted, screen state switching broadcast message is received for detecting and judging whether;
Screen locking judge module 222, for the screen state switching broadcast be present when the broadcast judge module determines During information, judge whether the screens switch broadcast message is screen locking broadcast message.
When it is the screen locking broadcast message that the screen locking judge module 222, which determines the screens switch broadcast message, It is to have switched to the lock state of screen from the unlocking screen state then to judge the current state.
The screen locking judge module 222 includes:
Acquisition module 223, for obtaining the status indication value in the screen state switching broadcast message, and described in judgement Whether status indication value is preset mark value, and when the status indication value is the preset mark value, judges the screen It is the screen locking broadcast message to switch broadcast message.
The closedown module 30 includes:
Sending module 31, for sending a prompt message, to ask whether to close the lighting unit, the prompt message For prompting the presently described lighting unit of user to be in irradiating state, and then prevent caused by due to maloperation or forgetting closing The lighting unit works long hours, and the prompt message is voice messaging, vibration information or light flash information etc..
First sub- closedown module 32, for when receiving the confirmation in response to the prompt message, described in closing Lighting unit;When receiving the refusal information in response to the prompt message, the lighting unit is not closed, such as when sending After the prompt message, when have received the confirmation in response to the prompt message, the lighting unit is closed, such as when After sending voice message, the confirmation key response of user is obtained, then has been closed the lighting unit.
When receiving the refusal information in response to the prompt message, the lighting unit is not closed, such as when sending After voice message, when having obtained the refusal key response of user, the lighting unit is still controlled to be irradiated.
Second sub- closedown module 33, for not receiving any sound for the prompt message in the second preset time When answering information, the lighting unit is closed automatically, and second preset time is 1 minute, when the lighting unit is in irradiation State, the screen is in screen lock state and environment induction distance is less than institute less than the duration of the default distance threshold The first preset time is stated, when sending after the prompt message and not receiving any response in second preset time, then Automatically the lighting unit is closed.
Above-mentioned illumination functions control device 100, by the design of the monitoring modular 10, to determine whether to carry out the ring The inspection of border distance of reaction, by the design of the judge module 20, to determine whether to carry out the automatic pass of the lighting unit Close, by the design of the closedown module 30, the closing of the lighting unit can be automatically controlled, in the prior art when the illumination When unit opens due to opening by mistake or forgets to close, the lighting unit can be in irradiating state for a long time, and then pass through above-mentioned illumination Function control device 100, the monitoring of the current state and the detection and judgement of the environment induction distance are carried out, so as to work as institute When stating current state and being less than the default distance threshold for the lock state of screen and environment induction distance, automatic general The lighting unit is closed, and then prevents the wave of damage and electricity caused by the lighting unit works long hours Take.
Referring to Fig. 5, the illumination functions control device 100a provided for fourth embodiment of the invention structural representation, should The structure of fourth embodiment and 3rd embodiment is more or less the same, and its difference is, the control dress of illumination functions described in the present embodiment Putting 100a also includes:
Stopping modular 40, for described when detect the current state of the screen from the lock state of screen and switch to During unlocking screen state, stop the detection to the environment induction distance.
Before the present embodiment ought not carry out the closing of the lighting unit, if the stopping modular 40 detect it is described current State from the lock state of screen switch to the unlocking screen state when, then judge that now user needs the lighting unit Irradiation function, and then the detection for stopping the environment induction distance prevents the loss of the mobile terminal electricity, and now Still control the lighting unit to be irradiated, so as to prevent the mistake to the lighting unit to close, improve user's body Test.
The present embodiment additionally provides a kind of mobile terminal, including memory and processor, and the memory is used to store Computer program, the processor runs the computer program so that the mobile terminal performs above-mentioned illumination functions control Method.
The present embodiment additionally provides a kind of storage medium, is stored thereon with the meter that processor is run in above-mentioned mobile terminal Calculation machine program, the program upon execution, comprise the following steps:
When the lighting unit for detecting the mobile terminal is in irradiating state, the screen of the mobile terminal is monitored Current state;
When the current state is lock state of screen, the environment induction distance of the mobile terminal is detected, and judge Whether the environment induction distance is less than default distance threshold;And
When determining environment induction distance and being less than the default distance threshold, the lighting unit is closed.Institute The storage medium stated, such as:ROM/RAM, magnetic disc, CD etc..
Above embodiment described the technical principle of the present invention, the description is merely to explain the principles of the invention, and The limitation of the scope of the present invention can not be construed in any way.Based on explanation herein, those skilled in the art is not required to Other embodiments of the present invention can be associated by paying performing creative labour, and these modes fall within the present invention's In protection domain.

Claims (10)

  1. A kind of 1. illumination functions control method, applied to a mobile terminal, it is characterised in that methods described includes:
    When the lighting unit for detecting the mobile terminal is in irradiating state, monitor the mobile terminal screen work as Preceding state;
    When the current state is lock state of screen, the environment induction distance of the mobile terminal is detected, and described in judgement Whether environment induction distance is less than default distance threshold;And
    When determining environment induction distance and being less than the default distance threshold, the lighting unit is closed.
  2. 2. illumination functions control method according to claim 1, it is characterised in that described to judge the environment induction distance The step of whether being less than default distance threshold includes:
    Judge whether the environment induction distance is less than the default distance threshold, and environment induction distance is less than described Whether the duration of default distance threshold is more than the first preset time.
  3. 3. illumination functions control method according to claim 1, it is characterised in that the current shape of the monitoring screen The step of state, includes:
    Whether the current state for monitoring the screen from unlocking screen state switches to the lock state of screen.
  4. 4. illumination functions control method according to claim 3, it is characterised in that the current shape of the monitoring screen The step of whether state switches to the lock state of screen from unlocking screen state includes:
    Detect whether to receive screen state switching broadcast message;
    If so, then continue to judge whether the screens switch broadcast message is screen locking broadcast message;
    When it is the screen locking broadcast message to determine the screens switch broadcast message, then it is from institute to judge the current state State unlocking screen state and switch to the lock state of screen.
  5. 5. illumination functions control method according to claim 4, it is characterised in that described to judge the screens switch broadcast The step of whether information is screen locking broadcast message includes:
    The status indication value in the screen state switching broadcast message is obtained, and judges whether the status indication value is default Mark value;
    If so, then judge that the screens switch broadcast message is the screen locking broadcast message.
  6. 6. illumination functions control method according to claim 1, it is characterised in that the step for closing the lighting unit Suddenly include:
    A prompt message is sent, to ask whether to close the lighting unit;
    When receiving the confirmation in response to the prompt message, the lighting unit is closed;And
    When receiving the refusal information in response to the prompt message, the lighting unit is not closed.
  7. 7. illumination functions control method according to claim 6, it is characterised in that it is described send a prompt message it Afterwards, the step of closing lighting unit also includes:
    If do not receive any response message for the prompt message in the second preset time, the photograph is closed automatically Bright unit.
  8. 8. a kind of illumination functions control device, applied to mobile terminal, at least provided with a lighting unit on the mobile terminal, It is characterised in that it includes:
    Monitoring modular, for when detecting that any one lighting unit is in irradiating state, monitoring the mobile terminal The current state of screen;
    Judge module, for when the monitoring module monitors to the current state are lock state of screen, detecting the shifting The environment induction distance of dynamic terminal, and judge whether the environment induction distance is less than default distance threshold;And
    Closedown module, for being less than the default distance threshold when the judge module determines the environment induction distance When, close the lighting unit.
  9. 9. a kind of mobile terminal, it is characterised in that including memory and processor, the memory is used to store computer journey Sequence, the processor runs the computer program so that the mobile terminal is performed according to any one of claim 1 to 7 Illumination functions control method.
  10. 10. a kind of storage medium, it is characterised in that it is stored with processor in the mobile terminal described in claim 9 and run Computer program.
CN201710898224.2A 2017-09-28 2017-09-28 Lighting function control method and device, mobile terminal and storage medium Active CN107708271B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710898224.2A CN107708271B (en) 2017-09-28 2017-09-28 Lighting function control method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710898224.2A CN107708271B (en) 2017-09-28 2017-09-28 Lighting function control method and device, mobile terminal and storage medium

Publications (2)

Publication Number Publication Date
CN107708271A true CN107708271A (en) 2018-02-16
CN107708271B CN107708271B (en) 2020-10-23

Family

ID=61175105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710898224.2A Active CN107708271B (en) 2017-09-28 2017-09-28 Lighting function control method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN107708271B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327767A (en) * 2020-02-06 2020-06-23 Tcl移动通信科技(宁波)有限公司 Lighting device control method, system, storage medium and mobile terminal
CN111526432A (en) * 2020-04-26 2020-08-11 Oppo广东移动通信有限公司 Electronic device, control method thereof, computer device, and readable storage medium
CN112492085A (en) * 2020-11-18 2021-03-12 惠州Tcl移动通信有限公司 Mobile terminal and illumination control method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2143039Y (en) * 1992-10-08 1993-09-29 王海琼 Acousto-optic automatic-controlling delay energy-saving lamp cap
CN105245714A (en) * 2015-10-23 2016-01-13 上海斐讯数据通信技术有限公司 Proximity-sensor-based smartphone flash fast switching method and system
CN105245718A (en) * 2015-10-27 2016-01-13 广东欧珀移动通信有限公司 Control method and device of breathing lamp and mobile terminal
CN105282342A (en) * 2015-11-02 2016-01-27 广东欧珀移动通信有限公司 Mobile terminal control method and device
CN105472828A (en) * 2014-08-25 2016-04-06 小米科技有限责任公司 Sound control lamp control method, device and sound control lamp
CN105843392A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Screen control method and device of mobile terminal
CN106791065A (en) * 2016-12-14 2017-05-31 深圳铂睿智恒科技有限公司 A kind of method that mobile device and its finger touch control flashlight switch

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2143039Y (en) * 1992-10-08 1993-09-29 王海琼 Acousto-optic automatic-controlling delay energy-saving lamp cap
CN105472828A (en) * 2014-08-25 2016-04-06 小米科技有限责任公司 Sound control lamp control method, device and sound control lamp
CN105245714A (en) * 2015-10-23 2016-01-13 上海斐讯数据通信技术有限公司 Proximity-sensor-based smartphone flash fast switching method and system
CN105245718A (en) * 2015-10-27 2016-01-13 广东欧珀移动通信有限公司 Control method and device of breathing lamp and mobile terminal
CN105282342A (en) * 2015-11-02 2016-01-27 广东欧珀移动通信有限公司 Mobile terminal control method and device
CN105843392A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Screen control method and device of mobile terminal
CN106791065A (en) * 2016-12-14 2017-05-31 深圳铂睿智恒科技有限公司 A kind of method that mobile device and its finger touch control flashlight switch

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327767A (en) * 2020-02-06 2020-06-23 Tcl移动通信科技(宁波)有限公司 Lighting device control method, system, storage medium and mobile terminal
CN111526432A (en) * 2020-04-26 2020-08-11 Oppo广东移动通信有限公司 Electronic device, control method thereof, computer device, and readable storage medium
CN112492085A (en) * 2020-11-18 2021-03-12 惠州Tcl移动通信有限公司 Mobile terminal and illumination control method
CN112492085B (en) * 2020-11-18 2023-08-15 惠州Tcl移动通信有限公司 Mobile terminal and illumination control method

Also Published As

Publication number Publication date
CN107708271B (en) 2020-10-23

Similar Documents

Publication Publication Date Title
CN107708271A (en) Illumination functions control method, device, mobile terminal and storage medium
CN103488272B (en) Save method and the electronic equipment of power consumption
CN109625149A (en) The control method and electric vehicle of electric vehicle
RU173332U1 (en) DOOR LOCK
CN106919867A (en) Mobile terminal and its shutdown control method and device
CN105405189A (en) Door lock and control method thereof
CN106453903A (en) Mobile terminal, method and system for automatically unlocking or lighting screen of mobile terminal
CN108185891A (en) The control method and device of intelligent closestool
CN106953969A (en) The screen control method and device of mobile terminal
CN105306985B (en) A kind of video playing interface intelligent locking unlocking method, system and mobile terminal
CN110350645B (en) Charging control method and device for intelligent door lock, medium and control terminal
CN105957296B (en) A kind of automatic fire alarm system based on GSM
CN105625901B (en) Intelligent networking antitheft door
CN105843392A (en) Screen control method and device of mobile terminal
CN105751993A (en) Automobile, and instrument charging display screen control method and device thereof
CN106532364B (en) Power utilization control method and device for socket and socket
CN105819290A (en) Elevator and control method thereof
CN205484498U (en) Battery residual voltage detection circuitry , vehicle remote control key and vehicle intelligent key
CN106571018A (en) Method and device for preventing article from being lost and article with device
CN203982515U (en) A kind of door status sensor
CN207008742U (en) A kind of intelligent door system
CN106385490A (en) Method and device for awakening mobile terminal and mobile terminal
CN106453007A (en) Control method and device for preventing faulty actions of intelligent household electrical appliance, router and intelligent household electrical appliance
CN205060535U (en) Intelligence garbage bin with face identification function
CN101633337A (en) Vehicle audible device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant