CN106888534B - Illumination control method and device - Google Patents

Illumination control method and device Download PDF

Info

Publication number
CN106888534B
CN106888534B CN201710152631.9A CN201710152631A CN106888534B CN 106888534 B CN106888534 B CN 106888534B CN 201710152631 A CN201710152631 A CN 201710152631A CN 106888534 B CN106888534 B CN 106888534B
Authority
CN
China
Prior art keywords
terminal
current
light intensity
preset condition
state signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710152631.9A
Other languages
Chinese (zh)
Other versions
CN106888534A (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710152631.9A priority Critical patent/CN106888534B/en
Publication of CN106888534A publication Critical patent/CN106888534A/en
Application granted granted Critical
Publication of CN106888534B publication Critical patent/CN106888534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • 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

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

Abstract

The invention relates to a lighting control method and a lighting control device. The method comprises the following steps: acquiring a peripheral light intensity signal and a current state signal of the terminal, wherein the current state signal comprises at least one of a current motion state signal and a current screen brightness state signal; and controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal. By implementing the invention, the terminal can automatically turn on the light-emitting unit of the terminal under the condition of poor ambient light intensity in combination with the terminal state, so as to illuminate and warn others, thereby improving the user experience.

Description

Illumination control method and device
Technical Field
The invention relates to the field of terminal illumination, in particular to an illumination control method and device.
Background
The intelligent terminal is widely applied to production and life of people, and people work, shop, entertainment, chat and the like on the terminal. When people use the terminal in an environment with poor light, such as walking at night, danger is brought to users. In order to illuminate, a user needs to manually turn on a lighting unit of a terminal, such as a "flashlight" function of a current smart phone. After the use, the user needs to turn off the flashlight manually, so that the use is complicated, and the user experience is reduced.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a lighting control method and device, aiming at the defect that the user needs to manually control the switch of the light emitting unit of the terminal under the condition of poor light in the prior art.
The technical scheme adopted by the invention for solving the technical problems is as follows: a lighting control method is constructed and applied to a terminal, and comprises the following steps:
acquiring a peripheral light intensity signal and a current state signal of the terminal, wherein the current state signal comprises at least one of a current motion state signal and a current screen brightness state signal;
and controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal.
Preferably, the lighting control method of the present invention, acquiring the ambient light intensity signal and the current status signal of the terminal includes:
acquiring a peripheral light intensity signal and a current motion state signal of the terminal;
the controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal includes:
judging whether the ambient light intensity signal meets a first preset condition or not;
judging whether the current motion state signal meets a second preset condition or not;
if the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition, controlling a light-emitting unit of the terminal to emit light;
or, the acquiring the ambient light intensity signal and the current state signal includes:
acquiring a peripheral light intensity signal and a current screen brightness state signal of the terminal;
controlling the working state of the light emitting unit of the terminal according to the ambient light intensity signal and the current state signal includes:
judging whether the ambient light intensity signal meets a first preset condition or not;
judging whether the current screen brightness state signal meets a third preset condition or not;
if the ambient light intensity signal meets a first preset condition and the current screen bright and dark state signal meets a third preset condition, controlling a light-emitting unit of the terminal to emit light;
or, the acquiring the ambient light intensity signal and the current state signal of the terminal includes:
detecting a peripheral light intensity signal, a current motion state signal and a current screen brightness state signal of the terminal;
the controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal of the terminal includes:
judging whether the ambient light intensity signal meets a first preset condition or not;
judging whether the current motion state signal meets a second preset condition and whether the current screen bright-dark state signal meets a third preset condition;
and if the ambient light intensity signal meets a first preset condition, the current motion state signal meets a second preset condition, and the current screen bright-dark state signal meets a third preset condition, controlling a light-emitting unit of the terminal to emit light.
Preferably, the lighting control method according to the present invention, the controlling the operating state of the light emitting unit of the terminal according to the ambient light intensity signal and the current state signal further includes:
and if the ambient light intensity signal does not meet a first preset condition, controlling a light-emitting unit of the terminal to stop emitting light.
Preferably, in the lighting control method according to the present invention, the satisfying of the first preset condition by the ambient light intensity signal includes:
and the intensity of the ambient light of the terminal is less than or equal to a preset light intensity threshold value.
Preferably, in the lighting control method according to the present invention, the step of the current motion state signal satisfying the second preset condition includes:
the current moving speed of the terminal is greater than or equal to a preset speed threshold value or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold value;
the current screen brightness state signal meeting a third preset condition comprises:
and the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value.
Preferably, in the lighting control method according to the present invention, the light emitting unit is a flashlight of a terminal.
In addition, the present invention also provides an illumination control apparatus applied to a terminal, the illumination control apparatus including:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring an ambient light intensity signal and a current state signal of the terminal, and the current state signal comprises at least one of a current motion state signal and a current screen brightness state signal;
and the light-emitting unit is used for controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal.
Preferably, in the illumination control apparatus of the present invention, the acquisition unit includes:
the first acquisition module is used for acquiring a peripheral light intensity signal and a current motion state signal of the terminal;
the light emitting unit includes:
the first judgment module is used for judging whether the ambient light intensity signal meets a first preset condition or not;
the second judgment module is used for judging whether the current motion state signal meets a second preset condition or not;
the first light-emitting control module is used for controlling a light-emitting unit of the terminal to emit light when the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition;
alternatively, the acquiring unit includes:
the second acquisition module is used for acquiring the ambient light intensity signal and the current screen brightness state signal of the terminal;
the light emitting unit includes:
the first judgment module is used for judging whether the ambient light intensity signal meets a first preset condition or not;
the third judging module is used for judging whether the current screen bright and dark state signal meets a third preset condition or not;
the second light-emitting control module is used for controlling a light-emitting unit of the terminal to emit light when the ambient light intensity signal meets a first preset condition and the current screen brightness state signal meets a third preset condition;
alternatively, the acquiring unit includes:
the third acquisition module is used for detecting a peripheral light intensity signal, a current motion state signal and a current screen brightness state signal of the terminal;
the light emitting unit includes:
the first judgment module is used for judging whether the ambient light intensity signal meets a first preset condition or not;
the fourth judging module is used for judging whether the current motion state signal meets a second preset condition and whether the current screen brightness state signal meets a third preset condition;
and the third light-emitting control module is used for controlling the light-emitting unit of the terminal to emit light when the ambient light intensity signal meets a first preset condition, the current motion state signal meets a second preset condition, and the current screen brightness state signal meets a third preset condition.
Preferably, in the illumination control apparatus of the present invention, the light emitting unit further includes:
and the fourth light-emitting control module is used for controlling the light-emitting unit of the terminal to stop emitting light when the ambient light intensity signal does not meet the first preset condition.
Preferably, the lighting control device of the present invention, the satisfying of the first preset condition by the ambient light intensity signal includes: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold;
the current motion state signal meeting the second preset condition comprises the following steps: the current moving speed of the terminal is greater than or equal to a preset speed threshold value or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold value;
the current screen brightness state signal meeting the third preset condition comprises: and the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value.
The lighting method and the lighting device have the following beneficial effects: the method comprises the following steps: acquiring a peripheral light intensity signal and a current state signal of the terminal, wherein the current state signal comprises at least one of a current motion state signal and a current screen brightness state signal; and controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal. By implementing the invention, the terminal can automatically turn on the light-emitting unit of the terminal under the condition of poor ambient light intensity in combination with the terminal state, so as to illuminate and warn others, thereby improving the user experience.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
FIG. 1 is a schematic flow chart of a lighting control method of the present invention;
FIG. 2 is a schematic flow chart diagram of a first embodiment of a lighting control method of the present invention;
FIG. 3 is a schematic flow chart diagram of a second embodiment of a lighting control method of the present invention;
FIG. 4 is a schematic flow chart diagram of a third embodiment of a lighting control method of the present invention;
FIG. 5 is a schematic view of an illumination control apparatus according to the present invention;
FIG. 6 is a schematic structural diagram of a first embodiment of a lighting control apparatus of the present invention;
FIG. 7 is a schematic structural diagram of a second embodiment of a lighting control apparatus of the present invention;
fig. 8 is a schematic structural diagram of a third embodiment of the lighting control device according to the present invention.
Detailed Description
For a more clear understanding of the technical features, objects and effects of the present invention, embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic flow chart of an illumination control method according to the present invention.
The illumination control method is applied to terminals, and the terminals include but are not limited to mobile phones, tablet computers, smart bands, wearable devices and the like. The operating system of the terminal includes, but is not limited to, a flash operating system, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a Windows Phone operating system, and the like. As shown in fig. 1, the lighting control method includes:
a1: the method comprises the steps of acquiring an ambient light intensity signal and a current state signal of the terminal, wherein the current state signal comprises at least one of a current motion state signal and a current screen brightness state signal.
Specifically, the ambient light intensity signal of the terminal refers to the ambient light intensity of the environment where the terminal is located, such as day time or night time, where the ambient light intensity is different. The terminal may sense an ambient light intensity signal of an environment in which the terminal is located through a light sensitive sensor or other sensor. The current motion state signal is used to characterize the current motion state of the terminal, for example: the terminal is in a moving state, a static state, moving acceleration and the like, and the terminal can acquire a current motion state signal in an acceleration sensor or satellite positioning or base station positioning mode and the like. The screen brightness state signal of the terminal can be realized by a screen brightness signal or a screen brightness parameter in a program capture processor or a memory.
A2: and controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal.
Specifically, the environment state of the terminal and the use state of the terminal are judged according to the ambient light intensity signal and the current state signal, whether the environment state of the current terminal and the use state of the terminal accord with preset scenes or not is further judged, and if yes, the working state of a light-emitting unit of the terminal is controlled. The following description of different preset scenarios is performed by specific embodiments.
Preferably, the light emitting unit is a device capable of emitting light on the terminal, and includes a "fill light" provided on the terminal or other light emitting devices provided on the terminal, for example, a "flashlight" function of the terminal. It will be understood by those skilled in the art that the light emitting unit in the present invention includes not only the device itself for emitting light but also a peripheral circuit for controlling the light emitting device.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a lighting control method according to a first embodiment of the present invention.
B1: and acquiring a peripheral light intensity signal and a current motion state signal of the terminal.
Specifically, the terminal may sense an ambient light intensity signal of an environment in which the terminal is located through a light-sensitive sensor or other light-sensitive type sensor. The terminal can acquire the current motion state signal through an acceleration sensor or satellite positioning or base station positioning and the like.
B2: and judging whether the ambient light intensity signal meets a first preset condition or not.
Specifically, the condition that the ambient light intensity signal satisfies the first preset condition includes: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold value. The preset light intensity threshold is a critical value of the terminal when the ambient light intensity is in a bright state and a dark state, and when the ambient light intensity of the terminal is smaller than or equal to the preset light intensity threshold, the current terminal environment is in the dark state; and when the ambient light intensity of the terminal is greater than the preset light intensity threshold value, the current environment of the terminal is in a bright state. The preset light intensity threshold may be set by the system or by the user according to usage habits.
B3: and judging whether the current motion state signal meets a second preset condition.
Specifically, the step of the current motion state signal satisfying the second preset condition includes: the current moving speed of the terminal is greater than or equal to a preset speed threshold, or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold. The embodiment determines whether the terminal is in a moving state and the moving speed by detecting the speed or the acceleration of the terminal. The preset speed threshold and the preset acceleration threshold may be set by the system or by the user according to the usage habits.
B4: and if the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition, controlling a light-emitting unit of the terminal to emit light.
Specifically, through the judgment, if the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition, it indicates that the environment where the terminal is located is in a dark state, and the terminal is moving, which indicates that the user walks in the dark at the moment, the terminal generates a light-emitting unit starting instruction to control the light-emitting unit to emit light.
Preferably, if the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition, further determining whether the photosensitive sensor for sensing light is shielded through the distance sensor, and if the distance sensor detects an object in a preset range, indicating that the photosensitive sensor for sensing light is shielded. At this time, the light emitting unit of the terminal does not emit light, thereby preventing the light emitting unit of the terminal from being erroneously triggered when the terminal is in a pocket or a backpack.
Preferably, when the ambient light intensity signal satisfies a first preset condition and the current motion state signal satisfies a second preset condition, the light emitting unit of the terminal is controlled to emit light. Further, the light intensity emitted by the light emitting unit is inversely proportional to the ambient light intensity signal, i.e., the smaller the ambient light intensity signal, the stronger the light intensity emitted by the light emitting unit.
Preferably, the light emitted by the light emitting unit may be white light, and may also be colored light.
It is understood that the steps B2 and B3 of the present embodiment can be changed in sequence, and do not affect the determination of the step B4 of the present embodiment, and therefore, the description thereof is omitted.
Referring to fig. 3, fig. 3 is a flowchart illustrating a lighting control method according to a second embodiment of the present invention.
C1: and acquiring a peripheral light intensity signal and a current screen brightness state signal of the terminal.
Specifically, the terminal may sense an ambient light intensity signal of an environment in which the terminal is located through a photosensitive sensor or other sensors. The screen brightness state signal of the terminal can be realized by a screen brightness signal or a screen brightness parameter in a program capture processor or a memory.
C2: and judging whether the ambient light intensity signal meets a first preset condition or not.
Specifically, the condition that the ambient light intensity signal satisfies the first preset condition includes: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold value. The preset light intensity threshold is a critical value of the terminal when the ambient light intensity is in a bright state and a dark state, and when the ambient light intensity of the terminal is smaller than or equal to the preset light intensity threshold, the current terminal environment is in the dark state; and when the ambient light intensity of the terminal is greater than the preset light intensity threshold value, the current environment of the terminal is in a bright state. The preset light intensity threshold may be set by the system or by the user according to usage habits.
C3: and judging whether the current screen brightness state signal meets a third preset condition.
Specifically, the step of the current screen brightness state signal meeting the third preset condition includes: the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value. And when the current screen brightness of the terminal is greater than or equal to the preset brightness threshold value, indicating that the user is using the terminal. It can be understood that the current screen brightness of the terminal is a value greater than zero, and when the screen is in a black screen state, the brightness is zero, which indicates that the user does not use the terminal. The preset brightness threshold may be set by the system or by the user according to the usage habit.
C4: and if the ambient light intensity signal meets the first preset condition and the current screen brightness state signal meets the third preset condition, controlling a light-emitting unit of the terminal to emit light.
Specifically, by means of judgment, if the ambient light intensity signal meets a first preset condition and the current screen light and dark state signal meets a third preset condition, it indicates that the environment where the terminal is located is in a dark state and the terminal is in a use state, that is, a user uses the terminal in the dark environment, the terminal generates a light-emitting unit starting instruction to control the light-emitting unit to emit light.
Preferably, if the ambient light intensity signal meets the first preset condition, the current screen bright-dark state signal meets the third preset condition, and further, whether the photosensitive sensor for sensing is shielded is judged through the distance sensor, and if the distance sensor detects an object in the preset range, it is indicated that the photosensitive sensor for sensing is shielded. At this time, the light emitting unit of the terminal does not emit light, thereby preventing the light emitting unit of the terminal from being erroneously triggered when the terminal is in a pocket or a backpack.
Preferably, if the ambient light intensity signal satisfies the first preset condition and the current screen light and dark state signal satisfies the third preset condition, it is further determined whether the screen is bright due to other factors, for example, if the screen is in a black state, the screen is bright due to other factors such as an incoming call, a short message, an instant message, a push message, and an alarm clock, the light emitting unit of the terminal does not emit light, so as to avoid causing false triggering of the light emitting unit of the terminal.
Preferably, when the ambient light intensity signal satisfies a first preset condition and the current motion state signal satisfies a second preset condition, the light emitting unit of the terminal is controlled to emit light. Further, the light intensity emitted by the light emitting unit is inversely proportional to the ambient light intensity signal, i.e., the smaller the ambient light intensity signal, the stronger the light intensity emitted by the light emitting unit.
Preferably, the light emitted by the light emitting unit may be white light, and may also be colored light.
It is understood that the steps C2 and C3 of the present embodiment can be changed in sequence, and the determination of step C4 of the present embodiment is not affected, and therefore will not be described herein again.
Referring to fig. 4, fig. 4 is a flowchart illustrating a lighting control method according to a third embodiment of the present invention.
D1: and detecting a peripheral light intensity signal, a current motion state signal and a current screen brightness state signal of the terminal.
Specifically, the terminal may sense an ambient light intensity signal of an environment in which the terminal is located through a photosensitive sensor or other sensors. The terminal can acquire the current motion state signal through an acceleration sensor or satellite positioning or base station positioning and the like. The screen brightness state signal of the terminal can be realized by a screen brightness signal or a screen brightness parameter in a program capture processor or a memory.
D2: and judging whether the ambient light intensity signal meets a first preset condition or not.
Specifically, the condition that the ambient light intensity signal satisfies the first preset condition includes: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold value. The preset light intensity threshold is a critical value of the terminal when the ambient light intensity is in a bright state and a dark state, and when the ambient light intensity of the terminal is smaller than or equal to the preset light intensity threshold, the current terminal environment is in the dark state; and when the ambient light intensity of the terminal is greater than the preset light intensity threshold value, the current environment of the terminal is in a bright state. The preset light intensity threshold may be set by the system or by the user according to usage habits.
D3: and judging whether the current motion state signal meets a second preset condition and whether the current screen brightness state signal meets a third preset condition.
Specifically, the step of the current motion state signal satisfying the second preset condition includes: the current moving speed of the terminal is greater than or equal to a preset speed threshold value or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold value. The embodiment determines whether the terminal is in a moving state and the moving speed by detecting the speed or the acceleration of the terminal. The preset speed threshold and the preset acceleration threshold may be set by the system or by the user according to the usage habits. The current screen brightness state signal meeting the third preset condition comprises: the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value. And when the current screen brightness of the terminal is greater than or equal to the preset brightness threshold value, indicating that the user is using the terminal. It can be understood that the current screen brightness of the terminal is a value greater than zero, and when the screen is in a black screen state, the brightness is zero, which indicates that the user does not use the terminal. The preset brightness threshold may be set by the system or by the user according to the usage habit.
D4: and if the ambient light intensity signal meets a first preset condition, the current motion state signal meets a second preset condition, and the current screen brightness state signal meets a third preset condition, controlling a light-emitting unit of the terminal to emit light.
Specifically, by judging that the ambient light intensity signal satisfies the first preset condition, the current motion state signal satisfies the second preset condition, and the current screen brightness state signal satisfies the third preset condition, it indicates that the user is walking in the dark at the moment, and the terminal is used, and the terminal generates a light-emitting unit starting instruction to control the light-emitting unit to emit light.
It is understood that the steps D2 and D3 of the present embodiment can be changed in sequence, and the determination of the step D4 of the present embodiment is not affected, and therefore, the description thereof is omitted.
Through the above embodiment, the light emitting unit of the terminal emits light after meeting the condition, and further, the problem of when to turn off the light emitting unit needs to be solved.
In other embodiments of the lighting control method of the present invention, the method further comprises:
and if the ambient light intensity signal does not meet the first preset condition, the light-emitting unit of the control terminal stops emitting light. Preferably, a function button is provided on the terminal, and the light emission of the light emitting unit can be manually turned off through the function button when the user does not need the light emission of the light emitting unit. Other cases are the same as any of the above embodiments, and are not described again here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an illumination control apparatus according to the present invention.
The lighting control device is applied to terminals, and the terminals comprise but are not limited to mobile phones, tablet computers, smart bracelets, wearable equipment and the like. The operating system of the terminal includes, but is not limited to, a flash operating system, an Android operating system, an IOS operating system, a Symbian operating system, a Black Berry operating system, a Windows Phone operating system, and the like. As shown in fig. 5, the lighting control device includes:
the acquisition unit is used for acquiring an ambient light intensity signal and a current state signal of the terminal, wherein the current state signal comprises at least one of a current motion state signal and a current screen brightness state signal.
Specifically, the ambient light intensity signal of the terminal refers to the ambient light intensity of the environment where the terminal is located, such as day time or night time. The terminal can sense the ambient light intensity signal of the environment in which the terminal is located through a photosensitive sensor or other photosensitive sensors. The current motion state signal is used to characterize the current motion state of the terminal, for example: the terminal is in a moving state, a static state, moving acceleration and the like, and the terminal can acquire a current motion state signal in an acceleration sensor or satellite positioning or base station positioning mode and the like. The screen brightness state signal of the terminal can be realized by a screen brightness signal or a screen brightness parameter in a program capture processor or a memory.
And the light-emitting unit is used for controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal.
Specifically, the environment state of the terminal and the use state of the terminal are judged according to the ambient light intensity signal and the current state signal, whether the environment state of the current terminal and the use state of the terminal accord with preset scenes or not is further judged, and if yes, the working state of a light-emitting unit of the terminal is controlled. The following description of different preset scenarios is performed by specific embodiments.
Preferably, the light emitting unit is a device capable of emitting light on the terminal, and includes a "fill light" provided on the terminal or other light emitting devices provided on the terminal, for example, a "flashlight" function of the terminal. It will be understood by those skilled in the art that the light emitting unit in the present invention includes not only the device itself for emitting light but also a peripheral circuit for controlling the light emitting device.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a lighting control device according to a first embodiment of the present invention.
The first acquisition module is used for acquiring the ambient light intensity signal and the current motion state signal of the terminal.
Specifically, the terminal may sense an ambient light intensity signal of an environment in which the terminal is located through a light-sensitive sensor or other light-sensitive type sensor. The terminal can acquire the current motion state signal through an acceleration sensor or satellite positioning or base station positioning and the like.
The first judging module is used for judging whether the ambient light intensity signal meets a first preset condition or not.
Specifically, the condition that the ambient light intensity signal satisfies the first preset condition includes: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold value. The preset light intensity threshold is a critical value of the terminal when the ambient light intensity is in a bright state and a dark state, and when the ambient light intensity of the terminal is smaller than or equal to the preset light intensity threshold, the current terminal environment is in the dark state; and when the ambient light intensity of the terminal is greater than the preset light intensity threshold value, the current environment of the terminal is in a bright state. The preset light intensity threshold may be set by the system or by the user according to usage habits.
And the second judgment module is used for judging whether the current motion state signal meets a second preset condition.
Specifically, the step of the current motion state signal satisfying the second preset condition includes: the current moving speed of the terminal is greater than or equal to a preset speed threshold value or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold value. The embodiment determines whether the terminal is in a moving state and the moving speed by detecting the speed or the acceleration of the terminal. The preset speed threshold and the preset acceleration threshold may be set by the system or by the user according to the usage habits.
And the first light-emitting control module is used for controlling the light-emitting unit of the terminal to emit light when the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition.
Specifically, through the judgment, if the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition, it indicates that the environment where the terminal is located is in a dark state, and the terminal is moving, which indicates that the user walks in the dark at the moment, the terminal generates a light-emitting unit starting instruction to control the light-emitting unit to emit light.
Preferably, if the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition, further determining whether the photosensitive sensor for sensing light is shielded through the distance sensor, and if the distance sensor detects an object in a preset range, indicating that the photosensitive sensor for sensing light is shielded. At this time, the light emitting unit of the terminal does not emit light, thereby preventing the light emitting unit of the terminal from being erroneously triggered when the terminal is in a pocket or a backpack.
Preferably, when the ambient light intensity signal satisfies a first preset condition and the current motion state signal satisfies a second preset condition, the light emitting unit of the terminal is controlled to emit light. Further, the light intensity emitted by the light emitting unit is inversely proportional to the ambient light intensity signal, i.e., the smaller the ambient light intensity signal, the stronger the light intensity emitted by the light emitting unit.
Preferably, the light emitted by the light emitting unit may be white light, and may also be colored light.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a lighting control device according to a second embodiment of the present invention.
And the second acquisition module is used for acquiring the ambient light intensity signal and the current screen brightness state signal of the terminal.
Specifically, the terminal may sense an ambient light intensity signal of an environment in which the terminal is located through a light-sensitive sensor or other light-sensitive type sensor. The screen brightness state signal of the terminal can be realized by a screen brightness signal or a screen brightness parameter in a program capture processor or a memory.
The first judging module is used for judging whether the ambient light intensity signal meets a first preset condition or not.
Specifically, the condition that the ambient light intensity signal satisfies the first preset condition includes: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold value. The preset light intensity threshold is a critical value of the terminal when the ambient light intensity is in a bright state and a dark state, and when the ambient light intensity of the terminal is smaller than or equal to the preset light intensity threshold, the current terminal environment is in the dark state; and when the ambient light intensity of the terminal is greater than the preset light intensity threshold value, the current environment of the terminal is in a bright state. The preset light intensity threshold may be set by the system or by the user according to usage habits.
And the third judging module is used for judging whether the current screen brightness state signal meets a third preset condition.
Specifically, the step of the current screen brightness state signal meeting the third preset condition includes: the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value. And when the current screen brightness of the terminal is greater than or equal to the preset brightness threshold value, indicating that the user is using the terminal. It can be understood that the current screen brightness of the terminal is a value greater than zero, and when the screen is in a black screen state, the brightness is zero, which indicates that the user does not use the terminal. The preset brightness threshold may be set by the system or by the user according to the usage habit.
And the second light-emitting control module is used for controlling the light-emitting unit of the terminal to emit light when the ambient light intensity signal meets the first preset condition and the current screen brightness state signal meets the third preset condition.
Specifically, by means of judgment, if the ambient light intensity signal meets a first preset condition and the current screen light and dark state signal meets a third preset condition, it indicates that the environment where the terminal is located is in a dark state and the terminal is in a use state, that is, a user uses the terminal in the dark environment, the terminal generates a light-emitting unit starting instruction to control the light-emitting unit to emit light.
Preferably, if the ambient light intensity signal meets the first preset condition, the current screen bright-dark state signal meets the third preset condition, and further, whether the photosensitive sensor for sensing is shielded is judged through the distance sensor, and if the distance sensor detects an object in the preset range, it is indicated that the photosensitive sensor for sensing is shielded. At this time, the light emitting unit of the terminal does not emit light, thereby preventing the light emitting unit of the terminal from being erroneously triggered when the terminal is in a pocket or a backpack.
Preferably, if the ambient light intensity signal satisfies the first preset condition and the current screen light and dark state signal satisfies the third preset condition, it is further determined whether the screen is bright due to other factors, for example, if the screen is in a black state, the screen is bright due to other factors such as an incoming call, a short message, an instant message, and an alarm clock, the light-emitting unit of the terminal does not emit light, so as to avoid causing false triggering of the light-emitting unit of the terminal.
Preferably, when the ambient light intensity signal satisfies a first preset condition and the current motion state signal satisfies a second preset condition, the light emitting unit of the terminal is controlled to emit light. Further, the light intensity emitted by the light emitting unit is inversely proportional to the ambient light intensity signal, i.e., the smaller the ambient light intensity signal, the stronger the light intensity emitted by the light emitting unit.
Preferably, the light emitted by the light emitting unit may be white light, and may also be colored light.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a lighting control device according to a third embodiment of the present invention.
And the third acquisition module is used for detecting the ambient light intensity signal, the current motion state signal and the current screen brightness state signal of the terminal.
Specifically, the terminal may sense an ambient light intensity signal of an environment in which the terminal is located through a light-sensitive sensor or other light-sensitive type sensor. The terminal can acquire the current motion state signal through an acceleration sensor or satellite positioning or base station positioning and the like. The screen brightness state signal of the terminal can be realized by a screen brightness signal or a screen brightness parameter in a program capture processor or a memory.
The first judging module is used for judging whether the ambient light intensity signal meets a first preset condition or not.
Specifically, the condition that the ambient light intensity signal satisfies the first preset condition includes: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold value. The preset light intensity threshold is a critical value of the terminal when the ambient light intensity is in a bright state and a dark state, and when the ambient light intensity of the terminal is smaller than or equal to the preset light intensity threshold, the current terminal environment is in the dark state; and when the ambient light intensity of the terminal is greater than the preset light intensity threshold value, the current environment of the terminal is in a bright state. The preset light intensity threshold may be set by the system or by the user according to usage habits.
And the fourth judging module is used for judging whether the current motion state signal meets a second preset condition and whether the current screen brightness state signal meets a third preset condition.
Specifically, the step of the current motion state signal satisfying the second preset condition includes: the current moving speed of the terminal is greater than or equal to a preset speed threshold value or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold value. The embodiment determines whether the terminal is in a moving state and the moving speed by detecting the speed or the acceleration of the terminal. The preset speed threshold and the preset acceleration threshold may be set by the system or by the user according to the usage habits. The current screen brightness state signal meeting the third preset condition comprises: the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value. And when the current screen brightness of the terminal is greater than or equal to the preset brightness threshold value, indicating that the user is using the terminal. It can be understood that the current screen brightness of the terminal is a value greater than zero, and when the screen is in a black screen state, the brightness is zero, which indicates that the user does not use the terminal. The preset brightness threshold may be set by the system or by the user according to the usage habit.
And the third light-emitting control module is used for controlling the light-emitting unit of the terminal to emit light when the ambient light intensity signal meets the first preset condition, the current motion state signal meets the second preset condition, and the current screen brightness state signal meets the third preset condition.
Specifically, by judging that the ambient light intensity signal satisfies the first preset condition, the current motion state signal satisfies the second preset condition, and the current screen brightness state signal satisfies the third preset condition, it indicates that the user is walking in the dark at the moment, and the terminal is used, and the terminal generates a light-emitting unit starting instruction to control the light-emitting unit to emit light.
Through the above embodiment, the light emitting unit of the terminal emits light after meeting the condition, and further, the problem of when to turn off the light emitting unit needs to be solved. The invention provides a further solution: and if the ambient light intensity signal does not meet the first preset condition, the light-emitting unit of the control terminal stops emitting light.
Preferably, a function button is provided on the terminal, and the light emission of the light emitting unit can be manually turned off through the function button when the user does not need the light emission of the light emitting unit.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention. All equivalent changes and modifications made within the scope of the claims of the present invention should be covered by the claims of the present invention.

Claims (10)

1. A lighting control method applied to a terminal is characterized by comprising the following steps:
acquiring ambient light intensity signals of the terminal and current state signals of the terminal, wherein the current state signals comprise current motion state signals and current screen brightness state signals; the current motion state signal is used for representing the current moving state of the terminal, and the current motion state comprises at least one of a moving state, a static state and an acceleration of movement of the terminal; the terminal acquires the current motion state signal through an acceleration sensor or satellite positioning or base station positioning;
and controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal.
2. The lighting control method of claim 1, wherein obtaining the ambient light intensity signal and the current status signal of the terminal comprises:
acquiring a peripheral light intensity signal and a current motion state signal of the terminal;
the controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal includes:
judging whether the ambient light intensity signal meets a first preset condition or not;
judging whether the current motion state signal meets a second preset condition or not;
if the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition, controlling a light-emitting unit of the terminal to emit light;
or, the acquiring the ambient light intensity signal and the current state signal includes:
acquiring a peripheral light intensity signal and a current screen brightness state signal of the terminal;
controlling the working state of the light emitting unit of the terminal according to the ambient light intensity signal and the current state signal includes:
judging whether the ambient light intensity signal meets a first preset condition or not;
judging whether the current screen brightness state signal meets a third preset condition or not;
if the ambient light intensity signal meets a first preset condition and the current screen bright and dark state signal meets a third preset condition, controlling a light-emitting unit of the terminal to emit light;
or, the acquiring the ambient light intensity signal and the current state signal of the terminal includes:
detecting a peripheral light intensity signal, a current motion state signal and a current screen brightness state signal of the terminal;
the controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal of the terminal includes:
judging whether the ambient light intensity signal meets a first preset condition or not;
judging whether the current motion state signal meets a second preset condition and whether the current screen bright-dark state signal meets a third preset condition;
and if the ambient light intensity signal meets a first preset condition, the current motion state signal meets a second preset condition, and the current screen bright-dark state signal meets a third preset condition, controlling a light-emitting unit of the terminal to emit light.
3. The lighting control method according to claim 2, wherein the controlling the operating state of the light emitting unit of the terminal according to the ambient light intensity signal and the current state signal further comprises:
and if the ambient light intensity signal does not meet a first preset condition, controlling a light-emitting unit of the terminal to stop emitting light.
4. The lighting control method according to claim 2, wherein the ambient light intensity signal satisfying a first preset condition comprises:
and the intensity of the ambient light of the terminal is less than or equal to a preset light intensity threshold value.
5. The lighting control method of claim 2, wherein the current motion state signal satisfying the second preset condition comprises:
the current moving speed of the terminal is greater than or equal to a preset speed threshold value or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold value;
the current screen brightness state signal meeting the third preset condition comprises:
and the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value.
6. The lighting control method of claim 1, wherein the lighting unit is a flashlight of a terminal.
7. An illumination control device applied to a terminal, the illumination control device comprising:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring ambient light intensity signals of the terminal and current state signals of the terminal, and the current state signals comprise current motion state signals and current screen brightness state signals; the current motion state signal is used for representing the current moving state of the terminal, and the current motion state comprises at least one of a moving state, a static state and an acceleration of movement of the terminal; the terminal acquires the current motion state signal through an acceleration sensor or satellite positioning or base station positioning;
and the light-emitting unit is used for controlling the working state of the light-emitting unit of the terminal according to the ambient light intensity signal and the current state signal.
8. The lighting control device according to claim 7, wherein the acquisition unit includes:
the first acquisition module is used for acquiring a peripheral light intensity signal and a current motion state signal of the terminal;
the light emitting unit includes:
the first judgment module is used for judging whether the ambient light intensity signal meets a first preset condition or not;
the second judgment module is used for judging whether the current motion state signal meets a second preset condition or not;
the first light-emitting control module is used for controlling a light-emitting unit of the terminal to emit light when the ambient light intensity signal meets a first preset condition and the current motion state signal meets a second preset condition;
alternatively, the acquiring unit includes:
the second acquisition module is used for acquiring the ambient light intensity signal and the current screen brightness state signal of the terminal;
the light emitting unit includes:
the first judgment module is used for judging whether the ambient light intensity signal meets a first preset condition or not;
the third judging module is used for judging whether the current screen bright and dark state signal meets a third preset condition or not;
the second light-emitting control module is used for controlling a light-emitting unit of the terminal to emit light when the ambient light intensity signal meets a first preset condition and the current screen brightness state signal meets a third preset condition;
alternatively, the acquiring unit includes:
the third acquisition module is used for detecting a peripheral light intensity signal, a current motion state signal and a current screen brightness state signal of the terminal;
the light emitting unit includes:
the first judgment module is used for judging whether the ambient light intensity signal meets a first preset condition or not;
the fourth judging module is used for judging whether the current motion state signal meets a second preset condition and whether the current screen brightness state signal meets a third preset condition;
and the third light-emitting control module is used for controlling the light-emitting unit of the terminal to emit light when the ambient light intensity signal meets a first preset condition, the current motion state signal meets a second preset condition, and the current screen brightness state signal meets a third preset condition.
9. The lighting control device of claim 8, wherein the light emitting unit further comprises:
and the fourth light-emitting control module is used for controlling the light-emitting unit of the terminal to stop emitting light when the ambient light intensity signal does not meet the first preset condition.
10. The lighting control device of claim 8, wherein the ambient light intensity signal satisfying a first preset condition comprises: the ambient light intensity of the terminal is less than or equal to a preset light intensity threshold;
the current motion state signal meeting the second preset condition comprises the following steps: the current moving speed of the terminal is greater than or equal to a preset speed threshold value or the current moving acceleration of the terminal is greater than or equal to a preset acceleration threshold value;
the current screen brightness state signal meeting the third preset condition comprises: and the current screen brightness of the terminal is greater than or equal to a preset brightness threshold value.
CN201710152631.9A 2017-03-15 2017-03-15 Illumination control method and device Active CN106888534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710152631.9A CN106888534B (en) 2017-03-15 2017-03-15 Illumination control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710152631.9A CN106888534B (en) 2017-03-15 2017-03-15 Illumination control method and device

Publications (2)

Publication Number Publication Date
CN106888534A CN106888534A (en) 2017-06-23
CN106888534B true CN106888534B (en) 2020-01-24

Family

ID=59180994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710152631.9A Active CN106888534B (en) 2017-03-15 2017-03-15 Illumination control method and device

Country Status (1)

Country Link
CN (1) CN106888534B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911919B (en) * 2017-11-08 2024-03-29 珠海格力电器股份有限公司 Control device and method of remote controller, storage medium, remote controller and equipment
CN111327767A (en) * 2020-02-06 2020-06-23 Tcl移动通信科技(宁波)有限公司 Lighting device control method, system, storage medium and mobile terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888729A (en) * 2010-06-23 2010-11-17 中兴通讯股份有限公司 Illumination device control method, illumination device and mobile terminal
CN104679674A (en) * 2013-11-29 2015-06-03 联想(北京)有限公司 Information processing method and electronic device
CN105654923A (en) * 2016-03-30 2016-06-08 广东欧珀移动通信有限公司 Method for adjusting backlight brightness and user terminal
CN105825833A (en) * 2015-06-30 2016-08-03 维沃移动通信有限公司 Brightness adjustment method and terminal
CN105847535A (en) * 2016-03-16 2016-08-10 广东欧珀移动通信有限公司 Display screen brightness adjusting method and mobile terminal
CN106303039A (en) * 2016-08-16 2017-01-04 珠海格力电器股份有限公司 A kind of screen control method, device and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101503874B1 (en) * 2013-09-25 2015-03-19 매그나칩 반도체 유한회사 Light emitting diode driver circuit and lighting apparutus having the same
CN106406802A (en) * 2016-09-06 2017-02-15 上海斐讯数据通信技术有限公司 Control method for night mode and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888729A (en) * 2010-06-23 2010-11-17 中兴通讯股份有限公司 Illumination device control method, illumination device and mobile terminal
CN104679674A (en) * 2013-11-29 2015-06-03 联想(北京)有限公司 Information processing method and electronic device
CN105825833A (en) * 2015-06-30 2016-08-03 维沃移动通信有限公司 Brightness adjustment method and terminal
CN105847535A (en) * 2016-03-16 2016-08-10 广东欧珀移动通信有限公司 Display screen brightness adjusting method and mobile terminal
CN105654923A (en) * 2016-03-30 2016-06-08 广东欧珀移动通信有限公司 Method for adjusting backlight brightness and user terminal
CN106303039A (en) * 2016-08-16 2017-01-04 珠海格力电器股份有限公司 A kind of screen control method, device and mobile terminal

Also Published As

Publication number Publication date
CN106888534A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
JP6273026B2 (en) Method and apparatus for controlling light emission
CN107943345B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
US9961639B2 (en) Method and apparatus for notifying missed events
EP2991067B1 (en) Backlight brightness control method and device
CN106303023B (en) Screen state adjusting method and device
CN108429888B (en) Light supplementing method and mobile terminal
KR20120124202A (en) Apparatus and method for controlling brightness in potable terminal
CN113140194B (en) Brightness adjusting method, device and storage medium
WO2015196371A1 (en) User equipment light control method, device and user terminal
JP2010199706A (en) Proximity sensor with illuminance detection function and electronic device
CN106888534B (en) Illumination control method and device
CN106598444B (en) Control method of mobile terminal and mobile terminal
CN103327194A (en) Mode switching method and device for browser skin brightness
CN105741766B (en) A kind of display control method based on optical sensor, device and intelligent terminal
RU2702008C1 (en) Intelligent flashlight control method and device and intelligent device
CN105700277B (en) Projection brightness adjusting method and device
CN106453930B (en) Method for lighting screen of mobile terminal and mobile terminal
US20190098731A1 (en) Programmable flashlight with automatic light intensity adjustment means
CN113017591B (en) Wearable device wearing state detection method, wearable device wearing state detection device, wearable device wearing state detection equipment and storage medium
CN109240541B (en) Screen false touch prevention method and device of electronic equipment and electronic equipment
JP6209699B1 (en) Electronic device, program, and control method
CN107809525B (en) Mobile terminal, control method thereof and storage device
JP2016095365A (en) Portable terminal device
CN107919094B (en) Control terminal backlight control method, control terminal and readable storage medium
CN105892649A (en) Terminal searching method and 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