CN110221500B - Control method, control device, storage medium, electronic device and control system - Google Patents

Control method, control device, storage medium, electronic device and control system Download PDF

Info

Publication number
CN110221500B
CN110221500B CN201910483445.2A CN201910483445A CN110221500B CN 110221500 B CN110221500 B CN 110221500B CN 201910483445 A CN201910483445 A CN 201910483445A CN 110221500 B CN110221500 B CN 110221500B
Authority
CN
China
Prior art keywords
light intensity
electrochromic glass
preset
intensity range
environment
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
CN201910483445.2A
Other languages
Chinese (zh)
Other versions
CN110221500A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910483445.2A priority Critical patent/CN110221500B/en
Publication of CN110221500A publication Critical patent/CN110221500A/en
Application granted granted Critical
Publication of CN110221500B publication Critical patent/CN110221500B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/15Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on an electrochromic effect
    • G02F1/163Operation of electrochromic cells, e.g. electrodeposition cells; Circuit arrangements therefor

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • General Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Electrochromic Elements, Electrophoresis, Or Variable Reflection Or Absorption Elements (AREA)

Abstract

The application discloses a control method, which is applied to electronic equipment, wherein the electronic equipment comprises an ambient light sensor, and the control method comprises the following steps: acquiring the light intensity of the environment where the electronic equipment is located through the ambient light sensor; detecting whether the acquired light intensity is within a preset light intensity range; if not, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range. The embodiment can accurately adjust the light transmittance of the electrochromic glass to a proper value.

Description

Control method, control device, storage medium, electronic device and control system
Technical Field
The present application relates to the field of electronic devices, and in particular, to a control method, apparatus, storage medium, electronic device, and control system.
Background
With the development of intelligence, electrochromic glass is gradually applied to buildings. Under the drive of an electric field, the light transmittance of the electrochromic glass can be reversibly changed. The light transmittance of the electrochromic glass installed in the indoor environment can be dynamically adjusted according to the illumination condition, so that the indoor environment is ensured to have comfortable light. However, in the related art, the electrochromic glass cannot accurately adjust the light transmittance to a suitable value.
Disclosure of Invention
The embodiment of the application provides a control method, a control device, a storage medium, an electronic device and a control system, which can accurately adjust the light transmittance of electrochromic glass to a proper value.
The embodiment of the application provides a control method, which is applied to electronic equipment, wherein the electronic equipment comprises an ambient light sensor, and the control method comprises the following steps:
acquiring the light intensity of the environment where the electronic equipment is located through the ambient light sensor;
detecting whether the acquired light intensity is within a preset light intensity range;
if not, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
The embodiment of the application provides a control device, is applied to electronic equipment, electronic equipment includes ambient light sensor, control device includes:
the acquisition module is used for acquiring the light intensity of the environment where the electronic equipment is located through the ambient light sensor;
the detection module is used for detecting whether the acquired light intensity is within a preset light intensity range;
and the sending module is used for sending an adjusting instruction to the electrochromic glass if the electronic equipment is not in the preset light intensity range, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
The embodiment of the application provides a storage medium, wherein a computer program is stored on the storage medium, and when the computer program is executed on a computer, the computer is enabled to execute the control method provided by the embodiment of the application.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is used to execute the control method provided in the embodiment of the present application by calling the computer program stored in the memory.
The embodiment of the application also provides a control system, which comprises electronic equipment and electrochromic glass, wherein the electronic equipment comprises an ambient light sensor and a first data transmission module, and the electrochromic glass comprises a second data transmission module and a voltage regulation module;
the electronic equipment is used for acquiring the light intensity of the environment where the electronic equipment is located through the ambient light sensor and detecting whether the acquired light intensity is within a preset light intensity range; if not, sending an adjusting instruction to the electrochromic glass through the first transmission module, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance;
the electrochromic glass is used for receiving the adjusting instruction from the electronic equipment through the second data transmission module, and adjusting the light transmittance of the electrochromic glass through the voltage adjusting module according to the adjusting instruction so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
In this embodiment, the light intensity of the current environment may be obtained by an ambient light sensor of the electronic device, and when it is detected that the light intensity of the current environment is not within the preset light intensity range, the electronic device sends an adjustment instruction to the electrochromic glass for instructing the electrochromic glass to adjust the light transmittance, so that the light intensity of the environment where the electronic device is located is within the preset light intensity range. Since the electronic device is generally carried by the user, the light intensity of the environment around the user can be accurately obtained by the own ambient light sensor of the electronic device. Therefore, the light transmittance of the electrochromic glass is adjusted by controlling the light transmittance of the electrochromic glass according to the ambient light intensity acquired by the electronic equipment, so that the light intensity of the environment can be accurately adjusted to an appropriate value. That is, the present embodiment can accurately adjust the light transmittance of the electrochromic glass to an appropriate value.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic structural diagram of an electrochromic cell provided in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an electrochromic cell provided in an embodiment of the present application when powered on.
Fig. 3 is a schematic flowchart of a control method according to an embodiment of the present application.
Fig. 4 is another schematic flow chart of a control method provided in the embodiment of the present application.
Fig. 5 to fig. 6 are schematic scene diagrams of a control method provided in an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a control device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 9 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a control system according to an embodiment of the present application.
Detailed Description
Reference is made to the drawings, wherein like reference numerals refer to like elements, which are illustrated in the various figures, and which are implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
Electrochromism refers to a phenomenon that optical properties (such as reflectivity, light transmittance, absorption rate and the like) of a material are subjected to stable and reversible color change under the action of an external electric field. Electrochromism appears in appearance as a reversible change in the color and transparency of the material. Materials with electrochromic properties may be referred to as electrochromic materials.
Referring to fig. 1, the electrochromic cell made of electrochromic material may include two conductive layers stacked, and a color-changing layer, an electrolyte layer, and an ion storage layer disposed between the two conductive layers.
The conductive layer may be a transparent conductive layer, and has excellent conductivity and good optical transmittance. The transparent conductive layer may be Indium Tin Oxide (ITO), tin oxide (SnO 2), and Antimony Tin Oxide (ATO).
The color-changing layer is a core layer of the electrochromic unit and is also a color-changing reaction generation layer. The material of the color-changing layer may be classified into an inorganic electrochromic material and an organic electrochromic material according to types. The inorganic electrochromic material may be tungsten trioxide (WO 3) or nickel oxide (NiO). The organic electrochromic material mainly comprises polythiophene and derivatives thereof, viologen, tetrathiafulvalene, metal phthalocyanine compounds and the like.
Most inorganic electrochromic materials are transition metal oxides or derivatives thereof. The transition metal electron shells are unstable and have unpaired single electrons. Ions of transition metal elements generally have colors, the energy difference between a ground state and an excited state is small, and valence states are reversibly transformed under certain conditions to form a mixed valence state ion coexisting state. The color changes along with the change of the ion valence and concentration, which is the reason of the electrochromic capability of the transition metal oxide.
The organic electrochromic material includes a conductive polymer electrochromic material. The principle of conductive polymer color change is mainly the doping process, the essence of doping is the migration and migration behavior of ions and the like in a high molecular chain, and meanwhile, the gain and the loss of electrons are accompanied, so the doping process of the conductive polymer is a redox reversible process. In the doping process, transition between a molecular conduction band and a valence band is initiated, wherein the transition comprises transition of different energy levels of a polaron energy level, a soliton energy level, a bipolar energy level and an electron, and the spectrum is changed differently. The voltage is controlled in a certain range to determine the doping degree, so that the absorption of a visible light region is different, the color is displayed, and the electrochromic phenomenon is generated.
The electrolyte layer is composed of a special conductive material such as a liquid electrolyte material containing a solution of lithium perchlorate, sodium perchlorate, or the like, or may be a solid electrolyte material.
The ion storage layer plays a role in storing charges in the electrochromic unit, namely corresponding counter ions are stored when the material of the electrochromic layer undergoes an oxidation-reduction reaction, so that the charge balance of the whole electrochromic unit is ensured.
As shown in fig. 2, when a certain voltage is applied between the two transparent conductive layers, the material of the color-changing layer of the electrochromic cell undergoes an oxidation-reduction reaction under the action of the voltage, so that a color change occurs.
For example, when a voltage applied between two transparent conductive layers of an electrochromic cell is changed from 0V to 1V, the electrochromic cell may be changed from a transparent color to red. When the voltage applied between the two transparent conductive layers is changed from 0V to 1.2V, the electrochromic cell may be changed from a transparent color to black. When the voltage applied between the two transparent conductive layers is changed from 1.2V to 0V, the electrochromic cell may change from black back to a transparent color, and so on.
From the above, the electrochromic material has a transparent state and a colored state. Wherein the transparent state can be the state of the electrochromic material when not energized, and the colored state can be the state of the electrochromic material when energized. In the transparent state, when not energized, the electrochromic material can transmit light. And in the electrified coloring state, the electrochromic material can block light from passing through. The conductive layer, the coloration layer, the electrolyte layer, and the ion storage layer in the electrochromic cell may all be in a transparent state when not energized. That is, when not energized, the electrochromic cell as a whole may be in a transparent state.
The light transmittance of the electrochromic glass made of the electrochromic material can be reversibly changed under the driving of an electric field. The electrochromic glass is a novel functional glass. Electrochromic glass is actively developed in the aspect of application and development research of intelligent windows, the device consisting of the base glass and the electrochromic system can achieve the purpose of adjusting the light illumination according to the will of people by utilizing the adjustability of the light transmission (or absorption) performance of the electrochromic material under the action of an electric field, and meanwhile, the electrochromic system can reduce a large amount of energy which is consumed for buildings such as office buildings, residential buildings and the like to keep cool in summer and warm in winter by selectively absorbing or reflecting external heat radiation and preventing internal heat diffusion.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 3, fig. 3 is a schematic flow chart of a control method according to an embodiment of the present disclosure. The control method may be applied to an electronic device, which may include an ambient light sensor. The flow of the control method can comprise the following steps:
101. and acquiring the light intensity of the environment where the electronic equipment is located through an ambient light sensor.
With the development of intelligence, electrochromic glass is gradually applied to buildings. Under the drive of an electric field, the light transmittance of the electrochromic glass can be reversibly changed. The light transmittance of the electrochromic glass installed in the indoor environment can be dynamically adjusted according to the illumination condition, so that the indoor environment is ensured to have comfortable light. However, in the related art, the electrochromic glass cannot accurately adjust the light transmittance to a suitable value.
For example, in the related art, the indoor lighting condition is generally obtained by installing a light sensing device on a window, and the light transmittance of the electrochromic glass is reduced or increased according to the intensity of the lighting sensed by the light sensing device, so as to obtain the appropriate lighting indoors. However, the light sensing device is installed on the window, and the lighting environment near the window is greatly different from the lighting environment of the indoor area where the user is doing activities. This results in the electrochromic glazing not being able to accurately adjust the light transmittance to a value suitable for the user.
In the embodiment of the present application, for example, after a user carries an electronic device into an indoor environment with electrochromic glass installed, the electronic device may first obtain the light intensity of the current environment through its ambient light sensor.
102. And detecting whether the acquired light intensity is within a preset light intensity range.
For example, after the light intensity of the current environment is obtained by the ambient light sensor of the electronic device, the electronic device may detect whether the obtained light intensity is within a preset light intensity range. In one embodiment, the preset light intensity range may be a light intensity range that is comfortable for a user to feel.
If the acquired ambient light intensity is detected to be within the preset light intensity range, the electronic device may perform other operations.
If the acquired ambient light intensity is detected not to be within the preset light intensity range, the process proceeds to step 103.
103. And if the obtained light intensity is detected not to be in the preset light intensity range, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located to be in the preset light intensity range.
For example, if the electronic device detects that the acquired light intensity of the environment is not within the preset light intensity range, the electronic device may send an adjustment instruction to the electrochromic glass. The adjusting instruction can be used for indicating the electrochromic glass to adjust the light transmittance so that the light intensity of the environment where the electronic equipment is located is within a preset light intensity range.
It can be understood that, in this embodiment, the light intensity of the current environment may be obtained by an ambient light sensor of the electronic device, and when it is detected that the light intensity of the current environment is not within the preset light intensity range, the electronic device sends an adjustment instruction to the electrochromic glass for instructing the electrochromic glass to adjust the light transmittance, so that the light intensity of the environment where the electronic device is located is within the preset light intensity range. Since the electronic device is generally carried by the user, the light intensity of the environment around the user can be accurately obtained by the own ambient light sensor of the electronic device. Therefore, the light transmittance of the electrochromic glass is controlled to be adjusted according to the environmental light intensity obtained by the electronic equipment, so that the light intensity of the environment can be accurately adjusted to a proper value. That is, the present embodiment can accurately adjust the light transmittance of the electrochromic glass to an appropriate value.
In addition, because the existing ambient light sensor of the electronic device is used to obtain the ambient light intensity, and a light sensing switch is not required to be installed on the electrochromic glass, the cost of the electrochromic glass can be saved.
In one embodiment, the electronic device may further include a data transmission module, such as the first data transmission module, in addition to the ambient light sensor. The electrochromic glazing may also include a data transmission module, such as the second data transmission module, and may also include a voltage regulation module. The voltage adjusting module can be connected with a voltage end of the electrochromic glass and is used for adjusting the voltage applied to the two ends of the electrochromic glass, so that the light transmittance of the electrochromic glass is changed through voltage adjustment.
When the electronic equipment detects that the light intensity of the environment where the electronic equipment is located is not within the preset light intensity range, the electronic equipment sends an adjusting instruction to the second data transmission module of the electrochromic glass through the first data transmission module.
After receiving the adjusting instruction from the electronic device through the second data transmission module, the electrochromic glass can adjust the voltage applied to the two ends of the electrochromic glass according to the adjusting instruction and by using the voltage adjusting module, so that the light transmittance of the electrochromic glass is adjusted, and the light intensity of the environment where the electronic device is located is adjusted to be within the preset light intensity range.
In some embodiments, the first data transmission module and the second data transmission module may be wireless data transmission modules. Namely, the electronic equipment and the electrochromic unit can transmit the adjusting instruction in a wireless transmission mode. For example, the first data transmission module and the second data transmission module may both be bluetooth wireless transmission modules or infrared wireless transmission modules. Of course, the first data transmission module and the second data transmission module may also be hardware modules that adopt other wireless data transmission modes, which is not specifically limited in this embodiment as long as wireless data transmission can be performed between the electronic device and the electrochromic glass.
Of course, in other embodiments, data transmission between the electronic device and the electrochromic glass may also be performed by using a wired data transmission manner, for example, transmission of an adjustment instruction is performed by using a wired data transmission manner.
For example, the higher the voltage applied across the electrochromic glass, the higher the transmittance of the electrochromic glass. If the light intensity of the environment where the electronic device is located detected by the ambient light sensor of the electronic device is 200 lux. The predetermined light intensity range is 320 to 400 lux. Then, the electronic device may detect that the light intensity of the current environment is lower than the interval lower limit value of the preset light intensity range. At this time, the electronic device may send an adjustment instruction to the second data transmission module of the electrochromic glazing through the first data transmission module thereof, where the adjustment instruction may be used to instruct the electrochromic glazing to increase its light transmittance. After receiving the adjusting instruction, the electrochromic glass can increase the voltage applied to the two ends of the electrochromic glass by using the voltage adjusting module according to the adjusting instruction, so that the light transmittance of the electrochromic glass is increased. In the process that the light transmittance of the electrochromic glass is increased, the electronic equipment can continuously acquire the light intensity of the environment where the electronic equipment is located, and detect whether the light intensity of the environment enters a preset light intensity range. For example, when it is detected that the value of the light intensity of the environment enters the median value of the preset light intensity range, the electronic device may send another instruction for stopping adjustment to the second data transmission module of the electrochromic glass through the first data transmission module, where the instruction for stopping adjustment may be used to instruct the electrochromic glass to stop adjusting the light transmittance. After receiving the adjustment stopping instruction, the electrochromic glass can not increase the voltage applied to two ends of the electrochromic glass any more, so that the light intensity of the environment where the electronic equipment is located is kept within the preset light intensity range.
For another example, if the light intensity of the environment where the electronic device is located detected by the ambient light sensor of the electronic device is 500 lux. The predetermined light intensity range is 320 to 400 lux. Then, the electronic device may detect that the light intensity of the current environment is greater than the interval upper limit value of the preset light intensity range. At this time, the electronic device may send an adjustment instruction to the second data transmission module of the electrochromic glazing through the first data transmission module thereof, where the adjustment instruction may be used to instruct the electrochromic glazing to decrease its light transmittance. After receiving the adjusting instruction, the electrochromic glass can reduce the voltage applied to the two ends of the electrochromic glass by using the voltage adjusting module according to the adjusting instruction, so that the light transmittance of the electrochromic glass is reduced. In the process that the light transmittance of the electrochromic glass is reduced, the electronic equipment can continuously acquire the light intensity of the environment where the electronic equipment is located, and detect whether the light intensity of the environment enters a preset light intensity range. For example, when it is detected that the light intensity value of the environment enters the preset light intensity range, the electronic device may send another adjustment stopping instruction to the second data transmission module of the electrochromic glass through the first data transmission module, where the adjustment stopping instruction may be used to instruct the electrochromic glass to stop adjusting the light transmittance. After receiving the adjustment stopping instruction, the electrochromic glass can not reduce the voltage applied to two ends of the electrochromic glass any more, so that the light intensity of the environment where the electronic equipment is located is kept within the preset light intensity range.
Referring to fig. 4, fig. 4 is another schematic flow chart of the control method according to the embodiment of the present disclosure. The control method may be applied to an electronic device, which may have an ambient light sensor. The control method can comprise the following steps:
201. the electronic device obtains a first light intensity value.
202. The electronic device obtains a first coefficient and a second coefficient, wherein the first coefficient is smaller than the second coefficient.
203. The electronic equipment multiplies the first light intensity value by a first coefficient to obtain a second light intensity value, and multiplies the first light intensity value by a second coefficient to obtain a third light intensity value.
204. The electronic device determines a preset light intensity range, the preset light intensity range having the second light intensity value as a lower interval limit value and the third light intensity value as an upper interval limit value.
For example, 201, 202, 203, 204 may include:
the electronic device may first obtain a light intensity value, for example a first light intensity value. In some embodiments, the first light intensity value may be a light intensity value obtained by the electronic device in a state where the user feels comfortable. For example, a user can actively adjust the light transmittance of the electrochromic glass, so that the corresponding illumination can be obtained indoors. When a user feels a comfortable lighting environment, the electronic device may be triggered to read an output value of the ambient light sensor at the time, and determine a light intensity value output by the ambient light sensor read at the time as a first light intensity value.
After acquiring the first light intensity value, the electronic device may acquire a first coefficient and a second coefficient, wherein the first coefficient may be smaller than the second coefficient. For example, the first factor is 70% and the second factor is 130%. Alternatively, the first factor is 80%, the second factor is 120%, and so on. It is understood that the first coefficient and the second coefficient may have other values, and the examples herein are not intended to limit the embodiments of the present application.
After acquiring the first coefficient and the second coefficient, the electronic device may multiply the first light intensity value by the first coefficient to obtain a second light intensity value, and multiply the first light intensity value by the second coefficient to obtain a third light intensity value. Then, the electronic device may determine an interval range by using the second light intensity value as a lower interval limit value and using the third light intensity value as an upper interval limit value, and determine the interval range as a preset light intensity range.
For example, if the first intensity value is 400 lux, the first coefficient is 80%, the second coefficient is 120%, then the second intensity value is 320 lux, and the third intensity value is 480 lux. Then, the preset light intensity range is [320,480].
It is understood that the processes 201 to 204 are processes for the electronic device to determine the preset light intensity range in advance.
205. Through the ambient light sensor, the electronic device acquires the light intensity of the environment at a first frequency.
For example, after a user carries an electronic device into an indoor environment with electrochromic glass installed, the electronic device may first obtain an ambient light intensity value of a current environment through an ambient light sensor of the electronic device at a first frequency.
206. The electronic equipment detects whether the acquired light intensity is within a preset light intensity range.
For example, after the ambient light intensity value of the current environment is acquired by the ambient light sensor of the electronic device, the electronic device may detect whether the acquired ambient light intensity value is within a preset light intensity range. For example, the preset light intensity range may be a light intensity range that is comfortable for the user to feel, such as 320 lux to 480 lux.
If the obtained ambient light intensity value is detected to be within the preset light intensity range, the electronic device can execute other operations without adjusting the indoor illumination intensity.
If the acquired ambient light intensity value is not detected to be within the preset light intensity range, the process proceeds to step 207.
207. If the obtained light intensity is not within the preset light intensity range, the electronic equipment sends an adjusting instruction to the electrochromic glass, the light intensity of the environment where the electronic equipment is located is obtained at a second frequency, when the light intensity of the environment is detected to be within the preset light intensity range, a regulating stopping instruction is sent to the electrochromic glass, wherein the second frequency is higher than the first frequency, the adjusting instruction is used for indicating the electrochromic glass to regulate the light transmittance so as to regulate the light intensity of the environment where the electronic equipment is located to be within the preset light intensity range, and the regulating stopping instruction is used for indicating the electrochromic glass to stop regulating the light transmittance.
For example, if the electronic device detects that the currently acquired ambient light intensity value is not within the preset light intensity range, the electronic device may send an adjustment instruction to the electrochromic glass. The adjusting instruction can be used for indicating the electrochromic glass to adjust the light transmittance so that the ambient light intensity of the indoor environment where the electronic equipment is located is within a preset light intensity range. After the adjusting instruction is sent to the electrochromic glass to enable the electrochromic glass to adjust the light transmittance, the electronic equipment can obtain the ambient light intensity of the indoor environment at the second frequency, and sends the adjusting stopping instruction to the electrochromic glass when the ambient light intensity of the indoor environment is detected to be within the preset light intensity range. In this embodiment, the electrochromic glazing may be placed at the light entrance of an indoor environment, such as a window.
That is, in the process that the electronic device sends the adjustment instruction to the electrochromic glass to enable the electrochromic glass to adjust the light transmittance of the electrochromic glass, the electronic device may acquire the indoor ambient light intensity at the second frequency through the ambient light sensor. If the detected indoor ambient light intensity does not enter the preset light intensity range, the electrochromic glass can continue to adjust the light transmittance of the electrochromic glass, until the electronic equipment detects that the indoor ambient light intensity enters the preset light intensity range, the electronic equipment can send a stop adjustment instruction to the electrochromic glass, and the stop adjustment instruction can be used for indicating the electrochromic glass to stop adjusting the light transmittance.
In one embodiment, the electronic device may stop sending the adjustment instruction to the electrochromic glass when detecting that the ambient light intensity of the indoor environment is at a median value of the preset light intensity range. For example, the predetermined light intensity range is 320 lux to 480 lux, and the median of the predetermined light intensity range is 400 lux. Then, the electronic device may obtain the ambient light intensity of the indoor environment at the second frequency after sending the adjustment instruction to the electrochromic glass, and send a stop adjustment instruction to the electrochromic glass when detecting that the ambient light intensity of the indoor environment is 400 lux.
It should be noted that, in this embodiment, the first frequency may be slower than the second frequency. For example, the first frequency may be to acquire the ambient light intensity every 5 minutes, and the second frequency may be to acquire the ambient light intensity every 2 seconds. That is, the electronic device may monitor the ambient light intensity of the indoor environment once every 5 minutes. Such monitoring frequency should not be too high or too low. If the first frequency is too high, the electronic device may be frequently awakened, thereby increasing the power consumption of the device. If the first frequency is too low, the electronic device cannot accurately capture the light change of the indoor environment. The second frequency is not too low, otherwise, the electronic device cannot accurately acquire the light intensity change of the indoor environment, and the electronic device cannot accurately control the adjustment of the electrochromic glass on the light transmittance.
In some embodiments, when executing the process of sending the adjustment instruction to the electrochromic glass, the adjustment instruction is used for instructing the electrochromic glass to adjust the light transmittance, the electronic device may perform:
if the obtained light intensity of the environment where the electronic equipment is located is lower than the lower limit value of the interval of the preset light intensity range, the electronic equipment sends an adjusting instruction to the electrochromic glass, and the adjusting instruction is used for indicating the electrochromic glass to increase the light transmittance.
For example, the predetermined light intensity range is 320 lux to 480 lux. Then, if the current ambient light intensity value obtained in 205 is lower than 320 lux, which indicates that the current ambient light intensity in the room is too low, the electronic device may send an adjustment instruction for instructing the electrochromic glass to adjust the transmittance to be high to the electrochromic glass.
In some embodiments, the electronic device, when executing the process of sending the adjustment instruction to the electrochromic glass, where the adjustment instruction is used to instruct the electrochromic glass to adjust the light transmittance, may perform:
if the obtained light intensity of the environment where the electronic equipment is located is higher than the upper limit value of the interval of the preset light intensity range, the electronic equipment sends an adjusting instruction to the electrochromic glass, and the adjusting instruction is used for indicating the electrochromic glass to reduce the light transmittance.
For example, the predetermined light intensity range is 320 lux to 480 lux. Then, if the current ambient light intensity value obtained in 205 is higher than 480 lux, which indicates that the current ambient light intensity in the room is too high, the electronic device may send an adjustment instruction for instructing the electrochromic glass to adjust the transmittance down to the electrochromic glass.
In an implementation manner, this embodiment may further include the following process:
the electronic equipment determines current activity information;
according to the preset corresponding relation between the activity information and the light intensity range, the electronic equipment acquires the light intensity range corresponding to the current activity information, and determines the corresponding light intensity range as the preset light intensity range.
For example, after acquiring a current indoor ambient light intensity value through an ambient light sensor, the electronic device may determine an activity that the user is currently engaged in, resulting in current activity information of the user. In some implementations, the current activity information can be activity information such as reading, watching a video, sleeping, working, and the like.
Then, the electronic device may obtain the light intensity range corresponding to the current activity information according to the preset corresponding relationship between the activity information and the light intensity range. For example, the preset light intensity range corresponding to reading activities of the electronic device is a, the light intensity range corresponding to watching videos is B, the light intensity range corresponding to sleeping is C, and the light intensity range corresponding to working is D. For example, if the current activity information of the user is determined to be reading by the electronic device, the electronic device may obtain the light intensity range a corresponding to the reading activity, and determine the light intensity range a as the preset light intensity range.
And then, the electronic equipment can detect whether the ambient light intensity value obtained by the ambient light sensor is within a preset light intensity range A, and if not, the electronic equipment can send an adjusting instruction to the electrochromic glass for indicating the electrochromic glass to adjust the light transmittance.
In this embodiment, when the electronic device obtains the ambient light intensity value of the indoor environment through the ambient light sensor, the electronic device needs to be located near the user and the ambient light sensor is not shielded. For example, the ambient light sensor and the proximity sensor are located on the same side of the terminal and are arranged adjacently, so that the electronic device can detect whether an object is shielded in front of the electronic device through the proximity sensor, and if the proximity sensor detects that no object is shielded, the ambient light sensor can be considered to be not shielded. If the proximity sensor detects that an object is blocked, it can be considered that the ambient light sensor is blocked.
In other embodiments, the electronic device may also determine the preset light intensity range as follows. For example, a user can control the electrochromic glazing to adjust the light transmittance through an electronic device. When a user feels that the illumination of the indoor environment is dark during the adjustment of the light transmittance by the electrochromic glass, the user can trigger the electronic device to acquire the intensity of the ambient light at that time through the ambient light sensor, which is recorded as L1, for example. When a user feels that the illumination of the indoor environment is bright during the adjustment of the light transmittance by the electrochromic glass, the user can trigger the electronic device to acquire the intensity of the ambient light at that time through the ambient light sensor, which is recorded as L2, for example. Then, the electronic device may determine the light intensity range of L1 to L2 as a preset light intensity range.
Of course, in other embodiments, the user can set the preset light intensity range by himself. Alternatively, the electronic device may preset the light intensity ranges of several operating modes for selection by the user. The light intensity may range between 5 lux and 500 lux. For example, the typical active mode of the room has an intensity range of 50 to 200 lux, and the reading mode has an intensity range of 200 to 400 lux.
In this embodiment, the ambient light sensor of the electronic device may have two operating modes, which are a monitoring mode and a regulating mode. In the monitoring mode, an ambient light sensor of the electronic device may monitor light intensity within the chamber at a first frequency. If the light intensity in the room is within the predetermined light intensity range, the ambient light sensor may continue to operate in the monitoring mode. If the light intensity in the room is not within the preset light intensity range, the ambient light sensor enters a regulation mode. In the regulation mode, the ambient light sensor may acquire the light intensity in the room at a second frequency. If the current indoor light intensity is smaller than the lower limit value of the interval of the preset light intensity range, the electronic equipment can send an adjusting instruction to the electrochromic glass to indicate the electrochromic glass to increase the light transmittance. In the process that the light transmittance of the electrochromic glass is adjusted, the ambient light sensor of the electronic device can continuously obtain indoor light intensity at the second frequency, and when the indoor light intensity is detected to reach the median value of the preset light intensity range, the electronic device sends an adjustment stopping instruction to the electrochromic glass, wherein the adjustment stopping instruction is used for indicating the electrochromic glass to stop adjusting the light transmittance. If the current indoor light intensity is larger than the upper limit value of the interval of the preset light intensity range, the electronic equipment can send an adjusting instruction to the electrochromic glass and indicate the electrochromic glass to reduce the light transmittance. In the process that the light transmittance of the electrochromic glass is adjusted, the ambient light sensor of the electronic device can continuously obtain the indoor light intensity at the second frequency, and when the indoor light intensity is detected to reach the median of the preset light intensity range, the electronic device sends a stop adjusting instruction to the electrochromic glass, wherein the stop adjusting instruction is used for indicating the electrochromic glass to stop adjusting the light transmittance.
Referring to fig. 5 to 6, fig. 5 to 6 are schematic views of a scene of a control method according to an embodiment of the present application.
For example, a user enters a room with the electronic device 302, wherein the electrochromic glazing 301 is installed at a window of the room. The electronic device comprises an ambient light sensor and a first data transmission module, and the electrochromic glass comprises a second data transmission module and a voltage regulation module. The user then places the electronic device on a table and sits down to read the book. At this time, the electronic device may obtain a current ambient light intensity value in the room through its ambient light sensor, and detect whether the obtained ambient light intensity value is within a preset light intensity range.
If the electronic device detects that the current ambient light intensity value in the room is not within the preset light intensity range, the electronic device may further detect whether the ambient light intensity value is smaller than the lower limit value of the interval of the preset light intensity range or larger than the upper limit value of the interval of the preset light intensity range.
If the detected ambient light intensity value is smaller than the lower limit value of the interval of the preset light intensity range, the electronic device can send an adjusting instruction to the second data transmission module of the electrochromic glass, and the adjusting instruction can be used for indicating the electrochromic glass to adjust the light transmittance to be high. After receiving the adjusting instruction through the second data transmission module, the electrochromic glass can increase the voltage applied to two ends of the electrochromic glass by using the voltage adjusting module, so that the light transmittance of the electrochromic glass is improved. In the process of adjusting the light transmittance of the electrochromic glass, the electronic device can continuously acquire the light intensity value in the room through the ambient light sensor, and when the light intensity value in the room is detected to reach the median of the preset light intensity range, the electronic device sends a stop adjustment instruction to the second data transmission module of the electrochromic glass, and the stop adjustment instruction can be used for indicating the electrochromic glass to stop adjusting the light transmittance. At this time, the electrochromic glass may maintain the voltage applied across the electrochromic glass using the voltage adjusting module, thereby maintaining the light transmittance.
If the detected ambient light intensity value is larger than the upper limit value of the interval of the preset light intensity range, the electronic device can send an adjusting instruction to the second data transmission module of the electrochromic glass, and the adjusting instruction can be used for indicating the electrochromic glass to reduce the light transmittance. After the second data transmission module receives the adjusting instruction, the voltage adjusting module of the electrochromic glass can be used for reducing the voltage applied to the two ends of the electrochromic glass, so that the light transmittance of the electrochromic glass is reduced. In the process of regulating the light transmittance of the electrochromic glass, the electronic device can continuously acquire the light intensity value in the room through the ambient light sensor, and when the light intensity value in the room is detected to reach the median value of the preset light intensity range, the electronic device sends a regulating stopping instruction to the second data transmission module of the electrochromic glass, wherein the regulating stopping instruction can be used for indicating the electrochromic glass to stop regulating the light transmittance. At this time, the electrochromic glass may maintain the voltage applied across the electrochromic glass using the voltage adjusting module, thereby maintaining the light transmittance.
If the electronic device detects that the current ambient light intensity value in the room is within the preset light intensity range, the electronic device can continue to monitor the light intensity in the room without temporarily adjusting the light transmittance of the electrochromic glass.
The above-described flow may be as shown in flows 211 to 219 in fig. 6.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a control device according to an embodiment of the present disclosure. The control device may be applied to an electronic device, which may comprise an ambient light sensor. The control device 300 may include: an obtaining module 301, a detecting module 302, and a sending module 303.
An obtaining module 301, configured to obtain, through the ambient light sensor, light intensity of an environment where the electronic device is located.
The detecting module 302 is configured to detect whether the obtained light intensity is within a preset light intensity range.
And the sending module 303 is configured to send an adjusting instruction to the electrochromic glass if the electronic device is not in the preset light intensity range, where the adjusting instruction is used to instruct the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic device is located.
In one embodiment, the sending module 303 may be configured to:
and sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located to the median of the preset light intensity range.
In one embodiment, the obtaining module 301 may be configured to: and acquiring the light intensity of the environment where the electronic equipment is positioned at a first frequency through the ambient light sensor.
Then, the sending module 303 may be configured to: sending an adjusting instruction to electrochromic glass, acquiring the light intensity of the environment at a second frequency, and sending an adjusting stopping instruction to the electrochromic glass when the light intensity of the environment is detected to be within the preset light intensity range, wherein the adjusting stopping instruction is used for indicating the electrochromic glass to stop adjusting the light transmittance; wherein the second frequency is higher than the first frequency.
In one embodiment, the obtaining module 301 may further be configured to:
acquiring a first light intensity value;
acquiring a first coefficient and a second coefficient, wherein the first coefficient is smaller than the second coefficient;
multiplying the first light intensity value by the first coefficient to obtain a second light intensity value;
multiplying the first light intensity value by the second coefficient to obtain a third light intensity value;
and determining a preset light intensity range, wherein the preset light intensity range takes the second light intensity value as a lower interval limit value and takes the third light intensity value as an upper interval limit value.
In an embodiment, the obtaining module 301 may be further configured to:
determining current activity information;
and acquiring a light intensity range corresponding to the current activity information according to a preset corresponding relation between the activity information and the light intensity range, and determining the corresponding light intensity range as the preset light intensity range.
In one embodiment, the sending module 303 may be configured to:
and if the acquired light intensity of the environment where the electronic equipment is located is lower than the lower limit value of the interval of the preset light intensity range, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to increase the light transmittance.
In one embodiment, the sending module 303 may be configured to:
and if the acquired light intensity of the environment where the electronic equipment is located is higher than the upper limit value of the interval of the preset light intensity range, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to reduce the light transmittance.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the control method provided by the embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the flow in the control method provided in the embodiment by calling a computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include components such as an ambient light sensor 401, memory 402, a processor 403, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The ambient light sensor 401 may be used to obtain a light intensity value of the current environment.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
acquiring the light intensity of the environment where the electronic equipment is located through the ambient light sensor;
detecting whether the acquired light intensity is within a preset light intensity range;
if not, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
Referring to fig. 9, an electronic device 500 may include an ambient light sensor 501, a memory 502, a processor 503, an input unit 504, an output unit 505, and the like.
The ambient light sensor 501 may be used to obtain a light intensity value of the current environment.
The memory 502 may be used to store applications and data. Memory 502 stores applications containing executable code. The application programs may constitute various functional modules. The processor 503 executes various functional applications and data processing by running an application program stored in the memory 502.
The processor 503 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 502 and calling data stored in the memory 502, thereby integrally monitoring the electronic device.
The input unit 504 may be used to receive input numbers, character information, or user characteristic information (such as a fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The output unit 505 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be configured by graphics, text, icons, video, and any combination thereof. The output unit may include a display panel.
In this embodiment, the processor 503 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 502 according to the following instructions, and the processor 503 runs the application programs stored in the memory 502, thereby executing:
acquiring the light intensity of the environment where the electronic equipment is located through the ambient light sensor;
detecting whether the acquired light intensity is within a preset light intensity range;
if not, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
In one embodiment, the processor 503 executes the sending of the adjustment instruction to the electrochromic glass, where the adjustment instruction is used to instruct the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic device is located within the preset light intensity range, and may execute: and sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located to the median of the preset light intensity range.
In one embodiment, when the processor 503 executes the obtaining of the ambient light intensity value by the ambient light sensor, it may execute: and acquiring the light intensity of the environment where the electronic equipment is positioned at a first frequency through the ambient light sensor.
Then, the processor 503, when executing the adjustment instruction sent to the electrochromic glazing, may be configured to: sending an adjusting instruction to electrochromic glass, acquiring the light intensity of the environment at a second frequency, and sending an adjusting stopping instruction to the electrochromic glass when the light intensity of the environment is detected to be within the preset light intensity range, wherein the adjusting stopping instruction is used for indicating the electrochromic glass to stop adjusting the light transmittance; wherein the second frequency is higher than the first frequency.
In one embodiment, the processor 503 may further perform: acquiring a first light intensity value; acquiring a first coefficient and a second coefficient, wherein the first coefficient is smaller than the second coefficient; multiplying the first light intensity value by the first coefficient to obtain a second light intensity value; multiplying the first light intensity value by the second coefficient to obtain a third light intensity value; and determining a preset light intensity range, wherein the preset light intensity range takes the second light intensity value as a lower interval limit value and takes the third light intensity value as an upper interval limit value.
In one embodiment, the processor 503 may further perform: determining current activity information; and acquiring a light intensity range corresponding to the current activity information according to a preset corresponding relation between the activity information and the light intensity range, and determining the corresponding light intensity range as the preset light intensity range.
In one embodiment, the processor 503 executes the sending of the adjustment instruction to the electrochromic glass, and when the adjustment instruction is used to instruct the electrochromic glass to adjust the light transmittance, the following steps may be executed: and if the acquired light intensity of the environment where the electronic equipment is located is lower than the lower limit value of the interval of the preset light intensity range, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to increase the light transmittance.
In one embodiment, the processor 503 executes the sending of the adjustment instruction to the electrochromic glass, and when the adjustment instruction is used to instruct the electrochromic glass to adjust the light transmittance, the following steps may be executed: and if the acquired light intensity of the environment where the electronic equipment is located is higher than the upper limit value of the interval of the preset light intensity range, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to reduce the light transmittance.
Referring to fig. 10, fig. 10 is a control system 600 according to an embodiment of the present disclosure, where the control system 600 may include an electronic device 610 and an electrochromic glass 620. The electronic device 610 may include an ambient light sensor 611 and a first data transmission module 612. The electrochromic glazing 620 includes a second data transmission module 621 and a voltage adjustment module 622.
The electronic device 610 is configured to obtain, through the ambient light sensor 611 of the electronic device, light intensity of an environment where the electronic device 610 is located, and detect whether the obtained light intensity is within a preset light intensity range. If not, the electronic device 610 may send an adjustment instruction to the electrochromic glass 620 through the first transmission module thereof, and the adjustment instruction may be used to instruct the electrochromic glass 620 to adjust the light transmittance.
The electrochromic glass 620 can be used for receiving an adjustment instruction from the electronic device 610 through the second data transmission module 621, and adjusting the light transmittance of the electrochromic glass 620 through the voltage adjustment module 622 according to the adjustment instruction, so as to adjust the light intensity of the environment where the electronic device 610 is located within the preset light intensity range.
In one embodiment, the first data transmission module 612 and the second data transmission module 621 may both be wireless data transmission modules. For example, the first data transmission module 612 and the second data transmission module 621 may be both bluetooth data transmission modules or infrared wireless transmission modules. For example, the higher the voltage applied across the electrochromic glazing 620, the higher the transmittance of the electrochromic glazing 620. If the light intensity of the environment where the electronic device 610 is located detected by the ambient light sensor 611 of the electronic device 610 is 200 lux. The predetermined light intensity range is 320 to 400 lux. Then, the electronic device 610 may detect that the light intensity of the current environment is lower than the interval lower limit value of the preset light intensity range. At this time, the electronic device 610 may send an adjustment instruction to the second data transmission module 621 of the electrochromic glazing 620 through the first data transmission module 612 thereof, where the adjustment instruction may be used to instruct the electrochromic glazing 620 to adjust its light transmittance higher. After receiving the adjustment instruction, the electrochromic glass 620 may increase the voltage applied across the electrochromic glass 620 by the voltage adjustment module 622 according to the adjustment instruction, thereby increasing the light transmittance of the electrochromic glass 620. In the process of increasing the light transmittance of the electrochromic glass 620, the electronic device 610 may obtain the light intensity of the environment at the second frequency, and detect whether the light intensity of the environment has entered a preset light intensity range. For example, when it is detected that the light intensity value of the environment is the middle value of the preset light intensity range, the electronic device 610 may send another stop adjustment instruction to the second data transmission module 621 of the electrochromic glass 620 through the first data transmission module 612, where the stop adjustment instruction may be used to instruct the electrochromic glass 620 to stop adjusting the light transmittance. After receiving the stop adjustment instruction, the electrochromic glass 620 may not increase the voltage applied across the electrochromic glass 620, so that the light intensity of the environment where the electronic device 610 is located is maintained at the median value of the preset light intensity range, for example, 360 lux.
For another example, if the electronic device 610 detects the light intensity of the environment in which the electronic device 610 is located through its ambient light sensor 611 is 500 lux. The predetermined light intensity range is 320 to 400 lux. Then, the electronic device 610 may detect that the light intensity of the current environment is greater than the interval upper limit value of the preset light intensity range. At this time, the electronic device 610 may send an adjustment instruction to the second data transmission module 621 of the electrochromic glazing 620 through the first data transmission module 612 thereof, where the adjustment instruction may be used to instruct the electrochromic glazing 620 to adjust its light transmittance down. After receiving the adjustment instruction, the electrochromic glass 620 may reduce the voltage applied across the electrochromic glass 620 by the voltage adjustment module 622 according to the adjustment instruction, thereby reducing the light transmittance of the electrochromic glass 620. In the process of reducing the light transmittance of the electrochromic glass 620, the electronic device 610 may obtain the light intensity of the environment according to the second frequency, and detect whether the light intensity of the environment has entered a preset light intensity range. For example, when it is detected that the light intensity value of the environment is the middle value of the preset light intensity range, the electronic device 610 may send another stop adjustment instruction to the second data transmission module 621 of the electrochromic glass 620 through the first data transmission module 612, where the stop adjustment instruction may be used to instruct the electrochromic glass 620 to stop adjusting the light transmittance. After receiving the stop adjustment instruction, the electrochromic glass 620 may not decrease the voltage applied across the electrochromic glass 620, so that the light intensity of the environment where the electronic device 610 is located is maintained at the median value of the preset light intensity range, for example, 360 lux.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the control method, and are not described herein again.
The control device provided in the embodiment of the present application and the control method in the above embodiments belong to the same concept, and any method provided in the embodiment of the control method may be run on the control device, and the specific implementation process thereof is described in the embodiment of the control method, and is not described herein again.
It should be noted that, for the control method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the control method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and during the execution, the process of implementing the embodiment of the control method can be included as the process of the embodiment of the control method. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the control device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer-readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description has provided a control method, apparatus, storage medium, electronic device and control system provided in an embodiment of the present application, and specific examples have been applied herein to explain the principles and embodiments of the present application, and the description of the foregoing embodiments is only used to help understand the method and its core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A control method is applied to an electronic device, and is characterized in that the electronic device comprises an ambient light sensor and a proximity sensor, the ambient light sensor is arranged adjacent to the proximity sensor, the operating mode of the ambient light sensor has a monitoring mode and a regulating mode, and the control method comprises the following steps:
detecting, by the proximity sensor, whether an object is obstructing the ambient light sensor;
if yes, controlling the ambient light sensor not to work;
if not, controlling the working mode of the ambient light sensor to be the monitoring mode, and acquiring the light intensity of the environment where the electronic equipment is located at a first frequency through the ambient light sensor;
determining current activity information;
acquiring a light intensity range corresponding to the current activity information according to a preset corresponding relation between the activity information and the light intensity range, and determining the corresponding light intensity range as a preset light intensity range;
detecting whether the acquired light intensity is within the preset light intensity range;
if yes, controlling the ambient light sensor to be in the monitoring mode;
if not, controlling the ambient light sensor to be in the regulation and control mode, sending an adjustment instruction to the electrochromic glass, acquiring the light intensity of the environment at a second frequency, and sending an adjustment stopping instruction to the electrochromic glass when detecting that the light intensity of the environment is within the preset light intensity range, wherein the adjustment stopping instruction is used for indicating the electrochromic glass to stop adjusting the light transmittance, and the second frequency is higher than the first frequency;
the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
2. The control method according to claim 1, wherein the sending of an adjustment instruction to the electrochromic glass is used for instructing the electrochromic glass to adjust light transmittance so as to adjust the light intensity of the environment where the electronic device is located within the preset light intensity range, and the method includes:
and sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located to the median of the preset light intensity range.
3. The control method according to claim 1, characterized in that the method further comprises:
acquiring a first light intensity value;
acquiring a first coefficient and a second coefficient, wherein the first coefficient is smaller than the second coefficient;
multiplying the first light intensity value by the first coefficient to obtain a second light intensity value;
multiplying the first light intensity value by the second coefficient to obtain a third light intensity value;
and determining a preset light intensity range, wherein the preset light intensity range takes the second light intensity value as a lower interval limit value and takes the third light intensity value as an upper interval limit value.
4. The control method according to claim 1, wherein the sending of the adjustment instruction to the electrochromic glass, the adjustment instruction being used for instructing the electrochromic glass to adjust the light transmittance, comprises:
and if the acquired light intensity of the environment where the electronic equipment is located is lower than the lower limit value of the interval of the preset light intensity range, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to increase the light transmittance.
5. The control method according to claim 1, wherein the sending of the adjustment instruction to the electrochromic glass, the adjustment instruction being used for instructing the electrochromic glass to adjust the light transmittance, comprises:
and if the acquired light intensity of the environment where the electronic equipment is located is higher than the upper limit value of the interval of the preset light intensity range, sending an adjusting instruction to the electrochromic glass, wherein the adjusting instruction is used for indicating the electrochromic glass to reduce the light transmittance.
6. A control device applied to electronic equipment is characterized in that the electronic equipment comprises an ambient light sensor and a proximity sensor, the ambient light sensor is arranged adjacent to the proximity sensor, the working mode of the ambient light sensor has a monitoring mode and a regulating mode, and the control device comprises:
the acquisition module is used for detecting whether an object shelters the ambient light sensor through the proximity sensor; if yes, controlling the ambient light sensor not to work; if not, controlling the working mode of the ambient light sensor to be the monitoring mode, and acquiring the light intensity of the environment where the electronic equipment is located at a first frequency through the ambient light sensor;
the acquisition module is further used for determining current activity information; acquiring a light intensity range corresponding to the current activity information according to a preset corresponding relation between the activity information and the light intensity range, and determining the corresponding light intensity range as a preset light intensity range;
the detection module is used for detecting whether the acquired light intensity is within a preset light intensity range;
the sending module is used for controlling the ambient light sensor to be in the monitoring mode if the ambient light sensor is in the monitoring mode; if not, controlling the ambient light sensor to be in the regulation and control mode, sending an adjustment instruction to the electrochromic glass, acquiring the light intensity of the environment at a second frequency, and sending an adjustment stopping instruction to the electrochromic glass when detecting that the light intensity of the environment is within the preset light intensity range, wherein the adjustment stopping instruction is used for indicating the electrochromic glass to stop adjusting the light transmittance, and the second frequency is higher than the first frequency; the adjusting instruction is used for indicating the electrochromic glass to adjust the light transmittance so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
7. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 5.
8. An electronic device comprising a memory, a processor, wherein the processor is configured to perform the method of any one of claims 1 to 5 by invoking a computer program stored in the memory.
9. A control system is characterized by comprising electronic equipment and electrochromic glass, wherein the electronic equipment comprises an ambient light sensor, a first data transmission module and a proximity sensor, the ambient light sensor is arranged adjacent to the proximity sensor, the working mode of the ambient light sensor is provided with a monitoring mode and a regulating mode, and the electrochromic glass comprises a second data transmission module and a voltage regulation module;
detecting, by the proximity sensor, whether an object is obstructing the ambient light sensor; if yes, controlling the ambient light sensor not to work; if not, controlling the working mode of the ambient light sensor to be the monitoring mode, and acquiring the light intensity of the environment where the electronic equipment is located at a first frequency through the ambient light sensor; determining current activity information; acquiring a light intensity range corresponding to the current activity information according to a preset corresponding relation between the activity information and the light intensity range, and determining the corresponding light intensity range as a preset light intensity range; detecting whether the obtained light intensity is within a preset light intensity range; if yes, controlling the ambient light sensor to be in the monitoring mode; if not, controlling the ambient light sensor to be in the regulation and control mode, sending a regulation instruction to the electrochromic glass through a first transmission module, obtaining the light intensity of the environment at a second frequency, and sending a regulation stopping instruction to the electrochromic glass by the first transmission module when detecting that the light intensity of the environment is within the preset light intensity range, wherein the regulation stopping instruction is used for indicating the electrochromic glass to stop regulating the light transmittance, and the second frequency is higher than the first frequency; the adjusting instruction is used for instructing the electrochromic glass to adjust the light transmittance;
the electrochromic glass is used for receiving the adjusting instruction from the electronic equipment through the second data transmission module, and adjusting the light transmittance of the electrochromic glass through the voltage adjusting module according to the adjusting instruction so as to adjust the light intensity of the environment where the electronic equipment is located within the preset light intensity range.
10. The control system of claim 9, wherein the first data transmission module and the second data transmission module are wireless data transmission modules.
11. The control system of claim 10, wherein the first data transmission module and the second data transmission module are bluetooth data transmission modules or infrared wireless transmission modules.
CN201910483445.2A 2019-06-04 2019-06-04 Control method, control device, storage medium, electronic device and control system Active CN110221500B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910483445.2A CN110221500B (en) 2019-06-04 2019-06-04 Control method, control device, storage medium, electronic device and control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910483445.2A CN110221500B (en) 2019-06-04 2019-06-04 Control method, control device, storage medium, electronic device and control system

Publications (2)

Publication Number Publication Date
CN110221500A CN110221500A (en) 2019-09-10
CN110221500B true CN110221500B (en) 2022-11-04

Family

ID=67819748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910483445.2A Active CN110221500B (en) 2019-06-04 2019-06-04 Control method, control device, storage medium, electronic device and control system

Country Status (1)

Country Link
CN (1) CN110221500B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111458969B (en) * 2020-05-18 2022-11-04 福州京东方光电科技有限公司 Projection curtain, projection system and projection display method
CN113945058A (en) * 2021-03-03 2022-01-18 海信(山东)冰箱有限公司 Refrigerator control method and refrigerator
WO2023092550A1 (en) * 2021-11-29 2023-06-01 京东方科技集团股份有限公司 Dimming system, dimming method, and dimming glass
CN115145068B (en) * 2022-05-31 2023-10-17 中国第一汽车股份有限公司 Automobile dimming glass control system with eye protection function and control method
CN115022520A (en) * 2022-07-07 2022-09-06 维沃移动通信有限公司 Camera module, electronic equipment, control method and control device
CN117631394B (en) * 2023-12-28 2024-05-28 浙江大学 Self-adaptive light control device, self-adaptive light control system and self-adaptive light control method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760080B1 (en) * 1999-08-19 2004-07-06 Garret R. Moddel Light modulating eyewear assembly
CN101592792A (en) * 2008-05-30 2009-12-02 北京市加华博来科技有限公司 Full-automatic zoning is regulated the Mirror frame structure of sunglasses
WO2014124592A1 (en) * 2013-02-17 2014-08-21 Saint-Gobain Glass France Shading device, vehicle and glass shading method
CN105578079A (en) * 2015-12-18 2016-05-11 广东欧珀移动通信有限公司 Image sensor, method for adjusting imaging quality of image sensor and imaging device
CN107685614A (en) * 2017-08-24 2018-02-13 东风延锋(十堰)汽车饰件系统有限公司 A kind of automobile sun-shading glass and its sunshading method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2764751C (en) * 2009-06-11 2018-01-09 Switch Materials Inc. Variable transmittance optical filter and uses thereof
CN103310719B (en) * 2012-03-13 2016-05-11 原相科技股份有限公司 The portable electron device of automatic testing method and use the method
CN102954836B (en) * 2012-10-26 2015-04-15 京东方科技集团股份有限公司 Ambient light sensor, user applying device and display device
CN104616633B (en) * 2015-02-27 2017-03-22 上海卓易科技股份有限公司 Method and device for adjusting display screen of portable terminal
CN104834497A (en) * 2015-05-15 2015-08-12 北京智膜科技有限公司 On screen display control method and controller
US10217439B2 (en) * 2016-02-04 2019-02-26 Apple Inc. Electronic device with ambient light sensor system
US9994091B2 (en) * 2016-08-12 2018-06-12 GM Global Technology Operations LLC Window system for a passenger compartment of a vehicle
CN106060284B (en) * 2016-08-15 2019-05-31 Oppo广东移动通信有限公司 The method, device and mobile terminal of backlight control
CN208459743U (en) * 2018-04-25 2019-02-01 东旭科技集团有限公司 For controlling the device and electrochromic system of electrochomeric glass
CN108917921B (en) * 2018-06-15 2020-06-09 江西合力泰科技有限公司 Ambient light intensity detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6760080B1 (en) * 1999-08-19 2004-07-06 Garret R. Moddel Light modulating eyewear assembly
CN101592792A (en) * 2008-05-30 2009-12-02 北京市加华博来科技有限公司 Full-automatic zoning is regulated the Mirror frame structure of sunglasses
WO2014124592A1 (en) * 2013-02-17 2014-08-21 Saint-Gobain Glass France Shading device, vehicle and glass shading method
CN105578079A (en) * 2015-12-18 2016-05-11 广东欧珀移动通信有限公司 Image sensor, method for adjusting imaging quality of image sensor and imaging device
CN107685614A (en) * 2017-08-24 2018-02-13 东风延锋(十堰)汽车饰件系统有限公司 A kind of automobile sun-shading glass and its sunshading method

Also Published As

Publication number Publication date
CN110221500A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110221500B (en) Control method, control device, storage medium, electronic device and control system
CN109064996B (en) Display adjustment method and device, storage medium and electronic equipment
US11100895B2 (en) Display method, display apparatus, and graphical user interface
CN109143717B (en) Control method and device of electronic equipment, storage medium and electronic equipment
CN109029768B (en) Temperature reminding method and device of electronic equipment, storage medium and electronic equipment
CN109246288B (en) Control method and device of electronic equipment, storage medium and electronic equipment
CN109101833B (en) Content display method, content display device, storage medium and electronic equipment
WO2020019802A1 (en) Device control method and apparatus, storage medium and electronic device
US20060061563A1 (en) Power-management method and system for electronic appliances
CN106713654A (en) Mobile terminal display adjustment method and mobile terminal
CN109126132B (en) Game role position prompting method and device, storage medium and electronic equipment
CN203057250U (en) Flat double-screen display mobile terminal
CN109144814B (en) Information reminding method and device, storage medium and electronic equipment
US8743447B2 (en) Electrochromic device and storage device and manufacturing method thereof
CN106559576A (en) A kind of screen adjustment method and mobile terminal
CN109001951A (en) Picture and text showing method, apparatus, electrochromic window assemblies and electronic equipment
CN109188820B (en) Device control method, device, storage medium and electronic device
CN109192178B (en) Control method and device of electronic equipment, storage medium and electronic equipment
CN106761234A (en) A kind of windowpane of tunable optical
CN108873548B (en) Electrochromic method and device, electrochromic assembly and electronic equipment
CN108616697B (en) Shooting state reminding method and device, storage medium and electronic equipment
CN109086103B (en) Application display method and device, storage medium and electronic equipment
US20190235540A1 (en) Display device, electronic device and display control method for screen
CN109634023B (en) Electrochromic assembly processing method and device, electronic equipment and readable storage medium
TW201432643A (en) Anti-glare rearview mirror and its color changing method

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