CN110012162A - A kind of ambient light data acquisition method and electronic equipment - Google Patents

A kind of ambient light data acquisition method and electronic equipment Download PDF

Info

Publication number
CN110012162A
CN110012162A CN201910229473.1A CN201910229473A CN110012162A CN 110012162 A CN110012162 A CN 110012162A CN 201910229473 A CN201910229473 A CN 201910229473A CN 110012162 A CN110012162 A CN 110012162A
Authority
CN
China
Prior art keywords
ambient light
moment
light sensor
display screen
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910229473.1A
Other languages
Chinese (zh)
Other versions
CN110012162B (en
Inventor
范继存
康力
李颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910229473.1A priority Critical patent/CN110012162B/en
Publication of CN110012162A publication Critical patent/CN110012162A/en
Priority to PCT/CN2020/079382 priority patent/WO2020192455A1/en
Application granted granted Critical
Publication of CN110012162B publication Critical patent/CN110012162B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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 OR CALCULATING; 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 OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Sustainable Development (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Control Of El Displays (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

本申请提供一种环境光数据采集方法及电子设备,涉及电子设备技术领域,用于降低采集到的环境光数据的数据量。该方法应用于OLED显示屏覆盖在环境光传感器上方的电子设备中,包括:检测显示同步信号;响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器,环境光传感器的开启时刻不早于第一时刻;关闭环境光传感器,环境光传感器的关闭时刻不晚于第二时刻。

The present application provides an ambient light data collection method and electronic device, which relate to the technical field of electronic devices and are used to reduce the amount of collected ambient light data. The method is applied to an electronic device with an OLED display screen covering an ambient light sensor, and includes: detecting a display synchronization signal; in response to detecting the display synchronization signal, determining a first moment and a second moment, where the first moment corresponds to the ambient light sensor The turn-on moment of the LED in the display area of the ambient light sensor, the second moment is the turn-off moment of the LED in the display area of Keep the closed state between the time and the second time; turn on the ambient light sensor, and the opening time of the ambient light sensor is not earlier than the first time; turn off the ambient light sensor, and the closing time of the ambient light sensor is not later than the second time.

Description

一种环境光数据采集方法及电子设备A kind of ambient light data acquisition method and electronic device

技术领域technical field

本申请涉及电子设备技术领域,尤其涉及一种环境光数据采集方法及电子设备。The present application relates to the technical field of electronic devices, and in particular, to an ambient light data collection method and electronic device.

背景技术Background technique

在手机、平板电脑、照相机和摄像机等一些使用有机发光二极管(organic light-emitting diode,OLED)显示屏的电子设备中,通常需要通过光传感器检测外界环境的光照强度,并根据检测到的光照强度调节电子设备中OLED显示屏的自动背光亮度。In some electronic devices using organic light-emitting diode (OLED) display screens, such as mobile phones, tablet computers, cameras and video cameras, 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 OLED displays in electronic devices.

在进行环境光照度检测时,由于OLED显示屏本身也会发光,为了避免OLED显示屏的亮度对检测结果造成影响,通常通过下述方法来检测。具体的,利用具有高灵敏度和高采样率的光传感器,在高采样率下采集一段时间内的环境光照度,通过在检测到的多个环境光照度中寻找最小值,即可得到未被OLED显示屏亮度干扰的环境光照度。During ambient illumination detection, since the OLED display itself will emit light, in order to avoid the influence of the brightness of the OLED display on the detection result, the detection is usually performed by the following method. Specifically, a light sensor with high sensitivity and high sampling rate is used to collect ambient illuminance for a period of time at a high sampling rate, and by finding the minimum value among the detected multiple ambient illuminances, an unaffected OLED display can be obtained. Brightness interferes with ambient light levels.

但是,上述方案对光传感器的性能要求较高,且在高采样率下采集到的环境光照度的数据量较大,从而对电子设备的数据处理能力要求较高。However, the above solution has high requirements on the performance of the light sensor, and the amount of ambient illuminance data collected at a high sampling rate is large, so the data processing capability of the electronic device is required to be high.

发明内容SUMMARY OF THE INVENTION

本申请提供一种环境光数据采集方法及电子设备,用于降低采集到的环境光数据的数据量。The present application provides an ambient light data collection method and electronic device, which are used to reduce the amount of collected ambient light data.

为达到上述目的,本申请采用如下技术方案:To achieve the above object, the application adopts the following technical solutions:

第一方面,提供一种环境光数据采集方法,应用于包括OLED显示屏和环境光传感器的电子设备中,比如该电子设备可以是手机、摄像机等,OLED显示屏覆盖在环境光传感器上方,该方法包括:检测显示同步信号,该显示同步信号可以为显示内容刷新时的同步信号,比如TE信号;响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器,以使环境光传感器开始采集环境光数据,环境光传感器的开启时刻不早于第一时刻;关闭环境光传感器,以使环境光传感器结束采集环境光数据,环境光传感器的关闭时刻不晚于第二时刻。In a 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. 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 The ON time of the LED in the corresponding display area, the second time is the OFF time of the LED in 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 is at the first time. Keep the closed 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 opening time of the ambient light sensor is not earlier than the first moment; turn off the ambient light sensor, so that the ambient light The sensor finishes collecting ambient light data, and the closing time of the ambient light sensor is not later than the second time.

上述技术方案中,通过检测到显示同步信号,确定环境光传感器对应的显示屏区域的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 LEDs in the display area corresponding to the ambient light sensor are kept off are determined, so that only the LEDs in the display area corresponding to the ambient light sensor are displayed. The ambient light data is collected while the closed state is maintained, 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, In addition, the data volume of the collected ambient light data can be reduced, and the data processing capability requirement of the electronic device can be lowered.

在第一方面的一种可能的实现方式中,确定第二时刻包括:根据检测到显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。上述可能的实现方式中,由于第二时刻与显示同步信号和环境光传感器在OLED显示屏的位置有关,因此提供了一种简单有效的确定第一时刻的方式。In a possible implementation manner 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 above possible implementation manner, 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 method for determining the first moment is provided.

在第一方面的一种可能的实现方式中,确定第二时刻包括:根据第三时刻和环境光传感器在OLED显示屏的位置,确定第二时刻;其中,第三时刻为检测到显示同步信号的时刻延迟第一时长的时刻,第一时长与OLED显示屏的单次刷新时长和环境光传感器对应的显示屏区域的LED的关闭时长有关,单次刷新时长和环境光传感器对应的显示屏区域的LED的关闭时长是可知的。上述可能的实现方式,由于第二时刻与第三时刻和环境光传感器在OLED显示屏的位置有关,因此提供了另一种简单有效的确定第一时刻的方式。In a possible implementation manner 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 when a display synchronization signal is detected 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 turn-off time of the LEDs 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. In the above possible implementation manner, since the second moment is related to the third moment and the position of the ambient light sensor on the OLED display screen, another simple and effective method for determining the first moment is provided.

在第一方面的一种可能的实现方式中,第一时长为OLED显示屏的单次刷新时长与环境光传感器对应的显示屏区域的LED的关闭时长之间的差值。上述可能的实现方式,提供了一种简单有效地确定第一时长的方式。In a possible implementation manner of the first aspect, the first duration is the difference between the single refresh duration of the OLED display screen and the off duration of the LEDs in the display screen area corresponding to the ambient light sensor. The above possible implementation manners provide a simple and effective manner for determining the first duration.

在第一方面的一种可能的实现方式中,环境光传感器对应的显示屏区域的LED的关闭用于刷新OLED显示屏的下一帧图像;和/或,环境光传感器对应的显示屏区域的LED的关闭用于调节OLED显示屏的亮度。上述可能的实现方式中,该电子设备能够利用刷新OLED显示屏的下一帧图像时关闭的显示屏区域的LED,和/或调节OLED显示屏的亮度时关闭的显示屏区域的LED来采集环境光数据,从而提高了采集环境光数据的灵活性和多样性,同时还能够提高采集到的环境光数据的稳定性。In a possible implementation manner of the first aspect, turning off the LEDs in the display area corresponding to the ambient light sensor is used to refresh the next frame of the OLED display; and/or, the ambient light sensor corresponding to the display area The LEDs are turned off to adjust the brightness of the OLED display. In the above possible implementation manner, the electronic device can use the LEDs in the display area that are turned off when refreshing the next frame of the OLED display, and/or the LEDs in the display area that are turned off when adjusting the brightness of the OLED display to collect the environment. Therefore, the flexibility and diversity of collecting ambient light data can be improved, and the stability of the collected ambient light data can also be improved.

在第一方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为刷新OLED显示屏的下一帧图像时环境光传感器对应的显示屏区域的LED的关闭时长。上述可能的实现方式中,该电子设备能够控制环境光传感器在OLED显示屏的帧图像刷新过程中,利用刷新时关闭的显示屏区域的LED的时长采集环境光数据,从而避免OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比。In a possible implementation manner of the first aspect, the duration between the ON time and the OFF time is the OFF time of the LEDs in the display area corresponding to the ambient light sensor when refreshing the next frame of the OLED display. In the above possible implementation manner, the electronic device can control the ambient light sensor to collect ambient light data using the duration of the LEDs in the display screen area that is turned off during the refresh process during the frame image refresh process of the OLED display screen, thereby avoiding the OLED display screen 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 manner of the first aspect, the time period between the turn-on time and the turn-off time is the time length that the LEDs in the display area corresponding to the ambient light sensor are turned off when the brightness of the OLED display screen is adjusted. In the above possible implementation manner, the electronic device can control the ambient light sensor to collect ambient light data using the duration of the LEDs in the display area that is turned off during brightness adjustment during the brightness adjustment process 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.

在第一方面的一种可能的实现方式中,该方法还包括:多次开启和关闭环境光传感器,以使环境光传感器处于开启状态的总时长满足预设采集时长。上述可能的实现方式中,能够进一步提高环境光传感器采集到的环境光数据的信噪比,从而环境光数据的稳定性。In a possible implementation manner of the first aspect, the method further includes: turning the ambient light sensor on and off multiple times, so that the total duration of the ambient light sensor being in the ON state meets the preset collection duration. In the above possible implementation manner, 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 is covered above the ambient light sensor, and the processor is configured to perform the following steps: detecting a display synchronization signal; responding to After 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 screen area corresponding to the ambient light sensor, and the second time is the turn-off time of the LED in the display screen area corresponding to the ambient light sensor. Time, the first time is earlier than the second time, the LED in the display area corresponding to the ambient light sensor remains off between the first time and the second time; the ambient light sensor is turned on, and the ambient light sensor is turned on not earlier than the first time. One moment; turn off the ambient light sensor, and the closing moment of the ambient light sensor is not 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 manner of the second aspect, the processor is 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 when display synchronization is detected The timing of the signal is delayed by the first duration, which is related to the single refresh duration of the OLED display and the off duration of the LEDs in the display area corresponding to the ambient light sensor.

在第二方面的一种可能的实现方式中,第一时长为OLED显示屏的单次刷新时长与环境光传感器对应的显示屏区域的LED的关闭时长之间的差值。In a possible implementation manner of the second aspect, the first duration is the difference between the single refresh duration of the OLED display screen and the off duration of the LEDs in the display screen area corresponding to the ambient light sensor.

在第二方面的一种可能的实现方式中,环境光传感器对应的显示屏区域的LED的关闭用于刷新OLED显示屏的下一帧图像;和/或,环境光传感器对应的显示屏区域的LED的关闭用于调节OLED显示屏的亮度。In a possible implementation manner of the second aspect, turning off the LEDs in the display area corresponding to the ambient light sensor is used to refresh the next frame of the OLED display; and/or, the ambient light sensor corresponding to the display area The LEDs are turned off to adjust the brightness of the OLED display.

在第二方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为刷新OLED显示屏的下一帧图像时环境光传感器对应的显示屏区域的LED的关闭时长。In a possible implementation manner of the second aspect, the duration between the ON time and the OFF time is the OFF duration of the LEDs in the display area corresponding to the ambient light sensor when refreshing the next frame of image of the OLED display.

在第二方面的一种可能的实现方式中,开启时刻与关闭时刻之间的时长为调节OLED显示屏的亮度时环境光传感器对应的显示屏区域的LED的关闭时长。In a possible implementation manner of the second aspect, the duration between the ON time and the OFF time is the OFF time of the LEDs in the display area corresponding to the ambient light sensor when adjusting the brightness of the OLED display.

在第二方面的一种可能的实现方式中,处理器还具体用于:多次开启和关闭环境光传感器,以使环境光传感器处于开启状态的总时长满足预设采集时长。In a possible implementation manner of the second aspect, the processor is further specifically configured to: turn on and off the ambient light sensor multiple times, so that the total duration of the ambient light sensor in the ON state satisfies the preset collection duration.

可以理解地,上述提供的任一种电子设备均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。It can be understood that any electronic device provided above is used to execute the corresponding method provided above. Therefore, the beneficial effect that can be achieved can refer to the beneficial effect of the corresponding method provided above. It is not repeated here.

附图说明Description of drawings

图1为本申请实施例提供的一种电子设备的结构示意图;FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;

图2为本申请实施例提供的另一种电子设备的结构示意图;FIG. 2 is a schematic structural diagram of another electronic device provided by an embodiment of the present application;

图3为本申请实施例提供的第一种环境光数据采集方法的流程示意图;3 is a schematic flowchart of a first method for collecting ambient light data according to an embodiment of the present application;

图4为本申请实施例提供的一种刷新关闭的显示屏区域的示意图;4 is a schematic diagram of a refreshed and closed display screen area provided by an embodiment of the present application;

图5为本申请实施例提供的一种亮度调节关闭的显示屏区域的示意图;5 is a schematic diagram of a display screen area with brightness adjustment turned off according to an embodiment of the present application;

图6为本申请实施例提供的第二种环境光数据采集方法的流程示意图;6 is a schematic flowchart of a second method for collecting ambient light data according to an embodiment of the present application;

图7为本申请实施例提供的第一种OLED显示屏在不同亮度下的工作时序图;FIG. 7 is a working sequence diagram of the first OLED display screen provided by the embodiment of the present application under different brightness;

图8为本申请实施例提供的第三种环境光数据采集方法的流程示意图;8 is a schematic flowchart of a third method for collecting ambient light data according to an embodiment of the present application;

图9为本申请实施例提供的第二种OLED显示屏在不同亮度下的工作时序图;FIG. 9 is a working sequence diagram of the second OLED display screen provided by the embodiment of the present application under different brightness;

图10为本申请实施例提供的第四种环境光数据采集方法的流程示意图;10 is a schematic flowchart of a fourth method for collecting ambient light data according to an embodiment of the present application;

图11为本申请实施例提供的第三种OLED显示屏在不同亮度下的工作时序图。FIG. 11 is a working timing diagram of the third OLED display screen provided by the embodiment of the application under different brightness.

具体实施方式Detailed ways

本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,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" means one or more, and "plurality" means two or more. "And/or", which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural. "At least one item(s) below" or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (a) of a, b or c may represent: a, b, c, a-b, a-c, b-c or a-b-c, where a, b and c may be single or multiple. The character "/" generally indicates that the associated objects are an "or" relationship. In addition, in the embodiments of the present application, words such as "first" and "second" do not limit the quantity and execution order.

需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used to represent examples, illustrations or illustrations. Any embodiment or design described in this application as "exemplary" or "such as" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.

图1为本申请实施例提供的一种电子设备的结构示意图,该电子设备可以是手机、平板电脑、计算机、可穿戴设备、车载设备、电子终端以及便携式终端等,为便于描述,本申请实施例中统称为电子设备。下面以该电子设备是手机为例,对该电子设备的结构进行举例说明。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. The examples are collectively referred to as electronic equipment. The structure of the electronic device is described below by taking the electronic device being a mobile phone 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均连接。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 assembly 150, an audio circuit 160, an input/output (I/O) ) subsystem 170, processor 180, and power supply 190 and other components. 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 the sensor assembly 150 .

其中,RF电路110可用于收发信息或通话过程中信号的接收和发送。通常,RF电路110包括但不限于天线、放大器、收发信机、耦合器、LNA(low noise amplifier,低噪声放大器)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信,比如通过WiFi网络与接入网设备通信。Among them, the RF circuit 110 can be used for receiving and sending 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 with access network devices through a WiFi network.

存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行该手机的各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据该手机的使用所创建的数据(比如音频数据、图像数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 120 can be used to store software programs and modules, and 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 storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data (such as audio) created according to the use of the mobile phone. data, image data, phone book, etc.). Additionally, memory 120 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

其他输入设备130可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。其中,其他输入设备130可包括但不限于物理键盘、功能键(比如音量控制按键、电源开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Other input devices 130 may be used to receive input numerical or character information, and to generate key signal input related to user settings and function control of the mobile phone. The other input devices 130 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, power switch keys, etc.), trackballs, mice, joysticks, and the like.

OLED显示屏140可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单,还可以接受用户输入,OLED显示屏140可以包括显示面板141和触摸面板142。在本申请实施例中,该OLED显示屏104中的显示面板141可以采用OLED的形式来配置,比如,显示面板141可以包括OLED阵列,OLED阵列包括多行多列的OLED。The OLED display 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 140 can include a display panel 141 and a touch panel 142 . In this embodiment of the present application, the display panel 141 in the OLED display screen 104 may be configured in the form of OLED. For example, the display panel 141 may include an OLED array, and the OLED array includes multiple rows and multiple columns of OLEDs.

传感器组件150包括一个或多个传感器,用于为该手机提供各个方面的状态评估。在本申请实施例中,传感器组件150可以包括环境光传感器,用于采集环境光照度等数据,以对OLED显示屏140的自动背光亮度进行调整。进一步的,传感器组件150还可以包括温度传感器、加速度传感器,陀螺仪传感器,磁传感器或压力传感器,通过传感器组件150可以检测到该手机的温度变化、该手机的加速/减速、方位、打开/关闭状态,或者组件的相对定位等。此外,传感器组件150还可以包括CMOS或CCD图像传感器等用于在成像应用中使用。Sensor assembly 150 includes one or more sensors for providing status assessments of various aspects of the handset. In this embodiment of the present application, the sensor assembly 150 may include an ambient light sensor, which is used to collect data such as ambient light intensity, so as to adjust the automatic backlight brightness of the OLED display screen 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, and the sensor component 150 can detect the temperature change of the mobile phone, the acceleration/deceleration of the mobile phone, the orientation, the opening/closing of the mobile phone state, or relative positioning of components, etc. In addition, the sensor assembly 150 may also include a CMOS or CCD image sensor or the like 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, and the speaker converts it 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. Converted to audio data, the audio data is output to the RF circuit 110 for transmission to, for example, another cell phone, or to the memory 120 for further processing.

I/O子系统170用来控制输入输出的外部设备,外部设备可以包括其他设备输入控制器、传感器控制器、显示控制器等。The I/O subsystem 170 is used to control the input and output of external devices, and the external devices may include other device input controllers, sensor controllers, display controllers, and the like.

处理器180是该手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行该手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理单元;比如,处理器180可集成应用处理器(ApplicationProcessor,AP)和调制解调处理器(modem),其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。The processor 180 is the control center of the mobile phone, using various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 120, and calling the data stored in the memory 120, Execute 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 (Application Processor, AP) and a modem processor (modem), wherein the application processor mainly processes the operating system , user interface and application programs, etc., the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 180 .

电源190(比如电池)用于给上述各个部件供电。其中,电源可以通过电源管理系统与处理器180逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。A power source 190, such as a battery, is used to power the various components described above. The power supply may be logically connected to the processor 180 through a power management system, so that functions such as managing charging, discharging, and power consumption are implemented through the power management system.

在本申请实施例中,该手机包括的OLED显示屏140和环境光传感器151的位置关系可以如图2所示,即OLED显示屏140可以覆盖在环境光传感器151的上方。其中,环境光传感器151可以被OLED显示屏140的顶部覆盖,或者被OLED显示屏140的中间部分覆盖,又或者被OLED显示屏140的底部覆盖,图2中以环境光传感器151被OLED显示屏140的顶部覆盖为例进行举例说明。另外,该手机可以是全面屏手机,也可以不是全面屏手机,本申请实施例对此不作具体限定。In this 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 . The ambient light sensor 151 may be covered by the top of the OLED display 140, or by the middle 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. The top cover of 140 is taken as an example for illustration. In addition, the mobile phone may be a full-screen mobile phone, or may not be a full-screen mobile phone, which is not specifically limited in this 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 the one shown, or combine some components, or arrange different components.

图3为本申请实施例提供的第一种环境光数据采集方法的流程示意图,该方法可应用于上文所述的电子设备中,该电子设备中的OLED显示屏覆盖在环境光传感器的上方,该方法具体可以由该电子设备中的处理器执行,参见图3,该方法包括以下几个步骤。FIG. 3 is a schematic flowchart of a first method for collecting ambient light data according to an embodiment of the present application. The method can be applied to the electronic device described above, and the OLED display screen in the electronic device is covered above the ambient light sensor. , the method can be specifically executed by the processor in the electronic device, see 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 one frame (frame) when displaying display contents such as images and videos, and the refreshed display of each frame can be refreshed line by line in the order from top to bottom. , so that the display content of one frame needs to be refreshed multiple times. During the refresh process of one frame, the LED of the display area refreshed each time is turned from on to off, that is, the corresponding area turns black, and then the refreshed content is displayed in the display area. When the OLED display screen completes the refresh of a whole frame of display content, a display synchronization signal is output, and the display synchronization signal can be used to indicate that the refresh of the display content of the frame is completed.

具体的,在OLED显示屏刷新显示过程中,该电子设备的处理器可以检测OLED显示屏输出的显示同步信号,该显示同步信号具体可以为画面撕裂效果(tearing effect,TE)信号,或者其他与显示内容刷新同步的信号等。Specifically, during the refresh display process of the OLED display screen, the processor of the electronic device can detect a display synchronization signal output by the OLED display screen, and the display synchronization signal may specifically be a tearing effect (tearing effect, TE) signal, or other Signals that are synchronized with the refresh of the display content, etc.

S302:响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器对应的显示屏区域的LED的开启时刻,第二时刻为环境光传感器对应的显示屏区域的LED的关闭时刻,第一时刻早于第二时刻,环境光传感器对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态。S302: In response to detecting the display synchronization signal, determine a first moment and a second moment, where the first moment is the turn-on moment of the LED in the display screen area corresponding to the ambient light sensor, and the second moment is the display screen 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 screen 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处于关闭状态时的时间段,即确定第一时刻和第二时刻。The LEDs in the display area corresponding to the ambient light sensor may specifically refer to the LEDs in the display area covering the area above the ambient light sensor in the OLED display. The state of the LEDs in the display area is related to the accuracy of the ambient light data collected by the ambient light sensor. Specifically, when the LEDs in the display area corresponding to the ambient light sensor are in an on state (also called a lighting state), the ambient light data collected by the ambient light sensor will be affected by the LEDs in the display area being in an on state. Influence, that is, the collected ambient light data will include both ambient light data and 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 ambient light data. Therefore, in order to ensure that the ambient light data collected by the subsequent ambient light sensor will not be affected, the electronic device can determine the time period when the LEDs in the display area corresponding to the ambient light sensor are in the off state, that is, determine the first moment and the second 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 refresh process of the display content and the brightness adjustment process of the OLED display. Introduce the situation.

第一种、显示内容的刷新过程。The first is the refresh process of the displayed content.

其中,上述S301中提到,在一帧的刷新过程中,每次刷新的显示屏区域会先变成黑色,然后再在该刷新的显示屏区域显示刷新后的内容,该刷新的显示屏区域会先变成黑色具体是通过关闭该刷新的显示屏区域的LED来实现的,即此时该刷新的显示屏区域的LED处于关闭状态,后续称为刷新关闭的显示屏区域。当该刷新关闭的显示屏区域移动至环境光传感器对应的显示屏区域(即环境光传感器对应的显示屏区域的LED的关闭用于刷新OLED显示屏的下一帧图像,具体可以如图4所示)时,确定第一时刻和第二时刻,第一时刻和第二时刻之间即为确定该刷新关闭的显示屏区域的LED处于关闭状态的时间段。Among them, as mentioned in S301 above, during the refresh process of one frame, the area of the display screen that is refreshed each time will turn black first, and then the refreshed content will be displayed in the area of the refreshed display screen. Turning to black first is achieved by turning off the LEDs in the refreshed display area, that is, the LEDs in the refreshed display area are turned off at this time, which is subsequently referred to as the refreshed display area. When the display screen area that is refreshed and turned off moves to the display screen area corresponding to the ambient light sensor (that is, the LEDs in the display screen area corresponding to the ambient light sensor are turned off to refresh the next frame of the OLED display screen, as shown in Figure 4 ) display), determine the first time and the second time, and the interval between the first time and the second time is the time period during which it is determined that the LED of the refreshed and closed display screen area is in the off state.

另外,在同一帧的显示内容刷新过程中,该显示同步信号是OLED显示屏在完成这一整帧的显示内容的刷新时输出的信号,该刷新关闭的显示屏区域的LED的关闭时刻也是完成这一整帧的显示内容的刷新时的时刻,即对于同一帧而言,该帧对应的显示同步信号和该刷新关闭的显示屏区域的LED的关闭时刻是同步的。因此,基于这个同步关系,可以确定该刷新关闭的显示屏区域的LED的关闭时刻。In addition, during the refresh process of the display content of the same frame, the display synchronization signal is the signal output by the OLED display screen when the refresh of the display content of the whole frame is completed, and the closing time of the LED in the display screen area where the refresh is turned off is also completed. The refresh time of the display content of the whole frame, that is, for the same frame, the display synchronization signal corresponding to the frame is synchronized with the turn-off time of the LEDs in the display screen area where the refresh is turned off. Therefore, based on this synchronization relationship, it is possible to determine the turn-off moment of the LED of the refresh-off display screen area.

在一种可能的实现方式中,当该刷新关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED时,确定第二时刻,可以包括:根据检测到该显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。具体的,该电子设备可以根据检测到该显示同步信号的时刻、OLED显示屏的单次刷新时长和环境光传感器在OLED显示屏的位置,确定第二时刻。这里的检测到该显示同步信号的时刻可以是指检测到第一帧完成刷新时的显示同步信号的时刻,第二时刻可以是指第二帧刷新过程中该刷新关闭的显示屏区域的LED的关闭时刻,第二帧为与第一帧相邻的下一帧。In a possible implementation manner, when the LEDs in the display screen area that are refreshed and turned off are LEDs in 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 The position of the ambient light sensor on the OLED display screen determines the second moment. Specifically, the electronic device can determine the second time 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 when the first frame is refreshed is detected, and the second time may be the time when the LED in the refreshed display area is turned off during the refresh of the second frame. At the time 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 duration of the OLED display is related to the refresh frequency of the OLED display, and the refresh frequency of the OLED display is constant. For example, the refresh frequency of the OLED display is 60Hz, so the single refresh duration is approximately equal to 16.667 milliseconds (ms). The position of the ambient light sensor on the OLED display screen can be specifically used to determine the time required for the refreshed-off display area to move from the top of the OLED display to the display area corresponding to the ambient light sensor, which is hereinafter referred to as the first movement duration , 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 screen, V1 represents the movement speed of the display screen area that is refreshed and turned off, and the movement speed V1 can be equal to the OLED display screen. The ratio of the length of the OLED display to the single refresh time of the OLED display.

示例性的,假设第一移动时长为TS1、单次刷新时长为Tf,则该电子设备可以将检测到该显示同步信号的时刻延迟单次刷新时长Tf,若第一移动时长TS1为零,则可直接得到第二时刻,若第一移动时长TS1不为零,则可将延迟单次刷新时长Tf后的时刻再延迟TS1,即可得到第二时刻。进一步的,在确定第二时刻之后,可以根据该刷新关闭的显示屏区域的LED的关闭时长确定第一时刻,该刷新关闭的显示屏区域的LED的关闭时长Tb1由该电子设备控制,即该关闭时长Tb1是已知的,该电子设备将第二时刻提前该关闭时长Tb1即可确定第一时刻。Exemplarily, assuming that the first movement duration is T S1 and the single refresh duration is T f , the electronic device can delay the moment when the display synchronization signal is detected by the single refresh duration T f , if the first movement duration T S1 If it is zero, the second moment can be obtained directly. If the first movement duration T S1 is not zero, the second moment can be obtained by delaying the moment after the delay of the single refresh duration T f by T S1 . Further, after the second moment is determined, the first moment can be determined according to the off-time of the LEDs in the refreshed-off display area, and the off-time T b1 of the LEDs in the refreshed off-display area is controlled by the electronic device, that is, The off-time T b1 is known, and the electronic device can determine the first time by advancing the second time by the off-time T b1 .

第二种、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 can include two working modes, namely, a pulse-width modulation (PWM) mode and a non-PWM mode. In the PWM mode, a duty cycle adjustment signal is required (for example, the duty cycle The adjustment signal can be a square wave signal with a frequency of 240Hz), and the duty cycle adjustment signal is not required in the non-PWM mode. The PWM mode can mean that when the brightness of the OLED display is low, the lighting duration of the LEDs in the OLED display is controlled by PWM, so as to realize the brightness adjustment of the OLED display. In this working mode, there will be LEDs in the display area. In the off state for a period of time, the LED in the display area is subsequently referred to as the LED in the display area where the brightness adjustment is turned off. The non-PWM mode can mean that when the brightness of the OLED display is high, the brightness adjustment of the OLED display cannot be achieved through the PWM mode, and the brightness adjustment of the OLED display can only be achieved by increasing the power supply current and other methods. The LEDs in the display area are turned off for a period of time, that is, there are no LEDs in the display area where the brightness adjustment is turned off. Therefore, when the display area where the brightness adjustment is turned off moves to the display area corresponding to the ambient light sensor (that is, the LEDs in the display area corresponding to the ambient light sensor are turned off to adjust the brightness of the OLED display), the first moment is determined. and the second moment, that is, the time period during which the LEDs in the display area where the brightness adjustment is turned off are determined to be 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, in the above PWM mode, there will be one or more display screen areas with brightness adjustment turned off evenly distributed, and one or more display screen areas with brightness adjustment turned off will be in different to move to the display area corresponding to the ambient light sensor. The number N of display screen areas that are turned off by the brightness adjustment is related to the frequency of the duty cycle adjustment signal and the refresh frequency of the OLED display screen, and the value of N can be equal to the ratio of the two. If the frequency of the duty cycle adjustment signal is 240Hz, the number of display screen areas to be turned off by the brightness adjustment can be 4 (N=240/60=4). Among the closed area, the second closed area, the third closed area, and the fourth closed area, the three closed areas are only used for brightness adjustment, and the other closed area is used for both refreshing the display content and brightness adjustment.

另外,在同一帧的显示内容刷新和亮度调节过程中,该显示同步信号是OLED显示屏在完成这一整帧的显示内容的刷新时输出的信号,该亮度调节关闭的显示屏区域的LED的关闭时刻也是完成这一整帧的显示内容的刷新时的时刻,即对于同一帧而言,该帧对应的显示同步信号和该亮度调节关闭的显示屏区域的LED的关闭时刻是同步的。因此,基于这个同步关系,可以确定该亮度调节关闭的显示屏区域的LED的关闭时刻。In addition, in the process of refreshing the display content of the same frame and adjusting the brightness, the display synchronization signal is the signal output by the OLED display screen when the refresh of the display content of the whole frame is completed. The closing time is also the time when the refresh 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 LEDs in the display area where the brightness is turned off are synchronized. Therefore, based on this synchronization relationship, it is possible to determine the turn-off moment of the LED of the display screen area where the brightness adjustment is turned off.

在一种可能的实现方式中,当该亮度调节关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED时,确定第二时刻,可以包括:根据检测到该显示同步信号的时刻和环境光传感器在OLED显示屏的位置,确定第二时刻。具体的,该电子设备可以根据检测到该显示同步信号的时刻、OLED显示屏的单次刷新时长和环境光传感器在OLED显示屏的位置,确定第二时刻。这里的检测到该显示同步信号的时刻可以是指检测到第一帧完成刷新时的显示同步信号的时刻,第二时刻可以是指第二帧的亮度调节过程中该亮度调节关闭的显示屏区域的LED的关闭时刻,第二帧为第一帧的下一帧。需要说明的是,当存在多个亮度调节关闭的显示屏区域时,可以确定一个第二时刻,也可以确定多个第二时刻。In a possible implementation manner, when the LEDs in the display area where the brightness adjustment is turned off are the LEDs in the display 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 to determine the second moment. Specifically, the electronic device can determine the second time 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 when the first frame is refreshed is detected, and the second time may refer to the area of the display screen where the brightness adjustment is turned off during the brightness adjustment process of the second frame The moment 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 duration of the OLED display is known. The position of the ambient light sensor on the OLED display screen can be specifically used to determine the time required for the display area where the brightness adjustment is turned off to move from the top of the OLED display screen to the display area corresponding to the ambient light sensor, hereinafter referred to as the second movement duration.

示例性的,假设第二移动时长为TS2,单次刷新时长为Tf,则该电子设备可以将检测到该显示同步信号的时刻分别延迟N分之i的单次刷新时长Tf(即Tf*i/N,i的取值可以分别为1至N),若第二移动时长TS2为零,则可直接得到多个第二时刻,若第二移动时长TS2不为零,则可将延迟Tf*i/N后的时刻分别再延迟TS2,即可得到多个第二时刻。进一步的,在确定多个第二时刻之后,可以根据该亮度调节关闭的显示屏区域的LED的关闭时长Tb2确定对应的多个第一时刻,该亮度调节关闭的显示屏区域的LED的关闭时长Tb2与OLED显示屏的亮度决定,该OLED显示屏的亮度由该电子设备控制,即该电子设备可以直接通过亮度确定该关闭时长Tb2,该电子设备将多个第一时刻分别提前该关闭时长Tb2即可确定对应的多个第一时刻。Exemplarily, assuming that the second movement duration is T S2 and the single refresh duration is T f , then the electronic device can delay the moment when the display synchronization signal is detected by the single refresh duration T f (i.e., i/N) respectively. T f *i/N, the value of i can be respectively 1 to N). If the second movement duration T S2 is zero, a plurality of second moments can be directly obtained. If the second movement duration T S2 is not zero, Then, the moments after the delay T f *i/N can be respectively delayed by T S2 to obtain a plurality of second moments. Further, after a plurality of second moments are determined, a plurality of corresponding first moments may be determined according to the turn-off duration T b2 of the LEDs in the display area where the brightness is turned off, and the LEDs in the display area where the brightness is turned off are turned off. The duration T b2 is determined by the brightness of the OLED display screen, and the brightness of the OLED display screen is controlled by the electronic device, that is, the electronic device can directly determine the off duration T b2 by the brightness, and the electronic device advances the multiple first moments by the A plurality of corresponding first moments can be determined by the closing time length T b2 .

示例性的,以4该刷新频率为60Hz,该占空比调节信号的频率为240Hz,4个亮度调节关闭的显示屏区域分别为图5中的第一关闭区域、第二关闭区域、第三关闭区域和第四关闭区域,第二移动时长T4为零为例,则第一关闭区域、第二关闭区域、第三关闭区域和第四关闭区域分别移动至环境光传感器对应的显示屏区域时的第一时间分别为(1/4)*Tf、(1/2)*Tf、(3/4)*Tf和Tf,对应的多个第一时刻分别为(1/4)*Tf-Tb2、(1/2)*Tf-Tb2、(3/4)*Tf-Tb2和Tf-Tb2Exemplarily, the refresh frequency of 4 is 60 Hz, the frequency of the duty cycle adjustment signal is 240 Hz, and the 4 display screen areas that are turned off by brightness adjustment are the first closed area, the second closed area, and the third closed area in FIG. 5 . Taking the closing area and the fourth closing area as an example, the second moving duration T4 is zero, then when the first closing area, the second closing area, the third closing area and the fourth closing area move to the display area corresponding to the ambient light sensor respectively The first times are (1/4)*T f , (1/2)*T f , (3/4)*T f and T f respectively, and the corresponding first times 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 off the ambient light sensor, the turn-on time of the ambient light sensor is not earlier than the first time, and the turn-off time of the ambient light sensor is not later than the second time.

当确定第一时刻和第二时刻之后,该电子设备可以根据第一时刻开启环境光传感器,在环境光传感器采集一段时间的环境光数据之后,根据第二时刻关闭环境光传感器。比如,该电子设备的处理器在不早于第一时刻的某一时刻向环境光传感器发送一个开启信号,以使环境光传感器在接收到该开启信号时开始采集环境光数据,以及在不晚于第二时刻的某一时刻向环境光传感器发送结束信号,以使环境光传感器在接收到该结束信号时停止采集环境光数据。之后,该电子设备的处理器还可以将环境光传感器采集到的环境光数据进行缓存,并根据采集到的环境光数据对OLED显示屏的背光亮度进行调节。After the first moment and the second moment are determined, the electronic device may turn on the ambient light sensor according to the first moment, and turn off the ambient light sensor according to the second moment after the ambient light sensor collects ambient light data for a period of time. For example, the processor of the electronic device sends a turn-on signal to the ambient light sensor at a time not earlier than the first time, so that the ambient light sensor starts to collect ambient light data when receiving the turn-on signal, and not later than the first time. An end signal is sent to the ambient light sensor at a certain moment in 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 may further cache 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 duration between the first moment and the second moment, and the specified duration is the duration from the on-time to the off-time of the ambient light sensor (that is, the ambient light sensor collects the ambient light) The duration of the optical data), the specified duration may be less than the duration from the first moment to the second moment, or may be equal to the duration from the first moment to the second moment. 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, and the specified duration is equal to the duration from the first moment to the second moment; The ambient light sensor is turned on at a certain moment after a moment, and the ambient light sensor is turned off at a second moment or at a certain moment before the second moment, at this time, the specified duration is less than the duration from the first moment to the second moment; or, the 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, and 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 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 an off duration of the LEDs in the display area corresponding to the ambient light sensor when the next frame of the OLED display is refreshed. That is, in the first case of S302 above, the LEDs in the display screen area that are refreshed and turned off are the LEDs in the display screen area corresponding to the ambient light sensor, and at this time, the LEDs in the display screen area corresponding to the ambient light sensor are turned off. It is the turn-off duration of the LEDs in the display screen area that is turned off by the refresh, so the specified time duration can specifically be the turn-off duration of the LEDs in the display screen area that is turned off by the refresh. The length of time that the LEDs in the display area are turned off.

或者,该指定时长为调节OLED显示屏的亮度时环境光传感器对应的显示屏区域的LED的关闭时长。也即是,在上述S302的第二种情况下,该亮度调节关闭的显示屏区域的LED为环境光传感器对应的显示屏区域的LED,此时环境光传感器对应的显示屏区域的LED的关闭时长就是该亮度调节关闭的显示屏区域的LED的关闭时长,从而该指定时长具体可以为该亮度调节关闭的显示屏区域的LED的关闭时长,比如,该指定时长可以为上述图5所示的四个关闭区域中每个关闭区域LED的关闭时长。Or, the specified time period is the off time period 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 above, the LEDs in the display area where the brightness adjustment is turned off are the LEDs in the display area corresponding to the ambient light sensor, and at this time, the LEDs in the display area corresponding to the ambient light sensor are 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 can specifically be the off duration of the LEDs in the display area where the brightness is turned off. For example, the specified duration can be as shown in Figure 5 above. The length of time that each of the four off-zone LEDs is off.

进一步的,该电子设备还可以多次开启和关闭环境光传感器,以使环境光传感器处于开启状态的总时长(即采集总时长)满足预设采集时长,即控制环境光传感器采集环境光数据的总时长为该预设采集时长,该预设采集时长可以包括一帧或者多帧的单次刷新时长内的多个指定时长,每帧下可以对应一个或多个指定时长。通过多次开启和关闭环境光传感器,使环境光传感器的采集总时长满足预设采集时长时,能够提高环境光传感器采集的环境光数据的信噪比,从而提高环境光传感器采集的环境光数据的稳定性,同时对环境光传感器的灵敏度和采样率等性能的要求较低。Further, the electronic device can also turn on and off the ambient light sensor multiple times, so that the total duration of the ambient light sensor in the ON state (that is, the total acquisition duration) meets the preset acquisition duration, that is, the ambient light sensor is controlled to collect ambient light data. The total duration is the preset collection duration, the preset collection duration may include multiple specified durations within the single refresh duration of one frame or multiple frames, and each frame may correspond to one or more specified durations. By turning the ambient light sensor on and off multiple times, when the total collection time of the ambient light sensor meets the preset collection time, the signal-to-noise ratio of the ambient light data collected by the ambient light sensor can be improved, thereby improving the ambient light data collected by the ambient light sensor. The stability of the ambient light sensor is low, and the performance requirements such as the sensitivity and sampling rate of the ambient light sensor are relatively low.

为便于理解,下面以显示同步信号为TE信号,环境光传感器位于OLED显示屏的最上方(即上述第一移动时长TS1和第二移动时长TS2为零),该OLED显示屏的刷新频率为60Hz、占空比调节信号可以为频率为240Hz下,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度为例,对本申请实施例提供的方法进行举例说明。较低亮度和中等亮度为OLED显示屏工作在PWM模式下的两种亮度举例,较高亮度为OLED显示屏工作在非PWM模式下的一种亮度举例。For ease of understanding, the display synchronization signal is taken as the TE signal below, the ambient light sensor is located at the top of the OLED display screen (that is, the above-mentioned first movement duration T S1 and second movement duration T S2 are zero), and the refresh frequency of the OLED display screen The method provided in the embodiment of the present application is illustrated by taking the example that the brightness of the OLED display screen is lower brightness, medium brightness and higher brightness respectively when the frequency is 60Hz, the duty cycle adjustment signal may be 240Hz. Low brightness and medium brightness are two examples of brightness for the OLED display screen working in the PWM mode, and high brightness is an example of the brightness for the OLED display screen working in the non-PWM mode.

示例性的,如图6所示,该方法可以包括:S401.检测TE信号;S402.响应于检测到TE信号,将检测到该TE信号的时刻延迟Tf-T0,Tf表示单次刷新时长,T0表示第一指定时长;S403.开启环境光传感器,在经过第一指定时长T0后,关闭环境光传感器,即控制环境光传感器在第一指定时长T0内采集环境光数据;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 moment when the TE signal is detected by T f -T 0 , where T f represents a single time Refresh duration, T 0 represents the first specified duration; S403. Turn on the ambient light sensor, and after the first specified duration T 0 , turn off the ambient light sensor, that is, control the ambient light sensor to collect ambient light data within the first specified duration T 0 ; S404. Acquire ambient light data and the total collection time; S405. Cache the 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, end, if the total collection time does not reach Returning to S401 to continue the execution when the preset collection duration is set.

基于上述图6所提供的方法,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度下的工作时序图可以如图7所示。在图7中,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图4所示的情况,此时环境光传感器在单次刷新时长Tf内仅采集一个第一指定时长T0的环境光数据,第一指定时长T0可以被配置为固定数值。其中,在该OLED显示屏的亮度为较低亮度和中等亮度时,第一指定时长T0小于环境光传感器对应的显示屏区域的LED的关闭时长;在该OLED显示屏的亮度为较高亮度时,该指定时长等于环境光传感器对应的显示屏区域的LED的关闭时长。Based on the method provided in FIG. 6 , the working timing diagram of the OLED display screen with the brightness of lower brightness, medium brightness and higher brightness, respectively, may be as shown in FIG. 7 . In FIG. 7 , the LED in the display area corresponding to the ambient light sensor is in an off state, which may be the situation shown in the above-mentioned FIG. 4 . At this time, the ambient light sensor only collects a first specified duration T within the single refresh duration T f 0 ambient light data, the first specified duration T 0 may be configured as a fixed value. Wherein, when the brightness of the OLED display screen is low brightness and medium brightness, the first specified duration T 0 is less than the turn-off duration of the LEDs in the display screen area corresponding to the ambient light sensor; when the brightness of the OLED display screen is relatively high brightness , the specified duration is equal to the off duration of the LEDs 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)*Tf-T0、(1/2)*Tf-T0、(3/4)*Tf-T0和Tf-T0;S503b.控制环境光传感器分别在延迟(1/4)*Tf-T0、(1/2)*Tf-T0、(3/4)*Tf-T0和Tf-T0后的第一指定时长T0内采集环境光数据;S504.获取环境光数据和采集总时长;S505.缓存环境光数据;S506.判断采集总时长是否达到预设采集时长,若采集总时长达到预设采集时长则结束,若采集总时长未达到预设采集时长则返回S501继续执行。Alternatively, as shown in FIG. 8 , the method may include: S501. Detecting the TE signal; S502. judging whether the OLED display screen is working in the PWM mode, if not, execute according to S402-S403 provided in FIG. The method provided in FIG. 6 is performed), if so, perform the following S503a and S503b; S503a. In response to detecting the TE signal, delay the moment when the TE signal is detected 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 , Collect ambient light data within the first specified time period T 0 after (1/2)*T f -T 0 , (3/4)*T f -T 0 and T f -T 0 ; 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, end, if the total collection time does not reach the preset collection time, return to S501 to continue implement.

基于上述图8所提供的方法,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度下的工作时序图可以如图9所示。在图9中,当该OLED显示屏的亮度为较低亮度和中等亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为是指上述图5所示的情况,此时环境光传感器在单次刷新时长Tf内采集四个第一指定时长T0内的环境光数据;当该OLED显示屏的亮度为较高亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图4所示的情况。另外,在该OLED显示屏的亮度为较低亮度和中等亮度时,第一指定时长T0小于环境光传感器对应的显示屏区域的LED的关闭时长;在该OLED显示屏的亮度为较高亮度时,第一指定时长T0指定时长等于环境光传感器对应的显示屏区域的LED的关闭时长。Based on the method provided in FIG. 8 , the working timing diagram of the OLED display screen under the conditions of lower brightness, medium brightness, and higher brightness, respectively, may be shown in FIG. 9 . In FIG. 9 , when the brightness of the OLED display screen is low brightness and medium brightness, the LED in the display screen area corresponding to the ambient light sensor is in an off state. Specifically, it can refer to the situation shown in FIG. 5 above. The light sensor collects ambient light data within four first specified durations T 0 within a single refresh duration T f ; when the brightness of the OLED display screen is relatively high, the LEDs in the display area corresponding to the ambient light sensor are turned off The state may specifically be the situation shown in the above-mentioned FIG. 4 . 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 turn-off duration of the LEDs in the display screen area corresponding to the ambient light sensor; when the brightness of the OLED display screen is relatively high brightness , the first specified duration T 0 specified duration is equal to the off duration of the LEDs in 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)*Tf-T1、(1/2)*Tf-T1、(3/4)*Tf-T1和Tf-T1,Tf表示单次刷新时长,T1表示第二指定时长;S603b.控制环境光传感器分别在延迟(1/4)*Tf-T1、(1/2)*Tf-T1、(3/4)*Tf-T1和Tf-T1后的第二指定时长T1内采集环境光数据;S604.获取环境光数据和采集总时长;S605.缓存环境光数据;S606.判断采集总时长是否达到预设采集时长,若采集总时长达到预设采集时长则结束,若采集总时长未达到预设采集时长则返回S601继续执行。Alternatively, as shown in FIG. 10 , the method may include: S601. Detecting the TE signal; S602. judging whether the OLED display screen works in the PWM mode, if not, execute according to S402-S403 provided in FIG. The method provided in FIG. 6 is performed), if so, perform the following S603a and S603b; S603a. In response to detecting the TE signal, delay the moment when the TE signal is detected 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 single refresh duration, and T 1 represents the second specified duration; S603b. Control the ambient light Second assignment of sensors after delays of ( 1/4 )* Tf -T1, ( 1/2 )* Tf - T1, (3/4)* Tf - T1, and Tf -T1, respectively Collect ambient light data within the time duration T1 ; S604. Acquire ambient light data and the total collection time; S605. Cache the ambient light data; S606. Determine whether the total collection time reaches the preset collection time, and 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 the execution.

基于上述图10所提供的方法,该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度下的工作时序图可以如图11所示。在图11中,当该OLED显示屏的亮度为较低亮度和中等亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图5所示的情况,此时环境光传感器在单次刷新时长Tf内采集四个第二指定时长T1的环境光数据;当该OLED显示屏的亮度为较高亮度时,环境光传感器对应的显示屏区域的LED处于关闭状态具体可以为上述图4所示的情况。另外,在该OLED显示屏的亮度分别为较低亮度、中等亮度和较高亮度时,第二指定时长T1均等于环境光传感器对应的显示屏区域的LED的关闭时长。Based on the method provided in FIG. 10 , the working timing diagram of the OLED display screen with the brightness of lower brightness, medium brightness and higher brightness, respectively, may be as shown in FIG. 11 . In FIG. 11 , when the brightness of the OLED display screen is low brightness and medium brightness, the LED in the display screen area corresponding to the ambient light sensor is in an off state. Specifically, the situation shown in FIG. 5 can be described above. Four ambient light data of the second specified duration T 1 are collected within a single refresh duration T f ; when the brightness of the OLED display screen is relatively high, the LED in the display area corresponding to the ambient light sensor is in an off state. For the situation shown in Figure 4 above. In addition, when the brightness of the OLED display screen is respectively low brightness, medium brightness and high brightness, the second specified duration T 1 is equal to the off duration of the LEDs 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 screen is the timing diagram corresponding to low brightness, medium brightness and high brightness, and a low level can indicate that the OLED display screen is in the The LED of the display area in the off state, and the high level can indicate the LED of the display area in the on state of the OLED display screen.

在本申请实施例中,该电子设备通过检测到显示同步信号,确定环境光传感器对应的显示屏区域的LED保持关闭状态时对应的第一时刻和第二时刻,从而仅在环境光传感器对应的显示屏区域的LED保持关闭状态时采集环境光数据,从而避免了OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比;此外,该方法无需高性能的环境光传感器,且能够减少采集到的环境光数据的数据量,降低对电子设备的数据处理能力要求。In the embodiment of the present application, the electronic device detects the display synchronization signal to determine the first time and the second time corresponding to when the LED in the display screen area corresponding to the ambient light sensor is kept in an off state, so that only when the ambient light sensor corresponds to the corresponding first time and the second time The ambient light data is collected when the LEDs in the display area are kept off, thus 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 capability requirements of electronic equipment.

本申请实施例还提供一种电子设备,该电子设备的结构可以如上述图1所示,该电子设备包括的OLED显示屏140覆盖在环境光传感器151上方,比如OLED显示屏140和环境光传感器151的位置关系可以如上述图2所示。An embodiment of the present application further provides an electronic device, the structure of which may be as shown in FIG. 1 above, and 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 may be as shown in FIG. 2 above.

在本申请实施例中,该电子设备中的处理器180可用于执行以下步骤:检测显示同步信号;响应于检测到显示同步信号,确定第一时刻和第二时刻,第一时刻为环境光传感器151对应的显示屏区域的LED的关闭时刻,第二时刻为环境光传感器151对应的显示屏区域的LED的开启时刻,第一时刻早于第二时刻,环境光传感器151对应的显示屏区域的LED在第一时刻和第二时刻之间保持关闭状态;开启环境光传感器151,环境光传感器151的开启时刻不早于第一时刻;关闭环境光传感器151,环境光传感器151的关闭时刻不晚于第二时刻。In this embodiment of the present application, the processor 180 in the electronic device may be configured to perform the following steps: detecting a display synchronization signal; in response to detecting the display synchronization signal, determining a first moment and a second moment, where the first moment is an ambient light sensor The time when the LEDs in the display area corresponding to 151 are turned off, and the second time is the time when the LEDs in the display area corresponding to the ambient light sensor 151 are turned on. The LED is kept off between the first time and the second time; the ambient light sensor 151 is turned on, and the opening time of the ambient light sensor 151 is not earlier than the first time; the ambient light sensor 151 is turned off, and the closing 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 screen 140; wherein, the third time is the time when the display synchronization signal is detected and delayed by the first time. At the moment, the first duration is related to the single refresh duration of the OLED display screen 140 and the OFF duration of the LEDs in the display screen 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 off duration of the LEDs 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, the LED in the display area corresponding to the ambient light sensor 151 is turned off to refresh the next frame of the OLED display 140 image; and/or, the display area corresponding to the ambient light sensor 151 is turned off The LEDs are turned off to adjust the brightness of the OLED display 140 .

可选的,开启时刻与关闭时刻之间的时长为刷新OLED显示屏140的下一帧图像时环境光传感器151对应的显示屏区域的LED的关闭时长;或者,开启时刻与关闭时刻之间的时长为调节OLED显示屏140的亮度时环境光传感器151对应的显示屏区域的LED关闭的时长。Optionally, the time length between the turn-on time and the turn-off time is the turn-off time of the LEDs in the display area corresponding to the ambient light sensor 151 when the next frame of the OLED display screen 140 is refreshed; or, the time between the turn-on time and the turn-off time. The duration is the duration that the LEDs in the display area corresponding to the ambient light sensor 151 are 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 the ambient light sensor 151 on and off multiple times, so that the total duration of the ambient light sensor 151 being in the ON state satisfies the preset collection duration.

需要说明的是,该电子设备中处理器180、OLED显示屏140和环境光传感器对应的各功能描述具体可以参见上述方法实施例涉及的各步骤的相关内容的描述,本申请实施例在此不再赘述。It should be noted that, for the description of the functions corresponding to the processor 180, the OLED display screen 140, and the ambient light sensor in the electronic device, reference may be made to the description of the relevant content of the steps involved in the foregoing method embodiments, which are not described in the embodiments of the present application. Repeat.

在本申请实施例中,该电子设备通过检测到显示同步信号,确定环境光传感器对应的显示屏区域的LED保持关闭状态时对应的第一时刻和第二时刻,从而仅在环境光传感器对应的显示屏区域的LED保持关闭状态时采集环境光数据,从而避免了OLED显示屏本身的发光对采集到的环境光数据的影响,提高了环境光数据的信噪比;此外,该方法无需高性能的环境光传感器,且能够减少采集到的环境光数据的数据量,降低对电子设备的数据处理能力要求。In the embodiment of the present application, the electronic device detects the display synchronization signal to determine the first time and the second time corresponding to when the LED in the display screen area corresponding to the ambient light sensor is kept in an off state, so that only when the ambient light sensor corresponds to the corresponding first time and the second time The ambient light data is collected when the LEDs in the display area are kept off, thus 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 capability requirements of electronic equipment.

最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that: the above are only the specific embodiments of the present application, but the protection scope of the present application is not limited to this, and any changes or replacements within the technical scope disclosed in the present application should be included in the present application. within the scope of protection of the application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (15)

1. a kind of ambient light data acquisition method, which is characterized in that applied to including OLED display screen and ambient light sensor In electronic equipment, the OLED display screen is covered on above the ambient light sensor, which comprises
Detect display synchronization signal;
In response to detecting the display synchronization signal, determine that the first moment and the second moment, first moment are the ring The close moment of the LED of the corresponding display screen area of border optical sensor, second moment are corresponding for the ambient light sensor Display screen area LED start-up time, first moment, the ambient light sensor was corresponding earlier than second moment The LED of display screen area remained off between first moment and second moment;
Open the ambient light sensor, unlatching ambient light sensor at the time of is no earlier than first moment;
Close the ambient light sensor, closing ambient light sensor at the time of is not later than second moment.
2. the method according to claim 1, wherein determining second moment, comprising:
According at the time of detecting the display synchronization signal and the ambient light sensor is in the position of the OLED display screen, Determine second moment.
3. method according to claim 1 or 2, which is characterized in that determine second moment, comprising:
According to third moment and the ambient light sensor in the position of the OLED display screen, second moment is determined;
Wherein, the third moment is described the at the time of postponing the first duration at the time of detect the display synchronization signal The LED's of one duration display screen area corresponding with the single refresh duration of the OLED display screen and the ambient light sensor It is related to close duration.
4. according to the method described in claim 3, it is characterized in that, the single brush of a length of OLED display screen of described first when Difference between the closing duration of the LED of new duration display screen area corresponding with the ambient light sensor.
5. method according to claim 1-4, which is characterized in that at first moment and second moment Between, refresh the image of the OLED display screen.
6. method according to claim 1-4, which is characterized in that at first moment and second moment Between, adjust the brightness of the OLED display screen.
7. method according to claim 1-6, which is characterized in that the method also includes:
Repeatedly open the ambient light sensor so that ambient light sensor total duration in the open state be greater than it is default Duration.
8. a kind of electronic equipment, which is characterized in that the electronic equipment includes: processor, OLED display screen and ambient light sensor, The OLED display screen is covered on above the ambient light sensor, and the processor is for executing following steps:
Detect display synchronization signal;
In response to detecting the display synchronization signal, determine that the first moment and the second moment, first moment are the ring The start-up time of the LED of the corresponding display screen area of border optical sensor, second moment are corresponding for the ambient light sensor Display screen area LED close moment, first moment, the ambient light sensor was corresponding earlier than second moment The LED of display screen area remained off between first moment and second moment;
The ambient light sensor is opened, the start-up time of the ambient light sensor is no earlier than first moment;
The ambient light sensor is closed, the close moment of the ambient light sensor is not later than second moment.
9. electronic equipment according to claim 8, which is characterized in that the processor is specifically used for:
According at the time of detecting the display synchronization signal and the ambient light sensor is in the position of the OLED display screen, Determine second moment.
10. electronic equipment according to claim 8 or claim 9, which is characterized in that the processor, also particularly useful for:
According to third moment and the ambient light sensor in the position of the OLED display screen, second moment is determined;
Wherein, the third moment is described the at the time of postponing the first duration at the time of detect the display synchronization signal The LED's of one duration display screen area corresponding with the single refresh duration of the OLED display screen and the ambient light sensor It is related to close duration.
11. electronic equipment according to claim 10, which is characterized in that a length of OLED display screen when described first Difference between the closing duration of the LED of single refresh duration display screen area corresponding with the ambient light sensor.
12. according to the described in any item electronic equipments of claim 8-11, which is characterized in that the ambient light sensor is corresponding The closing of the LED of display screen area is for refreshing the next frame image of the OLED display screen;
And/or the closing of the LED of the corresponding display screen area of the ambient light sensor is for adjusting the OLED display screen Brightness.
13. according to the described in any item electronic equipments of claim 8-12, which is characterized in that the start-up time and the closing Between moment when a length of next frame image for refreshing the OLED display screen when the corresponding display screen of the ambient light sensor The closing duration of the LED in region.
14. according to the described in any item electronic equipments of claim 8-12, which is characterized in that the start-up time and the closing Between moment when a length of brightness for adjusting the OLED display screen when ambient light sensor corresponding display screen area The duration that LED is closed.
15. according to the described in any item electronic equipments of claim 8-14, which is characterized in that the processor, also particularly useful for:
The ambient light sensor is repeatedly opened and closed, so that ambient light sensor total duration in the open state is full The default acquisition duration of foot.
CN201910229473.1A 2019-03-25 2019-03-25 A method for collecting ambient light data and electronic equipment Active CN110012162B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910229473.1A CN110012162B (en) 2019-03-25 2019-03-25 A method for collecting ambient light data and electronic equipment
PCT/CN2020/079382 WO2020192455A1 (en) 2019-03-25 2020-03-14 Ambient light data collection method and electronic device

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN110012162A true CN110012162A (en) 2019-07-12
CN110012162B CN110012162B (en) 2023-05-19

Family

ID=67168058

Family Applications (1)

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

Country Status (2)

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

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111263082A (en) * 2020-03-16 2020-06-09 维沃移动通信有限公司 Exposure data acquisition method and electronic equipment
WO2020192455A1 (en) * 2019-03-25 2020-10-01 华为技术有限公司 Ambient light data collection method and electronic device
CN112242119A (en) * 2019-07-16 2021-01-19 北京小米移动软件有限公司 Terminal, control method and device for displaying parameters, and storage medium
CN112687232A (en) * 2019-10-18 2021-04-20 北京小米移动软件有限公司 Dimming method and device of OLED display screen, electronic equipment and storage medium
CN112991919A (en) * 2019-12-12 2021-06-18 北京小米移动软件有限公司 Electronic device
CN113190315A (en) * 2021-04-29 2021-07-30 安徽华米健康医疗有限公司 Display refreshing method and device
CN113257208A (en) * 2020-02-12 2021-08-13 北京小米移动软件有限公司 Ambient brightness detection method, electronic device, detection device and storage medium
CN113542454A (en) * 2020-04-13 2021-10-22 北京小米移动软件有限公司 Ranging apparatus, ranging signal transmission control method, ranging apparatus, device, and medium
GB2595569A (en) * 2020-04-15 2021-12-01 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
CN114724509A (en) * 2022-03-31 2022-07-08 北京集创北方科技股份有限公司 Self-luminous display screen correction method and device, electronic equipment and storage medium
CN114998943A (en) * 2021-12-24 2022-09-02 荣耀终端有限公司 Data acquisition method and electronic device
CN115691416A (en) * 2022-11-07 2023-02-03 维沃移动通信有限公司 Ambient light collection method and device
CN117129085A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Ambient light detection methods, electronic equipment and readable storage media
WO2024055318A1 (en) * 2022-09-16 2024-03-21 京东方科技集团股份有限公司 Display module and driving method therefor, and display apparatus

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB202017919D0 (en) * 2020-11-13 2020-12-30 Ams Int Ag Optical sensing
CN114566113A (en) * 2022-02-28 2022-05-31 维沃移动通信有限公司 Ambient light detection method, display screen assembly and electronic equipment

Citations (2)

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

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2043081A3 (en) * 2007-09-27 2010-04-14 TPO Displays Corp. Display devices with ambient light sensing
US9024530B2 (en) * 2012-11-13 2015-05-05 Apple Inc. Synchronized ambient light sensor and display
CN107979698B (en) * 2017-11-22 2020-05-12 Oppo广东移动通信有限公司 Ambient light intensity detection method and device, storage medium and electronic equipment
CN108769358A (en) * 2018-03-28 2018-11-06 广东欧珀移动通信有限公司 Control method, control device, electronic device, storage medium, and computer apparatus
CN108924316A (en) * 2018-08-23 2018-11-30 深圳市万普拉斯科技有限公司 Shield lower light sensation detection method, device, mobile terminal and computer storage medium
CN110012162B (en) * 2019-03-25 2023-05-19 华为技术有限公司 A method for collecting ambient light data and electronic equipment

Patent Citations (2)

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

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020192455A1 (en) * 2019-03-25 2020-10-01 华为技术有限公司 Ambient light data collection method and electronic device
CN112242119A (en) * 2019-07-16 2021-01-19 北京小米移动软件有限公司 Terminal, control method and device for displaying parameters, and storage medium
CN112687232B (en) * 2019-10-18 2022-06-10 北京小米移动软件有限公司 Dimming method and device of OLED display screen, electronic equipment and storage medium
CN112687232A (en) * 2019-10-18 2021-04-20 北京小米移动软件有限公司 Dimming method and device of OLED display screen, electronic equipment and storage medium
CN112991919A (en) * 2019-12-12 2021-06-18 北京小米移动软件有限公司 Electronic device
CN112991919B (en) * 2019-12-12 2023-02-28 北京小米移动软件有限公司 Electronic equipment
CN113257208B (en) * 2020-02-12 2022-06-24 北京小米移动软件有限公司 Ambient brightness detection method, electronic device, detection device and storage medium
CN113257208A (en) * 2020-02-12 2021-08-13 北京小米移动软件有限公司 Ambient brightness detection method, electronic device, detection device and storage medium
WO2021185115A1 (en) * 2020-03-16 2021-09-23 维沃移动通信有限公司 Exposure data acquisition method and electronic device
JP2023516053A (en) * 2020-03-16 2023-04-17 維沃移動通信有限公司 Exposure data acquisition method, electronic device and computer readable storage medium
CN111263082B (en) * 2020-03-16 2021-12-14 维沃移动通信(杭州)有限公司 A kind of exposure data acquisition method and electronic device
CN111263082A (en) * 2020-03-16 2020-06-09 维沃移动通信有限公司 Exposure data acquisition method and electronic equipment
KR102919460B1 (en) * 2020-03-16 2026-01-28 비보 모바일 커뮤니케이션 컴퍼니 리미티드 Method and electronic device for obtaining exposure data
CN113542454A (en) * 2020-04-13 2021-10-22 北京小米移动软件有限公司 Ranging apparatus, ranging signal transmission control method, ranging apparatus, device, and medium
CN113542454B (en) * 2020-04-13 2024-01-30 北京小米移动软件有限公司 Ranging device, ranging signal emission control method, device, equipment and medium
GB2595569A (en) * 2020-04-15 2021-12-01 Motorola Mobility Llc System and method for measuring light sensor output in an electronic device
GB2595569B (en) * 2020-04-15 2023-02-01 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
CN113190315A (en) * 2021-04-29 2021-07-30 安徽华米健康医疗有限公司 Display refreshing method and device
CN113190315B (en) * 2021-04-29 2022-11-25 安徽华米健康医疗有限公司 Display refreshing method and device
CN114998943A (en) * 2021-12-24 2022-09-02 荣耀终端有限公司 Data acquisition method and electronic device
CN114724509A (en) * 2022-03-31 2022-07-08 北京集创北方科技股份有限公司 Self-luminous display screen correction method and device, electronic equipment and storage medium
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
US12347394B2 (en) 2022-09-16 2025-07-01 Chengdu Boe Optoelectronics Technology Co., Ltd. Display module and method for driving same, and display device
CN115691416A (en) * 2022-11-07 2023-02-03 维沃移动通信有限公司 Ambient light collection method and device
CN117129085A (en) * 2023-02-28 2023-11-28 荣耀终端有限公司 Ambient light detection methods, electronic equipment and readable storage media
CN117129085B (en) * 2023-02-28 2024-05-31 荣耀终端有限公司 Ambient light detection method, electronic device and readable storage medium

Also Published As

Publication number Publication date
WO2020192455A1 (en) 2020-10-01
CN110012162B (en) 2023-05-19

Similar Documents

Publication Publication Date Title
CN110012162B (en) A method for collecting ambient light data and electronic equipment
CN110809878B (en) Ambient light and proximity detection method, shooting method, terminal and computer storage medium
US11307733B2 (en) Always on display method and electronic device
CN113257208B (en) Ambient brightness detection method, electronic device, detection device and storage medium
CN113794796B (en) Screen projection method and electronic device
US20150310637A1 (en) Interface adjustment method, apparatus, and terminal
WO2021254438A1 (en) Drive control method and related device
CN113632441A (en) A light sensor state control method and electronic device
CN111416794A (en) Data transmission method and electronic equipment
CN111526314A (en) Video shooting method and electronic device
CN107979698A (en) Ambient light intensity detection method, device, storage medium and electronic equipment
CN105469775A (en) Method for adjusting brightness of display screen and terminal equipment
CN108429888B (en) Method and mobile terminal for filling light
KR20150033880A (en) Apparatus and method for controlling a display in an electronic device
US20190364221A1 (en) Camera Control Method and Terminal
CN108701365A (en) Light spot recognition method, device and system
WO2022089216A1 (en) Interface display method and electronic device
WO2021185115A1 (en) Exposure data acquisition method and electronic device
CN109558046A (en) A kind of information display method and terminal device
CN108984066A (en) A kind of application icon display methods and mobile terminal
CN107957293B (en) Ambient light intensity detection method and device, storage medium and electronic equipment
CN114375027B (en) Method and device for reducing power consumption
CN113115460B (en) Time slot selection method and related equipment
CN107948418A (en) Display state control method, device, storage medium and terminal
CN103458306A (en) Method and device for displaying live options of channels

Legal Events

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