WO2020192455A1 - Ambient light data collection method and electronic device - Google Patents

Ambient light data collection method and electronic device Download PDF

Info

Publication number
WO2020192455A1
WO2020192455A1 PCT/CN2020/079382 CN2020079382W WO2020192455A1 WO 2020192455 A1 WO2020192455 A1 WO 2020192455A1 CN 2020079382 W CN2020079382 W CN 2020079382W WO 2020192455 A1 WO2020192455 A1 WO 2020192455A1
Authority
WO
WIPO (PCT)
Prior art keywords
ambient light
time
light sensor
moment
led
Prior art date
Application number
PCT/CN2020/079382
Other languages
French (fr)
Chinese (zh)
Inventor
范继存
康力
李颖
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2020192455A1 publication Critical patent/WO2020192455A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J1/00Photometry, e.g. photographic exposure meter
    • G01J1/42Photometry, e.g. photographic exposure meter using electric radiation detectors
    • G01J1/4204Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1656Details related to functional adaptations of the enclosure, e.g. to provide protection against EMI, shock, water, or to host detachable peripherals like a mouse or removable expansions units like PCMCIA cards, or to provide access to internal components for maintenance or to removable storage supports like CDs or DVDs, or to mechanically mount accessories
    • G06F1/1658Details related to functional adaptations of the enclosure, e.g. to provide protection against EMI, shock, water, or to host detachable peripherals like a mouse or removable expansions units like PCMCIA cards, or to provide access to internal components for maintenance or to removable storage supports like CDs or DVDs, or to mechanically mount accessories related to the mounting of internal components, e.g. disc drive or any other functional module
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control 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/22Control 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/30Control 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/32Control 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/3208Control 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the technical field of electronic equipment, and in particular to an ambient light data collection method and electronic equipment.
  • OLED organic light-emitting diode
  • the following method is usually used for detection. Specifically, a light sensor with high sensitivity and high sampling rate is used to collect the ambient illuminance for a period of time at a high sampling rate, and by finding the minimum value among the detected multiple ambient illuminances, the non-OLED display can be obtained.
  • the ambient illuminance of brightness interference is usually used for detection.
  • This application provides a method and electronic equipment for collecting ambient light data, which are used to reduce the amount of collected ambient light data.
  • a method for collecting ambient light data is provided, which is applied to an electronic device including an OLED display screen and an ambient light sensor.
  • the electronic device may be a mobile phone, a camera, etc.
  • the OLED display screen covers the ambient light sensor.
  • the method includes: detecting a display synchronization signal, the display synchronization signal may be a synchronization signal when the display content is refreshed, such as a TE signal; in response to detecting the display synchronization signal, determining a first moment and a second moment, the first moment being an ambient light sensor When the LED of the corresponding display area is turned on, the second time is the turn-off time of the LED of the display area corresponding to the ambient light sensor.
  • the first time is earlier than the second time, and the LED of the display area corresponding to the ambient light sensor is at the second time.
  • the first time and the second time corresponding to when the LED of the display area corresponding to the ambient light sensor remains off are determined, so that only the LEDs in the display area corresponding to the ambient light sensor
  • the ambient light data is collected when it is kept off, thereby avoiding the influence of the OLED display itself on the collected ambient light data and improving the signal-to-noise ratio of the ambient light data; in addition, this method does not require a high-performance ambient light sensor, And it can reduce the amount of collected ambient light data and reduce the data processing capability requirements of electronic devices.
  • determining the second moment includes: determining the second moment according to the moment when the display synchronization signal is detected and the position of the ambient light sensor on the OLED display screen.
  • determining the second moment includes: determining the second moment according to the third moment and the position of the ambient light sensor on the OLED display screen; wherein the third moment is the detection of the display synchronization signal
  • the first time is delayed by the first time.
  • the first time is related to the single refresh time of the OLED display and the off time of the LED in the display area corresponding to the ambient light sensor.
  • the single refresh time is related to the display area corresponding to the ambient light sensor.
  • the off time of the LED is known.
  • the first duration is the difference between the single refresh duration of the OLED display screen and the turn-off duration of the LED in the display area corresponding to the ambient light sensor.
  • turning off the LED in the display area corresponding to the ambient light sensor is used to refresh the next frame of the OLED display; and/or, the display area corresponding to the ambient light sensor Turning off the LED is used to adjust the brightness of the OLED display.
  • the electronic device can use LEDs in the display area that are turned off when refreshing the next frame of the OLED display, and/or LEDs in the display area that are turned off when adjusting the brightness of the OLED display to collect the environment Light data, thereby improving the flexibility and diversity of the collected ambient light data, and at the same time can improve the stability of the collected ambient light data.
  • the duration between the turn-on time and the turn-off time is the turn-off duration of the LED in the display area corresponding to the ambient light sensor when the next frame of the OLED display screen is refreshed.
  • the electronic device can control the ambient light sensor to collect ambient light data by using the duration of the LED in the display area that is turned off during refresh during the refreshing process of the frame image of the OLED display, thereby avoiding the OLED display itself.
  • the influence of luminescence on the collected ambient light data improves the signal-to-noise ratio of the ambient light data.
  • the length of time between the turn-on time and the turn-off time is the length of time that the LED in the display area corresponding to the ambient light sensor is turned off when the brightness of the OLED display is adjusted.
  • the electronic device can control the ambient light sensor to collect ambient light data during the brightness adjustment process of the OLED display screen by using the duration of the LED in the display area that is turned off during the brightness adjustment, thereby avoiding the OLED display itself. The influence of luminescence on the collected ambient light data improves the signal-to-noise ratio of the ambient light data.
  • the method further includes: turning on and off the ambient light sensor multiple times, so that the total duration of the ambient light sensor in the on state meets the preset collection duration.
  • the signal-to-noise ratio of the ambient light data collected by the ambient light sensor can be further improved, thereby the stability of the ambient light data.
  • an electronic device in a second aspect, includes a processor, an OLED display screen, and an ambient light sensor.
  • the OLED display screen covers the ambient light sensor.
  • the processor is configured to perform the following steps: detecting a display synchronization signal; When the display synchronization signal is detected, the first time and the second time are determined. The first time is the turn-on time of the LED in the display area corresponding to the ambient light sensor, and the second time is the turn-off of the LED in the display area corresponding to the ambient light sensor.
  • the first moment is earlier than the second moment, the LED in the display area corresponding to the ambient light sensor remains off between the first moment and the second moment; when the ambient light sensor is turned on, the ambient light sensor is turned on no earlier than the second moment.
  • One moment: Turn off the ambient light sensor, and the turn off time of the ambient light sensor is no later than the second moment.
  • the processor is specifically configured to determine the second moment according to the moment when the display synchronization signal is detected and the position of the ambient light sensor on the OLED display screen.
  • the processor is specifically further configured to: determine the second time according to the third time and the position of the ambient light sensor on the OLED display screen; wherein, the third time is the detection of display synchronization
  • the time of the signal is delayed by the time of the first duration, and the first duration is related to the single refresh duration of the OLED display screen and the turn-off duration of the LED in the display area corresponding to the ambient light sensor.
  • the first duration is the difference between the single refresh duration of the OLED display screen and the turn-off duration of the LED in the display area corresponding to the ambient light sensor.
  • turning off the LED of the display area corresponding to the ambient light sensor is used to refresh the next frame of the OLED display; and/or, the display area corresponding to the ambient light sensor Turning off the LED is used to adjust the brightness of the OLED display.
  • the duration between the turn-on time and the turn-off time is the turn-off duration of the LED in the display area corresponding to the ambient light sensor when the next frame of the OLED display screen is refreshed.
  • the time period between the on time and the off time is the off time of the LED in the display area corresponding to the ambient light sensor when the brightness of the OLED display is adjusted.
  • the processor is further specifically configured to: turn on and turn off the ambient light sensor multiple times, so that the total duration of the ambient light sensor in the on state meets the preset collection duration.
  • any electronic device provided above is used to execute the corresponding method provided above. Therefore, the beneficial effects that it can achieve can refer to the beneficial effects in the corresponding method provided above. I won't repeat it here.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • FIG. 2 is a schematic structural diagram of another electronic device provided by an embodiment of the application.
  • FIG. 3 is a schematic flowchart of the first ambient light data collection method provided by an embodiment of the application.
  • FIG. 4 is a schematic diagram of a refreshed closed display area provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of a display screen area with brightness adjustment turned off according to an embodiment of the application.
  • FIG. 6 is a schematic flowchart of a second ambient light data collection method provided by an embodiment of the application.
  • FIG. 7 is a working sequence diagram of the first OLED display screen provided by an embodiment of the application under different brightness
  • FIG. 8 is a schematic flowchart of a third method for collecting ambient light data according to an embodiment of the application.
  • FIG. 9 is a working sequence diagram of the second OLED display screen provided by an embodiment of the application under different brightness
  • FIG. 10 is a schematic flowchart of a fourth method for collecting ambient light data according to an embodiment of the application.
  • FIG. 11 is a working sequence diagram of a third OLED display screen provided by an embodiment of the application under different brightness.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • And/or describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, both A and B exist, and B exists alone, where A, B can be singular or plural.
  • the following at least one item (a) or similar expressions refers to any combination of these items, including any combination of a single item (a) or plural items (a).
  • At least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
  • the character "/" generally indicates that the associated objects are in an "or” relationship.
  • words such as "first” and “second” do not limit the number and execution order.
  • FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application.
  • the electronic device may be a mobile phone, a tablet computer, a computer, a wearable device, a vehicle-mounted device, an electronic terminal, a portable terminal, etc.
  • this application implements Collectively referred to as electronic devices in the examples. Taking the electronic device as a mobile phone as an example, the structure of the electronic device will be described as an example.
  • the mobile phone may include: an RF (radio frequency, radio frequency) circuit 110, a memory 120, other input devices 130, a display screen 140, a sensor component 150, an audio circuit 160, input/output (input/output, I/O) ) Components such as subsystem 170, processor 180, and power supply 190.
  • the processor 180 is respectively connected to the RF circuit 110, the memory 120, the audio circuit 160, and the power supply 190.
  • the I/O subsystem 170 is respectively connected to other input devices 130, an organic light-emitting diode (OLED) display screen 140, and a sensor component 150.
  • OLED organic light-emitting diode
  • the RF circuit 110 can be used for receiving and transmitting information or signals during a call.
  • the RF circuit 110 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, an LNA (low noise amplifier, low noise amplifier), a duplexer, and the like.
  • the RF circuit 110 may also communicate with the network and other devices through wireless communication, such as communicating with an access network device through a WiFi network.
  • the memory 120 may be used to store software programs and modules.
  • the processor 180 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function, etc.; the storage data area may store data created based on the use of the mobile phone (such as audio Data, image data, phone book, etc.) etc.
  • the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the other input device 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the mobile phone.
  • the other input device 130 may include, but is not limited to, one or more of a physical keyboard, function keys (such as a volume control button, a power switch button, etc.), a trackball, a mouse, and a joystick.
  • the OLED display screen 140 can be used to display information input by the user or information provided to the user and various menus of the mobile phone, and can also accept user input.
  • the OLED display screen 140 can include a display panel 141 and a touch panel 142.
  • the display panel 141 in the OLED display screen 104 may be configured in the form of an OLED.
  • the display panel 141 may include an OLED array, which includes multiple rows and multiple columns of OLEDs.
  • the sensor component 150 includes one or more sensors for providing various aspects of the state evaluation of the mobile phone.
  • the sensor component 150 may include an ambient light sensor for collecting data such as ambient light intensity to adjust the automatic backlight brightness of the OLED display 140.
  • the sensor component 150 may also include a temperature sensor, an acceleration sensor, a gyroscope sensor, a magnetic sensor or a pressure sensor. The temperature change of the mobile phone, the acceleration/deceleration, the orientation, and opening/closing of the mobile phone can be detected by the sensor assembly 150. Status, or relative positioning of components, etc.
  • the sensor component 150 may also include a CMOS or CCD image sensor for use in imaging applications.
  • the audio circuit 160 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 160 provides an audio interface between the user and the mobile phone through a speaker and a microphone.
  • the audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit
  • the audio data is converted into audio data, and then the audio data is output to the RF circuit 110 to be sent to, for example, another mobile phone, or the audio data is output to the memory 120 for further processing.
  • the I/O subsystem 170 is used to control input and output external devices.
  • the external devices may include other device input controllers, sensor controllers, display controllers, and so on.
  • the processor 180 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, Perform various functions of the mobile phone and process data to monitor the mobile phone as a whole.
  • the processor 180 may include one or more processing units; for example, the processor 180 may integrate an application processor (AP) and a modem (modem), where the application processor mainly processes operations For systems, user interfaces and applications, the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 180.
  • AP application processor
  • modem modem
  • the power source 190 (such as a battery) is used to power the above-mentioned various components.
  • the power supply can be logically connected to the processor 180 through a power management system, so that functions such as charging, discharging, and power consumption can be managed through the power management system.
  • the positional relationship between the OLED display screen 140 and the ambient light sensor 151 included in the mobile phone may be as shown in FIG. 2, that is, the OLED display screen 140 may cover the ambient light sensor 151.
  • the ambient light sensor 151 can be covered by the top of the OLED display 140, or by the middle part of the OLED display 140, or by the bottom of the OLED display 140.
  • the ambient light sensor 151 is covered by the OLED display. Take the top cover of 140 as an example for illustration.
  • the mobile phone may be a full-screen mobile phone or not a full-screen mobile phone, which is not specifically limited in the embodiment of the present application.
  • FIG. 1 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements.
  • FIG. 3 is a schematic flowchart of the first ambient light data collection method provided by an embodiment of the application.
  • the method can be applied to the electronic device described above, in which the OLED display screen covers the ambient light sensor
  • the method can be specifically executed by the processor in the electronic device. Referring to FIG. 3, the method includes the following steps.
  • S301 Detect a display synchronization signal, where the display synchronization signal is a synchronization signal when the display content is refreshed.
  • the OLED display screen is refreshed and displayed in the form of frame by frame when displaying images, videos, etc., and the refresh display of each frame can be refreshed line by line in the order from top to bottom. Therefore, the display content of one frame needs to be refreshed multiple times.
  • the LED of the display area that is refreshed each time is turned from on to off, that is, the corresponding area becomes black, and then the refreshed content is displayed in the display area.
  • the OLED display screen finishes refreshing the display content of a whole frame, it will output a display synchronization signal, which can be used to indicate that the display content refresh of the frame is completed.
  • the processor of the electronic device may detect the display synchronization signal output by the OLED display.
  • the display synchronization signal may specifically be a tearing effect (TE) signal, or other Signals synchronized with the refresh of the display content, etc.
  • S302 In response to detecting the display synchronization signal, determine the first time and the second time.
  • the first time is the turn-on time of the LED of the display area corresponding to the ambient light sensor
  • the second time is the display area corresponding to the ambient light sensor.
  • the first time is earlier than the second time, and the LED in the display area corresponding to the ambient light sensor remains off between the first time and the second time.
  • the LED in the display area corresponding to the ambient light sensor may specifically refer to the LED in the OLED display screen covering the display area above the ambient light sensor.
  • the status of the LED in the display area is related to the accuracy of the ambient light data collected by the ambient light sensor. Specifically, when the LED of the display area corresponding to the ambient light sensor is in the on state (also called the lit state), the ambient light data collected by the ambient light sensor will be affected because the LED in the display area is on.
  • the collected ambient light data will include both the ambient light data and the LED light data in the display area; when the LED in the display area corresponding to the ambient light sensor is off, the ambient light sensor collects The ambient light data will not be affected, that is, the collected ambient light data only includes the light data of the surrounding environment. Therefore, in order to ensure that the ambient light data collected by the ambient light sensor will not be affected, the electronic device can determine the time period when the LED of the display area corresponding to the ambient light sensor is in the off state, that is, determine the first moment and the second moment. time.
  • the first is the refreshing process of the displayed content.
  • each refreshed display area will first become black, and then the refreshed content will be displayed in the refreshed display area.
  • the first change to black is specifically achieved by turning off the LEDs of the refreshed display area, that is, the LEDs of the refreshed display area are in the off state, which is subsequently referred to as the refreshed off display area.
  • the refresh-off display area When the refresh-off display area is moved to the display area corresponding to the ambient light sensor (that is, the LED of the display area corresponding to the ambient light sensor is turned off to refresh the next frame of the OLED display, as shown in Figure 4 Show), the first time and the second time are determined, and the period between the first time and the second time is the time period during which it is determined that the LED of the display screen area whose refresh is off is off.
  • the display synchronization signal is the signal output by the OLED display screen when the refreshing of the display content of the whole frame is completed, and the turning off time of the LED in the display area where the refresh is turned off is also completed.
  • the display synchronization signal corresponding to the frame and the turn-off moment of the LED of the display screen area where the refresh is turned off are synchronized. Therefore, based on this synchronization relationship, the turning off time of the LED of the display screen area whose refresh is turned off can be determined.
  • determining the second moment may include: according to the moment when the display synchronization signal is detected and The location of the ambient light sensor on the OLED display determines the second moment.
  • the electronic device may determine the second moment according to the time when the display synchronization signal is detected, the single refresh duration of the OLED display screen, and the position of the ambient light sensor on the OLED display screen.
  • the time when the display synchronization signal is detected here may refer to the time when the display synchronization signal is detected when the refresh of the first frame is completed, and the second time may refer to the LED in the display area where the refresh is turned off during the refresh process of the second frame.
  • the second frame is the next frame adjacent to the first frame.
  • the single refresh time of the OLED display is related to the refresh frequency of the OLED display.
  • the refresh frequency of the OLED display is constant.
  • the refresh frequency of the OLED display is 60 Hz, so the single refresh time is approximately equal to 16.667 milliseconds (ms).
  • the location of the ambient light sensor on the OLED display can be specifically used to determine the time required for the refresh-off display area to move from the top of the OLED display to the display area corresponding to the ambient light sensor, which will be referred to as the first movement duration in the following
  • the first movement duration can be equal to L/V1
  • L represents the length of the ambient light sensor from the top of the OLED display
  • V1 represents the movement speed of the display area where the refresh is off
  • the movement speed V1 can be equal to the OLED display
  • the electronic device may delay the time when the display synchronization signal is detected by the single refresh duration T f , if the first movement duration T S1 is zero, the second time may be obtained directly, when the first mobile Sl duration T is not zero, the delay may be single refresh time T again after the long delay T f Sl, to obtain a second time.
  • the first moment may be determined according to the off duration of the LEDs in the refresh-off display area, and the off duration T b1 of the LEDs in the refresh-off display area is controlled by the electronic device, namely The closing time T b1 is known, and the electronic device advances the second time by the closing time T b1 to determine the first time.
  • the second is the brightness adjustment process of the OLED display.
  • the brightness adjustment of the OLED display screen can include two working modes, namely pulse-width modulation (PWM) mode and non-PWM mode.
  • PWM pulse-width modulation
  • non-PWM mode a duty cycle adjustment signal (for example, the duty cycle
  • the adjustment signal can be a square wave signal with a frequency of 240 Hz), and no duty cycle adjustment signal is required in non-PWM mode.
  • the PWM mode can mean that when the brightness of the OLED display is low, the lighting time of the LED in the OLED display is controlled by PWM to realize the brightness adjustment of the OLED display.
  • this working mode there will be LEDs in the display area. After being in the off state for a period of time, the LED in the display area will be referred to as the LED in the display area with the brightness adjustment turned off.
  • Non-PWM mode can mean that when the brightness of the OLED display is high, the brightness adjustment can no longer be achieved through the PWM mode.
  • the brightness adjustment of the OLED display can only be achieved by increasing the power supply current and other methods.
  • the LED in the display area is turned off for a period of time, that is, there is no LED in the display area where the brightness adjustment is turned off. Therefore, when the display area whose brightness adjustment is turned off moves to the display area corresponding to the ambient light sensor (that is, the LED of the display area corresponding to the ambient light sensor is turned off to adjust the brightness of the OLED display), the first moment is determined And the second moment is the time period in which it is determined that the LED of the display screen area whose brightness adjustment is turned off is in the off state.
  • the number N of the display area where the brightness adjustment is turned off is related to the frequency of the duty cycle adjustment signal and the refresh frequency of the OLED display.
  • the value of N can be specifically equal to the ratio of the two.
  • the refresh frequency is 60 Hz.
  • the display synchronization signal is the signal output by the OLED display screen when the refreshing of the display content of the whole frame is completed.
  • the closing time is also the time when the refreshing of the display content of the entire frame is completed, that is, for the same frame, the display synchronization signal corresponding to the frame and the closing time of the LED of the display screen area whose brightness adjustment is turned off are synchronized. Therefore, based on this synchronization relationship, the turn-off time of the LED of the display screen area whose brightness adjustment is turned off can be determined.
  • determining the second time may include: according to the time when the display synchronization signal is detected And the location of the ambient light sensor on the OLED display to determine the second moment.
  • the electronic device may determine the second moment according to the time when the display synchronization signal is detected, the single refresh duration of the OLED display screen, and the position of the ambient light sensor on the OLED display screen.
  • the time when the display synchronization signal is detected here may refer to the time when the display synchronization signal is detected when the refresh of the first frame is completed, and the second time may refer to the display area where the brightness adjustment is turned off during the brightness adjustment of the second frame.
  • the second frame is the next frame of the first frame. It should be noted that when there are multiple display screen areas whose brightness adjustment is turned off, one second moment may be determined, or multiple second moments may be determined.
  • the single refresh time of the OLED display screen is known.
  • the location of the ambient light sensor on the OLED display screen can be specifically used to determine the time required for the display area with the brightness adjustment turned off to move from the top of the OLED display to the display area corresponding to the ambient light sensor, which will be referred to as second movement in the following duration.
  • the electronic device may delay the detection of the display synchronization signal by the single refresh duration T f (ie T f *i/N, the value of i can be 1 to N), if the second movement duration T S2 is zero, multiple second moments can be directly obtained, if the second movement duration T S2 is not zero, Then, the time after the delay of T f *i/N can be further delayed by T S2 to obtain a plurality of second moments. Further, after multiple second moments are determined, the corresponding multiple first moments can be determined according to the turn-off duration T b2 of the LEDs of the display screen area whose brightness adjustment is turned off.
  • the duration T b2 is determined by the brightness of the OLED display.
  • the brightness of the OLED display is controlled by the electronic device. That is, the electronic device can directly determine the off duration T b2 through the brightness.
  • the electronic device advances the first moments by the The closing time T b2 can determine the corresponding multiple first moments.
  • the refresh frequency is 60 Hz
  • the frequency of the duty cycle adjustment signal is 240 Hz
  • the four display areas with brightness adjustment turned off are the first closed area, the second closed area, and the third in FIG. 5, respectively.
  • the second moving time T4 is zero for the closed area and the fourth closed area
  • the first closed area, the second closed area, the third closed area, and the fourth closed area move to the display area corresponding to the ambient light sensor
  • the first times are (1/4)*T f , (1/2)*T f , (3/4)*T f and T f
  • the corresponding multiple first moments are (1/4) *T f -T b2 , (1/2)*T f -T b2 , (3/4)*T f -T b2 and T f -T b2 .
  • the electronic device may turn on the ambient light sensor according to the first moment, and after the ambient light sensor collects ambient light data for a period of time, turn off the ambient light sensor according to the second moment.
  • the processor of the electronic device sends a turn-on signal to the ambient light sensor at a certain time not earlier than the first moment, so that the ambient light sensor starts to collect ambient light data when it receives the turn-on signal, and when it is not too late Sending an end signal to the ambient light sensor at a certain moment of the second moment, so that the ambient light sensor stops collecting ambient light data when receiving the end signal.
  • the processor of the electronic device can also buffer the ambient light data collected by the ambient light sensor, and adjust the backlight brightness of the OLED display screen according to the collected ambient light data.
  • the electronic device can control the ambient light to be turned on and off within a specified time period between the first time and the second time.
  • the specified time period is the time from when the ambient light sensor is turned on to the time when the ambient light sensor is turned off.
  • the time length of the optical data the specified time length may be less than the time length from the first time to the second time, or may be equal to the time length from the first time to the second time.
  • the electronic device may turn on the ambient light sensor at the first moment and turn off the ambient light sensor at the second moment.
  • the specified duration is equal to the duration from the first moment to the second moment; or, the electronic device is in the first moment.
  • the ambient light sensor is turned on at a certain time after a time, and the ambient light sensor is turned off at a certain time before or at the second time.
  • the specified time period is less than the time period from the first time to the second time; or
  • the electronic device turns on the ambient light sensor at the first time or at a time after the first time, and turns off the ambient light sensor at a time before the second time.
  • the specified duration is also less than the time from the first time to the second time. duration.
  • the specified duration can be configured in advance, and the specified duration can be configured as a fixed value (for example, the specified duration can be 200us or 300us, etc.), or it can be configured as a variable value.
  • the value of can be related to the off time of the LED in the display area corresponding to the ambient light sensor.
  • the specified duration is the off duration of the LED in the display area corresponding to the ambient light sensor when the next frame of image of the OLED display is refreshed. That is, in the first case of S302, the LEDs in the display area where the refresh is turned off are the LEDs in the display area corresponding to the ambient light sensor. At this time, the off duration of the LEDs in the display area corresponding to the ambient light sensor It is the off duration of the LED in the display area where the refresh is off, so the specified duration can be specifically the off duration of the LED in the refresh off display area. For example, the specified duration can be the refresh off as shown in Figure 4 above. The off time of the LED in the display area.
  • the specified duration is the off duration of the LED in the display area corresponding to the ambient light sensor when the brightness of the OLED display is adjusted. That is, in the second case of S302, the LED in the display area whose brightness adjustment is turned off is the LED in the display area corresponding to the ambient light sensor. At this time, the LED in the display area corresponding to the ambient light sensor is turned off.
  • the duration is the off duration of the LEDs in the display area where the brightness adjustment is turned off, so the specified duration may specifically be the off duration of the LEDs in the display area where the brightness adjustment is off.
  • the specified duration may be as shown in Figure 5 above. The off duration of the LEDs in each of the four off areas.
  • the electronic device can also turn on and off the ambient light sensor multiple times, so that the total time that the ambient light sensor is in the on state (that is, the total collection time) meets the preset collection time, that is, it controls the ambient light sensor to collect ambient light data.
  • the total duration is the preset acquisition duration, and the preset acquisition duration may include multiple designated durations within a single refresh duration of one or more frames, and each frame may correspond to one or more designated durations.
  • the total collection time of the ambient light sensor can meet the preset collection time, which can improve the signal-to-noise ratio of the ambient light data collected by the ambient light sensor, thereby increasing the ambient light data collected by the ambient light sensor At the same time, the requirements for the sensitivity and sampling rate of the ambient light sensor are relatively low.
  • the following uses the display synchronization signal as the TE signal, and the ambient light sensor is located at the top of the OLED display screen (that is, the first movement duration T S1 and the second movement duration T S2 are zero), and the refresh frequency of the OLED display
  • the duty cycle adjustment signal may be 240 Hz
  • the brightness of the OLED display screen is low, medium, and high.
  • the method provided in the embodiment of the present application will be illustrated. Lower brightness and medium brightness are two examples of brightness when OLED display screens work in PWM mode, and higher brightness is an example of brightness when OLED display screens work in non-PWM mode.
  • the method may include: S401. Detecting a TE signal; S402. In response to detecting the TE signal, delaying the detection of the TE signal by T f- T 0 , where T f represents a single time Refresh duration, T 0 means the first designated duration; S403. Turn on the ambient light sensor, after the first designated duration T 0 , turn off the ambient light sensor, that is, control the ambient light sensor to collect ambient light data within the first designated duration T 0 ; S404. Acquire ambient light data and total collection time; S405. Cache ambient light data; S406. Determine whether the total collection time reaches the preset collection time. If the total collection time reaches the preset collection time, it ends. If the total collection time does not reach The preset collection duration returns to S401 to continue execution.
  • the working sequence diagrams of the OLED display screen having the brightness of lower brightness, medium brightness and higher brightness can be as shown in FIG. 7.
  • the LED in the display area corresponding to the ambient light sensor is in the off state, which can be specifically the situation shown in Figure 4 above.
  • the ambient light sensor only collects a first specified duration T within a single refresh duration T f .
  • the first specified duration T 0 can be configured as a fixed value.
  • the first specified time period T 0 is less than the off time of the LED in the display area corresponding to the ambient light sensor; the brightness of the OLED display screen is high brightness
  • the specified duration is equal to the off duration of the LED in the display area corresponding to the ambient light sensor.
  • the method may include: S501. Detect TE signal; S502. Determine whether the OLED display screen is working in PWM mode, if not, perform according to S402-S403 provided in FIG. The method provided in Figure 6 is executed), if yes, the following S503a and S503b are executed; S503a.
  • delay the time of detecting the TE signal by (1/4)*T f -T 0 , ( 1/2)*T f -T 0 , (3/4)*T f -T 0 and T f -T 0 ; S503b.
  • Control the ambient light sensor to delay (1/4)*T f -T 0 , (1/2)*T f -T 0 , (3/4)*T f -T 0 and T f -T 0 after the first designated period of time T 0 to collect ambient light data; S504.
  • Cache ambient light data; S506. Determine whether the total collection time reaches the preset collection time. If the total collection time reaches the preset collection time, it ends. If the total collection time does not reach the preset collection time, return to S501 to continue carried out.
  • the working sequence diagrams of the OLED display screen at low brightness, medium brightness, and high brightness can be as shown in FIG. 9.
  • the LED in the display area corresponding to the ambient light sensor is in the off state, which can specifically refer to the situation shown in Figure 5 above.
  • the light sensor collects four ambient light data within the first designated time period T 0 within a single refresh time T f ; when the brightness of the OLED display is high, the LED in the display area corresponding to the ambient light sensor is turned off
  • the state can be specifically as shown in FIG. 4 above.
  • the first specified duration T 0 is less than the off duration of the LED in the display area corresponding to the ambient light sensor; the brightness of the OLED display screen is high brightness
  • the first designated duration T 0 designated duration is equal to the off duration of the LED of the display area corresponding to the ambient light sensor.
  • the method may include: S601. Detect TE signal; S602. Determine whether the OLED display screen is working in PWM mode, if not, perform according to S402-S403 provided in FIG. The method provided in Figure 6 is executed), if yes, the following S603a and S603b are executed; S603a.
  • S601. Detect TE signal S602. Determine whether the OLED display screen is working in PWM mode, if not, perform according to S402-S403 provided in FIG. The method provided in Figure 6 is executed), if yes, the following S603a and S603b are executed; S603a.
  • delay the time of detecting the TE signal by (1/4)*T f -T 1 , ( 1/2)*T f -T 1 , (3/4)*T f -T 1 and T f -T 1 , T f represents the duration of a single refresh, and T 1 represents the second specified duration; S603b.
  • the second designation of the sensor after delaying (1/4)*T f -T 1 , (1/2)*T f -T 1 , (3/4)*T f -T 1 and T f -T 1 respectively Collect ambient light data within time length T 1 ; S604. Acquire ambient light data and total collection time; S605. Cache ambient light data; S606. Determine whether the total collection time reaches the preset collection time. If the total collection time reaches the preset collection time, then End, if the total collection time does not reach the preset collection time, return to S601 to continue execution.
  • the working sequence diagrams of the OLED display screen having the brightness of low brightness, medium brightness and high brightness respectively can be as shown in FIG. 11.
  • FIG. 11 when the brightness of the OLED display screen is low and medium brightness, the LED in the display area corresponding to the ambient light sensor is in the off state.
  • the ambient light sensor Collect four ambient light data of the second specified duration T 1 within a single refresh duration T f ; when the brightness of the OLED display is high, the LED in the display area corresponding to the ambient light sensor is in the off state.
  • the second specified duration T 1 is all equal to the off duration of the LED in the display area corresponding to the ambient light sensor.
  • the brightness of the OLED display is the timing chart corresponding to the lower brightness, the medium brightness and the higher brightness.
  • the low level can indicate that the OLED display
  • the high level can indicate the LEDs in the on-state display area in the OLED display.
  • the electronic device detects the display synchronization signal to determine the corresponding first time and second time when the LED of the display area corresponding to the ambient light sensor remains in the off state, so that only when the ambient light sensor corresponds
  • the ambient light data is collected when the LED in the display area is kept off, thereby avoiding the influence of the OLED display itself on the collected ambient light data and improving the signal-to-noise ratio of the ambient light data; in addition, this method does not require high performance
  • the ambient light sensor can reduce the amount of collected ambient light data and reduce the data processing requirements of electronic equipment.
  • the embodiment of the present application also provides an electronic device.
  • the structure of the electronic device may be as shown in FIG. 1 above.
  • the electronic device includes an OLED display screen 140 covering the ambient light sensor 151, such as the OLED display screen 140 and the ambient light sensor.
  • the positional relationship of 151 can be as shown in Figure 2 above.
  • the processor 180 in the electronic device may be configured to perform the following steps: detecting the display synchronization signal; in response to detecting the display synchronization signal, determining the first time and the second time, the first time being the ambient light sensor
  • the turn-off time of the LED in the display area corresponding to 151, the second time is the turn-on time of the LED in the display area corresponding to the ambient light sensor 151, the first time is earlier than the second time, the The LED remains off between the first moment and the second moment; when the ambient light sensor 151 is turned on, the turning on time of the ambient light sensor 151 is not earlier than the first moment; turning off the ambient light sensor 151, the turning off time of the ambient light sensor 151 is not too late At the second moment.
  • the processor 180 is specifically configured to determine the first moment according to the moment when the display synchronization signal is detected and the position of the ambient light sensor 151 on the OLED display screen 140.
  • the processor 180 is also specifically configured to: determine the first time according to the third time and the position of the ambient light sensor 151 on the OLED display 140; wherein, the third time is the first time delay when the display synchronization signal is detected.
  • the first duration is related to the single refresh duration of the OLED display screen 140 and the turn-off duration of the LED in the display area corresponding to the ambient light sensor 151.
  • the first duration may be the difference between the single refresh duration of the OLED display screen 140 and the turn-off duration of the LED in the display area corresponding to the ambient light sensor 151.
  • turning off the LED of the display area corresponding to the ambient light sensor 151 is used to refresh the next frame of image of the OLED display 140; and/or, the display area corresponding to the ambient light sensor 151 Turning off the LED is used to adjust the brightness of the OLED display 140.
  • the time between the on time and the off time is the off time of the LED in the display area corresponding to the ambient light sensor 151 when the next frame of the OLED display 140 is refreshed; or, the time between the on time and the off time
  • the duration is the duration during which the LED in the display area corresponding to the ambient light sensor 151 is turned off when the brightness of the OLED display 140 is adjusted.
  • the processor 180 is further specifically configured to: turn on and turn off the ambient light sensor 151 multiple times, so that the total duration of the ambient light sensor 151 in the on state meets the preset collection duration.
  • the electronic device detects the display synchronization signal to determine the corresponding first time and second time when the LED of the display area corresponding to the ambient light sensor remains in the off state, so that only when the ambient light sensor corresponds
  • the ambient light data is collected when the LED in the display area is kept off, thereby avoiding the influence of the OLED display itself on the collected ambient light data and improving the signal-to-noise ratio of the ambient light data; in addition, this method does not require high performance
  • the ambient light sensor can reduce the amount of collected ambient light data and reduce the data processing requirements of electronic equipment.

Abstract

Provided in the present application are an ambient light data collection method and an electronic device, relating to the technical field of electronic devices, and used for reducing the data volume of collected ambient light data. The method is applied to an electronic device with an OLED display screen covering an ambient light sensor, and comprises: detecting a display synchronization signal; in response to the detected display synchronization signal, determining a first moment and a second moment, wherein the first moment is a starting moment of an LED in a display screen area corresponding to an ambient light sensor, the second moment is a shutting moment of the LED of the display screen area corresponding to the ambient light sensor, the first moment is earlier than the second moment, and the LED of the display screen area corresponding to the ambient light sensor is kept in a shut state between the first moment and the second moment; starting the ambient light sensor, wherein a starting moment of the ambient light sensor is not earlier than the first moment; and shutting the ambient light sensor, wherein a shutting time of the ambient light sensor is not later than the second time.

Description

一种环境光数据采集方法及电子设备Ambient light data collection method and electronic equipment
本申请要求在2019年3月25日提交中国国家知识产权局、申请号为201910229473.1、发明名称为“一种环境光数据采集方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201910229473.1, and the invention title is "A method for collecting ambient light data and electronic equipment" on March 25, 2019, the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请涉及电子设备技术领域,尤其涉及一种环境光数据采集方法及电子设备。This application relates to the technical field of electronic equipment, and in particular to an ambient light data collection method and electronic equipment.
背景技术Background technique
在手机、平板电脑、照相机和摄像机等一些使用有机发光二极管(organic light-emitting diode,OLED)显示屏的电子设备中,通常需要通过光传感器检测外界环境的光照强度,并根据检测到的光照强度调节电子设备中OLED显示屏的自动背光亮度。In some electronic devices that use organic light-emitting diode (OLED) displays such as mobile phones, tablets, cameras, and camcorders, it is usually necessary to detect the light intensity of the external environment through a light sensor, and according to the detected light intensity Adjust the automatic backlight brightness of the OLED display in electronic equipment.
在进行环境光照度检测时,由于OLED显示屏本身也会发光,为了避免OLED显示屏的亮度对检测结果造成影响,通常通过下述方法来检测。具体的,利用具有高灵敏度和高采样率的光传感器,在高采样率下采集一段时间内的环境光照度,通过在检测到的多个环境光照度中寻找最小值,即可得到未被OLED显示屏亮度干扰的环境光照度。When the ambient light intensity is detected, since the OLED display screen itself also emits light, in order to prevent the brightness of the OLED display screen from affecting the detection result, the following method is usually used for detection. Specifically, a light sensor with high sensitivity and high sampling rate is used to collect the ambient illuminance for a period of time at a high sampling rate, and by finding the minimum value among the detected multiple ambient illuminances, the non-OLED display can be obtained. The ambient illuminance of brightness interference.
但是,上述方案对光传感器的性能要求较高,且在高采样率下采集到的环境光照度的数据量较大,从而对电子设备的数据处理能力要求较高。However, the above-mentioned solutions have higher requirements on the performance of the light sensor, and the amount of environmental illuminance data collected at a high sampling rate is relatively large, which requires higher data processing capabilities of the electronic device.
发明内容Summary of the invention
本申请提供一种环境光数据采集方法及电子设备,用于降低采集到的环境光数据的数据量。This application provides a method and electronic equipment for collecting ambient light data, which are used to reduce the amount of collected ambient light data.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above objectives, this application adopts the following technical solutions:
第一方面,提供一种环境光数据采集方法,应用于包括OLED显示屏和环境光传感器的电子设备中,比如该电子设备可以是手机、摄像机等,OLED显示屏覆盖在环境光传感器上方,该方法包括:检测显示同步信号,该显示同步信号可以为显示内容刷新时的同步信号,比如TE信号;响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器,以使环境光传感器开始采集环境光数据,环境光传感器的开启时刻不早于第一时刻;关闭环境光传感器,以使环境光传感器结束采集环境光数据,环境光传感器的关闭时刻不晚于第二时刻。In the first aspect, a method for collecting ambient light data is provided, which is applied to an electronic device including an OLED display screen and an ambient light sensor. For example, the electronic device may be a mobile phone, a camera, etc., and the OLED display screen covers the ambient light sensor. The method includes: detecting a display synchronization signal, the display synchronization signal may be a synchronization signal when the display content is refreshed, such as a TE signal; in response to detecting the display synchronization signal, determining a first moment and a second moment, the first moment being an ambient light sensor When the LED of the corresponding display area is turned on, the second time is the turn-off time of the LED of the display area corresponding to the ambient light sensor. The first time is earlier than the second time, and the LED of the display area corresponding to the ambient light sensor is at the second time. Keep the off state between the first moment and the second moment; turn on the ambient light sensor so that the ambient light sensor starts to collect ambient light data, and the ambient light sensor is turned on no earlier than the first moment; turn off the ambient light sensor to make the ambient light The sensor ends collecting ambient light data, and the closing time of the ambient light sensor is no later than the second moment.
上述技术方案中,通过检测到显示同步信号,确定环境光传感器对应的显示屏区域的LED保持关闭状态时对应的第一时刻和第二时刻,从而仅在环境光传感器对应的显示屏区域的LED保持关闭状态时采集环境光数据,从而避免了OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比;此外,该方法无需高性能的环境光传感器,且能够减少采集到的环境光数据的数据量,降低对电子设备的数据处理能力要求。In the above technical solution, by detecting the display synchronization signal, the first time and the second time corresponding to when the LED of the display area corresponding to the ambient light sensor remains off are determined, so that only the LEDs in the display area corresponding to the ambient light sensor The ambient light data is collected when it is kept off, thereby avoiding the influence of the OLED display itself on the collected ambient light data and improving the signal-to-noise ratio of the ambient light data; in addition, this method does not require a high-performance ambient light sensor, And it can reduce the amount of collected ambient light data and reduce the data processing capability requirements of electronic devices.
在第一方面的一种可能的实现方式中,确定第二时刻包括:根据检测到显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。上述可能的实现方式中,由于第二时刻与显示同步信号和环境光传感器在OLED显示屏的位置有关,因此提供了一种简单有效的确定第一时刻的方式。In a possible implementation of the first aspect, determining the second moment includes: determining the second moment according to the moment when the display synchronization signal is detected and the position of the ambient light sensor on the OLED display screen. In the foregoing possible implementation manners, since the second moment is related to the display synchronization signal and the position of the ambient light sensor on the OLED display screen, a simple and effective way of determining the first moment is provided.
在第一方面的一种可能的实现方式中,确定第二时刻包括:根据第三时刻和环境光传感器在OLED显示屏的位置,确定第二时刻;其中,第三时刻为检测到显示同步信号的时刻延迟第一时长的时刻,第一时长与OLED显示屏的单次刷新时长和环境光传感器对应的显示屏区域的LED的关闭时长有关,单次刷新时长和环境光传感器对应的显示屏区域的LED的关闭时长是可知的。上述可能的实现方式,由于第二时刻与第三时刻和环境光传感器在OLED显示屏的位置有关,因此提供了另一种简单有效的确定第一时刻的方式。In a possible implementation of the first aspect, determining the second moment includes: determining the second moment according to the third moment and the position of the ambient light sensor on the OLED display screen; wherein the third moment is the detection of the display synchronization signal The first time is delayed by the first time. The first time is related to the single refresh time of the OLED display and the off time of the LED in the display area corresponding to the ambient light sensor. The single refresh time is related to the display area corresponding to the ambient light sensor. The off time of the LED is known. The foregoing possible implementation manners, since the second moment is related to the third moment and the position of the ambient light sensor on the OLED display screen, it provides another simple and effective way to determine the first moment.
在第一方面的一种可能的实现方式中,第一时长为OLED显示屏的单次刷新时长与环境光传感器对应的显示屏区域的LED的关闭时长之间的差值。上述可能的实现方式,提供了一种简单有效地确定第一时长的方式。In a possible implementation of the first aspect, the first duration is the difference between the single refresh duration of the OLED display screen and the turn-off duration of the LED in the display area corresponding to the ambient light sensor. The foregoing possible implementation manners provide a simple and effective way to determine the first duration.
在第一方面的一种可能的实现方式中,环境光传感器对应的显示屏区域的LED的关闭用于刷新OLED显示屏的下一帧图像;和/或,环境光传感器对应的显示屏区域的LED的关闭用于调节OLED显示屏的亮度。上述可能的实现方式中,该电子设备能够利用刷新OLED显示屏的下一帧图像时关闭的显示屏区域的LED,和/或调节OLED显示屏的亮度时关闭的显示屏区域的LED来采集环境光数据,从而提高了采集环境光数据的灵活性和多样性,同时还能够提高采集到的环境光数据的稳定性。In a possible implementation of the first aspect, turning off the LED in the display area corresponding to the ambient light sensor is used to refresh the next frame of the OLED display; and/or, the display area corresponding to the ambient light sensor Turning off the LED is used to adjust the brightness of the OLED display. In the foregoing possible implementation manners, the electronic device can use LEDs in the display area that are turned off when refreshing the next frame of the OLED display, and/or LEDs in the display area that are turned off when adjusting the brightness of the OLED display to collect the environment Light data, thereby improving the flexibility and diversity of the collected ambient light data, and at the same time can improve the stability of the collected ambient light data.
在第一方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为刷新OLED显示屏的下一帧图像时环境光传感器对应的显示屏区域的LED的关闭时长。上述可能的实现方式中,该电子设备能够控制环境光传感器在OLED显示屏的帧图像刷新过程中,利用刷新时关闭的显示屏区域的LED的时长采集环境光数据,从而避免OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比。In a possible implementation of the first aspect, the duration between the turn-on time and the turn-off time is the turn-off duration of the LED in the display area corresponding to the ambient light sensor when the next frame of the OLED display screen is refreshed. In the above possible implementation manner, the electronic device can control the ambient light sensor to collect ambient light data by using the duration of the LED in the display area that is turned off during refresh during the refreshing process of the frame image of the OLED display, thereby avoiding the OLED display itself. The influence of luminescence on the collected ambient light data improves the signal-to-noise ratio of the ambient light data.
在第一方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为调节OLED显示屏的亮度时环境光传感器对应的显示屏区域的LED关闭的时长。上述可能的实现方式中,该电子设备能够控制环境光传感器在OLED显示屏的亮度调节过程中,利用亮度调节时关闭的显示屏区域的LED的时长采集环境光数据,从而避免OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比。In a possible implementation of the first aspect, the length of time between the turn-on time and the turn-off time is the length of time that the LED in the display area corresponding to the ambient light sensor is turned off when the brightness of the OLED display is adjusted. In the above possible implementation manner, the electronic device can control the ambient light sensor to collect ambient light data during the brightness adjustment process of the OLED display screen by using the duration of the LED in the display area that is turned off during the brightness adjustment, thereby avoiding the OLED display itself. The influence of luminescence on the collected ambient light data improves the signal-to-noise ratio of the ambient light data.
在第一方面的一种可能的实现方式中,该方法还包括:多次开启和关闭环境光传感器,以使环境光传感器处于开启状态的总时长满足预设采集时长。上述可能的实现方式中,能够进一步提高环境光传感器采集到的环境光数据的信噪比,从而环境光数据的稳定性。In a possible implementation manner of the first aspect, the method further includes: turning on and off the ambient light sensor multiple times, so that the total duration of the ambient light sensor in the on state meets the preset collection duration. In the foregoing possible implementation manners, the signal-to-noise ratio of the ambient light data collected by the ambient light sensor can be further improved, thereby the stability of the ambient light data.
第二方面,提供一种电子设备,该电子设备包括:处理器、OLED显示屏和环境光传感器,OLED显示屏覆盖在环境光传感器上方,该处理器用于执行以下步骤:检测显示同步信号;响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器,环境光传感器的开启时刻不早于第一时刻;关闭环境光传感器,环境光传感器的关闭时刻不晚于第二时刻。In a second aspect, an electronic device is provided. The electronic device includes a processor, an OLED display screen, and an ambient light sensor. The OLED display screen covers the ambient light sensor. The processor is configured to perform the following steps: detecting a display synchronization signal; When the display synchronization signal is detected, the first time and the second time are determined. The first time is the turn-on time of the LED in the display area corresponding to the ambient light sensor, and the second time is the turn-off of the LED in the display area corresponding to the ambient light sensor. When the first moment is earlier than the second moment, the LED in the display area corresponding to the ambient light sensor remains off between the first moment and the second moment; when the ambient light sensor is turned on, the ambient light sensor is turned on no earlier than the second moment. One moment: Turn off the ambient light sensor, and the turn off time of the ambient light sensor is no later than the second moment.
在第二方面的一种可能的实现方式中,处理器具体用于:根据检测到显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。In a possible implementation manner of the second aspect, the processor is specifically configured to determine the second moment according to the moment when the display synchronization signal is detected and the position of the ambient light sensor on the OLED display screen.
在第二方面的一种可能的实现方式中,处理器具体还用于:根据第三时刻和环境光传感器在OLED显示屏的位置,确定第二时刻;其中,第三时刻为检测到显示同步信号的时刻延迟第一时长的时刻,第一时长与OLED显示屏的单次刷新时长和环境光传感器对应的显示屏区域的LED的关闭时长有关。In a possible implementation of the second aspect, the processor is specifically further configured to: determine the second time according to the third time and the position of the ambient light sensor on the OLED display screen; wherein, the third time is the detection of display synchronization The time of the signal is delayed by the time of the first duration, and the first duration is related to the single refresh duration of the OLED display screen and the turn-off duration of the LED in the display area corresponding to the ambient light sensor.
在第二方面的一种可能的实现方式中,第一时长为OLED显示屏的单次刷新时长与环境光传感器对应的显示屏区域的LED的关闭时长之间的差值。In a possible implementation of the second aspect, the first duration is the difference between the single refresh duration of the OLED display screen and the turn-off duration of the LED in the display area corresponding to the ambient light sensor.
在第二方面的一种可能的实现方式中,环境光传感器对应的显示屏区域的LED的关闭用于刷新OLED显示屏的下一帧图像;和/或,环境光传感器对应的显示屏区域的LED的关闭用于调节OLED显示屏的亮度。In a possible implementation of the second aspect, turning off the LED of the display area corresponding to the ambient light sensor is used to refresh the next frame of the OLED display; and/or, the display area corresponding to the ambient light sensor Turning off the LED is used to adjust the brightness of the OLED display.
在第二方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为刷新OLED显示屏的下一帧图像时环境光传感器对应的显示屏区域的LED的关闭时长。In a possible implementation of the second aspect, the duration between the turn-on time and the turn-off time is the turn-off duration of the LED in the display area corresponding to the ambient light sensor when the next frame of the OLED display screen is refreshed.
在第二方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为调节OLED显示屏的亮度时环境光传感器对应的显示屏区域的LED的关闭时长。In a possible implementation of the second aspect, the time period between the on time and the off time is the off time of the LED in the display area corresponding to the ambient light sensor when the brightness of the OLED display is adjusted.
在第二方面的一种可能的实现方式中,处理器还具体用于:多次开启和关闭环境光传感器,以使环境光传感器处于开启状态的总时长满足预设采集时长。In a possible implementation manner of the second aspect, the processor is further specifically configured to: turn on and turn off the ambient light sensor multiple times, so that the total duration of the ambient light sensor in the on state meets the preset collection duration.
可以理解地,上述提供的任一种电子设备均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。It is understandable that any electronic device provided above is used to execute the corresponding method provided above. Therefore, the beneficial effects that it can achieve can refer to the beneficial effects in the corresponding method provided above. I won't repeat it here.
附图说明Description of the drawings
图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application;
图2为本申请实施例提供的另一种电子设备的结构示意图;2 is a schematic structural diagram of another electronic device provided by an embodiment of the application;
图3为本申请实施例提供的第一种环境光数据采集方法的流程示意图;FIG. 3 is a schematic flowchart of the first ambient light data collection method provided by an embodiment of the application;
图4为本申请实施例提供的一种刷新关闭的显示屏区域的示意图;4 is a schematic diagram of a refreshed closed display area provided by an embodiment of the application;
图5为本申请实施例提供的一种亮度调节关闭的显示屏区域的示意图;5 is a schematic diagram of a display screen area with brightness adjustment turned off according to an embodiment of the application;
图6为本申请实施例提供的第二种环境光数据采集方法的流程示意图;FIG. 6 is a schematic flowchart of a second ambient light data collection method provided by an embodiment of the application;
图7为本申请实施例提供的第一种OLED显示屏在不同亮度下的工作时序图;FIG. 7 is a working sequence diagram of the first OLED display screen provided by an embodiment of the application under different brightness;
图8为本申请实施例提供的第三种环境光数据采集方法的流程示意图;FIG. 8 is a schematic flowchart of a third method for collecting ambient light data according to an embodiment of the application;
图9为本申请实施例提供的第二种OLED显示屏在不同亮度下的工作时序图;FIG. 9 is a working sequence diagram of the second OLED display screen provided by an embodiment of the application under different brightness;
图10为本申请实施例提供的第四种环境光数据采集方法的流程示意图;FIG. 10 is a schematic flowchart of a fourth method for collecting ambient light data according to an embodiment of the application;
图11为本申请实施例提供的第三种OLED显示屏在不同亮度下的工作时序图。FIG. 11 is a working sequence diagram of a third OLED display screen provided by an embodiment of the application under different brightness.
具体实施方式detailed description
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c或a-b-c,其中a、b和c可以是单个,也可以是多个。字符“/”一般表示前后关联对象是一种“或”的关系。另外,在本申请的实施例中,“第一”、“第二”等字样并不对数量和执行次序进行限定。In this application, "at least one" refers to one or more, and "multiple" refers to two or more. "And/or" describes the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B, which can mean: A alone exists, both A and B exist, and B exists alone, where A, B can be singular or plural. "The following at least one item (a)" or similar expressions refers to any combination of these items, including any combination of a single item (a) or plural items (a). For example, at least one of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple. The character "/" generally indicates that the associated objects are in an "or" relationship. In addition, in the embodiments of the present application, words such as "first" and "second" do not limit the number and execution order.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证 或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or illustrations. Any embodiment or design solution described as "exemplary" or "for example" in this application should not be construed as being more preferable or advantageous than other embodiments or design solutions. To be precise, words such as "exemplary" or "for example" are used to present related concepts in a specific manner.
图1为本申请实施例提供的一种电子设备的结构示意图,该电子设备可以是手机、平板电脑、计算机、可穿戴设备、车载设备、电子终端以及便携式终端等,为便于描述,本申请实施例中统称为电子设备。下面以该电子设备是手机为例,对该电子设备的结构进行举例说明。Figure 1 is a schematic structural diagram of an electronic device provided by an embodiment of the application. The electronic device may be a mobile phone, a tablet computer, a computer, a wearable device, a vehicle-mounted device, an electronic terminal, a portable terminal, etc. For ease of description, this application implements Collectively referred to as electronic devices in the examples. Taking the electronic device as a mobile phone as an example, the structure of the electronic device will be described as an example.
参见图1,该手机可以包括:RF(radio frequency,射频)电路110、存储器120、其他输入设备130、显示屏140、传感器组件150、音频电路160、输入/输出(input/output,I/O)子系统170、处理器180、以及电源190等部件。其中,处理器180分别与RF电路110、存储器120、音频电路160、以及电源190均连接。I/O子系统170分别与其他输入设备130、有机发光二极管(organic light-emitting diode,OLED)显示屏140、传感器组件150均连接。Referring to FIG. 1, the mobile phone may include: an RF (radio frequency, radio frequency) circuit 110, a memory 120, other input devices 130, a display screen 140, a sensor component 150, an audio circuit 160, input/output (input/output, I/O) ) Components such as subsystem 170, processor 180, and power supply 190. Wherein, the processor 180 is respectively connected to the RF circuit 110, the memory 120, the audio circuit 160, and the power supply 190. The I/O subsystem 170 is respectively connected to other input devices 130, an organic light-emitting diode (OLED) display screen 140, and a sensor component 150.
其中,RF电路110可用于收发信息或通话过程中信号的接收和发送。通常,RF电路110包括但不限于天线、放大器、收发信机、耦合器、LNA(low noise amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信,比如通过WiFi网络与接入网设备通信。Among them, the RF circuit 110 can be used for receiving and transmitting information or signals during a call. Generally, the RF circuit 110 includes, but is not limited to, an antenna, an amplifier, a transceiver, a coupler, an LNA (low noise amplifier, low noise amplifier), a duplexer, and the like. In addition, the RF circuit 110 may also communicate with the network and other devices through wireless communication, such as communicating with an access network device through a WiFi network.
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行该手机的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据该手机的使用所创建的数据(比如音频数据、图像数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 120 may be used to store software programs and modules. The processor 180 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 120. The memory 120 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function, etc.; the storage data area may store data created based on the use of the mobile phone (such as audio Data, image data, phone book, etc.) etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。其中,其他输入设备130可包括但不限于物理键盘、功能键(比如音量控制按键、电源开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The other input device 130 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the mobile phone. The other input device 130 may include, but is not limited to, one or more of a physical keyboard, function keys (such as a volume control button, a power switch button, etc.), a trackball, a mouse, and a joystick.
OLED显示屏140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单,还可以接受用户输入,OLED显示屏140可以包括显示面板141和触摸面板142。在本申请实施例中,该OLED显示屏104中的显示面板141可以采用OLED的形式来配置,比如,显示面板141可以包括OLED阵列,OLED阵列包括多行多列的OLED。The OLED display screen 140 can be used to display information input by the user or information provided to the user and various menus of the mobile phone, and can also accept user input. The OLED display screen 140 can include a display panel 141 and a touch panel 142. In the embodiment of the present application, the display panel 141 in the OLED display screen 104 may be configured in the form of an OLED. For example, the display panel 141 may include an OLED array, which includes multiple rows and multiple columns of OLEDs.
传感器组件150包括一个或多个传感器,用于为该手机提供各个方面的状态评估。在本申请实施例中,传感器组件150可以包括环境光传感器,用于采集环境光照度等数据,以对OLED显示屏140的自动背光亮度进行调整。进一步的,传感器组件150还可以包括温度传感器、加速度传感器,陀螺仪传感器,磁传感器或压力传感器,通过传感器组件150可以检测到该手机的温度变化、该手机的加速/减速、方位、打开/关闭状态,或者组件的相对定位等。此外,传感器组件150还可以包括CMOS或CCD图像传感器等用于在成像应用中使用。The sensor component 150 includes one or more sensors for providing various aspects of the state evaluation of the mobile phone. In the embodiment of the present application, the sensor component 150 may include an ambient light sensor for collecting data such as ambient light intensity to adjust the automatic backlight brightness of the OLED display 140. Further, the sensor component 150 may also include a temperature sensor, an acceleration sensor, a gyroscope sensor, a magnetic sensor or a pressure sensor. The temperature change of the mobile phone, the acceleration/deceleration, the orientation, and opening/closing of the mobile phone can be detected by the sensor assembly 150. Status, or relative positioning of components, etc. In addition, the sensor component 150 may also include a CMOS or CCD image sensor for use in imaging applications.
音频电路160可提供用户与手机之间的音频接口,比如音频电路160通过扬声器和麦克风提供用户与该手机之间的音频接口。其中,音频电路160可将接收到的音频数据 转换后的电信号,传输到扬声器,由扬声器转换为声音信号输出;另一方面,麦克风将收集的声音信号转换为电信号,由音频电路接收后转换为音频数据,再将音频数据输出至RF电路110以发送给比如另一手机,或者将音频数据输出至存储器120以便进一步处理。The audio circuit 160 can provide an audio interface between the user and the mobile phone. For example, the audio circuit 160 provides an audio interface between the user and the mobile phone through a speaker and a microphone. Among them, the audio circuit 160 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit The audio data is converted into audio data, and then the audio data is output to the RF circuit 110 to be sent to, for example, another mobile phone, or the audio data is output to the memory 120 for further processing.
I/O子系统170用来控制输入输出的外部设备,外部设备可以包括其他设备输入控制器、传感器控制器、显示控制器等。The I/O subsystem 170 is used to control input and output external devices. The external devices may include other device input controllers, sensor controllers, display controllers, and so on.
处理器180是该手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行该手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;比如,处理器180可集成应用处理器(Application Processor,AP)和调制解调处理器(modem),其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 120, and calling data stored in the memory 120, Perform various functions of the mobile phone and process data to monitor the mobile phone as a whole. Optionally, the processor 180 may include one or more processing units; for example, the processor 180 may integrate an application processor (AP) and a modem (modem), where the application processor mainly processes operations For systems, user interfaces and applications, the modem processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 180.
电源190(比如电池)用于给上述各个部件供电。其中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。The power source 190 (such as a battery) is used to power the above-mentioned various components. Among them, the power supply can be logically connected to the processor 180 through a power management system, so that functions such as charging, discharging, and power consumption can be managed through the power management system.
在本申请实施例中,该手机包括的OLED显示屏140和环境光传感器151的位置关系可以如图2所示,即OLED显示屏140可以覆盖在环境光传感器151的上方。其中,环境光传感器151可以被OLED显示屏140的顶部覆盖,或者被OLED显示屏140的中间部分覆盖,又或者被OLED显示屏140的底部覆盖,图2中以环境光传感器151被OLED显示屏140的顶部覆盖为例进行举例说明。另外,该手机可以是全面屏手机,也可以不是全面屏手机,本申请实施例对此不作具体限定。In the embodiment of the present application, the positional relationship between the OLED display screen 140 and the ambient light sensor 151 included in the mobile phone may be as shown in FIG. 2, that is, the OLED display screen 140 may cover the ambient light sensor 151. Among them, the ambient light sensor 151 can be covered by the top of the OLED display 140, or by the middle part of the OLED display 140, or by the bottom of the OLED display 140. In FIG. 2, the ambient light sensor 151 is covered by the OLED display. Take the top cover of 140 as an example for illustration. In addition, the mobile phone may be a full-screen mobile phone or not a full-screen mobile phone, which is not specifically limited in the embodiment of the present application.
本领域技术人员可以理解,图1中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 1 does not constitute a limitation on the mobile phone, and may include more or less components than those shown in the figure, or a combination of certain components, or different component arrangements.
图3为本申请实施例提供的第一种环境光数据采集方法的流程示意图,该方法可应用于上文所述的电子设备中,该电子设备中的OLED显示屏覆盖在环境光传感器的上方,该方法具体可以由该电子设备中的处理器执行,参见图3,该方法包括以下几个步骤。FIG. 3 is a schematic flowchart of the first ambient light data collection method provided by an embodiment of the application. The method can be applied to the electronic device described above, in which the OLED display screen covers the ambient light sensor The method can be specifically executed by the processor in the electronic device. Referring to FIG. 3, the method includes the following steps.
S301:检测显示同步信号,该显示同步信号为显示内容刷新时的同步信号。S301: Detect a display synchronization signal, where the display synchronization signal is a synchronization signal when the display content is refreshed.
其中,OLED显示屏在显示图像、视频等显示内容时是以一帧(frame)一帧的形式进行刷新显示的,且每一帧的刷新显示可以是按照从上而下的顺序逐行刷新的,从而一帧的显示内容需要通过多次刷新来完成。在一帧的刷新过程中,每次刷新的显示屏区域的LED由开启转为关闭,即:对应区域变成黑色,然后再在该显示屏区域显示刷新后的内容。当OLED显示屏完成一整帧的显示内容的刷新时,则会输出一个显示同步信号,该显示同步信号可用于指示该帧的显示内容刷新完成。Among them, the OLED display screen is refreshed and displayed in the form of frame by frame when displaying images, videos, etc., and the refresh display of each frame can be refreshed line by line in the order from top to bottom. Therefore, the display content of one frame needs to be refreshed multiple times. During the refreshing process of one frame, the LED of the display area that is refreshed each time is turned from on to off, that is, the corresponding area becomes black, and then the refreshed content is displayed in the display area. When the OLED display screen finishes refreshing the display content of a whole frame, it will output a display synchronization signal, which can be used to indicate that the display content refresh of the frame is completed.
具体的,在OLED显示屏刷新显示过程中,该电子设备的处理器可以检测OLED显示屏输出的显示同步信号,该显示同步信号具体可以为画面撕裂效果(tearing effect,TE)信号,或者其他与显示内容刷新同步的信号等。Specifically, during the refresh display process of the OLED display, the processor of the electronic device may detect the display synchronization signal output by the OLED display. The display synchronization signal may specifically be a tearing effect (TE) signal, or other Signals synchronized with the refresh of the display content, etc.
S302:响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态。S302: In response to detecting the display synchronization signal, determine the first time and the second time. The first time is the turn-on time of the LED of the display area corresponding to the ambient light sensor, and the second time is the display area corresponding to the ambient light sensor. When the LED is turned off, the first time is earlier than the second time, and the LED in the display area corresponding to the ambient light sensor remains off between the first time and the second time.
其中,环境光传感器对应的显示屏区域的LED具体可以是指OLED显示屏中覆盖在环境光传感器上方的显示屏区域的LED。该显示屏区域的LED的状态与环境光传感器采集的环境光数据的准确度有关。具体的,当环境光传感器对应的显示屏区域的LED处于开启状态(也可称为点亮状态),则环境光传感器采集到的环境光数据会因为该显示屏区域的LED处于开启状态而受到影响,即采集到的环境光数据中会同时包括周围环境的光数据和该显示屏区域的LED的光数据;当环境光传感器对应的显示屏区域的LED处于关闭状态时,环境光传感器采集到的环境光数据不会受到影响,即采集到的环境光数据中仅包括周围环境的光数据。因此,为了保证后续环境光传感器采集到的环境光数据不会受到影响,该电子设备可以确定环境光传感器对应的显示屏区域的LED处于关闭状态时的时间段,即确定第一时刻和第二时刻。Among them, the LED in the display area corresponding to the ambient light sensor may specifically refer to the LED in the OLED display screen covering the display area above the ambient light sensor. The status of the LED in the display area is related to the accuracy of the ambient light data collected by the ambient light sensor. Specifically, when the LED of the display area corresponding to the ambient light sensor is in the on state (also called the lit state), the ambient light data collected by the ambient light sensor will be affected because the LED in the display area is on. Impact, that is, the collected ambient light data will include both the ambient light data and the LED light data in the display area; when the LED in the display area corresponding to the ambient light sensor is off, the ambient light sensor collects The ambient light data will not be affected, that is, the collected ambient light data only includes the light data of the surrounding environment. Therefore, in order to ensure that the ambient light data collected by the ambient light sensor will not be affected, the electronic device can determine the time period when the LED of the display area corresponding to the ambient light sensor is in the off state, that is, determine the first moment and the second moment. time.
另外,在OLED显示屏的显示过程中,至少两种情况需要将显示屏区域的LED关闭一段时间,这两种情况包括显示内容的刷新过程和OLED显示屏的亮度调节过程,下面分别对这两种情况进行介绍说明。In addition, during the display process of the OLED display, at least two situations need to turn off the LEDs in the display area for a period of time. These two situations include the refreshing process of the displayed content and the brightness adjustment process of the OLED display. This situation is introduced.
第一种、显示内容的刷新过程。The first is the refreshing process of the displayed content.
其中,上述S301中提到,在一帧的刷新过程中,每次刷新的显示屏区域会先变成黑色,然后再在该刷新的显示屏区域显示刷新后的内容,该刷新的显示屏区域会先变成黑色具体是通过关闭该刷新的显示屏区域的LED来实现的,即此时该刷新的显示屏区域的LED处于关闭状态,后续称为刷新关闭的显示屏区域。当该刷新关闭的显示屏区域移动至环境光传感器对应的显示屏区域(即环境光传感器对应的显示屏区域的LED的关闭用于刷新OLED显示屏的下一帧图像,具体可以如图4所示)时,确定第一时刻和第二时刻,第一时刻和第二时刻之间即为确定该刷新关闭的显示屏区域的LED处于关闭状态的时间段。Among them, it is mentioned in the above S301 that during the refreshing process of one frame, each refreshed display area will first become black, and then the refreshed content will be displayed in the refreshed display area. The first change to black is specifically achieved by turning off the LEDs of the refreshed display area, that is, the LEDs of the refreshed display area are in the off state, which is subsequently referred to as the refreshed off display area. When the refresh-off display area is moved to the display area corresponding to the ambient light sensor (that is, the LED of the display area corresponding to the ambient light sensor is turned off to refresh the next frame of the OLED display, as shown in Figure 4 Show), the first time and the second time are determined, and the period between the first time and the second time is the time period during which it is determined that the LED of the display screen area whose refresh is off is off.
另外,在同一帧的显示内容刷新过程中,该显示同步信号是OLED显示屏在完成这一整帧的显示内容的刷新时输出的信号,该刷新关闭的显示屏区域的LED的关闭时刻也是完成这一整帧的显示内容的刷新时的时刻,即对于同一帧而言,该帧对应的显示同步信号和该刷新关闭的显示屏区域的LED的关闭时刻是同步的。因此,基于这个同步关系,可以确定该刷新关闭的显示屏区域的LED的关闭时刻。In addition, in the process of refreshing the display content of the same frame, the display synchronization signal is the signal output by the OLED display screen when the refreshing of the display content of the whole frame is completed, and the turning off time of the LED in the display area where the refresh is turned off is also completed. The moment when the display content of this entire frame is refreshed, that is, for the same frame, the display synchronization signal corresponding to the frame and the turn-off moment of the LED of the display screen area where the refresh is turned off are synchronized. Therefore, based on this synchronization relationship, the turning off time of the LED of the display screen area whose refresh is turned off can be determined.
在一种可能的实现方式中,当该刷新关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED时,确定第二时刻,可以包括:根据检测到该显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。具体的,该电子设备可以根据检测到该显示同步信号的时刻、OLED显示屏的单次刷新时长和环境光传感器在OLED显示屏的位置,确定第二时刻。这里的检测到该显示同步信号的时刻可以是指检测到第一帧完成刷新时的显示同步信号的时刻,第二时刻可以是指第二帧刷新过程中该刷新关闭的显示屏区域的LED的关闭时刻,第二帧为与第一帧相邻的下一帧。In a possible implementation, when the LED of the display screen area whose refresh is turned off is the LED of the display screen area corresponding to the ambient light sensor, determining the second moment may include: according to the moment when the display synchronization signal is detected and The location of the ambient light sensor on the OLED display determines the second moment. Specifically, the electronic device may determine the second moment according to the time when the display synchronization signal is detected, the single refresh duration of the OLED display screen, and the position of the ambient light sensor on the OLED display screen. The time when the display synchronization signal is detected here may refer to the time when the display synchronization signal is detected when the refresh of the first frame is completed, and the second time may refer to the LED in the display area where the refresh is turned off during the refresh process of the second frame. At the moment of closing, the second frame is the next frame adjacent to the first frame.
其中,OLED显示屏的单次刷新时长与OLED显示屏的刷新频率有关,该OLED显示屏的刷新频率是常数,比如,该OLED显示屏的刷新频率为是60Hz,从而该单次刷新时长约等于16.667毫秒(ms)。环境光传感器在OLED显示屏的位置具体可用于确定该刷新关闭的显示屏区域从OLED显示屏的最上方移动至环境光传感器对应的显示屏区域时所需要的时长,后续称为第一移动时长,比如,第一移动时长可以等于L/V1,L表示环境光传感器距离OLED显示屏的最上方的长度,V1表示该刷新关闭的显示屏区域的移动速度,该移动速度V1可以等于OLED显示屏的长度与OLED显示屏的单次刷新时长 的比值。Among them, the single refresh time of the OLED display is related to the refresh frequency of the OLED display. The refresh frequency of the OLED display is constant. For example, the refresh frequency of the OLED display is 60 Hz, so the single refresh time is approximately equal to 16.667 milliseconds (ms). The location of the ambient light sensor on the OLED display can be specifically used to determine the time required for the refresh-off display area to move from the top of the OLED display to the display area corresponding to the ambient light sensor, which will be referred to as the first movement duration in the following For example, the first movement duration can be equal to L/V1, L represents the length of the ambient light sensor from the top of the OLED display, V1 represents the movement speed of the display area where the refresh is off, and the movement speed V1 can be equal to the OLED display The ratio of the length of the OLED display to the single refresh time.
示例性的,假设第一移动时长为T S1、单次刷新时长为T f,则该电子设备可以将检测到该显示同步信号的时刻延迟单次刷新时长T f,若第一移动时长T S1为零,则可直接得到第二时刻,若第一移动时长T S1不为零,则可将延迟单次刷新时长T f后的时刻再延迟T S1,即可得到第二时刻。进一步的,在确定第二时刻之后,可以根据该刷新关闭的显示屏区域的LED的关闭时长确定第一时刻,该刷新关闭的显示屏区域的LED的关闭时长T b1由该电子设备控制,即该关闭时长T b1是已知的,该电子设备将第二时刻提前该关闭时长T b1即可确定第一时刻。 Exemplarily, assuming that the first movement duration is T S1 and the single refresh duration is T f , the electronic device may delay the time when the display synchronization signal is detected by the single refresh duration T f , if the first movement duration T S1 is zero, the second time may be obtained directly, when the first mobile Sl duration T is not zero, the delay may be single refresh time T again after the long delay T f Sl, to obtain a second time. Further, after the second moment is determined, the first moment may be determined according to the off duration of the LEDs in the refresh-off display area, and the off duration T b1 of the LEDs in the refresh-off display area is controlled by the electronic device, namely The closing time T b1 is known, and the electronic device advances the second time by the closing time T b1 to determine the first time.
第二种、OLED显示屏的亮度调节过程。The second is the brightness adjustment process of the OLED display.
其中,OLED显示屏的亮度调节可以包括两种工作模式,即脉冲宽度调制(pulse-width modulation,PWM)模式和非PWM模式,PWM模式下需要一个占空比调节信号(比如,该占空比调节信号可以为频率为240Hz的方波信号),非PWM模式下不需要占空比调节信号。PWM模式可以是指在OLED显示屏的亮度较低时,通过PWM控制OLED显示屏中LED的点亮时长,从而实现OLED显示屏的亮度调节,此种工作模式下会存在显示屏区域的LED在一段时间内处于关闭状态,后续将该显示屏区域的LED称为亮度调节关闭的显示屏区域的LED。非PWM模式可以是指在OLED显示屏的亮度较高时,已无法通过PWM模式实现亮度调节,只能通过提高供电电流等其他方法来实现OLED显示屏的亮度调节,此种工作模式下不会存在显示屏区域的LED在一段时间内处于关闭状态,即不存在上述亮度调节关闭的显示屏区域的LED。因此,当该亮度调节关闭的显示屏区域移动至环境光传感器对应的显示屏区域(即环境光传感器对应的显示屏区域的LED的关闭用于调节OLED显示屏的亮度)时,确定第一时刻和第二时刻,即为确定该亮度调节关闭的显示屏区域的LED处于关闭状态的时间段。Among them, the brightness adjustment of the OLED display screen can include two working modes, namely pulse-width modulation (PWM) mode and non-PWM mode. In the PWM mode, a duty cycle adjustment signal (for example, the duty cycle The adjustment signal can be a square wave signal with a frequency of 240 Hz), and no duty cycle adjustment signal is required in non-PWM mode. The PWM mode can mean that when the brightness of the OLED display is low, the lighting time of the LED in the OLED display is controlled by PWM to realize the brightness adjustment of the OLED display. In this working mode, there will be LEDs in the display area. After being in the off state for a period of time, the LED in the display area will be referred to as the LED in the display area with the brightness adjustment turned off. Non-PWM mode can mean that when the brightness of the OLED display is high, the brightness adjustment can no longer be achieved through the PWM mode. The brightness adjustment of the OLED display can only be achieved by increasing the power supply current and other methods. The LED in the display area is turned off for a period of time, that is, there is no LED in the display area where the brightness adjustment is turned off. Therefore, when the display area whose brightness adjustment is turned off moves to the display area corresponding to the ambient light sensor (that is, the LED of the display area corresponding to the ambient light sensor is turned off to adjust the brightness of the OLED display), the first moment is determined And the second moment is the time period in which it is determined that the LED of the display screen area whose brightness adjustment is turned off is in the off state.
需要说明的是,在同一帧的亮度调节过程中,上述PWM模式下会存在均匀分布的一个或者多个亮度调节关闭的显示屏区域,一个或者多个亮度调节关闭的显示屏区域会分别在不同的时间段移动至环境光传感器对应的显示屏区域。该亮度调节关闭的显示屏区域的数量N与占空比调节信号的频率和该OLED显示屏的刷新频率有关,N的取值具体可以等于二者的比值,比如,该刷新频率为60Hz,该占空比调节信号的频率为240Hz,则该亮度调节关闭的显示屏区域的数量可以为4(N=240/60=4),具体可以如图5所示,图5中分别表示为第一关闭区域、第二关闭区域、第三关闭区域和第四关闭区域,其中的3个关闭区域仅用于亮度调节,另一个关闭区域既用于刷新显示内容又用于亮度调节。It should be noted that during the brightness adjustment process of the same frame, there will be evenly distributed one or more display areas with the brightness adjustment turned off in the above PWM mode, and one or more display areas with the brightness adjustment turned off will be in different Move to the display area corresponding to the ambient light sensor. The number N of the display area where the brightness adjustment is turned off is related to the frequency of the duty cycle adjustment signal and the refresh frequency of the OLED display. The value of N can be specifically equal to the ratio of the two. For example, the refresh frequency is 60 Hz. The frequency of the duty cycle adjustment signal is 240 Hz, and the number of display areas where the brightness adjustment is turned off can be 4 (N=240/60=4), which can be specifically shown in Figure 5, which is represented as the first Three of the closed area, the second closed area, the third closed area, and the fourth closed area are used for brightness adjustment only, and the other closed area is used both for refreshing the display content and for brightness adjustment.
另外,在同一帧的显示内容刷新和亮度调节过程中,该显示同步信号是OLED显示屏在完成这一整帧的显示内容的刷新时输出的信号,该亮度调节关闭的显示屏区域的LED的关闭时刻也是完成这一整帧的显示内容的刷新时的时刻,即对于同一帧而言,该帧对应的显示同步信号和该亮度调节关闭的显示屏区域的LED的关闭时刻是同步的。因此,基于这个同步关系,可以确定该亮度调节关闭的显示屏区域的LED的关闭时刻。In addition, in the process of refreshing and adjusting the brightness of the display content of the same frame, the display synchronization signal is the signal output by the OLED display screen when the refreshing of the display content of the whole frame is completed. The closing time is also the time when the refreshing of the display content of the entire frame is completed, that is, for the same frame, the display synchronization signal corresponding to the frame and the closing time of the LED of the display screen area whose brightness adjustment is turned off are synchronized. Therefore, based on this synchronization relationship, the turn-off time of the LED of the display screen area whose brightness adjustment is turned off can be determined.
在一种可能的实现方式中,当该亮度调节关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED时,确定第二时刻,可以包括:根据检测到该显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。具体的,该电子设备可以根据检测到该显示同步信号的时刻、OLED显示屏的单次刷新时长和环境光传感器在OLED显示屏的位置,确定第二时刻。这里的检测到该显示同步信号的时刻可以是指检测到第一帧完成刷新时的显示同步信号的时刻,第二时刻可以是指第二帧的亮度调节过 程中该亮度调节关闭的显示屏区域的LED的关闭时刻,第二帧为第一帧的下一帧。需要说明的是,当存在多个亮度调节关闭的显示屏区域时,可以确定一个第二时刻,也可以确定多个第二时刻。In a possible implementation manner, when the LED of the display screen area whose brightness adjustment is turned off is the LED of the display screen area corresponding to the ambient light sensor, determining the second time may include: according to the time when the display synchronization signal is detected And the location of the ambient light sensor on the OLED display to determine the second moment. Specifically, the electronic device may determine the second moment according to the time when the display synchronization signal is detected, the single refresh duration of the OLED display screen, and the position of the ambient light sensor on the OLED display screen. The time when the display synchronization signal is detected here may refer to the time when the display synchronization signal is detected when the refresh of the first frame is completed, and the second time may refer to the display area where the brightness adjustment is turned off during the brightness adjustment of the second frame. When the LED is turned off, the second frame is the next frame of the first frame. It should be noted that when there are multiple display screen areas whose brightness adjustment is turned off, one second moment may be determined, or multiple second moments may be determined.
其中,OLED显示屏的单次刷新时长是已知的。环境光传感器在OLED显示屏的位置具体可用于确定该亮度调节关闭的显示屏区域从OLED显示屏的最上方移动至环境光传感器对应的显示屏区域时所需要的时长,后续称为第二移动时长。Among them, the single refresh time of the OLED display screen is known. The location of the ambient light sensor on the OLED display screen can be specifically used to determine the time required for the display area with the brightness adjustment turned off to move from the top of the OLED display to the display area corresponding to the ambient light sensor, which will be referred to as second movement in the following duration.
示例性的,假设第二移动时长为T S2,单次刷新时长为T f,则该电子设备可以将检测到该显示同步信号的时刻分别延迟N分之i的单次刷新时长T f(即T f*i/N,i的取值可以分别为1至N),若第二移动时长T S2为零,则可直接得到多个第二时刻,若第二移动时长T S2不为零,则可将延迟T f*i/N后的时刻分别再延迟T S2,即可得到多个第二时刻。进一步的,在确定多个第二时刻之后,可以根据该亮度调节关闭的显示屏区域的LED的关闭时长T b2确定对应的多个第一时刻,该亮度调节关闭的显示屏区域的LED的关闭时长T b2与OLED显示屏的亮度决定,该OLED显示屏的亮度由该电子设备控制,即该电子设备可以直接通过亮度确定该关闭时长T b2,该电子设备将多个第一时刻分别提前该关闭时长T b2即可确定对应的多个第一时刻。 Exemplarily, assuming that the second movement duration is T S2 and the single refresh duration is T f , the electronic device may delay the detection of the display synchronization signal by the single refresh duration T f (ie T f *i/N, the value of i can be 1 to N), if the second movement duration T S2 is zero, multiple second moments can be directly obtained, if the second movement duration T S2 is not zero, Then, the time after the delay of T f *i/N can be further delayed by T S2 to obtain a plurality of second moments. Further, after multiple second moments are determined, the corresponding multiple first moments can be determined according to the turn-off duration T b2 of the LEDs of the display screen area whose brightness adjustment is turned off. The duration T b2 is determined by the brightness of the OLED display. The brightness of the OLED display is controlled by the electronic device. That is, the electronic device can directly determine the off duration T b2 through the brightness. The electronic device advances the first moments by the The closing time T b2 can determine the corresponding multiple first moments.
示例性的,以4该刷新频率为60Hz,该占空比调节信号的频率为240Hz,4个亮度调节关闭的显示屏区域分别为图5中的第一关闭区域、第二关闭区域、第三关闭区域和第四关闭区域,第二移动时长T4为零为例,则第一关闭区域、第二关闭区域、第三关闭区域和第四关闭区域分别移动至环境光传感器对应的显示屏区域时的第一时间分别为(1/4)*T f、(1/2)*T f、(3/4)*T f和T f,对应的多个第一时刻分别为(1/4)*T f-T b2、(1/2)*T f-T b2、(3/4)*T f-T b2和T f-T b2Exemplarily, assuming that the refresh frequency is 60 Hz, the frequency of the duty cycle adjustment signal is 240 Hz, and the four display areas with brightness adjustment turned off are the first closed area, the second closed area, and the third in FIG. 5, respectively. For example, when the second moving time T4 is zero for the closed area and the fourth closed area, the first closed area, the second closed area, the third closed area, and the fourth closed area move to the display area corresponding to the ambient light sensor The first times are (1/4)*T f , (1/2)*T f , (3/4)*T f and T f , and the corresponding multiple first moments are (1/4) *T f -T b2 , (1/2)*T f -T b2 , (3/4)*T f -T b2 and T f -T b2 .
S303:开启和关闭环境光传感器,环境光传感器的开启时刻不早于第一时刻,环境光传感器的关闭时刻不晚于第二时刻。S303: Turn on and turn off the ambient light sensor, the turn-on time of the ambient light sensor is not earlier than the first moment, and the turn-off time of the ambient light sensor is not later than the second moment.
当确定第一时刻和第二时刻之后,该电子设备可以根据第一时刻开启环境光传感器,在环境光传感器采集一段时间的环境光数据之后,根据第二时刻关闭环境光传感器。比如,该电子设备的处理器在不早于第一时刻的某一时刻向环境光传感器发送一个开启信号,以使环境光传感器在接收到该开启信号时开始采集环境光数据,以及在不晚于第二时刻的某一时刻向环境光传感器发送结束信号,以使环境光传感器在接收到该结束信号时停止采集环境光数据。之后,该电子设备的处理器还可以将环境光传感器采集到的环境光数据进行缓存,并根据采集到的环境光数据对OLED显示屏的背光亮度进行调节。After determining the first moment and the second moment, the electronic device may turn on the ambient light sensor according to the first moment, and after the ambient light sensor collects ambient light data for a period of time, turn off the ambient light sensor according to the second moment. For example, the processor of the electronic device sends a turn-on signal to the ambient light sensor at a certain time not earlier than the first moment, so that the ambient light sensor starts to collect ambient light data when it receives the turn-on signal, and when it is not too late Sending an end signal to the ambient light sensor at a certain moment of the second moment, so that the ambient light sensor stops collecting ambient light data when receiving the end signal. After that, the processor of the electronic device can also buffer the ambient light data collected by the ambient light sensor, and adjust the backlight brightness of the OLED display screen according to the collected ambient light data.
具体的,该电子设备可以在第一时刻与第二时刻之间的指定时长内控制环境光开启和关闭,该指定时长为环境光传感器的开启时刻至关闭时刻的时长(即环境光传感器采集环境光数据的时长),该指定时长可以小于第一时刻至第二时刻的时长,也可以等于第一时刻至第二时刻的时长。示例性的,该电子设备可以在第一时刻开启环境光传感器,以及在第二时刻关闭环境光传感器,此时该指定时长等于第一时刻至第二时刻的时长;或者,该电子设备在第一时刻之后的某一时刻开启环境光传感器,以及在第二时刻或者第二时刻之前的某一时刻关闭环境光传感器,此时该指定时长小于第一时刻至第二时刻的时长;或者,该电子设备在第一时刻或者第一时刻之后的某一时刻开启环境光传感器,以及在第二时刻之前的某一时刻关闭环境光传感器,此时该指定时长也小于第一时刻至第二时刻的时长。Specifically, the electronic device can control the ambient light to be turned on and off within a specified time period between the first time and the second time. The specified time period is the time from when the ambient light sensor is turned on to the time when the ambient light sensor is turned off. The time length of the optical data), the specified time length may be less than the time length from the first time to the second time, or may be equal to the time length from the first time to the second time. Exemplarily, the electronic device may turn on the ambient light sensor at the first moment and turn off the ambient light sensor at the second moment. At this time, the specified duration is equal to the duration from the first moment to the second moment; or, the electronic device is in the first moment. The ambient light sensor is turned on at a certain time after a time, and the ambient light sensor is turned off at a certain time before or at the second time. At this time, the specified time period is less than the time period from the first time to the second time; or The electronic device turns on the ambient light sensor at the first time or at a time after the first time, and turns off the ambient light sensor at a time before the second time. At this time, the specified duration is also less than the time from the first time to the second time. duration.
需要说明的是,该指定时长可以事先进行配置,且该指定时长可以被配置为一个固 定数值(比如,该指定时长可以是200us或者300us等),也可以被配置为一个变化的数值,该变化的数值可以与环境光传感器对应的显示屏区域的LED的关闭时长有关。It should be noted that the specified duration can be configured in advance, and the specified duration can be configured as a fixed value (for example, the specified duration can be 200us or 300us, etc.), or it can be configured as a variable value. The value of can be related to the off time of the LED in the display area corresponding to the ambient light sensor.
可选的,该指定时长为刷新OLED显示屏的下一帧图像时环境光传感器对应的显示屏区域的LED的关闭时长。也即是,在上述S302的第一种情况下,该刷新关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED,此时环境光传感器对应的显示屏区域的LED的关闭时长就是该刷新关闭的显示屏区域的LED的关闭时长,从而该指定时长具体可以为该刷新关闭的显示屏区域的LED的关闭时长,比如,该指定时长可以为上述图4所示的该刷新关闭的显示屏区域的LED的关闭时长。Optionally, the specified duration is the off duration of the LED in the display area corresponding to the ambient light sensor when the next frame of image of the OLED display is refreshed. That is, in the first case of S302, the LEDs in the display area where the refresh is turned off are the LEDs in the display area corresponding to the ambient light sensor. At this time, the off duration of the LEDs in the display area corresponding to the ambient light sensor It is the off duration of the LED in the display area where the refresh is off, so the specified duration can be specifically the off duration of the LED in the refresh off display area. For example, the specified duration can be the refresh off as shown in Figure 4 above. The off time of the LED in the display area.
或者,该指定时长为调节OLED显示屏的亮度时环境光传感器对应的显示屏区域的LED的关闭时长。也即是,在上述S302的第二种情况下,该亮度调节关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED,此时环境光传感器对应的显示屏区域的LED的关闭时长就是该亮度调节关闭的显示屏区域的LED的关闭时长,从而该指定时长具体可以为该亮度调节关闭的显示屏区域的LED的关闭时长,比如,该指定时长可以为上述图5所示的四个关闭区域中每个关闭区域LED的关闭时长。Or, the specified duration is the off duration of the LED in the display area corresponding to the ambient light sensor when the brightness of the OLED display is adjusted. That is, in the second case of S302, the LED in the display area whose brightness adjustment is turned off is the LED in the display area corresponding to the ambient light sensor. At this time, the LED in the display area corresponding to the ambient light sensor is turned off. The duration is the off duration of the LEDs in the display area where the brightness adjustment is turned off, so the specified duration may specifically be the off duration of the LEDs in the display area where the brightness adjustment is off. For example, the specified duration may be as shown in Figure 5 above. The off duration of the LEDs in each of the four off areas.
进一步的,该电子设备还可以多次开启和关闭环境光传感器,以使环境光传感器处于开启状态的总时长(即采集总时长)满足预设采集时长,即控制环境光传感器采集环境光数据的总时长为该预设采集时长,该预设采集时长可以包括一帧或者多帧的单次刷新时长内的多个指定时长,每帧下可以对应一个或多个指定时长。通过多次开启和关闭环境光传感器,使环境光传感器的采集总时长满足预设采集时长时,能够提高环境光传感器采集的环境光数据的信噪比,从而提高环境光传感器采集的环境光数据的稳定性,同时对环境光传感器的灵敏度和采样率等性能的要求较低。Further, the electronic device can also turn on and off the ambient light sensor multiple times, so that the total time that the ambient light sensor is in the on state (that is, the total collection time) meets the preset collection time, that is, it controls the ambient light sensor to collect ambient light data. The total duration is the preset acquisition duration, and the preset acquisition duration may include multiple designated durations within a single refresh duration of one or more frames, and each frame may correspond to one or more designated durations. By turning on and off the ambient light sensor multiple times, the total collection time of the ambient light sensor can meet the preset collection time, which can improve the signal-to-noise ratio of the ambient light data collected by the ambient light sensor, thereby increasing the ambient light data collected by the ambient light sensor At the same time, the requirements for the sensitivity and sampling rate of the ambient light sensor are relatively low.
为便于理解,下面以显示同步信号为TE信号,环境光传感器位于OLED显示屏的最上方(即上述第一移动时长T S1和第二移动时长T S2为零),该OLED显示屏的刷新频率为60Hz、占空比调节信号可以为频率为240Hz下,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度为例,对本申请实施例提供的方法进行举例说明。较低亮度和中等亮度为OLED显示屏工作在PWM模式下的两种亮度举例,较高亮度为OLED显示屏工作在非PWM模式下的一种亮度举例。 For ease of understanding, the following uses the display synchronization signal as the TE signal, and the ambient light sensor is located at the top of the OLED display screen (that is, the first movement duration T S1 and the second movement duration T S2 are zero), and the refresh frequency of the OLED display When the frequency is 60 Hz, the duty cycle adjustment signal may be 240 Hz, and the brightness of the OLED display screen is low, medium, and high. As an example, the method provided in the embodiment of the present application will be illustrated. Lower brightness and medium brightness are two examples of brightness when OLED display screens work in PWM mode, and higher brightness is an example of brightness when OLED display screens work in non-PWM mode.
示例性的,如图6所示,该方法可以包括:S401.检测TE信号;S402.响应于检测到TE信号,将检测到该TE信号的时刻延迟T f-T 0,T f表示单次刷新时长,T 0表示第一指定时长;S403.开启环境光传感器,在经过第一指定时长T 0后,关闭环境光传感器,即控制环境光传感器在第一指定时长T 0内采集环境光数据;S404.获取环境光数据和采集总时长;S405.缓存环境光数据;S406.判断采集总时长是否达到预设采集时长,若采集总时长达到预设采集时长则结束,若采集总时长未达到预设采集时长则返回S401继续执行。 Exemplarily, as shown in FIG. 6, the method may include: S401. Detecting a TE signal; S402. In response to detecting the TE signal, delaying the detection of the TE signal by T f- T 0 , where T f represents a single time Refresh duration, T 0 means the first designated duration; S403. Turn on the ambient light sensor, after the first designated duration T 0 , turn off the ambient light sensor, that is, control the ambient light sensor to collect ambient light data within the first designated duration T 0 ; S404. Acquire ambient light data and total collection time; S405. Cache ambient light data; S406. Determine whether the total collection time reaches the preset collection time. If the total collection time reaches the preset collection time, it ends. If the total collection time does not reach The preset collection duration returns to S401 to continue execution.
基于上述图6所提供的方法,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度下的工作时序图可以如图7所示。在图7中,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图4所示的情况,此时环境光传感器在单次刷新时长T f内仅采集一个第一指定时长T 0的环境光数据,第一指定时长T 0可以被配置为固定数值。其中,在该OLED显示屏的亮度为较低亮度和中等亮度时,第一指定时长T 0小于环境光传感器对应的显示屏区域的LED的关闭时长;在该OLED显示屏的亮度为较高亮度时,该指定时长等于环境光传感器对应的显示屏区域的LED的关闭时长。 Based on the method provided in FIG. 6 above, the working sequence diagrams of the OLED display screen having the brightness of lower brightness, medium brightness and higher brightness can be as shown in FIG. 7. In Figure 7, the LED in the display area corresponding to the ambient light sensor is in the off state, which can be specifically the situation shown in Figure 4 above. At this time, the ambient light sensor only collects a first specified duration T within a single refresh duration T f . For ambient light data of 0 , the first specified duration T 0 can be configured as a fixed value. Wherein, when the brightness of the OLED display screen is low brightness and medium brightness, the first specified time period T 0 is less than the off time of the LED in the display area corresponding to the ambient light sensor; the brightness of the OLED display screen is high brightness When, the specified duration is equal to the off duration of the LED in the display area corresponding to the ambient light sensor.
或者,如图8所示,该方法可以包括:S501.检测TE信号;S502.判断OLED显示屏是否工作在PWM模式,若否则按照图6所提供的S402-S403执行(即较高亮度下按照图6所提供的方法执行),若是则执行下述S503a和S503b;S503a.响应于检测到TE信号,将检测到该TE信号的时刻分别延迟(1/4)*T f-T 0、(1/2)*T f-T 0、(3/4)*T f-T 0和T f-T 0;S503b.控制环境光传感器分别在延迟(1/4)*T f-T 0、(1/2)*T f-T 0、(3/4)*T f-T 0和T f-T 0后的第一指定时长T 0内采集环境光数据;S504.获取环境光数据和采集总时长;S505.缓存环境光数据;S506.判断采集总时长是否达到预设采集时长,若采集总时长达到预设采集时长则结束,若采集总时长未达到预设采集时长则返回S501继续执行。 Or, as shown in FIG. 8, the method may include: S501. Detect TE signal; S502. Determine whether the OLED display screen is working in PWM mode, if not, perform according to S402-S403 provided in FIG. The method provided in Figure 6 is executed), if yes, the following S503a and S503b are executed; S503a. In response to detecting the TE signal, delay the time of detecting the TE signal by (1/4)*T f -T 0 , ( 1/2)*T f -T 0 , (3/4)*T f -T 0 and T f -T 0 ; S503b. Control the ambient light sensor to delay (1/4)*T f -T 0 , (1/2)*T f -T 0 , (3/4)*T f -T 0 and T f -T 0 after the first designated period of time T 0 to collect ambient light data; S504. Acquire ambient light data and Total collection time; S505. Cache ambient light data; S506. Determine whether the total collection time reaches the preset collection time. If the total collection time reaches the preset collection time, it ends. If the total collection time does not reach the preset collection time, return to S501 to continue carried out.
基于上述图8所提供的方法,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度下的工作时序图可以如图9所示。在图9中,当该OLED显示屏的亮度为较低亮度和中等亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为是指上述图5所示的情况,此时环境光传感器在单次刷新时长T f内采集四个第一指定时长T 0内的环境光数据;当该OLED显示屏的亮度为较高亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图4所示的情况。另外,在该OLED显示屏的亮度为较低亮度和中等亮度时,第一指定时长T 0小于环境光传感器对应的显示屏区域的LED的关闭时长;在该OLED显示屏的亮度为较高亮度时,第一指定时长T 0指定时长等于环境光传感器对应的显示屏区域的LED的关闭时长。 Based on the method provided in FIG. 8, the working sequence diagrams of the OLED display screen at low brightness, medium brightness, and high brightness can be as shown in FIG. 9. In Figure 9, when the brightness of the OLED display screen is low and medium brightness, the LED in the display area corresponding to the ambient light sensor is in the off state, which can specifically refer to the situation shown in Figure 5 above. The light sensor collects four ambient light data within the first designated time period T 0 within a single refresh time T f ; when the brightness of the OLED display is high, the LED in the display area corresponding to the ambient light sensor is turned off The state can be specifically as shown in FIG. 4 above. In addition, when the brightness of the OLED display screen is low brightness and medium brightness, the first specified duration T 0 is less than the off duration of the LED in the display area corresponding to the ambient light sensor; the brightness of the OLED display screen is high brightness When, the first designated duration T 0 designated duration is equal to the off duration of the LED of the display area corresponding to the ambient light sensor.
或者,如图10所示,该方法可以包括:S601.检测TE信号;S602.判断OLED显示屏是否工作在PWM模式,若否则按照图6所提供的S402-S403执行(即较高亮度下按照图6所提供的方法执行),若是则执行下述S603a和S603b;S603a.响应于检测到TE信号,将检测到该TE信号的时刻分别延迟(1/4)*T f-T 1、(1/2)*T f-T 1、(3/4)*T f-T 1和T f-T 1,T f表示单次刷新时长,T 1表示第二指定时长;S603b.控制环境光传感器分别在延迟(1/4)*T f-T 1、(1/2)*T f-T 1、(3/4)*T f-T 1和T f-T 1后的第二指定时长T 1内采集环境光数据;S604.获取环境光数据和采集总时长;S605.缓存环境光数据;S606.判断采集总时长是否达到预设采集时长,若采集总时长达到预设采集时长则结束,若采集总时长未达到预设采集时长则返回S601继续执行。 Or, as shown in FIG. 10, the method may include: S601. Detect TE signal; S602. Determine whether the OLED display screen is working in PWM mode, if not, perform according to S402-S403 provided in FIG. The method provided in Figure 6 is executed), if yes, the following S603a and S603b are executed; S603a. In response to detecting the TE signal, delay the time of detecting the TE signal by (1/4)*T f -T 1 , ( 1/2)*T f -T 1 , (3/4)*T f -T 1 and T f -T 1 , T f represents the duration of a single refresh, and T 1 represents the second specified duration; S603b. Control the ambient light The second designation of the sensor after delaying (1/4)*T f -T 1 , (1/2)*T f -T 1 , (3/4)*T f -T 1 and T f -T 1 respectively Collect ambient light data within time length T 1 ; S604. Acquire ambient light data and total collection time; S605. Cache ambient light data; S606. Determine whether the total collection time reaches the preset collection time. If the total collection time reaches the preset collection time, then End, if the total collection time does not reach the preset collection time, return to S601 to continue execution.
基于上述图10所提供的方法,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度下的工作时序图可以如图11所示。在图11中,当该OLED显示屏的亮度为较低亮度和中等亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图5所示的情况,此时环境光传感器在单次刷新时长T f内采集四个第二指定时长T 1的环境光数据;当该OLED显示屏的亮度为较高亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图4所示的情况。另外,在该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度时,第二指定时长T 1均等于环境光传感器对应的显示屏区域的LED的关闭时长。 Based on the method provided in FIG. 10, the working sequence diagrams of the OLED display screen having the brightness of low brightness, medium brightness and high brightness respectively can be as shown in FIG. 11. In FIG. 11, when the brightness of the OLED display screen is low and medium brightness, the LED in the display area corresponding to the ambient light sensor is in the off state. Specifically, it can be the situation shown in FIG. 5 above. At this time, the ambient light sensor Collect four ambient light data of the second specified duration T 1 within a single refresh duration T f ; when the brightness of the OLED display is high, the LED in the display area corresponding to the ambient light sensor is in the off state. This is the situation shown in Figure 4 above. In addition, when the brightness of the OLED display screen is low brightness, medium brightness, and high brightness respectively, the second specified duration T 1 is all equal to the off duration of the LED in the display area corresponding to the ambient light sensor.
需要说明的是,在上述图7、图9和图11中,该OLED显示屏的亮度为较低亮度、中等亮度和较高亮度对应的时序图中,低电平可以表示该OLED显示屏中处于关闭状态的显示屏区域的LED,高电平可以表示该OLED显示屏中处于开启状态的显示屏区域的LED。It should be noted that, in the above-mentioned Figures 7, 9 and 11, the brightness of the OLED display is the timing chart corresponding to the lower brightness, the medium brightness and the higher brightness. The low level can indicate that the OLED display For the LEDs in the off-state display area, the high level can indicate the LEDs in the on-state display area in the OLED display.
在本申请实施例中,该电子设备通过检测到显示同步信号,确定环境光传感器对应的显示屏区域的LED保持关闭状态时对应的第一时刻和第二时刻,从而仅在环境光传感 器对应的显示屏区域的LED保持关闭状态时采集环境光数据,从而避免了OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比;此外,该方法无需高性能的环境光传感器,且能够减少采集到的环境光数据的数据量,降低对电子设备的数据处理能力要求。In the embodiment of the present application, the electronic device detects the display synchronization signal to determine the corresponding first time and second time when the LED of the display area corresponding to the ambient light sensor remains in the off state, so that only when the ambient light sensor corresponds The ambient light data is collected when the LED in the display area is kept off, thereby avoiding the influence of the OLED display itself on the collected ambient light data and improving the signal-to-noise ratio of the ambient light data; in addition, this method does not require high performance The ambient light sensor can reduce the amount of collected ambient light data and reduce the data processing requirements of electronic equipment.
本申请实施例还提供一种电子设备,该电子设备的结构可以如上述图1所示,该电子设备包括的OLED显示屏140覆盖在环境光传感器151上方,比如OLED显示屏140和环境光传感器151的位置关系可以如上述图2所示。The embodiment of the present application also provides an electronic device. The structure of the electronic device may be as shown in FIG. 1 above. The electronic device includes an OLED display screen 140 covering the ambient light sensor 151, such as the OLED display screen 140 and the ambient light sensor. The positional relationship of 151 can be as shown in Figure 2 above.
在本申请实施例中,该电子设备中的处理器180可用于执行以下步骤:检测显示同步信号;响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器151对应的显示屏区域的LED的关闭时刻,第二时刻为环境光传感器151对应的显示屏区域的LED的开启时刻,第一时刻早于第二时刻,环境光传感器151对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器151,环境光传感器151的开启时刻不早于第一时刻;关闭环境光传感器151,环境光传感器151的关闭时刻不晚于第二时刻。In the embodiment of the present application, the processor 180 in the electronic device may be configured to perform the following steps: detecting the display synchronization signal; in response to detecting the display synchronization signal, determining the first time and the second time, the first time being the ambient light sensor The turn-off time of the LED in the display area corresponding to 151, the second time is the turn-on time of the LED in the display area corresponding to the ambient light sensor 151, the first time is earlier than the second time, the The LED remains off between the first moment and the second moment; when the ambient light sensor 151 is turned on, the turning on time of the ambient light sensor 151 is not earlier than the first moment; turning off the ambient light sensor 151, the turning off time of the ambient light sensor 151 is not too late At the second moment.
可选的,处理器180具体用于:根据检测到显示同步信号的时刻和环境光传感器151在OLED显示屏140的位置,确定第一时刻。此外,处理器180具体还用于:根据第三时刻和环境光传感器151在OLED显示屏140的位置,确定第一时刻;其中,第三时刻为检测到显示同步信号的时刻延迟第一时长的时刻,第一时长与OLED显示屏140的单次刷新时长和环境光传感器151对应的显示屏区域的LED的关闭时长有关。其中,第一时长可以为OLED显示屏140的单次刷新时长与环境光传感器151对应的显示屏区域的LED的关闭时长之间的差值。Optionally, the processor 180 is specifically configured to determine the first moment according to the moment when the display synchronization signal is detected and the position of the ambient light sensor 151 on the OLED display screen 140. In addition, the processor 180 is also specifically configured to: determine the first time according to the third time and the position of the ambient light sensor 151 on the OLED display 140; wherein, the third time is the first time delay when the display synchronization signal is detected. At the time, the first duration is related to the single refresh duration of the OLED display screen 140 and the turn-off duration of the LED in the display area corresponding to the ambient light sensor 151. The first duration may be the difference between the single refresh duration of the OLED display screen 140 and the turn-off duration of the LED in the display area corresponding to the ambient light sensor 151.
在本申请的另一实施例中,环境光传感器151对应的显示屏区域的LED的关闭用于刷新OLED显示屏140的下一帧图像;和/或,环境光传感器151对应的显示屏区域的LED的关闭用于调节OLED显示屏140的亮度。In another embodiment of the present application, turning off the LED of the display area corresponding to the ambient light sensor 151 is used to refresh the next frame of image of the OLED display 140; and/or, the display area corresponding to the ambient light sensor 151 Turning off the LED is used to adjust the brightness of the OLED display 140.
可选的,开启时刻与关闭时刻之间的时长为刷新OLED显示屏140的下一帧图像时环境光传感器151对应的显示屏区域的LED的关闭时长;或者,开启时刻与关闭时刻之间的时长为调节OLED显示屏140的亮度时环境光传感器151对应的显示屏区域的LED关闭的时长。Optionally, the time between the on time and the off time is the off time of the LED in the display area corresponding to the ambient light sensor 151 when the next frame of the OLED display 140 is refreshed; or, the time between the on time and the off time The duration is the duration during which the LED in the display area corresponding to the ambient light sensor 151 is turned off when the brightness of the OLED display 140 is adjusted.
进一步的,处理器180还具体用于:多次开启和关闭环境光传感器151,以使环境光传感器151处于开启状态的总时长满足预设采集时长。Further, the processor 180 is further specifically configured to: turn on and turn off the ambient light sensor 151 multiple times, so that the total duration of the ambient light sensor 151 in the on state meets the preset collection duration.
需要说明的是,该电子设备中处理器180、OLED显示屏140和环境光传感器对应的各功能描述具体可以参见上述方法实施例涉及的各步骤的相关内容的描述,本申请实施例在此不再赘述。It should be noted that the description of each function corresponding to the processor 180, the OLED display 140, and the ambient light sensor in the electronic device may refer to the description of the relevant content of the steps involved in the above method embodiments. The embodiments of the present application will not be described here. Repeat it again.
在本申请实施例中,该电子设备通过检测到显示同步信号,确定环境光传感器对应的显示屏区域的LED保持关闭状态时对应的第一时刻和第二时刻,从而仅在环境光传感器对应的显示屏区域的LED保持关闭状态时采集环境光数据,从而避免了OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比;此外,该方法无需高性能的环境光传感器,且能够减少采集到的环境光数据的数据量,降低对电子设备的数据处理能力要求。In the embodiment of the present application, the electronic device detects the display synchronization signal to determine the corresponding first time and second time when the LED of the display area corresponding to the ambient light sensor remains in the off state, so that only when the ambient light sensor corresponds The ambient light data is collected when the LED in the display area is kept off, thereby avoiding the influence of the OLED display itself on the collected ambient light data and improving the signal-to-noise ratio of the ambient light data; in addition, this method does not require high performance The ambient light sensor can reduce the amount of collected ambient light data and reduce the data processing requirements of electronic equipment.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护 范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that the above are only specific implementations of this application, but the scope of protection of this application is not limited to this. Any changes or substitutions within the technical scope disclosed in this application should be covered by this application. Within the scope of protection applied for. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (15)

  1. 一种环境光数据采集方法,其特征在于,应用于包括OLED显示屏和环境光传感器的电子设备中,所述OLED显示屏覆盖在所述环境光传感器上方,所述方法包括:An ambient light data collection method, characterized in that it is applied to an electronic device including an OLED display screen and an ambient light sensor, the OLED display screen is overlaid on the ambient light sensor, and the method includes:
    检测显示同步信号;Detection and display synchronization signal;
    响应于检测到所述显示同步信号,确定第一时刻和第二时刻,所述第一时刻为所述环境光传感器对应的显示屏区域的LED的关闭时刻,所述第二时刻为所述环境光传感器对应的显示屏区域的LED的开启时刻,所述第一时刻早于所述第二时刻,所述环境光传感器对应的显示屏区域的LED在所述第一时刻和所述第二时刻之间保持关闭状态;In response to detecting the display synchronization signal, a first time and a second time are determined, the first time being the off time of the LED of the display area corresponding to the ambient light sensor, and the second time being the environment The turn-on time of the LED of the display area corresponding to the light sensor, the first time is earlier than the second time, and the LED of the display area corresponding to the ambient light sensor is at the first time and the second time Keep it closed between;
    开启所述环境光传感器,所述开启所述环境光传感器的时刻不早于所述第一时刻;Turning on the ambient light sensor, and the moment of turning on the ambient light sensor is not earlier than the first moment;
    关闭所述环境光传感器,所述关闭所述环境光传感器的时刻不晚于所述第二时刻。The ambient light sensor is turned off, and the moment when the ambient light sensor is turned off is no later than the second moment.
  2. 根据权利要求1所述的方法,其特征在于,确定所述第二时刻,包括:The method according to claim 1, wherein determining the second moment comprises:
    根据检测到所述显示同步信号的时刻和所述环境光传感器在所述OLED显示屏的位置,确定所述第二时刻。The second moment is determined according to the moment when the display synchronization signal is detected and the position of the ambient light sensor on the OLED display screen.
  3. 根据权利要求1或2所述的方法,其特征在于,确定所述第二时刻,包括:The method according to claim 1 or 2, wherein determining the second moment includes:
    根据第三时刻和所述环境光传感器在所述OLED显示屏的位置,确定所述第二时刻;Determine the second moment according to the third moment and the position of the ambient light sensor on the OLED display screen;
    其中,所述第三时刻为检测到所述显示同步信号的时刻延迟第一时长的时刻,所述第一时长与所述OLED显示屏的单次刷新时长和所述环境光传感器对应的显示屏区域的LED的关闭时长有关。Wherein, the third moment is a moment when the time when the display synchronization signal is detected is delayed by a first period of time, and the first period of time corresponds to the single refresh period of the OLED display screen and the display screen corresponding to the ambient light sensor The off time of the LED in the area is related.
  4. 根据权利要求3所述的方法,其特征在于,所述第一时长为所述OLED显示屏的单次刷新时长与所述环境光传感器对应的显示屏区域的LED的关闭时长之间的差值。The method according to claim 3, wherein the first duration is the difference between the single refresh duration of the OLED display screen and the turn-off duration of the LEDs in the display area corresponding to the ambient light sensor .
  5. 根据权利要求1-4任一项所述的方法,其特征在于,在所述第一时刻和所述第二时刻之间,刷新所述OLED显示屏的图像。The method according to any one of claims 1 to 4, wherein between the first moment and the second moment, the image of the OLED display screen is refreshed.
  6. 根据权利要求1-4任一项所述的方法,其特征在于,在所述第一时刻和所述第二时刻之间,调节所述OLED显示屏的亮度。The method according to any one of claims 1 to 4, wherein the brightness of the OLED display screen is adjusted between the first moment and the second moment.
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    多次开启所述环境光传感器,以使所述环境光传感器处于开启状态的总时长大于预设时长。The ambient light sensor is turned on multiple times, so that the total time period during which the ambient light sensor is in the on state is greater than the preset time period.
  8. 一种电子设备,其特征在于,该电子设备包括:处理器、OLED显示屏和环境光传感器,所述OLED显示屏覆盖在所述环境光传感器上方,所述处理器用于执行以下步骤:An electronic device, characterized in that the electronic device includes a processor, an OLED display screen and an ambient light sensor, the OLED display screen covers the ambient light sensor, and the processor is configured to perform the following steps:
    检测显示同步信号;Detect and display synchronization signal;
    响应于检测到所述显示同步信号,确定第一时刻和第二时刻,所述第一时刻为所述环境光传感器对应的显示屏区域的LED的开启时刻,所述第二时刻为所述环境光传感器对应的显示屏区域的LED的关闭时刻,所述第一时刻早于所述第二时刻,所述环境光传感器对应的显示屏区域的LED在所述第一时刻和所述第二时刻之间保持关闭状态;In response to detecting the display synchronization signal, a first time and a second time are determined, the first time being the turn-on time of the LED of the display area corresponding to the ambient light sensor, and the second time being the environment When the LED in the display area corresponding to the light sensor is turned off, the first time is earlier than the second time, and the LED in the display area corresponding to the ambient light sensor is at the first time and the second time Keep it closed between;
    开启所述环境光传感器,所述环境光传感器的开启时刻不早于所述第一时刻;Turning on the ambient light sensor, and the turning-on time of the ambient light sensor is not earlier than the first time;
    关闭所述环境光传感器,所述环境光传感器的关闭时刻不晚于所述第二时刻。The ambient light sensor is turned off, and the turning off time of the ambient light sensor is no later than the second time.
  9. 根据权利要求8所述的电子设备,其特征在于,所述处理器,具体用于:The electronic device according to claim 8, wherein the processor is specifically configured to:
    根据检测到所述显示同步信号的时刻和所述环境光传感器在所述OLED显示屏的位置,确定所述第二时刻。The second moment is determined according to the moment when the display synchronization signal is detected and the position of the ambient light sensor on the OLED display screen.
  10. 根据权利要求8或9所述的电子设备,其特征在于,所述处理器,还具体用于:The electronic device according to claim 8 or 9, wherein the processor is further specifically configured to:
    根据第三时刻和所述环境光传感器在所述OLED显示屏的位置,确定所述第二时刻;Determine the second moment according to the third moment and the position of the ambient light sensor on the OLED display screen;
    其中,所述第三时刻为检测到所述显示同步信号的时刻延迟第一时长的时刻,所述第一时长与所述OLED显示屏的单次刷新时长和所述环境光传感器对应的显示屏区域的LED的关闭时长有关。Wherein, the third moment is a moment when the time when the display synchronization signal is detected is delayed by a first period of time, and the first period of time corresponds to the single refresh period of the OLED display screen and the display screen corresponding to the ambient light sensor The off time of the LED in the area is related.
  11. 根据权利要求10所述的电子设备,其特征在于,所述第一时长为所述OLED显示屏的单次刷新时长与所述环境光传感器对应的显示屏区域的LED的关闭时长之间的差值。The electronic device of claim 10, wherein the first duration is the difference between the single refresh duration of the OLED display screen and the turn-off duration of the LED in the display area corresponding to the ambient light sensor value.
  12. 根据权利要求8-11任一项所述的电子设备,其特征在于,所述环境光传感器对应的显示屏区域的LED的关闭用于刷新所述OLED显示屏的下一帧图像;The electronic device according to any one of claims 8-11, wherein turning off the LED of the display area corresponding to the ambient light sensor is used to refresh the next frame of image of the OLED display;
    和/或,所述环境光传感器对应的显示屏区域的LED的关闭用于调节所述OLED显示屏的亮度。And/or, turning off the LED of the display area corresponding to the ambient light sensor is used to adjust the brightness of the OLED display.
  13. 根据权利要求8-12任一项所述的电子设备,其特征在于,所述开启时刻与所述关闭时刻之间的时长为刷新所述OLED显示屏的下一帧图像时所述环境光传感器对应的显示屏区域的LED的关闭时长。The electronic device according to any one of claims 8-12, wherein the length of time between the opening moment and the closing moment is when the next frame of image of the OLED display screen is refreshed, the ambient light sensor The off duration of the LED in the corresponding display area.
  14. 根据权利要求8-12任一项所述的电子设备,其特征在于,所述开启时刻与所述关闭时刻之间的时长为调节所述OLED显示屏的亮度时所述环境光传感器对应的显示屏区域的LED关闭的时长。The electronic device according to any one of claims 8-12, wherein the length of time between the opening moment and the closing moment is the display corresponding to the ambient light sensor when the brightness of the OLED display is adjusted. The length of time the LED in the screen area is off.
  15. 根据权利要求8-14任一项所述的电子设备,其特征在于,所述处理器,还具体用于:The electronic device according to any one of claims 8-14, wherein the processor is further specifically configured to:
    多次开启和关闭所述环境光传感器,以使所述环境光传感器处于开启状态的总时长满足预设采集时长。Turning on and turning off the ambient light sensor multiple times, so that the total time that the ambient light sensor is in the on state meets the preset collection duration.
PCT/CN2020/079382 2019-03-25 2020-03-14 Ambient light data collection method and electronic device WO2020192455A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910229473.1 2019-03-25
CN201910229473.1A CN110012162B (en) 2019-03-25 2019-03-25 Ambient light data acquisition method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2020192455A1 true WO2020192455A1 (en) 2020-10-01

Family

ID=67168058

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/079382 WO2020192455A1 (en) 2019-03-25 2020-03-14 Ambient light data collection method and electronic device

Country Status (2)

Country Link
CN (1) CN110012162B (en)
WO (1) WO2020192455A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022101177A1 (en) * 2020-11-13 2022-05-19 Ams International Ag Optical sensing

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012162B (en) * 2019-03-25 2023-05-19 华为技术有限公司 Ambient light data acquisition method and electronic equipment
CN112242119A (en) * 2019-07-16 2021-01-19 北京小米移动软件有限公司 Terminal, display parameter control method and device, and storage medium
CN112687232B (en) * 2019-10-18 2022-06-10 北京小米移动软件有限公司 Dimming method and device of OLED display screen, electronic equipment and storage medium
CN112991919B (en) * 2019-12-12 2023-02-28 北京小米移动软件有限公司 Electronic device
CN113257208B (en) * 2020-02-12 2022-06-24 北京小米移动软件有限公司 Ambient brightness detection method, electronic device, detection device and storage medium
CN111263082B (en) * 2020-03-16 2021-12-14 维沃移动通信(杭州)有限公司 Exposure data acquisition method and electronic equipment
CN113542454B (en) * 2020-04-13 2024-01-30 北京小米移动软件有限公司 Ranging device, ranging signal emission control method, device, equipment and medium
US11047734B1 (en) * 2020-04-15 2021-06-29 Motorola Mobility Llc System and method for measuring light sensor output in an electronic device
CN113870795A (en) * 2020-06-30 2021-12-31 北京小米移动软件有限公司 Pixel driving circuit, display screen assembly, display brightness control method and device
CN113190315B (en) * 2021-04-29 2022-11-25 安徽华米健康医疗有限公司 Display refreshing method and device
CN114998943B (en) * 2021-12-24 2023-05-30 荣耀终端有限公司 Data acquisition method and electronic equipment
CN114724509B (en) * 2022-03-31 2024-02-27 北京集创北方科技股份有限公司 Self-luminous display screen correction method and device, electronic equipment and storage medium
WO2024055318A1 (en) * 2022-09-16 2024-03-21 京东方科技集团股份有限公司 Display module and driving method therefor, and display apparatus
CN117129085A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Ambient light detection method, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090085485A1 (en) * 2007-09-27 2009-04-02 Tpo Displays Corp. Display devices with ambient light sensing
US20140132158A1 (en) * 2012-11-13 2014-05-15 Apple Inc. Synchronized Ambient Light Sensor and Display
CN107979698A (en) * 2017-11-22 2018-05-01 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108769358A (en) * 2018-03-28 2018-11-06 广东欧珀移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
CN108924316A (en) * 2018-08-23 2018-11-30 深圳市万普拉斯科技有限公司 Shield lower light sensation detection method, device, mobile terminal and computer storage medium
CN110012162A (en) * 2019-03-25 2019-07-12 华为技术有限公司 A kind of ambient light data acquisition method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107990978A (en) * 2017-11-22 2018-05-04 广东欧珀移动通信有限公司 Environment light detection method, device, storage medium and electronic equipment
CN109410833B (en) * 2018-08-29 2021-01-15 北京小米移动软件有限公司 Ambient light detection method, ambient light detection device, terminal and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090085485A1 (en) * 2007-09-27 2009-04-02 Tpo Displays Corp. Display devices with ambient light sensing
US20140132158A1 (en) * 2012-11-13 2014-05-15 Apple Inc. Synchronized Ambient Light Sensor and Display
CN107979698A (en) * 2017-11-22 2018-05-01 广东欧珀移动通信有限公司 Ambient light intensity detection method, device, storage medium and electronic equipment
CN108769358A (en) * 2018-03-28 2018-11-06 广东欧珀移动通信有限公司 Control method, control device, electronic device, storage medium and computer equipment
CN108924316A (en) * 2018-08-23 2018-11-30 深圳市万普拉斯科技有限公司 Shield lower light sensation detection method, device, mobile terminal and computer storage medium
CN110012162A (en) * 2019-03-25 2019-07-12 华为技术有限公司 A kind of ambient light data acquisition method and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022101177A1 (en) * 2020-11-13 2022-05-19 Ams International Ag Optical sensing

Also Published As

Publication number Publication date
CN110012162B (en) 2023-05-19
CN110012162A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
WO2020192455A1 (en) Ambient light data collection method and electronic device
US11307733B2 (en) Always on display method and electronic device
CN110809878B (en) Ambient light and proximity detection method, shooting method, terminal and computer storage medium
CN108683757B (en) Electronic device and electronic apparatus
US9697622B2 (en) Interface adjustment method, apparatus, and terminal
US11212692B2 (en) Non-connection state measurement method, user equipment, and base station
CN113632441A (en) Optical sensor state control method and electronic equipment
EP2988199A1 (en) Clicking control method and terminal
AU2017440899B2 (en) Photographing method and terminal
CN107483075A (en) A kind of antenna switching method, terminal and computer-readable recording medium
CN103516900A (en) Method and device for starting front camera and rear camera of electronic device during system hibernation during system hibernation
EP3709625A1 (en) Camera assembly, image acquisition method, and mobile terminal
US20110090161A1 (en) Information input device, information input method, information input/output device, information program and electronic device
WO2019206225A1 (en) Light supplement method and mobile terminal
WO2021185115A1 (en) Exposure data acquisition method and electronic device
KR20150033880A (en) Apparatus and method for controlling a display in an electronic device
CN109558046A (en) A kind of information display method and terminal device
CN109088973B (en) Antenna control method and device and mobile terminal
US20190364221A1 (en) Camera Control Method and Terminal
CN112985588A (en) Terminal device, optical signal processing method, and storage medium
KR20210113355A (en) Information transmission method, terminal device and network-side device
WO2021036528A1 (en) Control method for terminal device and terminal device
CN109814824A (en) Luminance regulating method, terminal and the storage medium of two-sided screen
US11017706B2 (en) Display screen and electronic device
WO2019170121A1 (en) Camera module and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20778901

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20778901

Country of ref document: EP

Kind code of ref document: A1