CN109410833A - Environment light detection method, device, terminal and storage medium - Google Patents
Environment light detection method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN109410833A CN109410833A CN201810998400.4A CN201810998400A CN109410833A CN 109410833 A CN109410833 A CN 109410833A CN 201810998400 A CN201810998400 A CN 201810998400A CN 109410833 A CN109410833 A CN 109410833A
- Authority
- CN
- China
- Prior art keywords
- light
- environment light
- duration
- light sensor
- oled screen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
- G09G3/20—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
- G09G3/22—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
- G09G3/30—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
- G09G3/32—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
- G09G3/3208—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
Abstract
The disclosure is directed to a kind of environment light detection method, device, terminal and storage mediums.The terminal includes: light sensor, processor and Organic Light Emitting Diode OLED screen curtain;The processor refreshes display for controlling the OLED screen curtain with the refresh cycle;The processor is also used to control the light sensor, at the time of starting to detect environment light and terminate detection environment light within the refresh cycle;Wherein, it is described start detect environment light and terminate detection environment light at the time of between, in the OLED screen curtain in the light sensor detection range in region do not shine;The light sensor, for detecting environment light according to the control of the processor.The accuracy of the luminous intensity for the environment light that the disclosure improves.
Description
Technical field
This disclosure relates to which optical technical field more particularly to a kind of environment light detection method, device, terminal and storage are situated between
Matter.
Background technique
Currently, considering the saturating of Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) screen
The screen accounting of photosensitiveness and screen light sensor can be arranged below screen.
In the related technology, during display, OLED screen curtain can shine OLED screen curtain, and the light below screen is arranged in
The luminous intensity that sensor detects is the luminous luminous intensity of environment optical superposition OLED screen curtain.In general, by being arranged in OLED screen curtain
When the luminous intensity of the light sensor detection environment light of lower section, OLED screen curtain is subtracted according to the luminous intensity that light sensor detects
Luminous luminous intensity, to obtain the luminous intensity of environment light.
Summary of the invention
To overcome the problems in correlation technique, the disclosure provides a kind of environment light detection method, device, terminal and deposits
Storage media.
According to the first aspect of the embodiments of the present disclosure, a kind of terminal is provided, comprising: light sensor, processor and have
Machine light emitting diode OLED screen curtain;
The processor refreshes display for controlling the OLED screen curtain with the refresh cycle;
The processor is also used to control the light sensor, starts to detect environment light within the refresh cycle and terminates inspection
At the time of surveying environment light;Wherein, between at the time of this starts to detect environment light and terminate detection environment light, in the OLED screen curtain
It does not shine in the region in the detection range of the light sensor;
The light sensor, the control for managing device according to this detect environment light.
In a kind of design in the cards, the processor, be specifically used for the light sensor configure the first duration and
Second duration, first duration indicate the light sensor since receive refresh signal to and detect environment light is spaced when
Long, second duration expression detects the duration that environment light is spaced, the two neighboring brush from the refresh signal to end is received
Time interval between new signal is consistent with the refresh cycle;
The light sensor is specifically used for detecting environment according to the refresh signal and first duration and the second duration
Light.
In a kind of design in the cards, which is the signal of OLED screen curtain output, alternatively, the refreshing is believed
Number for the processor output signal.
In a kind of design in the cards, the light sensor, specifically for receiving refreshing letter by interrupt pin
Number.
In a kind of design in the cards, the processor, being specifically used for should by the control of pulse width modulation (PWM) signal
OLED screen curtain is refreshed with the refresh cycle to be shown.
In a kind of design in the cards, the duty ratio of the pwm signal is less than or equal to default duty ratio, this is preset and accounts for
Sky than for this start detect environment light and terminate detect environment light at the time of between when it is a length of it is default minimum duration when duty
Than.
In a kind of design in the cards, the resolution ratio of the light sensor is greater than or equal to default resolution ratio, this is pre-
If resolution ratio is to be able to detect the minimum resolution of environment light through the OLED screen curtain.
According to the second aspect of an embodiment of the present disclosure, a kind of environment light detection method is provided, comprising:
It controls Organic Light Emitting Diode OLED screen curtain and display is refreshed with the refresh cycle;
Light sensor is controlled, at the time of starting to detect environment light and terminate detection environment light within the refresh cycle;Its
In, at the time of this starts to detect environment light and terminate detection environment light between, in the light sensor in the OLED screen curtain
Region in detection range does not shine.
In a kind of design in the cards, which started to detect environment light within the refresh cycle
At the time of with terminating to detect environment light, comprising:
Configuring the first duration and the second duration, first duration to the light sensor indicates the light sensor from reception
To refresh signal to starting to detect the duration that is spaced of environment light, which is indicated from the refresh signal is received to knot
Beam detects the duration that environment light is spaced, and the time interval between the two neighboring refresh signal is consistent with the refresh cycle.
According to the third aspect of an embodiment of the present disclosure, a kind of ambient light detection device is provided, comprising:
First control module is configured as control Organic Light Emitting Diode OLED screen curtain with the refresh cycle and refreshes display;
Second control module is configured as control light sensor, starts to detect environment light and knot within the refresh cycle
At the time of beam detects environment light, when which detects environment light, the inspection of the light sensor is in the OLED screen curtain
The region surveyed in range does not shine.
In a kind of design in the cards, which includes: configuration submodule, is configured as to the light
Sensor configures the first duration and the second duration, which indicates the light sensor since receiving refresh signal to
The duration that detection environment light is spaced, the second duration device are indicated from the refresh signal is received between end detection environment light institute
Every duration, the time interval between the two neighboring refresh signal is consistent with the refresh cycle.
According to a fourth aspect of embodiments of the present disclosure, a kind of terminal is provided, comprising:
Processor and memory for storing computer instruction;It is above-mentioned that the processor runs computer instruction execution
The described in any item methods of second aspect.
According to a fifth aspect of the embodiments of the present disclosure, a kind of non-transitorycomputer readable storage medium is provided, when this is deposited
When instruction in storage media is executed by the processor of terminal, enable the terminal to execute the described in any item sides of above-mentioned second aspect
Method.
Environment light detection method, device, terminal and the storage medium that the disclosure provides control the light by processor and pass
At the time of sensor started to detect environment light and terminate detection environment light within the refresh cycle of OLED screen curtain, this starts to detect environment
Between at the time of light and end detection environment light, the region in detection range in the OLED screen curtain in the light sensor is not
It shines, it, can be at the time of starting to detect environment light and terminate detection environment light within the refresh cycle so that the light sensor
The luminous intensity for detecting actual environment light subtracts the luminous light of OLED screen curtain with the luminous intensity detected according to light sensor
Intensity, the luminous intensity for obtaining environment light are compared, the accuracy of the luminous intensity of the environment light improved.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure
Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is a kind of block diagram of terminal shown according to an exemplary embodiment;
Fig. 2A is a kind of schematic diagram of the not light emitting region of OLED screen curtain shown according to an exemplary embodiment;
Fig. 2 B is the schematic diagram that a kind of OLED screen curtain shown according to an exemplary embodiment refreshes displaying principle;
Fig. 2 C is a kind of schematic diagram of the not light emitting region of the OLED screen curtain shown according to another exemplary embodiment;
Fig. 3 is a kind of block diagram of environment light detection method shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of ambient light detection device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the ambient light detection device shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of the terminal shown according to a further exemplary embodiment;
Fig. 7 is a kind of block diagram of the terminal 800 shown according to a further exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of block diagram of terminal shown according to an exemplary embodiment.As shown in Figure 1, provided in this embodiment
Terminal 10 may include: light sensor 11, processor 12 and OLED screen curtain 13;The processor 12, for controlling the OLED
Screen 13 is refreshed with the refresh cycle to be shown;The processor 12 is also used to control the light sensor 11, opens within the refresh cycle
At the time of detection environment light begin with detection environment light is terminated;Wherein, this start detect environment light and terminate detection environment light when
Between quarter, the region in detection range in the OLED screen curtain in the light sensor 11 does not shine;The light sensor 11,
Control for managing device 12 according to this detects environment light.
Specifically, as shown in Figure 2 A, during which controls OLED screen curtain 13 with refresh cycle refreshing display,
There are one or more non-luminous regions in a moment OLED screen curtain 13, and non-luminous region can be with the time
Passage continuous moving.Therefore, there may be the regions being in the detection range of the light sensor 11 in the OLED screen curtain
Non-luminous special time period (between at the time of starting to detect environment light and terminate detection environment light in the refresh cycle when
Between section).It is understood that non-luminous region of OLED screen curtain 13 changes according to certain rule within a refresh cycle.
It should be noted that the region of oblique line filling is non-luminous region in Fig. 2A and Fig. 2 C.
It should be noted that the mode of display can be refreshed according to the position of light sensor 11 and OLED screen curtain 13,
Determine the special time period.
Between at the time of this starts to detect environment light and terminate detection environment light in the refresh cycle, the OLED screen curtain
In region in the detection range in the light sensor 11 do not shine, therefore the light sensor 11, in the refresh cycle
At the time of inside starting to detect environment light and terminate detection environment light, the luminous intensity of actual environment light can detecte.
Optionally, processor 12 can control light sensor 11 by way of sending instruction to light sensor 11
At the time of starting to detect environment light and terminate detection environment light.Further alternative, processor 12 is specifically used for passing to the light
Sensor 11 send first instruction and second instruction, first instruction for control light sensor 11 start detect environment light, second
Instruction terminates detection environment light for controlling light sensor 11.Correspondingly, the light sensor 11, be specifically used for according to this
One instruction and the second instruction, detect environment light.
Terminal provided in this embodiment controls the light sensor within the refresh cycle of OLED screen curtain by processor and opens
Begin detection environment light and terminate detection environment light at the time of, this start detect environment light and terminate detection environment light at the time of it
Between, the region in detection range in the OLED screen curtain in the light sensor does not shine, so that the light sensor, at this
At the time of starting to detect environment light and terminate detection environment light in refresh cycle, the light intensity of actual environment light can detecte
Degree subtracts the luminous luminous intensity of OLED screen curtain with the luminous intensity detected according to light sensor, obtains the luminous intensity of environment light
It compares, the accuracy of the luminous intensity of the environment light improved.
Optionally, processor 12 can be by configuring light sensor 11, to control the beginning of light sensor 11
At the time of detecting environment light and terminate detection environment light.Further alternative, processor 12 is specifically used for the light sensor
11 configuration the first durations and the second duration, first duration indicate that since the light sensor 11 examined receive refresh signal to
The duration that environment light is spaced is surveyed, which indicates that the light sensor 11 is detected from the refresh signal to end is received
The duration that environment light is spaced.Correspondingly, the light sensor 11, is specifically used for according to the refresh signal and first duration
With the second duration, environment light is detected.
Wherein, the time interval between the two neighboring refresh signal is consistent with the refresh cycle.Optionally, two neighboring
Time interval between the refresh signal is consistent with the refresh cycle, be specifically as follows between the two neighboring refresh signal when
Between interval it is equal or approximately equal with the refresh cycle.Due within a refresh cycle, non-luminous area of OLED screen curtain 13
Domain changes according to certain rule, therefore refresh signal, the first duration and the second duration can indicate that light sensor 11 can be examined
Survey the time of actual environment light.
Optionally, processor 12 can configure the register of light sensor 11.
Here, processor 12 starts to detect ring by configuring light sensor 11 to control light sensor 11
At the time of border light and end detection environment light, it can be controlled brought by instruction to avoid processor by being sent to light sensor 11
Time delay processed, and the error as brought by delay of control, the accuracy of the luminous intensity of the environment light further improved.
Optionally, which can be the signal of the processor 12 output.I.e., it is possible to be passed from processor 12 to light
Sensor 12 exports refresh signal.
Alternatively, which can be the signal of the OLED screen curtain 13 output.I.e., it is possible to from OLED screen curtain 13 to
Light sensor 12 exports refresh signal.Here, since the refresh signal that OLED screen curtain 13 exports can more accurately react
Therefore the Flushing status of OLED screen curtain is the signal of the OLED screen curtain 13 output by refresh signal, can be further improved
The accuracy of the luminous intensity of the environment light arrived.
Wherein, which, which is specifically as follows, is used to indicate OLED screen curtain 13 and starts the signal once refreshed, such as
VSYNC signal, alternatively, the refresh signal, which is specifically as follows, is used to indicate the signal that OLED screen curtain 13 terminates once to refresh.
It is further alternative, the light sensor 12, specifically for receiving the refresh signal by interrupt pin.Here,
The refresh signal is received by interrupt pin, light sensor 12 can be improved for the processing priority of the refresh signal, make
Environment light can be detected in time according to the refresh signal and first duration and the second duration by obtaining light sensor, thus into
The accuracy of the luminous intensity for the environment light that one step improves.
Optionally, the processor 12, be specifically used for by pulse width modulate (Pulse Width Modulation,
PWM) signal is controlled the OLED screen curtain 13 and is shown with refresh cycle refreshing.Here, processor 12 is gone into operation by pwm signal to OLED
Screen is refreshed with the refresh cycle to be shown, can be controlled the brightness of OLED screen curtain.Specifically, when pwm signal is high level
When, the display line that the pwm signal is controlled in OLED screen curtain is bright, when pwm signal is high level, PWM letter in OLED screen curtain
Number display line controlled goes out.When the duty ratio of pwm signal is bigger, the brighter display of OLED screen curtain;When the duty of pwm signal
Than getting over hour, the brightness of OLED screen curtain is darker.It should be noted that a pwm signal can control one or more display lines,
The disclosure is not construed as limiting this.Here, the display line of OLED screen curtain can be related with the resolution ratio of OLED, when point of OLED screen curtain
When resolution is 2436x1125, the line number of the display line of OLED screen curtain can be 1125.
With the line number of the display line of OLED screen curtain for 6 rows, respectively display line 1- display line 6, a pwm signal control one
A display line, refresh cycle were equal to for the period of pwm signal, and processor 12 controls the OLED screen curtain by pwm signal
13 can be as shown in Figure 2 B with the concrete mode that the refresh cycle refreshes display.Also, display line 2 is to display in moment t Fig. 2 B
The corresponding pwm signal of row 4 is low level, thus moment t display line 2 to the corresponding region of display line 4 be OLED screen curtain not
Light emitting region.
By taking the refresh cycle is equal to 4 times of period of pwm signal as an example, the not light emitting region of OLED screen curtain can be such as Fig. 2 C
It is shown.Due to having the PWM in 4 periods in a refresh cycle, there are the continuous regions of low level at 4, therefore such as Fig. 2 C institute
Showing OLED screen curtain, there are 4 not light emitting regions.
Since the duty ratio of pwm signal is bigger, the time that the display line that the pwm signal is controlled in OLED screen curtain goes out is got over
Short, based on continuously displaying, the not light emitting region that the time that row goes out is formed is smaller, therefore for the light intensity of the environment light improved
The accuracy of degree, optionally, the duty ratio of the pwm signal are less than or equal to default duty ratio.Wherein, which is to be somebody's turn to do
Between at the time of starting to detect environment light and terminate detection environment light when a length of default minimum duration when duty ratio.
Due to exposing to the environment light of light sensor 11 through OLED screen curtain 13,13 transmitance of OLED screen curtain will receive
It influences, therefore the accuracy of the luminous intensity for the environment light improved, optionally, the resolution ratio of the light sensor is greater than
Or it is equal to default resolution ratio.Wherein, which is that the minimum resolution of environment light is able to detect through the OLED screen curtain.
Fig. 3 is a kind of block diagram of environment light detection method shown according to an exemplary embodiment.It is provided in this embodiment
The executing subject of environment light detection method can be terminal, such as mobile phone, tablet computer etc..As shown in figure 3, the side of the present embodiment
Method may comprise steps of:
In step 301, control OLED screen curtain is refreshed with the refresh cycle and is shown.
In this step, optionally, step 301 be can specifically include: control the OLED screen curtain by pwm signal to refresh week
Phase refreshes display.Further alternative, the duty ratio of the pwm signal is less than or equal to default duty ratio, which is
Between at the time of this starts to detect environment light and terminate detection environment light when a length of default minimum duration when duty ratio.
In step 302, light sensor is controlled, start to detect environment light within the refresh cycle and terminates detection environment
At the time of light;Wherein, between at the time of this starts to detect environment light and terminate detection environment light, the light is in the OLED screen curtain
Region in the detection range of line sensor does not shine.
In this step, optionally, step 302 be can specifically include: send the first instruction and second to the light sensor
Instruction, the first instruction start to detect environment light for controlling light sensor, and the second instruction terminates for controlling light sensor
Detect environment light.Alternatively, step 302 can specifically include: configuring the first duration and the second duration to the light sensor, this
One duration indicates the light sensor since the duration for receiving refresh signal to and detecting environment light and be spaced, second duration
Device is indicated from the refresh signal is received to terminating the duration that is spaced of detection environment light, between the two neighboring refresh signal
Time interval is consistent with the refresh cycle.
Further alternative, the method for the present embodiment can also include: to send refresh signal to light sensor.
It should be noted that the concrete mode in the present embodiment has carried out retouching in detail in aforementioned terminals embodiment
It states, no detailed explanation will be given here.
Environment light detection method provided in this embodiment, by controlling light sensor, in the refresh cycle of OLED screen curtain
At the time of inside starting to detect environment light and terminate detection environment light;Wherein, this starts to detect environment light and terminates detection environment light
At the time of between, in the OLED screen curtain in the light sensor detection range in region do not shine so that the light pass
Sensor can detecte actual environment at the time of starting to detect environment light and terminate detection environment light within the refresh cycle
The luminous intensity of light subtracts the luminous luminous intensity of OLED screen curtain with the luminous intensity detected according to light sensor, obtains environment light
Luminous intensity compare, the accuracy of the luminous intensity of the environment light improved.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device
Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of ambient light detection device shown according to an exemplary embodiment.The device can pass through
Software, hardware or both are implemented in combination with as some or all of of terminal.Referring to Fig. 4, which includes: the first control
Module 401 and the second control module 402.
First control module 401 is configured as control Organic Light Emitting Diode OLED screen curtain with the refresh cycle and refreshes display;
Second control module 402, be configured as control light sensor, start within the refresh cycle detect environment light and
At the time of terminating detection environment light, when which detects environment light, in the light sensor in the OLED screen curtain
Region in detection range does not shine.
In conclusion the ambient light detection device that the embodiment of the present disclosure provides, controls organic hair by the first control module
Optical diode OLED screen curtain is refreshed with the refresh cycle to be shown, the second control module controls light sensor, within the refresh cycle
At the time of starting to detect environment light and terminate detection environment light, when which detects environment light, in the OLED screen curtain
It does not shine in the region in the detection range of the light sensor, so that the light sensor, starts to examine within the refresh cycle
At the time of surveying environment light and terminate detection environment light, the luminous intensity of actual environment light can detecte, and according to light level
The luminous intensity that device detects subtracts the luminous luminous intensity of OLED screen curtain, and the luminous intensity for obtaining environment light is compared, improved
The accuracy of the luminous intensity of environment light.
Fig. 5 is a kind of block diagram of the ambient light detection device shown according to another exemplary embodiment.Referring to Fig. 5, the dress
On the basis of setting block diagram shown in Fig. 4, optionally, which may include: configuration submodule 4021, be matched
It is set to the light sensor and configures the first duration and the second duration, which indicates the light sensor from receiving brush
To starting to detect the duration that is spaced of environment light, which indicates from the refresh signal is received to terminating to examine new signal
The duration that environment light is spaced is surveyed, the time interval between the two neighboring refresh signal is consistent with the refresh cycle.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 6 is a kind of block diagram of the terminal shown according to a further exemplary embodiment, as shown in fig. 6, the terminal can wrap
It includes: processor 601 and the memory 602 for storing computer instruction.
Wherein, processor 601 runs the computer instruction and executes following methods:
It controls Organic Light Emitting Diode OLED screen curtain and display is refreshed with the refresh cycle;
Light sensor is controlled, at the time of starting to detect environment light and terminate detection environment light within the refresh cycle;Its
In, at the time of this starts to detect environment light and terminate detection environment light between, in the light sensor in the OLED screen curtain
Region in detection range does not shine.
In a kind of design in the cards, which started to detect environment light within the refresh cycle
At the time of with terminating to detect environment light, comprising:
Configuring the first duration and the second duration, first duration to the light sensor indicates the light sensor from reception
To refresh signal to starting to detect the duration that is spaced of environment light, which is indicated from the refresh signal is received to knot
Beam detects the duration that environment light is spaced, and the time interval between the two neighboring refresh signal is consistent with the refresh cycle.
Fig. 7 is a kind of block diagram of the terminal 800 shown according to a further exemplary embodiment.For example, terminal 800 can be shifting
Mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building are set
It is standby, personal digital assistant etc..
Referring to Fig. 7, terminal 800 may include following one or more components: processing component 802, memory 804, electric power
Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and
Communication component 816.
The integrated operation of the usual controlling terminal 800 of processing component 802, such as with display, telephone call, data communication, phase
Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just
Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate
Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in equipment 800.These data are shown
Example includes the instruction of any application or method for operating in terminal 800, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile
Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash
Device, disk or CD.
Electric power assembly 806 provides electric power for the various assemblies of terminal 800.Electric power assembly 806 may include power management system
System, one or more power supplys and other with for terminal 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between the terminal 800 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action
Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers
Body component 808 includes a front camera and/or rear camera.When equipment 800 is in operation mode, such as screening-mode or
When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and
Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike
Wind (MIC), when terminal 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched
It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set
Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for terminal 800 is commented
Estimate.For example, sensor module 814 can detecte the state that opens/closes of equipment 800, and the relative positioning of component, for example, it is described
Component is the display and keypad of terminal 800, and sensor module 814 can also detect 800 1 components of terminal 800 or terminal
Position change, the existence or non-existence that user contacts with terminal 800,800 orientation of terminal or acceleration/deceleration and terminal 800
Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact
Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at
As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors
Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between terminal 800 and other equipment.Terminal
800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example
Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology,
Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal 800 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned environment light detection method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 804 of instruction, above-metioned instruction can be executed by the processor 820 of terminal 800 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is executed by the processor of terminal
When, it enables the terminal to execute a kind of environment light detection method, this method comprises:
It controls Organic Light Emitting Diode OLED screen curtain and display is refreshed with the refresh cycle;
Light sensor is controlled, at the time of starting to detect environment light and terminate detection environment light within the refresh cycle;Its
In, at the time of this starts to detect environment light and terminate detection environment light between, in the light sensor in the OLED screen curtain
Region in detection range does not shine.
In a kind of design in the cards, which started to detect environment light within the refresh cycle
At the time of with terminating to detect environment light, comprising:
Configuring the first duration and the second duration, first duration to the light sensor indicates the light sensor from reception
To refresh signal to starting to detect the duration that is spaced of environment light, which is indicated from the refresh signal is received to knot
Beam detects the duration that environment light is spaced, and the time interval between the two neighboring refresh signal is consistent with the refresh cycle.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are wanted by right
Book is asked to point out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by appended claims
System.
Claims (13)
1. a kind of terminal characterized by comprising light sensor, processor and Organic Light Emitting Diode OLED screen curtain;
The processor refreshes display for controlling the OLED screen curtain with the refresh cycle;
The processor is also used to control the light sensor, starts to detect environment light and end within the refresh cycle
At the time of detecting environment light;Wherein, it is described start detect environment light and terminate detection environment light at the time of between, the OLED screen
The region in detection range in curtain in the light sensor does not shine;
The light sensor, for detecting environment light according to the control of the processor.
2. terminal according to claim 1, which is characterized in that the processor is specifically used for the light sensor
Configure the first duration and the second duration, first duration indicates that since the light sensor examined receive refresh signal to
The duration that environment light is spaced is surveyed, second duration is indicated from the refresh signal is received between end detection environment light institute
Every duration, the time interval between the two neighboring refresh signal is consistent with the refresh cycle;
The light sensor is specifically used for detecting ring according to the refresh signal and first duration and the second duration
Border light.
3. terminal according to claim 2, which is characterized in that the refresh signal is the letter of OLED screen curtain output
Number, alternatively, the refresh signal is the signal of processor output.
4. terminal according to claim 2, which is characterized in that the light sensor, specifically for passing through interrupt pin
Receive the refresh signal.
5. terminal according to claim 1, which is characterized in that the processor is specifically used for modulating by pulse width
Pwm signal controls the OLED screen curtain and refreshes display with the refresh cycle.
6. terminal according to claim 5, which is characterized in that the duty ratio of the pwm signal is less than or equal to default account for
Empty ratio, the default duty ratio be it is described at the time of start to detect environment light and terminate detection environment light between when it is a length of default
Duty ratio when minimum duration.
7. terminal according to claim 1, which is characterized in that the resolution ratio of the light sensor is greater than or equal to default
Resolution ratio, the default resolution ratio are that the minimum resolution of environment light is able to detect through the OLED screen curtain.
8. a kind of environment light detection method characterized by comprising
It controls Organic Light Emitting Diode OLED screen curtain and display is refreshed with the refresh cycle;
Light sensor is controlled, at the time of starting to detect environment light and terminate detection environment light within the refresh cycle;Wherein,
It is described start detect environment light and terminate detection environment light at the time of between, in the OLED screen curtain be in the light sensor
Detection range in region do not shine.
9. according to the method described in claim 8, it is characterized in that, the control light sensor, within the refresh cycle
At the time of starting to detect environment light and terminate detection environment light, comprising:
The first duration and the second duration are configured to the light sensor, and first duration indicates the light sensor from connecing
Refresh signal is received to starting to detect the duration that is spaced of environment light, the second duration device indicates to believe from receiving refreshings
Number to terminating to detect the duration that is spaced of environment light, the time interval and refreshings between the two neighboring refresh signal are all
Phase is consistent.
10. a kind of ambient light detection device characterized by comprising
First control module is configured as control Organic Light Emitting Diode OLED screen curtain with the refresh cycle and refreshes display;
Second control module is configured as control light sensor, starts to detect environment light and end within the refresh cycle
At the time of detecting environment light, when the light sensor detects environment light, the light sensor is in the OLED screen curtain
Detection range in region do not shine.
11. device according to claim 10, which is characterized in that second control module includes: configuration submodule, quilt
Be configured to configure the first duration and the second duration to the light sensor, first duration indicate the light sensor from
Refresh signal is received to starting to detect the duration that is spaced of environment light, the second duration device is indicated from receiving the refreshing
Signal is to terminating to detect the duration that is spaced of environment light, the time interval and the refreshing between the two neighboring refresh signal
Period is consistent.
12. a kind of terminal characterized by comprising
Processor and memory for storing computer instruction;The processor runs the computer instruction perform claim
It is required that method described in 8 or 9.
13. a kind of non-transitorycomputer readable storage medium, which is characterized in that when the instruction in the storage medium is by terminal
Processor execute when, enable the terminal to perform claim require 8 or 9 described in method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810998400.4A CN109410833B (en) | 2018-08-29 | 2018-08-29 | Ambient light detection method, ambient light detection device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810998400.4A CN109410833B (en) | 2018-08-29 | 2018-08-29 | Ambient light detection method, ambient light detection device, terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109410833A true CN109410833A (en) | 2019-03-01 |
CN109410833B CN109410833B (en) | 2021-01-15 |
Family
ID=65464482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810998400.4A Active CN109410833B (en) | 2018-08-29 | 2018-08-29 | Ambient light detection method, ambient light detection device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109410833B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110012162A (en) * | 2019-03-25 | 2019-07-12 | 华为技术有限公司 | A kind of ambient light data acquisition method and electronic equipment |
CN111754929A (en) * | 2019-03-26 | 2020-10-09 | 北京小米移动软件有限公司 | Ambient light parameter acquisition method and device and storage medium |
WO2021035897A1 (en) * | 2019-08-30 | 2021-03-04 | 北京小米移动软件有限公司 | Mobile terminal |
CN112714205A (en) * | 2019-10-24 | 2021-04-27 | 北京小米移动软件有限公司 | Method and device for determining ambient illumination intensity and storage medium |
CN112992060A (en) * | 2021-03-02 | 2021-06-18 | 维沃移动通信有限公司 | Display method and device of display screen of electronic equipment and electronic equipment |
CN113571027A (en) * | 2020-04-29 | 2021-10-29 | 北京小米移动软件有限公司 | Control method and device for display screen of electronic equipment, electronic equipment and storage medium |
CN113747626A (en) * | 2020-05-29 | 2021-12-03 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
CN113851096A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Brightness detection method, device and storage medium |
CN113852720A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
EP3952261A4 (en) * | 2019-03-26 | 2022-05-25 | Huawei Technologies Co., Ltd. | State control method for light sensor and electronic device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106462339A (en) * | 2015-09-28 | 2017-02-22 | 华为技术有限公司 | Terminal and method for detecting ambient brightness |
CN107767835A (en) * | 2017-11-22 | 2018-03-06 | 广东欧珀移动通信有限公司 | Display screen component and electronic equipment |
CN107818753A (en) * | 2017-11-22 | 2018-03-20 | 广东欧珀移动通信有限公司 | Screen brightness regulation method, device, storage medium and electronic equipment |
CN107917755A (en) * | 2017-11-22 | 2018-04-17 | 广东欧珀移动通信有限公司 | Environment light detection method, device, storage medium and electronic equipment |
CN107979698A (en) * | 2017-11-22 | 2018-05-01 | 广东欧珀移动通信有限公司 | Ambient light intensity detection method, device, storage medium and electronic equipment |
-
2018
- 2018-08-29 CN CN201810998400.4A patent/CN109410833B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106462339A (en) * | 2015-09-28 | 2017-02-22 | 华为技术有限公司 | Terminal and method for detecting ambient brightness |
CN107767835A (en) * | 2017-11-22 | 2018-03-06 | 广东欧珀移动通信有限公司 | Display screen component and electronic equipment |
CN107818753A (en) * | 2017-11-22 | 2018-03-20 | 广东欧珀移动通信有限公司 | Screen brightness regulation method, device, storage medium and electronic equipment |
CN107917755A (en) * | 2017-11-22 | 2018-04-17 | 广东欧珀移动通信有限公司 | Environment light detection method, device, storage medium and electronic equipment |
CN107979698A (en) * | 2017-11-22 | 2018-05-01 | 广东欧珀移动通信有限公司 | Ambient light intensity detection method, device, storage medium and electronic equipment |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110012162A (en) * | 2019-03-25 | 2019-07-12 | 华为技术有限公司 | A kind of ambient light data acquisition method and electronic equipment |
EP3952261A4 (en) * | 2019-03-26 | 2022-05-25 | Huawei Technologies Co., Ltd. | State control method for light sensor and electronic device |
CN111754929A (en) * | 2019-03-26 | 2020-10-09 | 北京小米移动软件有限公司 | Ambient light parameter acquisition method and device and storage medium |
WO2021035897A1 (en) * | 2019-08-30 | 2021-03-04 | 北京小米移动软件有限公司 | Mobile terminal |
CN112714205A (en) * | 2019-10-24 | 2021-04-27 | 北京小米移动软件有限公司 | Method and device for determining ambient illumination intensity and storage medium |
CN112714205B (en) * | 2019-10-24 | 2023-06-20 | 北京小米移动软件有限公司 | Ambient light intensity determination method, device and storage medium |
CN113571027A (en) * | 2020-04-29 | 2021-10-29 | 北京小米移动软件有限公司 | Control method and device for display screen of electronic equipment, electronic equipment and storage medium |
CN113747626A (en) * | 2020-05-29 | 2021-12-03 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
CN113747626B (en) * | 2020-05-29 | 2023-08-29 | 北京小米移动软件有限公司 | Ambient light determining method, device, terminal equipment and medium |
CN113851096A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Brightness detection method, device and storage medium |
CN113852720A (en) * | 2020-06-28 | 2021-12-28 | 北京小米移动软件有限公司 | Ambient light determination method, ambient light determination device, terminal equipment and medium |
CN112992060A (en) * | 2021-03-02 | 2021-06-18 | 维沃移动通信有限公司 | Display method and device of display screen of electronic equipment and electronic equipment |
CN112992060B (en) * | 2021-03-02 | 2022-08-02 | 维沃移动通信有限公司 | Display method and device of display screen of electronic equipment and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN109410833B (en) | 2021-01-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109410833A (en) | Environment light detection method, device, terminal and storage medium | |
CN107134823B (en) | Charging prompting method and device | |
CN109361593A (en) | A kind of method, apparatus of prompting message, mobile terminal and storage medium | |
CN108234873A (en) | A kind of method and apparatus for obtaining image | |
WO2019196341A1 (en) | Display panel, photoelectric detection method and device and computer-readable storage medium | |
CN105162945A (en) | Method and device for displaying information | |
CN105245775A (en) | Method and device for camera imaging, and mobile terminal | |
EP3147802B1 (en) | Method and apparatus for processing information | |
CN105208284B (en) | Shoot based reminding method and device | |
CN105807894B (en) | Using the treating method and apparatus for holding lock | |
CN105224171B (en) | Icon display method, device and terminal | |
CN109669730A (en) | A kind of process keepalive method, device, electronic equipment and medium | |
CN105224174B (en) | The display methods and device of Paste | |
CN107463052A (en) | Shoot exposure method and device | |
EP3226187A1 (en) | Method and device for information presentation | |
CN106354266A (en) | Control method and device of terminal as well as terminal | |
CN109862169B (en) | Electronic equipment control method, device and storage medium | |
CN106534495B (en) | The method, device and equipment of information processing | |
CN107566750A (en) | Control method, device and the storage medium of flash lamp | |
CN108267728A (en) | Calibration method, device, equipment and the storage medium of range sensor | |
CN106445122B (en) | Equipment state control method and device | |
CN106101372B (en) | Using prompting setting method and device | |
CN107809538B (en) | Alarm clock reminding method and device and computer readable storage medium | |
CN108319899B (en) | Fingerprint identification method and device | |
CN108962189A (en) | Luminance regulating method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |